2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.693 2009/01/26 08:41:31 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260 if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
263 elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267 # Yippee, $echo works!
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293 echo_test_string=`eval $cmd` &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
310 # So, first we look for a working echo in the user's PATH.
312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313 for dir in $PATH /usr/ucb; do
315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
363 # maybe with a smaller string...
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
379 # Oops. We lost completely, so just stick with echo.
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC MYSQL LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_COLLECT BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS SLAPD_NDB_LIBS SLAPD_NDB_INCS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS GSSAPI_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
931 # Report the --help message.
933 if test "$ac_init_help" = "long"; then
934 # Omit some internal or obsolete options to make the list less imposing.
935 # This message is too long to be a string in the A/UX 3.1 sh.
937 \`configure' configures this package to adapt to many kinds of systems.
939 Usage: $0 [OPTION]... [VAR=VALUE]...
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE. See below for descriptions of some of the useful variables.
944 Defaults for the options are specified in brackets.
947 -h, --help display this help and exit
948 --help=short display options specific to this package
949 --help=recursive display the short help of all the included packages
950 -V, --version display version information and exit
951 -q, --quiet, --silent do not print \`checking...' messages
952 --cache-file=FILE cache test results in FILE [disabled]
953 -C, --config-cache alias for \`--cache-file=config.cache'
954 -n, --no-create do not create output files
955 --srcdir=DIR find the sources in DIR [configure dir or \`..']
960 Installation directories:
961 --prefix=PREFIX install architecture-independent files in PREFIX
963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
971 For better control, use the options below.
973 Fine tuning of the installation directories:
974 --bindir=DIR user executables [EPREFIX/bin]
975 --sbindir=DIR system admin executables [EPREFIX/sbin]
976 --libexecdir=DIR program executables [EPREFIX/libexec]
977 --datadir=DIR read-only architecture-independent data [PREFIX/share]
978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
980 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
981 --libdir=DIR object code libraries [EPREFIX/lib]
982 --includedir=DIR C header files [PREFIX/include]
983 --oldincludedir=DIR C header files for non-gcc [/usr/include]
984 --infodir=DIR info documentation [PREFIX/info]
985 --mandir=DIR man documentation [PREFIX/man]
991 --program-prefix=PREFIX prepend PREFIX to installed program names
992 --program-suffix=SUFFIX append SUFFIX to installed program names
993 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
996 --build=BUILD configure for building on BUILD [guessed]
997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 --target=TARGET configure for building compilers for TARGET [HOST]
1002 if test -n "$ac_init_help"; then
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1009 --enable-debug enable debugging no|yes|traditional [yes]
1010 --enable-dynamic enable linking built binaries with dynamic libs [no]
1011 --enable-syslog enable syslog support [auto]
1012 --enable-proctitle enable proctitle support [yes]
1013 --enable-ipv6 enable IPv6 support [auto]
1014 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1016 SLAPD (Standalone LDAP Daemon) Options:
1017 --enable-slapd enable building slapd [yes]
1018 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1019 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1020 --enable-cleartext enable cleartext passwords [yes]
1021 --enable-crypt enable crypt(3) passwords [no]
1022 --enable-lmpasswd enable LAN Manager passwords [no]
1023 --enable-spasswd enable (Cyrus) SASL password verification [no]
1024 --enable-modules enable dynamic module support [no]
1025 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1026 --enable-rlookups enable reverse lookups of client hostnames [no]
1027 --enable-slapi enable SLAPI support (experimental) [no]
1028 --enable-slp enable SLPv2 support [no]
1029 --enable-wrappers enable tcp wrapper support [no]
1031 SLAPD Backend Options:
1032 --enable-backends enable all available backends no|yes|mod
1033 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1034 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1035 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1036 --enable-ldap enable ldap backend no|yes|mod [no]
1037 --enable-meta enable metadirectory backend no|yes|mod [no]
1038 --enable-monitor enable monitor backend no|yes|mod [yes]
1039 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1040 --enable-null enable null backend no|yes|mod [no]
1041 --enable-passwd enable passwd backend no|yes|mod [no]
1042 --enable-perl enable perl backend no|yes|mod [no]
1043 --enable-relay enable relay backend no|yes|mod [yes]
1044 --enable-shell enable shell backend no|yes|mod [no]
1045 --enable-sock enable sock backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1052 --enable-collect Collect overlay no|yes|mod [no]
1053 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1054 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1055 --enable-deref Dereference overlay no|yes|mod [no]
1056 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1057 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1058 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1059 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1060 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1061 --enable-refint Referential Integrity overlay no|yes|mod [no]
1062 --enable-retcode Return Code testing overlay no|yes|mod [no]
1063 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1064 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1065 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1066 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1067 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1068 --enable-valsort Value Sorting overlay no|yes|mod [no]
1070 Library Generation & Linking Options
1071 --enable-static[=PKGS]
1072 build static libraries [default=yes]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-fast-install[=PKGS]
1076 optimize for fast installation [default=yes]
1077 --disable-dependency-tracking speeds up one-time build
1078 --enable-dependency-tracking do not reject slow dependency extractors
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-subdir=DIR change default subdirectory used for installs
1085 --with-cyrus-sasl with Cyrus SASL support [auto]
1086 --with-fetch with fetch(3) URL support [auto]
1087 --with-gssapi with GSSAPI support [auto]
1088 --with-threads with threads [auto]
1089 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1090 --with-yielding-select with implicitly yielding select [auto]
1091 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1092 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1093 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1094 --with-pic try to use only PIC/non-PIC objects [default=use
1097 include additional configurations [automatic]
1099 See INSTALL file for further details.
1101 Some influential environment variables:
1102 CC C compiler command
1103 CFLAGS C compiler flags
1104 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1105 nonstandard directory <lib dir>
1106 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107 headers in a nonstandard directory <include dir>
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1116 if test "$ac_init_help" = "recursive"; then
1117 # If there are subdirs, report their specific --help.
1119 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120 test -d $ac_dir || continue
1123 if test "$ac_dir" != .; then
1124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125 # A "../" for each directory in $ac_dir_suffix.
1126 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 ac_dir_suffix= ac_top_builddir=
1132 .) # No --srcdir option. We are building in place.
1134 if test -z "$ac_top_builddir"; then
1137 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139 [\\/]* | ?:[\\/]* ) # Absolute path.
1140 ac_srcdir=$srcdir$ac_dir_suffix;
1141 ac_top_srcdir=$srcdir ;;
1143 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1150 .) ac_abs_builddir="$ac_dir";;
1153 .) ac_abs_builddir=`pwd`;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 case ${ac_top_builddir}. in
1162 .) ac_abs_top_builddir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1171 .) ac_abs_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 case $ac_top_srcdir in
1180 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1187 # Check for guested configure; otherwise get Cygnus style configure.
1188 if test -f $ac_srcdir/configure.gnu; then
1190 $SHELL $ac_srcdir/configure.gnu --help=recursive
1191 elif test -f $ac_srcdir/configure; then
1193 $SHELL $ac_srcdir/configure --help=recursive
1194 elif test -f $ac_srcdir/configure.ac ||
1195 test -f $ac_srcdir/configure.in; then
1197 $ac_configure --help
1199 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1213 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59. Invocation command line was
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258 test -z "$as_dir" && as_dir=.
1259 echo "PATH: $as_dir"
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1283 ac_must_keep_next=false
1289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1297 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300 if test $ac_must_keep_next = true; then
1301 ac_must_keep_next=false # Got value, back to normal.
1304 *=* | --config-cache | -C | -disable-* | --disable-* \
1305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307 | -with-* | --with-* | -without-* | --without-* | --x)
1308 case "$ac_configure_args0 " in
1309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1312 -* ) ac_must_keep_next=true ;;
1315 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316 # Get rid of the leading space.
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log. We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331 # Save into config.log some information that might help in debugging.
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1341 # The following way of writing the cache mishandles newlines in values,
1344 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1347 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1364 for ac_var in $ac_subst_vars
1366 eval ac_val=$`echo $ac_var`
1367 echo "$ac_var='"'"'$ac_val'"'"'"
1371 if test -n "$ac_subst_files"; then
1378 for ac_var in $ac_subst_files
1380 eval ac_val=$`echo $ac_var`
1381 echo "$ac_var='"'"'$ac_val'"'"'"
1386 if test -s confdefs.h; then
1393 sed "/^$/d" confdefs.h | sort
1396 test "$ac_signal" != 0 &&
1397 echo "$as_me: caught signal $ac_signal"
1398 echo "$as_me: exit $exit_status"
1400 rm -f core *.core &&
1401 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1404 for ac_signal in 1 2 13 15; do
1405 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1414 # Predefined preprocessor variables.
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444 if test "x$prefix" != xNONE; then
1445 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1450 for ac_site_file in $CONFIG_SITE; do
1451 if test -r "$ac_site_file"; then
1452 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454 sed 's/^/| /' "$ac_site_file" >&5
1460 # Check that the precious variables saved in the cache have kept the same
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1484 echo "$as_me: former value: $ac_old_val" >&2;}
1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1486 echo "$as_me: current value: $ac_new_val" >&2;}
1487 ac_cache_corrupted=:
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1562 for ac_dir in build $srcdir/build; do
1563 if test -f $ac_dir/install-sh; then
1565 ac_install_sh="$ac_aux_dir/install-sh -c"
1567 elif test -f $ac_dir/install.sh; then
1569 ac_install_sh="$ac_aux_dir/install.sh -c"
1571 elif test -f $ac_dir/shtool; then
1573 ac_install_sh="$ac_aux_dir/shtool install -c"
1577 if test -z "$ac_aux_dir"; then
1578 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1579 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1580 { (exit 1); exit 1; }; }
1582 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1583 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1584 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1586 eval `$ac_aux_dir/version.sh`
1587 if test -z "$OL_STRING"; then
1588 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1589 echo "$as_me: error: could not determine version" >&2;}
1590 { (exit 1); exit 1; }; }
1593 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1594 ac_cv_shtool="$ac_aux_dir/shtool"
1596 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1597 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1598 { (exit 1); exit 1; }; }
1601 SHTOOL="$ac_cv_shtool"
1605 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1606 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1610 if test -d $ac_aux_dir/CVS; then
1611 OPENLDAP_CVS="(from CVS sources) "
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 am__api_version="1.9"
1700 # Find a good install program. We prefer a C program (faster),
1701 # so one script is as good as another. But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 # Account for people who put trailing slashes in PATH elements.
1726 ./ | .// | /cC/* | \
1727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1731 # OSF1 and SCO ODT 3.0 have their own names for install.
1732 # Don't use installbsd from OSF since it installs stuff as root
1734 for ac_prog in ginstall scoinst install; do
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737 if test $ac_prog = install &&
1738 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # AIX install. It has an incompatible calling convention.
1741 elif test $ac_prog = install &&
1742 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743 # program-specific install script used by HP pwplus--don't use.
1746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758 if test "${ac_cv_path_install+set}" = set; then
1759 INSTALL=$ac_cv_path_install
1761 # As a last resort, use the slow shell script. We don't cache a
1762 # path for INSTALL within a source directory, because that will
1763 # break other packages using the cache if that directory is
1764 # removed, or if the path is relative.
1765 INSTALL=$ac_install_sh
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments. Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1790 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791 if test "$*" = "X"; then
1793 set X `ls -t $srcdir/configure conftest.file`
1796 if test "$*" != "X $srcdir/configure conftest.file" \
1797 && test "$*" != "X conftest.file $srcdir/configure"; then
1799 # If neither matched, then we have a broken ls. This can happen
1800 # if, for instance, CONFIG_SHELL is bash and it inherits a
1801 # broken ls alias from the environment. This has actually
1802 # happened. Such a system could not be considered "sane".
1803 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1806 alias in your environment" >&2;}
1807 { (exit 1); exit 1; }; }
1810 test "$2" = conftest.file
1816 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820 { (exit 1); exit 1; }; }
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $. echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843 am_missing_run="$MISSING --run "
1846 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851 # We used to keeping the `.' as first argument, in order to
1852 # allow $(mkdir_p) to be used without argument. As in
1853 # $(mkdir_p) $(somedir)
1854 # where $(somedir) is conditionally defined. However this is wrong
1856 # 1. if the package is installed by a user who cannot write `.'
1857 # make install will fail,
1858 # 2. the above comment should most certainly read
1859 # $(mkdir_p) $(DESTDIR)$(somedir)
1860 # so it does not work when $(somedir) is undefined and
1861 # $(DESTDIR) is not.
1862 # To support the latter case, we have to write
1863 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864 # so the `.' trick is pointless.
1865 mkdir_p='mkdir -p --'
1867 # On NextStep and OpenStep, the `mkdir' command does not
1868 # recognize any option. It will interpret all options as
1869 # directories to create, and then abort because `.' already
1871 for d in ./-p ./--version;
1873 test -d $d && rmdir $d
1875 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876 if test -f "$ac_aux_dir/mkinstalldirs"; then
1877 mkdir_p='$(mkinstalldirs)'
1879 mkdir_p='$(install_sh) -d'
1883 for ac_prog in gawk mawk nawk awk
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$AWK"; then
1893 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_AWK="$ac_prog"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$AWK"; then
1913 echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 test -n "$AWK" && break
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 cat >conftest.make <<\_ACEOF
1931 @echo 'ac_maketemp="$(MAKE)"'
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936 eval ac_cv_prog_make_${ac_make}_set=yes
1938 eval ac_cv_prog_make_${ac_make}_set=no
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943 echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 SET_MAKE="MAKE=${MAKE-make}"
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1959 rmdir .tst 2>/dev/null
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963 test -f $srcdir/config.status; then
1964 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966 { (exit 1); exit 1; }; }
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971 if (cygpath --version) >/dev/null 2>/dev/null; then
1972 CYGPATH_W='cygpath -w'
1979 # Define the identity of the package.
1984 # Some tools Automake needs.
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'. However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$STRIP"; then
2016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036 echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$ac_cv_prog_STRIP"; then
2046 # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_STRIP"; then
2054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_STRIP="strip"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2084 STRIP="$ac_cv_prog_STRIP"
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2090 # We need awk for the "check" target. The system "awk" is bad on
2092 # Always define AMTAR for backward compatibility.
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2145 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2147 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2149 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2152 echo "$as_me:$LINENO: checking configure arguments" >&5
2153 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2158 ldap_subdir="/openldap"
2161 # Check whether --with-subdir or --without-subdir was given.
2162 if test "${with_subdir+set}" = set; then
2163 withval="$with_subdir"
2170 ldap_subdir="$withval"
2173 ldap_subdir="/$withval"
2179 # OpenLDAP --enable-debug
2181 # Check whether --enable-debug or --disable-debug was given.
2182 if test "${enable_debug+set}" = set; then
2183 enableval="$enable_debug"
2186 for ol_val in no yes traditional ; do
2187 if test "$enableval" = "$ol_val" ; then
2191 if test "$ol_arg" = "invalid" ; then
2192 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2193 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2194 { (exit 1); exit 1; }; }
2196 ol_enable_debug="$ol_arg"
2201 # end --enable-debug
2202 # OpenLDAP --enable-dynamic
2204 # Check whether --enable-dynamic or --disable-dynamic was given.
2205 if test "${enable_dynamic+set}" = set; then
2206 enableval="$enable_dynamic"
2209 for ol_val in auto yes no ; do
2210 if test "$enableval" = "$ol_val" ; then
2214 if test "$ol_arg" = "invalid" ; then
2215 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2216 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2217 { (exit 1); exit 1; }; }
2219 ol_enable_dynamic="$ol_arg"
2222 ol_enable_dynamic=no
2224 # end --enable-dynamic
2225 # OpenLDAP --enable-syslog
2227 # Check whether --enable-syslog or --disable-syslog was given.
2228 if test "${enable_syslog+set}" = set; then
2229 enableval="$enable_syslog"
2232 for ol_val in auto yes no ; do
2233 if test "$enableval" = "$ol_val" ; then
2237 if test "$ol_arg" = "invalid" ; then
2238 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2239 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2240 { (exit 1); exit 1; }; }
2242 ol_enable_syslog="$ol_arg"
2245 ol_enable_syslog=auto
2247 # end --enable-syslog
2248 # OpenLDAP --enable-proctitle
2250 # Check whether --enable-proctitle or --disable-proctitle was given.
2251 if test "${enable_proctitle+set}" = set; then
2252 enableval="$enable_proctitle"
2255 for ol_val in auto yes no ; do
2256 if test "$enableval" = "$ol_val" ; then
2260 if test "$ol_arg" = "invalid" ; then
2261 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2262 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2263 { (exit 1); exit 1; }; }
2265 ol_enable_proctitle="$ol_arg"
2268 ol_enable_proctitle=yes
2270 # end --enable-proctitle
2271 ol_enable_referrals=${ol_enable_referrals-no}
2272 # OpenLDAP --enable-ipv6
2274 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2275 if test "${enable_ipv6+set}" = set; then
2276 enableval="$enable_ipv6"
2279 for ol_val in auto yes no ; do
2280 if test "$enableval" = "$ol_val" ; then
2284 if test "$ol_arg" = "invalid" ; then
2285 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2286 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2287 { (exit 1); exit 1; }; }
2289 ol_enable_ipv6="$ol_arg"
2295 # OpenLDAP --enable-local
2297 # Check whether --enable-local or --disable-local was given.
2298 if test "${enable_local+set}" = set; then
2299 enableval="$enable_local"
2302 for ol_val in auto yes no ; do
2303 if test "$enableval" = "$ol_val" ; then
2307 if test "$ol_arg" = "invalid" ; then
2308 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2309 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2310 { (exit 1); exit 1; }; }
2312 ol_enable_local="$ol_arg"
2315 ol_enable_local=auto
2317 # end --enable-local
2319 # OpenLDAP --with-cyrus_sasl
2321 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2322 if test "${with_cyrus_sasl+set}" = set; then
2323 withval="$with_cyrus_sasl"
2326 for ol_val in auto yes no ; do
2327 if test "$withval" = "$ol_val" ; then
2331 if test "$ol_arg" = "invalid" ; then
2332 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2333 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2334 { (exit 1); exit 1; }; }
2336 ol_with_cyrus_sasl="$ol_arg"
2339 ol_with_cyrus_sasl="auto"
2340 fi; # end --with-cyrus_sasl
2342 # OpenLDAP --with-fetch
2344 # Check whether --with-fetch or --without-fetch was given.
2345 if test "${with_fetch+set}" = set; then
2346 withval="$with_fetch"
2349 for ol_val in auto yes no ; do
2350 if test "$withval" = "$ol_val" ; then
2354 if test "$ol_arg" = "invalid" ; then
2355 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2356 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2357 { (exit 1); exit 1; }; }
2359 ol_with_fetch="$ol_arg"
2362 ol_with_fetch="auto"
2363 fi; # end --with-fetch
2365 # OpenLDAP --with-gssapi
2367 # Check whether --with-gssapi or --without-gssapi was given.
2368 if test "${with_gssapi+set}" = set; then
2369 withval="$with_gssapi"
2372 for ol_val in auto yes no ; do
2373 if test "$withval" = "$ol_val" ; then
2377 if test "$ol_arg" = "invalid" ; then
2378 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2379 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2380 { (exit 1); exit 1; }; }
2382 ol_with_gssapi="$ol_arg"
2385 ol_with_gssapi="auto"
2386 fi; # end --with-gssapi
2388 # OpenLDAP --with-threads
2390 # Check whether --with-threads or --without-threads was given.
2391 if test "${with_threads+set}" = set; then
2392 withval="$with_threads"
2395 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2396 if test "$withval" = "$ol_val" ; then
2400 if test "$ol_arg" = "invalid" ; then
2401 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2402 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2403 { (exit 1); exit 1; }; }
2405 ol_with_threads="$ol_arg"
2408 ol_with_threads="auto"
2409 fi; # end --with-threads
2411 # OpenLDAP --with-tls
2413 # Check whether --with-tls or --without-tls was given.
2414 if test "${with_tls+set}" = set; then
2418 for ol_val in auto openssl gnutls yes no ; do
2419 if test "$withval" = "$ol_val" ; then
2423 if test "$ol_arg" = "invalid" ; then
2424 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2425 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2426 { (exit 1); exit 1; }; }
2428 ol_with_tls="$ol_arg"
2432 fi; # end --with-tls
2434 # OpenLDAP --with-yielding_select
2436 # Check whether --with-yielding_select or --without-yielding_select was given.
2437 if test "${with_yielding_select+set}" = set; then
2438 withval="$with_yielding_select"
2441 for ol_val in auto yes no manual ; do
2442 if test "$withval" = "$ol_val" ; then
2446 if test "$ol_arg" = "invalid" ; then
2447 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2448 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2449 { (exit 1); exit 1; }; }
2451 ol_with_yielding_select="$ol_arg"
2454 ol_with_yielding_select="auto"
2455 fi; # end --with-yielding_select
2457 # OpenLDAP --with-mp
2459 # Check whether --with-mp or --without-mp was given.
2460 if test "${with_mp+set}" = set; then
2464 for ol_val in auto longlong long bignum gmp yes no ; do
2465 if test "$withval" = "$ol_val" ; then
2469 if test "$ol_arg" = "invalid" ; then
2470 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2471 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2472 { (exit 1); exit 1; }; }
2474 ol_with_mp="$ol_arg"
2480 # OpenLDAP --with-odbc
2482 # Check whether --with-odbc or --without-odbc was given.
2483 if test "${with_odbc+set}" = set; then
2484 withval="$with_odbc"
2487 for ol_val in auto iodbc unixodbc odbc32 ; do
2488 if test "$withval" = "$ol_val" ; then
2492 if test "$ol_arg" = "invalid" ; then
2493 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2494 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2495 { (exit 1); exit 1; }; }
2497 ol_with_odbc="$ol_arg"
2501 fi; # end --with-odbc
2505 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2506 if test "${enable_xxslapdoptions+set}" = set; then
2507 enableval="$enable_xxslapdoptions"
2510 # OpenLDAP --enable-slapd
2512 # Check whether --enable-slapd or --disable-slapd was given.
2513 if test "${enable_slapd+set}" = set; then
2514 enableval="$enable_slapd"
2517 for ol_val in auto yes no ; do
2518 if test "$enableval" = "$ol_val" ; then
2522 if test "$ol_arg" = "invalid" ; then
2523 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2524 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2525 { (exit 1); exit 1; }; }
2527 ol_enable_slapd="$ol_arg"
2532 # end --enable-slapd
2533 # OpenLDAP --enable-dynacl
2535 # Check whether --enable-dynacl or --disable-dynacl was given.
2536 if test "${enable_dynacl+set}" = set; then
2537 enableval="$enable_dynacl"
2540 for ol_val in auto yes no ; do
2541 if test "$enableval" = "$ol_val" ; then
2545 if test "$ol_arg" = "invalid" ; then
2546 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2547 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2548 { (exit 1); exit 1; }; }
2550 ol_enable_dynacl="$ol_arg"
2555 # end --enable-dynacl
2556 # OpenLDAP --enable-aci
2558 # Check whether --enable-aci or --disable-aci was given.
2559 if test "${enable_aci+set}" = set; then
2560 enableval="$enable_aci"
2563 for ol_val in no yes mod ; do
2564 if test "$enableval" = "$ol_val" ; then
2568 if test "$ol_arg" = "invalid" ; then
2569 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2570 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2571 { (exit 1); exit 1; }; }
2573 ol_enable_aci="$ol_arg"
2579 # OpenLDAP --enable-cleartext
2581 # Check whether --enable-cleartext or --disable-cleartext was given.
2582 if test "${enable_cleartext+set}" = set; then
2583 enableval="$enable_cleartext"
2586 for ol_val in auto yes no ; do
2587 if test "$enableval" = "$ol_val" ; then
2591 if test "$ol_arg" = "invalid" ; then
2592 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2593 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2594 { (exit 1); exit 1; }; }
2596 ol_enable_cleartext="$ol_arg"
2599 ol_enable_cleartext=yes
2601 # end --enable-cleartext
2602 # OpenLDAP --enable-crypt
2604 # Check whether --enable-crypt or --disable-crypt was given.
2605 if test "${enable_crypt+set}" = set; then
2606 enableval="$enable_crypt"
2609 for ol_val in auto yes no ; do
2610 if test "$enableval" = "$ol_val" ; then
2614 if test "$ol_arg" = "invalid" ; then
2615 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2616 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2617 { (exit 1); exit 1; }; }
2619 ol_enable_crypt="$ol_arg"
2624 # end --enable-crypt
2625 # OpenLDAP --enable-lmpasswd
2627 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2628 if test "${enable_lmpasswd+set}" = set; then
2629 enableval="$enable_lmpasswd"
2632 for ol_val in auto yes no ; do
2633 if test "$enableval" = "$ol_val" ; then
2637 if test "$ol_arg" = "invalid" ; then
2638 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2639 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2640 { (exit 1); exit 1; }; }
2642 ol_enable_lmpasswd="$ol_arg"
2645 ol_enable_lmpasswd=no
2647 # end --enable-lmpasswd
2648 # OpenLDAP --enable-spasswd
2650 # Check whether --enable-spasswd or --disable-spasswd was given.
2651 if test "${enable_spasswd+set}" = set; then
2652 enableval="$enable_spasswd"
2655 for ol_val in auto yes no ; do
2656 if test "$enableval" = "$ol_val" ; then
2660 if test "$ol_arg" = "invalid" ; then
2661 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2662 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2663 { (exit 1); exit 1; }; }
2665 ol_enable_spasswd="$ol_arg"
2668 ol_enable_spasswd=no
2670 # end --enable-spasswd
2671 # OpenLDAP --enable-modules
2673 # Check whether --enable-modules or --disable-modules was given.
2674 if test "${enable_modules+set}" = set; then
2675 enableval="$enable_modules"
2678 for ol_val in auto yes no ; do
2679 if test "$enableval" = "$ol_val" ; then
2683 if test "$ol_arg" = "invalid" ; then
2684 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2685 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2686 { (exit 1); exit 1; }; }
2688 ol_enable_modules="$ol_arg"
2691 ol_enable_modules=no
2693 # end --enable-modules
2694 # OpenLDAP --enable-rewrite
2696 # Check whether --enable-rewrite or --disable-rewrite was given.
2697 if test "${enable_rewrite+set}" = set; then
2698 enableval="$enable_rewrite"
2701 for ol_val in auto yes no ; do
2702 if test "$enableval" = "$ol_val" ; then
2706 if test "$ol_arg" = "invalid" ; then
2707 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2708 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2709 { (exit 1); exit 1; }; }
2711 ol_enable_rewrite="$ol_arg"
2714 ol_enable_rewrite=auto
2716 # end --enable-rewrite
2717 # OpenLDAP --enable-rlookups
2719 # Check whether --enable-rlookups or --disable-rlookups was given.
2720 if test "${enable_rlookups+set}" = set; then
2721 enableval="$enable_rlookups"
2724 for ol_val in auto yes no ; do
2725 if test "$enableval" = "$ol_val" ; then
2729 if test "$ol_arg" = "invalid" ; then
2730 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2731 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2732 { (exit 1); exit 1; }; }
2734 ol_enable_rlookups="$ol_arg"
2737 ol_enable_rlookups=no
2739 # end --enable-rlookups
2740 # OpenLDAP --enable-slapi
2742 # Check whether --enable-slapi or --disable-slapi was given.
2743 if test "${enable_slapi+set}" = set; then
2744 enableval="$enable_slapi"
2747 for ol_val in auto yes no ; do
2748 if test "$enableval" = "$ol_val" ; then
2752 if test "$ol_arg" = "invalid" ; then
2753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2754 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2755 { (exit 1); exit 1; }; }
2757 ol_enable_slapi="$ol_arg"
2762 # end --enable-slapi
2763 # OpenLDAP --enable-slp
2765 # Check whether --enable-slp or --disable-slp was given.
2766 if test "${enable_slp+set}" = set; then
2767 enableval="$enable_slp"
2770 for ol_val in auto yes no ; do
2771 if test "$enableval" = "$ol_val" ; then
2775 if test "$ol_arg" = "invalid" ; then
2776 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2777 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2778 { (exit 1); exit 1; }; }
2780 ol_enable_slp="$ol_arg"
2786 # OpenLDAP --enable-wrappers
2788 # Check whether --enable-wrappers or --disable-wrappers was given.
2789 if test "${enable_wrappers+set}" = set; then
2790 enableval="$enable_wrappers"
2793 for ol_val in auto yes no ; do
2794 if test "$enableval" = "$ol_val" ; then
2798 if test "$ol_arg" = "invalid" ; then
2799 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2800 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2801 { (exit 1); exit 1; }; }
2803 ol_enable_wrappers="$ol_arg"
2806 ol_enable_wrappers=no
2808 # end --enable-wrappers
2825 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2826 if test "${enable_xxslapbackends+set}" = set; then
2827 enableval="$enable_xxslapbackends"
2831 # OpenLDAP --enable-backends
2833 # Check whether --enable-backends or --disable-backends was given.
2834 if test "${enable_backends+set}" = set; then
2835 enableval="$enable_backends"
2838 for ol_val in no yes mod ; do
2839 if test "$enableval" = "$ol_val" ; then
2843 if test "$ol_arg" = "invalid" ; then
2844 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2845 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2846 { (exit 1); exit 1; }; }
2848 ol_enable_backends="$ol_arg"
2851 # end --enable-backends
2852 # OpenLDAP --enable-bdb
2854 # Check whether --enable-bdb or --disable-bdb was given.
2855 if test "${enable_bdb+set}" = set; then
2856 enableval="$enable_bdb"
2859 for ol_val in no yes mod ; do
2860 if test "$enableval" = "$ol_val" ; then
2864 if test "$ol_arg" = "invalid" ; then
2865 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2866 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2867 { (exit 1); exit 1; }; }
2869 ol_enable_bdb="$ol_arg"
2872 ol_enable_bdb=${ol_enable_backends:-no}
2875 # OpenLDAP --enable-dnssrv
2877 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2878 if test "${enable_dnssrv+set}" = set; then
2879 enableval="$enable_dnssrv"
2882 for ol_val in no yes mod ; do
2883 if test "$enableval" = "$ol_val" ; then
2887 if test "$ol_arg" = "invalid" ; then
2888 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2889 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2890 { (exit 1); exit 1; }; }
2892 ol_enable_dnssrv="$ol_arg"
2895 ol_enable_dnssrv=${ol_enable_backends:-no}
2897 # end --enable-dnssrv
2898 # OpenLDAP --enable-hdb
2900 # Check whether --enable-hdb or --disable-hdb was given.
2901 if test "${enable_hdb+set}" = set; then
2902 enableval="$enable_hdb"
2905 for ol_val in no yes mod ; do
2906 if test "$enableval" = "$ol_val" ; then
2910 if test "$ol_arg" = "invalid" ; then
2911 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2912 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2913 { (exit 1); exit 1; }; }
2915 ol_enable_hdb="$ol_arg"
2918 ol_enable_hdb=${ol_enable_backends:-yes}
2921 # OpenLDAP --enable-ldap
2923 # Check whether --enable-ldap or --disable-ldap was given.
2924 if test "${enable_ldap+set}" = set; then
2925 enableval="$enable_ldap"
2928 for ol_val in no yes mod ; do
2929 if test "$enableval" = "$ol_val" ; then
2933 if test "$ol_arg" = "invalid" ; then
2934 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2936 { (exit 1); exit 1; }; }
2938 ol_enable_ldap="$ol_arg"
2941 ol_enable_ldap=${ol_enable_backends:-no}
2944 # OpenLDAP --enable-meta
2946 # Check whether --enable-meta or --disable-meta was given.
2947 if test "${enable_meta+set}" = set; then
2948 enableval="$enable_meta"
2951 for ol_val in no yes mod ; do
2952 if test "$enableval" = "$ol_val" ; then
2956 if test "$ol_arg" = "invalid" ; then
2957 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2958 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2959 { (exit 1); exit 1; }; }
2961 ol_enable_meta="$ol_arg"
2964 ol_enable_meta=${ol_enable_backends:-no}
2967 # OpenLDAP --enable-monitor
2969 # Check whether --enable-monitor or --disable-monitor was given.
2970 if test "${enable_monitor+set}" = set; then
2971 enableval="$enable_monitor"
2974 for ol_val in no yes mod ; do
2975 if test "$enableval" = "$ol_val" ; then
2979 if test "$ol_arg" = "invalid" ; then
2980 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2981 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2982 { (exit 1); exit 1; }; }
2984 ol_enable_monitor="$ol_arg"
2987 ol_enable_monitor=${ol_enable_backends:-yes}
2989 # end --enable-monitor
2990 # OpenLDAP --enable-ndb
2992 # Check whether --enable-ndb or --disable-ndb was given.
2993 if test "${enable_ndb+set}" = set; then
2994 enableval="$enable_ndb"
2997 for ol_val in no yes mod ; do
2998 if test "$enableval" = "$ol_val" ; then
3002 if test "$ol_arg" = "invalid" ; then
3003 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3004 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3005 { (exit 1); exit 1; }; }
3007 ol_enable_ndb="$ol_arg"
3010 ol_enable_ndb=${ol_enable_backends:-no}
3013 # OpenLDAP --enable-null
3015 # Check whether --enable-null or --disable-null was given.
3016 if test "${enable_null+set}" = set; then
3017 enableval="$enable_null"
3020 for ol_val in no yes mod ; do
3021 if test "$enableval" = "$ol_val" ; then
3025 if test "$ol_arg" = "invalid" ; then
3026 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3027 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3028 { (exit 1); exit 1; }; }
3030 ol_enable_null="$ol_arg"
3033 ol_enable_null=${ol_enable_backends:-no}
3036 # OpenLDAP --enable-passwd
3038 # Check whether --enable-passwd or --disable-passwd was given.
3039 if test "${enable_passwd+set}" = set; then
3040 enableval="$enable_passwd"
3043 for ol_val in no yes mod ; do
3044 if test "$enableval" = "$ol_val" ; then
3048 if test "$ol_arg" = "invalid" ; then
3049 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3050 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3051 { (exit 1); exit 1; }; }
3053 ol_enable_passwd="$ol_arg"
3056 ol_enable_passwd=${ol_enable_backends:-no}
3058 # end --enable-passwd
3059 # OpenLDAP --enable-perl
3061 # Check whether --enable-perl or --disable-perl was given.
3062 if test "${enable_perl+set}" = set; then
3063 enableval="$enable_perl"
3066 for ol_val in no yes mod ; do
3067 if test "$enableval" = "$ol_val" ; then
3071 if test "$ol_arg" = "invalid" ; then
3072 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3073 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3074 { (exit 1); exit 1; }; }
3076 ol_enable_perl="$ol_arg"
3079 ol_enable_perl=${ol_enable_backends:-no}
3082 # OpenLDAP --enable-relay
3084 # Check whether --enable-relay or --disable-relay was given.
3085 if test "${enable_relay+set}" = set; then
3086 enableval="$enable_relay"
3089 for ol_val in no yes mod ; do
3090 if test "$enableval" = "$ol_val" ; then
3094 if test "$ol_arg" = "invalid" ; then
3095 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3096 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3097 { (exit 1); exit 1; }; }
3099 ol_enable_relay="$ol_arg"
3102 ol_enable_relay=${ol_enable_backends:-yes}
3104 # end --enable-relay
3105 # OpenLDAP --enable-shell
3107 # Check whether --enable-shell or --disable-shell was given.
3108 if test "${enable_shell+set}" = set; then
3109 enableval="$enable_shell"
3112 for ol_val in no yes mod ; do
3113 if test "$enableval" = "$ol_val" ; then
3117 if test "$ol_arg" = "invalid" ; then
3118 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3119 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3120 { (exit 1); exit 1; }; }
3122 ol_enable_shell="$ol_arg"
3125 ol_enable_shell=${ol_enable_backends:-no}
3127 # end --enable-shell
3128 # OpenLDAP --enable-sock
3130 # Check whether --enable-sock or --disable-sock was given.
3131 if test "${enable_sock+set}" = set; then
3132 enableval="$enable_sock"
3135 for ol_val in no yes mod ; do
3136 if test "$enableval" = "$ol_val" ; then
3140 if test "$ol_arg" = "invalid" ; then
3141 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3142 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3143 { (exit 1); exit 1; }; }
3145 ol_enable_sock="$ol_arg"
3148 ol_enable_sock=${ol_enable_backends:-no}
3151 # OpenLDAP --enable-sql
3153 # Check whether --enable-sql or --disable-sql was given.
3154 if test "${enable_sql+set}" = set; then
3155 enableval="$enable_sql"
3158 for ol_val in no yes mod ; do
3159 if test "$enableval" = "$ol_val" ; then
3163 if test "$ol_arg" = "invalid" ; then
3164 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3165 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3166 { (exit 1); exit 1; }; }
3168 ol_enable_sql="$ol_arg"
3171 ol_enable_sql=${ol_enable_backends:-no}
3175 Overlays="accesslog \
3195 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3196 if test "${enable_xxslapoverlays+set}" = set; then
3197 enableval="$enable_xxslapoverlays"
3201 # OpenLDAP --enable-overlays
3203 # Check whether --enable-overlays or --disable-overlays was given.
3204 if test "${enable_overlays+set}" = set; then
3205 enableval="$enable_overlays"
3208 for ol_val in no yes mod ; do
3209 if test "$enableval" = "$ol_val" ; then
3213 if test "$ol_arg" = "invalid" ; then
3214 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3215 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3216 { (exit 1); exit 1; }; }
3218 ol_enable_overlays="$ol_arg"
3221 # end --enable-overlays
3222 # OpenLDAP --enable-accesslog
3224 # Check whether --enable-accesslog or --disable-accesslog was given.
3225 if test "${enable_accesslog+set}" = set; then
3226 enableval="$enable_accesslog"
3229 for ol_val in no yes mod ; do
3230 if test "$enableval" = "$ol_val" ; then
3234 if test "$ol_arg" = "invalid" ; then
3235 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3236 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3237 { (exit 1); exit 1; }; }
3239 ol_enable_accesslog="$ol_arg"
3242 ol_enable_accesslog=${ol_enable_overlays:-no}
3244 # end --enable-accesslog
3246 # OpenLDAP --enable-auditlog
3248 # Check whether --enable-auditlog or --disable-auditlog was given.
3249 if test "${enable_auditlog+set}" = set; then
3250 enableval="$enable_auditlog"
3253 for ol_val in no yes mod ; do
3254 if test "$enableval" = "$ol_val" ; then
3258 if test "$ol_arg" = "invalid" ; then
3259 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3260 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3261 { (exit 1); exit 1; }; }
3263 ol_enable_auditlog="$ol_arg"
3266 ol_enable_auditlog=${ol_enable_overlays:-no}
3268 # end --enable-auditlog
3270 # OpenLDAP --enable-collect
3272 # Check whether --enable-collect or --disable-collect was given.
3273 if test "${enable_collect+set}" = set; then
3274 enableval="$enable_collect"
3277 for ol_val in no yes mod ; do
3278 if test "$enableval" = "$ol_val" ; then
3282 if test "$ol_arg" = "invalid" ; then
3283 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3284 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3285 { (exit 1); exit 1; }; }
3287 ol_enable_collect="$ol_arg"
3290 ol_enable_collect=${ol_enable_overlays:-no}
3292 # end --enable-collect
3294 # OpenLDAP --enable-constraint
3296 # Check whether --enable-constraint or --disable-constraint was given.
3297 if test "${enable_constraint+set}" = set; then
3298 enableval="$enable_constraint"
3301 for ol_val in no yes mod ; do
3302 if test "$enableval" = "$ol_val" ; then
3306 if test "$ol_arg" = "invalid" ; then
3307 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3308 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3309 { (exit 1); exit 1; }; }
3311 ol_enable_constraint="$ol_arg"
3314 ol_enable_constraint=${ol_enable_overlays:-no}
3316 # end --enable-constraint
3318 # OpenLDAP --enable-dds
3320 # Check whether --enable-dds or --disable-dds was given.
3321 if test "${enable_dds+set}" = set; then
3322 enableval="$enable_dds"
3325 for ol_val in no yes mod ; do
3326 if test "$enableval" = "$ol_val" ; then
3330 if test "$ol_arg" = "invalid" ; then
3331 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3332 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3333 { (exit 1); exit 1; }; }
3335 ol_enable_dds="$ol_arg"
3338 ol_enable_dds=${ol_enable_overlays:-no}
3342 # OpenLDAP --enable-deref
3344 # Check whether --enable-deref or --disable-deref was given.
3345 if test "${enable_deref+set}" = set; then
3346 enableval="$enable_deref"
3349 for ol_val in no yes mod ; do
3350 if test "$enableval" = "$ol_val" ; then
3354 if test "$ol_arg" = "invalid" ; then
3355 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3356 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3357 { (exit 1); exit 1; }; }
3359 ol_enable_deref="$ol_arg"
3362 ol_enable_deref=${ol_enable_overlays:-no}
3364 # end --enable-deref
3366 # OpenLDAP --enable-dyngroup
3368 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3369 if test "${enable_dyngroup+set}" = set; then
3370 enableval="$enable_dyngroup"
3373 for ol_val in no yes mod ; do
3374 if test "$enableval" = "$ol_val" ; then
3378 if test "$ol_arg" = "invalid" ; then
3379 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3380 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3381 { (exit 1); exit 1; }; }
3383 ol_enable_dyngroup="$ol_arg"
3386 ol_enable_dyngroup=${ol_enable_overlays:-no}
3388 # end --enable-dyngroup
3390 # OpenLDAP --enable-dynlist
3392 # Check whether --enable-dynlist or --disable-dynlist was given.
3393 if test "${enable_dynlist+set}" = set; then
3394 enableval="$enable_dynlist"
3397 for ol_val in no yes mod ; do
3398 if test "$enableval" = "$ol_val" ; then
3402 if test "$ol_arg" = "invalid" ; then
3403 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3404 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3405 { (exit 1); exit 1; }; }
3407 ol_enable_dynlist="$ol_arg"
3410 ol_enable_dynlist=${ol_enable_overlays:-no}
3412 # end --enable-dynlist
3414 # OpenLDAP --enable-memberof
3416 # Check whether --enable-memberof or --disable-memberof was given.
3417 if test "${enable_memberof+set}" = set; then
3418 enableval="$enable_memberof"
3421 for ol_val in no yes mod ; do
3422 if test "$enableval" = "$ol_val" ; then
3426 if test "$ol_arg" = "invalid" ; then
3427 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3428 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3429 { (exit 1); exit 1; }; }
3431 ol_enable_memberof="$ol_arg"
3434 ol_enable_memberof=${ol_enable_overlays:-no}
3436 # end --enable-memberof
3438 # OpenLDAP --enable-ppolicy
3440 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3441 if test "${enable_ppolicy+set}" = set; then
3442 enableval="$enable_ppolicy"
3445 for ol_val in no yes mod ; do
3446 if test "$enableval" = "$ol_val" ; then
3450 if test "$ol_arg" = "invalid" ; then
3451 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3452 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3453 { (exit 1); exit 1; }; }
3455 ol_enable_ppolicy="$ol_arg"
3458 ol_enable_ppolicy=${ol_enable_overlays:-no}
3460 # end --enable-ppolicy
3462 # OpenLDAP --enable-proxycache
3464 # Check whether --enable-proxycache or --disable-proxycache was given.
3465 if test "${enable_proxycache+set}" = set; then
3466 enableval="$enable_proxycache"
3469 for ol_val in no yes mod ; do
3470 if test "$enableval" = "$ol_val" ; then
3474 if test "$ol_arg" = "invalid" ; then
3475 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3476 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3477 { (exit 1); exit 1; }; }
3479 ol_enable_proxycache="$ol_arg"
3482 ol_enable_proxycache=${ol_enable_overlays:-no}
3484 # end --enable-proxycache
3486 # OpenLDAP --enable-refint
3488 # Check whether --enable-refint or --disable-refint was given.
3489 if test "${enable_refint+set}" = set; then
3490 enableval="$enable_refint"
3493 for ol_val in no yes mod ; do
3494 if test "$enableval" = "$ol_val" ; then
3498 if test "$ol_arg" = "invalid" ; then
3499 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3501 { (exit 1); exit 1; }; }
3503 ol_enable_refint="$ol_arg"
3506 ol_enable_refint=${ol_enable_overlays:-no}
3508 # end --enable-refint
3510 # OpenLDAP --enable-retcode
3512 # Check whether --enable-retcode or --disable-retcode was given.
3513 if test "${enable_retcode+set}" = set; then
3514 enableval="$enable_retcode"
3517 for ol_val in no yes mod ; do
3518 if test "$enableval" = "$ol_val" ; then
3522 if test "$ol_arg" = "invalid" ; then
3523 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3524 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3525 { (exit 1); exit 1; }; }
3527 ol_enable_retcode="$ol_arg"
3530 ol_enable_retcode=${ol_enable_overlays:-no}
3532 # end --enable-retcode
3534 # OpenLDAP --enable-rwm
3536 # Check whether --enable-rwm or --disable-rwm was given.
3537 if test "${enable_rwm+set}" = set; then
3538 enableval="$enable_rwm"
3541 for ol_val in no yes mod ; do
3542 if test "$enableval" = "$ol_val" ; then
3546 if test "$ol_arg" = "invalid" ; then
3547 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3549 { (exit 1); exit 1; }; }
3551 ol_enable_rwm="$ol_arg"
3554 ol_enable_rwm=${ol_enable_overlays:-no}
3558 # OpenLDAP --enable-seqmod
3560 # Check whether --enable-seqmod or --disable-seqmod was given.
3561 if test "${enable_seqmod+set}" = set; then
3562 enableval="$enable_seqmod"
3565 for ol_val in no yes mod ; do
3566 if test "$enableval" = "$ol_val" ; then
3570 if test "$ol_arg" = "invalid" ; then
3571 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3573 { (exit 1); exit 1; }; }
3575 ol_enable_seqmod="$ol_arg"
3578 ol_enable_seqmod=${ol_enable_overlays:-yes}
3580 # end --enable-seqmod
3582 # OpenLDAP --enable-syncprov
3584 # Check whether --enable-syncprov or --disable-syncprov was given.
3585 if test "${enable_syncprov+set}" = set; then
3586 enableval="$enable_syncprov"
3589 for ol_val in no yes mod ; do
3590 if test "$enableval" = "$ol_val" ; then
3594 if test "$ol_arg" = "invalid" ; then
3595 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3596 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3597 { (exit 1); exit 1; }; }
3599 ol_enable_syncprov="$ol_arg"
3602 ol_enable_syncprov=${ol_enable_overlays:-yes}
3604 # end --enable-syncprov
3606 # OpenLDAP --enable-translucent
3608 # Check whether --enable-translucent or --disable-translucent was given.
3609 if test "${enable_translucent+set}" = set; then
3610 enableval="$enable_translucent"
3613 for ol_val in no yes mod ; do
3614 if test "$enableval" = "$ol_val" ; then
3618 if test "$ol_arg" = "invalid" ; then
3619 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3620 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3621 { (exit 1); exit 1; }; }
3623 ol_enable_translucent="$ol_arg"
3626 ol_enable_translucent=${ol_enable_overlays:-no}
3628 # end --enable-translucent
3630 # OpenLDAP --enable-unique
3632 # Check whether --enable-unique or --disable-unique was given.
3633 if test "${enable_unique+set}" = set; then
3634 enableval="$enable_unique"
3637 for ol_val in no yes mod ; do
3638 if test "$enableval" = "$ol_val" ; then
3642 if test "$ol_arg" = "invalid" ; then
3643 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3644 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3645 { (exit 1); exit 1; }; }
3647 ol_enable_unique="$ol_arg"
3650 ol_enable_unique=${ol_enable_overlays:-no}
3652 # end --enable-unique
3654 # OpenLDAP --enable-valsort
3656 # Check whether --enable-valsort or --disable-valsort was given.
3657 if test "${enable_valsort+set}" = set; then
3658 enableval="$enable_valsort"
3661 for ol_val in no yes mod ; do
3662 if test "$enableval" = "$ol_val" ; then
3666 if test "$ol_arg" = "invalid" ; then
3667 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3668 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3669 { (exit 1); exit 1; }; }
3671 ol_enable_valsort="$ol_arg"
3674 ol_enable_valsort=${ol_enable_overlays:-no}
3676 # end --enable-valsort
3679 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3680 if test "${enable_xxliboptions+set}" = set; then
3681 enableval="$enable_xxliboptions"
3684 # Check whether --enable-static or --disable-static was given.
3685 if test "${enable_static+set}" = set; then
3686 enableval="$enable_static"
3687 p=${PACKAGE-default}
3689 yes) enable_static=yes ;;
3690 no) enable_static=no ;;
3693 # Look at the argument we got. We use all the common list separators.
3694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3695 for pkg in $enableval; do
3697 if test "X$pkg" = "X$p"; then
3708 # Check whether --enable-shared or --disable-shared was given.
3709 if test "${enable_shared+set}" = set; then
3710 enableval="$enable_shared"
3711 p=${PACKAGE-default}
3713 yes) enable_shared=yes ;;
3714 no) enable_shared=no ;;
3717 # Look at the argument we got. We use all the common list separators.
3718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3719 for pkg in $enableval; do
3721 if test "X$pkg" = "X$p"; then
3735 if test $ol_enable_slapd = no ; then
3736 if test $ol_enable_slapi = yes ; then
3737 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3738 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3740 case "$ol_enable_backends" in yes | mod)
3741 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3742 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3744 for i in $Backends; do
3745 eval "ol_tmp=\$ol_enable_$i"
3746 if test $ol_tmp != no ; then
3747 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3748 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3749 eval "ol_enable_$i=no"
3752 if test $ol_enable_modules = yes ; then
3753 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3754 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3756 if test $ol_enable_wrappers = yes ; then
3757 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3758 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3760 if test $ol_enable_rlookups = yes ; then
3761 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3762 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3764 if test $ol_enable_dynacl = yes ; then
3765 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3766 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3768 if test $ol_enable_aci != no ; then
3769 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3770 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3772 if test $ol_enable_rewrite = yes ; then
3773 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3774 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3776 case "$ol_enable_overlays" in yes | mod)
3777 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3778 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3780 for i in $Overlays; do
3781 eval "ol_tmp=\$ol_enable_$i"
3782 if test $ol_tmp != no ; then
3783 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3784 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3785 eval "ol_enable_$i=no"
3789 # force settings to no
3794 ol_enable_modules=no
3795 ol_enable_rlookups=no
3798 ol_enable_wrappers=no
3800 ol_enable_rewrite=no
3802 elif test $ol_enable_modules != yes &&
3803 test $ol_enable_bdb = no &&
3804 test $ol_enable_dnssrv = no &&
3805 test $ol_enable_hdb = no &&
3806 test $ol_enable_ldap = no &&
3807 test $ol_enable_meta = no &&
3808 test $ol_enable_monitor = no &&
3809 test $ol_enable_ndb = no &&
3810 test $ol_enable_null = no &&
3811 test $ol_enable_passwd = no &&
3812 test $ol_enable_perl = no &&
3813 test $ol_enable_relay = no &&
3814 test $ol_enable_shell = no &&
3815 test $ol_enable_sock = no &&
3816 test $ol_enable_sql = no ; then
3818 if test $ol_enable_slapd = yes ; then
3819 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3820 echo "$as_me: error: slapd requires a backend" >&2;}
3821 { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3824 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3829 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3830 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3831 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3832 { (exit 1); exit 1; }; }
3835 if test $ol_enable_lmpasswd = yes ; then
3836 if test $ol_with_tls = no ; then
3837 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3838 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3839 { (exit 1); exit 1; }; }
3843 if test $ol_enable_spasswd = yes ; then
3844 if test $ol_with_cyrus_sasl = no ; then
3845 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3846 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3847 { (exit 1); exit 1; }; }
3849 ol_with_cyrus_sasl=yes
3852 echo "$as_me:$LINENO: result: done" >&5
3853 echo "${ECHO_T}done" >&6
3902 BUILD_TRANSLUCENT=no
3906 SLAPD_STATIC_OVERLAYS=
3907 SLAPD_DYNAMIC_OVERLAYS=
3909 SLAPD_MODULES_LDFLAGS=
3910 SLAPD_MODULES_CPPFLAGS=
3912 SLAPD_STATIC_BACKENDS=back-ldif
3913 SLAPD_DYNAMIC_BACKENDS=
3940 cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_MKVERSION 1
3949 *-*-aix*) if test -z "$CC" ; then
3950 case "$ol_with_threads" in
3951 auto | yes | posix) ol_aix_threads=yes ;;
3957 if test $ol_aix_threads = yes ; then
3958 if test -z "${CC}" ; then
3959 for ac_prog in cc_r xlc_r cc
3961 # Extract the first word of "$ac_prog", so it can be a program name with args.
3962 set dummy $ac_prog; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_CC+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_CC="$ac_prog"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 if test -n "$CC"; then
3989 echo "$as_me:$LINENO: result: $CC" >&5
3990 echo "${ECHO_T}$CC" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 test -n "$CC" && break
4000 if test "$CC" = cc ; then
4001 if test $ol_with_threads != auto ; then
4002 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4003 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4004 { (exit 1); exit 1; }; }
4006 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4007 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4013 case ${CC} in cc_r | xlc_r)
4014 ol_with_threads=posix
4015 ol_cv_pthread_create=yes
4020 if test -z "${CC}"; then
4021 for ac_prog in cc gcc
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_CC+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_CC="$ac_prog"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 if test -n "$CC"; then
4051 echo "$as_me:$LINENO: result: $CC" >&5
4052 echo "${ECHO_T}$CC" >&6
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4058 test -n "$CC" && break
4060 test -n "$CC" || CC="missing"
4063 if test "${CC}" = "missing" ; then
4064 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4065 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4066 { (exit 1); exit 1; }; }
4070 if test -z "${AR}"; then
4071 for ac_prog in ar gar
4073 # Extract the first word of "$ac_prog", so it can be a program name with args.
4074 set dummy $ac_prog; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_AR+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$AR"; then
4081 ac_cv_prog_AR="$AR" # Let the user override the test.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090 ac_cv_prog_AR="$ac_prog"
4091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 if test -n "$AR"; then
4101 echo "$as_me:$LINENO: result: $AR" >&5
4102 echo "${ECHO_T}$AR" >&6
4104 echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4108 test -n "$AR" && break
4110 test -n "$AR" || AR="missing"
4113 if test "${AR}" = "missing" ; then
4114 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4115 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4116 { (exit 1); exit 1; }; }
4124 # Check whether --enable-fast-install or --disable-fast-install was given.
4125 if test "${enable_fast_install+set}" = set; then
4126 enableval="$enable_fast_install"
4127 p=${PACKAGE-default}
4129 yes) enable_fast_install=yes ;;
4130 no) enable_fast_install=no ;;
4132 enable_fast_install=no
4133 # Look at the argument we got. We use all the common list separators.
4134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4135 for pkg in $enableval; do
4137 if test "X$pkg" = "X$p"; then
4138 enable_fast_install=yes
4145 enable_fast_install=yes
4148 DEPDIR="${am__leading_dot}deps"
4150 ac_config_commands="$ac_config_commands depfiles"
4153 am_make=${MAKE-make}
4154 cat > confinc << 'END'
4159 # If we don't find an include directive, just comment out the code.
4160 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4161 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4165 # First try GNU make style include.
4166 echo "include confinc" > confmf
4167 # We grep out `Entering directory' and `Leaving directory'
4168 # messages which can occur if `w' ends up in MAKEFLAGS.
4169 # In particular we don't look at `^make:' because GNU make might
4170 # be invoked under some other name (usually "gmake"), in which
4171 # case it prints its new name instead of `make'.
4172 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4177 # Now try BSD make style include.
4178 if test "$am__include" = "#"; then
4179 echo '.include "confinc"' > confmf
4180 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4181 am__include=.include
4188 echo "$as_me:$LINENO: result: $_am_result" >&5
4189 echo "${ECHO_T}$_am_result" >&6
4190 rm -f confinc confmf
4192 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4193 if test "${enable_dependency_tracking+set}" = set; then
4194 enableval="$enable_dependency_tracking"
4197 if test "x$enable_dependency_tracking" != xno; then
4198 am_depcomp="$ac_aux_dir/depcomp"
4203 if test "x$enable_dependency_tracking" != xno; then
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4221 echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_CC+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 if test -n "$CC"; then
4247 echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6
4250 echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4255 if test -z "$ac_cv_prog_CC"; then
4257 # Extract the first word of "gcc", so it can be a program name with args.
4258 set dummy gcc; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$ac_ct_CC"; then
4265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_ac_ct_CC="gcc"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284 if test -n "$ac_ct_CC"; then
4285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4286 echo "${ECHO_T}$ac_ct_CC" >&6
4288 echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4297 if test -z "$CC"; then
4298 if test -n "$ac_tool_prefix"; then
4299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4300 set dummy ${ac_tool_prefix}cc; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_CC="${ac_tool_prefix}cc"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test -n "$CC"; then
4327 echo "$as_me:$LINENO: result: $CC" >&5
4328 echo "${ECHO_T}$CC" >&6
4330 echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4335 if test -z "$ac_cv_prog_CC"; then
4337 # Extract the first word of "cc", so it can be a program name with args.
4338 set dummy cc; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 if test -n "$ac_ct_CC"; then
4345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_ac_ct_CC="cc"
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4364 if test -n "$ac_ct_CC"; then
4365 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4366 echo "${ECHO_T}$ac_ct_CC" >&6
4368 echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4378 if test -z "$CC"; then
4379 # Extract the first word of "cc", so it can be a program name with args.
4380 set dummy cc; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_CC+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test -n "$CC"; then
4387 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4398 ac_prog_rejected=yes
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 if test $ac_prog_rejected = yes; then
4409 # We found a bogon in the path, so make sure we never use it.
4410 set dummy $ac_cv_prog_CC
4412 if test $# != 0; then
4413 # We chose a different compiler from the bogus one.
4414 # However, it has the same basename, so the bogon will be chosen
4415 # first if we set CC to just the basename; use the full file name.
4417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4423 if test -n "$CC"; then
4424 echo "$as_me:$LINENO: result: $CC" >&5
4425 echo "${ECHO_T}$CC" >&6
4427 echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6
4432 if test -z "$CC"; then
4433 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$CC"; then
4444 ac_cv_prog_CC="$CC" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 if test -n "$CC"; then
4464 echo "$as_me:$LINENO: result: $CC" >&5
4465 echo "${ECHO_T}$CC" >&6
4467 echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4471 test -n "$CC" && break
4474 if test -z "$CC"; then
4478 # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 if test -n "$ac_ct_CC"; then
4486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_ac_ct_CC="$ac_prog"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505 if test -n "$ac_ct_CC"; then
4506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4507 echo "${ECHO_T}$ac_ct_CC" >&6
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4513 test -n "$ac_ct_CC" && break
4522 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: no acceptable C compiler found in \$PATH
4525 See \`config.log' for more details." >&2;}
4526 { (exit 1); exit 1; }; }
4528 # Provide some information about the compiler.
4529 echo "$as_me:$LINENO:" \
4530 "checking for C compiler version" >&5
4531 ac_compiler=`set X $ac_compile; echo $2`
4532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4533 (eval $ac_compiler --version </dev/null >&5) 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }
4537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4538 (eval $ac_compiler -v </dev/null >&5) 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }
4542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4543 (eval $ac_compiler -V </dev/null >&5) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4563 ac_clean_files_save=$ac_clean_files
4564 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4565 # Try to create an executable without -o first, disregard a.out.
4566 # It will help us diagnose broken compilers, and finding out an intuition
4568 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4569 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4570 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4571 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4572 (eval $ac_link_default) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 # Find the output, starting from the most likely. This scheme is
4577 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4580 # Be careful to initialize this variable, since it used to be cached.
4581 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4583 # b.out is created by i960 compilers.
4584 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4586 test -f "$ac_file" || continue
4588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4591 # This is the source file.
4594 # We found the default executable, but exeext='' is most
4598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4599 # FIXME: I believe we export ac_cv_exeext for Libtool,
4600 # but it would be cool to find out if it's true. Does anybody
4601 # maintain Libtool? --akim.
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4613 See \`config.log' for more details." >&5
4614 echo "$as_me: error: C compiler cannot create executables
4615 See \`config.log' for more details." >&2;}
4616 { (exit 77); exit 77; }; }
4619 ac_exeext=$ac_cv_exeext
4620 echo "$as_me:$LINENO: result: $ac_file" >&5
4621 echo "${ECHO_T}$ac_file" >&6
4623 # Check the compiler produces executables we can run. If not, either
4624 # the compiler is broken, or we cross compile.
4625 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4626 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4627 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4628 # If not cross compiling, check that we can run a simple program.
4629 if test "$cross_compiling" != yes; then
4630 if { ac_try='./$ac_file'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4638 if test "$cross_compiling" = maybe; then
4641 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4642 If you meant to cross compile, use \`--host'.
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot run C compiled programs.
4645 If you meant to cross compile, use \`--host'.
4646 See \`config.log' for more details." >&2;}
4647 { (exit 1); exit 1; }; }
4651 echo "$as_me:$LINENO: result: yes" >&5
4652 echo "${ECHO_T}yes" >&6
4654 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4655 ac_clean_files=$ac_clean_files_save
4656 # Check the compiler produces executables we can run. If not, either
4657 # the compiler is broken, or we cross compile.
4658 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4659 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4660 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4661 echo "${ECHO_T}$cross_compiling" >&6
4663 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4664 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; then
4670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4672 # work properly (i.e., refer to `conftest.exe'), while it won't with
4674 for ac_file in conftest.exe conftest conftest.*; do
4675 test -f "$ac_file" || continue
4677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4685 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4688 See \`config.log' for more details." >&2;}
4689 { (exit 1); exit 1; }; }
4692 rm -f conftest$ac_cv_exeext
4693 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4694 echo "${ECHO_T}$ac_cv_exeext" >&6
4696 rm -f conftest.$ac_ext
4697 EXEEXT=$ac_cv_exeext
4699 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4700 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4701 if test "${ac_cv_objext+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4719 rm -f conftest.o conftest.obj
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; then
4725 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; }
4743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4746 echo "${ECHO_T}$ac_cv_objext" >&6
4747 OBJEXT=$ac_cv_objext
4749 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4750 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4751 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_c_werror_flag"
4782 || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4805 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4806 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4807 GCC=`test $ac_compiler_gnu = yes && echo yes`
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4811 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4813 if test "${ac_cv_prog_cc_g+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4863 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4864 if test "$ac_test_CFLAGS" = set; then
4865 CFLAGS=$ac_save_CFLAGS
4866 elif test $ac_cv_prog_cc_g = yes; then
4867 if test "$GCC" = yes; then
4873 if test "$GCC" = yes; then
4879 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4880 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4881 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 ac_cv_prog_cc_stdc=no
4886 cat >conftest.$ac_ext <<_ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4894 #include <sys/types.h>
4895 #include <sys/stat.h>
4896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4897 struct buf { int x; };
4898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4899 static char *e (p, i)
4905 static char *f (char * (*g) (char **, int), char **p, ...)
4910 s = g (p, va_arg (v,int));
4915 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4916 function prototypes and stuff, but not '\xHH' hex character constants.
4917 These don't provoke an error unfortunately, instead are silently treated
4918 as 'x'. The following induces an error, until -std1 is added to get
4919 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4920 array size at least. It's necessary to write '\x00'==0 to get something
4921 that's true only with -std1. */
4922 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4924 int test (int i, double x);
4925 struct s1 {int (*f) (int a);};
4926 struct s2 {int (*f) (double a);};
4927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4933 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4938 # Don't try gcc -ansi; that turns off useful extensions and
4939 # breaks some systems' header files.
4940 # AIX -qlanglvl=ansi
4941 # Ultrix and OSF/1 -std1
4942 # HP-UX 10.20 and later -Ae
4943 # HP-UX older versions -Aa -D_HPUX_SOURCE
4944 # SVR4 -Xc -D__EXTENSIONS__
4945 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4947 CC="$ac_save_CC $ac_arg"
4948 rm -f conftest.$ac_objext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950 (eval $ac_compile) 2>conftest.er1
4952 grep -v '^ *+' conftest.er1 >conftest.err
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -z "$ac_c_werror_flag"
4958 || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_prog_cc_stdc=$ac_arg
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4977 rm -f conftest.err conftest.$ac_objext
4979 rm -f conftest.$ac_ext conftest.$ac_objext
4984 case "x$ac_cv_prog_cc_stdc" in
4986 echo "$as_me:$LINENO: result: none needed" >&5
4987 echo "${ECHO_T}none needed" >&6 ;;
4989 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4990 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4991 CC="$CC $ac_cv_prog_cc_stdc" ;;
4994 # Some people use a C++ compiler to compile C. Since we use `exit',
4995 # in C++ we need to declare it. In case someone uses the same compiler
4996 # for both compiling C and C++ we need to have the C++ compiler decide
4997 # the declaration of exit, since it's the most demanding environment.
4998 cat >conftest.$ac_ext <<_ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 for ac_declaration in \
5027 'extern "C" void std::exit (int) throw (); using std::exit;' \
5028 'extern "C" void std::exit (int); using std::exit;' \
5029 'extern "C" void exit (int) throw ();' \
5030 'extern "C" void exit (int);' \
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5049 rm -f conftest.$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>conftest.er1
5053 grep -v '^ *+' conftest.er1 >conftest.err
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -z "$ac_c_werror_flag"
5059 || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5125 if test -n "$ac_declaration"; then
5126 echo '#ifdef __cplusplus' >>confdefs.h
5127 echo $ac_declaration >>confdefs.h
5128 echo '#endif' >>confdefs.h
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143 depcc="$CC" am_compiler_list=
5145 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5146 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5147 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5151 # We make a subdir and do the tests there. Otherwise we can end up
5152 # making bogus files that we don't know about and never remove. For
5153 # instance it was reported that on HP-UX the gcc test will end up
5154 # making a dummy file named `D' -- because `-MD' means `put the output
5157 # Copy depcomp to subdir because otherwise we won't find it if we're
5158 # using a relative directory.
5159 cp "$am_depcomp" conftest.dir
5161 # We will build objects and dependencies in a subdirectory because
5162 # it helps to detect inapplicable dependency modes. For instance
5163 # both Tru64's cc and ICC support -MD to output dependencies as a
5164 # side effect of compilation, but ICC will put the dependencies in
5165 # the current directory while Tru64 will put them in the object
5169 am_cv_CC_dependencies_compiler_type=none
5170 if test "$am_compiler_list" = ""; then
5171 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5173 for depmode in $am_compiler_list; do
5174 # Setup a source with many dependencies, because some compilers
5175 # like to wrap large dependency lists on column 80 (with \), and
5176 # we should not choose a depcomp mode which is confused by this.
5178 # We need to recreate these files for each test, as the compiler may
5179 # overwrite some of them when testing with obscure command lines.
5180 # This happens at least with the AIX C compiler.
5182 for i in 1 2 3 4 5 6; do
5183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5185 # Solaris 8's {/usr,}/bin/sh.
5186 touch sub/conftst$i.h
5188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5192 # after this tag, mechanisms are not by side-effect, so they'll
5193 # only be used when explicitly requested
5194 if test "x$enable_dependency_tracking" = xyes; then
5202 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5203 # mode. It turns out that the SunPro C++ compiler does not properly
5204 # handle `-M -o', and we need to detect this.
5205 if depmode=$depmode \
5206 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5207 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5208 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5209 >/dev/null 2>conftest.err &&
5210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5211 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5213 # icc doesn't choke on unknown options, it will just issue warnings
5214 # or remarks (even with -Werror). So we grep stderr for any message
5215 # that says an option was ignored or not supported.
5216 # When given -MP, icc 7.0 and 7.1 complain thusly:
5217 # icc: Command line warning: ignoring option '-M'; no argument required
5218 # The diagnosis changed in icc 8.0:
5219 # icc: Command line remark: option '-MP' not supported
5220 if (grep 'ignoring option' conftest.err ||
5221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5222 am_cv_CC_dependencies_compiler_type=$depmode
5231 am_cv_CC_dependencies_compiler_type=none
5235 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5236 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5237 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5242 test "x$enable_dependency_tracking" != xno \
5243 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5245 am__fastdepCC_FALSE='#'
5247 am__fastdepCC_TRUE='#'
5248 am__fastdepCC_FALSE=
5252 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5253 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5254 if test "${lt_cv_path_SED+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 # Loop through the user's path and test for sed and gsed.
5258 # Then use that list of sed's as ones to test for truncation.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for lt_ac_prog in sed gsed; do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5267 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5274 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5275 # along with /bin/sed that truncates output.
5276 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5277 test ! -f $lt_ac_sed && continue
5278 cat /dev/null > conftest.in
5280 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5281 # Check for GNU sed and select it if it is found.
5282 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5283 lt_cv_path_SED=$lt_ac_sed
5287 cat conftest.in conftest.in >conftest.tmp
5288 mv conftest.tmp conftest.in
5289 cp conftest.in conftest.nl
5291 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5292 cmp -s conftest.out conftest.nl || break
5293 # 10000 chars as input seems more than enough
5294 test $lt_ac_count -gt 10 && break
5295 lt_ac_count=`expr $lt_ac_count + 1`
5296 if test $lt_ac_count -gt $lt_ac_max; then
5297 lt_ac_max=$lt_ac_count
5298 lt_cv_path_SED=$lt_ac_sed
5306 echo "$as_me:$LINENO: result: $SED" >&5
5307 echo "${ECHO_T}$SED" >&6
5309 echo "$as_me:$LINENO: checking for egrep" >&5
5310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5311 if test "${ac_cv_prog_egrep+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5315 then ac_cv_prog_egrep='grep -E'
5316 else ac_cv_prog_egrep='egrep'
5319 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5320 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5321 EGREP=$ac_cv_prog_egrep
5325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5326 if test "${with_gnu_ld+set}" = set; then
5327 withval="$with_gnu_ld"
5328 test "$withval" = no || with_gnu_ld=yes
5333 if test "$GCC" = yes; then
5334 # Check if gcc -print-prog-name=ld gives a path.
5335 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5336 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5339 # gcc leaves a trailing carriage return which upsets mingw
5340 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5342 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5345 # Accept absolute paths.
5347 re_direlt='/[^/][^/]*/\.\./'
5348 # Canonicalize the pathname of ld
5349 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5350 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5351 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5353 test -z "$LD" && LD="$ac_prog"
5356 # If it fails, then pretend we aren't using GCC.
5360 # If it is relative, then search for the first ld in PATH.
5364 elif test "$with_gnu_ld" = yes; then
5365 echo "$as_me:$LINENO: checking for GNU ld" >&5
5366 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5368 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5369 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5371 if test "${lt_cv_path_LD+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 if test -z "$LD"; then
5375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5376 for ac_dir in $PATH; do
5378 test -z "$ac_dir" && ac_dir=.
5379 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5380 lt_cv_path_LD="$ac_dir/$ac_prog"
5381 # Check to see if the program is GNU ld. I'd rather use --version,
5382 # but apparently some variants of GNU ld only accept -v.
5383 # Break only if it was the GNU/non-GNU ld that we prefer.
5384 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5385 *GNU* | *'with BFD'*)
5386 test "$with_gnu_ld" != no && break
5389 test "$with_gnu_ld" != yes && break
5396 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5401 if test -n "$LD"; then
5402 echo "$as_me:$LINENO: result: $LD" >&5
5403 echo "${ECHO_T}$LD" >&6
5405 echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5408 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5409 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5410 { (exit 1); exit 1; }; }
5411 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5412 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5413 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5417 case `$LD -v 2>&1 </dev/null` in
5418 *GNU* | *'with BFD'*)
5419 lt_cv_prog_gnu_ld=yes
5422 lt_cv_prog_gnu_ld=no
5426 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5427 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5428 with_gnu_ld=$lt_cv_prog_gnu_ld
5431 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5432 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5433 if test "${lt_cv_ld_reload_flag+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 lt_cv_ld_reload_flag='-r'
5438 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5439 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5440 reload_flag=$lt_cv_ld_reload_flag
5441 case $reload_flag in
5443 *) reload_flag=" $reload_flag" ;;
5445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5448 if test "$GCC" = yes; then
5449 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5451 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5457 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5458 if test "${lt_cv_path_NM+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 if test -n "$NM"; then
5462 # Let the user override the test.
5465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5466 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5468 test -z "$ac_dir" && ac_dir=.
5469 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5470 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5471 # Check to see if the nm accepts a BSD-compat flag.
5472 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5473 # nm: unknown option "B" ignored
5474 # Tru64's nm complains that /dev/null is an invalid object file
5475 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5476 */dev/null* | *'Invalid file or object type'*)
5477 lt_cv_path_NM="$tmp_nm -B"
5481 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5483 lt_cv_path_NM="$tmp_nm -p"
5487 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5488 continue # so that we can try to find one that supports BSD flags
5495 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5498 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5499 echo "${ECHO_T}$lt_cv_path_NM" >&6
5502 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5505 if test "$LN_S" = "ln -s"; then
5506 echo "$as_me:$LINENO: result: yes" >&5
5507 echo "${ECHO_T}yes" >&6
5509 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5510 echo "${ECHO_T}no, using $LN_S" >&6
5513 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5514 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5515 if test "${lt_cv_deplibs_check_method+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 lt_cv_file_magic_cmd='$MAGIC_CMD'
5519 lt_cv_file_magic_test_file=
5520 lt_cv_deplibs_check_method='unknown'
5521 # Need to set the preceding variable on all platforms that support
5522 # interlibrary dependencies.
5523 # 'none' -- dependencies not supported.
5524 # `unknown' -- same as none, but documents that we really don't know.
5525 # 'pass_all' -- all dependencies passed with no checks.
5526 # 'test_compile' -- check by making test program.
5527 # 'file_magic [[regex]]' -- check by looking for files in library path
5528 # which responds to the $file_magic_cmd with a given extended regex.
5529 # If you have `file' or equivalent on your system and you're not sure
5530 # whether `pass_all' will *always* work, you probably want this one.
5534 lt_cv_deplibs_check_method=pass_all
5538 lt_cv_deplibs_check_method=pass_all
5542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5543 lt_cv_file_magic_cmd='/usr/bin/file -L'
5544 lt_cv_file_magic_test_file=/shlib/libc.so
5548 # func_win32_libid is a shell function defined in ltmain.sh
5549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5550 lt_cv_file_magic_cmd='func_win32_libid'
5554 # Base MSYS/MinGW do not provide the 'file' command needed by
5555 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5557 lt_cv_file_magic_cmd='$OBJDUMP -f'
5560 darwin* | rhapsody*)
5561 lt_cv_deplibs_check_method=pass_all
5564 freebsd* | kfreebsd*-gnu | dragonfly*)
5565 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5568 # Not sure whether the presence of OpenBSD here was a mistake.
5569 # Let's accept both of them until this is cleared up.
5570 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5571 lt_cv_file_magic_cmd=/usr/bin/file
5572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5576 lt_cv_deplibs_check_method=pass_all
5581 lt_cv_deplibs_check_method=pass_all
5584 hpux10.20* | hpux11*)
5585 lt_cv_file_magic_cmd=/usr/bin/file
5588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5592 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]'
5593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5602 irix5* | irix6* | nonstopux*)
5604 *-32|*"-32 ") libmagic=32-bit;;
5605 *-n32|*"-n32 ") libmagic=N32;;
5606 *-64|*"-64 ") libmagic=64-bit;;
5607 *) libmagic=never-match;;
5609 lt_cv_deplibs_check_method=pass_all
5612 # This must be Linux ELF.
5614 lt_cv_deplibs_check_method=pass_all
5618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5627 lt_cv_file_magic_cmd=/usr/bin/file
5628 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5632 lt_cv_deplibs_check_method=unknown
5636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5643 osf3* | osf4* | osf5*)
5644 lt_cv_deplibs_check_method=pass_all
5648 lt_cv_deplibs_check_method=pass_all
5652 lt_cv_deplibs_check_method=pass_all
5655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5656 case $host_vendor in
5658 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]'
5659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5662 lt_cv_deplibs_check_method=pass_all
5665 lt_cv_file_magic_cmd='/bin/file'
5666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5669 lt_cv_file_magic_cmd='/bin/file'
5670 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5671 lt_cv_file_magic_test_file=/lib/libc.so
5674 lt_cv_deplibs_check_method=pass_all
5679 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5680 lt_cv_deplibs_check_method=pass_all
5685 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5686 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5687 file_magic_cmd=$lt_cv_file_magic_cmd
5688 deplibs_check_method=$lt_cv_deplibs_check_method
5689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5694 # If no C compiler was specified, use CC.
5697 # Allow CC to be a program name with arguments.
5701 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5702 if test "${enable_libtool_lock+set}" = set; then
5703 enableval="$enable_libtool_lock"
5706 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5708 # Some flags need to be propagated to the compiler or linker for good
5712 # Find out which ABI we are using.
5713 echo 'int i;' > conftest.$ac_ext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; then
5719 case `/usr/bin/file conftest.$ac_objext` in
5731 # Find out which ABI we are using.
5732 echo '#line 5732 "configure"' > conftest.$ac_ext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; then
5738 if test "$lt_cv_prog_gnu_ld" = yes; then
5739 case `/usr/bin/file conftest.$ac_objext` in
5741 LD="${LD-ld} -melf32bsmip"
5744 LD="${LD-ld} -melf32bmipn32"
5747 LD="${LD-ld} -melf64bmip"
5751 case `/usr/bin/file conftest.$ac_objext` in
5767 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5768 # Find out which ABI we are using.
5769 echo 'int i;' > conftest.$ac_ext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; then
5775 case `/usr/bin/file conftest.o` in
5779 LD="${LD-ld} -m elf_i386"
5781 ppc64-*linux*|powerpc64-*linux*)
5782 LD="${LD-ld} -m elf32ppclinux"
5785 LD="${LD-ld} -m elf_s390"
5788 LD="${LD-ld} -m elf32_sparc"
5795 LD="${LD-ld} -m elf_x86_64"
5797 ppc*-*linux*|powerpc*-*linux*)
5798 LD="${LD-ld} -m elf64ppc"
5801 LD="${LD-ld} -m elf64_s390"
5804 LD="${LD-ld} -m elf64_sparc"
5814 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5815 SAVE_CFLAGS="$CFLAGS"
5816 CFLAGS="$CFLAGS -belf"
5817 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5818 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5819 if test "${lt_cv_cc_needs_belf+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828 cat >conftest.$ac_ext <<_ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845 (eval $ac_link) 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -z "$ac_c_werror_flag"
5853 || test ! -s conftest.err'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest$ac_exeext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 lt_cv_cc_needs_belf=yes
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 lt_cv_cc_needs_belf=no
5872 rm -f conftest.err conftest.$ac_objext \
5873 conftest$ac_exeext conftest.$ac_ext
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5882 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5883 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885 CFLAGS="$SAVE_CFLAGS"
5888 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 if test -n "$DLLTOOL"; then
5898 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 DLLTOOL=$ac_cv_prog_DLLTOOL
5917 if test -n "$DLLTOOL"; then
5918 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5919 echo "${ECHO_T}$DLLTOOL" >&6
5921 echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5926 if test -z "$ac_cv_prog_DLLTOOL"; then
5927 ac_ct_DLLTOOL=$DLLTOOL
5928 # Extract the first word of "dlltool", so it can be a program name with args.
5929 set dummy dlltool; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 if test -n "$ac_ct_DLLTOOL"; then
5936 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5955 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5956 if test -n "$ac_ct_DLLTOOL"; then
5957 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5958 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5964 DLLTOOL=$ac_ct_DLLTOOL
5966 DLLTOOL="$ac_cv_prog_DLLTOOL"
5969 if test -n "$ac_tool_prefix"; then
5970 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}as; ac_word=$2
5972 echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5974 if test "${ac_cv_prog_AS+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 if test -n "$AS"; then
5978 ac_cv_prog_AS="$AS" # Let the user override the test.
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_AS="${ac_tool_prefix}as"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 if test -n "$AS"; then
5998 echo "$as_me:$LINENO: result: $AS" >&5
5999 echo "${ECHO_T}$AS" >&6
6001 echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6006 if test -z "$ac_cv_prog_AS"; then
6008 # Extract the first word of "as", so it can be a program name with args.
6009 set dummy as; ac_word=$2
6010 echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 if test -n "$ac_ct_AS"; then
6016 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_ac_ct_AS="as"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6035 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6036 if test -n "$ac_ct_AS"; then
6037 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6038 echo "${ECHO_T}$ac_ct_AS" >&6
6040 echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6052 echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 if test -n "$OBJDUMP"; then
6058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 OBJDUMP=$ac_cv_prog_OBJDUMP
6077 if test -n "$OBJDUMP"; then
6078 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6079 echo "${ECHO_T}$OBJDUMP" >&6
6081 echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6086 if test -z "$ac_cv_prog_OBJDUMP"; then
6087 ac_ct_OBJDUMP=$OBJDUMP
6088 # Extract the first word of "objdump", so it can be a program name with args.
6089 set dummy objdump; ac_word=$2
6090 echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6092 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 if test -n "$ac_ct_OBJDUMP"; then
6096 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6116 if test -n "$ac_ct_OBJDUMP"; then
6117 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6118 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6120 echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6124 OBJDUMP=$ac_ct_OBJDUMP
6126 OBJDUMP="$ac_cv_prog_OBJDUMP"
6133 need_locks="$enable_libtool_lock"
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6143 # On Suns, sometimes $CPP names a directory.
6144 if test -n "$CPP" && test -d "$CPP"; then
6147 if test -z "$CPP"; then
6148 if test "${ac_cv_prog_CPP+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 # Double quotes because CPP needs to be expanded
6152 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6155 for ac_c_preproc_warn_flag in '' yes
6157 # Use a header file that comes with gcc, so configuring glibc
6158 # with a fresh cross-compiler works.
6159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160 # <limits.h> exists even on freestanding compilers.
6161 # On the NeXT, cc -E runs the code through the compiler's parser,
6162 # not just through cpp. "Syntax error" is here to catch this case.
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6170 # include <limits.h>
6172 # include <assert.h>
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } >/dev/null; then
6184 if test -s conftest.err; then
6185 ac_cpp_err=$ac_c_preproc_warn_flag
6186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6193 if test -z "$ac_cpp_err"; then
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 # Broken: fails on valid input.
6202 rm -f conftest.err conftest.$ac_ext
6204 # OK, works on sane cases. Now check whether non-existent headers
6205 # can be detected and how.
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 #include <ac_nonexistent.h>
6214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } >/dev/null; then
6222 if test -s conftest.err; then
6223 ac_cpp_err=$ac_c_preproc_warn_flag
6224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6231 if test -z "$ac_cpp_err"; then
6232 # Broken: success on invalid input.
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 # Passes both tests.
6242 rm -f conftest.err conftest.$ac_ext
6245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6246 rm -f conftest.err conftest.$ac_ext
6247 if $ac_preproc_ok; then
6259 echo "$as_me:$LINENO: result: $CPP" >&5
6260 echo "${ECHO_T}$CPP" >&6
6262 for ac_c_preproc_warn_flag in '' yes
6264 # Use a header file that comes with gcc, so configuring glibc
6265 # with a fresh cross-compiler works.
6266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267 # <limits.h> exists even on freestanding compilers.
6268 # On the NeXT, cc -E runs the code through the compiler's parser,
6269 # not just through cpp. "Syntax error" is here to catch this case.
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6277 # include <limits.h>
6279 # include <assert.h>
6283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } >/dev/null; then
6291 if test -s conftest.err; then
6292 ac_cpp_err=$ac_c_preproc_warn_flag
6293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6300 if test -z "$ac_cpp_err"; then
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 # Broken: fails on valid input.
6309 rm -f conftest.err conftest.$ac_ext
6311 # OK, works on sane cases. Now check whether non-existent headers
6312 # can be detected and how.
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <ac_nonexistent.h>
6321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6324 grep -v '^ *+' conftest.er1 >conftest.err
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } >/dev/null; then
6329 if test -s conftest.err; then
6330 ac_cpp_err=$ac_c_preproc_warn_flag
6331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6338 if test -z "$ac_cpp_err"; then
6339 # Broken: success on invalid input.
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 # Passes both tests.
6349 rm -f conftest.err conftest.$ac_ext
6352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6353 rm -f conftest.err conftest.$ac_ext
6354 if $ac_preproc_ok; then
6357 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6358 See \`config.log' for more details." >&5
6359 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6360 See \`config.log' for more details." >&2;}
6361 { (exit 1); exit 1; }; }
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6371 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6373 if test "${ac_cv_header_stdc+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag"
6405 || test ! -s conftest.err'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_header_stdc=yes
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 ac_cv_header_stdc=no
6424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426 if test $ac_cv_header_stdc = yes; then
6427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 $EGREP "memchr" >/dev/null 2>&1; then
6441 ac_cv_header_stdc=no
6447 if test $ac_cv_header_stdc = yes; then
6448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459 $EGREP "free" >/dev/null 2>&1; then
6462 ac_cv_header_stdc=no
6468 if test $ac_cv_header_stdc = yes; then
6469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6470 if test "$cross_compiling" = yes; then
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6480 #if ((' ' & 0x0FF) == 0x020)
6481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6484 # define ISLOWER(c) \
6485 (('a' <= (c) && (c) <= 'i') \
6486 || ('j' <= (c) && (c) <= 'r') \
6487 || ('s' <= (c) && (c) <= 'z'))
6488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6496 for (i = 0; i < 256; i++)
6497 if (XOR (islower (i), ISLOWER (i))
6498 || toupper (i) != TOUPPER (i))
6503 rm -f conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6516 echo "$as_me: program exited with status $ac_status" >&5
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6521 ac_cv_header_stdc=no
6523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6528 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6529 if test $ac_cv_header_stdc = yes; then
6531 cat >>confdefs.h <<\_ACEOF
6532 #define STDC_HEADERS 1
6537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6548 inttypes.h stdint.h unistd.h
6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 $ac_includes_default
6564 #include <$ac_header>
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 eval "$as_ac_Header=yes"
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 eval "$as_ac_Header=no"
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 for ac_header in dlfcn.h
6612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6614 echo "$as_me:$LINENO: checking for $ac_header" >&5
6615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6622 # Is the header compilable?
6623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 $ac_includes_default
6632 #include <$ac_header>
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_header_compiler=yes
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 ac_header_compiler=no
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <$ac_header>
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev/null; then
6686 if test -s conftest.err; then
6687 ac_cpp_err=$ac_c_preproc_warn_flag
6688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6695 if test -z "$ac_cpp_err"; then
6696 ac_header_preproc=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_header_preproc=no
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6707 # So? What about this header?
6708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6714 ac_header_preproc=yes
6717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6731 ## --------------------------------------------- ##
6732 ## Report this to <http://www.openldap.org/its/> ##
6733 ## --------------------------------------------- ##
6736 sed "s/^/$as_me: WARNING: /" >&2
6739 echo "$as_me:$LINENO: checking for $ac_header" >&5
6740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 eval "$as_ac_Header=\$ac_header_preproc"
6746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6751 cat >>confdefs.h <<_ACEOF
6752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6760 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6762 # find the maximum length of command line arguments
6763 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6764 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 # On DJGPP, this test can blow up pretty badly due to problems in libc
6774 # (any single argument exceeding 2000 bytes causes a buffer overrun
6775 # during glob expansion). Even if it were fixed, the result of this
6776 # check would be larger than it should be.
6777 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6781 # Under GNU Hurd, this test is not required because there is
6782 # no limit to the length of command line arguments.
6783 # Libtool will interpret -1 as no limit whatsoever
6784 lt_cv_sys_max_cmd_len=-1;
6788 # On Win9x/ME, this test blows up -- it succeeds, but takes
6789 # about 5 minutes as the teststring grows exponentially.
6790 # Worse, since 9x/ME are not pre-emptively multitasking,
6791 # you end up with a "frozen" computer, even though with patience
6792 # the test eventually succeeds (with a max line length of 256k).
6793 # Instead, let's just punt: use the minimum linelength reported by
6794 # all of the supported platforms: 8192 (on NT/2K/XP).
6795 lt_cv_sys_max_cmd_len=8192;
6799 # On AmigaOS with pdksh, this test takes hours, literally.
6800 # So we just punt and use a minimum line length of 8192.
6801 lt_cv_sys_max_cmd_len=8192;
6804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6805 # This has been around since 386BSD, at least. Likely further.
6806 if test -x /sbin/sysctl; then
6807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6808 elif test -x /usr/sbin/sysctl; then
6809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6813 # And add a safety zone
6814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6818 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6819 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6820 # nice to cause kernel panics so lets avoid the loop below.
6821 # First set a reasonable default.
6822 lt_cv_sys_max_cmd_len=16384
6824 if test -x /sbin/sysconfig; then
6825 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6826 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6831 # If test is not a shell built-in, we'll probably end up computing a
6832 # maximum length that is only half of the actual maximum length, but
6834 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6835 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6836 = "XX$teststring") >/dev/null 2>&1 &&
6837 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6838 lt_cv_sys_max_cmd_len=$new_result &&
6839 test $i != 17 # 1/2 MB should be enough
6842 teststring=$teststring$teststring
6845 # Add a significant safety factor because C++ compilers can tack on massive
6846 # amounts of additional arguments before passing them to the linker.
6847 # It appears as though 1/2 is a usable value.
6848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6854 if test -n $lt_cv_sys_max_cmd_len ; then
6855 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6856 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6858 echo "$as_me:$LINENO: result: none" >&5
6859 echo "${ECHO_T}none" >&6
6865 # Check for command to grab the raw symbol name followed by C symbol from nm.
6866 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6867 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6868 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 # These are sane defaults that work on at least a few old systems.
6873 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6875 # Character class describing NM global symbol codes.
6876 symcode='[BCDEGRST]'
6878 # Regexp to match symbols that can be accessed directly from C.
6879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6881 # Transform an extracted symbol line into a proper C declaration
6882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6884 # Transform an extracted symbol line into symbol name and symbol address
6885 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'"
6887 # Define system-specific variables.
6892 cygwin* | mingw* | pw32*)
6893 symcode='[ABCDGISTW]'
6895 hpux*) # Its linker distinguishes data from code symbols
6896 if test "$host_cpu" = ia64; then
6897 symcode='[ABCDEGRST]'
6899 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6900 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'"
6903 if test "$host_cpu" = ia64; then
6904 symcode='[ABCDGIRSTW]'
6905 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6906 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'"
6910 symcode='[BCDEGRST]'
6913 symcode='[BCDEGQRST]'
6923 # Handle CRLF in mingw tool chain
6927 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6931 # If we're using GNU nm, then use its standard symbol codes.
6932 case `$NM -V 2>&1` in
6933 *GNU* | *'with BFD'*)
6934 symcode='[ABCDGIRSTW]' ;;
6937 # Try without a prefix undercore, then with it.
6938 for ac_symprfx in "" "_"; do
6940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6941 symxfrm="\\1 $ac_symprfx\\2 \\2"
6943 # Write the raw and C identifiers.
6944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6946 # Check to see that the pipe works correctly.
6950 cat > conftest.$ac_ext <<EOF
6955 void nm_test_func(){}
6959 int main(){nm_test_var='a';nm_test_func();return(0);}
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; then
6967 # Now try to grab the symbols.
6969 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6970 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && test -s "$nlist"; then
6974 # Try sorting and uniquifying the output.
6975 if sort "$nlist" | uniq > "$nlist"T; then
6976 mv -f "$nlist"T "$nlist"
6981 # Make sure that we snagged all the symbols we need.
6982 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6983 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6984 cat <<EOF > conftest.$ac_ext
6990 # Now generate the symbol file.
6991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6993 cat <<EOF >> conftest.$ac_ext
6994 #if defined (__STDC__) && __STDC__
6995 # define lt_ptr_t void *
6997 # define lt_ptr_t char *
7001 /* The mapping between symbol names and symbols. */
7006 lt_preloaded_symbols[] =
7009 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7010 cat <<\EOF >> conftest.$ac_ext
7018 # Now try linking the two files.
7019 mv conftest.$ac_objext conftstm.$ac_objext
7020 lt_save_LIBS="$LIBS"
7021 lt_save_CFLAGS="$CFLAGS"
7022 LIBS="conftstm.$ac_objext"
7023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025 (eval $ac_link) 2>&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7031 LIBS="$lt_save_LIBS"
7032 CFLAGS="$lt_save_CFLAGS"
7034 echo "cannot find nm_test_func in $nlist" >&5
7037 echo "cannot find nm_test_var in $nlist" >&5
7040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7043 echo "$progname: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 rm -f conftest* conftst*
7048 # Do not use the global_symbol_pipe unless it works.
7049 if test "$pipe_works" = yes; then
7052 lt_cv_sys_global_symbol_pipe=
7058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059 lt_cv_sys_global_symbol_to_cdecl=
7061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062 echo "$as_me:$LINENO: result: failed" >&5
7063 echo "${ECHO_T}failed" >&6
7065 echo "$as_me:$LINENO: result: ok" >&5
7066 echo "${ECHO_T}ok" >&6
7069 echo "$as_me:$LINENO: checking for objdir" >&5
7070 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7071 if test "${lt_cv_objdir+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 rm -f .libs 2>/dev/null
7075 mkdir .libs 2>/dev/null
7076 if test -d .libs; then
7079 # MS-DOS does not allow filenames that begin with a dot.
7082 rmdir .libs 2>/dev/null
7084 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7085 echo "${ECHO_T}$lt_cv_objdir" >&6
7086 objdir=$lt_cv_objdir
7094 # AIX sometimes has problems with the GCC collect2 program. For some
7095 # reason, if we set the COLLECT_NAMES environment variable, the problems
7096 # vanish in a puff of smoke.
7097 if test "X${COLLECT_NAMES+set}" != Xset; then
7099 export COLLECT_NAMES
7104 # Sed substitution that helps us do robust quoting. It backslashifies
7105 # metacharacters that are still active within double-quoted strings.
7106 Xsed='sed -e 1s/^X//'
7107 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7109 # Same as above, but do not quote variable references.
7110 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7112 # Sed substitution to delay expansion of an escaped shell variable in a
7113 # double_quote_subst'ed string.
7114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7116 # Sed substitution to avoid accidental globbing in evaled expressions
7117 no_glob_subst='s/\*/\\\*/g'
7123 default_ofile=libtool
7124 can_build_shared=yes
7126 # All known linkers require a `.a' archive for static linking (except MSVC,
7127 # which needs '.lib').
7129 ltmain="$ac_aux_dir/ltmain.sh"
7130 ofile="$default_ofile"
7131 with_gnu_ld="$lt_cv_prog_gnu_ld"
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}ar; ac_word=$2
7136 echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138 if test "${ac_cv_prog_AR+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test -n "$AR"; then
7142 ac_cv_prog_AR="$AR" # Let the user override the test.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_AR="${ac_tool_prefix}ar"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 if test -n "$AR"; then
7162 echo "$as_me:$LINENO: result: $AR" >&5
7163 echo "${ECHO_T}$AR" >&6
7165 echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7170 if test -z "$ac_cv_prog_AR"; then
7172 # Extract the first word of "ar", so it can be a program name with args.
7173 set dummy ar; ac_word=$2
7174 echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 if test -n "$ac_ct_AR"; then
7180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_AR="ar"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7200 if test -n "$ac_ct_AR"; then
7201 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7202 echo "${ECHO_T}$ac_ct_AR" >&6
7204 echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7213 if test -n "$ac_tool_prefix"; then
7214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7216 echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7218 if test "${ac_cv_prog_RANLIB+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 if test -n "$RANLIB"; then
7222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 RANLIB=$ac_cv_prog_RANLIB
7241 if test -n "$RANLIB"; then
7242 echo "$as_me:$LINENO: result: $RANLIB" >&5
7243 echo "${ECHO_T}$RANLIB" >&6
7245 echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7250 if test -z "$ac_cv_prog_RANLIB"; then
7251 ac_ct_RANLIB=$RANLIB
7252 # Extract the first word of "ranlib", so it can be a program name with args.
7253 set dummy ranlib; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if test -n "$ac_ct_RANLIB"; then
7260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_RANLIB="ranlib"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7280 if test -n "$ac_ct_RANLIB"; then
7281 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7284 echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7288 RANLIB=$ac_ct_RANLIB
7290 RANLIB="$ac_cv_prog_RANLIB"
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}strip; ac_word=$2
7296 echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7298 if test "${ac_cv_prog_STRIP+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 if test -n "$STRIP"; then
7302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 STRIP=$ac_cv_prog_STRIP
7321 if test -n "$STRIP"; then
7322 echo "$as_me:$LINENO: result: $STRIP" >&5
7323 echo "${ECHO_T}$STRIP" >&6
7325 echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7330 if test -z "$ac_cv_prog_STRIP"; then
7332 # Extract the first word of "strip", so it can be a program name with args.
7333 set dummy strip; ac_word=$2
7334 echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 if test -n "$ac_ct_STRIP"; then
7340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_ac_ct_STRIP="strip"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7360 if test -n "$ac_ct_STRIP"; then
7361 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7362 echo "${ECHO_T}$ac_ct_STRIP" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7370 STRIP="$ac_cv_prog_STRIP"
7375 old_CFLAGS="$CFLAGS"
7377 # Set sane defaults for various variables
7378 test -z "$AR" && AR=ar
7379 test -z "$AR_FLAGS" && AR_FLAGS=cru
7380 test -z "$AS" && AS=as
7381 test -z "$CC" && CC=cc
7382 test -z "$LTCC" && LTCC=$CC
7383 test -z "$DLLTOOL" && DLLTOOL=dlltool
7384 test -z "$LD" && LD=ld
7385 test -z "$LN_S" && LN_S="ln -s"
7386 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7387 test -z "$NM" && NM=nm
7388 test -z "$SED" && SED=sed
7389 test -z "$OBJDUMP" && OBJDUMP=objdump
7390 test -z "$RANLIB" && RANLIB=:
7391 test -z "$STRIP" && STRIP=:
7392 test -z "$ac_objext" && ac_objext=o
7394 # Determine commands to create old-style static archives.
7395 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7396 old_postinstall_cmds='chmod 644 $oldlib'
7397 old_postuninstall_cmds=
7399 if test -n "$RANLIB"; then
7402 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7405 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7408 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7411 for cc_temp in $compiler""; do
7413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7419 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7422 # Only perform the check for file, if the check method requires it
7423 case $deplibs_check_method in
7425 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7426 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7427 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7428 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7436 lt_save_MAGIC_CMD="$MAGIC_CMD"
7437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7439 for ac_dir in $ac_dummy; do
7441 test -z "$ac_dir" && ac_dir=.
7442 if test -f $ac_dir/${ac_tool_prefix}file; then
7443 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7444 if test -n "$file_magic_test_file"; then
7445 case $deplibs_check_method in
7447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7450 $EGREP "$file_magic_regex" > /dev/null; then
7455 *** Warning: the command libtool uses to detect shared libraries,
7456 *** $file_magic_cmd, produces output that libtool cannot recognize.
7457 *** The result is that libtool may fail to recognize shared libraries
7458 *** as such. This will affect the creation of libtool libraries that
7459 *** depend on shared libraries, but programs linked with such libtool
7460 *** libraries will work regardless of this problem. Nevertheless, you
7461 *** may want to report the problem to your system manager and/or to
7462 *** bug-libtool@gnu.org
7472 MAGIC_CMD="$lt_save_MAGIC_CMD"
7477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478 if test -n "$MAGIC_CMD"; then
7479 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7480 echo "${ECHO_T}$MAGIC_CMD" >&6
7482 echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6
7486 if test -z "$lt_cv_path_MAGIC_CMD"; then
7487 if test -n "$ac_tool_prefix"; then
7488 echo "$as_me:$LINENO: checking for file" >&5
7489 echo $ECHO_N "checking for file... $ECHO_C" >&6
7490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7498 lt_save_MAGIC_CMD="$MAGIC_CMD"
7499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7501 for ac_dir in $ac_dummy; do
7503 test -z "$ac_dir" && ac_dir=.
7504 if test -f $ac_dir/file; then
7505 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7506 if test -n "$file_magic_test_file"; then
7507 case $deplibs_check_method in
7509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7512 $EGREP "$file_magic_regex" > /dev/null; then
7517 *** Warning: the command libtool uses to detect shared libraries,
7518 *** $file_magic_cmd, produces output that libtool cannot recognize.
7519 *** The result is that libtool may fail to recognize shared libraries
7520 *** as such. This will affect the creation of libtool libraries that
7521 *** depend on shared libraries, but programs linked with such libtool
7522 *** libraries will work regardless of this problem. Nevertheless, you
7523 *** may want to report the problem to your system manager and/or to
7524 *** bug-libtool@gnu.org
7534 MAGIC_CMD="$lt_save_MAGIC_CMD"
7539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540 if test -n "$MAGIC_CMD"; then
7541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7542 echo "${ECHO_T}$MAGIC_CMD" >&6
7544 echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7558 enable_win32_dll=yes
7560 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7561 if test "${enable_libtool_lock+set}" = set; then
7562 enableval="$enable_libtool_lock"
7565 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7568 # Check whether --with-pic or --without-pic was given.
7569 if test "${with_pic+set}" = set; then
7575 test -z "$pic_mode" && pic_mode=default
7577 # Use C for the default configuration in the libtool script
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587 # Source file extension for C test sources.
7590 # Object file extension for compiled C test sources.
7594 # Code to be used in simple compile tests
7595 lt_simple_compile_test_code="int some_variable = 0;\n"
7597 # Code to be used in simple link tests
7598 lt_simple_link_test_code='int main(){return(0);}\n'
7601 # If no C compiler was specified, use CC.
7604 # Allow CC to be a program name with arguments.
7608 # save warnings/boilerplate of simple test code
7609 ac_outfile=conftest.$ac_objext
7610 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7612 _lt_compiler_boilerplate=`cat conftest.err`
7615 ac_outfile=conftest.$ac_objext
7616 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7618 _lt_linker_boilerplate=`cat conftest.err`
7623 # Check for any special shared library compilation flags.
7626 if test "$GCC" = no; then
7629 lt_prog_cc_shlib='-belf'
7633 if test -n "$lt_prog_cc_shlib"; then
7634 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7635 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7636 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7638 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7639 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7640 lt_cv_prog_cc_can_build_shared=no
7646 # Check to make sure the static flag actually works.
7648 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7649 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7650 if test "${lt_prog_compiler_static_works+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 lt_prog_compiler_static_works=no
7654 save_LDFLAGS="$LDFLAGS"
7655 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7656 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7658 # The linker can only warn and ignore the option if not recognized
7659 # So say no if there are warnings
7660 if test -s conftest.err; then
7661 # Append any errors to the config.log.
7662 cat conftest.err 1>&5
7663 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7664 $SED '/^$/d' conftest.err >conftest.er2
7665 if diff conftest.exp conftest.er2 >/dev/null; then
7666 lt_prog_compiler_static_works=yes
7669 lt_prog_compiler_static_works=yes
7673 LDFLAGS="$save_LDFLAGS"
7676 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7677 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7679 if test x"$lt_prog_compiler_static_works" = xyes; then
7682 lt_prog_compiler_static=
7688 lt_prog_compiler_no_builtin_flag=
7690 if test "$GCC" = yes; then
7691 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7694 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7696 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 lt_cv_prog_compiler_rtti_exceptions=no
7700 ac_outfile=conftest.$ac_objext
7701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7702 lt_compiler_flag="-fno-rtti -fno-exceptions"
7703 # Insert the option either (1) after the last *FLAGS variable, or
7704 # (2) before a word containing "conftest.", or (3) at the end.
7705 # Note that $ac_compile itself does not contain backslashes and begins
7706 # with a dollar sign (not a hyphen), so the echo should work correctly.
7707 # The option is referenced via a variable to avoid confusing sed.
7708 lt_compile=`echo "$ac_compile" | $SED \
7709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711 -e 's:$: $lt_compiler_flag:'`
7712 (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713 (eval "$lt_compile" 2>conftest.err)
7715 cat conftest.err >&5
7716 echo "$as_me:7716: \$? = $ac_status" >&5
7717 if (exit $ac_status) && test -s "$ac_outfile"; then
7718 # The compiler can only warn and ignore the option if not recognized
7719 # So say no if there are warnings other than the usual output.
7720 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7721 $SED '/^$/d' conftest.err >conftest.er2
7722 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7723 lt_cv_prog_compiler_rtti_exceptions=yes
7729 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7740 lt_prog_compiler_wl=
7741 lt_prog_compiler_pic=
7742 lt_prog_compiler_static=
7744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7747 if test "$GCC" = yes; then
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_static='-static'
7753 # All AIX code is PIC.
7754 if test "$host_cpu" = ia64; then
7755 # AIX 5 now supports IA64 processor
7756 lt_prog_compiler_static='-Bstatic'
7761 # FIXME: we need at least 68020 code to build shared libraries, but
7762 # adding the `-m68020' flag to GCC prevents building anything better,
7764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7767 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7768 # PIC is the default for these OSes.
7771 mingw* | pw32* | os2*)
7772 # This hack is so that the source file can tell whether it is being
7773 # built for inclusion in a dll (and should export symbols for example).
7774 lt_prog_compiler_pic='-DDLL_EXPORT'
7777 darwin* | rhapsody*)
7778 # PIC is the default on this platform
7779 # Common symbols not allowed in MH_DYLIB files
7780 lt_prog_compiler_pic='-fno-common'
7784 # Just because we use GCC doesn't mean we suddenly get shared libraries
7785 # on systems that don't support them.
7786 lt_prog_compiler_can_build_shared=no
7791 if test -d /usr/nec; then
7792 lt_prog_compiler_pic=-Kconform_pic
7797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7804 lt_prog_compiler_pic='-fPIC'
7810 lt_prog_compiler_pic='-fPIC'
7814 # PORTME Check for flag to pass linker flags through the system compiler.
7817 lt_prog_compiler_wl='-Wl,'
7818 if test "$host_cpu" = ia64; then
7819 # AIX 5 now supports IA64 processor
7820 lt_prog_compiler_static='-Bstatic'
7822 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7826 # PIC is the default on this platform
7827 # Common symbols not allowed in MH_DYLIB files
7828 case $cc_basename in
7830 lt_prog_compiler_pic='-qnocommon'
7831 lt_prog_compiler_wl='-Wl,'
7836 mingw* | pw32* | os2*)
7837 # This hack is so that the source file can tell whether it is being
7838 # built for inclusion in a dll (and should export symbols for example).
7839 lt_prog_compiler_pic='-DDLL_EXPORT'
7842 hpux9* | hpux10* | hpux11*)
7843 lt_prog_compiler_wl='-Wl,'
7844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7851 lt_prog_compiler_pic='+Z'
7854 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7855 lt_prog_compiler_static='${wl}-a ${wl}archive'
7858 irix5* | irix6* | nonstopux*)
7859 lt_prog_compiler_wl='-Wl,'
7860 # PIC (with -KPIC) is the default.
7861 lt_prog_compiler_static='-non_shared'
7865 lt_prog_compiler_pic='-KPIC'
7866 lt_prog_compiler_static='-Bstatic'
7870 case $cc_basename in
7872 lt_prog_compiler_wl='-Wl,'
7873 lt_prog_compiler_pic='-KPIC'
7874 lt_prog_compiler_static='-static'
7876 pgcc* | pgf77* | pgf90* | pgf95*)
7877 # Portland Group compilers (*not* the Pentium gcc compiler,
7878 # which looks to be a dead project)
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_pic='-fpic'
7881 lt_prog_compiler_static='-Bstatic'
7884 lt_prog_compiler_wl='-Wl,'
7885 # All Alpha code is PIC.
7886 lt_prog_compiler_static='-non_shared'
7891 osf3* | osf4* | osf5*)
7892 lt_prog_compiler_wl='-Wl,'
7893 # All OSF/1 code is PIC.
7894 lt_prog_compiler_static='-non_shared'
7898 lt_prog_compiler_pic='-Kpic'
7899 lt_prog_compiler_static='-dn'
7903 lt_prog_compiler_pic='-KPIC'
7904 lt_prog_compiler_static='-Bstatic'
7905 case $cc_basename in
7907 lt_prog_compiler_wl='-Qoption ld ';;
7909 lt_prog_compiler_wl='-Wl,';;
7914 lt_prog_compiler_wl='-Qoption ld '
7915 lt_prog_compiler_pic='-PIC'
7916 lt_prog_compiler_static='-Bstatic'
7919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7920 lt_prog_compiler_wl='-Wl,'
7921 lt_prog_compiler_pic='-KPIC'
7922 lt_prog_compiler_static='-Bstatic'
7926 if test -d /usr/nec ;then
7927 lt_prog_compiler_pic='-Kconform_pic'
7928 lt_prog_compiler_static='-Bstatic'
7933 lt_prog_compiler_wl='-Wl,'
7934 lt_prog_compiler_can_build_shared=no
7938 lt_prog_compiler_pic='-pic'
7939 lt_prog_compiler_static='-Bstatic'
7943 lt_prog_compiler_can_build_shared=no
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7952 # Check to make sure the PIC flag actually works.
7954 if test -n "$lt_prog_compiler_pic"; then
7956 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7957 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7958 if test "${lt_prog_compiler_pic_works+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 lt_prog_compiler_pic_works=no
7962 ac_outfile=conftest.$ac_objext
7963 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7965 # Insert the option either (1) after the last *FLAGS variable, or
7966 # (2) before a word containing "conftest.", or (3) at the end.
7967 # Note that $ac_compile itself does not contain backslashes and begins
7968 # with a dollar sign (not a hyphen), so the echo should work correctly.
7969 # The option is referenced via a variable to avoid confusing sed.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>conftest.err)
7977 cat conftest.err >&5
7978 echo "$as_me:7978: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s "$ac_outfile"; then
7980 # The compiler can only warn and ignore the option if not recognized
7981 # So say no if there are warnings other than the usual output.
7982 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7983 $SED '/^$/d' conftest.err >conftest.er2
7984 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7985 lt_prog_compiler_pic_works=yes
7991 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7992 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7994 if test x"$lt_prog_compiler_pic_works" = xyes; then
7995 case $lt_prog_compiler_pic in
7997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8000 lt_prog_compiler_pic=
8001 lt_prog_compiler_can_build_shared=no
8006 # For platforms which do not support PIC, -DPIC is meaningless:
8008 lt_prog_compiler_pic=
8011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8015 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8016 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8017 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 lt_cv_prog_compiler_c_o=no
8021 $rm -r conftest 2>/dev/null
8025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8027 lt_compiler_flag="-o out/conftest2.$ac_objext"
8028 # Insert the option either (1) after the last *FLAGS variable, or
8029 # (2) before a word containing "conftest.", or (3) at the end.
8030 # Note that $ac_compile itself does not contain backslashes and begins
8031 # with a dollar sign (not a hyphen), so the echo should work correctly.
8032 lt_compile=`echo "$ac_compile" | $SED \
8033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8035 -e 's:$: $lt_compiler_flag:'`
8036 (eval echo "\"\$as_me:8036: $lt_compile\"" >&5)
8037 (eval "$lt_compile" 2>out/conftest.err)
8039 cat out/conftest.err >&5
8040 echo "$as_me:8040: \$? = $ac_status" >&5
8041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8043 # The compiler can only warn and ignore the option if not recognized
8044 # So say no if there are warnings
8045 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8046 $SED '/^$/d' out/conftest.err >out/conftest.er2
8047 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8048 lt_cv_prog_compiler_c_o=yes
8053 # SGI C++ compiler will create directory out/ii_files/ for
8054 # template instantiation
8055 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8056 $rm out/* && rmdir out
8062 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8063 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8066 hard_links="nottested"
8067 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8068 # do not overwrite the value of need_locks provided by the user
8069 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8070 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8075 ln conftest.a conftest.b 2>&5 || hard_links=no
8076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8077 echo "$as_me:$LINENO: result: $hard_links" >&5
8078 echo "${ECHO_T}$hard_links" >&6
8079 if test "$hard_links" = no; then
8080 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8081 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8088 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8092 allow_undefined_flag=
8093 enable_shared_with_static_runtimes=no
8095 archive_expsym_cmds=
8096 old_archive_From_new_cmds=
8097 old_archive_from_expsyms_cmds=
8098 export_dynamic_flag_spec=
8099 whole_archive_flag_spec=
8100 thread_safe_flag_spec=
8101 hardcode_libdir_flag_spec=
8102 hardcode_libdir_flag_spec_ld=
8103 hardcode_libdir_separator=
8106 hardcode_shlibpath_var=unsupported
8107 link_all_deplibs=unknown
8108 hardcode_automatic=no
8111 always_export_symbols=no
8112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8113 # include_expsyms should be a list of space-separated symbols to be *always*
8114 # included in the symbol list
8116 # exclude_expsyms can be an extended regexp of symbols to exclude
8117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8119 # as well as any symbol that contains `d'.
8120 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8122 # platforms (ab)use it in PIC code, but their linkers get confused if
8123 # the symbol is explicitly referenced. Since portable code cannot
8124 # rely on this symbol name, it's probably fine to never include it in
8125 # preloaded symbol tables.
8126 extract_expsyms_cmds=
8127 # Just being paranoid about ensuring that cc_basename is set.
8128 for cc_temp in $compiler""; do
8130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8136 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8139 cygwin* | mingw* | pw32*)
8140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8141 # When not using gcc, we currently assume that we are using
8142 # Microsoft Visual C++.
8143 if test "$GCC" != yes; then
8153 if test "$with_gnu_ld" = yes; then
8154 # If archive_cmds runs LD, not CC, wlarc should be empty
8157 # Set some defaults for GNU ld with shared library support. These
8158 # are reset later if shared libraries are not supported. Putting them
8159 # here allows them to be overridden if necessary.
8160 runpath_var=LD_RUN_PATH
8161 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8162 export_dynamic_flag_spec='${wl}--export-dynamic'
8163 # ancient GNU ld didn't support --whole-archive et. al.
8164 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8165 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8167 whole_archive_flag_spec=
8169 supports_anon_versioning=no
8170 case `$LD -v 2>/dev/null` in
8171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8174 *\ 2.11.*) ;; # other 2.11 versions
8175 *) supports_anon_versioning=yes ;;
8178 # See if GNU ld supports shared libraries.
8180 aix3* | aix4* | aix5*)
8181 # On AIX/PPC, the GNU linker is very broken
8182 if test "$host_cpu" != ia64; then
8186 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8187 *** to be unable to reliably create shared libraries on AIX.
8188 *** Therefore, libtool is disabling shared libraries support. If you
8189 *** really care for shared libraries, you may want to modify your PATH
8190 *** so that a non-GNU linker is found, and then restart.
8197 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)'
8198 hardcode_libdir_flag_spec='-L$libdir'
8199 hardcode_minus_L=yes
8201 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8202 # that the semantics of dynamic libraries on AmigaOS, at least up
8203 # to version 4, is to share data among multiple programs linked
8204 # with the same dynamic library. Since this doesn't match the
8205 # behavior of shared libraries on other platforms, we can't use
8211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8212 allow_undefined_flag=unsupported
8213 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8214 # support --undefined. This deserves some investigation. FIXME
8215 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221 cygwin* | mingw* | pw32*)
8222 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8223 # as there is no search path for DLLs.
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 allow_undefined_flag=unsupported
8226 always_export_symbols=no
8227 enable_shared_with_static_runtimes=yes
8228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8230 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8232 # If the export-symbols file already is a .def file (1st line
8233 # is EXPORTS), use it as is; otherwise, prepend...
8234 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8235 cp $export_symbols $output_objdir/$soname.def;
8237 echo EXPORTS > $output_objdir/$soname.def;
8238 cat $export_symbols >> $output_objdir/$soname.def;
8240 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8249 case $cc_basename,$host_cpu in
8250 pgcc*) # Portland Group C compiler
8251 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'
8252 tmp_addflag=' $pic_flag'
8254 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8255 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'
8256 tmp_addflag=' $pic_flag -Mnomain' ;;
8257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8258 tmp_addflag=' -i_dynamic' ;;
8259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8260 tmp_addflag=' -i_dynamic -nofor_main' ;;
8261 ifc* | ifort*) # Intel Fortran compiler
8262 tmp_addflag=' -nofor_main' ;;
8264 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 if test $supports_anon_versioning = yes; then
8267 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8269 $echo "local: *; };" >> $output_objdir/$libname.ver~
8270 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8279 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8288 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8293 *** create shared libraries on Solaris systems. Therefore, libtool
8294 *** is disabling shared libraries support. We urge you to upgrade GNU
8295 *** binutils to release 2.9.1 or newer. Another option is to modify
8296 *** your PATH or compiler configuration so that the native linker is
8297 *** used, and then restart.
8300 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8309 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_shlibpath_var=no
8316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8325 if test "$ld_shlibs" = no; then
8327 hardcode_libdir_flag_spec=
8328 export_dynamic_flag_spec=
8329 whole_archive_flag_spec=
8332 # PORTME fill in a description of your system's linker (not GNU ld)
8335 allow_undefined_flag=unsupported
8336 always_export_symbols=yes
8337 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'
8338 # Note: this linker hardcodes the directories in LIBPATH if there
8339 # are no directories specified by -L.
8340 hardcode_minus_L=yes
8341 if test "$GCC" = yes && test -z "$link_static_flag"; then
8342 # Neither direct hardcoding nor static linking is supported with a
8344 hardcode_direct=unsupported
8349 if test "$host_cpu" = ia64; then
8350 # On IA64, the linker does run time linking by default, so we don't
8351 # have to do anything special.
8352 aix_use_runtimelinking=no
8353 exp_sym_flag='-Bexport'
8356 # If we're using GNU nm, then we don't want the "-C" option.
8357 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8358 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8359 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'
8361 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'
8363 aix_use_runtimelinking=no
8365 # Test if we are trying to use run time linking or normal
8366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8367 # need to do runtime linking.
8368 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8369 for ld_flag in $LDFLAGS; do
8370 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8371 aix_use_runtimelinking=yes
8377 exp_sym_flag='-bexport'
8378 no_entry_flag='-bnoentry'
8381 # When large executables or shared objects are built, AIX ld can
8382 # have problems creating the table of contents. If linking a library
8383 # or program results in "error TOC overflow" add -mminimal-toc to
8384 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8385 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8389 hardcode_libdir_separator=':'
8390 link_all_deplibs=yes
8392 if test "$GCC" = yes; then
8393 case $host_os in aix4.[012]|aix4.[012].*)
8394 # We only want to do this on AIX 4.2 and lower, the check
8395 # below for broken collect2 doesn't work under 4.3+
8396 collect2name=`${CC} -print-prog-name=collect2`
8397 if test -f "$collect2name" && \
8398 strings "$collect2name" | grep resolve_lib_name >/dev/null
8400 # We have reworked collect2
8403 # We have old collect2
8404 hardcode_direct=unsupported
8405 # It fails to find uninstalled libraries when the uninstalled
8406 # path is not listed in the libpath. Setting hardcode_minus_L
8407 # to unsupported forces relinking
8408 hardcode_minus_L=yes
8409 hardcode_libdir_flag_spec='-L$libdir'
8410 hardcode_libdir_separator=
8413 shared_flag='-shared'
8414 if test "$aix_use_runtimelinking" = yes; then
8415 shared_flag="$shared_flag "'${wl}-G'
8419 if test "$host_cpu" = ia64; then
8420 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8421 # chokes on -Wl,-G. The following line is correct:
8424 if test "$aix_use_runtimelinking" = yes; then
8425 shared_flag='${wl}-G'
8427 shared_flag='${wl}-bM:SRE'
8432 # It seems that -bexpall does not export symbols beginning with
8433 # underscore (_), so it is better to generate a list of symbols to export.
8434 always_export_symbols=yes
8435 if test "$aix_use_runtimelinking" = yes; then
8436 # Warning - without using the other runtime loading flags (-brtl),
8437 # -berok will link without error, but may produce a broken library.
8438 allow_undefined_flag='-berok'
8439 # Determine the default libpath from the value encoded in an empty executable.
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457 (eval $ac_link) 2>conftest.er1
8459 grep -v '^ *+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_c_werror_flag"
8465 || test ! -s conftest.err'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8480 # Check for a 64-bit object if we didn't find anything.
8481 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; }
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8488 rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8492 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8493 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"
8495 if test "$host_cpu" = ia64; then
8496 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8497 allow_undefined_flag="-z nodefs"
8498 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"
8500 # Determine the default libpath from the value encoded in an empty executable.
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8541 # Check for a 64-bit object if we didn't find anything.
8542 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; }
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8549 rm -f conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8553 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8554 # Warning - without using the other run time loading flags,
8555 # -berok will link without error, but may produce a broken library.
8556 no_undefined_flag=' ${wl}-bernotok'
8557 allow_undefined_flag=' ${wl}-berok'
8558 # -bexpall does not export symbols beginning with underscore (_)
8559 always_export_symbols=yes
8560 # Exported symbols can be pulled into shared objects from archives
8561 whole_archive_flag_spec=' '
8562 archive_cmds_need_lc=yes
8563 # This is similar to how AIX traditionally builds its shared libraries.
8564 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'
8570 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)'
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_minus_L=yes
8573 # see comment about different semantics on the GNU ld section
8578 export_dynamic_flag_spec=-rdynamic
8581 cygwin* | mingw* | pw32*)
8582 # When not using gcc, we currently assume that we are using
8583 # Microsoft Visual C++.
8584 # hardcode_libdir_flag_spec is actually meaningless, as there is
8585 # no search path for DLLs.
8586 hardcode_libdir_flag_spec=' '
8587 allow_undefined_flag=unsupported
8588 # Tell ltmain to make .lib files, not .a files.
8590 # Tell ltmain to make .dll files, not .so files.
8592 # FIXME: Setting linknames here is a bad hack.
8593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8594 # The linker will automatically build a .lib file if we build a DLL.
8595 old_archive_From_new_cmds='true'
8596 # FIXME: Should let the user specify the lib program.
8597 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8598 fix_srcfile_path='`cygpath -w "$srcfile"`'
8599 enable_shared_with_static_runtimes=yes
8602 darwin* | rhapsody*)
8604 rhapsody* | darwin1.[012])
8605 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8608 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8609 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8611 case ${MACOSX_DEPLOYMENT_TARGET} in
8613 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8616 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8622 archive_cmds_need_lc=no
8624 hardcode_automatic=yes
8625 hardcode_shlibpath_var=unsupported
8626 whole_archive_flag_spec=''
8627 link_all_deplibs=yes
8628 if test "$GCC" = yes ; then
8629 output_verbose_link_cmd='echo'
8630 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8633 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}'
8634 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}'
8636 case $cc_basename in
8638 output_verbose_link_cmd='echo'
8639 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8640 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8642 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}'
8643 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}'
8653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_libdir_flag_spec='-L$libdir'
8655 hardcode_shlibpath_var=no
8662 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8663 # support. Future versions do this automatically, but an explicit c++rt0.o
8664 # does not break anything, and helps significantly (at the cost of a little
8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8668 hardcode_libdir_flag_spec='-R$libdir'
8670 hardcode_shlibpath_var=no
8673 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8677 hardcode_minus_L=yes
8678 hardcode_shlibpath_var=no
8681 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8682 freebsd* | kfreebsd*-gnu | dragonfly*)
8683 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8684 hardcode_libdir_flag_spec='-R$libdir'
8686 hardcode_shlibpath_var=no
8690 if test "$GCC" = yes; then
8691 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'
8693 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'
8695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8696 hardcode_libdir_separator=:
8699 # hardcode_minus_L: Not really in the search PATH,
8700 # but as the default location of the library.
8701 hardcode_minus_L=yes
8702 export_dynamic_flag_spec='${wl}-E'
8706 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8709 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8721 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8725 if test "$with_gnu_ld" = no; then
8728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8729 hardcode_libdir_flag_spec_ld='+b $libdir'
8730 hardcode_libdir_separator=:
8732 hardcode_shlibpath_var=no
8735 hardcode_libdir_flag_spec='-L$libdir'
8737 hardcode_shlibpath_var=no
8739 # hardcode_minus_L: Not really in the search PATH,
8740 # but as the default location of the library.
8741 hardcode_minus_L=yes
8744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745 hardcode_libdir_separator=:
8747 export_dynamic_flag_spec='${wl}-E'
8749 # hardcode_minus_L: Not really in the search PATH,
8750 # but as the default location of the library.
8751 hardcode_minus_L=yes
8757 irix5* | irix6* | nonstopux*)
8758 if test "$GCC" = yes; then
8759 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'
8761 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'
8762 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765 hardcode_libdir_separator=:
8766 link_all_deplibs=yes
8770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8773 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8775 hardcode_libdir_flag_spec='-R$libdir'
8777 hardcode_shlibpath_var=no
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784 hardcode_libdir_separator=:
8785 hardcode_shlibpath_var=no
8790 hardcode_shlibpath_var=no
8791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795 export_dynamic_flag_spec='${wl}-E'
8798 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800 hardcode_libdir_flag_spec='-R$libdir'
8803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_minus_L=yes
8813 allow_undefined_flag=unsupported
8814 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'
8815 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8819 if test "$GCC" = yes; then
8820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8821 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'
8823 allow_undefined_flag=' -expect_unresolved \*'
8824 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'
8826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827 hardcode_libdir_separator=:
8830 osf4* | osf5*) # as osf3* with the addition of -msym flag
8831 if test "$GCC" = yes; then
8832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833 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'
8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836 allow_undefined_flag=' -expect_unresolved \*'
8837 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'
8838 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8839 $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'
8841 # Both c and cxx compiler support -rpath directly
8842 hardcode_libdir_flag_spec='-rpath $libdir'
8844 hardcode_libdir_separator=:
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_shlibpath_var=no
8850 export_dynamic_flag_spec='${wl}-Bexport'
8851 runpath_var=LD_RUN_PATH
8852 hardcode_runpath_var=yes
8856 no_undefined_flag=' -z text'
8857 if test "$GCC" = yes; then
8859 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8864 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8868 hardcode_libdir_flag_spec='-R$libdir'
8869 hardcode_shlibpath_var=no
8871 solaris2.[0-5] | solaris2.[0-5].*) ;;
8873 # The compiler driver will combine linker options so we
8874 # cannot just pass the convience library names through
8875 # without $wl, iff we do not link with $LD.
8876 # Luckily, gcc supports the same syntax we need for Sun Studio.
8877 # Supported since Solaris 2.6 (maybe 2.5.1?)
8880 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8882 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' ;;
8885 link_all_deplibs=yes
8889 if test "x$host_vendor" = xsequent; then
8890 # Use $CC to link under sequent, because it throws in some extra .o
8891 # files that make .init and .fini sections work.
8892 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8894 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_libdir_flag_spec='-L$libdir'
8898 hardcode_minus_L=yes
8899 hardcode_shlibpath_var=no
8903 case $host_vendor in
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_direct=yes # is this really true???
8909 ## LD is ld it makes a PLAMLIB
8910 ## CC just makes a GrossModule.
8911 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8912 reload_cmds='$CC -r -o $output$reload_objs'
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8920 runpath_var='LD_RUN_PATH'
8921 hardcode_shlibpath_var=no
8925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926 hardcode_shlibpath_var=no
8927 export_dynamic_flag_spec='-Bexport'
8931 if test -d /usr/nec; then
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_shlibpath_var=no
8934 runpath_var=LD_RUN_PATH
8935 hardcode_runpath_var=yes
8941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_shlibpath_var=no
8945 hardcode_runpath_var=yes
8946 runpath_var=LD_RUN_PATH
8949 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8950 no_undefined_flag='${wl}-z ${wl}text'
8951 if test "$GCC" = yes; then
8952 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 runpath_var='LD_RUN_PATH'
8957 hardcode_shlibpath_var=no
8961 no_undefined_flag=' -z text'
8962 # $CC -shared without GNU ld will not create a library from C++
8963 # object files and a static libstdc++, better avoid it by now
8964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8967 hardcode_libdir_flag_spec=
8968 hardcode_shlibpath_var=no
8969 runpath_var='LD_RUN_PATH'
8973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 hardcode_shlibpath_var=no
8984 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8985 echo "${ECHO_T}$ld_shlibs" >&6
8986 test "$ld_shlibs" = no && can_build_shared=no
8988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8989 if test "$GCC" = yes; then
8990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8994 # Do we need to explicitly link libc?
8996 case "x$archive_cmds_need_lc" in
8998 # Assume -lc should be added
8999 archive_cmds_need_lc=yes
9001 if test "$enable_shared" = yes && test "$GCC" = yes; then
9002 case $archive_cmds in
9004 # FIXME: we may have to deal with multi-command sequences.
9007 # Test whether the compiler implicitly links with -lc since on some
9008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9009 # to ld, don't add -lc before -lgcc.
9010 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9011 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9013 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } 2>conftest.err; then
9022 libobjs=conftest.$ac_objext
9024 wl=$lt_prog_compiler_wl
9030 lt_save_allow_undefined_flag=$allow_undefined_flag
9031 allow_undefined_flag=
9032 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9033 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }
9038 archive_cmds_need_lc=no
9040 archive_cmds_need_lc=yes
9042 allow_undefined_flag=$lt_save_allow_undefined_flag
9044 cat conftest.err 1>&5
9047 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9048 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9055 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9056 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9058 libname_spec='lib$name'
9066 shlibpath_overrides_runpath=unknown
9068 dynamic_linker="$host_os ld.so"
9069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9070 if test "$GCC" = yes; then
9071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9072 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9073 # if the path contains ";" then we assume it to be the separator
9074 # otherwise default to the standard path separator (i.e. ":") - it is
9075 # assumed that no part of a normal pathname contains ";" but that should
9076 # okay in the real world where ";" in dirpaths is itself problematic.
9077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9084 need_lib_prefix=unknown
9085 hardcode_into_libs=no
9087 # when you set need_version to no, make sure it does not cause -set_version
9088 # flags to be left without arguments
9089 need_version=unknown
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9095 shlibpath_var=LIBPATH
9097 # AIX 3 has no versioning support, so we append a major version to the name.
9098 soname_spec='${libname}${release}${shared_ext}$major'
9105 hardcode_into_libs=yes
9106 if test "$host_cpu" = ia64; then
9107 # AIX 5 supports IA64
9108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9109 shlibpath_var=LD_LIBRARY_PATH
9111 # With GCC up to 2.95.x, collect2 would create an import file
9112 # for dependence libraries. The import file would start with
9113 # the line `#! .'. This would cause the generated library to
9114 # depend on `.', always an invalid library. This was fixed in
9115 # development snapshots of GCC prior to 3.0.
9117 aix4 | aix4.[01] | aix4.[01].*)
9118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9120 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9128 # soname into executable. Probably we can add versioning support to
9129 # collect2, so additional links can be useful in future.
9130 if test "$aix_use_runtimelinking" = yes; then
9131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9132 # instead of lib<name>.a to let people know that these are not
9133 # typical AIX shared libraries.
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 # We preserve .a as extension for shared libraries through AIX4.2
9137 # and later when we are not doing run time linking.
9138 library_names_spec='${libname}${release}.a $libname.a'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LIBPATH
9146 library_names_spec='$libname.ixlibrary $libname.a'
9147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9148 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'
9152 library_names_spec='${libname}${shared_ext}'
9153 dynamic_linker="$host_os ld.so"
9154 shlibpath_var=LIBRARY_PATH
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9166 # the default ld.so.conf also contains /usr/contrib/lib and
9167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9168 # libtool to hard-code these into programs
9171 cygwin* | mingw* | pw32*)
9172 version_type=windows
9177 case $GCC,$host_os in
9178 yes,cygwin* | yes,mingw* | yes,pw32*)
9179 library_names_spec='$libname.dll.a'
9180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9181 postinstall_cmds='base_file=`basename \${file}`~
9182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9183 dldir=$destdir/`dirname \$dlpath`~
9184 test -d \$dldir || mkdir -p \$dldir~
9185 $install_prog $dir/$dlname \$dldir/$dlname~
9186 chmod a+x \$dldir/$dlname'
9187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9188 dlpath=$dir/\$dldll~
9190 shlibpath_overrides_runpath=yes
9194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9196 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9199 # MinGW DLLs use traditional 'lib' prefix
9200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9202 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9203 # It is most probably a Windows format PATH printed by
9204 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9205 # path with ; separators, and with drive letters. We can handle the
9206 # drive letters (cygwin fileutils understands them), so leave them,
9207 # especially as we might pass files found there to a mingw objdump,
9208 # which wouldn't understand a cygwinified path. Ahh.
9209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9215 # pw32 DLLs use 'pw' prefix rather than 'lib'
9216 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9225 dynamic_linker='Win32 ld.exe'
9226 # FIXME: first we should search . and the directory the executable is in
9230 darwin* | rhapsody*)
9231 dynamic_linker="$host_os dyld"
9235 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9236 soname_spec='${libname}${release}${major}$shared_ext'
9237 shlibpath_overrides_runpath=yes
9238 shlibpath_var=DYLD_LIBRARY_PATH
9239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9240 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9241 if test "$GCC" = yes; then
9242 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"`
9244 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 shlibpath_overrides_runpath=no
9270 hardcode_into_libs=yes
9271 dynamic_linker='GNU ld.so'
9274 freebsd* | dragonfly*)
9275 # DragonFly does not have aout. When/if they implement a new
9276 # versioning mechanism, adjust this.
9277 if test -x /usr/bin/objformat; then
9278 objformat=`/usr/bin/objformat`
9281 freebsd[123]*) objformat=aout ;;
9285 version_type=freebsd-$objformat
9286 case $version_type in
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9297 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9302 freebsd3.[01]* | freebsdelf3.[01]*)
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9307 shlibpath_overrides_runpath=no
9308 hardcode_into_libs=yes
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 hardcode_into_libs=yes
9323 hpux9* | hpux10* | hpux11*)
9324 # Give a soname corresponding to the major version so that dld.sl refuses to
9325 # link against other versions.
9332 hardcode_into_libs=yes
9333 dynamic_linker="$host_os dld.so"
9334 shlibpath_var=LD_LIBRARY_PATH
9335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 if test "X$HPUX_IA64_MODE" = X32; then
9339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9347 hardcode_into_libs=yes
9348 dynamic_linker="$host_os dld.sl"
9349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9358 dynamic_linker="$host_os dld.sl"
9359 shlibpath_var=SHLIB_PATH
9360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9365 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9366 postinstall_cmds='chmod 555 $lib'
9369 irix5* | irix6* | nonstopux*)
9371 nonstopux*) version_type=nonstopux ;;
9373 if test "$lt_cv_prog_gnu_ld" = yes; then
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9384 irix5* | nonstopux*)
9388 case $LD in # libtool.m4 will add one of these switches to LD
9389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390 libsuff= shlibsuff= libmagic=32-bit;;
9391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392 libsuff=32 shlibsuff=N32 libmagic=N32;;
9393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395 *) libsuff= shlibsuff= libmagic=never-match;;
9399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400 shlibpath_overrides_runpath=no
9401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403 hardcode_into_libs=yes
9406 # No shared lib support for Linux oldld, aout, or coff.
9407 linux*oldld* | linux*aout* | linux*coff*)
9411 # This must be Linux ELF.
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=no
9421 # This implies no fast_install, which is unacceptable.
9422 # Some rework will be needed to allow for fast_install
9423 # before this can be enabled.
9424 hardcode_into_libs=yes
9426 # Append ld.so.conf contents to the search path
9427 if test -f /etc/ld.so.conf; then
9428 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' ' '`
9429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9432 # We used to test for /lib/ld.so.1 and disable shared libraries on
9433 # powerpc, because MkLinux only supported shared libraries with the
9434 # GNU dynamic linker. Since this was broken with cross compilers,
9435 # most powerpc-linux boxes support dynamic linking these days and
9436 # people can always --disable-shared, the test was removed, and we
9437 # assume the GNU/Linux dynamic linker is in use.
9438 dynamic_linker='GNU/Linux ld.so'
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 shlibpath_overrides_runpath=no
9449 hardcode_into_libs=yes
9450 dynamic_linker='GNU ld.so'
9457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460 dynamic_linker='NetBSD (a.out) ld.so'
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 dynamic_linker='NetBSD ld.elf_so'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=yes
9491 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9493 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9494 *) need_version=no ;;
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9501 openbsd2.[89] | openbsd2.[89].*)
9502 shlibpath_overrides_runpath=no
9505 shlibpath_overrides_runpath=yes
9509 shlibpath_overrides_runpath=yes
9514 libname_spec='$name'
9517 library_names_spec='$libname${shared_ext} $libname.a'
9518 dynamic_linker='OS/2 ld.exe'
9519 shlibpath_var=LIBPATH
9522 osf3* | osf4* | osf5*)
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9530 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537 shlibpath_var=LD_LIBRARY_PATH
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 shlibpath_overrides_runpath=yes
9548 hardcode_into_libs=yes
9549 # ldd complains unless libraries are executable
9550 postinstall_cmds='chmod +x $lib'
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 shlibpath_overrides_runpath=yes
9559 if test "$with_gnu_ld" = yes; then
9565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 shlibpath_var=LD_LIBRARY_PATH
9570 case $host_vendor in
9572 shlibpath_overrides_runpath=no
9574 export_dynamic_flag_spec='${wl}-Blargedynsym'
9575 runpath_var=LD_RUN_PATH
9583 shlibpath_overrides_runpath=no
9584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9590 if test -d /usr/nec ;then
9592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9593 soname_spec='$libname${shared_ext}.$major'
9594 shlibpath_var=LD_LIBRARY_PATH
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9609 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9610 echo "${ECHO_T}$dynamic_linker" >&6
9611 test "$dynamic_linker" = no && can_build_shared=no
9613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9616 if test -n "$hardcode_libdir_flag_spec" || \
9617 test -n "$runpath_var" || \
9618 test "X$hardcode_automatic" = "Xyes" ; then
9620 # We can hardcode non-existant directories.
9621 if test "$hardcode_direct" != no &&
9622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9623 # have to relink, otherwise we might link with an installed library
9624 # when we should be linking with a yet-to-be-installed one
9625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9626 test "$hardcode_minus_L" != no; then
9627 # Linking always hardcodes the temporary library directory.
9628 hardcode_action=relink
9630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9631 hardcode_action=immediate
9634 # We cannot hardcode anything, or else we can only hardcode existing
9636 hardcode_action=unsupported
9638 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9639 echo "${ECHO_T}$hardcode_action" >&6
9641 if test "$hardcode_action" = relink; then
9642 # Fast installation is not supported
9643 enable_fast_install=no
9644 elif test "$shlibpath_overrides_runpath" = yes ||
9645 test "$enable_shared" = no; then
9646 # Fast installation is not necessary
9647 enable_fast_install=needless
9652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9657 echo "$as_me:$LINENO: result: yes" >&5
9658 echo "${ECHO_T}yes" >&6
9660 # FIXME - insert some real tests, host_os isn't really good enough
9663 if test -n "$STRIP" ; then
9664 striplib="$STRIP -x"
9665 echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9668 echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9673 echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6
9679 if test "x$enable_dlopen" != xyes; then
9680 enable_dlopen=unknown
9681 enable_dlopen_self=unknown
9682 enable_dlopen_self_static=unknown
9689 lt_cv_dlopen="load_add_on"
9691 lt_cv_dlopen_self=yes
9695 lt_cv_dlopen="LoadLibrary"
9700 lt_cv_dlopen="dlopen"
9705 # if libdl is installed we need to link against it
9706 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 ac_check_lib_save_LIBS=$LIBS
9713 cat >conftest.$ac_ext <<_ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9720 /* Override any gcc2 internal prototype to avoid an error. */
9724 /* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>conftest.er1
9739 grep -v '^ *+' conftest.er1 >conftest.err
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_c_werror_flag"
9745 || test ! -s conftest.err'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_lib_dl_dlopen=yes
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_cv_lib_dl_dlopen=no
9764 rm -f conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9770 if test $ac_cv_lib_dl_dlopen = yes; then
9771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9776 lt_cv_dlopen_self=yes
9783 echo "$as_me:$LINENO: checking for shl_load" >&5
9784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9785 if test "${ac_cv_func_shl_load+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define shl_load innocuous_shl_load
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char shl_load (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9804 # include <limits.h>
9806 # include <assert.h>
9811 /* Override any gcc2 internal prototype to avoid an error. */
9816 /* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9819 /* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9825 char (*f) () = shl_load;
9834 return f != shl_load;
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_func_shl_load=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_cv_func_shl_load=no
9868 rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9873 if test $ac_cv_func_shl_load = yes; then
9874 lt_cv_dlopen="shl_load"
9876 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9877 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 ac_check_lib_save_LIBS=$LIBS
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9890 /* Override any gcc2 internal prototype to avoid an error. */
9894 /* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_lib_dld_shl_load=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_lib_dld_shl_load=no
9934 rm -f conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9940 if test $ac_cv_lib_dld_shl_load = yes; then
9941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9943 echo "$as_me:$LINENO: checking for dlopen" >&5
9944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9945 if test "${ac_cv_func_dlopen+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9956 #define dlopen innocuous_dlopen
9958 /* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char dlopen (); below.
9960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961 <limits.h> exists even on freestanding compilers. */
9964 # include <limits.h>
9966 # include <assert.h>
9971 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9979 /* The GNU C library defines this for functions which it implements
9980 to always fail with ENOSYS. Some functions are actually named
9981 something starting with __ and the normal name is an alias. */
9982 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9985 char (*f) () = dlopen;
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>conftest.er1
10003 grep -v '^ *+' conftest.er1 >conftest.err
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -z "$ac_c_werror_flag"
10009 || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_func_dlopen=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_func_dlopen=no
10028 rm -f conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10031 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10033 if test $ac_cv_func_dlopen = yes; then
10034 lt_cv_dlopen="dlopen"
10036 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 ac_check_lib_save_LIBS=$LIBS
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 /* Override any gcc2 internal prototype to avoid an error. */
10054 /* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag"
10075 || test ! -s conftest.err'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_lib_dl_dlopen=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_lib_dl_dlopen=no
10094 rm -f conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10100 if test $ac_cv_lib_dl_dlopen = yes; then
10101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10103 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10104 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-lsvld $LIBS"
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10117 /* Override any gcc2 internal prototype to avoid an error. */
10121 /* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_lib_svld_dlopen=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_lib_svld_dlopen=no
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10167 if test $ac_cv_lib_svld_dlopen = yes; then
10168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10170 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10171 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10172 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 ac_check_lib_save_LIBS=$LIBS
10177 cat >conftest.$ac_ext <<_ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10184 /* Override any gcc2 internal prototype to avoid an error. */
10188 /* We use char because int might match the return type of a gcc2
10189 builtin and then its argument prototype would still apply. */
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_cv_lib_dld_dld_link=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_cv_lib_dld_dld_link=no
10228 rm -f conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10232 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10233 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10234 if test $ac_cv_lib_dld_dld_link = yes; then
10235 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10256 if test "x$lt_cv_dlopen" != xno; then
10262 case $lt_cv_dlopen in
10264 save_CPPFLAGS="$CPPFLAGS"
10265 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10267 save_LDFLAGS="$LDFLAGS"
10268 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10271 LIBS="$lt_cv_dlopen_libs $LIBS"
10273 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10274 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10275 if test "${lt_cv_dlopen_self+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 if test "$cross_compiling" = yes; then :
10279 lt_cv_dlopen_self=cross
10281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282 lt_status=$lt_dlunknown
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10294 # define LT_DLGLOBAL RTLD_GLOBAL
10297 # define LT_DLGLOBAL DL_GLOBAL
10299 # define LT_DLGLOBAL 0
10303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304 find out it does not work in some platform. */
10305 #ifndef LT_DLLAZY_OR_NOW
10307 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10310 # define LT_DLLAZY_OR_NOW DL_LAZY
10313 # define LT_DLLAZY_OR_NOW RTLD_NOW
10316 # define LT_DLLAZY_OR_NOW DL_NOW
10318 # define LT_DLLAZY_OR_NOW 0
10326 extern "C" void exit (int);
10329 void fnord() { int i=42;}
10332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333 int status = $lt_dlunknown;
10337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339 /* dlclose (self); */
10345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346 (eval $ac_link) 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10350 (./conftest; exit; ) >&5 2>/dev/null
10352 case x$lt_status in
10353 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10354 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10355 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10358 # compilation failed
10359 lt_cv_dlopen_self=no
10366 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10367 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10369 if test "x$lt_cv_dlopen_self" = xyes; then
10370 LDFLAGS="$LDFLAGS $link_static_flag"
10371 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10372 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10373 if test "${lt_cv_dlopen_self_static+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 if test "$cross_compiling" = yes; then :
10377 lt_cv_dlopen_self_static=cross
10379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380 lt_status=$lt_dlunknown
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10382 "configure"
10383 #include "confdefs.h"
10392 # define LT_DLGLOBAL RTLD_GLOBAL
10395 # define LT_DLGLOBAL DL_GLOBAL
10397 # define LT_DLGLOBAL 0
10401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402 find out it does not work in some platform. */
10403 #ifndef LT_DLLAZY_OR_NOW
10405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10408 # define LT_DLLAZY_OR_NOW DL_LAZY
10411 # define LT_DLLAZY_OR_NOW RTLD_NOW
10414 # define LT_DLLAZY_OR_NOW DL_NOW
10416 # define LT_DLLAZY_OR_NOW 0
10424 extern "C" void exit (int);
10427 void fnord() { int i=42;}
10430 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431 int status = $lt_dlunknown;
10435 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10436 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437 /* dlclose (self); */
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10448 (./conftest; exit; ) >&5 2>/dev/null
10450 case x$lt_status in
10451 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10452 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10453 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10456 # compilation failed
10457 lt_cv_dlopen_self_static=no
10464 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10465 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10468 CPPFLAGS="$save_CPPFLAGS"
10469 LDFLAGS="$save_LDFLAGS"
10474 case $lt_cv_dlopen_self in
10475 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10476 *) enable_dlopen_self=unknown ;;
10479 case $lt_cv_dlopen_self_static in
10480 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10481 *) enable_dlopen_self_static=unknown ;;
10486 # Report which librarie types wil actually be built
10487 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10488 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10489 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10490 echo "${ECHO_T}$can_build_shared" >&6
10492 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10493 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10494 test "$can_build_shared" = "no" && enable_shared=no
10496 # On AIX, shared libraries and static libraries use the same namespace, and
10497 # are all built from PIC.
10500 test "$enable_shared" = yes && enable_static=no
10501 if test -n "$RANLIB"; then
10502 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10503 postinstall_cmds='$RANLIB $lib'
10508 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10509 test "$enable_shared" = yes && enable_static=no
10513 echo "$as_me:$LINENO: result: $enable_shared" >&5
10514 echo "${ECHO_T}$enable_shared" >&6
10516 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10517 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10518 # Make sure either enable_shared or enable_static is yes.
10519 test "$enable_shared" = yes || enable_static=yes
10520 echo "$as_me:$LINENO: result: $enable_static" >&5
10521 echo "${ECHO_T}$enable_static" >&6
10523 # The else clause should only fire when bootstrapping the
10524 # libtool distribution, otherwise you forgot to ship ltmain.sh
10525 # with your package, and you will get complaints that there are
10526 # no rules to generate ltmain.sh.
10527 if test -f "$ltmain"; then
10528 # See if we are running on zsh, and set the options which allow our commands through
10529 # without removal of \ escapes.
10530 if test -n "${ZSH_VERSION+set}" ; then
10531 setopt NO_GLOB_SUBST
10533 # Now quote all the things that may contain metacharacters while being
10534 # careful not to overquote the AC_SUBSTed values. We take copies of the
10535 # variables and quote the copies for generation of the libtool script.
10536 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10538 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10539 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10540 deplibs_check_method reload_flag reload_cmds need_locks \
10541 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10542 lt_cv_sys_global_symbol_to_c_name_address \
10543 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10544 old_postinstall_cmds old_postuninstall_cmds \
10548 lt_prog_compiler_wl \
10549 lt_prog_compiler_pic \
10550 lt_prog_compiler_static \
10551 lt_prog_compiler_no_builtin_flag \
10552 export_dynamic_flag_spec \
10553 thread_safe_flag_spec \
10554 whole_archive_flag_spec \
10555 enable_shared_with_static_runtimes \
10557 old_archive_from_new_cmds \
10562 compiler_lib_search_path \
10564 archive_expsym_cmds \
10566 postuninstall_cmds \
10567 old_archive_from_expsyms_cmds \
10568 allow_undefined_flag \
10569 no_undefined_flag \
10570 export_symbols_cmds \
10571 hardcode_libdir_flag_spec \
10572 hardcode_libdir_flag_spec_ld \
10573 hardcode_libdir_separator \
10574 hardcode_automatic \
10576 module_expsym_cmds \
10577 lt_cv_prog_compiler_c_o \
10579 include_expsyms; do
10582 old_archive_cmds | \
10583 old_archive_from_new_cmds | \
10585 archive_expsym_cmds | \
10587 module_expsym_cmds | \
10588 old_archive_from_expsyms_cmds | \
10589 export_symbols_cmds | \
10590 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10591 postinstall_cmds | postuninstall_cmds | \
10592 old_postinstall_cmds | old_postuninstall_cmds | \
10593 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10594 # Double-quote double-evaled strings.
10595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10604 *'\$0 --fallback-echo"')
10605 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10609 cfgfile="${ofile}T"
10610 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10612 { echo "$as_me:$LINENO: creating $ofile" >&5
10613 echo "$as_me: creating $ofile" >&6;}
10615 cat <<__EOF__ >> "$cfgfile"
10618 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10619 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10623 # Free Software Foundation, Inc.
10625 # This file is part of GNU Libtool:
10626 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10628 # This program is free software; you can redistribute it and/or modify
10629 # it under the terms of the GNU General Public License as published by
10630 # the Free Software Foundation; either version 2 of the License, or
10631 # (at your option) any later version.
10633 # This program is distributed in the hope that it will be useful, but
10634 # WITHOUT ANY WARRANTY; without even the implied warranty of
10635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10636 # General Public License for more details.
10638 # You should have received a copy of the GNU General Public License
10639 # along with this program; if not, write to the Free Software
10640 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10642 # As a special exception to the GNU General Public License, if you
10643 # distribute this file as part of a program that contains a
10644 # configuration script generated by Autoconf, you may include it under
10645 # the same distribution terms that you use for the rest of that program.
10647 # A sed program that does not truncate output.
10650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10651 Xsed="$SED -e 1s/^X//"
10653 # The HP-UX ksh and POSIX shell print the target directory to stdout
10654 # if CDPATH is set.
10655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10657 # The names of the tagged configurations supported by this script.
10660 # ### BEGIN LIBTOOL CONFIG
10662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10664 # Shell to use when invoking shell scripts.
10667 # Whether or not to build shared libraries.
10668 build_libtool_libs=$enable_shared
10670 # Whether or not to build static libraries.
10671 build_old_libs=$enable_static
10673 # Whether or not to add -lc for building shared libraries.
10674 build_libtool_need_lc=$archive_cmds_need_lc
10676 # Whether or not to disallow shared libs when runtime libs are static
10677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10679 # Whether or not to optimize for fast installation.
10680 fast_install=$enable_fast_install
10683 host_alias=$host_alias
10687 # The build system.
10688 build_alias=$build_alias
10692 # An echo program that does not interpret backslashes.
10697 AR_FLAGS=$lt_AR_FLAGS
10702 # A language-specific compiler.
10705 # Is the compiler the GNU C compiler?
10711 # The linker used to build libraries.
10714 # Whether we need hard or soft links.
10717 # A BSD-compatible nm program.
10720 # A symbol stripping program
10723 # Used to examine libraries when file_magic_cmd begins "file"
10724 MAGIC_CMD=$MAGIC_CMD
10726 # Used on cygwin: DLL creation program.
10729 # Used on cygwin: object dumper.
10732 # Used on cygwin: assembler.
10735 # The name of the directory that contains temporary libtool files.
10738 # How to create reloadable object files.
10739 reload_flag=$lt_reload_flag
10740 reload_cmds=$lt_reload_cmds
10742 # How to pass a linker flag through the compiler.
10743 wl=$lt_lt_prog_compiler_wl
10745 # Object file suffix (normally "o").
10746 objext="$ac_objext"
10748 # Old archive suffix (normally "a").
10751 # Shared library suffix (normally ".so").
10752 shrext_cmds='$shrext_cmds'
10754 # Executable file suffix (normally "").
10757 # Additional compiler flags for building library objects.
10758 pic_flag=$lt_lt_prog_compiler_pic
10761 # What is the maximum length of a command?
10762 max_cmd_len=$lt_cv_sys_max_cmd_len
10764 # Does compiler simultaneously support -c and -o options?
10765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10767 # Must we lock files when doing compilation?
10768 need_locks=$lt_need_locks
10770 # Do we need the lib prefix for modules?
10771 need_lib_prefix=$need_lib_prefix
10773 # Do we need a version for libraries?
10774 need_version=$need_version
10776 # Whether dlopen is supported.
10777 dlopen_support=$enable_dlopen
10779 # Whether dlopen of programs is supported.
10780 dlopen_self=$enable_dlopen_self
10782 # Whether dlopen of statically linked programs is supported.
10783 dlopen_self_static=$enable_dlopen_self_static
10785 # Compiler flag to prevent dynamic linking.
10786 link_static_flag=$lt_lt_prog_compiler_static
10788 # Compiler flag to turn off builtin functions.
10789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10791 # Compiler flag to allow reflexive dlopens.
10792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10794 # Compiler flag to generate shared objects directly from archives.
10795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10797 # Compiler flag to generate thread-safe objects.
10798 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10800 # Library versioning type.
10801 version_type=$version_type
10803 # Format of library name prefix.
10804 libname_spec=$lt_libname_spec
10806 # List of archive names. First name is the real one, the rest are links.
10807 # The last name is the one that the linker finds with -lNAME.
10808 library_names_spec=$lt_library_names_spec
10810 # The coded name of the library, if different from the real name.
10811 soname_spec=$lt_soname_spec
10813 # Commands used to build and install an old-style archive.
10815 old_archive_cmds=$lt_old_archive_cmds
10816 old_postinstall_cmds=$lt_old_postinstall_cmds
10817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10819 # Create an old-style archive from a shared archive.
10820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10822 # Create a temporary old-style archive to link instead of a shared archive.
10823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10825 # Commands used to build and install a shared archive.
10826 archive_cmds=$lt_archive_cmds
10827 archive_expsym_cmds=$lt_archive_expsym_cmds
10828 postinstall_cmds=$lt_postinstall_cmds
10829 postuninstall_cmds=$lt_postuninstall_cmds
10831 # Commands used to build a loadable module (assumed same as above if empty)
10832 module_cmds=$lt_module_cmds
10833 module_expsym_cmds=$lt_module_expsym_cmds
10835 # Commands to strip libraries.
10836 old_striplib=$lt_old_striplib
10837 striplib=$lt_striplib
10839 # Dependencies to place before the objects being linked to create a
10841 predep_objects=$lt_predep_objects
10843 # Dependencies to place after the objects being linked to create a
10845 postdep_objects=$lt_postdep_objects
10847 # Dependencies to place before the objects being linked to create a
10849 predeps=$lt_predeps
10851 # Dependencies to place after the objects being linked to create a
10853 postdeps=$lt_postdeps
10855 # The library search path used internally by the compiler when linking
10856 # a shared library.
10857 compiler_lib_search_path=$lt_compiler_lib_search_path
10859 # Method to check whether dependent libraries are shared objects.
10860 deplibs_check_method=$lt_deplibs_check_method
10862 # Command to use when deplibs_check_method == file_magic.
10863 file_magic_cmd=$lt_file_magic_cmd
10865 # Flag that allows shared libraries with undefined symbols to be built.
10866 allow_undefined_flag=$lt_allow_undefined_flag
10868 # Flag that forces no undefined symbols.
10869 no_undefined_flag=$lt_no_undefined_flag
10871 # Commands used to finish a libtool library installation in a directory.
10872 finish_cmds=$lt_finish_cmds
10874 # Same as above, but a single script fragment to be evaled but not shown.
10875 finish_eval=$lt_finish_eval
10877 # Take the output of nm and produce a listing of raw symbols and C names.
10878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10880 # Transform the output of nm in a proper C declaration
10881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10883 # Transform the output of nm in a C name address pair
10884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10886 # This is the shared library runtime path variable.
10887 runpath_var=$runpath_var
10889 # This is the shared library path variable.
10890 shlibpath_var=$shlibpath_var
10892 # Is shlibpath searched before the hard-coded library search path?
10893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10895 # How to hardcode a shared library path into an executable.
10896 hardcode_action=$hardcode_action
10898 # Whether we should hardcode library paths into libraries.
10899 hardcode_into_libs=$hardcode_into_libs
10901 # Flag to hardcode \$libdir into a binary during linking.
10902 # This must work even if \$libdir does not exist.
10903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10905 # If ld is used when linking, flag to hardcode \$libdir into
10906 # a binary during linking. This must work even if \$libdir does
10908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10910 # Whether we need a single -rpath flag with a separated argument.
10911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10914 # resulting binary.
10915 hardcode_direct=$hardcode_direct
10917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10918 # resulting binary.
10919 hardcode_minus_L=$hardcode_minus_L
10921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10922 # the resulting binary.
10923 hardcode_shlibpath_var=$hardcode_shlibpath_var
10925 # Set to yes if building a shared library automatically hardcodes DIR into the library
10926 # and all subsequent libraries and executables linked against it.
10927 hardcode_automatic=$hardcode_automatic
10929 # Variables whose values should be saved in libtool wrapper scripts and
10930 # restored at relink time.
10931 variables_saved_for_relink="$variables_saved_for_relink"
10933 # Whether libtool must link a program against all its dependency libraries.
10934 link_all_deplibs=$link_all_deplibs
10936 # Compile-time system search path for libraries
10937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10939 # Run-time system search path for libraries
10940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10942 # Fix the shell variable \$srcfile for the compiler.
10943 fix_srcfile_path="$fix_srcfile_path"
10945 # Set to yes if exported symbols are required.
10946 always_export_symbols=$always_export_symbols
10948 # The commands to list exported symbols.
10949 export_symbols_cmds=$lt_export_symbols_cmds
10951 # The commands to extract the exported symbol list from a shared archive.
10952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10954 # Symbols that should not be listed in the preloaded symbols.
10955 exclude_expsyms=$lt_exclude_expsyms
10957 # Symbols that must always be exported.
10958 include_expsyms=$lt_include_expsyms
10960 # ### END LIBTOOL CONFIG
10967 cat <<\EOF >> "$cfgfile"
10969 # AIX sometimes has problems with the GCC collect2 program. For some
10970 # reason, if we set the COLLECT_NAMES environment variable, the problems
10971 # vanish in a puff of smoke.
10972 if test "X${COLLECT_NAMES+set}" != Xset; then
10974 export COLLECT_NAMES
10980 # We use sed instead of cat because bash on DJGPP gets confused if
10981 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10982 # text mode, it properly converts lines to CR/LF. This bash problem
10983 # is reportedly fixed, but why not run on old versions too?
10984 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10986 mv -f "$cfgfile" "$ofile" || \
10987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10991 # If there is no Makefile yet, we rely on a make rule to execute
10992 # `config.status --recheck' to rerun these tests and create the
10993 # libtool script then.
10994 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10995 if test -f "$ltmain_in"; then
10996 test -f Makefile && make "$ltmain"
11002 ac_cpp='$CPP $CPPFLAGS'
11003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010 # Check whether --with-tags or --without-tags was given.
11011 if test "${with_tags+set}" = set; then
11012 withval="$with_tags"
11013 tagnames="$withval"
11016 if test -f "$ltmain" && test -n "$tagnames"; then
11017 if test ! -f "${ofile}"; then
11018 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11019 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11022 if test -z "$LTCC"; then
11023 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11024 if test -z "$LTCC"; then
11025 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11026 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11029 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11033 # Extract list of available tagged configurations in $ofile.
11034 # Note that this assumes the entire list is on one line.
11035 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038 for tagname in $tagnames; do
11040 # Check whether tagname contains only valid characters
11041 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11043 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11044 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11045 { (exit 1); exit 1; }; }
11049 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11051 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11052 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11053 { (exit 1); exit 1; }; }
11056 # Update the list of available tags.
11057 if test -n "$tagname"; then
11058 echo appending configuration tag \"$tagname\" to $ofile
11062 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11063 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11064 (test "X$CXX" != "Xg++"))) ; then
11072 if test -n "$F77" && test "X$F77" != "Xno"; then
11080 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11091 # Source file extension for RC test sources.
11094 # Object file extension for compiled RC test sources.
11098 # Code to be used in simple compile tests
11099 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11101 # Code to be used in simple link tests
11102 lt_simple_link_test_code="$lt_simple_compile_test_code"
11104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11106 # If no C compiler was specified, use CC.
11109 # Allow CC to be a program name with arguments.
11113 # save warnings/boilerplate of simple test code
11114 ac_outfile=conftest.$ac_objext
11115 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11117 _lt_compiler_boilerplate=`cat conftest.err`
11120 ac_outfile=conftest.$ac_objext
11121 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11123 _lt_linker_boilerplate=`cat conftest.err`
11127 # Allow CC to be a program name with arguments.
11132 for cc_temp in $compiler""; do
11134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11140 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11142 lt_cv_prog_compiler_c_o_RC=yes
11144 # The else clause should only fire when bootstrapping the
11145 # libtool distribution, otherwise you forgot to ship ltmain.sh
11146 # with your package, and you will get complaints that there are
11147 # no rules to generate ltmain.sh.
11148 if test -f "$ltmain"; then
11149 # See if we are running on zsh, and set the options which allow our commands through
11150 # without removal of \ escapes.
11151 if test -n "${ZSH_VERSION+set}" ; then
11152 setopt NO_GLOB_SUBST
11154 # Now quote all the things that may contain metacharacters while being
11155 # careful not to overquote the AC_SUBSTed values. We take copies of the
11156 # variables and quote the copies for generation of the libtool script.
11157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11161 deplibs_check_method reload_flag reload_cmds need_locks \
11162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11163 lt_cv_sys_global_symbol_to_c_name_address \
11164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11165 old_postinstall_cmds old_postuninstall_cmds \
11169 lt_prog_compiler_wl_RC \
11170 lt_prog_compiler_pic_RC \
11171 lt_prog_compiler_static_RC \
11172 lt_prog_compiler_no_builtin_flag_RC \
11173 export_dynamic_flag_spec_RC \
11174 thread_safe_flag_spec_RC \
11175 whole_archive_flag_spec_RC \
11176 enable_shared_with_static_runtimes_RC \
11177 old_archive_cmds_RC \
11178 old_archive_from_new_cmds_RC \
11179 predep_objects_RC \
11180 postdep_objects_RC \
11183 compiler_lib_search_path_RC \
11185 archive_expsym_cmds_RC \
11186 postinstall_cmds_RC \
11187 postuninstall_cmds_RC \
11188 old_archive_from_expsyms_cmds_RC \
11189 allow_undefined_flag_RC \
11190 no_undefined_flag_RC \
11191 export_symbols_cmds_RC \
11192 hardcode_libdir_flag_spec_RC \
11193 hardcode_libdir_flag_spec_ld_RC \
11194 hardcode_libdir_separator_RC \
11195 hardcode_automatic_RC \
11197 module_expsym_cmds_RC \
11198 lt_cv_prog_compiler_c_o_RC \
11199 exclude_expsyms_RC \
11200 include_expsyms_RC; do
11203 old_archive_cmds_RC | \
11204 old_archive_from_new_cmds_RC | \
11205 archive_cmds_RC | \
11206 archive_expsym_cmds_RC | \
11208 module_expsym_cmds_RC | \
11209 old_archive_from_expsyms_cmds_RC | \
11210 export_symbols_cmds_RC | \
11211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11212 postinstall_cmds | postuninstall_cmds | \
11213 old_postinstall_cmds | old_postuninstall_cmds | \
11214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11215 # Double-quote double-evaled strings.
11216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11225 *'\$0 --fallback-echo"')
11226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11232 cat <<__EOF__ >> "$cfgfile"
11233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11237 # Shell to use when invoking shell scripts.
11240 # Whether or not to build shared libraries.
11241 build_libtool_libs=$enable_shared
11243 # Whether or not to build static libraries.
11244 build_old_libs=$enable_static
11246 # Whether or not to add -lc for building shared libraries.
11247 build_libtool_need_lc=$archive_cmds_need_lc_RC
11249 # Whether or not to disallow shared libs when runtime libs are static
11250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11252 # Whether or not to optimize for fast installation.
11253 fast_install=$enable_fast_install
11256 host_alias=$host_alias
11260 # The build system.
11261 build_alias=$build_alias
11265 # An echo program that does not interpret backslashes.
11270 AR_FLAGS=$lt_AR_FLAGS
11275 # A language-specific compiler.
11278 # Is the compiler the GNU C compiler?
11284 # The linker used to build libraries.
11287 # Whether we need hard or soft links.
11290 # A BSD-compatible nm program.
11293 # A symbol stripping program
11296 # Used to examine libraries when file_magic_cmd begins "file"
11297 MAGIC_CMD=$MAGIC_CMD
11299 # Used on cygwin: DLL creation program.
11302 # Used on cygwin: object dumper.
11305 # Used on cygwin: assembler.
11308 # The name of the directory that contains temporary libtool files.
11311 # How to create reloadable object files.
11312 reload_flag=$lt_reload_flag
11313 reload_cmds=$lt_reload_cmds
11315 # How to pass a linker flag through the compiler.
11316 wl=$lt_lt_prog_compiler_wl_RC
11318 # Object file suffix (normally "o").
11319 objext="$ac_objext"
11321 # Old archive suffix (normally "a").
11324 # Shared library suffix (normally ".so").
11325 shrext_cmds='$shrext_cmds'
11327 # Executable file suffix (normally "").
11330 # Additional compiler flags for building library objects.
11331 pic_flag=$lt_lt_prog_compiler_pic_RC
11334 # What is the maximum length of a command?
11335 max_cmd_len=$lt_cv_sys_max_cmd_len
11337 # Does compiler simultaneously support -c and -o options?
11338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11340 # Must we lock files when doing compilation?
11341 need_locks=$lt_need_locks
11343 # Do we need the lib prefix for modules?
11344 need_lib_prefix=$need_lib_prefix
11346 # Do we need a version for libraries?
11347 need_version=$need_version
11349 # Whether dlopen is supported.
11350 dlopen_support=$enable_dlopen
11352 # Whether dlopen of programs is supported.
11353 dlopen_self=$enable_dlopen_self
11355 # Whether dlopen of statically linked programs is supported.
11356 dlopen_self_static=$enable_dlopen_self_static
11358 # Compiler flag to prevent dynamic linking.
11359 link_static_flag=$lt_lt_prog_compiler_static_RC
11361 # Compiler flag to turn off builtin functions.
11362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11364 # Compiler flag to allow reflexive dlopens.
11365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11367 # Compiler flag to generate shared objects directly from archives.
11368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11370 # Compiler flag to generate thread-safe objects.
11371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11373 # Library versioning type.
11374 version_type=$version_type
11376 # Format of library name prefix.
11377 libname_spec=$lt_libname_spec
11379 # List of archive names. First name is the real one, the rest are links.
11380 # The last name is the one that the linker finds with -lNAME.
11381 library_names_spec=$lt_library_names_spec
11383 # The coded name of the library, if different from the real name.
11384 soname_spec=$lt_soname_spec
11386 # Commands used to build and install an old-style archive.
11388 old_archive_cmds=$lt_old_archive_cmds_RC
11389 old_postinstall_cmds=$lt_old_postinstall_cmds
11390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11392 # Create an old-style archive from a shared archive.
11393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11395 # Create a temporary old-style archive to link instead of a shared archive.
11396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11398 # Commands used to build and install a shared archive.
11399 archive_cmds=$lt_archive_cmds_RC
11400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11401 postinstall_cmds=$lt_postinstall_cmds
11402 postuninstall_cmds=$lt_postuninstall_cmds
11404 # Commands used to build a loadable module (assumed same as above if empty)
11405 module_cmds=$lt_module_cmds_RC
11406 module_expsym_cmds=$lt_module_expsym_cmds_RC
11408 # Commands to strip libraries.
11409 old_striplib=$lt_old_striplib
11410 striplib=$lt_striplib
11412 # Dependencies to place before the objects being linked to create a
11414 predep_objects=$lt_predep_objects_RC
11416 # Dependencies to place after the objects being linked to create a
11418 postdep_objects=$lt_postdep_objects_RC
11420 # Dependencies to place before the objects being linked to create a
11422 predeps=$lt_predeps_RC
11424 # Dependencies to place after the objects being linked to create a
11426 postdeps=$lt_postdeps_RC
11428 # The library search path used internally by the compiler when linking
11429 # a shared library.
11430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11432 # Method to check whether dependent libraries are shared objects.
11433 deplibs_check_method=$lt_deplibs_check_method
11435 # Command to use when deplibs_check_method == file_magic.
11436 file_magic_cmd=$lt_file_magic_cmd
11438 # Flag that allows shared libraries with undefined symbols to be built.
11439 allow_undefined_flag=$lt_allow_undefined_flag_RC
11441 # Flag that forces no undefined symbols.
11442 no_undefined_flag=$lt_no_undefined_flag_RC
11444 # Commands used to finish a libtool library installation in a directory.
11445 finish_cmds=$lt_finish_cmds
11447 # Same as above, but a single script fragment to be evaled but not shown.
11448 finish_eval=$lt_finish_eval
11450 # Take the output of nm and produce a listing of raw symbols and C names.
11451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11453 # Transform the output of nm in a proper C declaration
11454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11456 # Transform the output of nm in a C name address pair
11457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11459 # This is the shared library runtime path variable.
11460 runpath_var=$runpath_var
11462 # This is the shared library path variable.
11463 shlibpath_var=$shlibpath_var
11465 # Is shlibpath searched before the hard-coded library search path?
11466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11468 # How to hardcode a shared library path into an executable.
11469 hardcode_action=$hardcode_action_RC
11471 # Whether we should hardcode library paths into libraries.
11472 hardcode_into_libs=$hardcode_into_libs
11474 # Flag to hardcode \$libdir into a binary during linking.
11475 # This must work even if \$libdir does not exist.
11476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11478 # If ld is used when linking, flag to hardcode \$libdir into
11479 # a binary during linking. This must work even if \$libdir does
11481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11483 # Whether we need a single -rpath flag with a separated argument.
11484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11487 # resulting binary.
11488 hardcode_direct=$hardcode_direct_RC
11490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11491 # resulting binary.
11492 hardcode_minus_L=$hardcode_minus_L_RC
11494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11495 # the resulting binary.
11496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11498 # Set to yes if building a shared library automatically hardcodes DIR into the library
11499 # and all subsequent libraries and executables linked against it.
11500 hardcode_automatic=$hardcode_automatic_RC
11502 # Variables whose values should be saved in libtool wrapper scripts and
11503 # restored at relink time.
11504 variables_saved_for_relink="$variables_saved_for_relink"
11506 # Whether libtool must link a program against all its dependency libraries.
11507 link_all_deplibs=$link_all_deplibs_RC
11509 # Compile-time system search path for libraries
11510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11512 # Run-time system search path for libraries
11513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11515 # Fix the shell variable \$srcfile for the compiler.
11516 fix_srcfile_path="$fix_srcfile_path_RC"
11518 # Set to yes if exported symbols are required.
11519 always_export_symbols=$always_export_symbols_RC
11521 # The commands to list exported symbols.
11522 export_symbols_cmds=$lt_export_symbols_cmds_RC
11524 # The commands to extract the exported symbol list from a shared archive.
11525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11527 # Symbols that should not be listed in the preloaded symbols.
11528 exclude_expsyms=$lt_exclude_expsyms_RC
11530 # Symbols that must always be exported.
11531 include_expsyms=$lt_include_expsyms_RC
11533 # ### END LIBTOOL TAG CONFIG: $tagname
11539 # If there is no Makefile yet, we rely on a make rule to execute
11540 # `config.status --recheck' to rerun these tests and create the
11541 # libtool script then.
11542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11543 if test -f "$ltmain_in"; then
11544 test -f Makefile && make "$ltmain"
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11560 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11562 { (exit 1); exit 1; }; }
11566 # Append the new tag name to the list of available tags.
11567 if test -n "$tagname" ; then
11568 available_tags="$available_tags $tagname"
11574 # Now substitute the updated list of available tags.
11575 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11576 mv "${ofile}T" "$ofile"
11580 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11582 { (exit 1); exit 1; }; }
11588 # This can be used to rebuild libtool when needed
11589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11591 # Always use our own libtool.
11592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11594 # Prevent multiple expansion
11606 if test $ol_enable_perl != no ; then
11607 # Extract the first word of "perl", so it can be a program name with args.
11608 set dummy perl; ac_word=$2
11609 echo "$as_me:$LINENO: checking for $ac_word" >&5
11610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11611 if test "${ac_cv_path_PERLBIN+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11637 PERLBIN=$ac_cv_path_PERLBIN
11639 if test -n "$PERLBIN"; then
11640 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11641 echo "${ECHO_T}$PERLBIN" >&6
11643 echo "$as_me:$LINENO: result: no" >&5
11644 echo "${ECHO_T}no" >&6
11648 if test "no$PERLBIN" = "no" ; then
11649 if test $ol_enable_perl = yes ; then
11650 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11651 echo "$as_me: error: could not locate perl" >&2;}
11652 { (exit 1); exit 1; }; }
11656 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11657 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11659 if test x"$ol_enable_perl" = "xyes" ; then
11660 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11662 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11669 ac_cpp='$CPP $CPPFLAGS'
11670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11674 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11675 # On Suns, sometimes $CPP names a directory.
11676 if test -n "$CPP" && test -d "$CPP"; then
11679 if test -z "$CPP"; then
11680 if test "${ac_cv_prog_CPP+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 # Double quotes because CPP needs to be expanded
11684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11686 ac_preproc_ok=false
11687 for ac_c_preproc_warn_flag in '' yes
11689 # Use a header file that comes with gcc, so configuring glibc
11690 # with a fresh cross-compiler works.
11691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692 # <limits.h> exists even on freestanding compilers.
11693 # On the NeXT, cc -E runs the code through the compiler's parser,
11694 # not just through cpp. "Syntax error" is here to catch this case.
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11702 # include <limits.h>
11704 # include <assert.h>
11708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } >/dev/null; then
11716 if test -s conftest.err; then
11717 ac_cpp_err=$ac_c_preproc_warn_flag
11718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11725 if test -z "$ac_cpp_err"; then
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 # Broken: fails on valid input.
11734 rm -f conftest.err conftest.$ac_ext
11736 # OK, works on sane cases. Now check whether non-existent headers
11737 # can be detected and how.
11738 cat >conftest.$ac_ext <<_ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 #include <ac_nonexistent.h>
11746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11749 grep -v '^ *+' conftest.er1 >conftest.err
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } >/dev/null; then
11754 if test -s conftest.err; then
11755 ac_cpp_err=$ac_c_preproc_warn_flag
11756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11763 if test -z "$ac_cpp_err"; then
11764 # Broken: success on invalid input.
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 # Passes both tests.
11774 rm -f conftest.err conftest.$ac_ext
11777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11778 rm -f conftest.err conftest.$ac_ext
11779 if $ac_preproc_ok; then
11784 ac_cv_prog_CPP=$CPP
11787 CPP=$ac_cv_prog_CPP
11789 ac_cv_prog_CPP=$CPP
11791 echo "$as_me:$LINENO: result: $CPP" >&5
11792 echo "${ECHO_T}$CPP" >&6
11793 ac_preproc_ok=false
11794 for ac_c_preproc_warn_flag in '' yes
11796 # Use a header file that comes with gcc, so configuring glibc
11797 # with a fresh cross-compiler works.
11798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799 # <limits.h> exists even on freestanding compilers.
11800 # On the NeXT, cc -E runs the code through the compiler's parser,
11801 # not just through cpp. "Syntax error" is here to catch this case.
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11809 # include <limits.h>
11811 # include <assert.h>
11815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } >/dev/null; then
11823 if test -s conftest.err; then
11824 ac_cpp_err=$ac_c_preproc_warn_flag
11825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11832 if test -z "$ac_cpp_err"; then
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 # Broken: fails on valid input.
11841 rm -f conftest.err conftest.$ac_ext
11843 # OK, works on sane cases. Now check whether non-existent headers
11844 # can be detected and how.
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 #include <ac_nonexistent.h>
11853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } >/dev/null; then
11861 if test -s conftest.err; then
11862 ac_cpp_err=$ac_c_preproc_warn_flag
11863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11870 if test -z "$ac_cpp_err"; then
11871 # Broken: success on invalid input.
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 # Passes both tests.
11881 rm -f conftest.err conftest.$ac_ext
11884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11885 rm -f conftest.err conftest.$ac_ext
11886 if $ac_preproc_ok; then
11889 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11890 See \`config.log' for more details." >&5
11891 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11892 See \`config.log' for more details." >&2;}
11893 { (exit 1); exit 1; }; }
11897 ac_cpp='$CPP $CPPFLAGS'
11898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11902 echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
11903 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6
11904 if test "${ol_cv_msvc+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11915 #include <__FOO__/generate_error.h>
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } >/dev/null; then
11927 if test -s conftest.err; then
11928 ac_cpp_err=$ac_c_preproc_warn_flag
11929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11936 if test -z "$ac_cpp_err"; then
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11944 rm -f conftest.err conftest.$ac_ext
11946 echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
11947 echo "${ECHO_T}$ol_cv_msvc" >&6
11950 *mingw32* ) ac_cv_mingw32=yes ;;
11951 *cygwin* ) ac_cv_cygwin=yes ;;
11952 *interix* ) ac_cv_interix=yes ;;
11958 cat >>confdefs.h <<_ACEOF
11959 #define EXEEXT "${EXEEXT}"
11963 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11964 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11965 if test "${ac_cv_lib_be_be_app+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-lbe -lroot -lnet $LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_lib_be_be_app=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_lib_be_be_app=no
12021 rm -f conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12025 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12026 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
12027 if test $ac_cv_lib_be_be_app = yes; then
12028 LIBS="$LIBS -lbe -lroot -lnet"
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039 if test -n "$ac_tool_prefix"; then
12040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12042 echo "$as_me:$LINENO: checking for $ac_word" >&5
12043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12044 if test "${ac_cv_prog_CC+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 if test -n "$CC"; then
12048 ac_cv_prog_CC="$CC" # Let the user override the test.
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 if test -n "$CC"; then
12068 echo "$as_me:$LINENO: result: $CC" >&5
12069 echo "${ECHO_T}$CC" >&6
12071 echo "$as_me:$LINENO: result: no" >&5
12072 echo "${ECHO_T}no" >&6
12076 if test -z "$ac_cv_prog_CC"; then
12078 # Extract the first word of "gcc", so it can be a program name with args.
12079 set dummy gcc; ac_word=$2
12080 echo "$as_me:$LINENO: checking for $ac_word" >&5
12081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 if test -n "$ac_ct_CC"; then
12086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12095 ac_cv_prog_ac_ct_CC="gcc"
12096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12105 if test -n "$ac_ct_CC"; then
12106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12107 echo "${ECHO_T}$ac_ct_CC" >&6
12109 echo "$as_me:$LINENO: result: no" >&5
12110 echo "${ECHO_T}no" >&6
12115 CC="$ac_cv_prog_CC"
12118 if test -z "$CC"; then
12119 if test -n "$ac_tool_prefix"; then
12120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12121 set dummy ${ac_tool_prefix}cc; ac_word=$2
12122 echo "$as_me:$LINENO: checking for $ac_word" >&5
12123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12124 if test "${ac_cv_prog_CC+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 if test -n "$CC"; then
12128 ac_cv_prog_CC="$CC" # Let the user override the test.
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_prog_CC="${ac_tool_prefix}cc"
12138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 if test -n "$CC"; then
12148 echo "$as_me:$LINENO: result: $CC" >&5
12149 echo "${ECHO_T}$CC" >&6
12151 echo "$as_me:$LINENO: result: no" >&5
12152 echo "${ECHO_T}no" >&6
12156 if test -z "$ac_cv_prog_CC"; then
12158 # Extract the first word of "cc", so it can be a program name with args.
12159 set dummy cc; ac_word=$2
12160 echo "$as_me:$LINENO: checking for $ac_word" >&5
12161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 if test -n "$ac_ct_CC"; then
12166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_prog_ac_ct_CC="cc"
12176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12185 if test -n "$ac_ct_CC"; then
12186 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12187 echo "${ECHO_T}$ac_ct_CC" >&6
12189 echo "$as_me:$LINENO: result: no" >&5
12190 echo "${ECHO_T}no" >&6
12195 CC="$ac_cv_prog_CC"
12199 if test -z "$CC"; then
12200 # Extract the first word of "cc", so it can be a program name with args.
12201 set dummy cc; ac_word=$2
12202 echo "$as_me:$LINENO: checking for $ac_word" >&5
12203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12204 if test "${ac_cv_prog_CC+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 if test -n "$CC"; then
12208 ac_cv_prog_CC="$CC" # Let the user override the test.
12210 ac_prog_rejected=no
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12219 ac_prog_rejected=yes
12223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 if test $ac_prog_rejected = yes; then
12230 # We found a bogon in the path, so make sure we never use it.
12231 set dummy $ac_cv_prog_CC
12233 if test $# != 0; then
12234 # We chose a different compiler from the bogus one.
12235 # However, it has the same basename, so the bogon will be chosen
12236 # first if we set CC to just the basename; use the full file name.
12238 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12244 if test -n "$CC"; then
12245 echo "$as_me:$LINENO: result: $CC" >&5
12246 echo "${ECHO_T}$CC" >&6
12248 echo "$as_me:$LINENO: result: no" >&5
12249 echo "${ECHO_T}no" >&6
12253 if test -z "$CC"; then
12254 if test -n "$ac_tool_prefix"; then
12257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12259 echo "$as_me:$LINENO: checking for $ac_word" >&5
12260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12261 if test "${ac_cv_prog_CC+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 if test -n "$CC"; then
12265 ac_cv_prog_CC="$CC" # Let the user override the test.
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12271 test -z "$as_dir" && as_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 if test -n "$CC"; then
12285 echo "$as_me:$LINENO: result: $CC" >&5
12286 echo "${ECHO_T}$CC" >&6
12288 echo "$as_me:$LINENO: result: no" >&5
12289 echo "${ECHO_T}no" >&6
12292 test -n "$CC" && break
12295 if test -z "$CC"; then
12299 # Extract the first word of "$ac_prog", so it can be a program name with args.
12300 set dummy $ac_prog; ac_word=$2
12301 echo "$as_me:$LINENO: checking for $ac_word" >&5
12302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 if test -n "$ac_ct_CC"; then
12307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12313 test -z "$as_dir" && as_dir=.
12314 for ac_exec_ext in '' $ac_executable_extensions; do
12315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12316 ac_cv_prog_ac_ct_CC="$ac_prog"
12317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12326 if test -n "$ac_ct_CC"; then
12327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12328 echo "${ECHO_T}$ac_ct_CC" >&6
12330 echo "$as_me:$LINENO: result: no" >&5
12331 echo "${ECHO_T}no" >&6
12334 test -n "$ac_ct_CC" && break
12343 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12344 See \`config.log' for more details." >&5
12345 echo "$as_me: error: no acceptable C compiler found in \$PATH
12346 See \`config.log' for more details." >&2;}
12347 { (exit 1); exit 1; }; }
12349 # Provide some information about the compiler.
12350 echo "$as_me:$LINENO:" \
12351 "checking for C compiler version" >&5
12352 ac_compiler=`set X $ac_compile; echo $2`
12353 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12354 (eval $ac_compiler --version </dev/null >&5) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }
12358 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12359 (eval $ac_compiler -v </dev/null >&5) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }
12363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12364 (eval $ac_compiler -V </dev/null >&5) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }
12369 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12370 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12371 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12392 rm -f conftest.$ac_objext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12394 (eval $ac_compile) 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest.$ac_objext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 ac_compiler_gnu=yes
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12425 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12427 GCC=`test $ac_compiler_gnu = yes && echo yes`
12428 ac_test_CFLAGS=${CFLAGS+set}
12429 ac_save_CFLAGS=$CFLAGS
12431 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12432 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12433 if test "${ac_cv_prog_cc_g+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12451 rm -f conftest.$ac_objext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12453 (eval $ac_compile) 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_c_werror_flag"
12461 || test ! -s conftest.err'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest.$ac_objext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_prog_cc_g=yes
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12483 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12484 if test "$ac_test_CFLAGS" = set; then
12485 CFLAGS=$ac_save_CFLAGS
12486 elif test $ac_cv_prog_cc_g = yes; then
12487 if test "$GCC" = yes; then
12493 if test "$GCC" = yes; then
12499 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12500 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12501 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 ac_cv_prog_cc_stdc=no
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 #include <stdarg.h>
12514 #include <sys/types.h>
12515 #include <sys/stat.h>
12516 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12517 struct buf { int x; };
12518 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12519 static char *e (p, i)
12525 static char *f (char * (*g) (char **, int), char **p, ...)
12530 s = g (p, va_arg (v,int));
12535 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12536 function prototypes and stuff, but not '\xHH' hex character constants.
12537 These don't provoke an error unfortunately, instead are silently treated
12538 as 'x'. The following induces an error, until -std1 is added to get
12539 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12540 array size at least. It's necessary to write '\x00'==0 to get something
12541 that's true only with -std1. */
12542 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12544 int test (int i, double x);
12545 struct s1 {int (*f) (int a);};
12546 struct s2 {int (*f) (double a);};
12547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12558 # Don't try gcc -ansi; that turns off useful extensions and
12559 # breaks some systems' header files.
12560 # AIX -qlanglvl=ansi
12561 # Ultrix and OSF/1 -std1
12562 # HP-UX 10.20 and later -Ae
12563 # HP-UX older versions -Aa -D_HPUX_SOURCE
12564 # SVR4 -Xc -D__EXTENSIONS__
12565 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12567 CC="$ac_save_CC $ac_arg"
12568 rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570 (eval $ac_compile) 2>conftest.er1
12572 grep -v '^ *+' conftest.er1 >conftest.err
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag"
12578 || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_prog_cc_stdc=$ac_arg
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12597 rm -f conftest.err conftest.$ac_objext
12599 rm -f conftest.$ac_ext conftest.$ac_objext
12604 case "x$ac_cv_prog_cc_stdc" in
12606 echo "$as_me:$LINENO: result: none needed" >&5
12607 echo "${ECHO_T}none needed" >&6 ;;
12609 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12610 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12611 CC="$CC $ac_cv_prog_cc_stdc" ;;
12614 # Some people use a C++ compiler to compile C. Since we use `exit',
12615 # in C++ we need to declare it. In case someone uses the same compiler
12616 # for both compiling C and C++ we need to have the C++ compiler decide
12617 # the declaration of exit, since it's the most demanding environment.
12618 cat >conftest.$ac_ext <<_ACEOF
12619 #ifndef __cplusplus
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_c_werror_flag"
12633 || test ! -s conftest.err'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest.$ac_objext'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 for ac_declaration in \
12647 'extern "C" void std::exit (int) throw (); using std::exit;' \
12648 'extern "C" void std::exit (int); using std::exit;' \
12649 'extern "C" void exit (int) throw ();' \
12650 'extern "C" void exit (int);' \
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12660 #include <stdlib.h>
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12673 grep -v '^ *+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716 (eval $ac_compile) 2>conftest.er1
12718 grep -v '^ *+' conftest.er1 >conftest.err
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -z "$ac_c_werror_flag"
12724 || test ! -s conftest.err'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest.$ac_objext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12745 if test -n "$ac_declaration"; then
12746 echo '#ifdef __cplusplus' >>confdefs.h
12747 echo $ac_declaration >>confdefs.h
12748 echo '#endif' >>confdefs.h
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12758 ac_cpp='$CPP $CPPFLAGS'
12759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12763 depcc="$CC" am_compiler_list=
12765 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12766 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12767 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12771 # We make a subdir and do the tests there. Otherwise we can end up
12772 # making bogus files that we don't know about and never remove. For
12773 # instance it was reported that on HP-UX the gcc test will end up
12774 # making a dummy file named `D' -- because `-MD' means `put the output
12777 # Copy depcomp to subdir because otherwise we won't find it if we're
12778 # using a relative directory.
12779 cp "$am_depcomp" conftest.dir
12781 # We will build objects and dependencies in a subdirectory because
12782 # it helps to detect inapplicable dependency modes. For instance
12783 # both Tru64's cc and ICC support -MD to output dependencies as a
12784 # side effect of compilation, but ICC will put the dependencies in
12785 # the current directory while Tru64 will put them in the object
12789 am_cv_CC_dependencies_compiler_type=none
12790 if test "$am_compiler_list" = ""; then
12791 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12793 for depmode in $am_compiler_list; do
12794 # Setup a source with many dependencies, because some compilers
12795 # like to wrap large dependency lists on column 80 (with \), and
12796 # we should not choose a depcomp mode which is confused by this.
12798 # We need to recreate these files for each test, as the compiler may
12799 # overwrite some of them when testing with obscure command lines.
12800 # This happens at least with the AIX C compiler.
12802 for i in 1 2 3 4 5 6; do
12803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12804 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12805 # Solaris 8's {/usr,}/bin/sh.
12806 touch sub/conftst$i.h
12808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12812 # after this tag, mechanisms are not by side-effect, so they'll
12813 # only be used when explicitly requested
12814 if test "x$enable_dependency_tracking" = xyes; then
12822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12823 # mode. It turns out that the SunPro C++ compiler does not properly
12824 # handle `-M -o', and we need to detect this.
12825 if depmode=$depmode \
12826 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12827 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12828 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12829 >/dev/null 2>conftest.err &&
12830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12831 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12833 # icc doesn't choke on unknown options, it will just issue warnings
12834 # or remarks (even with -Werror). So we grep stderr for any message
12835 # that says an option was ignored or not supported.
12836 # When given -MP, icc 7.0 and 7.1 complain thusly:
12837 # icc: Command line warning: ignoring option '-M'; no argument required
12838 # The diagnosis changed in icc 8.0:
12839 # icc: Command line remark: option '-MP' not supported
12840 if (grep 'ignoring option' conftest.err ||
12841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12842 am_cv_CC_dependencies_compiler_type=$depmode
12849 rm -rf conftest.dir
12851 am_cv_CC_dependencies_compiler_type=none
12855 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12856 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12857 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12862 test "x$enable_dependency_tracking" != xno \
12863 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12864 am__fastdepCC_TRUE=
12865 am__fastdepCC_FALSE='#'
12867 am__fastdepCC_TRUE='#'
12868 am__fastdepCC_FALSE=
12872 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12873 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12874 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12875 { (exit 1); exit 1; }; }
12878 # test for make depend flag
12881 if test -z "${MKDEP}"; then
12882 OL_MKDEP="${CC-cc}"
12883 if test -z "${MKDEP_FLAGS}"; then
12884 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12885 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12886 if test "${ol_cv_mkdep+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 for flag in "-M" "-xM"; do
12892 cat > conftest.c <<EOF
12895 if { ac_try='$OL_MKDEP $flag conftest.c'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } \
12901 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12903 if test ! -f conftest."${ac_object}" ; then
12905 OL_MKDEP_FLAGS="$flag"
12913 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12914 echo "${ECHO_T}$ol_cv_mkdep" >&6
12915 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12918 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12922 OL_MKDEP="${MKDEP}"
12923 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12928 if test "${ol_cv_mkdep}" = no ; then
12929 # this will soon become an error
12930 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12931 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12934 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12935 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12936 if test "${ac_cv_lib_s_afopen+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 ac_check_lib_save_LIBS=$LIBS
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 /* Override any gcc2 internal prototype to avoid an error. */
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>conftest.er1
12967 grep -v '^ *+' conftest.er1 >conftest.err
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_lib_s_afopen=yes
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_cv_lib_s_afopen=no
12992 rm -f conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12996 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12997 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12998 if test $ac_cv_lib_s_afopen = yes; then
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_AIX_SECURITY 1
13012 ac_cv_func_getopt=no
13014 cat >>confdefs.h <<\_ACEOF
13015 #define BOTH_STRINGS_H 1
13022 WITH_MODULES_ENABLED=no
13023 if test $ol_enable_modules != no ; then
13025 for ac_header in ltdl.h
13027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029 echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13037 # Is the header compilable?
13038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 $ac_includes_default
13047 #include <$ac_header>
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_header_compiler=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_header_compiler=no
13078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080 echo "${ECHO_T}$ac_header_compiler" >&6
13082 # Is the header present?
13083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #include <$ac_header>
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } >/dev/null; then
13101 if test -s conftest.err; then
13102 ac_cpp_err=$ac_c_preproc_warn_flag
13103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13110 if test -z "$ac_cpp_err"; then
13111 ac_header_preproc=yes
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13116 ac_header_preproc=no
13118 rm -f conftest.err conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6
13122 # So? What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129 ac_header_preproc=yes
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13146 ## --------------------------------------------- ##
13147 ## Report this to <http://www.openldap.org/its/> ##
13148 ## --------------------------------------------- ##
13151 sed "s/^/$as_me: WARNING: /" >&2
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 eval "$as_ac_Header=\$ac_header_preproc"
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166 cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13175 if test $ac_cv_header_ltdl_h = no ; then
13176 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13177 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13178 { (exit 1); exit 1; }; }
13181 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13182 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13183 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-lltdl $LIBS"
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any gcc2 internal prototype to avoid an error. */
13199 /* We use char because int might match the return type of a gcc2
13200 builtin and then its argument prototype would still apply. */
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212 (eval $ac_link) 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag"
13220 || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest$ac_exeext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_lib_ltdl_lt_dlinit=yes
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_cv_lib_ltdl_lt_dlinit=no
13239 rm -f conftest.err conftest.$ac_objext \
13240 conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13243 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13244 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13245 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13247 MODULES_LIBS=-lltdl
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_LIBLTDL 1
13257 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13258 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13259 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13260 { (exit 1); exit 1; }; }
13262 ol_link_modules=yes
13263 WITH_MODULES_ENABLED=yes
13266 for i in $Backends; do
13267 eval "ol_tmp=\$ol_enable_$i"
13268 if test $ol_tmp = mod ; then
13269 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13270 echo "$as_me: WARNING: building static $i backend" >&2;}
13271 eval "ol_enable_$i=yes"
13274 for i in $Overlays; do
13275 eval "ol_tmp=\$ol_enable_$i"
13276 if test $ol_tmp = mod ; then
13277 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13278 echo "$as_me: WARNING: building static $i overlay" >&2;}
13279 eval "ol_enable_$i=yes"
13285 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13286 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13287 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 cat >conftest.$ac_ext <<_ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13299 #include <__ASCII__/generate_error.h>
13303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13306 grep -v '^ *+' conftest.er1 >conftest.err
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } >/dev/null; then
13311 if test -s conftest.err; then
13312 ac_cpp_err=$ac_c_preproc_warn_flag
13313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13320 if test -z "$ac_cpp_err"; then
13321 ol_cv_cpp_ebcdic=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ol_cv_cpp_ebcdic=no
13328 rm -f conftest.err conftest.$ac_ext
13330 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13331 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13332 if test $ol_cv_cpp_ebcdic = yes ; then
13334 cat >>confdefs.h <<\_ACEOF
13335 #define HAVE_EBCDIC 1
13340 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13342 if test "${ol_cv_header_stdc+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 #include <stdlib.h>
13352 #include <stdarg.h>
13353 #include <string.h>
13356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13359 grep -v '^ *+' conftest.er1 >conftest.err
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } >/dev/null; then
13364 if test -s conftest.err; then
13365 ac_cpp_err=$ac_c_preproc_warn_flag
13366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13373 if test -z "$ac_cpp_err"; then
13374 ol_cv_header_stdc=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ol_cv_header_stdc=no
13381 rm -f conftest.err conftest.$ac_ext
13383 if test $ol_cv_header_stdc = yes; then
13384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13385 cat >conftest.$ac_ext <<_ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13391 #include <string.h>
13394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13395 $EGREP "memchr" >/dev/null 2>&1; then
13398 ol_cv_header_stdc=no
13404 if test $ol_cv_header_stdc = yes; then
13405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13406 cat >conftest.$ac_ext <<_ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 #include <stdlib.h>
13415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13416 $EGREP "free" >/dev/null 2>&1; then
13419 ol_cv_header_stdc=no
13425 if test $ol_cv_header_stdc = yes; then
13426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13427 if test "$cross_compiling" = yes; then
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13437 #ifndef HAVE_EBCDIC
13438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13441 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13442 || ('j' <= (c) && (c) <= 'r') \
13443 || ('s' <= (c) && (c) <= 'z'))
13444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13447 int main () { int i; for (i = 0; i < 256; i++)
13448 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13452 rm -f conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454 (eval $ac_link) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13465 echo "$as_me: program exited with status $ac_status" >&5
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ( exit $ac_status )
13470 ol_cv_header_stdc=no
13472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13476 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13477 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13478 if test $ol_cv_header_stdc = yes; then
13479 cat >>confdefs.h <<\_ACEOF
13480 #define STDC_HEADERS 1
13484 ac_cv_header_stdc=disable
13487 if test $ol_cv_header_stdc != yes; then
13488 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13489 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13497 ac_header_dirent=no
13498 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13499 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13500 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13501 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 #include <sys/types.h>
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525 (eval $ac_compile) 2>conftest.er1
13527 grep -v '^ *+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -z "$ac_c_werror_flag"
13533 || test ! -s conftest.err'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest.$ac_objext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 eval "$as_ac_Header=yes"
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 eval "$as_ac_Header=no"
13552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13557 cat >>confdefs.h <<_ACEOF
13558 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13561 ac_header_dirent=$ac_hdr; break
13565 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13566 if test $ac_header_dirent = dirent.h; then
13567 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13568 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13569 if test "${ac_cv_search_opendir+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 ac_func_search_save_LIBS=$LIBS
13573 ac_cv_search_opendir=no
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13581 /* Override any gcc2 internal prototype to avoid an error. */
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13596 rm -f conftest.$ac_objext conftest$ac_exeext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13598 (eval $ac_link) 2>conftest.er1
13600 grep -v '^ *+' conftest.er1 >conftest.err
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag"
13606 || test ! -s conftest.err'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_cv_search_opendir="none required"
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13624 rm -f conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 if test "$ac_cv_search_opendir" = no; then
13627 for ac_lib in dir; do
13628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13629 cat >conftest.$ac_ext <<_ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13636 /* Override any gcc2 internal prototype to avoid an error. */
13640 /* We use char because int might match the return type of a gcc2
13641 builtin and then its argument prototype would still apply. */
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag"
13661 || test ! -s conftest.err'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest$ac_exeext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_cv_search_opendir="-l$ac_lib"
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13680 rm -f conftest.err conftest.$ac_objext \
13681 conftest$ac_exeext conftest.$ac_ext
13684 LIBS=$ac_func_search_save_LIBS
13686 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13687 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13688 if test "$ac_cv_search_opendir" != no; then
13689 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13694 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13695 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13696 if test "${ac_cv_search_opendir+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_func_search_save_LIBS=$LIBS
13700 ac_cv_search_opendir=no
13701 cat >conftest.$ac_ext <<_ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 /* Override any gcc2 internal prototype to avoid an error. */
13712 /* We use char because int might match the return type of a gcc2
13713 builtin and then its argument prototype would still apply. */
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725 (eval $ac_link) 2>conftest.er1
13727 grep -v '^ *+' conftest.er1 >conftest.err
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -z "$ac_c_werror_flag"
13733 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest$ac_exeext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_search_opendir="none required"
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13751 rm -f conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753 if test "$ac_cv_search_opendir" = no; then
13754 for ac_lib in x; do
13755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any gcc2 internal prototype to avoid an error. */
13767 /* We use char because int might match the return type of a gcc2
13768 builtin and then its argument prototype would still apply. */
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780 (eval $ac_link) 2>conftest.er1
13782 grep -v '^ *+' conftest.er1 >conftest.err
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -z "$ac_c_werror_flag"
13788 || test ! -s conftest.err'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } &&
13794 { ac_try='test -s conftest$ac_exeext'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 ac_cv_search_opendir="-l$ac_lib"
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13807 rm -f conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13811 LIBS=$ac_func_search_save_LIBS
13813 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13814 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13815 if test "$ac_cv_search_opendir" != no; then
13816 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13822 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13823 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13824 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 #include <sys/types.h>
13834 #include <sys/wait.h>
13835 #ifndef WEXITSTATUS
13836 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13852 rm -f conftest.$ac_objext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854 (eval $ac_compile) 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_header_sys_wait_h=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_cv_header_sys_wait_h=no
13881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13883 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13885 if test $ac_cv_header_sys_wait_h = yes; then
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_SYS_WAIT_H 1
13893 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13894 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13895 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 cat >conftest.$ac_ext <<_ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #include <sys/types.h>
13905 #include <termios.h>
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912 $EGREP "yes" >/dev/null 2>&1; then
13913 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13915 ac_cv_sys_tiocgwinsz_in_termios_h=no
13920 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13921 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13923 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13924 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13925 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13926 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 #include <sys/types.h>
13936 #include <sys/ioctl.h>
13942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943 $EGREP "yes" >/dev/null 2>&1; then
13944 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13946 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13951 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13952 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13954 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13956 cat >>confdefs.h <<\_ACEOF
13957 #define GWINSZ_IN_SYS_IOCTL 1
14061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14063 echo "$as_me:$LINENO: checking for $ac_header" >&5
14064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14071 # Is the header compilable?
14072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14074 cat >conftest.$ac_ext <<_ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 $ac_includes_default
14081 #include <$ac_header>
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_header_compiler=yes
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_header_compiler=no
14112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14114 echo "${ECHO_T}$ac_header_compiler" >&6
14116 # Is the header present?
14117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14125 #include <$ac_header>
14127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14130 grep -v '^ *+' conftest.er1 >conftest.err
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } >/dev/null; then
14135 if test -s conftest.err; then
14136 ac_cpp_err=$ac_c_preproc_warn_flag
14137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14144 if test -z "$ac_cpp_err"; then
14145 ac_header_preproc=yes
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_header_preproc=no
14152 rm -f conftest.err conftest.$ac_ext
14153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14154 echo "${ECHO_T}$ac_header_preproc" >&6
14156 # So? What about this header?
14157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14163 ac_header_preproc=yes
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14180 ## --------------------------------------------- ##
14181 ## Report this to <http://www.openldap.org/its/> ##
14182 ## --------------------------------------------- ##
14185 sed "s/^/$as_me: WARNING: /" >&2
14188 echo "$as_me:$LINENO: checking for $ac_header" >&5
14189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 eval "$as_ac_Header=\$ac_header_preproc"
14195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14200 cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209 if test "$ac_cv_mingw32" = yes \
14210 -o "$ac_cv_interix" = yes \
14211 -o "$ol_cv_msvc" = yes
14215 for ac_header in winsock.h winsock2.h
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14227 # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14237 #include <$ac_header>
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14243 grep -v '^ *+' conftest.er1 >conftest.err
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_header_compiler=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_header_compiler=no
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <$ac_header>
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14286 grep -v '^ *+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } >/dev/null; then
14291 if test -s conftest.err; then
14292 ac_cpp_err=$ac_c_preproc_warn_flag
14293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14300 if test -z "$ac_cpp_err"; then
14301 ac_header_preproc=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_header_preproc=no
14308 rm -f conftest.err conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14312 # So? What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc=yes
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14336 ## --------------------------------------------- ##
14337 ## Report this to <http://www.openldap.org/its/> ##
14338 ## --------------------------------------------- ##
14341 sed "s/^/$as_me: WARNING: /" >&2
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 eval "$as_ac_Header=\$ac_header_preproc"
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14367 for ac_header in resolv.h
14369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14370 echo "$as_me:$LINENO: checking for $ac_header" >&5
14371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 $ac_includes_default
14382 #include <netinet/in.h>
14385 #include <$ac_header>
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_c_werror_flag"
14397 || test ! -s conftest.err'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 eval "$as_ac_Header=yes"
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 eval "$as_ac_Header=no"
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14421 cat >>confdefs.h <<_ACEOF
14422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14431 for ac_header in netinet/tcp.h
14433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14434 echo "$as_me:$LINENO: checking for $ac_header" >&5
14435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 $ac_includes_default
14446 #include <netinet/in.h>
14449 #include <$ac_header>
14451 rm -f conftest.$ac_objext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453 (eval $ac_compile) 2>conftest.er1
14455 grep -v '^ *+' conftest.er1 >conftest.err
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -z "$ac_c_werror_flag"
14461 || test ! -s conftest.err'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest.$ac_objext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 eval "$as_ac_Header=yes"
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 eval "$as_ac_Header=no"
14480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14485 cat >>confdefs.h <<_ACEOF
14486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14495 for ac_header in sys/ucred.h
14497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498 echo "$as_me:$LINENO: checking for $ac_header" >&5
14499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 cat >conftest.$ac_ext <<_ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 $ac_includes_default
14510 #ifdef HAVE_SYS_PARAM_H
14511 #include <sys/param.h>
14515 #include <$ac_header>
14517 rm -f conftest.$ac_objext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519 (eval $ac_compile) 2>conftest.er1
14521 grep -v '^ *+' conftest.er1 >conftest.err
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -z "$ac_c_werror_flag"
14527 || test ! -s conftest.err'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 eval "$as_ac_Header=yes"
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 eval "$as_ac_Header=no"
14546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14551 cat >>confdefs.h <<_ACEOF
14552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14563 for ac_func in sigaction sigset
14565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14566 echo "$as_me:$LINENO: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14568 if eval "test \"\${$as_ac_var+set}\" = set"; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14579 #define $ac_func innocuous_$ac_func
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func (); below.
14583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584 <limits.h> exists even on freestanding compilers. */
14587 # include <limits.h>
14589 # include <assert.h>
14594 /* Override any gcc2 internal prototype to avoid an error. */
14599 /* We use char because int might match the return type of a gcc2
14600 builtin and then its argument prototype would still apply. */
14602 /* The GNU C library defines this for functions which it implements
14603 to always fail with ENOSYS. Some functions are actually named
14604 something starting with __ and the normal name is an alias. */
14605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14608 char (*f) () = $ac_func;
14617 return f != $ac_func;
14622 rm -f conftest.$ac_objext conftest$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>conftest.er1
14626 grep -v '^ *+' conftest.er1 >conftest.err
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 eval "$as_ac_var=yes"
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 eval "$as_ac_var=no"
14651 rm -f conftest.err conftest.$ac_objext \
14652 conftest$ac_exeext conftest.$ac_ext
14654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14665 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14667 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14668 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14669 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 ac_check_lib_save_LIBS=$LIBS
14674 cat >conftest.$ac_ext <<_ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14681 /* Override any gcc2 internal prototype to avoid an error. */
14685 /* We use char because int might match the return type of a gcc2
14686 builtin and then its argument prototype would still apply. */
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_lib_V3_sigset=yes
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ac_cv_lib_V3_sigset=no
14725 rm -f conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS
14729 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14730 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14731 if test $ac_cv_lib_V3_sigset = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_LIBV3 1
14742 if test $ol_cv_msvc ; then
14746 if test "$ac_cv_header_winsock_h" = yes; then
14747 echo "$as_me:$LINENO: checking for winsock" >&5
14748 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14749 if test "${ol_cv_winsock+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 for curlib in none ws2_32 wsock32; do
14755 if test curlib != none ; then
14756 LIBS="$save_LIBS -l$curlib"
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 #include <winsock.h>
14771 select(0,NULL,NULL,NULL,NULL);
14773 gethostname(NULL,0);
14779 rm -f conftest.$ac_objext conftest$ac_exeext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14781 (eval $ac_link) 2>conftest.er1
14783 grep -v '^ *+' conftest.er1 >conftest.err
14785 cat conftest.err >&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } &&
14788 { ac_try='test -z "$ac_c_werror_flag"
14789 || test ! -s conftest.err'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest$ac_exeext'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14801 ol_cv_winsock=$curlib
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14808 rm -f conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14811 test "$ol_cv_winsock" != no && break
14816 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14817 echo "${ECHO_T}$ol_cv_winsock" >&6
14819 if test $ol_cv_winsock != no ; then
14821 cat >>confdefs.h <<\_ACEOF
14822 #define HAVE_WINSOCK 1
14825 ac_cv_func_socket=yes
14826 ac_cv_func_select=yes
14827 ac_cv_func_closesocket=yes
14828 ac_cv_func_gethostname=yes
14830 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
14831 LIBS="$LIBS -l$ol_cv_winsock"
14834 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
14836 cat >>confdefs.h <<\_ACEOF
14837 #define HAVE_WINSOCK2 1
14845 echo "$as_me:$LINENO: checking for socket" >&5
14846 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14847 if test "${ac_cv_func_socket+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 cat >conftest.$ac_ext <<_ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14858 #define socket innocuous_socket
14860 /* System header to define __stub macros and hopefully few prototypes,
14861 which can conflict with char socket (); below.
14862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14863 <limits.h> exists even on freestanding compilers. */
14866 # include <limits.h>
14868 # include <assert.h>
14873 /* Override any gcc2 internal prototype to avoid an error. */
14878 /* We use char because int might match the return type of a gcc2
14879 builtin and then its argument prototype would still apply. */
14881 /* The GNU C library defines this for functions which it implements
14882 to always fail with ENOSYS. Some functions are actually named
14883 something starting with __ and the normal name is an alias. */
14884 #if defined (__stub_socket) || defined (__stub___socket)
14887 char (*f) () = socket;
14896 return f != socket;
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_func_socket=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_cv_func_socket=no
14930 rm -f conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14934 echo "${ECHO_T}$ac_cv_func_socket" >&6
14935 if test $ac_cv_func_socket = yes; then
14940 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14941 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14942 if test "${ac_cv_lib_socket_main+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-lsocket $LIBS"
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965 (eval $ac_link) 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag"
14973 || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_socket_main=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_socket_main=no
14992 rm -f conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14996 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14997 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14998 if test $ac_cv_lib_socket_main = yes; then
14999 cat >>confdefs.h <<_ACEOF
15000 #define HAVE_LIBSOCKET 1
15003 LIBS="-lsocket $LIBS"
15008 echo "$as_me:$LINENO: checking for main in -lnet" >&5
15009 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
15010 if test "${ac_cv_lib_net_main+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_check_lib_save_LIBS=$LIBS
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -z "$ac_c_werror_flag"
15041 || test ! -s conftest.err'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_cv_lib_net_main=yes
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_cv_lib_net_main=no
15060 rm -f conftest.err conftest.$ac_objext \
15061 conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15064 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15065 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
15066 if test $ac_cv_lib_net_main = yes; then
15067 cat >>confdefs.h <<_ACEOF
15068 #define HAVE_LIBNET 1
15076 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15077 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
15078 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lnsl_s $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101 (eval $ac_link) 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_lib_nsl_s_main=yes
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_cv_lib_nsl_s_main=no
15128 rm -f conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15132 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15133 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15134 if test $ac_cv_lib_nsl_s_main = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_LIBNSL_S 1
15139 LIBS="-lnsl_s $LIBS"
15144 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15145 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15146 if test "${ac_cv_lib_nsl_main+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 ac_check_lib_save_LIBS=$LIBS
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>conftest.er1
15171 grep -v '^ *+' conftest.er1 >conftest.err
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest$ac_exeext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_cv_lib_nsl_main=yes
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_cv_lib_nsl_main=no
15196 rm -f conftest.err conftest.$ac_objext \
15197 conftest$ac_exeext conftest.$ac_ext
15198 LIBS=$ac_check_lib_save_LIBS
15200 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15201 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15202 if test $ac_cv_lib_nsl_main = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_LIBNSL 1
15212 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15213 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15214 if test "${ac_cv_lib_inet_socket+set}" = set; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 ac_check_lib_save_LIBS=$LIBS
15218 LIBS="-linet $LIBS"
15219 cat >conftest.$ac_ext <<_ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15226 /* Override any gcc2 internal prototype to avoid an error. */
15230 /* We use char because int might match the return type of a gcc2
15231 builtin and then its argument prototype would still apply. */
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243 (eval $ac_link) 2>conftest.er1
15245 grep -v '^ *+' conftest.er1 >conftest.err
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } &&
15250 { ac_try='test -z "$ac_c_werror_flag"
15251 || test ! -s conftest.err'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_cv_lib_inet_socket=yes
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_cv_lib_inet_socket=no
15270 rm -f conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15274 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15275 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15276 if test $ac_cv_lib_inet_socket = yes; then
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_LIBINET 1
15281 LIBS="-linet $LIBS"
15286 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15287 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15288 if test "${ac_cv_lib_gen_main+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 ac_check_lib_save_LIBS=$LIBS
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15311 (eval $ac_link) 2>conftest.er1
15313 grep -v '^ *+' conftest.er1 >conftest.err
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
15318 { ac_try='test -z "$ac_c_werror_flag"
15319 || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest$ac_exeext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_cv_lib_gen_main=yes
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_cv_lib_gen_main=no
15338 rm -f conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15342 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15343 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15344 if test $ac_cv_lib_gen_main = yes; then
15345 cat >>confdefs.h <<_ACEOF
15346 #define HAVE_LIBGEN 1
15357 echo "$as_me:$LINENO: checking for select" >&5
15358 echo $ECHO_N "checking for select... $ECHO_C" >&6
15359 if test "${ac_cv_func_select+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 cat >conftest.$ac_ext <<_ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 /* Define select to an innocuous variant, in case <limits.h> declares select.
15369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15370 #define select innocuous_select
15372 /* System header to define __stub macros and hopefully few prototypes,
15373 which can conflict with char select (); below.
15374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15375 <limits.h> exists even on freestanding compilers. */
15378 # include <limits.h>
15380 # include <assert.h>
15385 /* Override any gcc2 internal prototype to avoid an error. */
15390 /* We use char because int might match the return type of a gcc2
15391 builtin and then its argument prototype would still apply. */
15393 /* The GNU C library defines this for functions which it implements
15394 to always fail with ENOSYS. Some functions are actually named
15395 something starting with __ and the normal name is an alias. */
15396 #if defined (__stub_select) || defined (__stub___select)
15399 char (*f) () = select;
15408 return f != select;
15413 rm -f conftest.$ac_objext conftest$ac_exeext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15415 (eval $ac_link) 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -z "$ac_c_werror_flag"
15423 || test ! -s conftest.err'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest$ac_exeext'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_func_select=yes
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15440 ac_cv_func_select=no
15442 rm -f conftest.err conftest.$ac_objext \
15443 conftest$ac_exeext conftest.$ac_ext
15445 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15446 echo "${ECHO_T}$ac_cv_func_select" >&6
15447 if test $ac_cv_func_select = yes; then
15450 { { echo "$as_me:$LINENO: error: select() required." >&5
15451 echo "$as_me: error: select() required." >&2;}
15452 { (exit 1); exit 1; }; }
15456 if test "${ac_cv_header_winsock_h}" != yes; then
15459 for ac_header in sys/select.h sys/socket.h
15461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15463 echo "$as_me:$LINENO: checking for $ac_header" >&5
15464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15471 # Is the header compilable?
15472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #include <$ac_header>
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>conftest.er1
15487 grep -v '^ *+' conftest.er1 >conftest.err
15489 cat conftest.err >&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -z "$ac_c_werror_flag"
15493 || test ! -s conftest.err'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try='test -s conftest.$ac_objext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_header_compiler=no
15512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6
15516 # Is the header present?
15517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15519 cat >conftest.$ac_ext <<_ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 #include <$ac_header>
15527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev/null; then
15535 if test -s conftest.err; then
15536 ac_cpp_err=$ac_c_preproc_warn_flag
15537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15544 if test -z "$ac_cpp_err"; then
15545 ac_header_preproc=yes
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 ac_header_preproc=no
15552 rm -f conftest.err conftest.$ac_ext
15553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15554 echo "${ECHO_T}$ac_header_preproc" >&6
15556 # So? What about this header?
15557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15563 ac_header_preproc=yes
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15580 ## --------------------------------------------- ##
15581 ## Report this to <http://www.openldap.org/its/> ##
15582 ## --------------------------------------------- ##
15585 sed "s/^/$as_me: WARNING: /" >&2
15588 echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 eval "$as_ac_Header=\$ac_header_preproc"
15595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600 cat >>confdefs.h <<_ACEOF
15601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15609 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15610 if test "${ac_cv_func_select_args+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15614 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15615 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15616 cat >conftest.$ac_ext <<_ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 $ac_includes_default
15623 #if HAVE_SYS_SELECT_H
15624 # include <sys/select.h>
15626 #if HAVE_SYS_SOCKET_H
15627 # include <sys/socket.h>
15633 extern int select ($ac_arg1,
15634 $ac_arg234, $ac_arg234, $ac_arg234,
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -z "$ac_c_werror_flag"
15650 || test ! -s conftest.err'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; } &&
15656 { ac_try='test -s conftest.$ac_objext'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15664 echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672 # Provide a safe default value.
15673 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15676 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15677 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15678 ac_save_IFS=$IFS; IFS=','
15679 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15683 cat >>confdefs.h <<_ACEOF
15684 #define SELECT_TYPE_ARG1 $1
15688 cat >>confdefs.h <<_ACEOF
15689 #define SELECT_TYPE_ARG234 ($2)
15693 cat >>confdefs.h <<_ACEOF
15694 #define SELECT_TYPE_ARG5 ($3)
15703 for ac_func in poll
15705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 echo "$as_me:$LINENO: checking for $ac_func" >&5
15707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_var+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15719 #define $ac_func innocuous_$ac_func
15721 /* System header to define __stub macros and hopefully few prototypes,
15722 which can conflict with char $ac_func (); below.
15723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724 <limits.h> exists even on freestanding compilers. */
15727 # include <limits.h>
15729 # include <assert.h>
15734 /* Override any gcc2 internal prototype to avoid an error. */
15739 /* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15742 /* The GNU C library defines this for functions which it implements
15743 to always fail with ENOSYS. Some functions are actually named
15744 something starting with __ and the normal name is an alias. */
15745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15748 char (*f) () = $ac_func;
15757 return f != $ac_func;
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764 (eval $ac_link) 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 eval "$as_ac_var=yes"
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 eval "$as_ac_var=no"
15791 rm -f conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15804 if test $ac_cv_func_poll = yes; then
15807 for ac_header in poll.h sys/poll.h
15809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15811 echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15819 # Is the header compilable?
15820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 $ac_includes_default
15829 #include <$ac_header>
15831 rm -f conftest.$ac_objext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15833 (eval $ac_compile) 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -z "$ac_c_werror_flag"
15841 || test ! -s conftest.err'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; } &&
15847 { ac_try='test -s conftest.$ac_objext'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 ac_header_compiler=yes
15855 echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 ac_header_compiler=no
15860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6
15864 # Is the header present?
15865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #include <$ac_header>
15875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15878 grep -v '^ *+' conftest.er1 >conftest.err
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } >/dev/null; then
15883 if test -s conftest.err; then
15884 ac_cpp_err=$ac_c_preproc_warn_flag
15885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15892 if test -z "$ac_cpp_err"; then
15893 ac_header_preproc=yes
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ac_header_preproc=no
15900 rm -f conftest.err conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902 echo "${ECHO_T}$ac_header_preproc" >&6
15904 # So? What about this header?
15905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15911 ac_header_preproc=yes
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15928 ## --------------------------------------------- ##
15929 ## Report this to <http://www.openldap.org/its/> ##
15930 ## --------------------------------------------- ##
15933 sed "s/^/$as_me: WARNING: /" >&2
15936 echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 eval "$as_ac_Header=\$ac_header_preproc"
15943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15959 for ac_header in sys/epoll.h
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15963 echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15971 # Is the header compilable?
15972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 $ac_includes_default
15981 #include <$ac_header>
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>conftest.er1
15987 grep -v '^ *+' conftest.er1 >conftest.err
15989 cat conftest.err >&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
15992 { ac_try='test -z "$ac_c_werror_flag"
15993 || test ! -s conftest.err'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_header_compiler=yes
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_header_compiler=no
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16014 echo "${ECHO_T}$ac_header_compiler" >&6
16016 # Is the header present?
16017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16019 cat >conftest.$ac_ext <<_ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 #include <$ac_header>
16027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16030 grep -v '^ *+' conftest.er1 >conftest.err
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } >/dev/null; then
16035 if test -s conftest.err; then
16036 ac_cpp_err=$ac_c_preproc_warn_flag
16037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16044 if test -z "$ac_cpp_err"; then
16045 ac_header_preproc=yes
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 ac_header_preproc=no
16052 rm -f conftest.err conftest.$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16054 echo "${ECHO_T}$ac_header_preproc" >&6
16056 # So? What about this header?
16057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16063 ac_header_preproc=yes
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16080 ## --------------------------------------------- ##
16081 ## Report this to <http://www.openldap.org/its/> ##
16082 ## --------------------------------------------- ##
16085 sed "s/^/$as_me: WARNING: /" >&2
16088 echo "$as_me:$LINENO: checking for $ac_header" >&5
16089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 eval "$as_ac_Header=\$ac_header_preproc"
16095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16100 cat >>confdefs.h <<_ACEOF
16101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16108 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16109 echo "$as_me:$LINENO: checking for epoll system call" >&5
16110 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16111 if test "$cross_compiling" = yes; then
16112 echo "$as_me:$LINENO: result: no" >&5
16113 echo "${ECHO_T}no" >&6
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 int main(int argc, char **argv)
16123 int epfd = epoll_create(256);
16124 exit (epfd == -1 ? 1 : 0);
16127 rm -f conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129 (eval $ac_link) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 echo "$as_me:$LINENO: result: yes" >&5
16139 echo "${ECHO_T}yes" >&6
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_EPOLL 1
16146 echo "$as_me: program exited with status $ac_status" >&5
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ( exit $ac_status )
16151 echo "$as_me:$LINENO: result: no" >&5
16152 echo "${ECHO_T}no" >&6
16154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16159 for ac_header in sys/devpoll.h
16161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16163 echo "$as_me:$LINENO: checking for $ac_header" >&5
16164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16171 # Is the header compilable?
16172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16180 $ac_includes_default
16181 #include <$ac_header>
16183 rm -f conftest.$ac_objext
16184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16185 (eval $ac_compile) 2>conftest.er1
16187 grep -v '^ *+' conftest.er1 >conftest.err
16189 cat conftest.err >&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } &&
16192 { ac_try='test -z "$ac_c_werror_flag"
16193 || test ! -s conftest.err'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_header_compiler=yes
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 ac_header_compiler=no
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16214 echo "${ECHO_T}$ac_header_compiler" >&6
16216 # Is the header present?
16217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 #include <$ac_header>
16227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } >/dev/null; then
16235 if test -s conftest.err; then
16236 ac_cpp_err=$ac_c_preproc_warn_flag
16237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16244 if test -z "$ac_cpp_err"; then
16245 ac_header_preproc=yes
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16250 ac_header_preproc=no
16252 rm -f conftest.err conftest.$ac_ext
16253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6
16256 # So? What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263 ac_header_preproc=yes
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16280 ## --------------------------------------------- ##
16281 ## Report this to <http://www.openldap.org/its/> ##
16282 ## --------------------------------------------- ##
16285 sed "s/^/$as_me: WARNING: /" >&2
16288 echo "$as_me:$LINENO: checking for $ac_header" >&5
16289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 eval "$as_ac_Header=\$ac_header_preproc"
16295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16300 cat >>confdefs.h <<_ACEOF
16301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16308 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16309 -a "${ac_cv_header_poll_h}" = yes ; \
16311 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16312 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16313 if test "$cross_compiling" = yes; then
16314 echo "$as_me:$LINENO: result: no" >&5
16315 echo "${ECHO_T}no" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 int main(int argc, char **argv)
16325 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16326 exit (devpollfd == -1 ? 1 : 0);
16329 rm -f conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331 (eval $ac_link) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 echo "$as_me:$LINENO: result: yes" >&5
16341 echo "${ECHO_T}yes" >&6
16343 cat >>confdefs.h <<\_ACEOF
16344 #define HAVE_DEVPOLL 1
16348 echo "$as_me: program exited with status $ac_status" >&5
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16352 ( exit $ac_status )
16353 echo "$as_me:$LINENO: result: no" >&5
16354 echo "${ECHO_T}no" >&6
16356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16360 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16361 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16362 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16374 #include <sys/types.h>
16377 #include <stdlib.h>
16382 char *c = (char *) *sys_errlist
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try='test -s conftest.$ac_objext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ol_cv_dcl_sys_errlist=yes
16410 ol_cv_have_sys_errlist=yes
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ol_cv_dcl_sys_errlist=no
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16420 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16422 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16423 if test $ol_cv_dcl_sys_errlist = no ; then
16425 cat >>confdefs.h <<\_ACEOF
16426 #define DECL_SYS_ERRLIST 1
16430 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16431 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16432 if test "${ol_cv_have_sys_errlist+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.$ac_ext <<_ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16446 char *c = (char *) *sys_errlist
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>conftest.er1
16455 grep -v '^ *+' conftest.er1 >conftest.err
16457 cat conftest.err >&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -z "$ac_c_werror_flag"
16461 || test ! -s conftest.err'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ol_cv_have_sys_errlist=yes
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 ol_cv_have_sys_errlist=no
16480 rm -f conftest.err conftest.$ac_objext \
16481 conftest$ac_exeext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16484 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16486 if test $ol_cv_have_sys_errlist = yes ; then
16488 cat >>confdefs.h <<\_ACEOF
16489 #define HAVE_SYS_ERRLIST 1
16495 for ac_func in strerror strerror_r
16497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16498 echo "$as_me:$LINENO: checking for $ac_func" >&5
16499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16500 if eval "test \"\${$as_ac_var+set}\" = set"; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16511 #define $ac_func innocuous_$ac_func
16513 /* System header to define __stub macros and hopefully few prototypes,
16514 which can conflict with char $ac_func (); below.
16515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16516 <limits.h> exists even on freestanding compilers. */
16519 # include <limits.h>
16521 # include <assert.h>
16526 /* Override any gcc2 internal prototype to avoid an error. */
16531 /* We use char because int might match the return type of a gcc2
16532 builtin and then its argument prototype would still apply. */
16534 /* The GNU C library defines this for functions which it implements
16535 to always fail with ENOSYS. Some functions are actually named
16536 something starting with __ and the normal name is an alias. */
16537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16540 char (*f) () = $ac_func;
16549 return f != $ac_func;
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556 (eval $ac_link) 2>conftest.er1
16558 grep -v '^ *+' conftest.er1 >conftest.err
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -z "$ac_c_werror_flag"
16564 || test ! -s conftest.err'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest$ac_exeext'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 eval "$as_ac_var=yes"
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 eval "$as_ac_var=no"
16583 rm -f conftest.err conftest.$ac_objext \
16584 conftest$ac_exeext conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16588 if test `eval echo '${'$as_ac_var'}'` = yes; then
16589 cat >>confdefs.h <<_ACEOF
16590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16596 ol_cv_func_strerror_r=no
16597 if test "${ac_cv_func_strerror_r}" = yes ; then
16598 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16599 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16600 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 #include <string.h>
16612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16613 $EGREP "strerror_r" >/dev/null 2>&1; then
16614 ol_decl_strerror_r=yes
16616 ol_decl_strerror_r=no
16620 if test $ol_decl_strerror_r = yes ; then
16621 cat >conftest.$ac_ext <<_ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 #include <string.h>
16631 /* from autoconf 2.59 */
16633 char x = *strerror_r (0, buf, sizeof buf);
16634 char *p = strerror_r (0, buf, sizeof buf);
16640 rm -f conftest.$ac_objext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16642 (eval $ac_compile) 2>conftest.er1
16644 grep -v '^ *+' conftest.er1 >conftest.err
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag"
16650 || test ! -s conftest.err'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ol_cv_nonposix_strerror_r=yes
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ol_cv_nonposix_strerror_r=no
16669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16671 if test "$cross_compiling" = yes; then
16672 ol_cv_nonposix_strerror=no
16674 cat >conftest.$ac_ext <<_ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16684 strerror_r( 1, buf, sizeof buf );
16685 exit( buf[0] == 0 );
16689 rm -f conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691 (eval $ac_link) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ol_cv_nonposix_strerror_r=yes
16702 echo "$as_me: program exited with status $ac_status" >&5
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ( exit $ac_status )
16707 ol_cv_nonposix_strerror=no
16709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16714 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16715 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16716 if test $ol_cv_nonposix_strerror_r = yes ; then
16718 cat >>confdefs.h <<\_ACEOF
16719 #define HAVE_NONPOSIX_STRERROR_R 1
16724 elif test "${ac_cv_func_strerror}" = no ; then
16725 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16726 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16727 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 cat >conftest.$ac_ext <<_ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16739 #include <sys/types.h>
16742 #include <stdlib.h>
16747 char *c = (char *) *sys_errlist
16752 rm -f conftest.$ac_objext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754 (eval $ac_compile) 2>conftest.er1
16756 grep -v '^ *+' conftest.er1 >conftest.err
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag"
16762 || test ! -s conftest.err'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest.$ac_objext'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ol_cv_dcl_sys_errlist=yes
16775 ol_cv_have_sys_errlist=yes
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ol_cv_dcl_sys_errlist=no
16782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16784 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16785 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16787 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16788 if test $ol_cv_dcl_sys_errlist = no ; then
16790 cat >>confdefs.h <<\_ACEOF
16791 #define DECL_SYS_ERRLIST 1
16795 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16796 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16797 if test "${ol_cv_have_sys_errlist+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 cat >conftest.$ac_ext <<_ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16811 char *c = (char *) *sys_errlist
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16818 (eval $ac_link) 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag"
16826 || test ! -s conftest.err'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest$ac_exeext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ol_cv_have_sys_errlist=yes
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ol_cv_have_sys_errlist=no
16845 rm -f conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16848 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16849 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16851 if test $ol_cv_have_sys_errlist = yes ; then
16853 cat >>confdefs.h <<\_ACEOF
16854 #define HAVE_SYS_ERRLIST 1
16863 for ac_header in regex.h
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 $ac_includes_default
16878 #ifdef HAVE_SYS_TYPES_H
16879 #include <sys/types.h>
16883 #include <$ac_header>
16885 rm -f conftest.$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest.$ac_objext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 eval "$as_ac_Header=yes"
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 eval "$as_ac_Header=no"
16914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16919 cat >>confdefs.h <<_ACEOF
16920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16928 if test "$ac_cv_header_regex_h" != yes ; then
16929 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16930 echo "$as_me: error: POSIX regex.h required." >&2;}
16931 { (exit 1); exit 1; }; }
16933 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16934 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16935 if test "${ac_cv_search_regfree+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 ac_func_search_save_LIBS=$LIBS
16939 ac_cv_search_regfree=no
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16947 /* Override any gcc2 internal prototype to avoid an error. */
16951 /* We use char because int might match the return type of a gcc2
16952 builtin and then its argument prototype would still apply. */
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964 (eval $ac_link) 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag"
16972 || test ! -s conftest.err'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest$ac_exeext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 ac_cv_search_regfree="none required"
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16990 rm -f conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992 if test "$ac_cv_search_regfree" = no; then
16993 for ac_lib in regex gnuregex; do
16994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16995 cat >conftest.$ac_ext <<_ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17002 /* Override any gcc2 internal prototype to avoid an error. */
17006 /* We use char because int might match the return type of a gcc2
17007 builtin and then its argument prototype would still apply. */
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019 (eval $ac_link) 2>conftest.er1
17021 grep -v '^ *+' conftest.er1 >conftest.err
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag"
17027 || test ! -s conftest.err'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try='test -s conftest$ac_exeext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_search_regfree="-l$ac_lib"
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17046 rm -f conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17050 LIBS=$ac_func_search_save_LIBS
17052 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17053 echo "${ECHO_T}$ac_cv_search_regfree" >&6
17054 if test "$ac_cv_search_regfree" != no; then
17055 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
17058 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17059 echo "$as_me: error: POSIX regex required." >&2;}
17060 { (exit 1); exit 1; }; }
17065 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17066 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
17067 if test "${ol_cv_c_posix_regex+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 if test "$cross_compiling" = yes; then
17072 ol_cv_c_posix_regex=cross
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17081 #include <sys/types.h>
17083 static char *pattern, *string;
17091 if(regcomp(&re, pattern, 0)) {
17095 string = "ALL MATCH";
17097 rc = regexec(&re, string, 0, (void*)0, 0);
17104 rm -f conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ol_cv_c_posix_regex=yes
17117 echo "$as_me: program exited with status $ac_status" >&5
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 ( exit $ac_status )
17122 ol_cv_c_posix_regex=no
17124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17127 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17128 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17130 if test "$ol_cv_c_posix_regex" = no ; then
17131 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17132 echo "$as_me: error: broken POSIX regex!" >&2;}
17133 { (exit 1); exit 1; }; }
17139 for ac_header in sys/uuid.h
17141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17143 echo "$as_me:$LINENO: checking for $ac_header" >&5
17144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17151 # Is the header compilable?
17152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17154 cat >conftest.$ac_ext <<_ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 $ac_includes_default
17161 #include <$ac_header>
17163 rm -f conftest.$ac_objext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165 (eval $ac_compile) 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag"
17173 || test ! -s conftest.err'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest.$ac_objext'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_header_compiler=yes
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ac_header_compiler=no
17192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17194 echo "${ECHO_T}$ac_header_compiler" >&6
17196 # Is the header present?
17197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 #include <$ac_header>
17207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17210 grep -v '^ *+' conftest.er1 >conftest.err
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } >/dev/null; then
17215 if test -s conftest.err; then
17216 ac_cpp_err=$ac_c_preproc_warn_flag
17217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17224 if test -z "$ac_cpp_err"; then
17225 ac_header_preproc=yes
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ac_header_preproc=no
17232 rm -f conftest.err conftest.$ac_ext
17233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17234 echo "${ECHO_T}$ac_header_preproc" >&6
17236 # So? What about this header?
17237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17243 ac_header_preproc=yes
17246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17260 ## --------------------------------------------- ##
17261 ## Report this to <http://www.openldap.org/its/> ##
17262 ## --------------------------------------------- ##
17265 sed "s/^/$as_me: WARNING: /" >&2
17268 echo "$as_me:$LINENO: checking for $ac_header" >&5
17269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 eval "$as_ac_Header=\$ac_header_preproc"
17275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17280 cat >>confdefs.h <<_ACEOF
17281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17288 if test $ac_cv_header_sys_uuid_h = yes ; then
17290 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17291 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17292 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 ac_func_search_save_LIBS=$LIBS
17296 ac_cv_search_uuid_to_str=no
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17304 /* Override any gcc2 internal prototype to avoid an error. */
17308 /* We use char because int might match the return type of a gcc2
17309 builtin and then its argument prototype would still apply. */
17310 char uuid_to_str ();
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>conftest.er1
17323 grep -v '^ *+' conftest.er1 >conftest.err
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -z "$ac_c_werror_flag"
17329 || test ! -s conftest.err'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try='test -s conftest$ac_exeext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 ac_cv_search_uuid_to_str="none required"
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17347 rm -f conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17349 if test "$ac_cv_search_uuid_to_str" = no; then
17350 for ac_lib in uuid; do
17351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17352 cat >conftest.$ac_ext <<_ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 /* Override any gcc2 internal prototype to avoid an error. */
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17365 char uuid_to_str ();
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376 (eval $ac_link) 2>conftest.er1
17378 grep -v '^ *+' conftest.er1 >conftest.err
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_c_werror_flag"
17384 || test ! -s conftest.err'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 ac_cv_search_uuid_to_str="-l$ac_lib"
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17403 rm -f conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_func_search_save_LIBS
17409 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17410 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17411 if test "$ac_cv_search_uuid_to_str" != no; then
17412 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17420 if test $have_uuid = yes ; then
17422 cat >>confdefs.h <<\_ACEOF
17423 #define HAVE_UUID_TO_STR 1
17427 test "$ac_cv_search_uuid_to_str" = "none required" || \
17428 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17432 if test $have_uuid = no ; then
17434 for ac_header in uuid/uuid.h
17436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17438 echo "$as_me:$LINENO: checking for $ac_header" >&5
17439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17446 # Is the header compilable?
17447 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17449 cat >conftest.$ac_ext <<_ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 $ac_includes_default
17456 #include <$ac_header>
17458 rm -f conftest.$ac_objext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17460 (eval $ac_compile) 2>conftest.er1
17462 grep -v '^ *+' conftest.er1 >conftest.err
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag"
17468 || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest.$ac_objext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_header_compiler=yes
17482 echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17485 ac_header_compiler=no
17487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17489 echo "${ECHO_T}$ac_header_compiler" >&6
17491 # Is the header present?
17492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17494 cat >conftest.$ac_ext <<_ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 #include <$ac_header>
17502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17505 grep -v '^ *+' conftest.er1 >conftest.err
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } >/dev/null; then
17510 if test -s conftest.err; then
17511 ac_cpp_err=$ac_c_preproc_warn_flag
17512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17519 if test -z "$ac_cpp_err"; then
17520 ac_header_preproc=yes
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_header_preproc=no
17527 rm -f conftest.err conftest.$ac_ext
17528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17529 echo "${ECHO_T}$ac_header_preproc" >&6
17531 # So? What about this header?
17532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17538 ac_header_preproc=yes
17541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17555 ## --------------------------------------------- ##
17556 ## Report this to <http://www.openldap.org/its/> ##
17557 ## --------------------------------------------- ##
17560 sed "s/^/$as_me: WARNING: /" >&2
17563 echo "$as_me:$LINENO: checking for $ac_header" >&5
17564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17568 eval "$as_ac_Header=\$ac_header_preproc"
17570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17575 cat >>confdefs.h <<_ACEOF
17576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17583 if test $ac_cv_header_uuid_uuid_h = yes ; then
17585 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17586 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17587 if test "${ac_cv_search_uuid_generate+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 ac_func_search_save_LIBS=$LIBS
17591 ac_cv_search_uuid_generate=no
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17599 /* Override any gcc2 internal prototype to avoid an error. */
17603 /* We use char because int might match the return type of a gcc2
17604 builtin and then its argument prototype would still apply. */
17605 char uuid_generate ();
17614 rm -f conftest.$ac_objext conftest$ac_exeext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616 (eval $ac_link) 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try='test -z "$ac_c_werror_flag"
17624 || test ! -s conftest.err'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } &&
17630 { ac_try='test -s conftest$ac_exeext'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 ac_cv_search_uuid_generate="none required"
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17642 rm -f conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext conftest.$ac_ext
17644 if test "$ac_cv_search_uuid_generate" = no; then
17645 for ac_lib in uuid; do
17646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17647 cat >conftest.$ac_ext <<_ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h. */
17654 /* Override any gcc2 internal prototype to avoid an error. */
17658 /* We use char because int might match the return type of a gcc2
17659 builtin and then its argument prototype would still apply. */
17660 char uuid_generate ();
17669 rm -f conftest.$ac_objext conftest$ac_exeext
17670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17671 (eval $ac_link) 2>conftest.er1
17673 grep -v '^ *+' conftest.er1 >conftest.err
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } &&
17678 { ac_try='test -z "$ac_c_werror_flag"
17679 || test ! -s conftest.err'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; } &&
17685 { ac_try='test -s conftest$ac_exeext'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 ac_cv_search_uuid_generate="-l$ac_lib"
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17698 rm -f conftest.err conftest.$ac_objext \
17699 conftest$ac_exeext conftest.$ac_ext
17702 LIBS=$ac_func_search_save_LIBS
17704 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17705 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17706 if test "$ac_cv_search_uuid_generate" != no; then
17707 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17715 if test $have_uuid = yes ; then
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_UUID_GENERATE 1
17722 test "$ac_cv_search_uuid_generate" = "none required" || \
17723 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17728 if test $have_uuid = no ; then
17729 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17730 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17732 LIBS="$LIBS -lrpcrt4"
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17740 int __stdcall UuidCreate(void *);
17741 int __stdcall UuidToStringA(void *,void **);
17748 UuidToStringA(0,0);
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>conftest.er1
17758 grep -v '^ *+' conftest.er1 >conftest.err
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17783 rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785 if test $need_rpcrt = yes; then
17786 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17789 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17790 echo "${ECHO_T}$need_rpcrt" >&6
17793 ol_cv_lib_resolver=no
17794 if test $ol_cv_lib_resolver = no ; then
17795 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17796 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17797 if test "${ol_cv_resolver_none+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17803 LIBS="$ol_RESOLVER_LIB $LIBS"
17805 cat >conftest.$ac_ext <<_ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17812 #ifdef HAVE_SYS_TYPES_H
17813 # include <sys/types.h>
17815 #include <netinet/in.h>
17816 #ifdef HAVE_ARPA_NAMESER_H
17817 # include <arpa/nameser.h>
17819 #ifdef HAVE_RESOLV_H
17820 # include <resolv.h>
17828 char *request = NULL;
17829 unsigned char reply[64*1024];
17830 unsigned char host[64*1024];
17834 /* Bind 8/9 interface */
17835 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17837 /* Bind 4 interface */
17841 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17845 /* Bind 8/9 interface */
17847 #elif defined(HFIXEDSZ)
17848 /* Bind 4 interface w/ HFIXEDSZ */
17851 /* Bind 4 interface w/o HFIXEDSZ */
17852 p += sizeof(HEADER);
17854 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17862 (eval $ac_link) 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest$ac_exeext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ol_cv_resolver_none=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 ol_cv_resolver_none=no
17889 rm -f conftest.err conftest.$ac_objext \
17890 conftest$ac_exeext conftest.$ac_ext
17895 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17896 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17898 if test $ol_cv_resolver_none = yes ; then
17899 ol_cv_lib_resolver=yes
17903 if test $ol_cv_lib_resolver = no ; then
17904 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17905 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17906 if test "${ol_cv_resolver_resolv+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 ol_RESOLVER_LIB=-lresolv
17912 LIBS="$ol_RESOLVER_LIB $LIBS"
17914 cat >conftest.$ac_ext <<_ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17921 #ifdef HAVE_SYS_TYPES_H
17922 # include <sys/types.h>
17924 #include <netinet/in.h>
17925 #ifdef HAVE_ARPA_NAMESER_H
17926 # include <arpa/nameser.h>
17928 #ifdef HAVE_RESOLV_H
17929 # include <resolv.h>
17937 char *request = NULL;
17938 unsigned char reply[64*1024];
17939 unsigned char host[64*1024];
17943 /* Bind 8/9 interface */
17944 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17946 /* Bind 4 interface */
17950 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17954 /* Bind 8/9 interface */
17956 #elif defined(HFIXEDSZ)
17957 /* Bind 4 interface w/ HFIXEDSZ */
17960 /* Bind 4 interface w/o HFIXEDSZ */
17961 p += sizeof(HEADER);
17963 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971 (eval $ac_link) 2>conftest.er1
17973 grep -v '^ *+' conftest.er1 >conftest.err
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest$ac_exeext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 ol_cv_resolver_resolv=yes
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 ol_cv_resolver_resolv=no
17998 rm -f conftest.err conftest.$ac_objext \
17999 conftest$ac_exeext conftest.$ac_ext
18004 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18005 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
18007 if test $ol_cv_resolver_resolv = yes ; then
18008 ol_cv_lib_resolver=-lresolv
18012 if test $ol_cv_lib_resolver = no ; then
18013 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18014 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
18015 if test "${ol_cv_resolver_bind+set}" = set; then
18016 echo $ECHO_N "(cached) $ECHO_C" >&6
18019 ol_RESOLVER_LIB=-lbind
18021 LIBS="$ol_RESOLVER_LIB $LIBS"
18023 cat >conftest.$ac_ext <<_ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18030 #ifdef HAVE_SYS_TYPES_H
18031 # include <sys/types.h>
18033 #include <netinet/in.h>
18034 #ifdef HAVE_ARPA_NAMESER_H
18035 # include <arpa/nameser.h>
18037 #ifdef HAVE_RESOLV_H
18038 # include <resolv.h>
18046 char *request = NULL;
18047 unsigned char reply[64*1024];
18048 unsigned char host[64*1024];
18052 /* Bind 8/9 interface */
18053 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18055 /* Bind 4 interface */
18059 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18063 /* Bind 8/9 interface */
18065 #elif defined(HFIXEDSZ)
18066 /* Bind 4 interface w/ HFIXEDSZ */
18069 /* Bind 4 interface w/o HFIXEDSZ */
18070 p += sizeof(HEADER);
18072 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18078 rm -f conftest.$ac_objext conftest$ac_exeext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } &&
18087 { ac_try='test -z "$ac_c_werror_flag"
18088 || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest$ac_exeext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ol_cv_resolver_bind=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ol_cv_resolver_bind=no
18107 rm -f conftest.err conftest.$ac_objext \
18108 conftest$ac_exeext conftest.$ac_ext
18113 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18114 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18116 if test $ol_cv_resolver_bind = yes ; then
18117 ol_cv_lib_resolver=-lbind
18124 if test "$ol_cv_lib_resolver" != no ; then
18126 cat >>confdefs.h <<\_ACEOF
18127 #define HAVE_RES_QUERY 1
18131 if test "$ol_enable_dnssrv" != no ; then
18135 if test "$ol_cv_lib_resolver" != yes ; then
18136 LIBS="$ol_cv_lib_resolver $LIBS"
18140 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18141 if test "$ol_link_dnssrv" = no ; then
18142 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18143 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18144 { (exit 1); exit 1; }; }
18147 ol_enable_dnssrv=no
18151 for ac_func in hstrerror
18153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18154 echo "$as_me:$LINENO: checking for $ac_func" >&5
18155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18156 if eval "test \"\${$as_ac_var+set}\" = set"; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18167 #define $ac_func innocuous_$ac_func
18169 /* System header to define __stub macros and hopefully few prototypes,
18170 which can conflict with char $ac_func (); below.
18171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18172 <limits.h> exists even on freestanding compilers. */
18175 # include <limits.h>
18177 # include <assert.h>
18182 /* Override any gcc2 internal prototype to avoid an error. */
18187 /* We use char because int might match the return type of a gcc2
18188 builtin and then its argument prototype would still apply. */
18190 /* The GNU C library defines this for functions which it implements
18191 to always fail with ENOSYS. Some functions are actually named
18192 something starting with __ and the normal name is an alias. */
18193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18196 char (*f) () = $ac_func;
18205 return f != $ac_func;
18210 rm -f conftest.$ac_objext conftest$ac_exeext
18211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18212 (eval $ac_link) 2>conftest.er1
18214 grep -v '^ *+' conftest.er1 >conftest.err
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
18219 { ac_try='test -z "$ac_c_werror_flag"
18220 || test ! -s conftest.err'
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest$ac_exeext'
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 eval "$as_ac_var=yes"
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 eval "$as_ac_var=no"
18239 rm -f conftest.err conftest.$ac_objext \
18240 conftest$ac_exeext conftest.$ac_ext
18242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18244 if test `eval echo '${'$as_ac_var'}'` = yes; then
18245 cat >>confdefs.h <<_ACEOF
18246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18257 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18260 echo "$as_me:$LINENO: checking for $ac_func" >&5
18261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18262 if eval "test \"\${$as_ac_var+set}\" = set"; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 cat >conftest.$ac_ext <<_ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18273 #define $ac_func innocuous_$ac_func
18275 /* System header to define __stub macros and hopefully few prototypes,
18276 which can conflict with char $ac_func (); below.
18277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18278 <limits.h> exists even on freestanding compilers. */
18281 # include <limits.h>
18283 # include <assert.h>
18288 /* Override any gcc2 internal prototype to avoid an error. */
18293 /* We use char because int might match the return type of a gcc2
18294 builtin and then its argument prototype would still apply. */
18296 /* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18302 char (*f) () = $ac_func;
18311 return f != $ac_func;
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18318 (eval $ac_link) 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag"
18326 || test ! -s conftest.err'
18327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18328 (eval $ac_try) 2>&5
18330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331 (exit $ac_status); }; } &&
18332 { ac_try='test -s conftest$ac_exeext'
18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18334 (eval $ac_try) 2>&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
18338 eval "$as_ac_var=yes"
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 eval "$as_ac_var=no"
18345 rm -f conftest.err conftest.$ac_objext \
18346 conftest$ac_exeext conftest.$ac_ext
18348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18350 if test `eval echo '${'$as_ac_var'}'` = yes; then
18351 cat >>confdefs.h <<_ACEOF
18352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18360 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18361 if test $ol_enable_ipv6 = yes ; then
18362 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18363 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18364 { (exit 1); exit 1; }; }
18366 elif test $ol_enable_ipv6 != no ; then
18367 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18368 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18369 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
18373 cat >conftest.$ac_ext <<_ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h. */
18380 # include <netinet/in.h>
18381 # ifdef INET6_ADDRSTRLEN
18382 __has_inet6_addrstrlen__;
18386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18387 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18388 ol_cv_inet6_addrstrlen=yes
18390 ol_cv_inet6_addrstrlen=no
18395 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18396 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18399 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18400 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18401 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 cat >conftest.$ac_ext <<_ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18412 #include <sys/types.h>
18413 #include <sys/socket.h>
18419 struct sockaddr_storage ss;
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427 (eval $ac_compile) 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag"
18435 || test ! -s conftest.err'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ol_cv_struct_sockaddr_storage=yes
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ol_cv_struct_sockaddr_storage=no
18454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18456 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18457 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18459 if test $ol_cv_inet6_addrstrlen = yes &&
18460 test $ol_cv_struct_sockaddr_storage = yes ; then
18462 elif test $ol_enable_ipv6 = yes &&
18463 test $ol_cv_inet6_addrstrlen = no ; then
18464 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18465 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18466 { (exit 1); exit 1; }; }
18467 elif test $ol_enable_ipv6 = yes &&
18468 test $ol_cv_struct_sockaddr_storage = no ; then
18469 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18470 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18471 { (exit 1); exit 1; }; }
18475 if test $ol_enable_local != no ; then
18477 for ac_header in sys/un.h
18479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18481 echo "$as_me:$LINENO: checking for $ac_header" >&5
18482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18484 echo $ECHO_N "(cached) $ECHO_C" >&6
18486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18489 # Is the header compilable?
18490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18492 cat >conftest.$ac_ext <<_ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 $ac_includes_default
18499 #include <$ac_header>
18501 rm -f conftest.$ac_objext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18503 (eval $ac_compile) 2>conftest.er1
18505 grep -v '^ *+' conftest.er1 >conftest.err
18507 cat conftest.err >&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_c_werror_flag"
18511 || test ! -s conftest.err'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest.$ac_objext'
18518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519 (eval $ac_try) 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; }; then
18523 ac_header_compiler=yes
18525 echo "$as_me: failed program was:" >&5
18526 sed 's/^/| /' conftest.$ac_ext >&5
18528 ac_header_compiler=no
18530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18532 echo "${ECHO_T}$ac_header_compiler" >&6
18534 # Is the header present?
18535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18537 cat >conftest.$ac_ext <<_ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 #include <$ac_header>
18545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18548 grep -v '^ *+' conftest.er1 >conftest.err
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } >/dev/null; then
18553 if test -s conftest.err; then
18554 ac_cpp_err=$ac_c_preproc_warn_flag
18555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18562 if test -z "$ac_cpp_err"; then
18563 ac_header_preproc=yes
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_header_preproc=no
18570 rm -f conftest.err conftest.$ac_ext
18571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18572 echo "${ECHO_T}$ac_header_preproc" >&6
18574 # So? What about this header?
18575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18581 ac_header_preproc=yes
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18598 ## --------------------------------------------- ##
18599 ## Report this to <http://www.openldap.org/its/> ##
18600 ## --------------------------------------------- ##
18603 sed "s/^/$as_me: WARNING: /" >&2
18606 echo "$as_me:$LINENO: checking for $ac_header" >&5
18607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 eval "$as_ac_Header=\$ac_header_preproc"
18613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18618 cat >>confdefs.h <<_ACEOF
18619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18627 if test $ol_enable_local = auto ; then
18628 ol_enable_local=$ac_cv_header_sys_un_h
18629 elif test $ac_cv_header_sys_un_h = no ; then
18630 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18631 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18632 { (exit 1); exit 1; }; }
18638 case $ol_with_gssapi in yes | auto)
18640 ol_header_gssapi=no
18642 for ac_header in gssapi/gssapi.h
18644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18646 echo "$as_me:$LINENO: checking for $ac_header" >&5
18647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18654 # Is the header compilable?
18655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18657 cat >conftest.$ac_ext <<_ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 $ac_includes_default
18664 #include <$ac_header>
18666 rm -f conftest.$ac_objext
18667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18668 (eval $ac_compile) 2>conftest.er1
18670 grep -v '^ *+' conftest.er1 >conftest.err
18672 cat conftest.err >&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } &&
18675 { ac_try='test -z "$ac_c_werror_flag"
18676 || test ! -s conftest.err'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; } &&
18682 { ac_try='test -s conftest.$ac_objext'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
18688 ac_header_compiler=yes
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18693 ac_header_compiler=no
18695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18697 echo "${ECHO_T}$ac_header_compiler" >&6
18699 # Is the header present?
18700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 #include <$ac_header>
18710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18713 grep -v '^ *+' conftest.er1 >conftest.err
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } >/dev/null; then
18718 if test -s conftest.err; then
18719 ac_cpp_err=$ac_c_preproc_warn_flag
18720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18727 if test -z "$ac_cpp_err"; then
18728 ac_header_preproc=yes
18730 echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18733 ac_header_preproc=no
18735 rm -f conftest.err conftest.$ac_ext
18736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18737 echo "${ECHO_T}$ac_header_preproc" >&6
18739 # So? What about this header?
18740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18746 ac_header_preproc=yes
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18763 ## --------------------------------------------- ##
18764 ## Report this to <http://www.openldap.org/its/> ##
18765 ## --------------------------------------------- ##
18768 sed "s/^/$as_me: WARNING: /" >&2
18771 echo "$as_me:$LINENO: checking for $ac_header" >&5
18772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 eval "$as_ac_Header=\$ac_header_preproc"
18778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18783 cat >>confdefs.h <<_ACEOF
18784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18791 if test $ac_cv_header_gssapi_gssapi_h = yes ; then
18792 ol_header_gssapi=yes
18795 for ac_header in gssapi.h
18797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799 echo "$as_me:$LINENO: checking for $ac_header" >&5
18800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18807 # Is the header compilable?
18808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18810 cat >conftest.$ac_ext <<_ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 $ac_includes_default
18817 #include <$ac_header>
18819 rm -f conftest.$ac_objext
18820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821 (eval $ac_compile) 2>conftest.er1
18823 grep -v '^ *+' conftest.er1 >conftest.err
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
18828 { ac_try='test -z "$ac_c_werror_flag"
18829 || test ! -s conftest.err'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest.$ac_objext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_header_compiler=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_header_compiler=no
18848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18850 echo "${ECHO_T}$ac_header_compiler" >&6
18852 # Is the header present?
18853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18855 cat >conftest.$ac_ext <<_ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18861 #include <$ac_header>
18863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18866 grep -v '^ *+' conftest.er1 >conftest.err
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } >/dev/null; then
18871 if test -s conftest.err; then
18872 ac_cpp_err=$ac_c_preproc_warn_flag
18873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18880 if test -z "$ac_cpp_err"; then
18881 ac_header_preproc=yes
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_header_preproc=no
18888 rm -f conftest.err conftest.$ac_ext
18889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18890 echo "${ECHO_T}$ac_header_preproc" >&6
18892 # So? What about this header?
18893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18899 ac_header_preproc=yes
18902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18916 ## --------------------------------------------- ##
18917 ## Report this to <http://www.openldap.org/its/> ##
18918 ## --------------------------------------------- ##
18921 sed "s/^/$as_me: WARNING: /" >&2
18924 echo "$as_me:$LINENO: checking for $ac_header" >&5
18925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 eval "$as_ac_Header=\$ac_header_preproc"
18931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18936 cat >>confdefs.h <<_ACEOF
18937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18944 if test $ac_cv_header_gssapi_h = yes ; then
18945 ol_header_gssapi=yes
18949 LIBS="$LIBS $GSSAPI_LIBS"
18951 for ac_func in gss_oid_to_str
18953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18954 echo "$as_me:$LINENO: checking for $ac_func" >&5
18955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18956 if eval "test \"\${$as_ac_var+set}\" = set"; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 cat >conftest.$ac_ext <<_ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18967 #define $ac_func innocuous_$ac_func
18969 /* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char $ac_func (); below.
18971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18972 <limits.h> exists even on freestanding compilers. */
18975 # include <limits.h>
18977 # include <assert.h>
18982 /* Override any gcc2 internal prototype to avoid an error. */
18987 /* We use char because int might match the return type of a gcc2
18988 builtin and then its argument prototype would still apply. */
18990 /* The GNU C library defines this for functions which it implements
18991 to always fail with ENOSYS. Some functions are actually named
18992 something starting with __ and the normal name is an alias. */
18993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18996 char (*f) () = $ac_func;
19005 return f != $ac_func;
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19012 (eval $ac_link) 2>conftest.er1
19014 grep -v '^ *+' conftest.er1 >conftest.err
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } &&
19019 { ac_try='test -z "$ac_c_werror_flag"
19020 || test ! -s conftest.err'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } &&
19026 { ac_try='test -s conftest$ac_exeext'
19027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19028 (eval $ac_try) 2>&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); }; }; then
19032 eval "$as_ac_var=yes"
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 eval "$as_ac_var=no"
19039 rm -f conftest.err conftest.$ac_objext \
19040 conftest$ac_exeext conftest.$ac_ext
19042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19044 if test `eval echo '${'$as_ac_var'}'` = yes; then
19045 cat >>confdefs.h <<_ACEOF
19046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19055 if test $ol_header_gssapi = yes ; then
19056 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
19057 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6
19058 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lgssapi $LIBS"
19063 cat >conftest.$ac_ext <<_ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19070 /* Override any gcc2 internal prototype to avoid an error. */
19074 /* We use char because int might match the return type of a gcc2
19075 builtin and then its argument prototype would still apply. */
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19087 (eval $ac_link) 2>conftest.er1
19089 grep -v '^ *+' conftest.er1 >conftest.err
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
19094 { ac_try='test -z "$ac_c_werror_flag"
19095 || test ! -s conftest.err'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try='test -s conftest$ac_exeext'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_cv_lib_gssapi_gss_wrap=yes
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 ac_cv_lib_gssapi_gss_wrap=no
19114 rm -f conftest.err conftest.$ac_objext \
19115 conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19118 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19119 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6
19120 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19121 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19126 if test $ol_link_gssapi != yes ; then
19127 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19128 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6
19129 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 ac_check_lib_save_LIBS=$LIBS
19133 LIBS="-lgssapi_krb5 $LIBS"
19134 cat >conftest.$ac_ext <<_ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19141 /* Override any gcc2 internal prototype to avoid an error. */
19145 /* We use char because int might match the return type of a gcc2
19146 builtin and then its argument prototype would still apply. */
19156 rm -f conftest.$ac_objext conftest$ac_exeext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19158 (eval $ac_link) 2>conftest.er1
19160 grep -v '^ *+' conftest.er1 >conftest.err
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
19165 { ac_try='test -z "$ac_c_werror_flag"
19166 || test ! -s conftest.err'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest$ac_exeext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_cv_lib_gssapi_krb5_gss_wrap=yes
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19183 ac_cv_lib_gssapi_krb5_gss_wrap=no
19185 rm -f conftest.err conftest.$ac_objext \
19186 conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19189 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19190 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6
19191 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19192 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19198 if test $ol_link_gssapi != yes ; then
19199 echo "$as_me:$LINENO: checking for gss_wrap in -lgss" >&5
19200 echo $ECHO_N "checking for gss_wrap in -lgss... $ECHO_C" >&6
19201 if test "${ac_cv_lib_gss_gss_wrap+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 ac_check_lib_save_LIBS=$LIBS
19206 cat >conftest.$ac_ext <<_ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19213 /* Override any gcc2 internal prototype to avoid an error. */
19217 /* We use char because int might match the return type of a gcc2
19218 builtin and then its argument prototype would still apply. */
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19230 (eval $ac_link) 2>conftest.er1
19232 grep -v '^ *+' conftest.er1 >conftest.err
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_c_werror_flag"
19238 || test ! -s conftest.err'
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest$ac_exeext'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 ac_cv_lib_gss_gss_wrap=yes
19252 echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19255 ac_cv_lib_gss_gss_wrap=no
19257 rm -f conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19261 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_wrap" >&5
19262 echo "${ECHO_T}$ac_cv_lib_gss_gss_wrap" >&6
19263 if test $ac_cv_lib_gss_gss_wrap = yes; then
19264 ol_link_gssapi=yes;GSSAPI_LIBS="-lgss"
19276 if test $ol_link_gssapi = yes; then
19278 cat >>confdefs.h <<\_ACEOF
19279 #define HAVE_GSSAPI 1
19283 elif test $ol_with_gssapi = auto ; then
19284 { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19285 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19286 { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19287 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19288 elif test $ol_with_gssapi = yes ; then
19289 { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19290 echo "$as_me: error: GSSAPI detection failed" >&2;}
19291 { (exit 1); exit 1; }; }
19295 if test $ol_with_tls = yes ; then
19300 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19302 for ac_header in openssl/ssl.h
19304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19306 echo "$as_me:$LINENO: checking for $ac_header" >&5
19307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19314 # Is the header compilable?
19315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19317 cat >conftest.$ac_ext <<_ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19323 $ac_includes_default
19324 #include <$ac_header>
19326 rm -f conftest.$ac_objext
19327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19328 (eval $ac_compile) 2>conftest.er1
19330 grep -v '^ *+' conftest.er1 >conftest.err
19332 cat conftest.err >&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } &&
19335 { ac_try='test -z "$ac_c_werror_flag"
19336 || test ! -s conftest.err'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } &&
19342 { ac_try='test -s conftest.$ac_objext'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348 ac_header_compiler=yes
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 ac_header_compiler=no
19355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19357 echo "${ECHO_T}$ac_header_compiler" >&6
19359 # Is the header present?
19360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 #include <$ac_header>
19370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19373 grep -v '^ *+' conftest.er1 >conftest.err
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } >/dev/null; then
19378 if test -s conftest.err; then
19379 ac_cpp_err=$ac_c_preproc_warn_flag
19380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19387 if test -z "$ac_cpp_err"; then
19388 ac_header_preproc=yes
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19393 ac_header_preproc=no
19395 rm -f conftest.err conftest.$ac_ext
19396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19397 echo "${ECHO_T}$ac_header_preproc" >&6
19399 # So? What about this header?
19400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19406 ac_header_preproc=yes
19409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19423 ## --------------------------------------------- ##
19424 ## Report this to <http://www.openldap.org/its/> ##
19425 ## --------------------------------------------- ##
19428 sed "s/^/$as_me: WARNING: /" >&2
19431 echo "$as_me:$LINENO: checking for $ac_header" >&5
19432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 eval "$as_ac_Header=\$ac_header_preproc"
19438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19443 cat >>confdefs.h <<_ACEOF
19444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19452 if test $ac_cv_header_openssl_ssl_h = yes ; then
19453 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19454 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19455 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19458 ac_check_lib_save_LIBS=$LIBS
19459 LIBS="-lssl -lcrypto $LIBS"
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19467 /* Override any gcc2 internal prototype to avoid an error. */
19471 /* We use char because int might match the return type of a gcc2
19472 builtin and then its argument prototype would still apply. */
19473 char SSL_library_init ();
19477 SSL_library_init ();
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484 (eval $ac_link) 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
19491 { ac_try='test -z "$ac_c_werror_flag"
19492 || test ! -s conftest.err'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest$ac_exeext'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_lib_ssl_SSL_library_init=yes
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 ac_cv_lib_ssl_SSL_library_init=no
19511 rm -f conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19516 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19517 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19525 if test $have_openssl = no ; then
19526 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19527 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19528 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 ac_check_lib_save_LIBS=$LIBS
19532 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19540 /* Override any gcc2 internal prototype to avoid an error. */
19544 /* We use char because int might match the return type of a gcc2
19545 builtin and then its argument prototype would still apply. */
19546 char ssl3_accept ();
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19557 (eval $ac_link) 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } &&
19564 { ac_try='test -z "$ac_c_werror_flag"
19565 || test ! -s conftest.err'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; } &&
19571 { ac_try='test -s conftest$ac_exeext'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; }; then
19577 ac_cv_lib_ssl_ssl3_accept=yes
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_lib_ssl_ssl3_accept=no
19584 rm -f conftest.err conftest.$ac_objext \
19585 conftest$ac_exeext conftest.$ac_ext
19586 LIBS=$ac_check_lib_save_LIBS
19588 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19589 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19590 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19599 if test $have_openssl = yes ; then
19600 ol_with_tls=openssl
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_OPENSSL 1
19609 if test $need_rsaref = yes; then
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_RSAREF 1
19616 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19618 TLS_LIBS="-lssl -lcrypto"
19621 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19622 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19623 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19634 #ifdef HAVE_OPENSSL_SSL_H
19635 #include <openssl/ssl.h>
19638 /* Require 0.9.7d+ */
19639 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19640 char *__ssl_compat = "0.9.7d";
19644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19645 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19646 ol_cv_ssl_crl_compat=yes
19648 ol_cv_ssl_crl_compat=no
19653 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19654 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19656 if test $ol_cv_ssl_crl_compat = yes ; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define HAVE_OPENSSL_CRL 1
19667 if test $ol_link_tls = no ; then
19668 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19670 for ac_header in gnutls/gnutls.h
19672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19674 echo "$as_me:$LINENO: checking for $ac_header" >&5
19675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19682 # Is the header compilable?
19683 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 $ac_includes_default
19692 #include <$ac_header>
19694 rm -f conftest.$ac_objext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19696 (eval $ac_compile) 2>conftest.er1
19698 grep -v '^ *+' conftest.er1 >conftest.err
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_c_werror_flag"
19704 || test ! -s conftest.err'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; } &&
19710 { ac_try='test -s conftest.$ac_objext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 ac_header_compiler=yes
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_header_compiler=no
19723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19725 echo "${ECHO_T}$ac_header_compiler" >&6
19727 # Is the header present?
19728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19736 #include <$ac_header>
19738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } >/dev/null; then
19746 if test -s conftest.err; then
19747 ac_cpp_err=$ac_c_preproc_warn_flag
19748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19755 if test -z "$ac_cpp_err"; then
19756 ac_header_preproc=yes
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 ac_header_preproc=no
19763 rm -f conftest.err conftest.$ac_ext
19764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19765 echo "${ECHO_T}$ac_header_preproc" >&6
19767 # So? What about this header?
19768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19774 ac_header_preproc=yes
19777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19791 ## --------------------------------------------- ##
19792 ## Report this to <http://www.openldap.org/its/> ##
19793 ## --------------------------------------------- ##
19796 sed "s/^/$as_me: WARNING: /" >&2
19799 echo "$as_me:$LINENO: checking for $ac_header" >&5
19800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 eval "$as_ac_Header=\$ac_header_preproc"
19806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19820 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19821 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19822 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19823 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 ac_check_lib_save_LIBS=$LIBS
19827 LIBS="-lgnutls $LIBS"
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19835 /* Override any gcc2 internal prototype to avoid an error. */
19839 /* We use char because int might match the return type of a gcc2
19840 builtin and then its argument prototype would still apply. */
19841 char gnutls_init ();
19850 rm -f conftest.$ac_objext conftest$ac_exeext
19851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19852 (eval $ac_link) 2>conftest.er1
19854 grep -v '^ *+' conftest.er1 >conftest.err
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_c_werror_flag"
19860 || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest$ac_exeext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_lib_gnutls_gnutls_init=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_cv_lib_gnutls_gnutls_init=no
19879 rm -f conftest.err conftest.$ac_objext \
19880 conftest$ac_exeext conftest.$ac_ext
19881 LIBS=$ac_check_lib_save_LIBS
19883 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19884 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19885 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19892 if test $have_gnutls = yes ; then
19896 TLS_LIBS="-lgnutls"
19899 cat >>confdefs.h <<\_ACEOF
19900 #define HAVE_GNUTLS 1
19909 if test $ol_link_tls = yes ; then
19911 cat >>confdefs.h <<\_ACEOF
19916 elif test $ol_with_tls = auto ; then
19917 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19918 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19920 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19921 elif test $ol_with_tls != no ; then
19922 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19923 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19924 { (exit 1); exit 1; }; }
19926 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19927 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19930 if test $ol_enable_lmpasswd != no; then
19931 if test $ol_link_tls != yes ; then
19932 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19933 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19934 { (exit 1); exit 1; }; }
19938 cat >>confdefs.h <<\_ACEOF
19939 #define SLAPD_LMHASH 1
19946 case $ol_with_threads in auto | yes | nt)
19949 echo "$as_me:$LINENO: checking for _beginthread" >&5
19950 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19951 if test "${ac_cv_func__beginthread+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19962 #define _beginthread innocuous__beginthread
19964 /* System header to define __stub macros and hopefully few prototypes,
19965 which can conflict with char _beginthread (); below.
19966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19967 <limits.h> exists even on freestanding compilers. */
19970 # include <limits.h>
19972 # include <assert.h>
19975 #undef _beginthread
19977 /* Override any gcc2 internal prototype to avoid an error. */
19982 /* We use char because int might match the return type of a gcc2
19983 builtin and then its argument prototype would still apply. */
19984 char _beginthread ();
19985 /* The GNU C library defines this for functions which it implements
19986 to always fail with ENOSYS. Some functions are actually named
19987 something starting with __ and the normal name is an alias. */
19988 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19991 char (*f) () = _beginthread;
20000 return f != _beginthread;
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007 (eval $ac_link) 2>conftest.er1
20009 grep -v '^ *+' conftest.er1 >conftest.err
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } &&
20014 { ac_try='test -z "$ac_c_werror_flag"
20015 || test ! -s conftest.err'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest$ac_exeext'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20027 ac_cv_func__beginthread=yes
20029 echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 ac_cv_func__beginthread=no
20034 rm -f conftest.err conftest.$ac_objext \
20035 conftest$ac_exeext conftest.$ac_ext
20037 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20038 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
20041 if test $ac_cv_func__beginthread = yes ; then
20043 cat >>confdefs.h <<\_ACEOF
20044 #define HAVE_NT_THREADS 1
20047 ol_cv_nt_threads=yes
20051 if test "$ol_cv_nt_threads" = yes ; then
20053 ol_with_threads=found
20054 ol_with_yielding_select=yes
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_NT_SERVICE_MANAGER 1
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_NT_EVENT_LOG 1
20068 if test $ol_with_threads = nt ; then
20069 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20070 echo "$as_me: error: could not locate NT Threads" >&2;}
20071 { (exit 1); exit 1; }; }
20076 case $ol_with_threads in auto | yes | posix)
20079 for ac_header in pthread.h
20081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20083 echo "$as_me:$LINENO: checking for $ac_header" >&5
20084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20091 # Is the header compilable?
20092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20094 cat >conftest.$ac_ext <<_ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 $ac_includes_default
20101 #include <$ac_header>
20103 rm -f conftest.$ac_objext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105 (eval $ac_compile) 2>conftest.er1
20107 grep -v '^ *+' conftest.er1 >conftest.err
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -z "$ac_c_werror_flag"
20113 || test ! -s conftest.err'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; } &&
20119 { ac_try='test -s conftest.$ac_objext'
20120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121 (eval $ac_try) 2>&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); }; }; then
20125 ac_header_compiler=yes
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 ac_header_compiler=no
20132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20134 echo "${ECHO_T}$ac_header_compiler" >&6
20136 # Is the header present?
20137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 #include <$ac_header>
20147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20150 grep -v '^ *+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } >/dev/null; then
20155 if test -s conftest.err; then
20156 ac_cpp_err=$ac_c_preproc_warn_flag
20157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20164 if test -z "$ac_cpp_err"; then
20165 ac_header_preproc=yes
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 ac_header_preproc=no
20172 rm -f conftest.err conftest.$ac_ext
20173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20174 echo "${ECHO_T}$ac_header_preproc" >&6
20176 # So? What about this header?
20177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20183 ac_header_preproc=yes
20186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20200 ## --------------------------------------------- ##
20201 ## Report this to <http://www.openldap.org/its/> ##
20202 ## --------------------------------------------- ##
20205 sed "s/^/$as_me: WARNING: /" >&2
20208 echo "$as_me:$LINENO: checking for $ac_header" >&5
20209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 eval "$as_ac_Header=\$ac_header_preproc"
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20220 cat >>confdefs.h <<_ACEOF
20221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20229 if test $ac_cv_header_pthread_h = yes ; then
20230 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20231 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20232 if test "${ol_cv_pthread_version+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20243 # include <pthread.h>
20249 int i = PTHREAD_CREATE_JOINABLE;
20255 rm -f conftest.$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20259 grep -v '^ *+' conftest.er1 >conftest.err
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20278 cat >conftest.$ac_ext <<_ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 #include <pthread.h>
20287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20288 $EGREP "pthread_detach" >/dev/null 2>&1; then
20289 ol_cv_pthread_version=10
20291 ol_cv_pthread_version=8
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20307 # include <pthread.h>
20308 # ifdef PTHREAD_CREATE_UNDETACHED
20313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20314 $EGREP "draft7" >/dev/null 2>&1; then
20315 ol_cv_pthread_version=7
20318 cat >conftest.$ac_ext <<_ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 #include <pthread.h>
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20329 ol_cv_pthread_version=6
20332 cat >conftest.$ac_ext <<_ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h. */
20339 # include <pthread.h>
20340 #ifdef PTHREAD_MUTEX_INITIALIZER
20345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20346 $EGREP "draft5" >/dev/null 2>&1; then
20347 ol_cv_pthread_version=5
20349 ol_cv_pthread_version=4
20360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20363 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20364 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20367 if test $ol_cv_pthread_version != 0 ; then
20369 cat >>confdefs.h <<_ACEOF
20370 #define HAVE_PTHREADS $ol_cv_pthread_version
20374 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20375 echo "$as_me: error: unknown pthread version" >&2;}
20376 { (exit 1); exit 1; }; }
20379 # consider threads found
20380 ol_with_threads=found
20383 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20384 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20385 if test "${ol_cv_header_linux_threads+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <pthread.h>
20396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20397 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20398 ol_cv_header_linux_threads=yes
20400 ol_cv_header_linux_threads=no
20406 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20407 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20408 if test $ol_cv_header_linux_threads = yes; then
20410 cat >>confdefs.h <<\_ACEOF
20411 #define HAVE_LINUX_THREADS 1
20417 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20418 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20419 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428 #include <pthread.h>
20429 #ifdef _POSIX_THREAD_IS_GNU_PTH
20434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20435 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20436 ol_cv_header_gnu_pth_pthread_h=yes
20438 ol_cv_header_gnu_pth_pthread_h=no
20444 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20445 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20448 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20450 for ac_header in sched.h
20452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20454 echo "$as_me:$LINENO: checking for $ac_header" >&5
20455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20462 # Is the header compilable?
20463 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20465 cat >conftest.$ac_ext <<_ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 $ac_includes_default
20472 #include <$ac_header>
20474 rm -f conftest.$ac_objext
20475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20476 (eval $ac_compile) 2>conftest.er1
20478 grep -v '^ *+' conftest.er1 >conftest.err
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
20483 { ac_try='test -z "$ac_c_werror_flag"
20484 || test ! -s conftest.err'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; } &&
20490 { ac_try='test -s conftest.$ac_objext'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20496 ac_header_compiler=yes
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 ac_header_compiler=no
20503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20505 echo "${ECHO_T}$ac_header_compiler" >&6
20507 # Is the header present?
20508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20510 cat >conftest.$ac_ext <<_ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20516 #include <$ac_header>
20518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20521 grep -v '^ *+' conftest.er1 >conftest.err
20523 cat conftest.err >&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } >/dev/null; then
20526 if test -s conftest.err; then
20527 ac_cpp_err=$ac_c_preproc_warn_flag
20528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20535 if test -z "$ac_cpp_err"; then
20536 ac_header_preproc=yes
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_header_preproc=no
20543 rm -f conftest.err conftest.$ac_ext
20544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20545 echo "${ECHO_T}$ac_header_preproc" >&6
20547 # So? What about this header?
20548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20554 ac_header_preproc=yes
20557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20571 ## --------------------------------------------- ##
20572 ## Report this to <http://www.openldap.org/its/> ##
20573 ## --------------------------------------------- ##
20576 sed "s/^/$as_me: WARNING: /" >&2
20579 echo "$as_me:$LINENO: checking for $ac_header" >&5
20580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 eval "$as_ac_Header=\$ac_header_preproc"
20586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20602 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20603 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20604 if test "${ol_cv_pthread_create+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 if test "$cross_compiling" = yes; then
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* pthread test headers */
20617 #include <pthread.h>
20618 #if HAVE_PTHREADS < 7
20622 #define NULL (void*)0
20625 static void *task(p)
20628 return (void *) (p == NULL);
20635 /* pthread test function */
20636 #ifndef PTHREAD_CREATE_DETACHED
20637 #define PTHREAD_CREATE_DETACHED 1
20641 int detach = PTHREAD_CREATE_DETACHED;
20643 #if HAVE_PTHREADS > 4
20644 /* Final pthreads */
20645 pthread_attr_t attr;
20647 status = pthread_attr_init(&attr);
20648 if( status ) return status;
20650 #if HAVE_PTHREADS < 7
20651 status = pthread_attr_setdetachstate(&attr, &detach);
20652 if( status < 0 ) status = errno;
20654 status = pthread_attr_setdetachstate(&attr, detach);
20656 if( status ) return status;
20657 status = pthread_create( &t, &attr, task, NULL );
20658 #if HAVE_PTHREADS < 7
20659 if( status < 0 ) status = errno;
20661 if( status ) return status;
20663 /* Draft 4 pthreads */
20664 status = pthread_create( &t, pthread_attr_default, task, NULL );
20665 if( status ) return errno;
20667 /* give thread a chance to complete */
20668 /* it should remain joinable and hence detachable */
20671 status = pthread_detach( &t );
20672 if( status ) return errno;
20675 #ifdef HAVE_LINUX_THREADS
20676 pthread_kill_other_threads_np();
20685 rm -f conftest.$ac_objext conftest$ac_exeext
20686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20687 (eval $ac_link) 2>conftest.er1
20689 grep -v '^ *+' conftest.er1 >conftest.err
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
20694 { ac_try='test -z "$ac_c_werror_flag"
20695 || test ! -s conftest.err'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; } &&
20701 { ac_try='test -s conftest$ac_exeext'
20702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20703 (eval $ac_try) 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; }; then
20707 ol_cv_pthread_create=yes
20709 echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20712 ol_cv_pthread_create=no
20714 rm -f conftest.err conftest.$ac_objext \
20715 conftest$ac_exeext conftest.$ac_ext
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20724 /* pthread test headers */
20725 #include <pthread.h>
20726 #if HAVE_PTHREADS < 7
20730 #define NULL (void*)0
20733 static void *task(p)
20736 return (void *) (p == NULL);
20740 int main(argc, argv)
20745 /* pthread test function */
20746 #ifndef PTHREAD_CREATE_DETACHED
20747 #define PTHREAD_CREATE_DETACHED 1
20751 int detach = PTHREAD_CREATE_DETACHED;
20753 #if HAVE_PTHREADS > 4
20754 /* Final pthreads */
20755 pthread_attr_t attr;
20757 status = pthread_attr_init(&attr);
20758 if( status ) return status;
20760 #if HAVE_PTHREADS < 7
20761 status = pthread_attr_setdetachstate(&attr, &detach);
20762 if( status < 0 ) status = errno;
20764 status = pthread_attr_setdetachstate(&attr, detach);
20766 if( status ) return status;
20767 status = pthread_create( &t, &attr, task, NULL );
20768 #if HAVE_PTHREADS < 7
20769 if( status < 0 ) status = errno;
20771 if( status ) return status;
20773 /* Draft 4 pthreads */
20774 status = pthread_create( &t, pthread_attr_default, task, NULL );
20775 if( status ) return errno;
20777 /* give thread a chance to complete */
20778 /* it should remain joinable and hence detachable */
20781 status = pthread_detach( &t );
20782 if( status ) return errno;
20785 #ifdef HAVE_LINUX_THREADS
20786 pthread_kill_other_threads_np();
20794 rm -f conftest$ac_exeext
20795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20796 (eval $ac_link) 2>&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; }; then
20805 ol_cv_pthread_create=yes
20807 echo "$as_me: program exited with status $ac_status" >&5
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ( exit $ac_status )
20812 ol_cv_pthread_create=no
20814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20817 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20818 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20820 if test $ol_cv_pthread_create != no ; then
20821 ol_link_threads=posix
20822 ol_link_pthreads=""
20825 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20826 if test "$ol_link_threads" = no ; then
20828 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20829 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20830 if test "${ol_cv_pthread_kthread+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 LIBS="-kthread $LIBS"
20838 if test "$cross_compiling" = yes; then
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20846 /* pthread test headers */
20847 #include <pthread.h>
20848 #if HAVE_PTHREADS < 7
20852 #define NULL (void*)0
20855 static void *task(p)
20858 return (void *) (p == NULL);
20865 /* pthread test function */
20866 #ifndef PTHREAD_CREATE_DETACHED
20867 #define PTHREAD_CREATE_DETACHED 1
20871 int detach = PTHREAD_CREATE_DETACHED;
20873 #if HAVE_PTHREADS > 4
20874 /* Final pthreads */
20875 pthread_attr_t attr;
20877 status = pthread_attr_init(&attr);
20878 if( status ) return status;
20880 #if HAVE_PTHREADS < 7
20881 status = pthread_attr_setdetachstate(&attr, &detach);
20882 if( status < 0 ) status = errno;
20884 status = pthread_attr_setdetachstate(&attr, detach);
20886 if( status ) return status;
20887 status = pthread_create( &t, &attr, task, NULL );
20888 #if HAVE_PTHREADS < 7
20889 if( status < 0 ) status = errno;
20891 if( status ) return status;
20893 /* Draft 4 pthreads */
20894 status = pthread_create( &t, pthread_attr_default, task, NULL );
20895 if( status ) return errno;
20897 /* give thread a chance to complete */
20898 /* it should remain joinable and hence detachable */
20901 status = pthread_detach( &t );
20902 if( status ) return errno;
20905 #ifdef HAVE_LINUX_THREADS
20906 pthread_kill_other_threads_np();
20915 rm -f conftest.$ac_objext conftest$ac_exeext
20916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20917 (eval $ac_link) 2>conftest.er1
20919 grep -v '^ *+' conftest.er1 >conftest.err
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } &&
20924 { ac_try='test -z "$ac_c_werror_flag"
20925 || test ! -s conftest.err'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; } &&
20931 { ac_try='test -s conftest$ac_exeext'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 ol_cv_pthread_kthread=yes
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20942 ol_cv_pthread_kthread=no
20944 rm -f conftest.err conftest.$ac_objext \
20945 conftest$ac_exeext conftest.$ac_ext
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20954 /* pthread test headers */
20955 #include <pthread.h>
20956 #if HAVE_PTHREADS < 7
20960 #define NULL (void*)0
20963 static void *task(p)
20966 return (void *) (p == NULL);
20970 int main(argc, argv)
20975 /* pthread test function */
20976 #ifndef PTHREAD_CREATE_DETACHED
20977 #define PTHREAD_CREATE_DETACHED 1
20981 int detach = PTHREAD_CREATE_DETACHED;
20983 #if HAVE_PTHREADS > 4
20984 /* Final pthreads */
20985 pthread_attr_t attr;
20987 status = pthread_attr_init(&attr);
20988 if( status ) return status;
20990 #if HAVE_PTHREADS < 7
20991 status = pthread_attr_setdetachstate(&attr, &detach);
20992 if( status < 0 ) status = errno;
20994 status = pthread_attr_setdetachstate(&attr, detach);
20996 if( status ) return status;
20997 status = pthread_create( &t, &attr, task, NULL );
20998 #if HAVE_PTHREADS < 7
20999 if( status < 0 ) status = errno;
21001 if( status ) return status;
21003 /* Draft 4 pthreads */
21004 status = pthread_create( &t, pthread_attr_default, task, NULL );
21005 if( status ) return errno;
21007 /* give thread a chance to complete */
21008 /* it should remain joinable and hence detachable */
21011 status = pthread_detach( &t );
21012 if( status ) return errno;
21015 #ifdef HAVE_LINUX_THREADS
21016 pthread_kill_other_threads_np();
21024 rm -f conftest$ac_exeext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026 (eval $ac_link) 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 ol_cv_pthread_kthread=yes
21037 echo "$as_me: program exited with status $ac_status" >&5
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ( exit $ac_status )
21042 ol_cv_pthread_kthread=no
21044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21051 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21052 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
21054 if test $ol_cv_pthread_kthread = yes ; then
21055 ol_link_pthreads="-kthread"
21056 ol_link_threads=posix
21060 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21061 if test "$ol_link_threads" = no ; then
21063 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21064 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
21065 if test "${ol_cv_pthread_pthread+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21071 LIBS="-pthread $LIBS"
21073 if test "$cross_compiling" = yes; then
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21081 /* pthread test headers */
21082 #include <pthread.h>
21083 #if HAVE_PTHREADS < 7
21087 #define NULL (void*)0
21090 static void *task(p)
21093 return (void *) (p == NULL);
21100 /* pthread test function */
21101 #ifndef PTHREAD_CREATE_DETACHED
21102 #define PTHREAD_CREATE_DETACHED 1
21106 int detach = PTHREAD_CREATE_DETACHED;
21108 #if HAVE_PTHREADS > 4
21109 /* Final pthreads */
21110 pthread_attr_t attr;
21112 status = pthread_attr_init(&attr);
21113 if( status ) return status;
21115 #if HAVE_PTHREADS < 7
21116 status = pthread_attr_setdetachstate(&attr, &detach);
21117 if( status < 0 ) status = errno;
21119 status = pthread_attr_setdetachstate(&attr, detach);
21121 if( status ) return status;
21122 status = pthread_create( &t, &attr, task, NULL );
21123 #if HAVE_PTHREADS < 7
21124 if( status < 0 ) status = errno;
21126 if( status ) return status;
21128 /* Draft 4 pthreads */
21129 status = pthread_create( &t, pthread_attr_default, task, NULL );
21130 if( status ) return errno;
21132 /* give thread a chance to complete */
21133 /* it should remain joinable and hence detachable */
21136 status = pthread_detach( &t );
21137 if( status ) return errno;
21140 #ifdef HAVE_LINUX_THREADS
21141 pthread_kill_other_threads_np();
21150 rm -f conftest.$ac_objext conftest$ac_exeext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152 (eval $ac_link) 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest$ac_exeext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ol_cv_pthread_pthread=yes
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 ol_cv_pthread_pthread=no
21179 rm -f conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21189 /* pthread test headers */
21190 #include <pthread.h>
21191 #if HAVE_PTHREADS < 7
21195 #define NULL (void*)0
21198 static void *task(p)
21201 return (void *) (p == NULL);
21205 int main(argc, argv)
21210 /* pthread test function */
21211 #ifndef PTHREAD_CREATE_DETACHED
21212 #define PTHREAD_CREATE_DETACHED 1
21216 int detach = PTHREAD_CREATE_DETACHED;
21218 #if HAVE_PTHREADS > 4
21219 /* Final pthreads */
21220 pthread_attr_t attr;
21222 status = pthread_attr_init(&attr);
21223 if( status ) return status;
21225 #if HAVE_PTHREADS < 7
21226 status = pthread_attr_setdetachstate(&attr, &detach);
21227 if( status < 0 ) status = errno;
21229 status = pthread_attr_setdetachstate(&attr, detach);
21231 if( status ) return status;
21232 status = pthread_create( &t, &attr, task, NULL );
21233 #if HAVE_PTHREADS < 7
21234 if( status < 0 ) status = errno;
21236 if( status ) return status;
21238 /* Draft 4 pthreads */
21239 status = pthread_create( &t, pthread_attr_default, task, NULL );
21240 if( status ) return errno;
21242 /* give thread a chance to complete */
21243 /* it should remain joinable and hence detachable */
21246 status = pthread_detach( &t );
21247 if( status ) return errno;
21250 #ifdef HAVE_LINUX_THREADS
21251 pthread_kill_other_threads_np();
21259 rm -f conftest$ac_exeext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261 (eval $ac_link) 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266 (eval $ac_try) 2>&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; }; then
21270 ol_cv_pthread_pthread=yes
21272 echo "$as_me: program exited with status $ac_status" >&5
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ( exit $ac_status )
21277 ol_cv_pthread_pthread=no
21279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21286 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21287 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21289 if test $ol_cv_pthread_pthread = yes ; then
21290 ol_link_pthreads="-pthread"
21291 ol_link_threads=posix
21295 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21296 if test "$ol_link_threads" = no ; then
21298 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21299 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21300 if test "${ol_cv_pthread_pthreads+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 LIBS="-pthreads $LIBS"
21308 if test "$cross_compiling" = yes; then
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21316 /* pthread test headers */
21317 #include <pthread.h>
21318 #if HAVE_PTHREADS < 7
21322 #define NULL (void*)0
21325 static void *task(p)
21328 return (void *) (p == NULL);
21335 /* pthread test function */
21336 #ifndef PTHREAD_CREATE_DETACHED
21337 #define PTHREAD_CREATE_DETACHED 1
21341 int detach = PTHREAD_CREATE_DETACHED;
21343 #if HAVE_PTHREADS > 4
21344 /* Final pthreads */
21345 pthread_attr_t attr;
21347 status = pthread_attr_init(&attr);
21348 if( status ) return status;
21350 #if HAVE_PTHREADS < 7
21351 status = pthread_attr_setdetachstate(&attr, &detach);
21352 if( status < 0 ) status = errno;
21354 status = pthread_attr_setdetachstate(&attr, detach);
21356 if( status ) return status;
21357 status = pthread_create( &t, &attr, task, NULL );
21358 #if HAVE_PTHREADS < 7
21359 if( status < 0 ) status = errno;
21361 if( status ) return status;
21363 /* Draft 4 pthreads */
21364 status = pthread_create( &t, pthread_attr_default, task, NULL );
21365 if( status ) return errno;
21367 /* give thread a chance to complete */
21368 /* it should remain joinable and hence detachable */
21371 status = pthread_detach( &t );
21372 if( status ) return errno;
21375 #ifdef HAVE_LINUX_THREADS
21376 pthread_kill_other_threads_np();
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21387 (eval $ac_link) 2>conftest.er1
21389 grep -v '^ *+' conftest.er1 >conftest.err
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } &&
21394 { ac_try='test -z "$ac_c_werror_flag"
21395 || test ! -s conftest.err'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; } &&
21401 { ac_try='test -s conftest$ac_exeext'
21402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403 (eval $ac_try) 2>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; }; then
21407 ol_cv_pthread_pthreads=yes
21409 echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 ol_cv_pthread_pthreads=no
21414 rm -f conftest.err conftest.$ac_objext \
21415 conftest$ac_exeext conftest.$ac_ext
21417 cat >conftest.$ac_ext <<_ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21424 /* pthread test headers */
21425 #include <pthread.h>
21426 #if HAVE_PTHREADS < 7
21430 #define NULL (void*)0
21433 static void *task(p)
21436 return (void *) (p == NULL);
21440 int main(argc, argv)
21445 /* pthread test function */
21446 #ifndef PTHREAD_CREATE_DETACHED
21447 #define PTHREAD_CREATE_DETACHED 1
21451 int detach = PTHREAD_CREATE_DETACHED;
21453 #if HAVE_PTHREADS > 4
21454 /* Final pthreads */
21455 pthread_attr_t attr;
21457 status = pthread_attr_init(&attr);
21458 if( status ) return status;
21460 #if HAVE_PTHREADS < 7
21461 status = pthread_attr_setdetachstate(&attr, &detach);
21462 if( status < 0 ) status = errno;
21464 status = pthread_attr_setdetachstate(&attr, detach);
21466 if( status ) return status;
21467 status = pthread_create( &t, &attr, task, NULL );
21468 #if HAVE_PTHREADS < 7
21469 if( status < 0 ) status = errno;
21471 if( status ) return status;
21473 /* Draft 4 pthreads */
21474 status = pthread_create( &t, pthread_attr_default, task, NULL );
21475 if( status ) return errno;
21477 /* give thread a chance to complete */
21478 /* it should remain joinable and hence detachable */
21481 status = pthread_detach( &t );
21482 if( status ) return errno;
21485 #ifdef HAVE_LINUX_THREADS
21486 pthread_kill_other_threads_np();
21494 rm -f conftest$ac_exeext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21496 (eval $ac_link) 2>&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; }; then
21505 ol_cv_pthread_pthreads=yes
21507 echo "$as_me: program exited with status $ac_status" >&5
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 ( exit $ac_status )
21512 ol_cv_pthread_pthreads=no
21514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21521 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21522 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21524 if test $ol_cv_pthread_pthreads = yes ; then
21525 ol_link_pthreads="-pthreads"
21526 ol_link_threads=posix
21530 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21531 if test "$ol_link_threads" = no ; then
21533 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21534 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21535 if test "${ol_cv_pthread_mthreads+set}" = set; then
21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 LIBS="-mthreads $LIBS"
21543 if test "$cross_compiling" = yes; then
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21551 /* pthread test headers */
21552 #include <pthread.h>
21553 #if HAVE_PTHREADS < 7
21557 #define NULL (void*)0
21560 static void *task(p)
21563 return (void *) (p == NULL);
21570 /* pthread test function */
21571 #ifndef PTHREAD_CREATE_DETACHED
21572 #define PTHREAD_CREATE_DETACHED 1
21576 int detach = PTHREAD_CREATE_DETACHED;
21578 #if HAVE_PTHREADS > 4
21579 /* Final pthreads */
21580 pthread_attr_t attr;
21582 status = pthread_attr_init(&attr);
21583 if( status ) return status;
21585 #if HAVE_PTHREADS < 7
21586 status = pthread_attr_setdetachstate(&attr, &detach);
21587 if( status < 0 ) status = errno;
21589 status = pthread_attr_setdetachstate(&attr, detach);
21591 if( status ) return status;
21592 status = pthread_create( &t, &attr, task, NULL );
21593 #if HAVE_PTHREADS < 7
21594 if( status < 0 ) status = errno;
21596 if( status ) return status;
21598 /* Draft 4 pthreads */
21599 status = pthread_create( &t, pthread_attr_default, task, NULL );
21600 if( status ) return errno;
21602 /* give thread a chance to complete */
21603 /* it should remain joinable and hence detachable */
21606 status = pthread_detach( &t );
21607 if( status ) return errno;
21610 #ifdef HAVE_LINUX_THREADS
21611 pthread_kill_other_threads_np();
21620 rm -f conftest.$ac_objext conftest$ac_exeext
21621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21622 (eval $ac_link) 2>conftest.er1
21624 grep -v '^ *+' conftest.er1 >conftest.err
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } &&
21629 { ac_try='test -z "$ac_c_werror_flag"
21630 || test ! -s conftest.err'
21631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632 (eval $ac_try) 2>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; } &&
21636 { ac_try='test -s conftest$ac_exeext'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; }; then
21642 ol_cv_pthread_mthreads=yes
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ol_cv_pthread_mthreads=no
21649 rm -f conftest.err conftest.$ac_objext \
21650 conftest$ac_exeext conftest.$ac_ext
21652 cat >conftest.$ac_ext <<_ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21659 /* pthread test headers */
21660 #include <pthread.h>
21661 #if HAVE_PTHREADS < 7
21665 #define NULL (void*)0
21668 static void *task(p)
21671 return (void *) (p == NULL);
21675 int main(argc, argv)
21680 /* pthread test function */
21681 #ifndef PTHREAD_CREATE_DETACHED
21682 #define PTHREAD_CREATE_DETACHED 1
21686 int detach = PTHREAD_CREATE_DETACHED;
21688 #if HAVE_PTHREADS > 4
21689 /* Final pthreads */
21690 pthread_attr_t attr;
21692 status = pthread_attr_init(&attr);
21693 if( status ) return status;
21695 #if HAVE_PTHREADS < 7
21696 status = pthread_attr_setdetachstate(&attr, &detach);
21697 if( status < 0 ) status = errno;
21699 status = pthread_attr_setdetachstate(&attr, detach);
21701 if( status ) return status;
21702 status = pthread_create( &t, &attr, task, NULL );
21703 #if HAVE_PTHREADS < 7
21704 if( status < 0 ) status = errno;
21706 if( status ) return status;
21708 /* Draft 4 pthreads */
21709 status = pthread_create( &t, pthread_attr_default, task, NULL );
21710 if( status ) return errno;
21712 /* give thread a chance to complete */
21713 /* it should remain joinable and hence detachable */
21716 status = pthread_detach( &t );
21717 if( status ) return errno;
21720 #ifdef HAVE_LINUX_THREADS
21721 pthread_kill_other_threads_np();
21729 rm -f conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731 (eval $ac_link) 2>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 ol_cv_pthread_mthreads=yes
21742 echo "$as_me: program exited with status $ac_status" >&5
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21746 ( exit $ac_status )
21747 ol_cv_pthread_mthreads=no
21749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21756 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21757 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21759 if test $ol_cv_pthread_mthreads = yes ; then
21760 ol_link_pthreads="-mthreads"
21761 ol_link_threads=posix
21765 # Pthread try link: -thread (ol_cv_pthread_thread)
21766 if test "$ol_link_threads" = no ; then
21768 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21769 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21770 if test "${ol_cv_pthread_thread+set}" = set; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 LIBS="-thread $LIBS"
21778 if test "$cross_compiling" = yes; then
21779 cat >conftest.$ac_ext <<_ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21786 /* pthread test headers */
21787 #include <pthread.h>
21788 #if HAVE_PTHREADS < 7
21792 #define NULL (void*)0
21795 static void *task(p)
21798 return (void *) (p == NULL);
21805 /* pthread test function */
21806 #ifndef PTHREAD_CREATE_DETACHED
21807 #define PTHREAD_CREATE_DETACHED 1
21811 int detach = PTHREAD_CREATE_DETACHED;
21813 #if HAVE_PTHREADS > 4
21814 /* Final pthreads */
21815 pthread_attr_t attr;
21817 status = pthread_attr_init(&attr);
21818 if( status ) return status;
21820 #if HAVE_PTHREADS < 7
21821 status = pthread_attr_setdetachstate(&attr, &detach);
21822 if( status < 0 ) status = errno;
21824 status = pthread_attr_setdetachstate(&attr, detach);
21826 if( status ) return status;
21827 status = pthread_create( &t, &attr, task, NULL );
21828 #if HAVE_PTHREADS < 7
21829 if( status < 0 ) status = errno;
21831 if( status ) return status;
21833 /* Draft 4 pthreads */
21834 status = pthread_create( &t, pthread_attr_default, task, NULL );
21835 if( status ) return errno;
21837 /* give thread a chance to complete */
21838 /* it should remain joinable and hence detachable */
21841 status = pthread_detach( &t );
21842 if( status ) return errno;
21845 #ifdef HAVE_LINUX_THREADS
21846 pthread_kill_other_threads_np();
21855 rm -f conftest.$ac_objext conftest$ac_exeext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21857 (eval $ac_link) 2>conftest.er1
21859 grep -v '^ *+' conftest.er1 >conftest.err
21861 cat conftest.err >&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } &&
21864 { ac_try='test -z "$ac_c_werror_flag"
21865 || test ! -s conftest.err'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest$ac_exeext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 ol_cv_pthread_thread=yes
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21882 ol_cv_pthread_thread=no
21884 rm -f conftest.err conftest.$ac_objext \
21885 conftest$ac_exeext conftest.$ac_ext
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21894 /* pthread test headers */
21895 #include <pthread.h>
21896 #if HAVE_PTHREADS < 7
21900 #define NULL (void*)0
21903 static void *task(p)
21906 return (void *) (p == NULL);
21910 int main(argc, argv)
21915 /* pthread test function */
21916 #ifndef PTHREAD_CREATE_DETACHED
21917 #define PTHREAD_CREATE_DETACHED 1
21921 int detach = PTHREAD_CREATE_DETACHED;
21923 #if HAVE_PTHREADS > 4
21924 /* Final pthreads */
21925 pthread_attr_t attr;
21927 status = pthread_attr_init(&attr);
21928 if( status ) return status;
21930 #if HAVE_PTHREADS < 7
21931 status = pthread_attr_setdetachstate(&attr, &detach);
21932 if( status < 0 ) status = errno;
21934 status = pthread_attr_setdetachstate(&attr, detach);
21936 if( status ) return status;
21937 status = pthread_create( &t, &attr, task, NULL );
21938 #if HAVE_PTHREADS < 7
21939 if( status < 0 ) status = errno;
21941 if( status ) return status;
21943 /* Draft 4 pthreads */
21944 status = pthread_create( &t, pthread_attr_default, task, NULL );
21945 if( status ) return errno;
21947 /* give thread a chance to complete */
21948 /* it should remain joinable and hence detachable */
21951 status = pthread_detach( &t );
21952 if( status ) return errno;
21955 #ifdef HAVE_LINUX_THREADS
21956 pthread_kill_other_threads_np();
21964 rm -f conftest$ac_exeext
21965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21966 (eval $ac_link) 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971 (eval $ac_try) 2>&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; }; then
21975 ol_cv_pthread_thread=yes
21977 echo "$as_me: program exited with status $ac_status" >&5
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ( exit $ac_status )
21982 ol_cv_pthread_thread=no
21984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21991 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21992 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21994 if test $ol_cv_pthread_thread = yes ; then
21995 ol_link_pthreads="-thread"
21996 ol_link_threads=posix
22001 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22002 if test "$ol_link_threads" = no ; then
22003 # try -lpthread -lmach -lexc -lc_r
22004 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22005 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
22006 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22012 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22014 if test "$cross_compiling" = yes; then
22015 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22022 /* pthread test headers */
22023 #include <pthread.h>
22024 #if HAVE_PTHREADS < 7
22028 #define NULL (void*)0
22031 static void *task(p)
22034 return (void *) (p == NULL);
22041 /* pthread test function */
22042 #ifndef PTHREAD_CREATE_DETACHED
22043 #define PTHREAD_CREATE_DETACHED 1
22047 int detach = PTHREAD_CREATE_DETACHED;
22049 #if HAVE_PTHREADS > 4
22050 /* Final pthreads */
22051 pthread_attr_t attr;
22053 status = pthread_attr_init(&attr);
22054 if( status ) return status;
22056 #if HAVE_PTHREADS < 7
22057 status = pthread_attr_setdetachstate(&attr, &detach);
22058 if( status < 0 ) status = errno;
22060 status = pthread_attr_setdetachstate(&attr, detach);
22062 if( status ) return status;
22063 status = pthread_create( &t, &attr, task, NULL );
22064 #if HAVE_PTHREADS < 7
22065 if( status < 0 ) status = errno;
22067 if( status ) return status;
22069 /* Draft 4 pthreads */
22070 status = pthread_create( &t, pthread_attr_default, task, NULL );
22071 if( status ) return errno;
22073 /* give thread a chance to complete */
22074 /* it should remain joinable and hence detachable */
22077 status = pthread_detach( &t );
22078 if( status ) return errno;
22081 #ifdef HAVE_LINUX_THREADS
22082 pthread_kill_other_threads_np();
22091 rm -f conftest.$ac_objext conftest$ac_exeext
22092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22093 (eval $ac_link) 2>conftest.er1
22095 grep -v '^ *+' conftest.er1 >conftest.err
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } &&
22100 { ac_try='test -z "$ac_c_werror_flag"
22101 || test ! -s conftest.err'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest$ac_exeext'
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22115 echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22120 rm -f conftest.err conftest.$ac_objext \
22121 conftest$ac_exeext conftest.$ac_ext
22123 cat >conftest.$ac_ext <<_ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h. */
22130 /* pthread test headers */
22131 #include <pthread.h>
22132 #if HAVE_PTHREADS < 7
22136 #define NULL (void*)0
22139 static void *task(p)
22142 return (void *) (p == NULL);
22146 int main(argc, argv)
22151 /* pthread test function */
22152 #ifndef PTHREAD_CREATE_DETACHED
22153 #define PTHREAD_CREATE_DETACHED 1
22157 int detach = PTHREAD_CREATE_DETACHED;
22159 #if HAVE_PTHREADS > 4
22160 /* Final pthreads */
22161 pthread_attr_t attr;
22163 status = pthread_attr_init(&attr);
22164 if( status ) return status;
22166 #if HAVE_PTHREADS < 7
22167 status = pthread_attr_setdetachstate(&attr, &detach);
22168 if( status < 0 ) status = errno;
22170 status = pthread_attr_setdetachstate(&attr, detach);
22172 if( status ) return status;
22173 status = pthread_create( &t, &attr, task, NULL );
22174 #if HAVE_PTHREADS < 7
22175 if( status < 0 ) status = errno;
22177 if( status ) return status;
22179 /* Draft 4 pthreads */
22180 status = pthread_create( &t, pthread_attr_default, task, NULL );
22181 if( status ) return errno;
22183 /* give thread a chance to complete */
22184 /* it should remain joinable and hence detachable */
22187 status = pthread_detach( &t );
22188 if( status ) return errno;
22191 #ifdef HAVE_LINUX_THREADS
22192 pthread_kill_other_threads_np();
22200 rm -f conftest$ac_exeext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22202 (eval $ac_link) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207 (eval $ac_try) 2>&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; }; then
22211 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22213 echo "$as_me: program exited with status $ac_status" >&5
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 ( exit $ac_status )
22218 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22227 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22228 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22230 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22231 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22232 ol_link_threads=posix
22236 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22237 if test "$ol_link_threads" = no ; then
22238 # try -lpthread -lmach -lexc
22239 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22240 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22241 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 LIBS="-lpthread -lmach -lexc $LIBS"
22249 if test "$cross_compiling" = yes; then
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22257 /* pthread test headers */
22258 #include <pthread.h>
22259 #if HAVE_PTHREADS < 7
22263 #define NULL (void*)0
22266 static void *task(p)
22269 return (void *) (p == NULL);
22276 /* pthread test function */
22277 #ifndef PTHREAD_CREATE_DETACHED
22278 #define PTHREAD_CREATE_DETACHED 1
22282 int detach = PTHREAD_CREATE_DETACHED;
22284 #if HAVE_PTHREADS > 4
22285 /* Final pthreads */
22286 pthread_attr_t attr;
22288 status = pthread_attr_init(&attr);
22289 if( status ) return status;
22291 #if HAVE_PTHREADS < 7
22292 status = pthread_attr_setdetachstate(&attr, &detach);
22293 if( status < 0 ) status = errno;
22295 status = pthread_attr_setdetachstate(&attr, detach);
22297 if( status ) return status;
22298 status = pthread_create( &t, &attr, task, NULL );
22299 #if HAVE_PTHREADS < 7
22300 if( status < 0 ) status = errno;
22302 if( status ) return status;
22304 /* Draft 4 pthreads */
22305 status = pthread_create( &t, pthread_attr_default, task, NULL );
22306 if( status ) return errno;
22308 /* give thread a chance to complete */
22309 /* it should remain joinable and hence detachable */
22312 status = pthread_detach( &t );
22313 if( status ) return errno;
22316 #ifdef HAVE_LINUX_THREADS
22317 pthread_kill_other_threads_np();
22326 rm -f conftest.$ac_objext conftest$ac_exeext
22327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22328 (eval $ac_link) 2>conftest.er1
22330 grep -v '^ *+' conftest.er1 >conftest.err
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } &&
22335 { ac_try='test -z "$ac_c_werror_flag"
22336 || test ! -s conftest.err'
22337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338 (eval $ac_try) 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; } &&
22342 { ac_try='test -s conftest$ac_exeext'
22343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344 (eval $ac_try) 2>&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); }; }; then
22348 ol_cv_pthread_lpthread_lmach_lexc=yes
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ol_cv_pthread_lpthread_lmach_lexc=no
22355 rm -f conftest.err conftest.$ac_objext \
22356 conftest$ac_exeext conftest.$ac_ext
22358 cat >conftest.$ac_ext <<_ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22365 /* pthread test headers */
22366 #include <pthread.h>
22367 #if HAVE_PTHREADS < 7
22371 #define NULL (void*)0
22374 static void *task(p)
22377 return (void *) (p == NULL);
22381 int main(argc, argv)
22386 /* pthread test function */
22387 #ifndef PTHREAD_CREATE_DETACHED
22388 #define PTHREAD_CREATE_DETACHED 1
22392 int detach = PTHREAD_CREATE_DETACHED;
22394 #if HAVE_PTHREADS > 4
22395 /* Final pthreads */
22396 pthread_attr_t attr;
22398 status = pthread_attr_init(&attr);
22399 if( status ) return status;
22401 #if HAVE_PTHREADS < 7
22402 status = pthread_attr_setdetachstate(&attr, &detach);
22403 if( status < 0 ) status = errno;
22405 status = pthread_attr_setdetachstate(&attr, detach);
22407 if( status ) return status;
22408 status = pthread_create( &t, &attr, task, NULL );
22409 #if HAVE_PTHREADS < 7
22410 if( status < 0 ) status = errno;
22412 if( status ) return status;
22414 /* Draft 4 pthreads */
22415 status = pthread_create( &t, pthread_attr_default, task, NULL );
22416 if( status ) return errno;
22418 /* give thread a chance to complete */
22419 /* it should remain joinable and hence detachable */
22422 status = pthread_detach( &t );
22423 if( status ) return errno;
22426 #ifdef HAVE_LINUX_THREADS
22427 pthread_kill_other_threads_np();
22435 rm -f conftest$ac_exeext
22436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22437 (eval $ac_link) 2>&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; }; then
22446 ol_cv_pthread_lpthread_lmach_lexc=yes
22448 echo "$as_me: program exited with status $ac_status" >&5
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 ( exit $ac_status )
22453 ol_cv_pthread_lpthread_lmach_lexc=no
22455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22462 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22463 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22465 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22466 ol_link_pthreads="-lpthread -lmach -lexc"
22467 ol_link_threads=posix
22472 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22473 if test "$ol_link_threads" = no ; then
22474 # try -lpthread -Wl,-woff,85
22475 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22476 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22477 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22478 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22485 if test "$cross_compiling" = yes; then
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22493 /* pthread test headers */
22494 #include <pthread.h>
22495 #if HAVE_PTHREADS < 7
22499 #define NULL (void*)0
22502 static void *task(p)
22505 return (void *) (p == NULL);
22512 /* pthread test function */
22513 #ifndef PTHREAD_CREATE_DETACHED
22514 #define PTHREAD_CREATE_DETACHED 1
22518 int detach = PTHREAD_CREATE_DETACHED;
22520 #if HAVE_PTHREADS > 4
22521 /* Final pthreads */
22522 pthread_attr_t attr;
22524 status = pthread_attr_init(&attr);
22525 if( status ) return status;
22527 #if HAVE_PTHREADS < 7
22528 status = pthread_attr_setdetachstate(&attr, &detach);
22529 if( status < 0 ) status = errno;
22531 status = pthread_attr_setdetachstate(&attr, detach);
22533 if( status ) return status;
22534 status = pthread_create( &t, &attr, task, NULL );
22535 #if HAVE_PTHREADS < 7
22536 if( status < 0 ) status = errno;
22538 if( status ) return status;
22540 /* Draft 4 pthreads */
22541 status = pthread_create( &t, pthread_attr_default, task, NULL );
22542 if( status ) return errno;
22544 /* give thread a chance to complete */
22545 /* it should remain joinable and hence detachable */
22548 status = pthread_detach( &t );
22549 if( status ) return errno;
22552 #ifdef HAVE_LINUX_THREADS
22553 pthread_kill_other_threads_np();
22562 rm -f conftest.$ac_objext conftest$ac_exeext
22563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22564 (eval $ac_link) 2>conftest.er1
22566 grep -v '^ *+' conftest.er1 >conftest.err
22568 cat conftest.err >&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } &&
22571 { ac_try='test -z "$ac_c_werror_flag"
22572 || test ! -s conftest.err'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; } &&
22578 { ac_try='test -s conftest$ac_exeext'
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; }; then
22584 ol_cv_pthread_lib_lpthread_woff=yes
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ol_cv_pthread_lib_lpthread_woff=no
22591 rm -f conftest.err conftest.$ac_objext \
22592 conftest$ac_exeext conftest.$ac_ext
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22601 /* pthread test headers */
22602 #include <pthread.h>
22603 #if HAVE_PTHREADS < 7
22607 #define NULL (void*)0
22610 static void *task(p)
22613 return (void *) (p == NULL);
22617 int main(argc, argv)
22622 /* pthread test function */
22623 #ifndef PTHREAD_CREATE_DETACHED
22624 #define PTHREAD_CREATE_DETACHED 1
22628 int detach = PTHREAD_CREATE_DETACHED;
22630 #if HAVE_PTHREADS > 4
22631 /* Final pthreads */
22632 pthread_attr_t attr;
22634 status = pthread_attr_init(&attr);
22635 if( status ) return status;
22637 #if HAVE_PTHREADS < 7
22638 status = pthread_attr_setdetachstate(&attr, &detach);
22639 if( status < 0 ) status = errno;
22641 status = pthread_attr_setdetachstate(&attr, detach);
22643 if( status ) return status;
22644 status = pthread_create( &t, &attr, task, NULL );
22645 #if HAVE_PTHREADS < 7
22646 if( status < 0 ) status = errno;
22648 if( status ) return status;
22650 /* Draft 4 pthreads */
22651 status = pthread_create( &t, pthread_attr_default, task, NULL );
22652 if( status ) return errno;
22654 /* give thread a chance to complete */
22655 /* it should remain joinable and hence detachable */
22658 status = pthread_detach( &t );
22659 if( status ) return errno;
22662 #ifdef HAVE_LINUX_THREADS
22663 pthread_kill_other_threads_np();
22671 rm -f conftest$ac_exeext
22672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22673 (eval $ac_link) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; }; then
22682 ol_cv_pthread_lib_lpthread_woff=yes
22684 echo "$as_me: program exited with status $ac_status" >&5
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22688 ( exit $ac_status )
22689 ol_cv_pthread_lib_lpthread_woff=no
22691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22698 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22699 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22701 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22702 ol_link_pthreads="-lpthread -Wl,-woff,85"
22703 ol_link_threads=posix
22708 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22709 if test "$ol_link_threads" = no ; then
22711 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22712 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22713 if test "${ol_cv_pthread_lpthread+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 LIBS="-lpthread $LIBS"
22721 if test "$cross_compiling" = yes; then
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22729 /* pthread test headers */
22730 #include <pthread.h>
22731 #if HAVE_PTHREADS < 7
22735 #define NULL (void*)0
22738 static void *task(p)
22741 return (void *) (p == NULL);
22748 /* pthread test function */
22749 #ifndef PTHREAD_CREATE_DETACHED
22750 #define PTHREAD_CREATE_DETACHED 1
22754 int detach = PTHREAD_CREATE_DETACHED;
22756 #if HAVE_PTHREADS > 4
22757 /* Final pthreads */
22758 pthread_attr_t attr;
22760 status = pthread_attr_init(&attr);
22761 if( status ) return status;
22763 #if HAVE_PTHREADS < 7
22764 status = pthread_attr_setdetachstate(&attr, &detach);
22765 if( status < 0 ) status = errno;
22767 status = pthread_attr_setdetachstate(&attr, detach);
22769 if( status ) return status;
22770 status = pthread_create( &t, &attr, task, NULL );
22771 #if HAVE_PTHREADS < 7
22772 if( status < 0 ) status = errno;
22774 if( status ) return status;
22776 /* Draft 4 pthreads */
22777 status = pthread_create( &t, pthread_attr_default, task, NULL );
22778 if( status ) return errno;
22780 /* give thread a chance to complete */
22781 /* it should remain joinable and hence detachable */
22784 status = pthread_detach( &t );
22785 if( status ) return errno;
22788 #ifdef HAVE_LINUX_THREADS
22789 pthread_kill_other_threads_np();
22798 rm -f conftest.$ac_objext conftest$ac_exeext
22799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>conftest.er1
22802 grep -v '^ *+' conftest.er1 >conftest.err
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } &&
22807 { ac_try='test -z "$ac_c_werror_flag"
22808 || test ! -s conftest.err'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try='test -s conftest$ac_exeext'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 ol_cv_pthread_lpthread=yes
22822 echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22825 ol_cv_pthread_lpthread=no
22827 rm -f conftest.err conftest.$ac_objext \
22828 conftest$ac_exeext conftest.$ac_ext
22830 cat >conftest.$ac_ext <<_ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22837 /* pthread test headers */
22838 #include <pthread.h>
22839 #if HAVE_PTHREADS < 7
22843 #define NULL (void*)0
22846 static void *task(p)
22849 return (void *) (p == NULL);
22853 int main(argc, argv)
22858 /* pthread test function */
22859 #ifndef PTHREAD_CREATE_DETACHED
22860 #define PTHREAD_CREATE_DETACHED 1
22864 int detach = PTHREAD_CREATE_DETACHED;
22866 #if HAVE_PTHREADS > 4
22867 /* Final pthreads */
22868 pthread_attr_t attr;
22870 status = pthread_attr_init(&attr);
22871 if( status ) return status;
22873 #if HAVE_PTHREADS < 7
22874 status = pthread_attr_setdetachstate(&attr, &detach);
22875 if( status < 0 ) status = errno;
22877 status = pthread_attr_setdetachstate(&attr, detach);
22879 if( status ) return status;
22880 status = pthread_create( &t, &attr, task, NULL );
22881 #if HAVE_PTHREADS < 7
22882 if( status < 0 ) status = errno;
22884 if( status ) return status;
22886 /* Draft 4 pthreads */
22887 status = pthread_create( &t, pthread_attr_default, task, NULL );
22888 if( status ) return errno;
22890 /* give thread a chance to complete */
22891 /* it should remain joinable and hence detachable */
22894 status = pthread_detach( &t );
22895 if( status ) return errno;
22898 #ifdef HAVE_LINUX_THREADS
22899 pthread_kill_other_threads_np();
22907 rm -f conftest$ac_exeext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22909 (eval $ac_link) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ol_cv_pthread_lpthread=yes
22920 echo "$as_me: program exited with status $ac_status" >&5
22921 echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22924 ( exit $ac_status )
22925 ol_cv_pthread_lpthread=no
22927 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22934 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22935 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22937 if test $ol_cv_pthread_lpthread = yes ; then
22938 ol_link_pthreads="-lpthread"
22939 ol_link_threads=posix
22943 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22944 if test "$ol_link_threads" = no ; then
22946 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22947 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22948 if test "${ol_cv_pthread_lc_r+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22956 if test "$cross_compiling" = yes; then
22957 cat >conftest.$ac_ext <<_ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22964 /* pthread test headers */
22965 #include <pthread.h>
22966 #if HAVE_PTHREADS < 7
22970 #define NULL (void*)0
22973 static void *task(p)
22976 return (void *) (p == NULL);
22983 /* pthread test function */
22984 #ifndef PTHREAD_CREATE_DETACHED
22985 #define PTHREAD_CREATE_DETACHED 1
22989 int detach = PTHREAD_CREATE_DETACHED;
22991 #if HAVE_PTHREADS > 4
22992 /* Final pthreads */
22993 pthread_attr_t attr;
22995 status = pthread_attr_init(&attr);
22996 if( status ) return status;
22998 #if HAVE_PTHREADS < 7
22999 status = pthread_attr_setdetachstate(&attr, &detach);
23000 if( status < 0 ) status = errno;
23002 status = pthread_attr_setdetachstate(&attr, detach);
23004 if( status ) return status;
23005 status = pthread_create( &t, &attr, task, NULL );
23006 #if HAVE_PTHREADS < 7
23007 if( status < 0 ) status = errno;
23009 if( status ) return status;
23011 /* Draft 4 pthreads */
23012 status = pthread_create( &t, pthread_attr_default, task, NULL );
23013 if( status ) return errno;
23015 /* give thread a chance to complete */
23016 /* it should remain joinable and hence detachable */
23019 status = pthread_detach( &t );
23020 if( status ) return errno;
23023 #ifdef HAVE_LINUX_THREADS
23024 pthread_kill_other_threads_np();
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035 (eval $ac_link) 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } &&
23042 { ac_try='test -z "$ac_c_werror_flag"
23043 || test ! -s conftest.err'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; } &&
23049 { ac_try='test -s conftest$ac_exeext'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; }; then
23055 ol_cv_pthread_lc_r=yes
23057 echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23060 ol_cv_pthread_lc_r=no
23062 rm -f conftest.err conftest.$ac_objext \
23063 conftest$ac_exeext conftest.$ac_ext
23065 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23072 /* pthread test headers */
23073 #include <pthread.h>
23074 #if HAVE_PTHREADS < 7
23078 #define NULL (void*)0
23081 static void *task(p)
23084 return (void *) (p == NULL);
23088 int main(argc, argv)
23093 /* pthread test function */
23094 #ifndef PTHREAD_CREATE_DETACHED
23095 #define PTHREAD_CREATE_DETACHED 1
23099 int detach = PTHREAD_CREATE_DETACHED;
23101 #if HAVE_PTHREADS > 4
23102 /* Final pthreads */
23103 pthread_attr_t attr;
23105 status = pthread_attr_init(&attr);
23106 if( status ) return status;
23108 #if HAVE_PTHREADS < 7
23109 status = pthread_attr_setdetachstate(&attr, &detach);
23110 if( status < 0 ) status = errno;
23112 status = pthread_attr_setdetachstate(&attr, detach);
23114 if( status ) return status;
23115 status = pthread_create( &t, &attr, task, NULL );
23116 #if HAVE_PTHREADS < 7
23117 if( status < 0 ) status = errno;
23119 if( status ) return status;
23121 /* Draft 4 pthreads */
23122 status = pthread_create( &t, pthread_attr_default, task, NULL );
23123 if( status ) return errno;
23125 /* give thread a chance to complete */
23126 /* it should remain joinable and hence detachable */
23129 status = pthread_detach( &t );
23130 if( status ) return errno;
23133 #ifdef HAVE_LINUX_THREADS
23134 pthread_kill_other_threads_np();
23142 rm -f conftest$ac_exeext
23143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23144 (eval $ac_link) 2>&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; }; then
23153 ol_cv_pthread_lc_r=yes
23155 echo "$as_me: program exited with status $ac_status" >&5
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23159 ( exit $ac_status )
23160 ol_cv_pthread_lc_r=no
23162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23169 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23170 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23172 if test $ol_cv_pthread_lc_r = yes ; then
23173 ol_link_pthreads="-lc_r"
23174 ol_link_threads=posix
23179 # Pthread try link: -threads (ol_cv_pthread_threads)
23180 if test "$ol_link_threads" = no ; then
23182 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23183 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23184 if test "${ol_cv_pthread_threads+set}" = set; then
23185 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 LIBS="-threads $LIBS"
23192 if test "$cross_compiling" = yes; then
23193 cat >conftest.$ac_ext <<_ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h. */
23200 /* pthread test headers */
23201 #include <pthread.h>
23202 #if HAVE_PTHREADS < 7
23206 #define NULL (void*)0
23209 static void *task(p)
23212 return (void *) (p == NULL);
23219 /* pthread test function */
23220 #ifndef PTHREAD_CREATE_DETACHED
23221 #define PTHREAD_CREATE_DETACHED 1
23225 int detach = PTHREAD_CREATE_DETACHED;
23227 #if HAVE_PTHREADS > 4
23228 /* Final pthreads */
23229 pthread_attr_t attr;
23231 status = pthread_attr_init(&attr);
23232 if( status ) return status;
23234 #if HAVE_PTHREADS < 7
23235 status = pthread_attr_setdetachstate(&attr, &detach);
23236 if( status < 0 ) status = errno;
23238 status = pthread_attr_setdetachstate(&attr, detach);
23240 if( status ) return status;
23241 status = pthread_create( &t, &attr, task, NULL );
23242 #if HAVE_PTHREADS < 7
23243 if( status < 0 ) status = errno;
23245 if( status ) return status;
23247 /* Draft 4 pthreads */
23248 status = pthread_create( &t, pthread_attr_default, task, NULL );
23249 if( status ) return errno;
23251 /* give thread a chance to complete */
23252 /* it should remain joinable and hence detachable */
23255 status = pthread_detach( &t );
23256 if( status ) return errno;
23259 #ifdef HAVE_LINUX_THREADS
23260 pthread_kill_other_threads_np();
23269 rm -f conftest.$ac_objext conftest$ac_exeext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23271 (eval $ac_link) 2>conftest.er1
23273 grep -v '^ *+' conftest.er1 >conftest.err
23275 cat conftest.err >&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } &&
23278 { ac_try='test -z "$ac_c_werror_flag"
23279 || test ! -s conftest.err'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; } &&
23285 { ac_try='test -s conftest$ac_exeext'
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 ol_cv_pthread_threads=yes
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ol_cv_pthread_threads=no
23298 rm -f conftest.err conftest.$ac_objext \
23299 conftest$ac_exeext conftest.$ac_ext
23301 cat >conftest.$ac_ext <<_ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23308 /* pthread test headers */
23309 #include <pthread.h>
23310 #if HAVE_PTHREADS < 7
23314 #define NULL (void*)0
23317 static void *task(p)
23320 return (void *) (p == NULL);
23324 int main(argc, argv)
23329 /* pthread test function */
23330 #ifndef PTHREAD_CREATE_DETACHED
23331 #define PTHREAD_CREATE_DETACHED 1
23335 int detach = PTHREAD_CREATE_DETACHED;
23337 #if HAVE_PTHREADS > 4
23338 /* Final pthreads */
23339 pthread_attr_t attr;
23341 status = pthread_attr_init(&attr);
23342 if( status ) return status;
23344 #if HAVE_PTHREADS < 7
23345 status = pthread_attr_setdetachstate(&attr, &detach);
23346 if( status < 0 ) status = errno;
23348 status = pthread_attr_setdetachstate(&attr, detach);
23350 if( status ) return status;
23351 status = pthread_create( &t, &attr, task, NULL );
23352 #if HAVE_PTHREADS < 7
23353 if( status < 0 ) status = errno;
23355 if( status ) return status;
23357 /* Draft 4 pthreads */
23358 status = pthread_create( &t, pthread_attr_default, task, NULL );
23359 if( status ) return errno;
23361 /* give thread a chance to complete */
23362 /* it should remain joinable and hence detachable */
23365 status = pthread_detach( &t );
23366 if( status ) return errno;
23369 #ifdef HAVE_LINUX_THREADS
23370 pthread_kill_other_threads_np();
23378 rm -f conftest$ac_exeext
23379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23380 (eval $ac_link) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385 (eval $ac_try) 2>&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }; }; then
23389 ol_cv_pthread_threads=yes
23391 echo "$as_me: program exited with status $ac_status" >&5
23392 echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23395 ( exit $ac_status )
23396 ol_cv_pthread_threads=no
23398 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23405 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23406 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23408 if test $ol_cv_pthread_threads = yes ; then
23409 ol_link_pthreads="-threads"
23410 ol_link_threads=posix
23415 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23416 if test "$ol_link_threads" = no ; then
23417 # try -lpthreads -lmach -lexc -lc_r
23418 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23419 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23420 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23428 if test "$cross_compiling" = yes; then
23429 cat >conftest.$ac_ext <<_ACEOF
23432 cat confdefs.h >>conftest.$ac_ext
23433 cat >>conftest.$ac_ext <<_ACEOF
23434 /* end confdefs.h. */
23436 /* pthread test headers */
23437 #include <pthread.h>
23438 #if HAVE_PTHREADS < 7
23442 #define NULL (void*)0
23445 static void *task(p)
23448 return (void *) (p == NULL);
23455 /* pthread test function */
23456 #ifndef PTHREAD_CREATE_DETACHED
23457 #define PTHREAD_CREATE_DETACHED 1
23461 int detach = PTHREAD_CREATE_DETACHED;
23463 #if HAVE_PTHREADS > 4
23464 /* Final pthreads */
23465 pthread_attr_t attr;
23467 status = pthread_attr_init(&attr);
23468 if( status ) return status;
23470 #if HAVE_PTHREADS < 7
23471 status = pthread_attr_setdetachstate(&attr, &detach);
23472 if( status < 0 ) status = errno;
23474 status = pthread_attr_setdetachstate(&attr, detach);
23476 if( status ) return status;
23477 status = pthread_create( &t, &attr, task, NULL );
23478 #if HAVE_PTHREADS < 7
23479 if( status < 0 ) status = errno;
23481 if( status ) return status;
23483 /* Draft 4 pthreads */
23484 status = pthread_create( &t, pthread_attr_default, task, NULL );
23485 if( status ) return errno;
23487 /* give thread a chance to complete */
23488 /* it should remain joinable and hence detachable */
23491 status = pthread_detach( &t );
23492 if( status ) return errno;
23495 #ifdef HAVE_LINUX_THREADS
23496 pthread_kill_other_threads_np();
23505 rm -f conftest.$ac_objext conftest$ac_exeext
23506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23507 (eval $ac_link) 2>conftest.er1
23509 grep -v '^ *+' conftest.er1 >conftest.err
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
23514 { ac_try='test -z "$ac_c_werror_flag"
23515 || test ! -s conftest.err'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; } &&
23521 { ac_try='test -s conftest$ac_exeext'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
23527 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23529 echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23534 rm -f conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
23537 cat >conftest.$ac_ext <<_ACEOF
23540 cat confdefs.h >>conftest.$ac_ext
23541 cat >>conftest.$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23544 /* pthread test headers */
23545 #include <pthread.h>
23546 #if HAVE_PTHREADS < 7
23550 #define NULL (void*)0
23553 static void *task(p)
23556 return (void *) (p == NULL);
23560 int main(argc, argv)
23565 /* pthread test function */
23566 #ifndef PTHREAD_CREATE_DETACHED
23567 #define PTHREAD_CREATE_DETACHED 1
23571 int detach = PTHREAD_CREATE_DETACHED;
23573 #if HAVE_PTHREADS > 4
23574 /* Final pthreads */
23575 pthread_attr_t attr;
23577 status = pthread_attr_init(&attr);
23578 if( status ) return status;
23580 #if HAVE_PTHREADS < 7
23581 status = pthread_attr_setdetachstate(&attr, &detach);
23582 if( status < 0 ) status = errno;
23584 status = pthread_attr_setdetachstate(&attr, detach);
23586 if( status ) return status;
23587 status = pthread_create( &t, &attr, task, NULL );
23588 #if HAVE_PTHREADS < 7
23589 if( status < 0 ) status = errno;
23591 if( status ) return status;
23593 /* Draft 4 pthreads */
23594 status = pthread_create( &t, pthread_attr_default, task, NULL );
23595 if( status ) return errno;
23597 /* give thread a chance to complete */
23598 /* it should remain joinable and hence detachable */
23601 status = pthread_detach( &t );
23602 if( status ) return errno;
23605 #ifdef HAVE_LINUX_THREADS
23606 pthread_kill_other_threads_np();
23614 rm -f conftest$ac_exeext
23615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23616 (eval $ac_link) 2>&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621 (eval $ac_try) 2>&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; }; then
23625 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23627 echo "$as_me: program exited with status $ac_status" >&5
23628 echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23631 ( exit $ac_status )
23632 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23641 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23642 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23644 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23645 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23646 ol_link_threads=posix
23650 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23651 if test "$ol_link_threads" = no ; then
23652 # try -lpthreads -lmach -lexc
23653 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23654 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23655 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23656 echo $ECHO_N "(cached) $ECHO_C" >&6
23661 LIBS="-lpthreads -lmach -lexc $LIBS"
23663 if test "$cross_compiling" = yes; then
23664 cat >conftest.$ac_ext <<_ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23671 /* pthread test headers */
23672 #include <pthread.h>
23673 #if HAVE_PTHREADS < 7
23677 #define NULL (void*)0
23680 static void *task(p)
23683 return (void *) (p == NULL);
23690 /* pthread test function */
23691 #ifndef PTHREAD_CREATE_DETACHED
23692 #define PTHREAD_CREATE_DETACHED 1
23696 int detach = PTHREAD_CREATE_DETACHED;
23698 #if HAVE_PTHREADS > 4
23699 /* Final pthreads */
23700 pthread_attr_t attr;
23702 status = pthread_attr_init(&attr);
23703 if( status ) return status;
23705 #if HAVE_PTHREADS < 7
23706 status = pthread_attr_setdetachstate(&attr, &detach);
23707 if( status < 0 ) status = errno;
23709 status = pthread_attr_setdetachstate(&attr, detach);
23711 if( status ) return status;
23712 status = pthread_create( &t, &attr, task, NULL );
23713 #if HAVE_PTHREADS < 7
23714 if( status < 0 ) status = errno;
23716 if( status ) return status;
23718 /* Draft 4 pthreads */
23719 status = pthread_create( &t, pthread_attr_default, task, NULL );
23720 if( status ) return errno;
23722 /* give thread a chance to complete */
23723 /* it should remain joinable and hence detachable */
23726 status = pthread_detach( &t );
23727 if( status ) return errno;
23730 #ifdef HAVE_LINUX_THREADS
23731 pthread_kill_other_threads_np();
23740 rm -f conftest.$ac_objext conftest$ac_exeext
23741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23742 (eval $ac_link) 2>conftest.er1
23744 grep -v '^ *+' conftest.er1 >conftest.err
23746 cat conftest.err >&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } &&
23749 { ac_try='test -z "$ac_c_werror_flag"
23750 || test ! -s conftest.err'
23751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); }; } &&
23756 { ac_try='test -s conftest$ac_exeext'
23757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758 (eval $ac_try) 2>&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); }; }; then
23762 ol_cv_pthread_lpthreads_lmach_lexc=yes
23764 echo "$as_me: failed program was:" >&5
23765 sed 's/^/| /' conftest.$ac_ext >&5
23767 ol_cv_pthread_lpthreads_lmach_lexc=no
23769 rm -f conftest.err conftest.$ac_objext \
23770 conftest$ac_exeext conftest.$ac_ext
23772 cat >conftest.$ac_ext <<_ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h. */
23779 /* pthread test headers */
23780 #include <pthread.h>
23781 #if HAVE_PTHREADS < 7
23785 #define NULL (void*)0
23788 static void *task(p)
23791 return (void *) (p == NULL);
23795 int main(argc, argv)
23800 /* pthread test function */
23801 #ifndef PTHREAD_CREATE_DETACHED
23802 #define PTHREAD_CREATE_DETACHED 1
23806 int detach = PTHREAD_CREATE_DETACHED;
23808 #if HAVE_PTHREADS > 4
23809 /* Final pthreads */
23810 pthread_attr_t attr;
23812 status = pthread_attr_init(&attr);
23813 if( status ) return status;
23815 #if HAVE_PTHREADS < 7
23816 status = pthread_attr_setdetachstate(&attr, &detach);
23817 if( status < 0 ) status = errno;
23819 status = pthread_attr_setdetachstate(&attr, detach);
23821 if( status ) return status;
23822 status = pthread_create( &t, &attr, task, NULL );
23823 #if HAVE_PTHREADS < 7
23824 if( status < 0 ) status = errno;
23826 if( status ) return status;
23828 /* Draft 4 pthreads */
23829 status = pthread_create( &t, pthread_attr_default, task, NULL );
23830 if( status ) return errno;
23832 /* give thread a chance to complete */
23833 /* it should remain joinable and hence detachable */
23836 status = pthread_detach( &t );
23837 if( status ) return errno;
23840 #ifdef HAVE_LINUX_THREADS
23841 pthread_kill_other_threads_np();
23849 rm -f conftest$ac_exeext
23850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23851 (eval $ac_link) 2>&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23856 (eval $ac_try) 2>&5
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); }; }; then
23860 ol_cv_pthread_lpthreads_lmach_lexc=yes
23862 echo "$as_me: program exited with status $ac_status" >&5
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 ( exit $ac_status )
23867 ol_cv_pthread_lpthreads_lmach_lexc=no
23869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23876 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23877 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23879 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23880 ol_link_pthreads="-lpthreads -lmach -lexc"
23881 ol_link_threads=posix
23885 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23886 if test "$ol_link_threads" = no ; then
23887 # try -lpthreads -lexc
23888 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23889 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23890 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23891 echo $ECHO_N "(cached) $ECHO_C" >&6
23896 LIBS="-lpthreads -lexc $LIBS"
23898 if test "$cross_compiling" = yes; then
23899 cat >conftest.$ac_ext <<_ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h. */
23906 /* pthread test headers */
23907 #include <pthread.h>
23908 #if HAVE_PTHREADS < 7
23912 #define NULL (void*)0
23915 static void *task(p)
23918 return (void *) (p == NULL);
23925 /* pthread test function */
23926 #ifndef PTHREAD_CREATE_DETACHED
23927 #define PTHREAD_CREATE_DETACHED 1
23931 int detach = PTHREAD_CREATE_DETACHED;
23933 #if HAVE_PTHREADS > 4
23934 /* Final pthreads */
23935 pthread_attr_t attr;
23937 status = pthread_attr_init(&attr);
23938 if( status ) return status;
23940 #if HAVE_PTHREADS < 7
23941 status = pthread_attr_setdetachstate(&attr, &detach);
23942 if( status < 0 ) status = errno;
23944 status = pthread_attr_setdetachstate(&attr, detach);
23946 if( status ) return status;
23947 status = pthread_create( &t, &attr, task, NULL );
23948 #if HAVE_PTHREADS < 7
23949 if( status < 0 ) status = errno;
23951 if( status ) return status;
23953 /* Draft 4 pthreads */
23954 status = pthread_create( &t, pthread_attr_default, task, NULL );
23955 if( status ) return errno;
23957 /* give thread a chance to complete */
23958 /* it should remain joinable and hence detachable */
23961 status = pthread_detach( &t );
23962 if( status ) return errno;
23965 #ifdef HAVE_LINUX_THREADS
23966 pthread_kill_other_threads_np();
23975 rm -f conftest.$ac_objext conftest$ac_exeext
23976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23977 (eval $ac_link) 2>conftest.er1
23979 grep -v '^ *+' conftest.er1 >conftest.err
23981 cat conftest.err >&5
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); } &&
23984 { ac_try='test -z "$ac_c_werror_flag"
23985 || test ! -s conftest.err'
23986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987 (eval $ac_try) 2>&5
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; } &&
23991 { ac_try='test -s conftest$ac_exeext'
23992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23993 (eval $ac_try) 2>&5
23995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996 (exit $ac_status); }; }; then
23997 ol_cv_pthread_lpthreads_lexc=yes
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24002 ol_cv_pthread_lpthreads_lexc=no
24004 rm -f conftest.err conftest.$ac_objext \
24005 conftest$ac_exeext conftest.$ac_ext
24007 cat >conftest.$ac_ext <<_ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24014 /* pthread test headers */
24015 #include <pthread.h>
24016 #if HAVE_PTHREADS < 7
24020 #define NULL (void*)0
24023 static void *task(p)
24026 return (void *) (p == NULL);
24030 int main(argc, argv)
24035 /* pthread test function */
24036 #ifndef PTHREAD_CREATE_DETACHED
24037 #define PTHREAD_CREATE_DETACHED 1
24041 int detach = PTHREAD_CREATE_DETACHED;
24043 #if HAVE_PTHREADS > 4
24044 /* Final pthreads */
24045 pthread_attr_t attr;
24047 status = pthread_attr_init(&attr);
24048 if( status ) return status;
24050 #if HAVE_PTHREADS < 7
24051 status = pthread_attr_setdetachstate(&attr, &detach);
24052 if( status < 0 ) status = errno;
24054 status = pthread_attr_setdetachstate(&attr, detach);
24056 if( status ) return status;
24057 status = pthread_create( &t, &attr, task, NULL );
24058 #if HAVE_PTHREADS < 7
24059 if( status < 0 ) status = errno;
24061 if( status ) return status;
24063 /* Draft 4 pthreads */
24064 status = pthread_create( &t, pthread_attr_default, task, NULL );
24065 if( status ) return errno;
24067 /* give thread a chance to complete */
24068 /* it should remain joinable and hence detachable */
24071 status = pthread_detach( &t );
24072 if( status ) return errno;
24075 #ifdef HAVE_LINUX_THREADS
24076 pthread_kill_other_threads_np();
24084 rm -f conftest$ac_exeext
24085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24086 (eval $ac_link) 2>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091 (eval $ac_try) 2>&5
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); }; }; then
24095 ol_cv_pthread_lpthreads_lexc=yes
24097 echo "$as_me: program exited with status $ac_status" >&5
24098 echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24101 ( exit $ac_status )
24102 ol_cv_pthread_lpthreads_lexc=no
24104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24111 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24112 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24114 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24115 ol_link_pthreads="-lpthreads -lexc"
24116 ol_link_threads=posix
24121 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24122 if test "$ol_link_threads" = no ; then
24124 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24125 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24126 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
24132 LIBS="-lpthreads $LIBS"
24134 if test "$cross_compiling" = yes; then
24135 cat >conftest.$ac_ext <<_ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24142 /* pthread test headers */
24143 #include <pthread.h>
24144 #if HAVE_PTHREADS < 7
24148 #define NULL (void*)0
24151 static void *task(p)
24154 return (void *) (p == NULL);
24161 /* pthread test function */
24162 #ifndef PTHREAD_CREATE_DETACHED
24163 #define PTHREAD_CREATE_DETACHED 1
24167 int detach = PTHREAD_CREATE_DETACHED;
24169 #if HAVE_PTHREADS > 4
24170 /* Final pthreads */
24171 pthread_attr_t attr;
24173 status = pthread_attr_init(&attr);
24174 if( status ) return status;
24176 #if HAVE_PTHREADS < 7
24177 status = pthread_attr_setdetachstate(&attr, &detach);
24178 if( status < 0 ) status = errno;
24180 status = pthread_attr_setdetachstate(&attr, detach);
24182 if( status ) return status;
24183 status = pthread_create( &t, &attr, task, NULL );
24184 #if HAVE_PTHREADS < 7
24185 if( status < 0 ) status = errno;
24187 if( status ) return status;
24189 /* Draft 4 pthreads */
24190 status = pthread_create( &t, pthread_attr_default, task, NULL );
24191 if( status ) return errno;
24193 /* give thread a chance to complete */
24194 /* it should remain joinable and hence detachable */
24197 status = pthread_detach( &t );
24198 if( status ) return errno;
24201 #ifdef HAVE_LINUX_THREADS
24202 pthread_kill_other_threads_np();
24211 rm -f conftest.$ac_objext conftest$ac_exeext
24212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24213 (eval $ac_link) 2>conftest.er1
24215 grep -v '^ *+' conftest.er1 >conftest.err
24217 cat conftest.err >&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } &&
24220 { ac_try='test -z "$ac_c_werror_flag"
24221 || test ! -s conftest.err'
24222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223 (eval $ac_try) 2>&5
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); }; } &&
24227 { ac_try='test -s conftest$ac_exeext'
24228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229 (eval $ac_try) 2>&5
24231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232 (exit $ac_status); }; }; then
24233 ol_cv_pthread_lib_lpthreads=yes
24235 echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24238 ol_cv_pthread_lib_lpthreads=no
24240 rm -f conftest.err conftest.$ac_objext \
24241 conftest$ac_exeext conftest.$ac_ext
24243 cat >conftest.$ac_ext <<_ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h. */
24250 /* pthread test headers */
24251 #include <pthread.h>
24252 #if HAVE_PTHREADS < 7
24256 #define NULL (void*)0
24259 static void *task(p)
24262 return (void *) (p == NULL);
24266 int main(argc, argv)
24271 /* pthread test function */
24272 #ifndef PTHREAD_CREATE_DETACHED
24273 #define PTHREAD_CREATE_DETACHED 1
24277 int detach = PTHREAD_CREATE_DETACHED;
24279 #if HAVE_PTHREADS > 4
24280 /* Final pthreads */
24281 pthread_attr_t attr;
24283 status = pthread_attr_init(&attr);
24284 if( status ) return status;
24286 #if HAVE_PTHREADS < 7
24287 status = pthread_attr_setdetachstate(&attr, &detach);
24288 if( status < 0 ) status = errno;
24290 status = pthread_attr_setdetachstate(&attr, detach);
24292 if( status ) return status;
24293 status = pthread_create( &t, &attr, task, NULL );
24294 #if HAVE_PTHREADS < 7
24295 if( status < 0 ) status = errno;
24297 if( status ) return status;
24299 /* Draft 4 pthreads */
24300 status = pthread_create( &t, pthread_attr_default, task, NULL );
24301 if( status ) return errno;
24303 /* give thread a chance to complete */
24304 /* it should remain joinable and hence detachable */
24307 status = pthread_detach( &t );
24308 if( status ) return errno;
24311 #ifdef HAVE_LINUX_THREADS
24312 pthread_kill_other_threads_np();
24320 rm -f conftest$ac_exeext
24321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24322 (eval $ac_link) 2>&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331 ol_cv_pthread_lib_lpthreads=yes
24333 echo "$as_me: program exited with status $ac_status" >&5
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24337 ( exit $ac_status )
24338 ol_cv_pthread_lib_lpthreads=no
24340 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24347 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24348 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24350 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24351 ol_link_pthreads="-lpthreads"
24352 ol_link_threads=posix
24357 if test $ol_link_threads != no ; then
24358 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24360 save_CPPFLAGS="$CPPFLAGS"
24362 LIBS="$LTHREAD_LIBS $LIBS"
24367 for ac_func in sched_yield pthread_yield thr_yield
24369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24370 echo "$as_me:$LINENO: checking for $ac_func" >&5
24371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24372 if eval "test \"\${$as_ac_var+set}\" = set"; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24383 #define $ac_func innocuous_$ac_func
24385 /* System header to define __stub macros and hopefully few prototypes,
24386 which can conflict with char $ac_func (); below.
24387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24388 <limits.h> exists even on freestanding compilers. */
24391 # include <limits.h>
24393 # include <assert.h>
24398 /* Override any gcc2 internal prototype to avoid an error. */
24403 /* We use char because int might match the return type of a gcc2
24404 builtin and then its argument prototype would still apply. */
24406 /* The GNU C library defines this for functions which it implements
24407 to always fail with ENOSYS. Some functions are actually named
24408 something starting with __ and the normal name is an alias. */
24409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24412 char (*f) () = $ac_func;
24421 return f != $ac_func;
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24428 (eval $ac_link) 2>conftest.er1
24430 grep -v '^ *+' conftest.er1 >conftest.err
24432 cat conftest.err >&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } &&
24435 { ac_try='test -z "$ac_c_werror_flag"
24436 || test ! -s conftest.err'
24437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438 (eval $ac_try) 2>&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; } &&
24442 { ac_try='test -s conftest$ac_exeext'
24443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444 (eval $ac_try) 2>&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; }; then
24448 eval "$as_ac_var=yes"
24450 echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24453 eval "$as_ac_var=no"
24455 rm -f conftest.err conftest.$ac_objext \
24456 conftest$ac_exeext conftest.$ac_ext
24458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24460 if test `eval echo '${'$as_ac_var'}'` = yes; then
24461 cat >>confdefs.h <<_ACEOF
24462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24469 if test $ac_cv_func_sched_yield = no &&
24470 test $ac_cv_func_pthread_yield = no &&
24471 test $ac_cv_func_thr_yield = no ; then
24472 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24473 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24474 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 ac_check_lib_save_LIBS=$LIBS
24479 cat >conftest.$ac_ext <<_ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h. */
24486 /* Override any gcc2 internal prototype to avoid an error. */
24490 /* We use char because int might match the return type of a gcc2
24491 builtin and then its argument prototype would still apply. */
24492 char sched_yield ();
24501 rm -f conftest.$ac_objext conftest$ac_exeext
24502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24503 (eval $ac_link) 2>conftest.er1
24505 grep -v '^ *+' conftest.er1 >conftest.err
24507 cat conftest.err >&5
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } &&
24510 { ac_try='test -z "$ac_c_werror_flag"
24511 || test ! -s conftest.err'
24512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513 (eval $ac_try) 2>&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); }; } &&
24517 { ac_try='test -s conftest$ac_exeext'
24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; }; then
24523 ac_cv_lib_rt_sched_yield=yes
24525 echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24528 ac_cv_lib_rt_sched_yield=no
24530 rm -f conftest.err conftest.$ac_objext \
24531 conftest$ac_exeext conftest.$ac_ext
24532 LIBS=$ac_check_lib_save_LIBS
24534 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24535 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24536 if test $ac_cv_lib_rt_sched_yield = yes; then
24537 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24539 cat >>confdefs.h <<\_ACEOF
24540 #define HAVE_SCHED_YIELD 1
24543 ac_cv_func_sched_yield=yes
24545 ac_cv_func_sched_yield=no
24549 if test $ac_cv_func_sched_yield = no &&
24550 test $ac_cv_func_pthread_yield = no &&
24551 test "$ac_cv_func_thr_yield" = no ; then
24552 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24553 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24557 for ac_func in pthread_kill
24559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24560 echo "$as_me:$LINENO: checking for $ac_func" >&5
24561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24562 if eval "test \"\${$as_ac_var+set}\" = set"; then
24563 echo $ECHO_N "(cached) $ECHO_C" >&6
24565 cat >conftest.$ac_ext <<_ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h. */
24571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24573 #define $ac_func innocuous_$ac_func
24575 /* System header to define __stub macros and hopefully few prototypes,
24576 which can conflict with char $ac_func (); below.
24577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24578 <limits.h> exists even on freestanding compilers. */
24581 # include <limits.h>
24583 # include <assert.h>
24588 /* Override any gcc2 internal prototype to avoid an error. */
24593 /* We use char because int might match the return type of a gcc2
24594 builtin and then its argument prototype would still apply. */
24596 /* The GNU C library defines this for functions which it implements
24597 to always fail with ENOSYS. Some functions are actually named
24598 something starting with __ and the normal name is an alias. */
24599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24602 char (*f) () = $ac_func;
24611 return f != $ac_func;
24616 rm -f conftest.$ac_objext conftest$ac_exeext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24618 (eval $ac_link) 2>conftest.er1
24620 grep -v '^ *+' conftest.er1 >conftest.err
24622 cat conftest.err >&5
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); } &&
24625 { ac_try='test -z "$ac_c_werror_flag"
24626 || test ! -s conftest.err'
24627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24628 (eval $ac_try) 2>&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); }; } &&
24632 { ac_try='test -s conftest$ac_exeext'
24633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634 (eval $ac_try) 2>&5
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); }; }; then
24638 eval "$as_ac_var=yes"
24640 echo "$as_me: failed program was:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24643 eval "$as_ac_var=no"
24645 rm -f conftest.err conftest.$ac_objext \
24646 conftest$ac_exeext conftest.$ac_ext
24648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24650 if test `eval echo '${'$as_ac_var'}'` = yes; then
24651 cat >>confdefs.h <<_ACEOF
24652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24659 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24660 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
24661 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24662 echo $ECHO_N "(cached) $ECHO_C" >&6
24665 cat >conftest.$ac_ext <<_ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24672 #include <pthread.h>
24673 pthread_rwlock_t rwlock;
24678 pthread_rwlock_destroy(&rwlock);
24683 rm -f conftest.$ac_objext conftest$ac_exeext
24684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24685 (eval $ac_link) 2>conftest.er1
24687 grep -v '^ *+' conftest.er1 >conftest.err
24689 cat conftest.err >&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } &&
24692 { ac_try='test -z "$ac_c_werror_flag"
24693 || test ! -s conftest.err'
24694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695 (eval $ac_try) 2>&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; } &&
24699 { ac_try='test -s conftest$ac_exeext'
24700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701 (eval $ac_try) 2>&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); }; }; then
24705 ol_cv_func_pthread_rwlock_destroy=yes
24707 echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24710 ol_cv_func_pthread_rwlock_destroy=no
24712 rm -f conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
24716 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24717 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
24718 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24720 cat >>confdefs.h <<\_ACEOF
24721 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24726 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24727 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24728 if test "${ol_cv_func_pthread_detach+set}" = set; then
24729 echo $ECHO_N "(cached) $ECHO_C" >&6
24732 cat >conftest.$ac_ext <<_ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24739 #include <pthread.h>
24741 #define NULL (void*)0
24747 pthread_detach(NULL);
24752 rm -f conftest.$ac_objext conftest$ac_exeext
24753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24754 (eval $ac_link) 2>conftest.er1
24756 grep -v '^ *+' conftest.er1 >conftest.err
24758 cat conftest.err >&5
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); } &&
24761 { ac_try='test -z "$ac_c_werror_flag"
24762 || test ! -s conftest.err'
24763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; } &&
24768 { ac_try='test -s conftest$ac_exeext'
24769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773 (exit $ac_status); }; }; then
24774 ol_cv_func_pthread_detach=yes
24776 echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24779 ol_cv_func_pthread_detach=no
24781 rm -f conftest.err conftest.$ac_objext \
24782 conftest$ac_exeext conftest.$ac_ext
24785 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24786 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24788 if test $ol_cv_func_pthread_detach = no ; then
24789 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24790 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24791 { (exit 1); exit 1; }; }
24795 cat >>confdefs.h <<\_ACEOF
24796 #define HAVE_PTHREAD_DETACH 1
24805 pthread_setconcurrency \
24806 pthread_getconcurrency \
24807 thr_setconcurrency \
24808 thr_getconcurrency \
24811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24812 echo "$as_me:$LINENO: checking for $ac_func" >&5
24813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24814 if eval "test \"\${$as_ac_var+set}\" = set"; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24817 cat >conftest.$ac_ext <<_ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24825 #define $ac_func innocuous_$ac_func
24827 /* System header to define __stub macros and hopefully few prototypes,
24828 which can conflict with char $ac_func (); below.
24829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24830 <limits.h> exists even on freestanding compilers. */
24833 # include <limits.h>
24835 # include <assert.h>
24840 /* Override any gcc2 internal prototype to avoid an error. */
24845 /* We use char because int might match the return type of a gcc2
24846 builtin and then its argument prototype would still apply. */
24848 /* The GNU C library defines this for functions which it implements
24849 to always fail with ENOSYS. Some functions are actually named
24850 something starting with __ and the normal name is an alias. */
24851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24854 char (*f) () = $ac_func;
24863 return f != $ac_func;
24868 rm -f conftest.$ac_objext conftest$ac_exeext
24869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24870 (eval $ac_link) 2>conftest.er1
24872 grep -v '^ *+' conftest.er1 >conftest.err
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } &&
24877 { ac_try='test -z "$ac_c_werror_flag"
24878 || test ! -s conftest.err'
24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880 (eval $ac_try) 2>&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; } &&
24884 { ac_try='test -s conftest$ac_exeext'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 eval "$as_ac_var=yes"
24892 echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24895 eval "$as_ac_var=no"
24897 rm -f conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24902 if test `eval echo '${'$as_ac_var'}'` = yes; then
24903 cat >>confdefs.h <<_ACEOF
24904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24913 for ac_func in pthread_kill_other_threads_np
24915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24916 echo "$as_me:$LINENO: checking for $ac_func" >&5
24917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24918 if eval "test \"\${$as_ac_var+set}\" = set"; then
24919 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 cat >conftest.$ac_ext <<_ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24929 #define $ac_func innocuous_$ac_func
24931 /* System header to define __stub macros and hopefully few prototypes,
24932 which can conflict with char $ac_func (); below.
24933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24934 <limits.h> exists even on freestanding compilers. */
24937 # include <limits.h>
24939 # include <assert.h>
24944 /* Override any gcc2 internal prototype to avoid an error. */
24949 /* We use char because int might match the return type of a gcc2
24950 builtin and then its argument prototype would still apply. */
24952 /* The GNU C library defines this for functions which it implements
24953 to always fail with ENOSYS. Some functions are actually named
24954 something starting with __ and the normal name is an alias. */
24955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24958 char (*f) () = $ac_func;
24967 return f != $ac_func;
24972 rm -f conftest.$ac_objext conftest$ac_exeext
24973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24974 (eval $ac_link) 2>conftest.er1
24976 grep -v '^ *+' conftest.er1 >conftest.err
24978 cat conftest.err >&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } &&
24981 { ac_try='test -z "$ac_c_werror_flag"
24982 || test ! -s conftest.err'
24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984 (eval $ac_try) 2>&5
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; } &&
24988 { ac_try='test -s conftest$ac_exeext'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; }; then
24994 eval "$as_ac_var=yes"
24996 echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24999 eval "$as_ac_var=no"
25001 rm -f conftest.err conftest.$ac_objext \
25002 conftest$ac_exeext conftest.$ac_ext
25004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25006 if test `eval echo '${'$as_ac_var'}'` = yes; then
25007 cat >>confdefs.h <<_ACEOF
25008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25014 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25015 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
25016 if test "${ol_cv_sys_linux_threads+set}" = set; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25021 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25022 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
25027 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25028 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
25029 if test "${ol_cv_linux_threads+set}" = set; then
25030 echo $ECHO_N "(cached) $ECHO_C" >&6
25033 if test $ol_cv_header_linux_threads = yes &&
25034 test $ol_cv_sys_linux_threads = yes; then
25035 ol_cv_linux_threads=yes
25036 elif test $ol_cv_header_linux_threads = no &&
25037 test $ol_cv_sys_linux_threads = no; then
25038 ol_cv_linux_threads=no
25040 ol_cv_linux_threads=error
25044 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25045 echo "${ECHO_T}$ol_cv_linux_threads" >&6
25048 if test $ol_cv_linux_threads = error; then
25049 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25050 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25051 { (exit 1); exit 1; }; };
25054 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25055 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
25056 if test "${ol_cv_pthread_create_works+set}" = set; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25060 if test "$cross_compiling" = yes; then
25061 ol_cv_pthread_create_works=yes
25063 cat >conftest.$ac_ext <<_ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25070 /* pthread test headers */
25071 #include <pthread.h>
25072 #if HAVE_PTHREADS < 7
25076 #define NULL (void*)0
25079 static void *task(p)
25082 return (void *) (p == NULL);
25086 int main(argc, argv)
25091 /* pthread test function */
25092 #ifndef PTHREAD_CREATE_DETACHED
25093 #define PTHREAD_CREATE_DETACHED 1
25097 int detach = PTHREAD_CREATE_DETACHED;
25099 #if HAVE_PTHREADS > 4
25100 /* Final pthreads */
25101 pthread_attr_t attr;
25103 status = pthread_attr_init(&attr);
25104 if( status ) return status;
25106 #if HAVE_PTHREADS < 7
25107 status = pthread_attr_setdetachstate(&attr, &detach);
25108 if( status < 0 ) status = errno;
25110 status = pthread_attr_setdetachstate(&attr, detach);
25112 if( status ) return status;
25113 status = pthread_create( &t, &attr, task, NULL );
25114 #if HAVE_PTHREADS < 7
25115 if( status < 0 ) status = errno;
25117 if( status ) return status;
25119 /* Draft 4 pthreads */
25120 status = pthread_create( &t, pthread_attr_default, task, NULL );
25121 if( status ) return errno;
25123 /* give thread a chance to complete */
25124 /* it should remain joinable and hence detachable */
25127 status = pthread_detach( &t );
25128 if( status ) return errno;
25131 #ifdef HAVE_LINUX_THREADS
25132 pthread_kill_other_threads_np();
25140 rm -f conftest$ac_exeext
25141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25142 (eval $ac_link) 2>&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25147 (eval $ac_try) 2>&5
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); }; }; then
25151 ol_cv_pthread_create_works=yes
25153 echo "$as_me: program exited with status $ac_status" >&5
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25157 ( exit $ac_status )
25158 ol_cv_pthread_create_works=no
25160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25163 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25164 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25166 if test $ol_cv_pthread_create_works = no ; then
25167 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25168 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25169 { (exit 1); exit 1; }; }
25172 ol_replace_broken_yield=no
25174 if test $ol_replace_broken_yield = yes ; then
25176 cat >>confdefs.h <<\_ACEOF
25177 #define REPLACE_BROKEN_YIELD 1
25182 if test $ol_with_yielding_select = auto ; then
25183 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25184 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25185 if test "${ol_cv_pthread_select_yields+set}" = set; then
25186 echo $ECHO_N "(cached) $ECHO_C" >&6
25189 if test "$cross_compiling" = yes; then
25190 ol_cv_pthread_select_yields=cross
25192 cat >conftest.$ac_ext <<_ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h. */
25199 #include <sys/types.h>
25200 #include <sys/time.h>
25201 #include <unistd.h>
25202 #include <pthread.h>
25204 #define NULL (void*) 0
25207 static int fildes[2];
25209 static void *task(p)
25221 FD_SET(fildes[0], &rfds);
25223 /* we're not interested in any fds */
25224 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25231 exit(0); /* if we exit here, the select blocked the whole process */
25234 int main(argc, argv)
25240 /* create a pipe to select */
25241 if(pipe(&fildes[0])) {
25246 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25247 (void) pthread_setconcurrency(2);
25249 #ifdef HAVE_THR_SETCONCURRENCY
25250 /* Set Solaris LWP concurrency to 2 */
25251 thr_setconcurrency(2);
25255 #if HAVE_PTHREADS < 6
25256 pthread_create(&t, pthread_attr_default, task, NULL);
25258 pthread_create(&t, NULL, task, NULL);
25261 /* make sure task runs first */
25262 #ifdef HAVE_THR_YIELD
25264 #elif defined( HAVE_SCHED_YIELD )
25266 #elif defined( HAVE_PTHREAD_YIELD )
25273 rm -f conftest$ac_exeext
25274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25275 (eval $ac_link) 2>&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; }; then
25284 ol_cv_pthread_select_yields=no
25286 echo "$as_me: program exited with status $ac_status" >&5
25287 echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25290 ( exit $ac_status )
25291 ol_cv_pthread_select_yields=yes
25293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25296 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25297 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25299 if test $ol_cv_pthread_select_yields = cross ; then
25300 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25301 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25302 { (exit 1); exit 1; }; }
25305 if test $ol_cv_pthread_select_yields = yes ; then
25306 ol_with_yielding_select=yes
25310 CPPFLAGS="$save_CPPFLAGS"
25313 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25314 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25315 { (exit 1); exit 1; }; }
25319 if test $ol_with_threads = posix ; then
25320 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25321 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25322 { (exit 1); exit 1; }; }
25327 case $ol_with_threads in auto | yes | mach)
25331 for ac_header in mach/cthreads.h cthreads.h
25333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25335 echo "$as_me:$LINENO: checking for $ac_header" >&5
25336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25343 # Is the header compilable?
25344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25346 cat >conftest.$ac_ext <<_ACEOF
25349 cat confdefs.h >>conftest.$ac_ext
25350 cat >>conftest.$ac_ext <<_ACEOF
25351 /* end confdefs.h. */
25352 $ac_includes_default
25353 #include <$ac_header>
25355 rm -f conftest.$ac_objext
25356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25357 (eval $ac_compile) 2>conftest.er1
25359 grep -v '^ *+' conftest.er1 >conftest.err
25361 cat conftest.err >&5
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); } &&
25364 { ac_try='test -z "$ac_c_werror_flag"
25365 || test ! -s conftest.err'
25366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367 (eval $ac_try) 2>&5
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); }; } &&
25371 { ac_try='test -s conftest.$ac_objext'
25372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373 (eval $ac_try) 2>&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }; }; then
25377 ac_header_compiler=yes
25379 echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25382 ac_header_compiler=no
25384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25386 echo "${ECHO_T}$ac_header_compiler" >&6
25388 # Is the header present?
25389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25391 cat >conftest.$ac_ext <<_ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h. */
25397 #include <$ac_header>
25399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25402 grep -v '^ *+' conftest.er1 >conftest.err
25404 cat conftest.err >&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } >/dev/null; then
25407 if test -s conftest.err; then
25408 ac_cpp_err=$ac_c_preproc_warn_flag
25409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25416 if test -z "$ac_cpp_err"; then
25417 ac_header_preproc=yes
25419 echo "$as_me: failed program was:" >&5
25420 sed 's/^/| /' conftest.$ac_ext >&5
25422 ac_header_preproc=no
25424 rm -f conftest.err conftest.$ac_ext
25425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25426 echo "${ECHO_T}$ac_header_preproc" >&6
25428 # So? What about this header?
25429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25435 ac_header_preproc=yes
25438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25452 ## --------------------------------------------- ##
25453 ## Report this to <http://www.openldap.org/its/> ##
25454 ## --------------------------------------------- ##
25457 sed "s/^/$as_me: WARNING: /" >&2
25460 echo "$as_me:$LINENO: checking for $ac_header" >&5
25461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25465 eval "$as_ac_Header=\$ac_header_preproc"
25467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25472 cat >>confdefs.h <<_ACEOF
25473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25480 if test $ac_cv_header_mach_cthreads_h = yes ; then
25481 ol_with_threads=found
25483 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25484 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25485 if test "${ac_cv_func_cthread_fork+set}" = set; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
25488 cat >conftest.$ac_ext <<_ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25496 #define cthread_fork innocuous_cthread_fork
25498 /* System header to define __stub macros and hopefully few prototypes,
25499 which can conflict with char cthread_fork (); below.
25500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25501 <limits.h> exists even on freestanding compilers. */
25504 # include <limits.h>
25506 # include <assert.h>
25509 #undef cthread_fork
25511 /* Override any gcc2 internal prototype to avoid an error. */
25516 /* We use char because int might match the return type of a gcc2
25517 builtin and then its argument prototype would still apply. */
25518 char cthread_fork ();
25519 /* The GNU C library defines this for functions which it implements
25520 to always fail with ENOSYS. Some functions are actually named
25521 something starting with __ and the normal name is an alias. */
25522 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25525 char (*f) () = cthread_fork;
25534 return f != cthread_fork;
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25541 (eval $ac_link) 2>conftest.er1
25543 grep -v '^ *+' conftest.er1 >conftest.err
25545 cat conftest.err >&5
25546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } &&
25548 { ac_try='test -z "$ac_c_werror_flag"
25549 || test ! -s conftest.err'
25550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551 (eval $ac_try) 2>&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); }; } &&
25555 { ac_try='test -s conftest$ac_exeext'
25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557 (eval $ac_try) 2>&5
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); }; }; then
25561 ac_cv_func_cthread_fork=yes
25563 echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25566 ac_cv_func_cthread_fork=no
25568 rm -f conftest.err conftest.$ac_objext \
25569 conftest$ac_exeext conftest.$ac_ext
25571 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25572 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25573 if test $ac_cv_func_cthread_fork = yes; then
25574 ol_link_threads=yes
25578 if test $ol_link_threads = no ; then
25579 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25580 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25581 if test "${ol_cv_cthread_all_load+set}" = set; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25586 LIBS="-all_load $LIBS"
25587 cat >conftest.$ac_ext <<_ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25593 #include <mach/cthreads.h>
25598 cthread_fork((void *)0, (void *)0);
25604 rm -f conftest.$ac_objext conftest$ac_exeext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25606 (eval $ac_link) 2>conftest.er1
25608 grep -v '^ *+' conftest.er1 >conftest.err
25610 cat conftest.err >&5
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); } &&
25613 { ac_try='test -z "$ac_c_werror_flag"
25614 || test ! -s conftest.err'
25615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616 (eval $ac_try) 2>&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); }; } &&
25620 { ac_try='test -s conftest$ac_exeext'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; }; then
25626 ol_cv_cthread_all_load=yes
25628 echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25631 ol_cv_cthread_all_load=no
25633 rm -f conftest.err conftest.$ac_objext \
25634 conftest$ac_exeext conftest.$ac_ext
25638 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25639 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25641 if test $ol_cv_cthread_all_load = yes ; then
25642 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25643 ol_link_threads=mach
25644 ol_with_threads=found
25648 elif test $ac_cv_header_cthreads_h = yes ; then
25650 ol_with_threads=found
25653 LIBS="$LIBS -lthreads"
25654 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25655 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25656 if test "${ac_cv_func_cthread_fork+set}" = set; then
25657 echo $ECHO_N "(cached) $ECHO_C" >&6
25659 cat >conftest.$ac_ext <<_ACEOF
25662 cat confdefs.h >>conftest.$ac_ext
25663 cat >>conftest.$ac_ext <<_ACEOF
25664 /* end confdefs.h. */
25665 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25667 #define cthread_fork innocuous_cthread_fork
25669 /* System header to define __stub macros and hopefully few prototypes,
25670 which can conflict with char cthread_fork (); below.
25671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25672 <limits.h> exists even on freestanding compilers. */
25675 # include <limits.h>
25677 # include <assert.h>
25680 #undef cthread_fork
25682 /* Override any gcc2 internal prototype to avoid an error. */
25687 /* We use char because int might match the return type of a gcc2
25688 builtin and then its argument prototype would still apply. */
25689 char cthread_fork ();
25690 /* The GNU C library defines this for functions which it implements
25691 to always fail with ENOSYS. Some functions are actually named
25692 something starting with __ and the normal name is an alias. */
25693 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25696 char (*f) () = cthread_fork;
25705 return f != cthread_fork;
25710 rm -f conftest.$ac_objext conftest$ac_exeext
25711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25712 (eval $ac_link) 2>conftest.er1
25714 grep -v '^ *+' conftest.er1 >conftest.err
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest$ac_exeext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 ac_cv_func_cthread_fork=yes
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 ac_cv_func_cthread_fork=no
25739 rm -f conftest.err conftest.$ac_objext \
25740 conftest$ac_exeext conftest.$ac_ext
25742 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25743 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25744 if test $ac_cv_func_cthread_fork = yes; then
25745 ol_link_threads=yes
25750 if test $ol_link_threads = yes ; then
25751 LTHREAD_LIBS="-lthreads"
25752 ol_link_threads=mach
25753 ol_with_threads=found
25755 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25756 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25757 { (exit 1); exit 1; }; }
25760 elif test $ol_with_threads = mach ; then
25761 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25762 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25763 { (exit 1); exit 1; }; }
25766 if test $ol_link_threads = mach ; then
25768 cat >>confdefs.h <<\_ACEOF
25769 #define HAVE_MACH_CTHREADS 1
25772 elif test $ol_with_threads = found ; then
25773 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25774 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25775 { (exit 1); exit 1; }; }
25780 case $ol_with_threads in auto | yes | pth)
25783 for ac_header in pth.h
25785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25787 echo "$as_me:$LINENO: checking for $ac_header" >&5
25788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25790 echo $ECHO_N "(cached) $ECHO_C" >&6
25792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25795 # Is the header compilable?
25796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25798 cat >conftest.$ac_ext <<_ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h. */
25804 $ac_includes_default
25805 #include <$ac_header>
25807 rm -f conftest.$ac_objext
25808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25809 (eval $ac_compile) 2>conftest.er1
25811 grep -v '^ *+' conftest.er1 >conftest.err
25813 cat conftest.err >&5
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); } &&
25816 { ac_try='test -z "$ac_c_werror_flag"
25817 || test ! -s conftest.err'
25818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25819 (eval $ac_try) 2>&5
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); }; } &&
25823 { ac_try='test -s conftest.$ac_objext'
25824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825 (eval $ac_try) 2>&5
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; }; then
25829 ac_header_compiler=yes
25831 echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25834 ac_header_compiler=no
25836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25838 echo "${ECHO_T}$ac_header_compiler" >&6
25840 # Is the header present?
25841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25843 cat >conftest.$ac_ext <<_ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 #include <$ac_header>
25851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25854 grep -v '^ *+' conftest.er1 >conftest.err
25856 cat conftest.err >&5
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); } >/dev/null; then
25859 if test -s conftest.err; then
25860 ac_cpp_err=$ac_c_preproc_warn_flag
25861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25868 if test -z "$ac_cpp_err"; then
25869 ac_header_preproc=yes
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25874 ac_header_preproc=no
25876 rm -f conftest.err conftest.$ac_ext
25877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25878 echo "${ECHO_T}$ac_header_preproc" >&6
25880 # So? What about this header?
25881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25887 ac_header_preproc=yes
25890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25904 ## --------------------------------------------- ##
25905 ## Report this to <http://www.openldap.org/its/> ##
25906 ## --------------------------------------------- ##
25909 sed "s/^/$as_me: WARNING: /" >&2
25912 echo "$as_me:$LINENO: checking for $ac_header" >&5
25913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25915 echo $ECHO_N "(cached) $ECHO_C" >&6
25917 eval "$as_ac_Header=\$ac_header_preproc"
25919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25924 cat >>confdefs.h <<_ACEOF
25925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25933 if test $ac_cv_header_pth_h = yes ; then
25934 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25935 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25936 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25937 echo $ECHO_N "(cached) $ECHO_C" >&6
25939 ac_check_lib_save_LIBS=$LIBS
25941 cat >conftest.$ac_ext <<_ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h. */
25948 /* Override any gcc2 internal prototype to avoid an error. */
25952 /* We use char because int might match the return type of a gcc2
25953 builtin and then its argument prototype would still apply. */
25954 char pth_version ();
25963 rm -f conftest.$ac_objext conftest$ac_exeext
25964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25965 (eval $ac_link) 2>conftest.er1
25967 grep -v '^ *+' conftest.er1 >conftest.err
25969 cat conftest.err >&5
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } &&
25972 { ac_try='test -z "$ac_c_werror_flag"
25973 || test ! -s conftest.err'
25974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975 (eval $ac_try) 2>&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); }; } &&
25979 { ac_try='test -s conftest$ac_exeext'
25980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981 (eval $ac_try) 2>&5
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); }; }; then
25985 ac_cv_lib_pth_pth_version=yes
25987 echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25990 ac_cv_lib_pth_pth_version=no
25992 rm -f conftest.err conftest.$ac_objext \
25993 conftest$ac_exeext conftest.$ac_ext
25994 LIBS=$ac_check_lib_save_LIBS
25996 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25997 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25998 if test $ac_cv_lib_pth_pth_version = yes; then
26005 if test $have_pth = yes ; then
26007 cat >>confdefs.h <<\_ACEOF
26008 #define HAVE_GNU_PTH 1
26011 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26012 ol_link_threads=pth
26013 ol_with_threads=found
26015 if test $ol_with_yielding_select = auto ; then
26016 ol_with_yielding_select=yes
26023 case $ol_with_threads in auto | yes | lwp)
26027 for ac_header in thread.h synch.h
26029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26031 echo "$as_me:$LINENO: checking for $ac_header" >&5
26032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26034 echo $ECHO_N "(cached) $ECHO_C" >&6
26036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26039 # Is the header compilable?
26040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26042 cat >conftest.$ac_ext <<_ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h. */
26048 $ac_includes_default
26049 #include <$ac_header>
26051 rm -f conftest.$ac_objext
26052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26053 (eval $ac_compile) 2>conftest.er1
26055 grep -v '^ *+' conftest.er1 >conftest.err
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } &&
26060 { ac_try='test -z "$ac_c_werror_flag"
26061 || test ! -s conftest.err'
26062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063 (eval $ac_try) 2>&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); }; } &&
26067 { ac_try='test -s conftest.$ac_objext'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 ac_header_compiler=yes
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26078 ac_header_compiler=no
26080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26082 echo "${ECHO_T}$ac_header_compiler" >&6
26084 # Is the header present?
26085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26087 cat >conftest.$ac_ext <<_ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h. */
26093 #include <$ac_header>
26095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26098 grep -v '^ *+' conftest.er1 >conftest.err
26100 cat conftest.err >&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } >/dev/null; then
26103 if test -s conftest.err; then
26104 ac_cpp_err=$ac_c_preproc_warn_flag
26105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26112 if test -z "$ac_cpp_err"; then
26113 ac_header_preproc=yes
26115 echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26118 ac_header_preproc=no
26120 rm -f conftest.err conftest.$ac_ext
26121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26122 echo "${ECHO_T}$ac_header_preproc" >&6
26124 # So? What about this header?
26125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26131 ac_header_preproc=yes
26134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26148 ## --------------------------------------------- ##
26149 ## Report this to <http://www.openldap.org/its/> ##
26150 ## --------------------------------------------- ##
26153 sed "s/^/$as_me: WARNING: /" >&2
26156 echo "$as_me:$LINENO: checking for $ac_header" >&5
26157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26159 echo $ECHO_N "(cached) $ECHO_C" >&6
26161 eval "$as_ac_Header=\$ac_header_preproc"
26163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26168 cat >>confdefs.h <<_ACEOF
26169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26176 if test $ac_cv_header_thread_h = yes &&
26177 test $ac_cv_header_synch_h = yes ; then
26178 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26179 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26180 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26181 echo $ECHO_N "(cached) $ECHO_C" >&6
26183 ac_check_lib_save_LIBS=$LIBS
26184 LIBS="-lthread $LIBS"
26185 cat >conftest.$ac_ext <<_ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h. */
26192 /* Override any gcc2 internal prototype to avoid an error. */
26196 /* We use char because int might match the return type of a gcc2
26197 builtin and then its argument prototype would still apply. */
26198 char thr_create ();
26207 rm -f conftest.$ac_objext conftest$ac_exeext
26208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26209 (eval $ac_link) 2>conftest.er1
26211 grep -v '^ *+' conftest.er1 >conftest.err
26213 cat conftest.err >&5
26214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } &&
26216 { ac_try='test -z "$ac_c_werror_flag"
26217 || test ! -s conftest.err'
26218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26219 (eval $ac_try) 2>&5
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); }; } &&
26223 { ac_try='test -s conftest$ac_exeext'
26224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225 (eval $ac_try) 2>&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); }; }; then
26229 ac_cv_lib_thread_thr_create=yes
26231 echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26234 ac_cv_lib_thread_thr_create=no
26236 rm -f conftest.err conftest.$ac_objext \
26237 conftest$ac_exeext conftest.$ac_ext
26238 LIBS=$ac_check_lib_save_LIBS
26240 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26241 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26242 if test $ac_cv_lib_thread_thr_create = yes; then
26249 if test $have_thr = yes ; then
26251 cat >>confdefs.h <<\_ACEOF
26255 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26256 ol_link_threads=thr
26258 if test $ol_with_yielding_select = auto ; then
26259 ol_with_yielding_select=yes
26265 thr_setconcurrency \
26266 thr_getconcurrency \
26269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26270 echo "$as_me:$LINENO: checking for $ac_func" >&5
26271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26272 if eval "test \"\${$as_ac_var+set}\" = set"; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26283 #define $ac_func innocuous_$ac_func
26285 /* System header to define __stub macros and hopefully few prototypes,
26286 which can conflict with char $ac_func (); below.
26287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26288 <limits.h> exists even on freestanding compilers. */
26291 # include <limits.h>
26293 # include <assert.h>
26298 /* Override any gcc2 internal prototype to avoid an error. */
26303 /* We use char because int might match the return type of a gcc2
26304 builtin and then its argument prototype would still apply. */
26306 /* The GNU C library defines this for functions which it implements
26307 to always fail with ENOSYS. Some functions are actually named
26308 something starting with __ and the normal name is an alias. */
26309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26312 char (*f) () = $ac_func;
26321 return f != $ac_func;
26326 rm -f conftest.$ac_objext conftest$ac_exeext
26327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26328 (eval $ac_link) 2>conftest.er1
26330 grep -v '^ *+' conftest.er1 >conftest.err
26332 cat conftest.err >&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
26335 { ac_try='test -z "$ac_c_werror_flag"
26336 || test ! -s conftest.err'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; } &&
26342 { ac_try='test -s conftest$ac_exeext'
26343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344 (eval $ac_try) 2>&5
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); }; }; then
26348 eval "$as_ac_var=yes"
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 eval "$as_ac_var=no"
26355 rm -f conftest.err conftest.$ac_objext \
26356 conftest$ac_exeext conftest.$ac_ext
26358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26360 if test `eval echo '${'$as_ac_var'}'` = yes; then
26361 cat >>confdefs.h <<_ACEOF
26362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26372 for ac_header in lwp/lwp.h
26374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26376 echo "$as_me:$LINENO: checking for $ac_header" >&5
26377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26379 echo $ECHO_N "(cached) $ECHO_C" >&6
26381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26384 # Is the header compilable?
26385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26387 cat >conftest.$ac_ext <<_ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h. */
26393 $ac_includes_default
26394 #include <$ac_header>
26396 rm -f conftest.$ac_objext
26397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26398 (eval $ac_compile) 2>conftest.er1
26400 grep -v '^ *+' conftest.er1 >conftest.err
26402 cat conftest.err >&5
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); } &&
26405 { ac_try='test -z "$ac_c_werror_flag"
26406 || test ! -s conftest.err'
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; } &&
26412 { ac_try='test -s conftest.$ac_objext'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
26418 ac_header_compiler=yes
26420 echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26423 ac_header_compiler=no
26425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26427 echo "${ECHO_T}$ac_header_compiler" >&6
26429 # Is the header present?
26430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26432 cat >conftest.$ac_ext <<_ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h. */
26438 #include <$ac_header>
26440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } >/dev/null; then
26448 if test -s conftest.err; then
26449 ac_cpp_err=$ac_c_preproc_warn_flag
26450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26457 if test -z "$ac_cpp_err"; then
26458 ac_header_preproc=yes
26460 echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.$ac_ext >&5
26463 ac_header_preproc=no
26465 rm -f conftest.err conftest.$ac_ext
26466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26467 echo "${ECHO_T}$ac_header_preproc" >&6
26469 # So? What about this header?
26470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26476 ac_header_preproc=yes
26479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26493 ## --------------------------------------------- ##
26494 ## Report this to <http://www.openldap.org/its/> ##
26495 ## --------------------------------------------- ##
26498 sed "s/^/$as_me: WARNING: /" >&2
26501 echo "$as_me:$LINENO: checking for $ac_header" >&5
26502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26506 eval "$as_ac_Header=\$ac_header_preproc"
26508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26513 cat >>confdefs.h <<_ACEOF
26514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26521 if test $ac_cv_header_lwp_lwp_h = yes ; then
26522 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26523 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26524 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26525 echo $ECHO_N "(cached) $ECHO_C" >&6
26527 ac_check_lib_save_LIBS=$LIBS
26529 cat >conftest.$ac_ext <<_ACEOF
26532 cat confdefs.h >>conftest.$ac_ext
26533 cat >>conftest.$ac_ext <<_ACEOF
26534 /* end confdefs.h. */
26536 /* Override any gcc2 internal prototype to avoid an error. */
26540 /* We use char because int might match the return type of a gcc2
26541 builtin and then its argument prototype would still apply. */
26542 char lwp_create ();
26551 rm -f conftest.$ac_objext conftest$ac_exeext
26552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26553 (eval $ac_link) 2>conftest.er1
26555 grep -v '^ *+' conftest.er1 >conftest.err
26557 cat conftest.err >&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } &&
26560 { ac_try='test -z "$ac_c_werror_flag"
26561 || test ! -s conftest.err'
26562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26563 (eval $ac_try) 2>&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); }; } &&
26567 { ac_try='test -s conftest$ac_exeext'
26568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569 (eval $ac_try) 2>&5
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); }; }; then
26573 ac_cv_lib_lwp_lwp_create=yes
26575 echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26578 ac_cv_lib_lwp_lwp_create=no
26580 rm -f conftest.err conftest.$ac_objext \
26581 conftest$ac_exeext conftest.$ac_ext
26582 LIBS=$ac_check_lib_save_LIBS
26584 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26585 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26586 if test $ac_cv_lib_lwp_lwp_create = yes; then
26593 if test $have_lwp = yes ; then
26595 cat >>confdefs.h <<\_ACEOF
26599 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26600 ol_link_threads=lwp
26602 if test $ol_with_yielding_select = auto ; then
26603 ol_with_yielding_select=no
26610 if test $ol_with_yielding_select = yes ; then
26612 cat >>confdefs.h <<\_ACEOF
26613 #define HAVE_YIELDING_SELECT 1
26618 if test $ol_with_threads = manual ; then
26619 ol_link_threads=yes
26621 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26622 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26626 for ac_header in pthread.h sched.h
26628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26630 echo "$as_me:$LINENO: checking for $ac_header" >&5
26631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26638 # Is the header compilable?
26639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h. */
26647 $ac_includes_default
26648 #include <$ac_header>
26650 rm -f conftest.$ac_objext
26651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26652 (eval $ac_compile) 2>conftest.er1
26654 grep -v '^ *+' conftest.er1 >conftest.err
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
26659 { ac_try='test -z "$ac_c_werror_flag"
26660 || test ! -s conftest.err'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; } &&
26666 { ac_try='test -s conftest.$ac_objext'
26667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668 (eval $ac_try) 2>&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); }; }; then
26672 ac_header_compiler=yes
26674 echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26677 ac_header_compiler=no
26679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26681 echo "${ECHO_T}$ac_header_compiler" >&6
26683 # Is the header present?
26684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h. */
26692 #include <$ac_header>
26694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26697 grep -v '^ *+' conftest.er1 >conftest.err
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } >/dev/null; then
26702 if test -s conftest.err; then
26703 ac_cpp_err=$ac_c_preproc_warn_flag
26704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26711 if test -z "$ac_cpp_err"; then
26712 ac_header_preproc=yes
26714 echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26717 ac_header_preproc=no
26719 rm -f conftest.err conftest.$ac_ext
26720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26721 echo "${ECHO_T}$ac_header_preproc" >&6
26723 # So? What about this header?
26724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26730 ac_header_preproc=yes
26733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26747 ## --------------------------------------------- ##
26748 ## Report this to <http://www.openldap.org/its/> ##
26749 ## --------------------------------------------- ##
26752 sed "s/^/$as_me: WARNING: /" >&2
26755 echo "$as_me:$LINENO: checking for $ac_header" >&5
26756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 eval "$as_ac_Header=\$ac_header_preproc"
26762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26767 cat >>confdefs.h <<_ACEOF
26768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26777 for ac_func in sched_yield pthread_yield
26779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26780 echo "$as_me:$LINENO: checking for $ac_func" >&5
26781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26782 if eval "test \"\${$as_ac_var+set}\" = set"; then
26783 echo $ECHO_N "(cached) $ECHO_C" >&6
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26793 #define $ac_func innocuous_$ac_func
26795 /* System header to define __stub macros and hopefully few prototypes,
26796 which can conflict with char $ac_func (); below.
26797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26798 <limits.h> exists even on freestanding compilers. */
26801 # include <limits.h>
26803 # include <assert.h>
26808 /* Override any gcc2 internal prototype to avoid an error. */
26813 /* We use char because int might match the return type of a gcc2
26814 builtin and then its argument prototype would still apply. */
26816 /* The GNU C library defines this for functions which it implements
26817 to always fail with ENOSYS. Some functions are actually named
26818 something starting with __ and the normal name is an alias. */
26819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26822 char (*f) () = $ac_func;
26831 return f != $ac_func;
26836 rm -f conftest.$ac_objext conftest$ac_exeext
26837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26838 (eval $ac_link) 2>conftest.er1
26840 grep -v '^ *+' conftest.er1 >conftest.err
26842 cat conftest.err >&5
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); } &&
26845 { ac_try='test -z "$ac_c_werror_flag"
26846 || test ! -s conftest.err'
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; } &&
26852 { ac_try='test -s conftest$ac_exeext'
26853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854 (eval $ac_try) 2>&5
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); }; }; then
26858 eval "$as_ac_var=yes"
26860 echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26863 eval "$as_ac_var=no"
26865 rm -f conftest.err conftest.$ac_objext \
26866 conftest$ac_exeext conftest.$ac_ext
26868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26870 if test `eval echo '${'$as_ac_var'}'` = yes; then
26871 cat >>confdefs.h <<_ACEOF
26872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26879 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26880 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26881 if test "${ol_cv_header_linux_threads+set}" = set; then
26882 echo $ECHO_N "(cached) $ECHO_C" >&6
26884 cat >conftest.$ac_ext <<_ACEOF
26887 cat confdefs.h >>conftest.$ac_ext
26888 cat >>conftest.$ac_ext <<_ACEOF
26889 /* end confdefs.h. */
26890 #include <pthread.h>
26892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26893 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26894 ol_cv_header_linux_threads=yes
26896 ol_cv_header_linux_threads=no
26902 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26903 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26904 if test $ol_cv_header_linux_threads = yes; then
26906 cat >>confdefs.h <<\_ACEOF
26907 #define HAVE_LINUX_THREADS 1
26914 for ac_header in mach/cthreads.h
26916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26918 echo "$as_me:$LINENO: checking for $ac_header" >&5
26919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26921 echo $ECHO_N "(cached) $ECHO_C" >&6
26923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26926 # Is the header compilable?
26927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26929 cat >conftest.$ac_ext <<_ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h. */
26935 $ac_includes_default
26936 #include <$ac_header>
26938 rm -f conftest.$ac_objext
26939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26940 (eval $ac_compile) 2>conftest.er1
26942 grep -v '^ *+' conftest.er1 >conftest.err
26944 cat conftest.err >&5
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); } &&
26947 { ac_try='test -z "$ac_c_werror_flag"
26948 || test ! -s conftest.err'
26949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950 (eval $ac_try) 2>&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; } &&
26954 { ac_try='test -s conftest.$ac_objext'
26955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; }; then
26960 ac_header_compiler=yes
26962 echo "$as_me: failed program was:" >&5
26963 sed 's/^/| /' conftest.$ac_ext >&5
26965 ac_header_compiler=no
26967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26969 echo "${ECHO_T}$ac_header_compiler" >&6
26971 # Is the header present?
26972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26974 cat >conftest.$ac_ext <<_ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h. */
26980 #include <$ac_header>
26982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26985 grep -v '^ *+' conftest.er1 >conftest.err
26987 cat conftest.err >&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); } >/dev/null; then
26990 if test -s conftest.err; then
26991 ac_cpp_err=$ac_c_preproc_warn_flag
26992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26999 if test -z "$ac_cpp_err"; then
27000 ac_header_preproc=yes
27002 echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27005 ac_header_preproc=no
27007 rm -f conftest.err conftest.$ac_ext
27008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27009 echo "${ECHO_T}$ac_header_preproc" >&6
27011 # So? What about this header?
27012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27018 ac_header_preproc=yes
27021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27035 ## --------------------------------------------- ##
27036 ## Report this to <http://www.openldap.org/its/> ##
27037 ## --------------------------------------------- ##
27040 sed "s/^/$as_me: WARNING: /" >&2
27043 echo "$as_me:$LINENO: checking for $ac_header" >&5
27044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27046 echo $ECHO_N "(cached) $ECHO_C" >&6
27048 eval "$as_ac_Header=\$ac_header_preproc"
27050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27055 cat >>confdefs.h <<_ACEOF
27056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27064 for ac_header in lwp/lwp.h
27066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27068 echo "$as_me:$LINENO: checking for $ac_header" >&5
27069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27071 echo $ECHO_N "(cached) $ECHO_C" >&6
27073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27076 # Is the header compilable?
27077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27079 cat >conftest.$ac_ext <<_ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h. */
27085 $ac_includes_default
27086 #include <$ac_header>
27088 rm -f conftest.$ac_objext
27089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27090 (eval $ac_compile) 2>conftest.er1
27092 grep -v '^ *+' conftest.er1 >conftest.err
27094 cat conftest.err >&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } &&
27097 { ac_try='test -z "$ac_c_werror_flag"
27098 || test ! -s conftest.err'
27099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100 (eval $ac_try) 2>&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; } &&
27104 { ac_try='test -s conftest.$ac_objext'
27105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106 (eval $ac_try) 2>&5
27108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); }; }; then
27110 ac_header_compiler=yes
27112 echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27115 ac_header_compiler=no
27117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27119 echo "${ECHO_T}$ac_header_compiler" >&6
27121 # Is the header present?
27122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27124 cat >conftest.$ac_ext <<_ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h. */
27130 #include <$ac_header>
27132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27135 grep -v '^ *+' conftest.er1 >conftest.err
27137 cat conftest.err >&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } >/dev/null; then
27140 if test -s conftest.err; then
27141 ac_cpp_err=$ac_c_preproc_warn_flag
27142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27149 if test -z "$ac_cpp_err"; then
27150 ac_header_preproc=yes
27152 echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155 ac_header_preproc=no
27157 rm -f conftest.err conftest.$ac_ext
27158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27159 echo "${ECHO_T}$ac_header_preproc" >&6
27161 # So? What about this header?
27162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27168 ac_header_preproc=yes
27171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27185 ## --------------------------------------------- ##
27186 ## Report this to <http://www.openldap.org/its/> ##
27187 ## --------------------------------------------- ##
27190 sed "s/^/$as_me: WARNING: /" >&2
27193 echo "$as_me:$LINENO: checking for $ac_header" >&5
27194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27196 echo $ECHO_N "(cached) $ECHO_C" >&6
27198 eval "$as_ac_Header=\$ac_header_preproc"
27200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27205 cat >>confdefs.h <<_ACEOF
27206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27215 for ac_header in thread.h synch.h
27217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27219 echo "$as_me:$LINENO: checking for $ac_header" >&5
27220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27222 echo $ECHO_N "(cached) $ECHO_C" >&6
27224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27227 # Is the header compilable?
27228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27230 cat >conftest.$ac_ext <<_ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h. */
27236 $ac_includes_default
27237 #include <$ac_header>
27239 rm -f conftest.$ac_objext
27240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27241 (eval $ac_compile) 2>conftest.er1
27243 grep -v '^ *+' conftest.er1 >conftest.err
27245 cat conftest.err >&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } &&
27248 { ac_try='test -z "$ac_c_werror_flag"
27249 || test ! -s conftest.err'
27250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251 (eval $ac_try) 2>&5
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); }; } &&
27255 { ac_try='test -s conftest.$ac_objext'
27256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257 (eval $ac_try) 2>&5
27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260 (exit $ac_status); }; }; then
27261 ac_header_compiler=yes
27263 echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27266 ac_header_compiler=no
27268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27270 echo "${ECHO_T}$ac_header_compiler" >&6
27272 # Is the header present?
27273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27275 cat >conftest.$ac_ext <<_ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h. */
27281 #include <$ac_header>
27283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27286 grep -v '^ *+' conftest.er1 >conftest.err
27288 cat conftest.err >&5
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } >/dev/null; then
27291 if test -s conftest.err; then
27292 ac_cpp_err=$ac_c_preproc_warn_flag
27293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27300 if test -z "$ac_cpp_err"; then
27301 ac_header_preproc=yes
27303 echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27306 ac_header_preproc=no
27308 rm -f conftest.err conftest.$ac_ext
27309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27310 echo "${ECHO_T}$ac_header_preproc" >&6
27312 # So? What about this header?
27313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27319 ac_header_preproc=yes
27322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27336 ## --------------------------------------------- ##
27337 ## Report this to <http://www.openldap.org/its/> ##
27338 ## --------------------------------------------- ##
27341 sed "s/^/$as_me: WARNING: /" >&2
27344 echo "$as_me:$LINENO: checking for $ac_header" >&5
27345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 eval "$as_ac_Header=\$ac_header_preproc"
27351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27356 cat >>confdefs.h <<_ACEOF
27357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27366 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27367 cat >>confdefs.h <<\_ACEOF
27368 #define REENTRANT 1
27371 cat >>confdefs.h <<\_ACEOF
27372 #define _REENTRANT 1
27375 cat >>confdefs.h <<\_ACEOF
27376 #define THREAD_SAFE 1
27379 cat >>confdefs.h <<\_ACEOF
27380 #define _THREAD_SAFE 1
27383 cat >>confdefs.h <<\_ACEOF
27384 #define THREADSAFE 1
27387 cat >>confdefs.h <<\_ACEOF
27388 #define _THREADSAFE 1
27391 cat >>confdefs.h <<\_ACEOF
27392 #define _SGI_MP_SOURCE 1
27396 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27397 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27398 if test "${ol_cv_errno_thread_specific+set}" = set; then
27399 echo $ECHO_N "(cached) $ECHO_C" >&6
27402 cat >conftest.$ac_ext <<_ACEOF
27405 cat confdefs.h >>conftest.$ac_ext
27406 cat >>conftest.$ac_ext <<_ACEOF
27407 /* end confdefs.h. */
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419 (eval $ac_link) 2>conftest.er1
27421 grep -v '^ *+' conftest.er1 >conftest.err
27423 cat conftest.err >&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } &&
27426 { ac_try='test -z "$ac_c_werror_flag"
27427 || test ! -s conftest.err'
27428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429 (eval $ac_try) 2>&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; } &&
27433 { ac_try='test -s conftest$ac_exeext'
27434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435 (eval $ac_try) 2>&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }; then
27439 ol_cv_errno_thread_specific=yes
27441 echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27444 ol_cv_errno_thread_specific=no
27446 rm -f conftest.err conftest.$ac_objext \
27447 conftest$ac_exeext conftest.$ac_ext
27450 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27451 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27453 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27454 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27455 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27456 echo $ECHO_N "(cached) $ECHO_C" >&6
27459 cat >conftest.$ac_ext <<_ACEOF
27462 cat confdefs.h >>conftest.$ac_ext
27463 cat >>conftest.$ac_ext <<_ACEOF
27464 /* end confdefs.h. */
27474 rm -f conftest.$ac_objext conftest$ac_exeext
27475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27476 (eval $ac_link) 2>conftest.er1
27478 grep -v '^ *+' conftest.er1 >conftest.err
27480 cat conftest.err >&5
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); } &&
27483 { ac_try='test -z "$ac_c_werror_flag"
27484 || test ! -s conftest.err'
27485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486 (eval $ac_try) 2>&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; } &&
27490 { ac_try='test -s conftest$ac_exeext'
27491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492 (eval $ac_try) 2>&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); }; }; then
27496 ol_cv_h_errno_thread_specific=yes
27498 echo "$as_me: failed program was:" >&5
27499 sed 's/^/| /' conftest.$ac_ext >&5
27501 ol_cv_h_errno_thread_specific=no
27503 rm -f conftest.err conftest.$ac_objext \
27504 conftest$ac_exeext conftest.$ac_ext
27507 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27508 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27510 if test $ol_cv_errno_thread_specific != yes ||
27511 test $ol_cv_h_errno_thread_specific != yes ; then
27512 LIBS="$LTHREAD_LIBS $LIBS"
27518 if test $ol_link_threads = no ; then
27519 if test $ol_with_threads = yes ; then
27520 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27521 echo "$as_me: error: no suitable thread support" >&2;}
27522 { (exit 1); exit 1; }; }
27525 if test $ol_with_threads = auto ; then
27526 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27527 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27532 cat >>confdefs.h <<\_ACEOF
27533 #define NO_THREADS 1
27542 if test $ol_link_threads != no ; then
27544 cat >>confdefs.h <<\_ACEOF
27545 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27555 gethostbyname_r gethostbyaddr_r \
27558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27559 echo "$as_me:$LINENO: checking for $ac_func" >&5
27560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27561 if eval "test \"\${$as_ac_var+set}\" = set"; then
27562 echo $ECHO_N "(cached) $ECHO_C" >&6
27564 cat >conftest.$ac_ext <<_ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h. */
27570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27572 #define $ac_func innocuous_$ac_func
27574 /* System header to define __stub macros and hopefully few prototypes,
27575 which can conflict with char $ac_func (); below.
27576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27577 <limits.h> exists even on freestanding compilers. */
27580 # include <limits.h>
27582 # include <assert.h>
27587 /* Override any gcc2 internal prototype to avoid an error. */
27592 /* We use char because int might match the return type of a gcc2
27593 builtin and then its argument prototype would still apply. */
27595 /* The GNU C library defines this for functions which it implements
27596 to always fail with ENOSYS. Some functions are actually named
27597 something starting with __ and the normal name is an alias. */
27598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27601 char (*f) () = $ac_func;
27610 return f != $ac_func;
27615 rm -f conftest.$ac_objext conftest$ac_exeext
27616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27617 (eval $ac_link) 2>conftest.er1
27619 grep -v '^ *+' conftest.er1 >conftest.err
27621 cat conftest.err >&5
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); } &&
27624 { ac_try='test -z "$ac_c_werror_flag"
27625 || test ! -s conftest.err'
27626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627 (eval $ac_try) 2>&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); }; } &&
27631 { ac_try='test -s conftest$ac_exeext'
27632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633 (eval $ac_try) 2>&5
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; }; then
27637 eval "$as_ac_var=yes"
27639 echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27642 eval "$as_ac_var=no"
27644 rm -f conftest.err conftest.$ac_objext \
27645 conftest$ac_exeext conftest.$ac_ext
27647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27649 if test `eval echo '${'$as_ac_var'}'` = yes; then
27650 cat >>confdefs.h <<_ACEOF
27651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27658 if test "$ac_cv_func_ctime_r" = no ; then
27659 ol_cv_func_ctime_r_nargs=0
27661 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27662 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27663 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27666 cat >conftest.$ac_ext <<_ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27676 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27681 rm -f conftest.$ac_objext
27682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27683 (eval $ac_compile) 2>conftest.er1
27685 grep -v '^ *+' conftest.er1 >conftest.err
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
27690 { ac_try='test -z "$ac_c_werror_flag"
27691 || test ! -s conftest.err'
27692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693 (eval $ac_try) 2>&5
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; } &&
27697 { ac_try='test -s conftest.$ac_objext'
27698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699 (eval $ac_try) 2>&5
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); }; }; then
27703 ol_cv_func_ctime_r_nargs3=yes
27705 echo "$as_me: failed program was:" >&5
27706 sed 's/^/| /' conftest.$ac_ext >&5
27708 ol_cv_func_ctime_r_nargs3=no
27710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27712 cat >conftest.$ac_ext <<_ACEOF
27715 cat confdefs.h >>conftest.$ac_ext
27716 cat >>conftest.$ac_ext <<_ACEOF
27717 /* end confdefs.h. */
27722 time_t ti; char *buffer; ctime_r(&ti,buffer);
27727 rm -f conftest.$ac_objext
27728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27729 (eval $ac_compile) 2>conftest.er1
27731 grep -v '^ *+' conftest.er1 >conftest.err
27733 cat conftest.err >&5
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); } &&
27736 { ac_try='test -z "$ac_c_werror_flag"
27737 || test ! -s conftest.err'
27738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739 (eval $ac_try) 2>&5
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; } &&
27743 { ac_try='test -s conftest.$ac_objext'
27744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745 (eval $ac_try) 2>&5
27747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); }; }; then
27749 ol_cv_func_ctime_r_nargs2=yes
27751 echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27754 ol_cv_func_ctime_r_nargs2=no
27756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27758 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27759 test $ol_cv_func_ctime_r_nargs2 = no ; then
27761 ol_cv_func_ctime_r_nargs=3
27763 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27764 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27766 ol_cv_func_ctime_r_nargs=2
27769 ol_cv_func_ctime_r_nargs=0
27773 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27774 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27776 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27778 cat >>confdefs.h <<_ACEOF
27779 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27786 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27787 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27788 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27789 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27790 echo $ECHO_N "(cached) $ECHO_C" >&6
27792 cat >conftest.$ac_ext <<_ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27798 #include <sys/types.h>
27799 #include <sys/socket.h>
27800 #include <netinet/in.h>
27802 #define BUFSIZE (sizeof(struct hostent)+10)
27806 struct hostent hent; char buffer[BUFSIZE];
27807 int bufsize=BUFSIZE;int h_errno;
27808 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27809 buffer, bufsize, &h_errno);
27814 rm -f conftest.$ac_objext
27815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27816 (eval $ac_compile) 2>conftest.er1
27818 grep -v '^ *+' conftest.er1 >conftest.err
27820 cat conftest.err >&5
27821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822 (exit $ac_status); } &&
27823 { ac_try='test -z "$ac_c_werror_flag"
27824 || test ! -s conftest.err'
27825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27826 (eval $ac_try) 2>&5
27828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829 (exit $ac_status); }; } &&
27830 { ac_try='test -s conftest.$ac_objext'
27831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27832 (eval $ac_try) 2>&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; }; then
27836 ol_cv_func_gethostbyname_r_nargs5=yes
27838 echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27841 ol_cv_func_gethostbyname_r_nargs5=no
27843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27845 cat >conftest.$ac_ext <<_ACEOF
27848 cat confdefs.h >>conftest.$ac_ext
27849 cat >>conftest.$ac_ext <<_ACEOF
27850 /* end confdefs.h. */
27851 #include <sys/types.h>
27852 #include <sys/socket.h>
27853 #include <netinet/in.h>
27855 #define BUFSIZE (sizeof(struct hostent)+10)
27859 struct hostent hent;struct hostent *rhent;
27860 char buffer[BUFSIZE];
27861 int bufsize=BUFSIZE;int h_errno;
27862 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27868 rm -f conftest.$ac_objext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27870 (eval $ac_compile) 2>conftest.er1
27872 grep -v '^ *+' conftest.er1 >conftest.err
27874 cat conftest.err >&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } &&
27877 { ac_try='test -z "$ac_c_werror_flag"
27878 || test ! -s conftest.err'
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; } &&
27884 { ac_try='test -s conftest.$ac_objext'
27885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886 (eval $ac_try) 2>&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; }; then
27890 ol_cv_func_gethostbyname_r_nargs6=yes
27892 echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27895 ol_cv_func_gethostbyname_r_nargs6=no
27897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27899 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27900 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27902 ol_cv_func_gethostbyname_r_nargs=5
27904 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27905 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27907 ol_cv_func_gethostbyname_r_nargs=6
27910 ol_cv_func_gethostbyname_r_nargs=0
27914 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27915 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27916 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27918 cat >>confdefs.h <<_ACEOF
27919 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27925 ol_cv_func_gethostbyname_r_nargs=0
27928 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27929 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27930 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27931 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27932 echo $ECHO_N "(cached) $ECHO_C" >&6
27934 cat >conftest.$ac_ext <<_ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27940 #include <sys/types.h>
27941 #include <sys/socket.h>
27942 #include <netinet/in.h>
27944 #define BUFSIZE (sizeof(struct hostent)+10)
27948 struct hostent hent; char buffer[BUFSIZE];
27949 struct in_addr add;
27950 size_t alen=sizeof(struct in_addr);
27951 int bufsize=BUFSIZE;int h_errno;
27952 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27953 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27958 rm -f conftest.$ac_objext
27959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27960 (eval $ac_compile) 2>conftest.er1
27962 grep -v '^ *+' conftest.er1 >conftest.err
27964 cat conftest.err >&5
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); } &&
27967 { ac_try='test -z "$ac_c_werror_flag"
27968 || test ! -s conftest.err'
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; } &&
27974 { ac_try='test -s conftest.$ac_objext'
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
27980 ol_cv_func_gethostbyaddr_r_nargs7=yes
27982 echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27985 ol_cv_func_gethostbyaddr_r_nargs7=no
27987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27989 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 #include <sys/types.h>
27996 #include <sys/socket.h>
27997 #include <netinet/in.h>
27999 #define BUFSIZE (sizeof(struct hostent)+10)
28003 struct hostent hent;
28004 struct hostent *rhent; char buffer[BUFSIZE];
28005 struct in_addr add;
28006 size_t alen=sizeof(struct in_addr);
28007 int bufsize=BUFSIZE;int h_errno;
28008 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28009 alen, AF_INET, &hent, buffer, bufsize,
28015 rm -f conftest.$ac_objext
28016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28017 (eval $ac_compile) 2>conftest.er1
28019 grep -v '^ *+' conftest.er1 >conftest.err
28021 cat conftest.err >&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } &&
28024 { ac_try='test -z "$ac_c_werror_flag"
28025 || test ! -s conftest.err'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; } &&
28031 { ac_try='test -s conftest.$ac_objext'
28032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033 (eval $ac_try) 2>&5
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; }; then
28037 ol_cv_func_gethostbyaddr_r_nargs8=yes
28039 echo "$as_me: failed program was:" >&5
28040 sed 's/^/| /' conftest.$ac_ext >&5
28042 ol_cv_func_gethostbyaddr_r_nargs8=no
28044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28046 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28047 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28049 ol_cv_func_gethostbyaddr_r_nargs=7
28051 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28052 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28054 ol_cv_func_gethostbyaddr_r_nargs=8
28057 ol_cv_func_gethostbyaddr_r_nargs=0
28061 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28062 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
28063 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28065 cat >>confdefs.h <<_ACEOF
28066 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28072 ol_cv_func_gethostbyaddr_r_nargs=0
28077 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28078 ol_cv_berkeley_db=no
28080 for ac_header in db.h
28082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28084 echo "$as_me:$LINENO: checking for $ac_header" >&5
28085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28087 echo $ECHO_N "(cached) $ECHO_C" >&6
28089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28092 # Is the header compilable?
28093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28095 cat >conftest.$ac_ext <<_ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h. */
28101 $ac_includes_default
28102 #include <$ac_header>
28104 rm -f conftest.$ac_objext
28105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28106 (eval $ac_compile) 2>conftest.er1
28108 grep -v '^ *+' conftest.er1 >conftest.err
28110 cat conftest.err >&5
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); } &&
28113 { ac_try='test -z "$ac_c_werror_flag"
28114 || test ! -s conftest.err'
28115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28116 (eval $ac_try) 2>&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; } &&
28120 { ac_try='test -s conftest.$ac_objext'
28121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122 (eval $ac_try) 2>&5
28124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125 (exit $ac_status); }; }; then
28126 ac_header_compiler=yes
28128 echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ac_header_compiler=no
28133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28135 echo "${ECHO_T}$ac_header_compiler" >&6
28137 # Is the header present?
28138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28140 cat >conftest.$ac_ext <<_ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28146 #include <$ac_header>
28148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28151 grep -v '^ *+' conftest.er1 >conftest.err
28153 cat conftest.err >&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); } >/dev/null; then
28156 if test -s conftest.err; then
28157 ac_cpp_err=$ac_c_preproc_warn_flag
28158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28165 if test -z "$ac_cpp_err"; then
28166 ac_header_preproc=yes
28168 echo "$as_me: failed program was:" >&5
28169 sed 's/^/| /' conftest.$ac_ext >&5
28171 ac_header_preproc=no
28173 rm -f conftest.err conftest.$ac_ext
28174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28175 echo "${ECHO_T}$ac_header_preproc" >&6
28177 # So? What about this header?
28178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28184 ac_header_preproc=yes
28187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28201 ## --------------------------------------------- ##
28202 ## Report this to <http://www.openldap.org/its/> ##
28203 ## --------------------------------------------- ##
28206 sed "s/^/$as_me: WARNING: /" >&2
28209 echo "$as_me:$LINENO: checking for $ac_header" >&5
28210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28214 eval "$as_ac_Header=\$ac_header_preproc"
28216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28221 cat >>confdefs.h <<_ACEOF
28222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28229 if test $ac_cv_header_db_h = yes; then
28230 echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28231 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
28232 if test "${ol_cv_bdb_major+set}" = set; then
28233 echo $ECHO_N "(cached) $ECHO_C" >&6
28236 cat >conftest.$ac_ext <<_ACEOF
28239 #ifndef DB_VERSION_MAJOR
28240 # define DB_VERSION_MAJOR 1
28242 __db_version DB_VERSION_MAJOR
28245 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28246 ol_cv_bdb_major=${3}
28249 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28250 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28251 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28252 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28253 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28254 { (exit 1); exit 1; }; } ;;
28257 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28258 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
28259 if test "${ol_cv_bdb_minor+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28263 cat >conftest.$ac_ext <<_ACEOF
28266 #ifndef DB_VERSION_MINOR
28267 # define DB_VERSION_MINOR 0
28269 __db_version DB_VERSION_MINOR
28272 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28273 ol_cv_bdb_minor=${3}
28276 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28277 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28278 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28279 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28280 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28281 { (exit 1); exit 1; }; } ;;
28284 echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28285 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
28286 if test "${ol_cv_bdb_compat+set}" = set; then
28287 echo $ECHO_N "(cached) $ECHO_C" >&6
28290 cat >conftest.$ac_ext <<_ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h. */
28299 /* this check could be improved */
28300 #ifndef DB_VERSION_MAJOR
28301 # define DB_VERSION_MAJOR 1
28303 #ifndef DB_VERSION_MINOR
28304 # define DB_VERSION_MINOR 0
28307 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28309 /* require 4.4 or later */
28310 #if DB_VERSION_MM >= 0x0404
28311 __db_version_compat
28315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28316 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28317 ol_cv_bdb_compat=yes
28319 ol_cv_bdb_compat=no
28324 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28325 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
28328 if test $ol_cv_bdb_compat != yes ; then
28329 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28330 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28331 { (exit 1); exit 1; }; }
28336 if test $ol_cv_bdb_major = 4 ; then
28337 if test $ol_cv_lib_db = no ; then
28338 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28339 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
28340 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28344 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28346 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28348 cat >conftest.$ac_ext <<_ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28355 #ifdef HAVE_DB_185_H
28356 # include <db_185.h>
28361 #ifndef DB_VERSION_MAJOR
28362 # define DB_VERSION_MAJOR 1
28366 #define NULL ((void*)0)
28373 #if DB_VERSION_MAJOR > 2
28374 db_env_create( NULL, 0 );
28375 #elif DB_VERSION_MAJOR > 1
28376 db_appexit( NULL );
28378 (void) dbopen( NULL, 0, 0, 0, NULL);
28385 rm -f conftest.$ac_objext conftest$ac_exeext
28386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28387 (eval $ac_link) 2>conftest.er1
28389 grep -v '^ *+' conftest.er1 >conftest.err
28391 cat conftest.err >&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); } &&
28394 { ac_try='test -z "$ac_c_werror_flag"
28395 || test ! -s conftest.err'
28396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397 (eval $ac_try) 2>&5
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; } &&
28401 { ac_try='test -s conftest$ac_exeext'
28402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403 (eval $ac_try) 2>&5
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; }; then
28407 ol_cv_db_db_4_dot_m=yes
28409 echo "$as_me: failed program was:" >&5
28410 sed 's/^/| /' conftest.$ac_ext >&5
28412 ol_cv_db_db_4_dot_m=no
28414 rm -f conftest.err conftest.$ac_objext \
28415 conftest$ac_exeext conftest.$ac_ext
28420 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28421 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
28423 if test $ol_cv_db_db_4_dot_m = yes ; then
28424 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28428 if test $ol_cv_lib_db = no ; then
28429 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28430 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
28431 if test "${ol_cv_db_db4m+set}" = set; then
28432 echo $ECHO_N "(cached) $ECHO_C" >&6
28435 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28437 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28439 cat >conftest.$ac_ext <<_ACEOF
28442 cat confdefs.h >>conftest.$ac_ext
28443 cat >>conftest.$ac_ext <<_ACEOF
28444 /* end confdefs.h. */
28446 #ifdef HAVE_DB_185_H
28447 # include <db_185.h>
28452 #ifndef DB_VERSION_MAJOR
28453 # define DB_VERSION_MAJOR 1
28457 #define NULL ((void*)0)
28464 #if DB_VERSION_MAJOR > 2
28465 db_env_create( NULL, 0 );
28466 #elif DB_VERSION_MAJOR > 1
28467 db_appexit( NULL );
28469 (void) dbopen( NULL, 0, 0, 0, NULL);
28476 rm -f conftest.$ac_objext conftest$ac_exeext
28477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28478 (eval $ac_link) 2>conftest.er1
28480 grep -v '^ *+' conftest.er1 >conftest.err
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
28485 { ac_try='test -z "$ac_c_werror_flag"
28486 || test ! -s conftest.err'
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; } &&
28492 { ac_try='test -s conftest$ac_exeext'
28493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; }; then
28500 echo "$as_me: failed program was:" >&5
28501 sed 's/^/| /' conftest.$ac_ext >&5
28505 rm -f conftest.err conftest.$ac_objext \
28506 conftest$ac_exeext conftest.$ac_ext
28511 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28512 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28514 if test $ol_cv_db_db4m = yes ; then
28515 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28519 if test $ol_cv_lib_db = no ; then
28520 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28521 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28522 if test "${ol_cv_db_db_4m+set}" = set; then
28523 echo $ECHO_N "(cached) $ECHO_C" >&6
28526 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28528 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28530 cat >conftest.$ac_ext <<_ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28537 #ifdef HAVE_DB_185_H
28538 # include <db_185.h>
28543 #ifndef DB_VERSION_MAJOR
28544 # define DB_VERSION_MAJOR 1
28548 #define NULL ((void*)0)
28555 #if DB_VERSION_MAJOR > 2
28556 db_env_create( NULL, 0 );
28557 #elif DB_VERSION_MAJOR > 1
28558 db_appexit( NULL );
28560 (void) dbopen( NULL, 0, 0, 0, NULL);
28567 rm -f conftest.$ac_objext conftest$ac_exeext
28568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28569 (eval $ac_link) 2>conftest.er1
28571 grep -v '^ *+' conftest.er1 >conftest.err
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } &&
28576 { ac_try='test -z "$ac_c_werror_flag"
28577 || test ! -s conftest.err'
28578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579 (eval $ac_try) 2>&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; } &&
28583 { ac_try='test -s conftest$ac_exeext'
28584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585 (eval $ac_try) 2>&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); }; }; then
28591 echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28596 rm -f conftest.err conftest.$ac_objext \
28597 conftest$ac_exeext conftest.$ac_ext
28602 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28603 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28605 if test $ol_cv_db_db_4m = yes ; then
28606 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28610 if test $ol_cv_lib_db = no ; then
28611 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28612 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28613 if test "${ol_cv_db_db_4_m+set}" = set; then
28614 echo $ECHO_N "(cached) $ECHO_C" >&6
28617 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28619 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28621 cat >conftest.$ac_ext <<_ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h. */
28628 #ifdef HAVE_DB_185_H
28629 # include <db_185.h>
28634 #ifndef DB_VERSION_MAJOR
28635 # define DB_VERSION_MAJOR 1
28639 #define NULL ((void*)0)
28646 #if DB_VERSION_MAJOR > 2
28647 db_env_create( NULL, 0 );
28648 #elif DB_VERSION_MAJOR > 1
28649 db_appexit( NULL );
28651 (void) dbopen( NULL, 0, 0, 0, NULL);
28658 rm -f conftest.$ac_objext conftest$ac_exeext
28659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28660 (eval $ac_link) 2>conftest.er1
28662 grep -v '^ *+' conftest.er1 >conftest.err
28664 cat conftest.err >&5
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); } &&
28667 { ac_try='test -z "$ac_c_werror_flag"
28668 || test ! -s conftest.err'
28669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670 (eval $ac_try) 2>&5
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); }; } &&
28674 { ac_try='test -s conftest$ac_exeext'
28675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676 (eval $ac_try) 2>&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; }; then
28680 ol_cv_db_db_4_m=yes
28682 echo "$as_me: failed program was:" >&5
28683 sed 's/^/| /' conftest.$ac_ext >&5
28687 rm -f conftest.err conftest.$ac_objext \
28688 conftest$ac_exeext conftest.$ac_ext
28693 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28694 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28696 if test $ol_cv_db_db_4_m = yes ; then
28697 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28701 if test $ol_cv_lib_db = no ; then
28702 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28703 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28704 if test "${ol_cv_db_db_4+set}" = set; then
28705 echo $ECHO_N "(cached) $ECHO_C" >&6
28710 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28712 cat >conftest.$ac_ext <<_ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h. */
28719 #ifdef HAVE_DB_185_H
28720 # include <db_185.h>
28725 #ifndef DB_VERSION_MAJOR
28726 # define DB_VERSION_MAJOR 1
28730 #define NULL ((void*)0)
28737 #if DB_VERSION_MAJOR > 2
28738 db_env_create( NULL, 0 );
28739 #elif DB_VERSION_MAJOR > 1
28740 db_appexit( NULL );
28742 (void) dbopen( NULL, 0, 0, 0, NULL);
28749 rm -f conftest.$ac_objext conftest$ac_exeext
28750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28751 (eval $ac_link) 2>conftest.er1
28753 grep -v '^ *+' conftest.er1 >conftest.err
28755 cat conftest.err >&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); } &&
28758 { ac_try='test -z "$ac_c_werror_flag"
28759 || test ! -s conftest.err'
28760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28761 (eval $ac_try) 2>&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); }; } &&
28765 { ac_try='test -s conftest$ac_exeext'
28766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767 (eval $ac_try) 2>&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); }; }; then
28773 echo "$as_me: failed program was:" >&5
28774 sed 's/^/| /' conftest.$ac_ext >&5
28778 rm -f conftest.err conftest.$ac_objext \
28779 conftest$ac_exeext conftest.$ac_ext
28784 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28785 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28787 if test $ol_cv_db_db_4 = yes ; then
28788 ol_cv_lib_db=-ldb-4
28792 if test $ol_cv_lib_db = no ; then
28793 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28794 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28795 if test "${ol_cv_db_db4+set}" = set; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28803 cat >conftest.$ac_ext <<_ACEOF
28806 cat confdefs.h >>conftest.$ac_ext
28807 cat >>conftest.$ac_ext <<_ACEOF
28808 /* end confdefs.h. */
28810 #ifdef HAVE_DB_185_H
28811 # include <db_185.h>
28816 #ifndef DB_VERSION_MAJOR
28817 # define DB_VERSION_MAJOR 1
28821 #define NULL ((void*)0)
28828 #if DB_VERSION_MAJOR > 2
28829 db_env_create( NULL, 0 );
28830 #elif DB_VERSION_MAJOR > 1
28831 db_appexit( NULL );
28833 (void) dbopen( NULL, 0, 0, 0, NULL);
28840 rm -f conftest.$ac_objext conftest$ac_exeext
28841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28842 (eval $ac_link) 2>conftest.er1
28844 grep -v '^ *+' conftest.er1 >conftest.err
28846 cat conftest.err >&5
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } &&
28849 { ac_try='test -z "$ac_c_werror_flag"
28850 || test ! -s conftest.err'
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; } &&
28856 { ac_try='test -s conftest$ac_exeext'
28857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 (eval $ac_try) 2>&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; }; then
28864 echo "$as_me: failed program was:" >&5
28865 sed 's/^/| /' conftest.$ac_ext >&5
28869 rm -f conftest.err conftest.$ac_objext \
28870 conftest$ac_exeext conftest.$ac_ext
28875 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28876 echo "${ECHO_T}$ol_cv_db_db4" >&6
28878 if test $ol_cv_db_db4 = yes ; then
28883 if test $ol_cv_lib_db = no ; then
28884 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28885 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28886 if test "${ol_cv_db_db+set}" = set; then
28887 echo $ECHO_N "(cached) $ECHO_C" >&6
28892 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28894 cat >conftest.$ac_ext <<_ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h. */
28901 #ifdef HAVE_DB_185_H
28902 # include <db_185.h>
28907 #ifndef DB_VERSION_MAJOR
28908 # define DB_VERSION_MAJOR 1
28912 #define NULL ((void*)0)
28919 #if DB_VERSION_MAJOR > 2
28920 db_env_create( NULL, 0 );
28921 #elif DB_VERSION_MAJOR > 1
28922 db_appexit( NULL );
28924 (void) dbopen( NULL, 0, 0, 0, NULL);
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28933 (eval $ac_link) 2>conftest.er1
28935 grep -v '^ *+' conftest.er1 >conftest.err
28937 cat conftest.err >&5
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
28940 { ac_try='test -z "$ac_c_werror_flag"
28941 || test ! -s conftest.err'
28942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943 (eval $ac_try) 2>&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest$ac_exeext'
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28955 echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28960 rm -f conftest.err conftest.$ac_objext \
28961 conftest$ac_exeext conftest.$ac_ext
28966 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28967 echo "${ECHO_T}$ol_cv_db_db" >&6
28969 if test $ol_cv_db_db = yes ; then
28975 if test $ol_cv_lib_db = no ; then
28976 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28977 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
28978 if test "${ol_cv_db_none+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28984 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28986 cat >conftest.$ac_ext <<_ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h. */
28993 #ifdef HAVE_DB_185_H
28994 # include <db_185.h>
28999 #ifndef DB_VERSION_MAJOR
29000 # define DB_VERSION_MAJOR 1
29004 #define NULL ((void*)0)
29011 #if DB_VERSION_MAJOR > 2
29012 db_env_create( NULL, 0 );
29013 #elif DB_VERSION_MAJOR > 1
29014 db_appexit( NULL );
29016 (void) dbopen( NULL, 0, 0, 0, NULL);
29023 rm -f conftest.$ac_objext conftest$ac_exeext
29024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29025 (eval $ac_link) 2>conftest.er1
29027 grep -v '^ *+' conftest.er1 >conftest.err
29029 cat conftest.err >&5
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); } &&
29032 { ac_try='test -z "$ac_c_werror_flag"
29033 || test ! -s conftest.err'
29034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29035 (eval $ac_try) 2>&5
29037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038 (exit $ac_status); }; } &&
29039 { ac_try='test -s conftest$ac_exeext'
29040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29041 (eval $ac_try) 2>&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); }; }; then
29047 echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29052 rm -f conftest.err conftest.$ac_objext \
29053 conftest$ac_exeext conftest.$ac_ext
29058 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29059 echo "${ECHO_T}$ol_cv_db_none" >&6
29061 if test $ol_cv_db_none = yes ; then
29067 if test "$ol_cv_lib_db" != no ; then
29068 ol_cv_berkeley_db=yes
29069 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29070 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
29071 if test "${ol_cv_berkeley_db_version+set}" = set; then
29072 echo $ECHO_N "(cached) $ECHO_C" >&6
29076 LIBS="$LTHREAD_LIBS $LIBS"
29077 if test $ol_cv_lib_db != yes ; then
29078 LIBS="$ol_cv_lib_db $LIBS"
29081 if test "$cross_compiling" = yes; then
29082 ol_cv_berkeley_db_version=cross
29084 cat >conftest.$ac_ext <<_ACEOF
29087 cat confdefs.h >>conftest.$ac_ext
29088 cat >>conftest.$ac_ext <<_ACEOF
29089 /* end confdefs.h. */
29091 #ifdef HAVE_DB_185_H
29096 #ifndef DB_VERSION_MAJOR
29097 # define DB_VERSION_MAJOR 1
29100 #define NULL ((void *)0)
29104 #if DB_VERSION_MAJOR > 1
29106 int major, minor, patch;
29108 version = db_version( &major, &minor, &patch );
29110 if( major != DB_VERSION_MAJOR ||
29111 minor != DB_VERSION_MINOR ||
29112 patch != DB_VERSION_PATCH )
29114 printf("Berkeley DB version mismatch\n"
29115 "\theader: %s\n\tlibrary: %s\n",
29116 DB_VERSION_STRING, version);
29124 rm -f conftest$ac_exeext
29125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29126 (eval $ac_link) 2>&5
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29131 (eval $ac_try) 2>&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; }; then
29135 ol_cv_berkeley_db_version=yes
29137 echo "$as_me: program exited with status $ac_status" >&5
29138 echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29141 ( exit $ac_status )
29142 ol_cv_berkeley_db_version=no
29144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29150 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29151 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
29153 if test $ol_cv_berkeley_db_version = no ; then
29154 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29155 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29156 { (exit 1); exit 1; }; }
29159 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29160 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
29161 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29162 echo $ECHO_N "(cached) $ECHO_C" >&6
29166 LIBS="$LTHREAD_LIBS $LIBS"
29167 if test $ol_cv_lib_db != yes ; then
29168 LIBS="$ol_cv_lib_db $LIBS"
29171 if test "$cross_compiling" = yes; then
29172 ol_cv_berkeley_db_thread=cross
29174 cat >conftest.$ac_ext <<_ACEOF
29177 cat confdefs.h >>conftest.$ac_ext
29178 cat >>conftest.$ac_ext <<_ACEOF
29179 /* end confdefs.h. */
29181 #ifdef HAVE_DB_185_H
29187 #define NULL ((void *)0)
29192 u_int32_t flags = DB_CREATE |
29198 #if DB_VERSION_MAJOR > 2
29199 DB_ENV *env = NULL;
29201 rc = db_env_create( &env, 0 );
29203 flags |= DB_INIT_MPOOL;
29204 #ifdef DB_MPOOL_PRIVATE
29205 flags |= DB_MPOOL_PRIVATE;
29209 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29213 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29214 rc = (env->open)( env, NULL, flags, 0 );
29216 rc = (env->open)( env, NULL, NULL, flags, 0 );
29220 rc = env->close( env, 0 );
29224 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29230 memset( &env, '\0', sizeof(env) );
29232 rc = db_appinit( NULL, NULL, &env, flags );
29235 db_appexit( &env );
29238 unlink("__db_mpool.share");
29239 unlink("__db_lock.share");
29245 rm -f conftest$ac_exeext
29246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29247 (eval $ac_link) 2>&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252 (eval $ac_try) 2>&5
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
29256 ol_cv_berkeley_db_thread=yes
29258 echo "$as_me: program exited with status $ac_status" >&5
29259 echo "$as_me: failed program was:" >&5
29260 sed 's/^/| /' conftest.$ac_ext >&5
29262 ( exit $ac_status )
29263 ol_cv_berkeley_db_thread=no
29265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29271 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29272 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29274 if test $ol_cv_berkeley_db_thread != no ; then
29276 cat >>confdefs.h <<\_ACEOF
29277 #define HAVE_BERKELEY_DB_THREAD 1
29286 if test $ol_cv_berkeley_db = no ; then
29287 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29288 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29289 { (exit 1); exit 1; }; }
29293 cat >>confdefs.h <<\_ACEOF
29294 #define HAVE_BERKELEY_DB 1
29298 if test $ol_cv_lib_db != yes ; then
29299 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29302 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29308 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29309 BUILD_LIBS_DYNAMIC=shared
29311 cat >>confdefs.h <<\_ACEOF
29312 #define LDAP_LIBS_DYNAMIC 1
29317 BUILD_LIBS_DYNAMIC=static
29321 if test $ol_enable_wrappers != no ; then
29323 for ac_header in tcpd.h
29325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29327 echo "$as_me:$LINENO: checking for $ac_header" >&5
29328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29335 # Is the header compilable?
29336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29338 cat >conftest.$ac_ext <<_ACEOF
29341 cat confdefs.h >>conftest.$ac_ext
29342 cat >>conftest.$ac_ext <<_ACEOF
29343 /* end confdefs.h. */
29344 $ac_includes_default
29345 #include <$ac_header>
29347 rm -f conftest.$ac_objext
29348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29349 (eval $ac_compile) 2>conftest.er1
29351 grep -v '^ *+' conftest.er1 >conftest.err
29353 cat conftest.err >&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); } &&
29356 { ac_try='test -z "$ac_c_werror_flag"
29357 || test ! -s conftest.err'
29358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359 (eval $ac_try) 2>&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; } &&
29363 { ac_try='test -s conftest.$ac_objext'
29364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29365 (eval $ac_try) 2>&5
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; }; then
29369 ac_header_compiler=yes
29371 echo "$as_me: failed program was:" >&5
29372 sed 's/^/| /' conftest.$ac_ext >&5
29374 ac_header_compiler=no
29376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29378 echo "${ECHO_T}$ac_header_compiler" >&6
29380 # Is the header present?
29381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29383 cat >conftest.$ac_ext <<_ACEOF
29386 cat confdefs.h >>conftest.$ac_ext
29387 cat >>conftest.$ac_ext <<_ACEOF
29388 /* end confdefs.h. */
29389 #include <$ac_header>
29391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29394 grep -v '^ *+' conftest.er1 >conftest.err
29396 cat conftest.err >&5
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); } >/dev/null; then
29399 if test -s conftest.err; then
29400 ac_cpp_err=$ac_c_preproc_warn_flag
29401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29408 if test -z "$ac_cpp_err"; then
29409 ac_header_preproc=yes
29411 echo "$as_me: failed program was:" >&5
29412 sed 's/^/| /' conftest.$ac_ext >&5
29414 ac_header_preproc=no
29416 rm -f conftest.err conftest.$ac_ext
29417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29418 echo "${ECHO_T}$ac_header_preproc" >&6
29420 # So? What about this header?
29421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29427 ac_header_preproc=yes
29430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29444 ## --------------------------------------------- ##
29445 ## Report this to <http://www.openldap.org/its/> ##
29446 ## --------------------------------------------- ##
29449 sed "s/^/$as_me: WARNING: /" >&2
29452 echo "$as_me:$LINENO: checking for $ac_header" >&5
29453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29455 echo $ECHO_N "(cached) $ECHO_C" >&6
29457 eval "$as_ac_Header=\$ac_header_preproc"
29459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29464 cat >>confdefs.h <<_ACEOF
29465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29468 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29469 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29471 LIBS="$LIBS -lwrap"
29472 cat >conftest.$ac_ext <<_ACEOF
29475 cat confdefs.h >>conftest.$ac_ext
29476 cat >>conftest.$ac_ext <<_ACEOF
29477 /* end confdefs.h. */
29480 int allow_severity = 0;
29481 int deny_severity = 0;
29483 struct request_info *req;
29495 rm -f conftest.$ac_objext conftest$ac_exeext
29496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29497 (eval $ac_link) 2>conftest.er1
29499 grep -v '^ *+' conftest.er1 >conftest.err
29501 cat conftest.err >&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); } &&
29504 { ac_try='test -z "$ac_c_werror_flag"
29505 || test ! -s conftest.err'
29506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507 (eval $ac_try) 2>&5
29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510 (exit $ac_status); }; } &&
29511 { ac_try='test -s conftest$ac_exeext'
29512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513 (eval $ac_try) 2>&5
29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 (exit $ac_status); }; }; then
29517 echo "$as_me:$LINENO: result: -lwrap" >&5
29518 echo "${ECHO_T}-lwrap" >&6
29522 echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29527 cat >conftest.$ac_ext <<_ACEOF
29530 cat confdefs.h >>conftest.$ac_ext
29531 cat >>conftest.$ac_ext <<_ACEOF
29532 /* end confdefs.h. */
29535 int allow_severity = 0;
29536 int deny_severity = 0;
29538 struct request_info *req;
29550 rm -f conftest.$ac_objext conftest$ac_exeext
29551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29552 (eval $ac_link) 2>conftest.er1
29554 grep -v '^ *+' conftest.er1 >conftest.err
29556 cat conftest.err >&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); } &&
29559 { ac_try='test -z "$ac_c_werror_flag"
29560 || test ! -s conftest.err'
29561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562 (eval $ac_try) 2>&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest$ac_exeext'
29567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29568 (eval $ac_try) 2>&5
29570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29571 (exit $ac_status); }; }; then
29572 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29573 echo "${ECHO_T}-lwrap -lnsl" >&6
29575 LIBS="$save_LIBS -lnsl"
29577 echo "$as_me: failed program was:" >&5
29578 sed 's/^/| /' conftest.$ac_ext >&5
29581 echo "$as_me:$LINENO: result: no" >&5
29582 echo "${ECHO_T}no" >&6
29586 rm -f conftest.err conftest.$ac_objext \
29587 conftest$ac_exeext conftest.$ac_ext
29589 rm -f conftest.err conftest.$ac_objext \
29590 conftest$ac_exeext conftest.$ac_ext
29598 if test $have_wrappers = yes ; then
29600 cat >>confdefs.h <<\_ACEOF
29601 #define HAVE_TCPD 1
29605 elif test $ol_enable_wrappers = yes ; then
29606 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29607 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29608 { (exit 1); exit 1; }; }
29610 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29611 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29616 if test $ol_enable_syslog != no ; then
29617 echo "$as_me:$LINENO: checking for openlog" >&5
29618 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29619 if test "${ac_cv_func_openlog+set}" = set; then
29620 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 cat >conftest.$ac_ext <<_ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h. */
29628 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29630 #define openlog innocuous_openlog
29632 /* System header to define __stub macros and hopefully few prototypes,
29633 which can conflict with char openlog (); below.
29634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29635 <limits.h> exists even on freestanding compilers. */
29638 # include <limits.h>
29640 # include <assert.h>
29645 /* Override any gcc2 internal prototype to avoid an error. */
29650 /* We use char because int might match the return type of a gcc2
29651 builtin and then its argument prototype would still apply. */
29653 /* The GNU C library defines this for functions which it implements
29654 to always fail with ENOSYS. Some functions are actually named
29655 something starting with __ and the normal name is an alias. */
29656 #if defined (__stub_openlog) || defined (__stub___openlog)
29659 char (*f) () = openlog;
29668 return f != openlog;
29673 rm -f conftest.$ac_objext conftest$ac_exeext
29674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29675 (eval $ac_link) 2>conftest.er1
29677 grep -v '^ *+' conftest.er1 >conftest.err
29679 cat conftest.err >&5
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); } &&
29682 { ac_try='test -z "$ac_c_werror_flag"
29683 || test ! -s conftest.err'
29684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685 (eval $ac_try) 2>&5
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); }; } &&
29689 { ac_try='test -s conftest$ac_exeext'
29690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691 (eval $ac_try) 2>&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; }; then
29695 ac_cv_func_openlog=yes
29697 echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29700 ac_cv_func_openlog=no
29702 rm -f conftest.err conftest.$ac_objext \
29703 conftest$ac_exeext conftest.$ac_ext
29705 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29706 echo "${ECHO_T}$ac_cv_func_openlog" >&6
29708 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29709 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29710 echo "$as_me: error: could not find syslog" >&2;}
29711 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29713 ol_enable_syslog=$ac_cv_func_openlog
29717 if test $ol_enable_sql != no ; then
29720 for ac_header in sql.h sqlext.h
29722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29724 echo "$as_me:$LINENO: checking for $ac_header" >&5
29725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29732 # Is the header compilable?
29733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29735 cat >conftest.$ac_ext <<_ACEOF
29738 cat confdefs.h >>conftest.$ac_ext
29739 cat >>conftest.$ac_ext <<_ACEOF
29740 /* end confdefs.h. */
29741 $ac_includes_default
29742 #include <$ac_header>
29744 rm -f conftest.$ac_objext
29745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29746 (eval $ac_compile) 2>conftest.er1
29748 grep -v '^ *+' conftest.er1 >conftest.err
29750 cat conftest.err >&5
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); } &&
29753 { ac_try='test -z "$ac_c_werror_flag"
29754 || test ! -s conftest.err'
29755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756 (eval $ac_try) 2>&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; } &&
29760 { ac_try='test -s conftest.$ac_objext'
29761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762 (eval $ac_try) 2>&5
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); }; }; then
29766 ac_header_compiler=yes
29768 echo "$as_me: failed program was:" >&5
29769 sed 's/^/| /' conftest.$ac_ext >&5
29771 ac_header_compiler=no
29773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29775 echo "${ECHO_T}$ac_header_compiler" >&6
29777 # Is the header present?
29778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29780 cat >conftest.$ac_ext <<_ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h. */
29786 #include <$ac_header>
29788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29791 grep -v '^ *+' conftest.er1 >conftest.err
29793 cat conftest.err >&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); } >/dev/null; then
29796 if test -s conftest.err; then
29797 ac_cpp_err=$ac_c_preproc_warn_flag
29798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29805 if test -z "$ac_cpp_err"; then
29806 ac_header_preproc=yes
29808 echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29811 ac_header_preproc=no
29813 rm -f conftest.err conftest.$ac_ext
29814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29815 echo "${ECHO_T}$ac_header_preproc" >&6
29817 # So? What about this header?
29818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29824 ac_header_preproc=yes
29827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29841 ## --------------------------------------------- ##
29842 ## Report this to <http://www.openldap.org/its/> ##
29843 ## --------------------------------------------- ##
29846 sed "s/^/$as_me: WARNING: /" >&2
29849 echo "$as_me:$LINENO: checking for $ac_header" >&5
29850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29852 echo $ECHO_N "(cached) $ECHO_C" >&6
29854 eval "$as_ac_Header=\$ac_header_preproc"
29856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29861 cat >>confdefs.h <<_ACEOF
29862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29867 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29868 echo "$as_me: error: could not locate SQL headers" >&2;}
29869 { (exit 1); exit 1; }; }
29877 LIBS="$LTHREAD_LIBS"
29879 if test $ol_with_odbc = auto ; then
29880 ol_with_odbc="iodbc unixodbc odbc32"
29883 for odbc in $ol_with_odbc ; do
29884 if test $ol_link_sql = no ; then
29887 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29888 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
29889 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29890 echo $ECHO_N "(cached) $ECHO_C" >&6
29892 ac_check_lib_save_LIBS=$LIBS
29893 LIBS="-liodbc $LIBS"
29894 cat >conftest.$ac_ext <<_ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h. */
29901 /* Override any gcc2 internal prototype to avoid an error. */
29905 /* We use char because int might match the return type of a gcc2
29906 builtin and then its argument prototype would still apply. */
29907 char SQLDriverConnect ();
29911 SQLDriverConnect ();
29916 rm -f conftest.$ac_objext conftest$ac_exeext
29917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29918 (eval $ac_link) 2>conftest.er1
29920 grep -v '^ *+' conftest.er1 >conftest.err
29922 cat conftest.err >&5
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); } &&
29925 { ac_try='test -z "$ac_c_werror_flag"
29926 || test ! -s conftest.err'
29927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29928 (eval $ac_try) 2>&5
29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931 (exit $ac_status); }; } &&
29932 { ac_try='test -s conftest$ac_exeext'
29933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934 (eval $ac_try) 2>&5
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; }; then
29938 ac_cv_lib_iodbc_SQLDriverConnect=yes
29940 echo "$as_me: failed program was:" >&5
29941 sed 's/^/| /' conftest.$ac_ext >&5
29943 ac_cv_lib_iodbc_SQLDriverConnect=no
29945 rm -f conftest.err conftest.$ac_objext \
29946 conftest$ac_exeext conftest.$ac_ext
29947 LIBS=$ac_check_lib_save_LIBS
29949 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29950 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
29951 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29957 if test $have_iodbc = yes ; then
29958 ol_link_sql="-liodbc"
29963 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29964 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
29965 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29966 echo $ECHO_N "(cached) $ECHO_C" >&6
29968 ac_check_lib_save_LIBS=$LIBS
29969 LIBS="-lodbc $LIBS"
29970 cat >conftest.$ac_ext <<_ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h. */
29977 /* Override any gcc2 internal prototype to avoid an error. */
29981 /* We use char because int might match the return type of a gcc2
29982 builtin and then its argument prototype would still apply. */
29983 char SQLDriverConnect ();
29987 SQLDriverConnect ();
29992 rm -f conftest.$ac_objext conftest$ac_exeext
29993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29994 (eval $ac_link) 2>conftest.er1
29996 grep -v '^ *+' conftest.er1 >conftest.err
29998 cat conftest.err >&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); } &&
30001 { ac_try='test -z "$ac_c_werror_flag"
30002 || test ! -s conftest.err'
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; } &&
30008 { ac_try='test -s conftest$ac_exeext'
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 ac_cv_lib_odbc_SQLDriverConnect=yes
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30019 ac_cv_lib_odbc_SQLDriverConnect=no
30021 rm -f conftest.err conftest.$ac_objext \
30022 conftest$ac_exeext conftest.$ac_ext
30023 LIBS=$ac_check_lib_save_LIBS
30025 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30026 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
30027 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30033 if test $have_odbc = yes ; then
30034 ol_link_sql="-lodbc"
30039 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30040 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
30041 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30042 echo $ECHO_N "(cached) $ECHO_C" >&6
30044 ac_check_lib_save_LIBS=$LIBS
30045 LIBS="-lodbc32 $LIBS"
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30053 /* Override any gcc2 internal prototype to avoid an error. */
30057 /* We use char because int might match the return type of a gcc2
30058 builtin and then its argument prototype would still apply. */
30059 char SQLDriverConnect ();
30063 SQLDriverConnect ();
30068 rm -f conftest.$ac_objext conftest$ac_exeext
30069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30070 (eval $ac_link) 2>conftest.er1
30072 grep -v '^ *+' conftest.er1 >conftest.err
30074 cat conftest.err >&5
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); } &&
30077 { ac_try='test -z "$ac_c_werror_flag"
30078 || test ! -s conftest.err'
30079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30080 (eval $ac_try) 2>&5
30082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30083 (exit $ac_status); }; } &&
30084 { ac_try='test -s conftest$ac_exeext'
30085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30086 (eval $ac_try) 2>&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); }; }; then
30090 ac_cv_lib_odbc32_SQLDriverConnect=yes
30092 echo "$as_me: failed program was:" >&5
30093 sed 's/^/| /' conftest.$ac_ext >&5
30095 ac_cv_lib_odbc32_SQLDriverConnect=no
30097 rm -f conftest.err conftest.$ac_objext \
30098 conftest$ac_exeext conftest.$ac_ext
30099 LIBS=$ac_check_lib_save_LIBS
30101 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30102 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
30103 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30109 if test $have_odbc32 = yes ; then
30110 ol_link_sql="-lodbc32"
30115 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30116 echo "$as_me: error: unknown ODBC library" >&2;}
30117 { (exit 1); exit 1; }; }
30125 if test $ol_link_sql != no ; then
30126 SLAPD_SQL_LIBS="$ol_link_sql"
30128 elif test $ol_enable_sql != auto ; then
30129 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30130 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30131 { (exit 1); exit 1; }; }
30136 if test $ol_enable_ndb != no ; then
30137 # Extract the first word of "mysql_config", so it can be a program name with args.
30138 set dummy mysql_config; ac_word=$2
30139 echo "$as_me:$LINENO: checking for $ac_word" >&5
30140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30141 if test "${ac_cv_prog_MYSQL+set}" = set; then
30142 echo $ECHO_N "(cached) $ECHO_C" >&6
30144 if test -n "$MYSQL"; then
30145 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30148 for as_dir in $PATH
30151 test -z "$as_dir" && as_dir=.
30152 for ac_exec_ext in '' $ac_executable_extensions; do
30153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30154 ac_cv_prog_MYSQL="yes"
30155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30163 MYSQL=$ac_cv_prog_MYSQL
30164 if test -n "$MYSQL"; then
30165 echo "$as_me:$LINENO: result: $MYSQL" >&5
30166 echo "${ECHO_T}$MYSQL" >&6
30168 echo "$as_me:$LINENO: result: no" >&5
30169 echo "${ECHO_T}no" >&6
30172 if test "$MYSQL" != yes ; then
30173 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30174 echo "$as_me: error: could not locate mysql_config" >&2;}
30175 { (exit 1); exit 1; }; }
30178 SQL_INC=`mysql_config --include`
30179 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30181 save_CPPFLAGS="$CPPFLAGS"
30182 CPPFLAGS="$SLAPD_NDB_INCS"
30183 echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30184 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30185 cat >conftest.$ac_ext <<_ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h. */
30191 #include <NdbApi.hpp>
30193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30196 grep -v '^ *+' conftest.er1 >conftest.err
30198 cat conftest.err >&5
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); } >/dev/null; then
30201 if test -s conftest.err; then
30202 ac_cpp_err=$ac_c_preproc_warn_flag
30203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30210 if test -z "$ac_cpp_err"; then
30211 echo "$as_me:$LINENO: result: yes" >&5
30212 echo "${ECHO_T}yes" >&6
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30217 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30218 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30219 { (exit 1); exit 1; }; }
30222 rm -f conftest.err conftest.$ac_ext
30223 CPPFLAGS="$save_CPPFLAGS"
30225 SQL_LIB=`mysql_config --libs_r`
30226 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30228 save_LDFLAGS="$LDFLAGS"
30231 echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30232 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30233 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30234 echo $ECHO_N "(cached) $ECHO_C" >&6
30236 ac_check_lib_save_LIBS=$LIBS
30237 LIBS="-lndbclient -lstdc++ $LIBS"
30238 cat >conftest.$ac_ext <<_ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h. */
30245 /* Override any gcc2 internal prototype to avoid an error. */
30249 /* We use char because int might match the return type of a gcc2
30250 builtin and then its argument prototype would still apply. */
30260 rm -f conftest.$ac_objext conftest$ac_exeext
30261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30262 (eval $ac_link) 2>conftest.er1
30264 grep -v '^ *+' conftest.er1 >conftest.err
30266 cat conftest.err >&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } &&
30269 { ac_try='test -z "$ac_c_werror_flag"
30270 || test ! -s conftest.err'
30271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272 (eval $ac_try) 2>&5
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; } &&
30276 { ac_try='test -s conftest$ac_exeext'
30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278 (eval $ac_try) 2>&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
30282 ac_cv_lib_ndbclient_ndb_init=yes
30284 echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30287 ac_cv_lib_ndbclient_ndb_init=no
30289 rm -f conftest.err conftest.$ac_objext \
30290 conftest$ac_exeext conftest.$ac_ext
30291 LIBS=$ac_check_lib_save_LIBS
30293 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30294 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30295 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30299 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30300 echo "$as_me: error: could not locate ndbclient library" >&2;}
30301 { (exit 1); exit 1; }; }
30306 LDFLAGS="$save_LDFLAGS"
30308 if test "$ol_enable_ndb" = yes ; then
30309 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30315 for ac_header in unicode/utypes.h
30317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30319 echo "$as_me:$LINENO: checking for $ac_header" >&5
30320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30327 # Is the header compilable?
30328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30330 cat >conftest.$ac_ext <<_ACEOF
30333 cat confdefs.h >>conftest.$ac_ext
30334 cat >>conftest.$ac_ext <<_ACEOF
30335 /* end confdefs.h. */
30336 $ac_includes_default
30337 #include <$ac_header>
30339 rm -f conftest.$ac_objext
30340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30341 (eval $ac_compile) 2>conftest.er1
30343 grep -v '^ *+' conftest.er1 >conftest.err
30345 cat conftest.err >&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag"
30349 || test ! -s conftest.err'
30350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351 (eval $ac_try) 2>&5
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; } &&
30355 { ac_try='test -s conftest.$ac_objext'
30356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357 (eval $ac_try) 2>&5
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); }; }; then
30361 ac_header_compiler=yes
30363 echo "$as_me: failed program was:" >&5
30364 sed 's/^/| /' conftest.$ac_ext >&5
30366 ac_header_compiler=no
30368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30370 echo "${ECHO_T}$ac_header_compiler" >&6
30372 # Is the header present?
30373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30375 cat >conftest.$ac_ext <<_ACEOF
30378 cat confdefs.h >>conftest.$ac_ext
30379 cat >>conftest.$ac_ext <<_ACEOF
30380 /* end confdefs.h. */
30381 #include <$ac_header>
30383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30386 grep -v '^ *+' conftest.er1 >conftest.err
30388 cat conftest.err >&5
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } >/dev/null; then
30391 if test -s conftest.err; then
30392 ac_cpp_err=$ac_c_preproc_warn_flag
30393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30400 if test -z "$ac_cpp_err"; then
30401 ac_header_preproc=yes
30403 echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30406 ac_header_preproc=no
30408 rm -f conftest.err conftest.$ac_ext
30409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30410 echo "${ECHO_T}$ac_header_preproc" >&6
30412 # So? What about this header?
30413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30419 ac_header_preproc=yes
30422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30436 ## --------------------------------------------- ##
30437 ## Report this to <http://www.openldap.org/its/> ##
30438 ## --------------------------------------------- ##
30441 sed "s/^/$as_me: WARNING: /" >&2
30444 echo "$as_me:$LINENO: checking for $ac_header" >&5
30445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30447 echo $ECHO_N "(cached) $ECHO_C" >&6
30449 eval "$as_ac_Header=\$ac_header_preproc"
30451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30456 cat >>confdefs.h <<_ACEOF
30457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30464 if test $ac_cv_header_unicode_utypes_h = yes ; then
30465 OL_ICULIBS="-licuuc -licudata"
30467 echo "$as_me:$LINENO: checking for ICU libraries" >&5
30468 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30469 if test "${ol_cv_lib_icu+set}" = set; then
30470 echo $ECHO_N "(cached) $ECHO_C" >&6
30474 LIBS="$OL_ICULIBS $LIBS"
30475 cat >conftest.$ac_ext <<_ACEOF
30478 cat confdefs.h >>conftest.$ac_ext
30479 cat >>conftest.$ac_ext <<_ACEOF
30480 /* end confdefs.h. */
30482 #include <unicode/utypes.h>
30488 (void) u_errorName(0);
30494 rm -f conftest.$ac_objext conftest$ac_exeext
30495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30496 (eval $ac_link) 2>conftest.er1
30498 grep -v '^ *+' conftest.er1 >conftest.err
30500 cat conftest.err >&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); } &&
30503 { ac_try='test -z "$ac_c_werror_flag"
30504 || test ! -s conftest.err'
30505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30506 (eval $ac_try) 2>&5
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); }; } &&
30510 { ac_try='test -s conftest$ac_exeext'
30511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30512 (eval $ac_try) 2>&5
30514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515 (exit $ac_status); }; }; then
30518 echo "$as_me: failed program was:" >&5
30519 sed 's/^/| /' conftest.$ac_ext >&5
30523 rm -f conftest.err conftest.$ac_objext \
30524 conftest$ac_exeext conftest.$ac_ext
30528 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30529 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30531 if test $ol_cv_lib_icu != no ; then
30532 ol_icu="$OL_ICULIBS"
30534 cat >>confdefs.h <<\_ACEOF
30541 if test "$ol_icu" = no ; then
30542 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30543 echo "$as_me: WARNING: ICU not available" >&2;}
30550 if test $ol_with_cyrus_sasl != no ; then
30553 for ac_header in sasl/sasl.h sasl.h
30555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30557 echo "$as_me:$LINENO: checking for $ac_header" >&5
30558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30560 echo $ECHO_N "(cached) $ECHO_C" >&6
30562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30565 # Is the header compilable?
30566 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30568 cat >conftest.$ac_ext <<_ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h. */
30574 $ac_includes_default
30575 #include <$ac_header>
30577 rm -f conftest.$ac_objext
30578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30579 (eval $ac_compile) 2>conftest.er1
30581 grep -v '^ *+' conftest.er1 >conftest.err
30583 cat conftest.err >&5
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); } &&
30586 { ac_try='test -z "$ac_c_werror_flag"
30587 || test ! -s conftest.err'
30588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30589 (eval $ac_try) 2>&5
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; } &&
30593 { ac_try='test -s conftest.$ac_objext'
30594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30595 (eval $ac_try) 2>&5
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); }; }; then
30599 ac_header_compiler=yes
30601 echo "$as_me: failed program was:" >&5
30602 sed 's/^/| /' conftest.$ac_ext >&5
30604 ac_header_compiler=no
30606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30608 echo "${ECHO_T}$ac_header_compiler" >&6
30610 # Is the header present?
30611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30613 cat >conftest.$ac_ext <<_ACEOF
30616 cat confdefs.h >>conftest.$ac_ext
30617 cat >>conftest.$ac_ext <<_ACEOF
30618 /* end confdefs.h. */
30619 #include <$ac_header>
30621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30624 grep -v '^ *+' conftest.er1 >conftest.err
30626 cat conftest.err >&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } >/dev/null; then
30629 if test -s conftest.err; then
30630 ac_cpp_err=$ac_c_preproc_warn_flag
30631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30638 if test -z "$ac_cpp_err"; then
30639 ac_header_preproc=yes
30641 echo "$as_me: failed program was:" >&5
30642 sed 's/^/| /' conftest.$ac_ext >&5
30644 ac_header_preproc=no
30646 rm -f conftest.err conftest.$ac_ext
30647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30648 echo "${ECHO_T}$ac_header_preproc" >&6
30650 # So? What about this header?
30651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30657 ac_header_preproc=yes
30660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30674 ## --------------------------------------------- ##
30675 ## Report this to <http://www.openldap.org/its/> ##
30676 ## --------------------------------------------- ##
30679 sed "s/^/$as_me: WARNING: /" >&2
30682 echo "$as_me:$LINENO: checking for $ac_header" >&5
30683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30685 echo $ECHO_N "(cached) $ECHO_C" >&6
30687 eval "$as_ac_Header=\$ac_header_preproc"
30689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30694 cat >>confdefs.h <<_ACEOF
30695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30703 if test $ac_cv_header_sasl_sasl_h = yes ||
30704 test $ac_cv_header_sasl_h = yes; then
30705 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30706 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
30707 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30708 echo $ECHO_N "(cached) $ECHO_C" >&6
30710 ac_check_lib_save_LIBS=$LIBS
30711 LIBS="-lsasl2 $LIBS"
30712 cat >conftest.$ac_ext <<_ACEOF
30715 cat confdefs.h >>conftest.$ac_ext
30716 cat >>conftest.$ac_ext <<_ACEOF
30717 /* end confdefs.h. */
30719 /* Override any gcc2 internal prototype to avoid an error. */
30723 /* We use char because int might match the return type of a gcc2
30724 builtin and then its argument prototype would still apply. */
30725 char sasl_client_init ();
30729 sasl_client_init ();
30734 rm -f conftest.$ac_objext conftest$ac_exeext
30735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30736 (eval $ac_link) 2>conftest.er1
30738 grep -v '^ *+' conftest.er1 >conftest.err
30740 cat conftest.err >&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); } &&
30743 { ac_try='test -z "$ac_c_werror_flag"
30744 || test ! -s conftest.err'
30745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30746 (eval $ac_try) 2>&5
30748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); }; } &&
30750 { ac_try='test -s conftest$ac_exeext'
30751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752 (eval $ac_try) 2>&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; }; then
30756 ac_cv_lib_sasl2_sasl_client_init=yes
30758 echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30761 ac_cv_lib_sasl2_sasl_client_init=no
30763 rm -f conftest.err conftest.$ac_objext \
30764 conftest$ac_exeext conftest.$ac_ext
30765 LIBS=$ac_check_lib_save_LIBS
30767 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30768 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
30769 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30770 ol_link_sasl="-lsasl2"
30772 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30773 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
30774 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30775 echo $ECHO_N "(cached) $ECHO_C" >&6
30777 ac_check_lib_save_LIBS=$LIBS
30778 LIBS="-lsasl $LIBS"
30779 cat >conftest.$ac_ext <<_ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h. */
30786 /* Override any gcc2 internal prototype to avoid an error. */
30790 /* We use char because int might match the return type of a gcc2
30791 builtin and then its argument prototype would still apply. */
30792 char sasl_client_init ();
30796 sasl_client_init ();
30801 rm -f conftest.$ac_objext conftest$ac_exeext
30802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30803 (eval $ac_link) 2>conftest.er1
30805 grep -v '^ *+' conftest.er1 >conftest.err
30807 cat conftest.err >&5
30808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30809 (exit $ac_status); } &&
30810 { ac_try='test -z "$ac_c_werror_flag"
30811 || test ! -s conftest.err'
30812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813 (eval $ac_try) 2>&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest$ac_exeext'
30818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819 (eval $ac_try) 2>&5
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; }; then
30823 ac_cv_lib_sasl_sasl_client_init=yes
30825 echo "$as_me: failed program was:" >&5
30826 sed 's/^/| /' conftest.$ac_ext >&5
30828 ac_cv_lib_sasl_sasl_client_init=no
30830 rm -f conftest.err conftest.$ac_objext \
30831 conftest$ac_exeext conftest.$ac_ext
30832 LIBS=$ac_check_lib_save_LIBS
30834 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30835 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
30836 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30837 ol_link_sasl="-lsasl"
30844 if test $ol_link_sasl = no ; then
30845 if test $ol_with_cyrus_sasl != auto ; then
30846 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30847 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30848 { (exit 1); exit 1; }; }
30850 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30851 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30853 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30854 if test $ol_link_tls = no ; then
30855 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30856 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30860 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30861 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
30862 if test "${ol_cv_sasl_compat+set}" = set; then
30863 echo $ECHO_N "(cached) $ECHO_C" >&6
30866 cat >conftest.$ac_ext <<_ACEOF
30869 cat confdefs.h >>conftest.$ac_ext
30870 cat >>conftest.$ac_ext <<_ACEOF
30871 /* end confdefs.h. */
30873 #ifdef HAVE_SASL_SASL_H
30874 #include <sasl/sasl.h>
30879 /* Require 2.1.15+ */
30880 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30881 char *__sasl_compat = "2.2+ or better okay (we guess)";
30882 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30883 && SASL_VERSION_STEP >=15
30884 char *__sasl_compat = "2.1.15+ or better okay";
30888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30889 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30890 ol_cv_sasl_compat=yes
30892 ol_cv_sasl_compat=no
30897 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30898 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
30900 if test $ol_cv_sasl_compat = no ; then
30902 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30903 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30904 { (exit 1); exit 1; }; }
30908 cat >>confdefs.h <<\_ACEOF
30909 #define HAVE_CYRUS_SASL 1
30912 SASL_LIBS="$ol_link_sasl"
30913 if test $ol_enable_spasswd != no ; then
30914 ol_link_spasswd=yes
30917 ac_save_LIBS="$LIBS"
30918 LIBS="$LIBS $ol_link_sasl"
30919 echo "$as_me:$LINENO: checking for sasl_version" >&5
30920 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
30921 if test "${ac_cv_func_sasl_version+set}" = set; then
30922 echo $ECHO_N "(cached) $ECHO_C" >&6
30924 cat >conftest.$ac_ext <<_ACEOF
30927 cat confdefs.h >>conftest.$ac_ext
30928 cat >>conftest.$ac_ext <<_ACEOF
30929 /* end confdefs.h. */
30930 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30932 #define sasl_version innocuous_sasl_version
30934 /* System header to define __stub macros and hopefully few prototypes,
30935 which can conflict with char sasl_version (); below.
30936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30937 <limits.h> exists even on freestanding compilers. */
30940 # include <limits.h>
30942 # include <assert.h>
30945 #undef sasl_version
30947 /* Override any gcc2 internal prototype to avoid an error. */
30952 /* We use char because int might match the return type of a gcc2
30953 builtin and then its argument prototype would still apply. */
30954 char sasl_version ();
30955 /* The GNU C library defines this for functions which it implements
30956 to always fail with ENOSYS. Some functions are actually named
30957 something starting with __ and the normal name is an alias. */
30958 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
30961 char (*f) () = sasl_version;
30970 return f != sasl_version;
30975 rm -f conftest.$ac_objext conftest$ac_exeext
30976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30977 (eval $ac_link) 2>conftest.er1
30979 grep -v '^ *+' conftest.er1 >conftest.err
30981 cat conftest.err >&5
30982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30983 (exit $ac_status); } &&
30984 { ac_try='test -z "$ac_c_werror_flag"
30985 || test ! -s conftest.err'
30986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987 (eval $ac_try) 2>&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; } &&
30991 { ac_try='test -s conftest$ac_exeext'
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; }; then
30997 ac_cv_func_sasl_version=yes
30999 echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31002 ac_cv_func_sasl_version=no
31004 rm -f conftest.err conftest.$ac_objext \
31005 conftest$ac_exeext conftest.$ac_ext
31007 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31008 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
31009 if test $ac_cv_func_sasl_version = yes; then
31011 cat >>confdefs.h <<\_ACEOF
31012 #define HAVE_SASL_VERSION 1
31017 LIBS="$ac_save_LIBS"
31023 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31024 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31025 if test $ol_link_tls = no ; then
31026 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31027 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31031 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31033 if test -r /dev/urandom ; then
31034 dev="/dev/urandom";
31035 elif test -r /idev/urandom ; then
31036 dev="/idev/urandom";
31037 elif test -r /dev/srandom ; then
31038 dev="/dev/srandom";
31039 elif test -r /dev/random ; then
31041 elif test -r /idev/random ; then
31042 dev="/idev/random";
31045 if test $dev != no ; then
31047 cat >>confdefs.h <<_ACEOF
31048 #define URANDOM_DEVICE "$dev"
31055 if test $ol_with_fetch != no ; then
31057 LIBS="-lfetch -lcom_err $LIBS"
31058 echo "$as_me:$LINENO: checking fetch(3) library" >&5
31059 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
31060 if test "${ol_cv_lib_fetch+set}" = set; then
31061 echo $ECHO_N "(cached) $ECHO_C" >&6
31064 cat >conftest.$ac_ext <<_ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h. */
31071 #ifdef HAVE_SYS_PARAM_H
31072 #include <sys/param.h>
31079 struct url *u = fetchParseURL("file:///");
31084 rm -f conftest.$ac_objext conftest$ac_exeext
31085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31086 (eval $ac_link) 2>conftest.er1
31088 grep -v '^ *+' conftest.er1 >conftest.err
31090 cat conftest.err >&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); } &&
31093 { ac_try='test -z "$ac_c_werror_flag"
31094 || test ! -s conftest.err'
31095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096 (eval $ac_try) 2>&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; } &&
31100 { ac_try='test -s conftest$ac_exeext'
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 ol_cv_lib_fetch=yes
31108 echo "$as_me: failed program was:" >&5
31109 sed 's/^/| /' conftest.$ac_ext >&5
31113 rm -f conftest.err conftest.$ac_objext \
31114 conftest$ac_exeext conftest.$ac_ext
31116 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31117 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
31119 if test $ol_cv_lib_fetch != no ; then
31120 ol_link_fetch="-lfetch -lcom_err"
31122 cat >>confdefs.h <<\_ACEOF
31123 #define HAVE_FETCH 1
31129 if test $ol_cv_lib_fetch != no ; then
31130 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31131 ol_link_fetch=freebsd
31133 elif test $ol_with_fetch != auto ; then
31134 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31135 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31136 { (exit 1); exit 1; }; }
31140 if test $ol_enable_crypt != no ; then
31142 LIBS="$TLS_LIBS $LIBS"
31144 echo "$as_me:$LINENO: checking for crypt" >&5
31145 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
31146 if test "${ac_cv_func_crypt+set}" = set; then
31147 echo $ECHO_N "(cached) $ECHO_C" >&6
31149 cat >conftest.$ac_ext <<_ACEOF
31152 cat confdefs.h >>conftest.$ac_ext
31153 cat >>conftest.$ac_ext <<_ACEOF
31154 /* end confdefs.h. */
31155 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31157 #define crypt innocuous_crypt
31159 /* System header to define __stub macros and hopefully few prototypes,
31160 which can conflict with char crypt (); below.
31161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31162 <limits.h> exists even on freestanding compilers. */
31165 # include <limits.h>
31167 # include <assert.h>
31172 /* Override any gcc2 internal prototype to avoid an error. */
31177 /* We use char because int might match the return type of a gcc2
31178 builtin and then its argument prototype would still apply. */
31180 /* The GNU C library defines this for functions which it implements
31181 to always fail with ENOSYS. Some functions are actually named
31182 something starting with __ and the normal name is an alias. */
31183 #if defined (__stub_crypt) || defined (__stub___crypt)
31186 char (*f) () = crypt;
31200 rm -f conftest.$ac_objext conftest$ac_exeext
31201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31202 (eval $ac_link) 2>conftest.er1
31204 grep -v '^ *+' conftest.er1 >conftest.err
31206 cat conftest.err >&5
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); } &&
31209 { ac_try='test -z "$ac_c_werror_flag"
31210 || test ! -s conftest.err'
31211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31212 (eval $ac_try) 2>&5
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); }; } &&
31216 { ac_try='test -s conftest$ac_exeext'
31217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218 (eval $ac_try) 2>&5
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; }; then
31222 ac_cv_func_crypt=yes
31224 echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31227 ac_cv_func_crypt=no
31229 rm -f conftest.err conftest.$ac_objext \
31230 conftest$ac_exeext conftest.$ac_ext
31232 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31233 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31234 if test $ac_cv_func_crypt = yes; then
31239 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31240 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31241 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31242 echo $ECHO_N "(cached) $ECHO_C" >&6
31244 ac_check_lib_save_LIBS=$LIBS
31245 LIBS="-lcrypt $LIBS"
31246 cat >conftest.$ac_ext <<_ACEOF
31249 cat confdefs.h >>conftest.$ac_ext
31250 cat >>conftest.$ac_ext <<_ACEOF
31251 /* end confdefs.h. */
31253 /* Override any gcc2 internal prototype to avoid an error. */
31257 /* We use char because int might match the return type of a gcc2
31258 builtin and then its argument prototype would still apply. */
31268 rm -f conftest.$ac_objext conftest$ac_exeext
31269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31270 (eval $ac_link) 2>conftest.er1
31272 grep -v '^ *+' conftest.er1 >conftest.err
31274 cat conftest.err >&5
31275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } &&
31277 { ac_try='test -z "$ac_c_werror_flag"
31278 || test ! -s conftest.err'
31279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31280 (eval $ac_try) 2>&5
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); }; } &&
31284 { ac_try='test -s conftest$ac_exeext'
31285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31286 (eval $ac_try) 2>&5
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; }; then
31290 ac_cv_lib_crypt_crypt=yes
31292 echo "$as_me: failed program was:" >&5
31293 sed 's/^/| /' conftest.$ac_ext >&5
31295 ac_cv_lib_crypt_crypt=no
31297 rm -f conftest.err conftest.$ac_objext \
31298 conftest$ac_exeext conftest.$ac_ext
31299 LIBS=$ac_check_lib_save_LIBS
31301 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31302 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31303 if test $ac_cv_lib_crypt_crypt = yes; then
31304 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31315 if test $have_crypt = yes ; then
31317 cat >>confdefs.h <<\_ACEOF
31318 #define HAVE_CRYPT 1
31322 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31323 echo "$as_me: WARNING: could not find crypt" >&2;}
31324 if test $ol_enable_crypt = yes ; then
31325 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31326 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31327 { (exit 1); exit 1; }; }
31330 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31331 echo "$as_me: WARNING: disabling crypt support" >&2;}
31336 if test $ol_enable_proctitle != no ; then
31337 echo "$as_me:$LINENO: checking for setproctitle" >&5
31338 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31339 if test "${ac_cv_func_setproctitle+set}" = set; then
31340 echo $ECHO_N "(cached) $ECHO_C" >&6
31342 cat >conftest.$ac_ext <<_ACEOF
31345 cat confdefs.h >>conftest.$ac_ext
31346 cat >>conftest.$ac_ext <<_ACEOF
31347 /* end confdefs.h. */
31348 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31350 #define setproctitle innocuous_setproctitle
31352 /* System header to define __stub macros and hopefully few prototypes,
31353 which can conflict with char setproctitle (); below.
31354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31355 <limits.h> exists even on freestanding compilers. */
31358 # include <limits.h>
31360 # include <assert.h>
31363 #undef setproctitle
31365 /* Override any gcc2 internal prototype to avoid an error. */
31370 /* We use char because int might match the return type of a gcc2
31371 builtin and then its argument prototype would still apply. */
31372 char setproctitle ();
31373 /* The GNU C library defines this for functions which it implements
31374 to always fail with ENOSYS. Some functions are actually named
31375 something starting with __ and the normal name is an alias. */
31376 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31379 char (*f) () = setproctitle;
31388 return f != setproctitle;
31393 rm -f conftest.$ac_objext conftest$ac_exeext
31394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31395 (eval $ac_link) 2>conftest.er1
31397 grep -v '^ *+' conftest.er1 >conftest.err
31399 cat conftest.err >&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); } &&
31402 { ac_try='test -z "$ac_c_werror_flag"
31403 || test ! -s conftest.err'
31404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31405 (eval $ac_try) 2>&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); }; } &&
31409 { ac_try='test -s conftest$ac_exeext'
31410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31411 (eval $ac_try) 2>&5
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31414 (exit $ac_status); }; }; then
31415 ac_cv_func_setproctitle=yes
31417 echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31420 ac_cv_func_setproctitle=no
31422 rm -f conftest.err conftest.$ac_objext \
31423 conftest$ac_exeext conftest.$ac_ext
31425 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31426 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31427 if test $ac_cv_func_setproctitle = yes; then
31428 have_setproctitle=yes
31431 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31432 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31433 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31434 echo $ECHO_N "(cached) $ECHO_C" >&6
31436 ac_check_lib_save_LIBS=$LIBS
31437 LIBS="-lutil $LIBS"
31438 cat >conftest.$ac_ext <<_ACEOF
31441 cat confdefs.h >>conftest.$ac_ext
31442 cat >>conftest.$ac_ext <<_ACEOF
31443 /* end confdefs.h. */
31445 /* Override any gcc2 internal prototype to avoid an error. */
31449 /* We use char because int might match the return type of a gcc2
31450 builtin and then its argument prototype would still apply. */
31451 char setproctitle ();
31460 rm -f conftest.$ac_objext conftest$ac_exeext
31461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31462 (eval $ac_link) 2>conftest.er1
31464 grep -v '^ *+' conftest.er1 >conftest.err
31466 cat conftest.err >&5
31467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468 (exit $ac_status); } &&
31469 { ac_try='test -z "$ac_c_werror_flag"
31470 || test ! -s conftest.err'
31471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31472 (eval $ac_try) 2>&5
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); }; } &&
31476 { ac_try='test -s conftest$ac_exeext'
31477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31478 (eval $ac_try) 2>&5
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); }; }; then
31482 ac_cv_lib_util_setproctitle=yes
31484 echo "$as_me: failed program was:" >&5
31485 sed 's/^/| /' conftest.$ac_ext >&5
31487 ac_cv_lib_util_setproctitle=no
31489 rm -f conftest.err conftest.$ac_objext \
31490 conftest$ac_exeext conftest.$ac_ext
31491 LIBS=$ac_check_lib_save_LIBS
31493 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31494 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31495 if test $ac_cv_lib_util_setproctitle = yes; then
31496 have_setproctitle=yes
31497 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31499 have_setproctitle=no
31501 "setproctitle.$ac_objext" | \
31502 *" setproctitle.$ac_objext" | \
31503 "setproctitle.$ac_objext "* | \
31504 *" setproctitle.$ac_objext "* ) ;;
31505 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31508 LIBSRCS="$LIBSRCS setproctitle.c"
31514 if test $have_setproctitle = yes ; then
31516 cat >>confdefs.h <<\_ACEOF
31517 #define HAVE_SETPROCTITLE 1
31523 if test $ol_enable_slp != no ; then
31525 for ac_header in slp.h
31527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31529 echo "$as_me:$LINENO: checking for $ac_header" >&5
31530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31532 echo $ECHO_N "(cached) $ECHO_C" >&6
31534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31537 # Is the header compilable?
31538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31540 cat >conftest.$ac_ext <<_ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h. */
31546 $ac_includes_default
31547 #include <$ac_header>
31549 rm -f conftest.$ac_objext
31550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31551 (eval $ac_compile) 2>conftest.er1
31553 grep -v '^ *+' conftest.er1 >conftest.err
31555 cat conftest.err >&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557 (exit $ac_status); } &&
31558 { ac_try='test -z "$ac_c_werror_flag"
31559 || test ! -s conftest.err'
31560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561 (eval $ac_try) 2>&5
31563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); }; } &&
31565 { ac_try='test -s conftest.$ac_objext'
31566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31567 (eval $ac_try) 2>&5
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); }; }; then
31571 ac_header_compiler=yes
31573 echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31576 ac_header_compiler=no
31578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31580 echo "${ECHO_T}$ac_header_compiler" >&6
31582 # Is the header present?
31583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31585 cat >conftest.$ac_ext <<_ACEOF
31588 cat confdefs.h >>conftest.$ac_ext
31589 cat >>conftest.$ac_ext <<_ACEOF
31590 /* end confdefs.h. */
31591 #include <$ac_header>
31593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31596 grep -v '^ *+' conftest.er1 >conftest.err
31598 cat conftest.err >&5
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); } >/dev/null; then
31601 if test -s conftest.err; then
31602 ac_cpp_err=$ac_c_preproc_warn_flag
31603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31610 if test -z "$ac_cpp_err"; then
31611 ac_header_preproc=yes
31613 echo "$as_me: failed program was:" >&5
31614 sed 's/^/| /' conftest.$ac_ext >&5
31616 ac_header_preproc=no
31618 rm -f conftest.err conftest.$ac_ext
31619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31620 echo "${ECHO_T}$ac_header_preproc" >&6
31622 # So? What about this header?
31623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31629 ac_header_preproc=yes
31632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31646 ## --------------------------------------------- ##
31647 ## Report this to <http://www.openldap.org/its/> ##
31648 ## --------------------------------------------- ##
31651 sed "s/^/$as_me: WARNING: /" >&2
31654 echo "$as_me:$LINENO: checking for $ac_header" >&5
31655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31657 echo $ECHO_N "(cached) $ECHO_C" >&6
31659 eval "$as_ac_Header=\$ac_header_preproc"
31661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31666 cat >>confdefs.h <<_ACEOF
31667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31675 if test $ac_cv_header_slp_h = yes ; then
31676 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31677 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
31678 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31679 echo $ECHO_N "(cached) $ECHO_C" >&6
31681 ac_check_lib_save_LIBS=$LIBS
31683 cat >conftest.$ac_ext <<_ACEOF
31686 cat confdefs.h >>conftest.$ac_ext
31687 cat >>conftest.$ac_ext <<_ACEOF
31688 /* end confdefs.h. */
31690 /* Override any gcc2 internal prototype to avoid an error. */
31694 /* We use char because int might match the return type of a gcc2
31695 builtin and then its argument prototype would still apply. */
31705 rm -f conftest.$ac_objext conftest$ac_exeext
31706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31707 (eval $ac_link) 2>conftest.er1
31709 grep -v '^ *+' conftest.er1 >conftest.err
31711 cat conftest.err >&5
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); } &&
31714 { ac_try='test -z "$ac_c_werror_flag"
31715 || test ! -s conftest.err'
31716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31717 (eval $ac_try) 2>&5
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); }; } &&
31721 { ac_try='test -s conftest$ac_exeext'
31722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723 (eval $ac_try) 2>&5
31725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726 (exit $ac_status); }; }; then
31727 ac_cv_lib_slp_SLPOpen=yes
31729 echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31732 ac_cv_lib_slp_SLPOpen=no
31734 rm -f conftest.err conftest.$ac_objext \
31735 conftest$ac_exeext conftest.$ac_ext
31736 LIBS=$ac_check_lib_save_LIBS
31738 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31739 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
31740 if test $ac_cv_lib_slp_SLPOpen = yes; then
31746 if test $have_slp = yes ; then
31748 cat >>confdefs.h <<\_ACEOF
31752 SLAPD_SLP_LIBS=-lslp
31755 elif test $ol_enable_slp = yes ; then
31756 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31757 echo "$as_me: error: SLP not found" >&2;}
31758 { (exit 1); exit 1; }; }
31763 echo "$as_me:$LINENO: checking for mode_t" >&5
31764 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31765 if test "${ac_cv_type_mode_t+set}" = set; then
31766 echo $ECHO_N "(cached) $ECHO_C" >&6
31768 cat >conftest.$ac_ext <<_ACEOF
31771 cat confdefs.h >>conftest.$ac_ext
31772 cat >>conftest.$ac_ext <<_ACEOF
31773 /* end confdefs.h. */
31774 $ac_includes_default
31780 if (sizeof (mode_t))
31786 rm -f conftest.$ac_objext
31787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31788 (eval $ac_compile) 2>conftest.er1
31790 grep -v '^ *+' conftest.er1 >conftest.err
31792 cat conftest.err >&5
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); } &&
31795 { ac_try='test -z "$ac_c_werror_flag"
31796 || test ! -s conftest.err'
31797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31798 (eval $ac_try) 2>&5
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; } &&
31802 { ac_try='test -s conftest.$ac_objext'
31803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31804 (eval $ac_try) 2>&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807 (exit $ac_status); }; }; then
31808 ac_cv_type_mode_t=yes
31810 echo "$as_me: failed program was:" >&5
31811 sed 's/^/| /' conftest.$ac_ext >&5
31813 ac_cv_type_mode_t=no
31815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31817 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31818 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31819 if test $ac_cv_type_mode_t = yes; then
31823 cat >>confdefs.h <<_ACEOF
31829 echo "$as_me:$LINENO: checking for off_t" >&5
31830 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31831 if test "${ac_cv_type_off_t+set}" = set; then
31832 echo $ECHO_N "(cached) $ECHO_C" >&6
31834 cat >conftest.$ac_ext <<_ACEOF
31837 cat confdefs.h >>conftest.$ac_ext
31838 cat >>conftest.$ac_ext <<_ACEOF
31839 /* end confdefs.h. */
31840 $ac_includes_default
31846 if (sizeof (off_t))
31852 rm -f conftest.$ac_objext
31853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31854 (eval $ac_compile) 2>conftest.er1
31856 grep -v '^ *+' conftest.er1 >conftest.err
31858 cat conftest.err >&5
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); } &&
31861 { ac_try='test -z "$ac_c_werror_flag"
31862 || test ! -s conftest.err'
31863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31864 (eval $ac_try) 2>&5
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); }; } &&
31868 { ac_try='test -s conftest.$ac_objext'
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; }; then
31874 ac_cv_type_off_t=yes
31876 echo "$as_me: failed program was:" >&5
31877 sed 's/^/| /' conftest.$ac_ext >&5
31879 ac_cv_type_off_t=no
31881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31883 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31884 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31885 if test $ac_cv_type_off_t = yes; then
31889 cat >>confdefs.h <<_ACEOF
31895 echo "$as_me:$LINENO: checking for pid_t" >&5
31896 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31897 if test "${ac_cv_type_pid_t+set}" = set; then
31898 echo $ECHO_N "(cached) $ECHO_C" >&6
31900 cat >conftest.$ac_ext <<_ACEOF
31903 cat confdefs.h >>conftest.$ac_ext
31904 cat >>conftest.$ac_ext <<_ACEOF
31905 /* end confdefs.h. */
31906 $ac_includes_default
31912 if (sizeof (pid_t))
31918 rm -f conftest.$ac_objext
31919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31920 (eval $ac_compile) 2>conftest.er1
31922 grep -v '^ *+' conftest.er1 >conftest.err
31924 cat conftest.err >&5
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); } &&
31927 { ac_try='test -z "$ac_c_werror_flag"
31928 || test ! -s conftest.err'
31929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930 (eval $ac_try) 2>&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; } &&
31934 { ac_try='test -s conftest.$ac_objext'
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; }; then
31940 ac_cv_type_pid_t=yes
31942 echo "$as_me: failed program was:" >&5
31943 sed 's/^/| /' conftest.$ac_ext >&5
31945 ac_cv_type_pid_t=no
31947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31949 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31950 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31951 if test $ac_cv_type_pid_t = yes; then
31955 cat >>confdefs.h <<_ACEOF
31961 echo "$as_me:$LINENO: checking for ssize_t" >&5
31962 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31963 if test "${ac_cv_type_ssize_t+set}" = set; then
31964 echo $ECHO_N "(cached) $ECHO_C" >&6
31966 cat >conftest.$ac_ext <<_ACEOF
31969 cat confdefs.h >>conftest.$ac_ext
31970 cat >>conftest.$ac_ext <<_ACEOF
31971 /* end confdefs.h. */
31972 $ac_includes_default
31978 if (sizeof (ssize_t))
31984 rm -f conftest.$ac_objext
31985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31986 (eval $ac_compile) 2>conftest.er1
31988 grep -v '^ *+' conftest.er1 >conftest.err
31990 cat conftest.err >&5
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); } &&
31993 { ac_try='test -z "$ac_c_werror_flag"
31994 || test ! -s conftest.err'
31995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996 (eval $ac_try) 2>&5
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); }; } &&
32000 { ac_try='test -s conftest.$ac_objext'
32001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32002 (eval $ac_try) 2>&5
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; }; then
32006 ac_cv_type_ssize_t=yes
32008 echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32011 ac_cv_type_ssize_t=no
32013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32015 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32016 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32017 if test $ac_cv_type_ssize_t = yes; then
32021 cat >>confdefs.h <<_ACEOF
32022 #define ssize_t signed int
32027 echo "$as_me:$LINENO: checking for caddr_t" >&5
32028 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
32029 if test "${ac_cv_type_caddr_t+set}" = set; then
32030 echo $ECHO_N "(cached) $ECHO_C" >&6
32032 cat >conftest.$ac_ext <<_ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h. */
32038 $ac_includes_default
32044 if (sizeof (caddr_t))
32050 rm -f conftest.$ac_objext
32051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32052 (eval $ac_compile) 2>conftest.er1
32054 grep -v '^ *+' conftest.er1 >conftest.err
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
32059 { ac_try='test -z "$ac_c_werror_flag"
32060 || test ! -s conftest.err'
32061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32062 (eval $ac_try) 2>&5
32064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065 (exit $ac_status); }; } &&
32066 { ac_try='test -s conftest.$ac_objext'
32067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32068 (eval $ac_try) 2>&5
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); }; }; then
32072 ac_cv_type_caddr_t=yes
32074 echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32077 ac_cv_type_caddr_t=no
32079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32081 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32082 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
32083 if test $ac_cv_type_caddr_t = yes; then
32087 cat >>confdefs.h <<_ACEOF
32088 #define caddr_t char *
32093 echo "$as_me:$LINENO: checking for size_t" >&5
32094 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32095 if test "${ac_cv_type_size_t+set}" = set; then
32096 echo $ECHO_N "(cached) $ECHO_C" >&6
32098 cat >conftest.$ac_ext <<_ACEOF
32101 cat confdefs.h >>conftest.$ac_ext
32102 cat >>conftest.$ac_ext <<_ACEOF
32103 /* end confdefs.h. */
32104 $ac_includes_default
32110 if (sizeof (size_t))
32116 rm -f conftest.$ac_objext
32117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32118 (eval $ac_compile) 2>conftest.er1
32120 grep -v '^ *+' conftest.er1 >conftest.err
32122 cat conftest.err >&5
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); } &&
32125 { ac_try='test -z "$ac_c_werror_flag"
32126 || test ! -s conftest.err'
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; } &&
32132 { ac_try='test -s conftest.$ac_objext'
32133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32134 (eval $ac_try) 2>&5
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); }; }; then
32138 ac_cv_type_size_t=yes
32140 echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32143 ac_cv_type_size_t=no
32145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32147 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32148 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32149 if test $ac_cv_type_size_t = yes; then
32153 cat >>confdefs.h <<_ACEOF
32154 #define size_t unsigned
32160 echo "$as_me:$LINENO: checking for long long" >&5
32161 echo $ECHO_N "checking for long long... $ECHO_C" >&6
32162 if test "${ac_cv_type_long_long+set}" = set; then
32163 echo $ECHO_N "(cached) $ECHO_C" >&6
32165 cat >conftest.$ac_ext <<_ACEOF
32168 cat confdefs.h >>conftest.$ac_ext
32169 cat >>conftest.$ac_ext <<_ACEOF
32170 /* end confdefs.h. */
32171 $ac_includes_default
32175 if ((long long *) 0)
32177 if (sizeof (long long))
32183 rm -f conftest.$ac_objext
32184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32185 (eval $ac_compile) 2>conftest.er1
32187 grep -v '^ *+' conftest.er1 >conftest.err
32189 cat conftest.err >&5
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); } &&
32192 { ac_try='test -z "$ac_c_werror_flag"
32193 || test ! -s conftest.err'
32194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32195 (eval $ac_try) 2>&5
32197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198 (exit $ac_status); }; } &&
32199 { ac_try='test -s conftest.$ac_objext'
32200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32201 (eval $ac_try) 2>&5
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); }; }; then
32205 ac_cv_type_long_long=yes
32207 echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32210 ac_cv_type_long_long=no
32212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32214 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32215 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32216 if test $ac_cv_type_long_long = yes; then
32218 cat >>confdefs.h <<_ACEOF
32219 #define HAVE_LONG_LONG 1
32225 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32226 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32227 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32228 echo $ECHO_N "(cached) $ECHO_C" >&6
32230 cat >conftest.$ac_ext <<_ACEOF
32233 cat confdefs.h >>conftest.$ac_ext
32234 cat >>conftest.$ac_ext <<_ACEOF
32235 /* end confdefs.h. */
32236 $ac_includes_default
32240 if ((ptrdiff_t *) 0)
32242 if (sizeof (ptrdiff_t))
32248 rm -f conftest.$ac_objext
32249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32250 (eval $ac_compile) 2>conftest.er1
32252 grep -v '^ *+' conftest.er1 >conftest.err
32254 cat conftest.err >&5
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); } &&
32257 { ac_try='test -z "$ac_c_werror_flag"
32258 || test ! -s conftest.err'
32259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260 (eval $ac_try) 2>&5
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); }; } &&
32264 { ac_try='test -s conftest.$ac_objext'
32265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266 (eval $ac_try) 2>&5
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); }; }; then
32270 ac_cv_type_ptrdiff_t=yes
32272 echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32275 ac_cv_type_ptrdiff_t=no
32277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32279 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32280 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32281 if test $ac_cv_type_ptrdiff_t = yes; then
32283 cat >>confdefs.h <<_ACEOF
32284 #define HAVE_PTRDIFF_T 1
32292 echo "$as_me:$LINENO: checking for socklen_t" >&5
32293 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32294 if test "${ac_cv_type_socklen_t+set}" = set; then
32295 echo $ECHO_N "(cached) $ECHO_C" >&6
32297 cat >conftest.$ac_ext <<_ACEOF
32300 cat confdefs.h >>conftest.$ac_ext
32301 cat >>conftest.$ac_ext <<_ACEOF
32302 /* end confdefs.h. */
32303 $ac_includes_default
32304 #ifdef HAVE_SYS_SOCKET_H
32305 #include <sys/socket.h>
32311 if ((socklen_t *) 0)
32313 if (sizeof (socklen_t))
32319 rm -f conftest.$ac_objext
32320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32321 (eval $ac_compile) 2>conftest.er1
32323 grep -v '^ *+' conftest.er1 >conftest.err
32325 cat conftest.err >&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } &&
32328 { ac_try='test -z "$ac_c_werror_flag"
32329 || test ! -s conftest.err'
32330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331 (eval $ac_try) 2>&5
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; } &&
32335 { ac_try='test -s conftest.$ac_objext'
32336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32337 (eval $ac_try) 2>&5
32339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340 (exit $ac_status); }; }; then
32341 ac_cv_type_socklen_t=yes
32343 echo "$as_me: failed program was:" >&5
32344 sed 's/^/| /' conftest.$ac_ext >&5
32346 ac_cv_type_socklen_t=no
32348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32350 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32351 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32354 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32355 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32356 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32357 echo $ECHO_N "(cached) $ECHO_C" >&6
32360 set socklen_t int unsigned "unsigned long" long size_t
32361 test "$ac_cv_type_socklen_t" = yes || shift
32362 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32363 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32364 cat >conftest.$ac_ext <<_ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h. */
32370 $ac_includes_default
32371 #ifdef HAVE_SYS_SOCKET_H
32372 #include <sys/socket.h>
32374 extern int accept(int s, $addrtype *ap, $lentype *lp);
32380 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32386 rm -f conftest.$ac_objext
32387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32388 (eval $ac_compile) 2>conftest.er1
32390 grep -v '^ *+' conftest.er1 >conftest.err
32392 cat conftest.err >&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); } &&
32395 { ac_try='test -z "$ac_c_werror_flag"
32396 || test ! -s conftest.err'
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest.$ac_objext'
32403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32404 (eval $ac_try) 2>&5
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); }; }; then
32408 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32410 echo "$as_me: failed program was:" >&5
32411 sed 's/^/| /' conftest.$ac_ext >&5
32414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32418 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32419 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32421 cat >>confdefs.h <<_ACEOF
32422 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32426 if test "$ac_cv_type_socklen_t" != yes; then
32428 cat >>confdefs.h <<_ACEOF
32429 #define socklen_t $ol_cv_type_ber_socklen_t
32435 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32436 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32437 if test "${ac_cv_type_signal+set}" = set; then
32438 echo $ECHO_N "(cached) $ECHO_C" >&6
32440 cat >conftest.$ac_ext <<_ACEOF
32443 cat confdefs.h >>conftest.$ac_ext
32444 cat >>conftest.$ac_ext <<_ACEOF
32445 /* end confdefs.h. */
32446 #include <sys/types.h>
32447 #include <signal.h>
32452 extern "C" void (*signal (int, void (*)(int)))(int);
32454 void (*signal ()) ();
32465 rm -f conftest.$ac_objext
32466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32467 (eval $ac_compile) 2>conftest.er1
32469 grep -v '^ *+' conftest.er1 >conftest.err
32471 cat conftest.err >&5
32472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32473 (exit $ac_status); } &&
32474 { ac_try='test -z "$ac_c_werror_flag"
32475 || test ! -s conftest.err'
32476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32477 (eval $ac_try) 2>&5
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; } &&
32481 { ac_try='test -s conftest.$ac_objext'
32482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32483 (eval $ac_try) 2>&5
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); }; }; then
32487 ac_cv_type_signal=void
32489 echo "$as_me: failed program was:" >&5
32490 sed 's/^/| /' conftest.$ac_ext >&5
32492 ac_cv_type_signal=int
32494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32496 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32497 echo "${ECHO_T}$ac_cv_type_signal" >&6
32499 cat >>confdefs.h <<_ACEOF
32500 #define RETSIGTYPE $ac_cv_type_signal
32505 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32506 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32507 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32508 echo $ECHO_N "(cached) $ECHO_C" >&6
32510 cat >conftest.$ac_ext <<_ACEOF
32513 cat confdefs.h >>conftest.$ac_ext
32514 cat >>conftest.$ac_ext <<_ACEOF
32515 /* end confdefs.h. */
32516 $ac_includes_default
32517 #include <signal.h>
32523 if ((sig_atomic_t *) 0)
32525 if (sizeof (sig_atomic_t))
32531 rm -f conftest.$ac_objext
32532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32533 (eval $ac_compile) 2>conftest.er1
32535 grep -v '^ *+' conftest.er1 >conftest.err
32537 cat conftest.err >&5
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); } &&
32540 { ac_try='test -z "$ac_c_werror_flag"
32541 || test ! -s conftest.err'
32542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32543 (eval $ac_try) 2>&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; } &&
32547 { ac_try='test -s conftest.$ac_objext'
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; }; then
32553 ac_cv_type_sig_atomic_t=yes
32555 echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32558 ac_cv_type_sig_atomic_t=no
32560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32562 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32563 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32564 if test $ac_cv_type_sig_atomic_t = yes; then
32568 cat >>confdefs.h <<_ACEOF
32569 #define sig_atomic_t int
32575 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32576 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32577 if test "${ac_cv_type_uid_t+set}" = set; then
32578 echo $ECHO_N "(cached) $ECHO_C" >&6
32580 cat >conftest.$ac_ext <<_ACEOF
32583 cat confdefs.h >>conftest.$ac_ext
32584 cat >>conftest.$ac_ext <<_ACEOF
32585 /* end confdefs.h. */
32586 #include <sys/types.h>
32589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32590 $EGREP "uid_t" >/dev/null 2>&1; then
32591 ac_cv_type_uid_t=yes
32593 ac_cv_type_uid_t=no
32598 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32599 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32600 if test $ac_cv_type_uid_t = no; then
32602 cat >>confdefs.h <<\_ACEOF
32607 cat >>confdefs.h <<\_ACEOF
32614 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32615 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32616 if test "${ac_cv_header_time+set}" = set; then
32617 echo $ECHO_N "(cached) $ECHO_C" >&6
32619 cat >conftest.$ac_ext <<_ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h. */
32625 #include <sys/types.h>
32626 #include <sys/time.h>
32632 if ((struct tm *) 0)
32638 rm -f conftest.$ac_objext
32639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32640 (eval $ac_compile) 2>conftest.er1
32642 grep -v '^ *+' conftest.er1 >conftest.err
32644 cat conftest.err >&5
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); } &&
32647 { ac_try='test -z "$ac_c_werror_flag"
32648 || test ! -s conftest.err'
32649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32650 (eval $ac_try) 2>&5
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
32654 { ac_try='test -s conftest.$ac_objext'
32655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656 (eval $ac_try) 2>&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
32660 ac_cv_header_time=yes
32662 echo "$as_me: failed program was:" >&5
32663 sed 's/^/| /' conftest.$ac_ext >&5
32665 ac_cv_header_time=no
32667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32669 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32670 echo "${ECHO_T}$ac_cv_header_time" >&6
32671 if test $ac_cv_header_time = yes; then
32673 cat >>confdefs.h <<\_ACEOF
32674 #define TIME_WITH_SYS_TIME 1
32679 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32680 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
32681 if test "${ac_cv_struct_tm+set}" = set; then
32682 echo $ECHO_N "(cached) $ECHO_C" >&6
32684 cat >conftest.$ac_ext <<_ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h. */
32690 #include <sys/types.h>
32696 struct tm *tp; tp->tm_sec;
32701 rm -f conftest.$ac_objext
32702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32703 (eval $ac_compile) 2>conftest.er1
32705 grep -v '^ *+' conftest.er1 >conftest.err
32707 cat conftest.err >&5
32708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32709 (exit $ac_status); } &&
32710 { ac_try='test -z "$ac_c_werror_flag"
32711 || test ! -s conftest.err'
32712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32713 (eval $ac_try) 2>&5
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; } &&
32717 { ac_try='test -s conftest.$ac_objext'
32718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32719 (eval $ac_try) 2>&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); }; }; then
32723 ac_cv_struct_tm=time.h
32725 echo "$as_me: failed program was:" >&5
32726 sed 's/^/| /' conftest.$ac_ext >&5
32728 ac_cv_struct_tm=sys/time.h
32730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32732 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32733 echo "${ECHO_T}$ac_cv_struct_tm" >&6
32734 if test $ac_cv_struct_tm = sys/time.h; then
32736 cat >>confdefs.h <<\_ACEOF
32737 #define TM_IN_SYS_TIME 1
32742 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32743 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
32744 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32745 echo $ECHO_N "(cached) $ECHO_C" >&6
32747 cat >conftest.$ac_ext <<_ACEOF
32750 cat confdefs.h >>conftest.$ac_ext
32751 cat >>conftest.$ac_ext <<_ACEOF
32752 /* end confdefs.h. */
32753 $ac_includes_default
32757 static struct stat ac_aggr;
32758 if (ac_aggr.st_blksize)
32764 rm -f conftest.$ac_objext
32765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32766 (eval $ac_compile) 2>conftest.er1
32768 grep -v '^ *+' conftest.er1 >conftest.err
32770 cat conftest.err >&5
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); } &&
32773 { ac_try='test -z "$ac_c_werror_flag"
32774 || test ! -s conftest.err'
32775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776 (eval $ac_try) 2>&5
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; } &&
32780 { ac_try='test -s conftest.$ac_objext'
32781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32782 (eval $ac_try) 2>&5
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); }; }; then
32786 ac_cv_member_struct_stat_st_blksize=yes
32788 echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32791 cat >conftest.$ac_ext <<_ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h. */
32797 $ac_includes_default
32801 static struct stat ac_aggr;
32802 if (sizeof ac_aggr.st_blksize)
32808 rm -f conftest.$ac_objext
32809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32810 (eval $ac_compile) 2>conftest.er1
32812 grep -v '^ *+' conftest.er1 >conftest.err
32814 cat conftest.err >&5
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); } &&
32817 { ac_try='test -z "$ac_c_werror_flag"
32818 || test ! -s conftest.err'
32819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32820 (eval $ac_try) 2>&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); }; } &&
32824 { ac_try='test -s conftest.$ac_objext'
32825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32826 (eval $ac_try) 2>&5
32828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829 (exit $ac_status); }; }; then
32830 ac_cv_member_struct_stat_st_blksize=yes
32832 echo "$as_me: failed program was:" >&5
32833 sed 's/^/| /' conftest.$ac_ext >&5
32835 ac_cv_member_struct_stat_st_blksize=no
32837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32842 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
32843 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32845 cat >>confdefs.h <<_ACEOF
32846 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32852 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32853 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
32854 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32855 echo $ECHO_N "(cached) $ECHO_C" >&6
32857 cat >conftest.$ac_ext <<_ACEOF
32860 cat confdefs.h >>conftest.$ac_ext
32861 cat >>conftest.$ac_ext <<_ACEOF
32862 /* end confdefs.h. */
32863 $ac_includes_default
32869 static struct passwd ac_aggr;
32870 if (ac_aggr.pw_gecos)
32876 rm -f conftest.$ac_objext
32877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32878 (eval $ac_compile) 2>conftest.er1
32880 grep -v '^ *+' conftest.er1 >conftest.err
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } &&
32885 { ac_try='test -z "$ac_c_werror_flag"
32886 || test ! -s conftest.err'
32887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32888 (eval $ac_try) 2>&5
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); }; } &&
32892 { ac_try='test -s conftest.$ac_objext'
32893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32894 (eval $ac_try) 2>&5
32896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897 (exit $ac_status); }; }; then
32898 ac_cv_member_struct_passwd_pw_gecos=yes
32900 echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32903 cat >conftest.$ac_ext <<_ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h. */
32909 $ac_includes_default
32915 static struct passwd ac_aggr;
32916 if (sizeof ac_aggr.pw_gecos)
32922 rm -f conftest.$ac_objext
32923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32924 (eval $ac_compile) 2>conftest.er1
32926 grep -v '^ *+' conftest.er1 >conftest.err
32928 cat conftest.err >&5
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); } &&
32931 { ac_try='test -z "$ac_c_werror_flag"
32932 || test ! -s conftest.err'
32933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32934 (eval $ac_try) 2>&5
32936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32937 (exit $ac_status); }; } &&
32938 { ac_try='test -s conftest.$ac_objext'
32939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940 (eval $ac_try) 2>&5
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); }; }; then
32944 ac_cv_member_struct_passwd_pw_gecos=yes
32946 echo "$as_me: failed program was:" >&5
32947 sed 's/^/| /' conftest.$ac_ext >&5
32949 ac_cv_member_struct_passwd_pw_gecos=no
32951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32955 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32956 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
32957 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32959 cat >>confdefs.h <<_ACEOF
32960 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32966 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32967 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
32968 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32969 echo $ECHO_N "(cached) $ECHO_C" >&6
32971 cat >conftest.$ac_ext <<_ACEOF
32974 cat confdefs.h >>conftest.$ac_ext
32975 cat >>conftest.$ac_ext <<_ACEOF
32976 /* end confdefs.h. */
32977 $ac_includes_default
32983 static struct passwd ac_aggr;
32984 if (ac_aggr.pw_passwd)
32990 rm -f conftest.$ac_objext
32991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32992 (eval $ac_compile) 2>conftest.er1
32994 grep -v '^ *+' conftest.er1 >conftest.err
32996 cat conftest.err >&5
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); } &&
32999 { ac_try='test -z "$ac_c_werror_flag"
33000 || test ! -s conftest.err'
33001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33002 (eval $ac_try) 2>&5
33004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005 (exit $ac_status); }; } &&
33006 { ac_try='test -s conftest.$ac_objext'
33007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008 (eval $ac_try) 2>&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; }; then
33012 ac_cv_member_struct_passwd_pw_passwd=yes
33014 echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33017 cat >conftest.$ac_ext <<_ACEOF
33020 cat confdefs.h >>conftest.$ac_ext
33021 cat >>conftest.$ac_ext <<_ACEOF
33022 /* end confdefs.h. */
33023 $ac_includes_default
33029 static struct passwd ac_aggr;
33030 if (sizeof ac_aggr.pw_passwd)
33036 rm -f conftest.$ac_objext
33037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33038 (eval $ac_compile) 2>conftest.er1
33040 grep -v '^ *+' conftest.er1 >conftest.err
33042 cat conftest.err >&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); } &&
33045 { ac_try='test -z "$ac_c_werror_flag"
33046 || test ! -s conftest.err'
33047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048 (eval $ac_try) 2>&5
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); }; } &&
33052 { ac_try='test -s conftest.$ac_objext'
33053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33054 (eval $ac_try) 2>&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); }; }; then
33058 ac_cv_member_struct_passwd_pw_passwd=yes
33060 echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33063 ac_cv_member_struct_passwd_pw_passwd=no
33065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33069 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33070 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
33071 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33073 cat >>confdefs.h <<_ACEOF
33074 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33081 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33082 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
33083 if test "${ol_cv_c_upper_lower+set}" = set; then
33084 echo $ECHO_N "(cached) $ECHO_C" >&6
33087 if test "$cross_compiling" = yes; then
33088 ol_cv_c_upper_lower=safe
33090 cat >conftest.$ac_ext <<_ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33100 if ('C' == toupper('C'))
33106 rm -f conftest$ac_exeext
33107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33108 (eval $ac_link) 2>&5
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113 (eval $ac_try) 2>&5
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; }; then
33117 ol_cv_c_upper_lower=no
33119 echo "$as_me: program exited with status $ac_status" >&5
33120 echo "$as_me: failed program was:" >&5
33121 sed 's/^/| /' conftest.$ac_ext >&5
33123 ( exit $ac_status )
33124 ol_cv_c_upper_lower=yes
33126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33129 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33130 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
33131 if test $ol_cv_c_upper_lower != no ; then
33133 cat >>confdefs.h <<\_ACEOF
33134 #define C_UPPER_LOWER 1
33139 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33140 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
33141 if test "${ac_cv_c_const+set}" = set; then
33142 echo $ECHO_N "(cached) $ECHO_C" >&6
33144 cat >conftest.$ac_ext <<_ACEOF
33147 cat confdefs.h >>conftest.$ac_ext
33148 cat >>conftest.$ac_ext <<_ACEOF
33149 /* end confdefs.h. */
33154 /* FIXME: Include the comments suggested by Paul. */
33155 #ifndef __cplusplus
33156 /* Ultrix mips cc rejects this. */
33157 typedef int charset[2];
33159 /* SunOS 4.1.1 cc rejects this. */
33160 char const *const *ccp;
33162 /* NEC SVR4.0.2 mips cc rejects this. */
33163 struct point {int x, y;};
33164 static struct point const zero = {0,0};
33165 /* AIX XL C 1.02.0.0 rejects this.
33166 It does not let you subtract one const X* pointer from another in
33167 an arm of an if-expression whose if-part is not a constant
33169 const char *g = "string";
33170 ccp = &g + (g ? g-g : 0);
33171 /* HPUX 7.0 cc rejects these. */
33174 ccp = (char const *const *) p;
33175 { /* SCO 3.2v4 cc rejects this. */
33177 char const *s = 0 ? (char *) 0 : (char const *) 0;
33181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33182 int x[] = {25, 17};
33183 const int *foo = &x[0];
33186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33187 typedef const int *iptr;
33191 { /* AIX XL C 1.02.0.0 rejects this saying
33192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33193 struct s { int j; const int *ap[3]; };
33194 struct s *b; b->j = 5;
33196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33197 const int foo = 10;
33205 rm -f conftest.$ac_objext
33206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33207 (eval $ac_compile) 2>conftest.er1
33209 grep -v '^ *+' conftest.er1 >conftest.err
33211 cat conftest.err >&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); } &&
33214 { ac_try='test -z "$ac_c_werror_flag"
33215 || test ! -s conftest.err'
33216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217 (eval $ac_try) 2>&5
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; } &&
33221 { ac_try='test -s conftest.$ac_objext'
33222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223 (eval $ac_try) 2>&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
33229 echo "$as_me: failed program was:" >&5
33230 sed 's/^/| /' conftest.$ac_ext >&5
33234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33236 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33237 echo "${ECHO_T}$ac_cv_c_const" >&6
33238 if test $ac_cv_c_const = no; then
33240 cat >>confdefs.h <<\_ACEOF
33246 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33247 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33248 if test "${ol_cv_c_volatile+set}" = set; then
33249 echo $ECHO_N "(cached) $ECHO_C" >&6
33251 cat >conftest.$ac_ext <<_ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h. */
33261 volatile int a; int * volatile b = x ? &y : &z;
33262 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33268 rm -f conftest.$ac_objext
33269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33270 (eval $ac_compile) 2>conftest.er1
33272 grep -v '^ *+' conftest.er1 >conftest.err
33274 cat conftest.err >&5
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); } &&
33277 { ac_try='test -z "$ac_c_werror_flag"
33278 || test ! -s conftest.err'
33279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33280 (eval $ac_try) 2>&5
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest.$ac_objext'
33285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33286 (eval $ac_try) 2>&5
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; }; then
33290 ol_cv_c_volatile=yes
33292 echo "$as_me: failed program was:" >&5
33293 sed 's/^/| /' conftest.$ac_ext >&5
33295 ol_cv_c_volatile=no
33297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33299 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33300 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33301 if test $ol_cv_c_volatile = yes; then
33305 cat >>confdefs.h <<\_ACEOF
33312 if test $cross_compiling = yes ; then
33313 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33314 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33316 cat >>confdefs.h <<\_ACEOF
33317 #define CROSS_COMPILING 1
33321 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33322 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33323 if test "${ac_cv_c_bigendian+set}" = set; then
33324 echo $ECHO_N "(cached) $ECHO_C" >&6
33326 # See if sys/param.h defines the BYTE_ORDER macro.
33327 cat >conftest.$ac_ext <<_ACEOF
33330 cat confdefs.h >>conftest.$ac_ext
33331 cat >>conftest.$ac_ext <<_ACEOF
33332 /* end confdefs.h. */
33333 #include <sys/types.h>
33334 #include <sys/param.h>
33339 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33340 bogus endian macros
33347 rm -f conftest.$ac_objext
33348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33349 (eval $ac_compile) 2>conftest.er1
33351 grep -v '^ *+' conftest.er1 >conftest.err
33353 cat conftest.err >&5
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); } &&
33356 { ac_try='test -z "$ac_c_werror_flag"
33357 || test ! -s conftest.err'
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; } &&
33363 { ac_try='test -s conftest.$ac_objext'
33364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365 (eval $ac_try) 2>&5
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; }; then
33369 # It does; now see whether it defined to BIG_ENDIAN or not.
33370 cat >conftest.$ac_ext <<_ACEOF
33373 cat confdefs.h >>conftest.$ac_ext
33374 cat >>conftest.$ac_ext <<_ACEOF
33375 /* end confdefs.h. */
33376 #include <sys/types.h>
33377 #include <sys/param.h>
33382 #if BYTE_ORDER != BIG_ENDIAN
33390 rm -f conftest.$ac_objext
33391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33392 (eval $ac_compile) 2>conftest.er1
33394 grep -v '^ *+' conftest.er1 >conftest.err
33396 cat conftest.err >&5
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); } &&
33399 { ac_try='test -z "$ac_c_werror_flag"
33400 || test ! -s conftest.err'
33401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33402 (eval $ac_try) 2>&5
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; } &&
33406 { ac_try='test -s conftest.$ac_objext'
33407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408 (eval $ac_try) 2>&5
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; }; then
33412 ac_cv_c_bigendian=yes
33414 echo "$as_me: failed program was:" >&5
33415 sed 's/^/| /' conftest.$ac_ext >&5
33417 ac_cv_c_bigendian=no
33419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33421 echo "$as_me: failed program was:" >&5
33422 sed 's/^/| /' conftest.$ac_ext >&5
33424 # It does not; compile a test program.
33425 if test "$cross_compiling" = yes; then
33426 # try to guess the endianness by grepping values into an object file
33427 ac_cv_c_bigendian=unknown
33428 cat >conftest.$ac_ext <<_ACEOF
33431 cat confdefs.h >>conftest.$ac_ext
33432 cat >>conftest.$ac_ext <<_ACEOF
33433 /* end confdefs.h. */
33434 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33435 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33436 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33437 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33438 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33439 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33443 _ascii (); _ebcdic ();
33448 rm -f conftest.$ac_objext
33449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33450 (eval $ac_compile) 2>conftest.er1
33452 grep -v '^ *+' conftest.er1 >conftest.err
33454 cat conftest.err >&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); } &&
33457 { ac_try='test -z "$ac_c_werror_flag"
33458 || test ! -s conftest.err'
33459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33460 (eval $ac_try) 2>&5
33462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463 (exit $ac_status); }; } &&
33464 { ac_try='test -s conftest.$ac_objext'
33465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33466 (eval $ac_try) 2>&5
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); }; }; then
33470 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33471 ac_cv_c_bigendian=yes
33473 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33474 if test "$ac_cv_c_bigendian" = unknown; then
33475 ac_cv_c_bigendian=no
33477 # finding both strings is unlikely to happen, but who knows?
33478 ac_cv_c_bigendian=unknown
33482 echo "$as_me: failed program was:" >&5
33483 sed 's/^/| /' conftest.$ac_ext >&5
33486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33488 cat >conftest.$ac_ext <<_ACEOF
33491 cat confdefs.h >>conftest.$ac_ext
33492 cat >>conftest.$ac_ext <<_ACEOF
33493 /* end confdefs.h. */
33497 /* Are we little or big endian? From Harbison&Steele. */
33501 char c[sizeof (long)];
33504 exit (u.c[sizeof (long) - 1] == 1);
33507 rm -f conftest$ac_exeext
33508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33509 (eval $ac_link) 2>&5
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33514 (eval $ac_try) 2>&5
33516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517 (exit $ac_status); }; }; then
33518 ac_cv_c_bigendian=no
33520 echo "$as_me: program exited with status $ac_status" >&5
33521 echo "$as_me: failed program was:" >&5
33522 sed 's/^/| /' conftest.$ac_ext >&5
33524 ( exit $ac_status )
33525 ac_cv_c_bigendian=yes
33527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33532 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33533 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33534 case $ac_cv_c_bigendian in
33537 cat >>confdefs.h <<\_ACEOF
33538 #define WORDS_BIGENDIAN 1
33544 { { echo "$as_me:$LINENO: error: unknown endianness
33545 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33546 echo "$as_me: error: unknown endianness
33547 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33548 { (exit 1); exit 1; }; } ;;
33553 echo "$as_me:$LINENO: checking for short" >&5
33554 echo $ECHO_N "checking for short... $ECHO_C" >&6
33555 if test "${ac_cv_type_short+set}" = set; then
33556 echo $ECHO_N "(cached) $ECHO_C" >&6
33558 cat >conftest.$ac_ext <<_ACEOF
33561 cat confdefs.h >>conftest.$ac_ext
33562 cat >>conftest.$ac_ext <<_ACEOF
33563 /* end confdefs.h. */
33564 $ac_includes_default
33570 if (sizeof (short))
33576 rm -f conftest.$ac_objext
33577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33578 (eval $ac_compile) 2>conftest.er1
33580 grep -v '^ *+' conftest.er1 >conftest.err
33582 cat conftest.err >&5
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); } &&
33585 { ac_try='test -z "$ac_c_werror_flag"
33586 || test ! -s conftest.err'
33587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588 (eval $ac_try) 2>&5
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); }; } &&
33592 { ac_try='test -s conftest.$ac_objext'
33593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594 (eval $ac_try) 2>&5
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; }; then
33598 ac_cv_type_short=yes
33600 echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33603 ac_cv_type_short=no
33605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33607 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33608 echo "${ECHO_T}$ac_cv_type_short" >&6
33610 echo "$as_me:$LINENO: checking size of short" >&5
33611 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33612 if test "${ac_cv_sizeof_short+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33615 if test "$ac_cv_type_short" = yes; then
33616 # The cast to unsigned long works around a bug in the HP C Compiler
33617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33619 # This bug is HP SR number 8606223364.
33620 if test "$cross_compiling" = yes; then
33621 # Depending upon the size, compute the lo and hi bounds.
33622 cat >conftest.$ac_ext <<_ACEOF
33625 cat confdefs.h >>conftest.$ac_ext
33626 cat >>conftest.$ac_ext <<_ACEOF
33627 /* end confdefs.h. */
33628 $ac_includes_default
33632 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33639 rm -f conftest.$ac_objext
33640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33641 (eval $ac_compile) 2>conftest.er1
33643 grep -v '^ *+' conftest.er1 >conftest.err
33645 cat conftest.err >&5
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); } &&
33648 { ac_try='test -z "$ac_c_werror_flag"
33649 || test ! -s conftest.err'
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; } &&
33655 { ac_try='test -s conftest.$ac_objext'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; }; then
33663 cat >conftest.$ac_ext <<_ACEOF
33666 cat confdefs.h >>conftest.$ac_ext
33667 cat >>conftest.$ac_ext <<_ACEOF
33668 /* end confdefs.h. */
33669 $ac_includes_default
33673 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33680 rm -f conftest.$ac_objext
33681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33682 (eval $ac_compile) 2>conftest.er1
33684 grep -v '^ *+' conftest.er1 >conftest.err
33686 cat conftest.err >&5
33687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688 (exit $ac_status); } &&
33689 { ac_try='test -z "$ac_c_werror_flag"
33690 || test ! -s conftest.err'
33691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692 (eval $ac_try) 2>&5
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); }; } &&
33696 { ac_try='test -s conftest.$ac_objext'
33697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698 (eval $ac_try) 2>&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; }; then
33702 ac_hi=$ac_mid; break
33704 echo "$as_me: failed program was:" >&5
33705 sed 's/^/| /' conftest.$ac_ext >&5
33707 ac_lo=`expr $ac_mid + 1`
33708 if test $ac_lo -le $ac_mid; then
33712 ac_mid=`expr 2 '*' $ac_mid + 1`
33714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33717 echo "$as_me: failed program was:" >&5
33718 sed 's/^/| /' conftest.$ac_ext >&5
33720 cat >conftest.$ac_ext <<_ACEOF
33723 cat confdefs.h >>conftest.$ac_ext
33724 cat >>conftest.$ac_ext <<_ACEOF
33725 /* end confdefs.h. */
33726 $ac_includes_default
33730 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33737 rm -f conftest.$ac_objext
33738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33739 (eval $ac_compile) 2>conftest.er1
33741 grep -v '^ *+' conftest.er1 >conftest.err
33743 cat conftest.err >&5
33744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745 (exit $ac_status); } &&
33746 { ac_try='test -z "$ac_c_werror_flag"
33747 || test ! -s conftest.err'
33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749 (eval $ac_try) 2>&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; } &&
33753 { ac_try='test -s conftest.$ac_objext'
33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755 (eval $ac_try) 2>&5
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
33761 cat >conftest.$ac_ext <<_ACEOF
33764 cat confdefs.h >>conftest.$ac_ext
33765 cat >>conftest.$ac_ext <<_ACEOF
33766 /* end confdefs.h. */
33767 $ac_includes_default
33771 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
33778 rm -f conftest.$ac_objext
33779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780 (eval $ac_compile) 2>conftest.er1
33782 grep -v '^ *+' conftest.er1 >conftest.err
33784 cat conftest.err >&5
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } &&
33787 { ac_try='test -z "$ac_c_werror_flag"
33788 || test ! -s conftest.err'
33789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33790 (eval $ac_try) 2>&5
33792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793 (exit $ac_status); }; } &&
33794 { ac_try='test -s conftest.$ac_objext'
33795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796 (eval $ac_try) 2>&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); }; }; then
33800 ac_lo=$ac_mid; break
33802 echo "$as_me: failed program was:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33805 ac_hi=`expr '(' $ac_mid ')' - 1`
33806 if test $ac_mid -le $ac_hi; then
33810 ac_mid=`expr 2 '*' $ac_mid`
33812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33815 echo "$as_me: failed program was:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33823 # Binary search between lo and hi bounds.
33824 while test "x$ac_lo" != "x$ac_hi"; do
33825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33826 cat >conftest.$ac_ext <<_ACEOF
33829 cat confdefs.h >>conftest.$ac_ext
33830 cat >>conftest.$ac_ext <<_ACEOF
33831 /* end confdefs.h. */
33832 $ac_includes_default
33836 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33843 rm -f conftest.$ac_objext
33844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33845 (eval $ac_compile) 2>conftest.er1
33847 grep -v '^ *+' conftest.er1 >conftest.err
33849 cat conftest.err >&5
33850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851 (exit $ac_status); } &&
33852 { ac_try='test -z "$ac_c_werror_flag"
33853 || test ! -s conftest.err'
33854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33855 (eval $ac_try) 2>&5
33857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858 (exit $ac_status); }; } &&
33859 { ac_try='test -s conftest.$ac_objext'
33860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33861 (eval $ac_try) 2>&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); }; }; then
33867 echo "$as_me: failed program was:" >&5
33868 sed 's/^/| /' conftest.$ac_ext >&5
33870 ac_lo=`expr '(' $ac_mid ')' + 1`
33872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33875 ?*) ac_cv_sizeof_short=$ac_lo;;
33876 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33877 See \`config.log' for more details." >&5
33878 echo "$as_me: error: cannot compute sizeof (short), 77
33879 See \`config.log' for more details." >&2;}
33880 { (exit 1); exit 1; }; } ;;
33883 if test "$cross_compiling" = yes; then
33884 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33885 See \`config.log' for more details." >&5
33886 echo "$as_me: error: cannot run test program while cross compiling
33887 See \`config.log' for more details." >&2;}
33888 { (exit 1); exit 1; }; }
33890 cat >conftest.$ac_ext <<_ACEOF
33893 cat confdefs.h >>conftest.$ac_ext
33894 cat >>conftest.$ac_ext <<_ACEOF
33895 /* end confdefs.h. */
33896 $ac_includes_default
33897 long longval () { return (long) (sizeof (short)); }
33898 unsigned long ulongval () { return (long) (sizeof (short)); }
33900 #include <stdlib.h>
33905 FILE *f = fopen ("conftest.val", "w");
33908 if (((long) (sizeof (short))) < 0)
33910 long i = longval ();
33911 if (i != ((long) (sizeof (short))))
33913 fprintf (f, "%ld\n", i);
33917 unsigned long i = ulongval ();
33918 if (i != ((long) (sizeof (short))))
33920 fprintf (f, "%lu\n", i);
33922 exit (ferror (f) || fclose (f) != 0);
33928 rm -f conftest$ac_exeext
33929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33930 (eval $ac_link) 2>&5
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33935 (eval $ac_try) 2>&5
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); }; }; then
33939 ac_cv_sizeof_short=`cat conftest.val`
33941 echo "$as_me: program exited with status $ac_status" >&5
33942 echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33945 ( exit $ac_status )
33946 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33947 See \`config.log' for more details." >&5
33948 echo "$as_me: error: cannot compute sizeof (short), 77
33949 See \`config.log' for more details." >&2;}
33950 { (exit 1); exit 1; }; }
33952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33957 ac_cv_sizeof_short=0
33960 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33961 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33962 cat >>confdefs.h <<_ACEOF
33963 #define SIZEOF_SHORT $ac_cv_sizeof_short
33967 echo "$as_me:$LINENO: checking for int" >&5
33968 echo $ECHO_N "checking for int... $ECHO_C" >&6
33969 if test "${ac_cv_type_int+set}" = set; then
33970 echo $ECHO_N "(cached) $ECHO_C" >&6
33972 cat >conftest.$ac_ext <<_ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h. */
33978 $ac_includes_default
33990 rm -f conftest.$ac_objext
33991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33992 (eval $ac_compile) 2>conftest.er1
33994 grep -v '^ *+' conftest.er1 >conftest.err
33996 cat conftest.err >&5
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); } &&
33999 { ac_try='test -z "$ac_c_werror_flag"
34000 || test ! -s conftest.err'
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; } &&
34006 { ac_try='test -s conftest.$ac_objext'
34007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008 (eval $ac_try) 2>&5
34010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011 (exit $ac_status); }; }; then
34014 echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34021 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34022 echo "${ECHO_T}$ac_cv_type_int" >&6
34024 echo "$as_me:$LINENO: checking size of int" >&5
34025 echo $ECHO_N "checking size of int... $ECHO_C" >&6
34026 if test "${ac_cv_sizeof_int+set}" = set; then
34027 echo $ECHO_N "(cached) $ECHO_C" >&6
34029 if test "$ac_cv_type_int" = yes; then
34030 # The cast to unsigned long works around a bug in the HP C Compiler
34031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34033 # This bug is HP SR number 8606223364.
34034 if test "$cross_compiling" = yes; then
34035 # Depending upon the size, compute the lo and hi bounds.
34036 cat >conftest.$ac_ext <<_ACEOF
34039 cat confdefs.h >>conftest.$ac_ext
34040 cat >>conftest.$ac_ext <<_ACEOF
34041 /* end confdefs.h. */
34042 $ac_includes_default
34046 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
34053 rm -f conftest.$ac_objext
34054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34055 (eval $ac_compile) 2>conftest.er1
34057 grep -v '^ *+' conftest.er1 >conftest.err
34059 cat conftest.err >&5
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); } &&
34062 { ac_try='test -z "$ac_c_werror_flag"
34063 || test ! -s conftest.err'
34064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065 (eval $ac_try) 2>&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; } &&
34069 { ac_try='test -s conftest.$ac_objext'
34070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34071 (eval $ac_try) 2>&5
34073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074 (exit $ac_status); }; }; then
34077 cat >conftest.$ac_ext <<_ACEOF
34080 cat confdefs.h >>conftest.$ac_ext
34081 cat >>conftest.$ac_ext <<_ACEOF
34082 /* end confdefs.h. */
34083 $ac_includes_default
34087 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34094 rm -f conftest.$ac_objext
34095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34096 (eval $ac_compile) 2>conftest.er1
34098 grep -v '^ *+' conftest.er1 >conftest.err
34100 cat conftest.err >&5
34101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102 (exit $ac_status); } &&
34103 { ac_try='test -z "$ac_c_werror_flag"
34104 || test ! -s conftest.err'
34105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34106 (eval $ac_try) 2>&5
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); }; } &&
34110 { ac_try='test -s conftest.$ac_objext'
34111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34112 (eval $ac_try) 2>&5
34114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115 (exit $ac_status); }; }; then
34116 ac_hi=$ac_mid; break
34118 echo "$as_me: failed program was:" >&5
34119 sed 's/^/| /' conftest.$ac_ext >&5
34121 ac_lo=`expr $ac_mid + 1`
34122 if test $ac_lo -le $ac_mid; then
34126 ac_mid=`expr 2 '*' $ac_mid + 1`
34128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34131 echo "$as_me: failed program was:" >&5
34132 sed 's/^/| /' conftest.$ac_ext >&5
34134 cat >conftest.$ac_ext <<_ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h. */
34140 $ac_includes_default
34144 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
34151 rm -f conftest.$ac_objext
34152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34153 (eval $ac_compile) 2>conftest.er1
34155 grep -v '^ *+' conftest.er1 >conftest.err
34157 cat conftest.err >&5
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); } &&
34160 { ac_try='test -z "$ac_c_werror_flag"
34161 || test ! -s conftest.err'
34162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34163 (eval $ac_try) 2>&5
34165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166 (exit $ac_status); }; } &&
34167 { ac_try='test -s conftest.$ac_objext'
34168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34169 (eval $ac_try) 2>&5
34171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172 (exit $ac_status); }; }; then
34175 cat >conftest.$ac_ext <<_ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h. */
34181 $ac_includes_default
34185 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34192 rm -f conftest.$ac_objext
34193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34194 (eval $ac_compile) 2>conftest.er1
34196 grep -v '^ *+' conftest.er1 >conftest.err
34198 cat conftest.err >&5
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); } &&
34201 { ac_try='test -z "$ac_c_werror_flag"
34202 || test ! -s conftest.err'
34203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204 (eval $ac_try) 2>&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; } &&
34208 { ac_try='test -s conftest.$ac_objext'
34209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210 (eval $ac_try) 2>&5
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); }; }; then
34214 ac_lo=$ac_mid; break
34216 echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34219 ac_hi=`expr '(' $ac_mid ')' - 1`
34220 if test $ac_mid -le $ac_hi; then
34224 ac_mid=`expr 2 '*' $ac_mid`
34226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34229 echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34237 # Binary search between lo and hi bounds.
34238 while test "x$ac_lo" != "x$ac_hi"; do
34239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34240 cat >conftest.$ac_ext <<_ACEOF
34243 cat confdefs.h >>conftest.$ac_ext
34244 cat >>conftest.$ac_ext <<_ACEOF
34245 /* end confdefs.h. */
34246 $ac_includes_default
34250 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34257 rm -f conftest.$ac_objext
34258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34259 (eval $ac_compile) 2>conftest.er1
34261 grep -v '^ *+' conftest.er1 >conftest.err
34263 cat conftest.err >&5
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); } &&
34266 { ac_try='test -z "$ac_c_werror_flag"
34267 || test ! -s conftest.err'
34268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34269 (eval $ac_try) 2>&5
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); }; } &&
34273 { ac_try='test -s conftest.$ac_objext'
34274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34275 (eval $ac_try) 2>&5
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; }; then
34281 echo "$as_me: failed program was:" >&5
34282 sed 's/^/| /' conftest.$ac_ext >&5
34284 ac_lo=`expr '(' $ac_mid ')' + 1`
34286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34289 ?*) ac_cv_sizeof_int=$ac_lo;;
34290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34291 See \`config.log' for more details." >&5
34292 echo "$as_me: error: cannot compute sizeof (int), 77
34293 See \`config.log' for more details." >&2;}
34294 { (exit 1); exit 1; }; } ;;
34297 if test "$cross_compiling" = yes; then
34298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34299 See \`config.log' for more details." >&5
34300 echo "$as_me: error: cannot run test program while cross compiling
34301 See \`config.log' for more details." >&2;}
34302 { (exit 1); exit 1; }; }
34304 cat >conftest.$ac_ext <<_ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h. */
34310 $ac_includes_default
34311 long longval () { return (long) (sizeof (int)); }
34312 unsigned long ulongval () { return (long) (sizeof (int)); }
34314 #include <stdlib.h>
34319 FILE *f = fopen ("conftest.val", "w");
34322 if (((long) (sizeof (int))) < 0)
34324 long i = longval ();
34325 if (i != ((long) (sizeof (int))))
34327 fprintf (f, "%ld\n", i);
34331 unsigned long i = ulongval ();
34332 if (i != ((long) (sizeof (int))))
34334 fprintf (f, "%lu\n", i);
34336 exit (ferror (f) || fclose (f) != 0);
34342 rm -f conftest$ac_exeext
34343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34344 (eval $ac_link) 2>&5
34346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34349 (eval $ac_try) 2>&5
34351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352 (exit $ac_status); }; }; then
34353 ac_cv_sizeof_int=`cat conftest.val`
34355 echo "$as_me: program exited with status $ac_status" >&5
34356 echo "$as_me: failed program was:" >&5
34357 sed 's/^/| /' conftest.$ac_ext >&5
34359 ( exit $ac_status )
34360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34361 See \`config.log' for more details." >&5
34362 echo "$as_me: error: cannot compute sizeof (int), 77
34363 See \`config.log' for more details." >&2;}
34364 { (exit 1); exit 1; }; }
34366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34374 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34375 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34376 cat >>confdefs.h <<_ACEOF
34377 #define SIZEOF_INT $ac_cv_sizeof_int
34381 echo "$as_me:$LINENO: checking for long" >&5
34382 echo $ECHO_N "checking for long... $ECHO_C" >&6
34383 if test "${ac_cv_type_long+set}" = set; then
34384 echo $ECHO_N "(cached) $ECHO_C" >&6
34386 cat >conftest.$ac_ext <<_ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h. */
34392 $ac_includes_default
34404 rm -f conftest.$ac_objext
34405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34406 (eval $ac_compile) 2>conftest.er1
34408 grep -v '^ *+' conftest.er1 >conftest.err
34410 cat conftest.err >&5
34411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34412 (exit $ac_status); } &&
34413 { ac_try='test -z "$ac_c_werror_flag"
34414 || test ! -s conftest.err'
34415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416 (eval $ac_try) 2>&5
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; } &&
34420 { ac_try='test -s conftest.$ac_objext'
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; }; then
34426 ac_cv_type_long=yes
34428 echo "$as_me: failed program was:" >&5
34429 sed 's/^/| /' conftest.$ac_ext >&5
34433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34435 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34436 echo "${ECHO_T}$ac_cv_type_long" >&6
34438 echo "$as_me:$LINENO: checking size of long" >&5
34439 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34440 if test "${ac_cv_sizeof_long+set}" = set; then
34441 echo $ECHO_N "(cached) $ECHO_C" >&6
34443 if test "$ac_cv_type_long" = yes; then
34444 # The cast to unsigned long works around a bug in the HP C Compiler
34445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34447 # This bug is HP SR number 8606223364.
34448 if test "$cross_compiling" = yes; then
34449 # Depending upon the size, compute the lo and hi bounds.
34450 cat >conftest.$ac_ext <<_ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h. */
34456 $ac_includes_default
34460 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34467 rm -f conftest.$ac_objext
34468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34469 (eval $ac_compile) 2>conftest.er1
34471 grep -v '^ *+' conftest.er1 >conftest.err
34473 cat conftest.err >&5
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); } &&
34476 { ac_try='test -z "$ac_c_werror_flag"
34477 || test ! -s conftest.err'
34478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479 (eval $ac_try) 2>&5
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); }; } &&
34483 { ac_try='test -s conftest.$ac_objext'
34484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34485 (eval $ac_try) 2>&5
34487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34488 (exit $ac_status); }; }; then
34491 cat >conftest.$ac_ext <<_ACEOF
34494 cat confdefs.h >>conftest.$ac_ext
34495 cat >>conftest.$ac_ext <<_ACEOF
34496 /* end confdefs.h. */
34497 $ac_includes_default
34501 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34508 rm -f conftest.$ac_objext
34509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34510 (eval $ac_compile) 2>conftest.er1
34512 grep -v '^ *+' conftest.er1 >conftest.err
34514 cat conftest.err >&5
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); } &&
34517 { ac_try='test -z "$ac_c_werror_flag"
34518 || test ! -s conftest.err'
34519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34520 (eval $ac_try) 2>&5
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); }; } &&
34524 { ac_try='test -s conftest.$ac_objext'
34525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526 (eval $ac_try) 2>&5
34528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529 (exit $ac_status); }; }; then
34530 ac_hi=$ac_mid; break
34532 echo "$as_me: failed program was:" >&5
34533 sed 's/^/| /' conftest.$ac_ext >&5
34535 ac_lo=`expr $ac_mid + 1`
34536 if test $ac_lo -le $ac_mid; then
34540 ac_mid=`expr 2 '*' $ac_mid + 1`
34542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34545 echo "$as_me: failed program was:" >&5
34546 sed 's/^/| /' conftest.$ac_ext >&5
34548 cat >conftest.$ac_ext <<_ACEOF
34551 cat confdefs.h >>conftest.$ac_ext
34552 cat >>conftest.$ac_ext <<_ACEOF
34553 /* end confdefs.h. */
34554 $ac_includes_default
34558 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34565 rm -f conftest.$ac_objext
34566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34567 (eval $ac_compile) 2>conftest.er1
34569 grep -v '^ *+' conftest.er1 >conftest.err
34571 cat conftest.err >&5
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); } &&
34574 { ac_try='test -z "$ac_c_werror_flag"
34575 || test ! -s conftest.err'
34576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577 (eval $ac_try) 2>&5
34579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580 (exit $ac_status); }; } &&
34581 { ac_try='test -s conftest.$ac_objext'
34582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34583 (eval $ac_try) 2>&5
34585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586 (exit $ac_status); }; }; then
34589 cat >conftest.$ac_ext <<_ACEOF
34592 cat confdefs.h >>conftest.$ac_ext
34593 cat >>conftest.$ac_ext <<_ACEOF
34594 /* end confdefs.h. */
34595 $ac_includes_default
34599 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34606 rm -f conftest.$ac_objext
34607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34608 (eval $ac_compile) 2>conftest.er1
34610 grep -v '^ *+' conftest.er1 >conftest.err
34612 cat conftest.err >&5
34613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614 (exit $ac_status); } &&
34615 { ac_try='test -z "$ac_c_werror_flag"
34616 || test ! -s conftest.err'
34617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34618 (eval $ac_try) 2>&5
34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); }; } &&
34622 { ac_try='test -s conftest.$ac_objext'
34623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34624 (eval $ac_try) 2>&5
34626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627 (exit $ac_status); }; }; then
34628 ac_lo=$ac_mid; break
34630 echo "$as_me: failed program was:" >&5
34631 sed 's/^/| /' conftest.$ac_ext >&5
34633 ac_hi=`expr '(' $ac_mid ')' - 1`
34634 if test $ac_mid -le $ac_hi; then
34638 ac_mid=`expr 2 '*' $ac_mid`
34640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34643 echo "$as_me: failed program was:" >&5
34644 sed 's/^/| /' conftest.$ac_ext >&5
34648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34651 # Binary search between lo and hi bounds.
34652 while test "x$ac_lo" != "x$ac_hi"; do
34653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34654 cat >conftest.$ac_ext <<_ACEOF
34657 cat confdefs.h >>conftest.$ac_ext
34658 cat >>conftest.$ac_ext <<_ACEOF
34659 /* end confdefs.h. */
34660 $ac_includes_default
34664 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34671 rm -f conftest.$ac_objext
34672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34673 (eval $ac_compile) 2>conftest.er1
34675 grep -v '^ *+' conftest.er1 >conftest.err
34677 cat conftest.err >&5
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); } &&
34680 { ac_try='test -z "$ac_c_werror_flag"
34681 || test ! -s conftest.err'
34682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34683 (eval $ac_try) 2>&5
34685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686 (exit $ac_status); }; } &&
34687 { ac_try='test -s conftest.$ac_objext'
34688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34689 (eval $ac_try) 2>&5
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); }; }; then
34695 echo "$as_me: failed program was:" >&5
34696 sed 's/^/| /' conftest.$ac_ext >&5
34698 ac_lo=`expr '(' $ac_mid ')' + 1`
34700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34703 ?*) ac_cv_sizeof_long=$ac_lo;;
34704 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34705 See \`config.log' for more details." >&5
34706 echo "$as_me: error: cannot compute sizeof (long), 77
34707 See \`config.log' for more details." >&2;}
34708 { (exit 1); exit 1; }; } ;;
34711 if test "$cross_compiling" = yes; then
34712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34713 See \`config.log' for more details." >&5
34714 echo "$as_me: error: cannot run test program while cross compiling
34715 See \`config.log' for more details." >&2;}
34716 { (exit 1); exit 1; }; }
34718 cat >conftest.$ac_ext <<_ACEOF
34721 cat confdefs.h >>conftest.$ac_ext
34722 cat >>conftest.$ac_ext <<_ACEOF
34723 /* end confdefs.h. */
34724 $ac_includes_default
34725 long longval () { return (long) (sizeof (long)); }
34726 unsigned long ulongval () { return (long) (sizeof (long)); }
34728 #include <stdlib.h>
34733 FILE *f = fopen ("conftest.val", "w");
34736 if (((long) (sizeof (long))) < 0)
34738 long i = longval ();
34739 if (i != ((long) (sizeof (long))))
34741 fprintf (f, "%ld\n", i);
34745 unsigned long i = ulongval ();
34746 if (i != ((long) (sizeof (long))))
34748 fprintf (f, "%lu\n", i);
34750 exit (ferror (f) || fclose (f) != 0);
34756 rm -f conftest$ac_exeext
34757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34758 (eval $ac_link) 2>&5
34760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; }; then
34767 ac_cv_sizeof_long=`cat conftest.val`
34769 echo "$as_me: program exited with status $ac_status" >&5
34770 echo "$as_me: failed program was:" >&5
34771 sed 's/^/| /' conftest.$ac_ext >&5
34773 ( exit $ac_status )
34774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34775 See \`config.log' for more details." >&5
34776 echo "$as_me: error: cannot compute sizeof (long), 77
34777 See \`config.log' for more details." >&2;}
34778 { (exit 1); exit 1; }; }
34780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34785 ac_cv_sizeof_long=0
34788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34789 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
34790 cat >>confdefs.h <<_ACEOF
34791 #define SIZEOF_LONG $ac_cv_sizeof_long
34795 echo "$as_me:$LINENO: checking for long long" >&5
34796 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34797 if test "${ac_cv_type_long_long+set}" = set; then
34798 echo $ECHO_N "(cached) $ECHO_C" >&6
34800 cat >conftest.$ac_ext <<_ACEOF
34803 cat confdefs.h >>conftest.$ac_ext
34804 cat >>conftest.$ac_ext <<_ACEOF
34805 /* end confdefs.h. */
34806 $ac_includes_default
34810 if ((long long *) 0)
34812 if (sizeof (long long))
34818 rm -f conftest.$ac_objext
34819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34820 (eval $ac_compile) 2>conftest.er1
34822 grep -v '^ *+' conftest.er1 >conftest.err
34824 cat conftest.err >&5
34825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826 (exit $ac_status); } &&
34827 { ac_try='test -z "$ac_c_werror_flag"
34828 || test ! -s conftest.err'
34829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830 (eval $ac_try) 2>&5
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); }; } &&
34834 { ac_try='test -s conftest.$ac_objext'
34835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34836 (eval $ac_try) 2>&5
34838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839 (exit $ac_status); }; }; then
34840 ac_cv_type_long_long=yes
34842 echo "$as_me: failed program was:" >&5
34843 sed 's/^/| /' conftest.$ac_ext >&5
34845 ac_cv_type_long_long=no
34847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34849 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34850 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34852 echo "$as_me:$LINENO: checking size of long long" >&5
34853 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
34854 if test "${ac_cv_sizeof_long_long+set}" = set; then
34855 echo $ECHO_N "(cached) $ECHO_C" >&6
34857 if test "$ac_cv_type_long_long" = yes; then
34858 # The cast to unsigned long works around a bug in the HP C Compiler
34859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34861 # This bug is HP SR number 8606223364.
34862 if test "$cross_compiling" = yes; then
34863 # Depending upon the size, compute the lo and hi bounds.
34864 cat >conftest.$ac_ext <<_ACEOF
34867 cat confdefs.h >>conftest.$ac_ext
34868 cat >>conftest.$ac_ext <<_ACEOF
34869 /* end confdefs.h. */
34870 $ac_includes_default
34874 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
34881 rm -f conftest.$ac_objext
34882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34883 (eval $ac_compile) 2>conftest.er1
34885 grep -v '^ *+' conftest.er1 >conftest.err
34887 cat conftest.err >&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } &&
34890 { ac_try='test -z "$ac_c_werror_flag"
34891 || test ! -s conftest.err'
34892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893 (eval $ac_try) 2>&5
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); }; } &&
34897 { ac_try='test -s conftest.$ac_objext'
34898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34899 (eval $ac_try) 2>&5
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); }; }; then
34905 cat >conftest.$ac_ext <<_ACEOF
34908 cat confdefs.h >>conftest.$ac_ext
34909 cat >>conftest.$ac_ext <<_ACEOF
34910 /* end confdefs.h. */
34911 $ac_includes_default
34915 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34922 rm -f conftest.$ac_objext
34923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34924 (eval $ac_compile) 2>conftest.er1
34926 grep -v '^ *+' conftest.er1 >conftest.err
34928 cat conftest.err >&5
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); } &&
34931 { ac_try='test -z "$ac_c_werror_flag"
34932 || test ! -s conftest.err'
34933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34934 (eval $ac_try) 2>&5
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); }; } &&
34938 { ac_try='test -s conftest.$ac_objext'
34939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940 (eval $ac_try) 2>&5
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); }; }; then
34944 ac_hi=$ac_mid; break
34946 echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34949 ac_lo=`expr $ac_mid + 1`
34950 if test $ac_lo -le $ac_mid; then
34954 ac_mid=`expr 2 '*' $ac_mid + 1`
34956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34959 echo "$as_me: failed program was:" >&5
34960 sed 's/^/| /' conftest.$ac_ext >&5
34962 cat >conftest.$ac_ext <<_ACEOF
34965 cat confdefs.h >>conftest.$ac_ext
34966 cat >>conftest.$ac_ext <<_ACEOF
34967 /* end confdefs.h. */
34968 $ac_includes_default
34972 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
34979 rm -f conftest.$ac_objext
34980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34981 (eval $ac_compile) 2>conftest.er1
34983 grep -v '^ *+' conftest.er1 >conftest.err
34985 cat conftest.err >&5
34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987 (exit $ac_status); } &&
34988 { ac_try='test -z "$ac_c_werror_flag"
34989 || test ! -s conftest.err'
34990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34991 (eval $ac_try) 2>&5
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); }; } &&
34995 { ac_try='test -s conftest.$ac_objext'
34996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997 (eval $ac_try) 2>&5
34999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000 (exit $ac_status); }; }; then
35003 cat >conftest.$ac_ext <<_ACEOF
35006 cat confdefs.h >>conftest.$ac_ext
35007 cat >>conftest.$ac_ext <<_ACEOF
35008 /* end confdefs.h. */
35009 $ac_includes_default
35013 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
35020 rm -f conftest.$ac_objext
35021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35022 (eval $ac_compile) 2>conftest.er1
35024 grep -v '^ *+' conftest.er1 >conftest.err
35026 cat conftest.err >&5
35027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028 (exit $ac_status); } &&
35029 { ac_try='test -z "$ac_c_werror_flag"
35030 || test ! -s conftest.err'
35031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35032 (eval $ac_try) 2>&5
35034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35035 (exit $ac_status); }; } &&
35036 { ac_try='test -s conftest.$ac_objext'
35037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35038 (eval $ac_try) 2>&5
35040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041 (exit $ac_status); }; }; then
35042 ac_lo=$ac_mid; break
35044 echo "$as_me: failed program was:" >&5
35045 sed 's/^/| /' conftest.$ac_ext >&5
35047 ac_hi=`expr '(' $ac_mid ')' - 1`
35048 if test $ac_mid -le $ac_hi; then
35052 ac_mid=`expr 2 '*' $ac_mid`
35054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35057 echo "$as_me: failed program was:" >&5
35058 sed 's/^/| /' conftest.$ac_ext >&5
35062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35065 # Binary search between lo and hi bounds.
35066 while test "x$ac_lo" != "x$ac_hi"; do
35067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35068 cat >conftest.$ac_ext <<_ACEOF
35071 cat confdefs.h >>conftest.$ac_ext
35072 cat >>conftest.$ac_ext <<_ACEOF
35073 /* end confdefs.h. */
35074 $ac_includes_default
35078 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35085 rm -f conftest.$ac_objext
35086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35087 (eval $ac_compile) 2>conftest.er1
35089 grep -v '^ *+' conftest.er1 >conftest.err
35091 cat conftest.err >&5
35092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35093 (exit $ac_status); } &&
35094 { ac_try='test -z "$ac_c_werror_flag"
35095 || test ! -s conftest.err'
35096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35097 (eval $ac_try) 2>&5
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); }; } &&
35101 { ac_try='test -s conftest.$ac_objext'
35102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35103 (eval $ac_try) 2>&5
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); }; }; then
35109 echo "$as_me: failed program was:" >&5
35110 sed 's/^/| /' conftest.$ac_ext >&5
35112 ac_lo=`expr '(' $ac_mid ')' + 1`
35114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35117 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35119 See \`config.log' for more details." >&5
35120 echo "$as_me: error: cannot compute sizeof (long long), 77
35121 See \`config.log' for more details." >&2;}
35122 { (exit 1); exit 1; }; } ;;
35125 if test "$cross_compiling" = yes; then
35126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35127 See \`config.log' for more details." >&5
35128 echo "$as_me: error: cannot run test program while cross compiling
35129 See \`config.log' for more details." >&2;}
35130 { (exit 1); exit 1; }; }
35132 cat >conftest.$ac_ext <<_ACEOF
35135 cat confdefs.h >>conftest.$ac_ext
35136 cat >>conftest.$ac_ext <<_ACEOF
35137 /* end confdefs.h. */
35138 $ac_includes_default
35139 long longval () { return (long) (sizeof (long long)); }
35140 unsigned long ulongval () { return (long) (sizeof (long long)); }
35142 #include <stdlib.h>
35147 FILE *f = fopen ("conftest.val", "w");
35150 if (((long) (sizeof (long long))) < 0)
35152 long i = longval ();
35153 if (i != ((long) (sizeof (long long))))
35155 fprintf (f, "%ld\n", i);
35159 unsigned long i = ulongval ();
35160 if (i != ((long) (sizeof (long long))))
35162 fprintf (f, "%lu\n", i);
35164 exit (ferror (f) || fclose (f) != 0);
35170 rm -f conftest$ac_exeext
35171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35172 (eval $ac_link) 2>&5
35174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 (eval $ac_try) 2>&5
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); }; }; then
35181 ac_cv_sizeof_long_long=`cat conftest.val`
35183 echo "$as_me: program exited with status $ac_status" >&5
35184 echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35187 ( exit $ac_status )
35188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35189 See \`config.log' for more details." >&5
35190 echo "$as_me: error: cannot compute sizeof (long long), 77
35191 See \`config.log' for more details." >&2;}
35192 { (exit 1); exit 1; }; }
35194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35199 ac_cv_sizeof_long_long=0
35202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35203 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35204 cat >>confdefs.h <<_ACEOF
35205 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35209 echo "$as_me:$LINENO: checking for wchar_t" >&5
35210 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35211 if test "${ac_cv_type_wchar_t+set}" = set; then
35212 echo $ECHO_N "(cached) $ECHO_C" >&6
35214 cat >conftest.$ac_ext <<_ACEOF
35217 cat confdefs.h >>conftest.$ac_ext
35218 cat >>conftest.$ac_ext <<_ACEOF
35219 /* end confdefs.h. */
35220 $ac_includes_default
35226 if (sizeof (wchar_t))
35232 rm -f conftest.$ac_objext
35233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35234 (eval $ac_compile) 2>conftest.er1
35236 grep -v '^ *+' conftest.er1 >conftest.err
35238 cat conftest.err >&5
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); } &&
35241 { ac_try='test -z "$ac_c_werror_flag"
35242 || test ! -s conftest.err'
35243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35244 (eval $ac_try) 2>&5
35246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247 (exit $ac_status); }; } &&
35248 { ac_try='test -s conftest.$ac_objext'
35249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35250 (eval $ac_try) 2>&5
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; }; then
35254 ac_cv_type_wchar_t=yes
35256 echo "$as_me: failed program was:" >&5
35257 sed 's/^/| /' conftest.$ac_ext >&5
35259 ac_cv_type_wchar_t=no
35261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35263 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35264 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35266 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35267 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35268 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35269 echo $ECHO_N "(cached) $ECHO_C" >&6
35271 if test "$ac_cv_type_wchar_t" = yes; then
35272 # The cast to unsigned long works around a bug in the HP C Compiler
35273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35275 # This bug is HP SR number 8606223364.
35276 if test "$cross_compiling" = yes; then
35277 # Depending upon the size, compute the lo and hi bounds.
35278 cat >conftest.$ac_ext <<_ACEOF
35281 cat confdefs.h >>conftest.$ac_ext
35282 cat >>conftest.$ac_ext <<_ACEOF
35283 /* end confdefs.h. */
35284 $ac_includes_default
35288 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35295 rm -f conftest.$ac_objext
35296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35297 (eval $ac_compile) 2>conftest.er1
35299 grep -v '^ *+' conftest.er1 >conftest.err
35301 cat conftest.err >&5
35302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303 (exit $ac_status); } &&
35304 { ac_try='test -z "$ac_c_werror_flag"
35305 || test ! -s conftest.err'
35306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35307 (eval $ac_try) 2>&5
35309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); }; } &&
35311 { ac_try='test -s conftest.$ac_objext'
35312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35313 (eval $ac_try) 2>&5
35315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316 (exit $ac_status); }; }; then
35319 cat >conftest.$ac_ext <<_ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h. */
35325 $ac_includes_default
35329 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35336 rm -f conftest.$ac_objext
35337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35338 (eval $ac_compile) 2>conftest.er1
35340 grep -v '^ *+' conftest.er1 >conftest.err
35342 cat conftest.err >&5
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); } &&
35345 { ac_try='test -z "$ac_c_werror_flag"
35346 || test ! -s conftest.err'
35347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35348 (eval $ac_try) 2>&5
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); }; } &&
35352 { ac_try='test -s conftest.$ac_objext'
35353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35354 (eval $ac_try) 2>&5
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); }; }; then
35358 ac_hi=$ac_mid; break
35360 echo "$as_me: failed program was:" >&5
35361 sed 's/^/| /' conftest.$ac_ext >&5
35363 ac_lo=`expr $ac_mid + 1`
35364 if test $ac_lo -le $ac_mid; then
35368 ac_mid=`expr 2 '*' $ac_mid + 1`
35370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35373 echo "$as_me: failed program was:" >&5
35374 sed 's/^/| /' conftest.$ac_ext >&5
35376 cat >conftest.$ac_ext <<_ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h. */
35382 $ac_includes_default
35386 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35393 rm -f conftest.$ac_objext
35394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35395 (eval $ac_compile) 2>conftest.er1
35397 grep -v '^ *+' conftest.er1 >conftest.err
35399 cat conftest.err >&5
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); } &&
35402 { ac_try='test -z "$ac_c_werror_flag"
35403 || test ! -s conftest.err'
35404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 (eval $ac_try) 2>&5
35407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 (exit $ac_status); }; } &&
35409 { ac_try='test -s conftest.$ac_objext'
35410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411 (eval $ac_try) 2>&5
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); }; }; then
35417 cat >conftest.$ac_ext <<_ACEOF
35420 cat confdefs.h >>conftest.$ac_ext
35421 cat >>conftest.$ac_ext <<_ACEOF
35422 /* end confdefs.h. */
35423 $ac_includes_default
35427 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35434 rm -f conftest.$ac_objext
35435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35436 (eval $ac_compile) 2>conftest.er1
35438 grep -v '^ *+' conftest.er1 >conftest.err
35440 cat conftest.err >&5
35441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442 (exit $ac_status); } &&
35443 { ac_try='test -z "$ac_c_werror_flag"
35444 || test ! -s conftest.err'
35445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35446 (eval $ac_try) 2>&5
35448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); }; } &&
35450 { ac_try='test -s conftest.$ac_objext'
35451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35452 (eval $ac_try) 2>&5
35454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35455 (exit $ac_status); }; }; then
35456 ac_lo=$ac_mid; break
35458 echo "$as_me: failed program was:" >&5
35459 sed 's/^/| /' conftest.$ac_ext >&5
35461 ac_hi=`expr '(' $ac_mid ')' - 1`
35462 if test $ac_mid -le $ac_hi; then
35466 ac_mid=`expr 2 '*' $ac_mid`
35468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35471 echo "$as_me: failed program was:" >&5
35472 sed 's/^/| /' conftest.$ac_ext >&5
35476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35479 # Binary search between lo and hi bounds.
35480 while test "x$ac_lo" != "x$ac_hi"; do
35481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35482 cat >conftest.$ac_ext <<_ACEOF
35485 cat confdefs.h >>conftest.$ac_ext
35486 cat >>conftest.$ac_ext <<_ACEOF
35487 /* end confdefs.h. */
35488 $ac_includes_default
35492 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35499 rm -f conftest.$ac_objext
35500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35501 (eval $ac_compile) 2>conftest.er1
35503 grep -v '^ *+' conftest.er1 >conftest.err
35505 cat conftest.err >&5
35506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35507 (exit $ac_status); } &&
35508 { ac_try='test -z "$ac_c_werror_flag"
35509 || test ! -s conftest.err'
35510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35511 (eval $ac_try) 2>&5
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); }; } &&
35515 { ac_try='test -s conftest.$ac_objext'
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; }; then
35523 echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35526 ac_lo=`expr '(' $ac_mid ')' + 1`
35528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35531 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35532 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35533 See \`config.log' for more details." >&5
35534 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35535 See \`config.log' for more details." >&2;}
35536 { (exit 1); exit 1; }; } ;;
35539 if test "$cross_compiling" = yes; then
35540 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35541 See \`config.log' for more details." >&5
35542 echo "$as_me: error: cannot run test program while cross compiling
35543 See \`config.log' for more details." >&2;}
35544 { (exit 1); exit 1; }; }
35546 cat >conftest.$ac_ext <<_ACEOF
35549 cat confdefs.h >>conftest.$ac_ext
35550 cat >>conftest.$ac_ext <<_ACEOF
35551 /* end confdefs.h. */
35552 $ac_includes_default
35553 long longval () { return (long) (sizeof (wchar_t)); }
35554 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35556 #include <stdlib.h>
35561 FILE *f = fopen ("conftest.val", "w");
35564 if (((long) (sizeof (wchar_t))) < 0)
35566 long i = longval ();
35567 if (i != ((long) (sizeof (wchar_t))))
35569 fprintf (f, "%ld\n", i);
35573 unsigned long i = ulongval ();
35574 if (i != ((long) (sizeof (wchar_t))))
35576 fprintf (f, "%lu\n", i);
35578 exit (ferror (f) || fclose (f) != 0);
35584 rm -f conftest$ac_exeext
35585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35586 (eval $ac_link) 2>&5
35588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35591 (eval $ac_try) 2>&5
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); }; }; then
35595 ac_cv_sizeof_wchar_t=`cat conftest.val`
35597 echo "$as_me: program exited with status $ac_status" >&5
35598 echo "$as_me: failed program was:" >&5
35599 sed 's/^/| /' conftest.$ac_ext >&5
35601 ( exit $ac_status )
35602 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35603 See \`config.log' for more details." >&5
35604 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35605 See \`config.log' for more details." >&2;}
35606 { (exit 1); exit 1; }; }
35608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35613 ac_cv_sizeof_wchar_t=0
35616 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35617 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35618 cat >>confdefs.h <<_ACEOF
35619 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35624 if test "$ac_cv_sizeof_int" -lt 4 ; then
35625 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35626 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35629 cat >>confdefs.h <<\_ACEOF
35630 #define LBER_INT_T long
35635 cat >>confdefs.h <<\_ACEOF
35636 #define LBER_INT_T int
35642 cat >>confdefs.h <<\_ACEOF
35643 #define LBER_LEN_T long
35647 cat >>confdefs.h <<\_ACEOF
35648 #define LBER_SOCKET_T int
35652 cat >>confdefs.h <<\_ACEOF
35653 #define LBER_TAG_T long
35657 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35658 if test $ac_cv_sizeof_long_long -gt 4 ; then
35659 ol_with_mp=longlong
35661 cat >>confdefs.h <<\_ACEOF
35662 #define USE_MP_LONG_LONG 1
35665 elif test $ol_with_mp = longlong ; then
35666 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35667 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35668 { (exit 1); exit 1; }; }
35671 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35672 if test $ac_cv_sizeof_long -gt 4 ; then
35675 cat >>confdefs.h <<\_ACEOF
35676 #define USE_MP_LONG 1
35679 elif test $ol_with_mp = long ; then
35680 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35681 echo "$as_me: error: long unusable for multiple precision" >&2;}
35682 { (exit 1); exit 1; }; }
35685 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35687 for ac_header in openssl/bn.h
35689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35691 echo "$as_me:$LINENO: checking for $ac_header" >&5
35692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35694 echo $ECHO_N "(cached) $ECHO_C" >&6
35696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35699 # Is the header compilable?
35700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35702 cat >conftest.$ac_ext <<_ACEOF
35705 cat confdefs.h >>conftest.$ac_ext
35706 cat >>conftest.$ac_ext <<_ACEOF
35707 /* end confdefs.h. */
35708 $ac_includes_default
35709 #include <$ac_header>
35711 rm -f conftest.$ac_objext
35712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35713 (eval $ac_compile) 2>conftest.er1
35715 grep -v '^ *+' conftest.er1 >conftest.err
35717 cat conftest.err >&5
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); } &&
35720 { ac_try='test -z "$ac_c_werror_flag"
35721 || test ! -s conftest.err'
35722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35723 (eval $ac_try) 2>&5
35725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726 (exit $ac_status); }; } &&
35727 { ac_try='test -s conftest.$ac_objext'
35728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35729 (eval $ac_try) 2>&5
35731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732 (exit $ac_status); }; }; then
35733 ac_header_compiler=yes
35735 echo "$as_me: failed program was:" >&5
35736 sed 's/^/| /' conftest.$ac_ext >&5
35738 ac_header_compiler=no
35740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35742 echo "${ECHO_T}$ac_header_compiler" >&6
35744 # Is the header present?
35745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35747 cat >conftest.$ac_ext <<_ACEOF
35750 cat confdefs.h >>conftest.$ac_ext
35751 cat >>conftest.$ac_ext <<_ACEOF
35752 /* end confdefs.h. */
35753 #include <$ac_header>
35755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35758 grep -v '^ *+' conftest.er1 >conftest.err
35760 cat conftest.err >&5
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); } >/dev/null; then
35763 if test -s conftest.err; then
35764 ac_cpp_err=$ac_c_preproc_warn_flag
35765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35772 if test -z "$ac_cpp_err"; then
35773 ac_header_preproc=yes
35775 echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35778 ac_header_preproc=no
35780 rm -f conftest.err conftest.$ac_ext
35781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35782 echo "${ECHO_T}$ac_header_preproc" >&6
35784 # So? What about this header?
35785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35791 ac_header_preproc=yes
35794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35808 ## --------------------------------------------- ##
35809 ## Report this to <http://www.openldap.org/its/> ##
35810 ## --------------------------------------------- ##
35813 sed "s/^/$as_me: WARNING: /" >&2
35816 echo "$as_me:$LINENO: checking for $ac_header" >&5
35817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35819 echo $ECHO_N "(cached) $ECHO_C" >&6
35821 eval "$as_ac_Header=\$ac_header_preproc"
35823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35828 cat >>confdefs.h <<_ACEOF
35829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35837 for ac_header in openssl/crypto.h
35839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35841 echo "$as_me:$LINENO: checking for $ac_header" >&5
35842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35844 echo $ECHO_N "(cached) $ECHO_C" >&6
35846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35849 # Is the header compilable?
35850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35852 cat >conftest.$ac_ext <<_ACEOF
35855 cat confdefs.h >>conftest.$ac_ext
35856 cat >>conftest.$ac_ext <<_ACEOF
35857 /* end confdefs.h. */
35858 $ac_includes_default
35859 #include <$ac_header>
35861 rm -f conftest.$ac_objext
35862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35863 (eval $ac_compile) 2>conftest.er1
35865 grep -v '^ *+' conftest.er1 >conftest.err
35867 cat conftest.err >&5
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); } &&
35870 { ac_try='test -z "$ac_c_werror_flag"
35871 || test ! -s conftest.err'
35872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35873 (eval $ac_try) 2>&5
35875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35876 (exit $ac_status); }; } &&
35877 { ac_try='test -s conftest.$ac_objext'
35878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35879 (eval $ac_try) 2>&5
35881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35882 (exit $ac_status); }; }; then
35883 ac_header_compiler=yes
35885 echo "$as_me: failed program was:" >&5
35886 sed 's/^/| /' conftest.$ac_ext >&5
35888 ac_header_compiler=no
35890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35892 echo "${ECHO_T}$ac_header_compiler" >&6
35894 # Is the header present?
35895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35897 cat >conftest.$ac_ext <<_ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h. */
35903 #include <$ac_header>
35905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35908 grep -v '^ *+' conftest.er1 >conftest.err
35910 cat conftest.err >&5
35911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912 (exit $ac_status); } >/dev/null; then
35913 if test -s conftest.err; then
35914 ac_cpp_err=$ac_c_preproc_warn_flag
35915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35922 if test -z "$ac_cpp_err"; then
35923 ac_header_preproc=yes
35925 echo "$as_me: failed program was:" >&5
35926 sed 's/^/| /' conftest.$ac_ext >&5
35928 ac_header_preproc=no
35930 rm -f conftest.err conftest.$ac_ext
35931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35932 echo "${ECHO_T}$ac_header_preproc" >&6
35934 # So? What about this header?
35935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35941 ac_header_preproc=yes
35944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35958 ## --------------------------------------------- ##
35959 ## Report this to <http://www.openldap.org/its/> ##
35960 ## --------------------------------------------- ##
35963 sed "s/^/$as_me: WARNING: /" >&2
35966 echo "$as_me:$LINENO: checking for $ac_header" >&5
35967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35969 echo $ECHO_N "(cached) $ECHO_C" >&6
35971 eval "$as_ac_Header=\$ac_header_preproc"
35973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35978 cat >>confdefs.h <<_ACEOF
35979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35986 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35987 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35988 test "$ol_with_tls" = "found" ; then
35991 cat >>confdefs.h <<\_ACEOF
35992 #define USE_MP_BIGNUM 1
35995 elif test $ol_with_mp = bignum ; then
35996 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35997 echo "$as_me: error: bignum not available" >&2;}
35998 { (exit 1); exit 1; }; }
36001 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36003 for ac_header in gmp.h
36005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36007 echo "$as_me:$LINENO: checking for $ac_header" >&5
36008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36010 echo $ECHO_N "(cached) $ECHO_C" >&6
36012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36015 # Is the header compilable?
36016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36018 cat >conftest.$ac_ext <<_ACEOF
36021 cat confdefs.h >>conftest.$ac_ext
36022 cat >>conftest.$ac_ext <<_ACEOF
36023 /* end confdefs.h. */
36024 $ac_includes_default
36025 #include <$ac_header>
36027 rm -f conftest.$ac_objext
36028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36029 (eval $ac_compile) 2>conftest.er1
36031 grep -v '^ *+' conftest.er1 >conftest.err
36033 cat conftest.err >&5
36034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); } &&
36036 { ac_try='test -z "$ac_c_werror_flag"
36037 || test ! -s conftest.err'
36038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36039 (eval $ac_try) 2>&5
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); }; } &&
36043 { ac_try='test -s conftest.$ac_objext'
36044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36045 (eval $ac_try) 2>&5
36047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048 (exit $ac_status); }; }; then
36049 ac_header_compiler=yes
36051 echo "$as_me: failed program was:" >&5
36052 sed 's/^/| /' conftest.$ac_ext >&5
36054 ac_header_compiler=no
36056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36058 echo "${ECHO_T}$ac_header_compiler" >&6
36060 # Is the header present?
36061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36063 cat >conftest.$ac_ext <<_ACEOF
36066 cat confdefs.h >>conftest.$ac_ext
36067 cat >>conftest.$ac_ext <<_ACEOF
36068 /* end confdefs.h. */
36069 #include <$ac_header>
36071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36074 grep -v '^ *+' conftest.er1 >conftest.err
36076 cat conftest.err >&5
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); } >/dev/null; then
36079 if test -s conftest.err; then
36080 ac_cpp_err=$ac_c_preproc_warn_flag
36081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36088 if test -z "$ac_cpp_err"; then
36089 ac_header_preproc=yes
36091 echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36094 ac_header_preproc=no
36096 rm -f conftest.err conftest.$ac_ext
36097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36098 echo "${ECHO_T}$ac_header_preproc" >&6
36100 # So? What about this header?
36101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36107 ac_header_preproc=yes
36110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36124 ## --------------------------------------------- ##
36125 ## Report this to <http://www.openldap.org/its/> ##
36126 ## --------------------------------------------- ##
36129 sed "s/^/$as_me: WARNING: /" >&2
36132 echo "$as_me:$LINENO: checking for $ac_header" >&5
36133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36135 echo $ECHO_N "(cached) $ECHO_C" >&6
36137 eval "$as_ac_Header=\$ac_header_preproc"
36139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36144 cat >>confdefs.h <<_ACEOF
36145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36153 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36154 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36155 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36156 echo $ECHO_N "(cached) $ECHO_C" >&6
36158 ac_check_lib_save_LIBS=$LIBS
36160 cat >conftest.$ac_ext <<_ACEOF
36163 cat confdefs.h >>conftest.$ac_ext
36164 cat >>conftest.$ac_ext <<_ACEOF
36165 /* end confdefs.h. */
36167 /* Override any gcc2 internal prototype to avoid an error. */
36171 /* We use char because int might match the return type of a gcc2
36172 builtin and then its argument prototype would still apply. */
36173 char __gmpz_add_ui ();
36182 rm -f conftest.$ac_objext conftest$ac_exeext
36183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36184 (eval $ac_link) 2>conftest.er1
36186 grep -v '^ *+' conftest.er1 >conftest.err
36188 cat conftest.err >&5
36189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190 (exit $ac_status); } &&
36191 { ac_try='test -z "$ac_c_werror_flag"
36192 || test ! -s conftest.err'
36193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36194 (eval $ac_try) 2>&5
36196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197 (exit $ac_status); }; } &&
36198 { ac_try='test -s conftest$ac_exeext'
36199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36200 (eval $ac_try) 2>&5
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); }; }; then
36204 ac_cv_lib_gmp___gmpz_add_ui=yes
36206 echo "$as_me: failed program was:" >&5
36207 sed 's/^/| /' conftest.$ac_ext >&5
36209 ac_cv_lib_gmp___gmpz_add_ui=no
36211 rm -f conftest.err conftest.$ac_objext \
36212 conftest$ac_exeext conftest.$ac_ext
36213 LIBS=$ac_check_lib_save_LIBS
36215 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36216 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36217 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36218 cat >>confdefs.h <<_ACEOF
36219 #define HAVE_LIBGMP 1
36226 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36228 cat >>confdefs.h <<\_ACEOF
36229 #define USE_MP_GMP 1
36233 elif test $ol_with_mp = gmp ; then
36234 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36235 echo "$as_me: error: gmp not available" >&2;}
36236 { (exit 1); exit 1; }; }
36239 if test $ol_with_mp = auto ; then
36243 echo "$as_me:$LINENO: checking for working memcmp" >&5
36244 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36245 if test "${ac_cv_func_memcmp_working+set}" = set; then
36246 echo $ECHO_N "(cached) $ECHO_C" >&6
36248 if test "$cross_compiling" = yes; then
36249 ac_cv_func_memcmp_working=no
36251 cat >conftest.$ac_ext <<_ACEOF
36254 cat confdefs.h >>conftest.$ac_ext
36255 cat >>conftest.$ac_ext <<_ACEOF
36256 /* end confdefs.h. */
36257 $ac_includes_default
36262 /* Some versions of memcmp are not 8-bit clean. */
36263 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36264 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36267 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36268 or more and with at least one buffer not starting on a 4-byte boundary.
36269 William Lewis provided this test program. */
36274 for (i = 0; i < 4; i++)
36278 strcpy (a, "--------01111111");
36279 strcpy (b, "--------10000000");
36280 if (memcmp (a, b, 16) >= 0)
36290 rm -f conftest$ac_exeext
36291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36292 (eval $ac_link) 2>&5
36294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36297 (eval $ac_try) 2>&5
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); }; }; then
36301 ac_cv_func_memcmp_working=yes
36303 echo "$as_me: program exited with status $ac_status" >&5
36304 echo "$as_me: failed program was:" >&5
36305 sed 's/^/| /' conftest.$ac_ext >&5
36307 ( exit $ac_status )
36308 ac_cv_func_memcmp_working=no
36310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36313 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36314 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36315 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36316 "memcmp.$ac_objext" | \
36317 *" memcmp.$ac_objext" | \
36318 "memcmp.$ac_objext "* | \
36319 *" memcmp.$ac_objext "* ) ;;
36320 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36325 if test $ac_cv_func_memcmp_working = no ; then
36327 cat >>confdefs.h <<\_ACEOF
36328 #define NEED_MEMCMP_REPLACEMENT 1
36334 for ac_func in strftime
36336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36337 echo "$as_me:$LINENO: checking for $ac_func" >&5
36338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36339 if eval "test \"\${$as_ac_var+set}\" = set"; then
36340 echo $ECHO_N "(cached) $ECHO_C" >&6
36342 cat >conftest.$ac_ext <<_ACEOF
36345 cat confdefs.h >>conftest.$ac_ext
36346 cat >>conftest.$ac_ext <<_ACEOF
36347 /* end confdefs.h. */
36348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36350 #define $ac_func innocuous_$ac_func
36352 /* System header to define __stub macros and hopefully few prototypes,
36353 which can conflict with char $ac_func (); below.
36354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36355 <limits.h> exists even on freestanding compilers. */
36358 # include <limits.h>
36360 # include <assert.h>
36365 /* Override any gcc2 internal prototype to avoid an error. */
36370 /* We use char because int might match the return type of a gcc2
36371 builtin and then its argument prototype would still apply. */
36373 /* The GNU C library defines this for functions which it implements
36374 to always fail with ENOSYS. Some functions are actually named
36375 something starting with __ and the normal name is an alias. */
36376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36379 char (*f) () = $ac_func;
36388 return f != $ac_func;
36393 rm -f conftest.$ac_objext conftest$ac_exeext
36394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36395 (eval $ac_link) 2>conftest.er1
36397 grep -v '^ *+' conftest.er1 >conftest.err
36399 cat conftest.err >&5
36400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401 (exit $ac_status); } &&
36402 { ac_try='test -z "$ac_c_werror_flag"
36403 || test ! -s conftest.err'
36404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36405 (eval $ac_try) 2>&5
36407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36408 (exit $ac_status); }; } &&
36409 { ac_try='test -s conftest$ac_exeext'
36410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411 (eval $ac_try) 2>&5
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); }; }; then
36415 eval "$as_ac_var=yes"
36417 echo "$as_me: failed program was:" >&5
36418 sed 's/^/| /' conftest.$ac_ext >&5
36420 eval "$as_ac_var=no"
36422 rm -f conftest.err conftest.$ac_objext \
36423 conftest$ac_exeext conftest.$ac_ext
36425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36427 if test `eval echo '${'$as_ac_var'}'` = yes; then
36428 cat >>confdefs.h <<_ACEOF
36429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36433 # strftime is in -lintl on SCO UNIX.
36434 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36435 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36436 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36437 echo $ECHO_N "(cached) $ECHO_C" >&6
36439 ac_check_lib_save_LIBS=$LIBS
36440 LIBS="-lintl $LIBS"
36441 cat >conftest.$ac_ext <<_ACEOF
36444 cat confdefs.h >>conftest.$ac_ext
36445 cat >>conftest.$ac_ext <<_ACEOF
36446 /* end confdefs.h. */
36448 /* Override any gcc2 internal prototype to avoid an error. */
36452 /* We use char because int might match the return type of a gcc2
36453 builtin and then its argument prototype would still apply. */
36463 rm -f conftest.$ac_objext conftest$ac_exeext
36464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36465 (eval $ac_link) 2>conftest.er1
36467 grep -v '^ *+' conftest.er1 >conftest.err
36469 cat conftest.err >&5
36470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471 (exit $ac_status); } &&
36472 { ac_try='test -z "$ac_c_werror_flag"
36473 || test ! -s conftest.err'
36474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475 (eval $ac_try) 2>&5
36477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478 (exit $ac_status); }; } &&
36479 { ac_try='test -s conftest$ac_exeext'
36480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36481 (eval $ac_try) 2>&5
36483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484 (exit $ac_status); }; }; then
36485 ac_cv_lib_intl_strftime=yes
36487 echo "$as_me: failed program was:" >&5
36488 sed 's/^/| /' conftest.$ac_ext >&5
36490 ac_cv_lib_intl_strftime=no
36492 rm -f conftest.err conftest.$ac_objext \
36493 conftest$ac_exeext conftest.$ac_ext
36494 LIBS=$ac_check_lib_save_LIBS
36496 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36497 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36498 if test $ac_cv_lib_intl_strftime = yes; then
36499 cat >>confdefs.h <<\_ACEOF
36500 #define HAVE_STRFTIME 1
36503 LIBS="-lintl $LIBS"
36510 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36511 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36512 if test "${ol_cv_func_inet_aton+set}" = set; then
36513 echo $ECHO_N "(cached) $ECHO_C" >&6
36515 cat >conftest.$ac_ext <<_ACEOF
36518 cat confdefs.h >>conftest.$ac_ext
36519 cat >>conftest.$ac_ext <<_ACEOF
36520 /* end confdefs.h. */
36522 #ifdef HAVE_SYS_TYPES_H
36523 # include <sys/types.h>
36525 #ifdef HAVE_SYS_SOCKET_H
36526 # include <sys/socket.h>
36527 # ifdef HAVE_SYS_SELECT_H
36528 # include <sys/select.h>
36530 # include <netinet/in.h>
36531 # ifdef HAVE_ARPA_INET_H
36532 # include <arpa/inet.h>
36540 int rc = inet_aton( "255.255.255.255", &in );
36545 rm -f conftest.$ac_objext conftest$ac_exeext
36546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36547 (eval $ac_link) 2>conftest.er1
36549 grep -v '^ *+' conftest.er1 >conftest.err
36551 cat conftest.err >&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); } &&
36554 { ac_try='test -z "$ac_c_werror_flag"
36555 || test ! -s conftest.err'
36556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36557 (eval $ac_try) 2>&5
36559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36560 (exit $ac_status); }; } &&
36561 { ac_try='test -s conftest$ac_exeext'
36562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36563 (eval $ac_try) 2>&5
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); }; }; then
36567 ol_cv_func_inet_aton=yes
36569 echo "$as_me: failed program was:" >&5
36570 sed 's/^/| /' conftest.$ac_ext >&5
36572 ol_cv_func_inet_aton=no
36574 rm -f conftest.err conftest.$ac_objext \
36575 conftest$ac_exeext conftest.$ac_ext
36577 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36578 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36579 if test $ol_cv_func_inet_aton != no; then
36581 cat >>confdefs.h <<\_ACEOF
36582 #define HAVE_INET_ATON 1
36588 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36589 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36590 if test "${ac_cv_func__spawnlp+set}" = set; then
36591 echo $ECHO_N "(cached) $ECHO_C" >&6
36593 cat >conftest.$ac_ext <<_ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h. */
36599 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36601 #define _spawnlp innocuous__spawnlp
36603 /* System header to define __stub macros and hopefully few prototypes,
36604 which can conflict with char _spawnlp (); below.
36605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36606 <limits.h> exists even on freestanding compilers. */
36609 # include <limits.h>
36611 # include <assert.h>
36616 /* Override any gcc2 internal prototype to avoid an error. */
36621 /* We use char because int might match the return type of a gcc2
36622 builtin and then its argument prototype would still apply. */
36624 /* The GNU C library defines this for functions which it implements
36625 to always fail with ENOSYS. Some functions are actually named
36626 something starting with __ and the normal name is an alias. */
36627 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36630 char (*f) () = _spawnlp;
36639 return f != _spawnlp;
36644 rm -f conftest.$ac_objext conftest$ac_exeext
36645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36646 (eval $ac_link) 2>conftest.er1
36648 grep -v '^ *+' conftest.er1 >conftest.err
36650 cat conftest.err >&5
36651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); } &&
36653 { ac_try='test -z "$ac_c_werror_flag"
36654 || test ! -s conftest.err'
36655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36656 (eval $ac_try) 2>&5
36658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659 (exit $ac_status); }; } &&
36660 { ac_try='test -s conftest$ac_exeext'
36661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36662 (eval $ac_try) 2>&5
36664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665 (exit $ac_status); }; }; then
36666 ac_cv_func__spawnlp=yes
36668 echo "$as_me: failed program was:" >&5
36669 sed 's/^/| /' conftest.$ac_ext >&5
36671 ac_cv_func__spawnlp=no
36673 rm -f conftest.err conftest.$ac_objext \
36674 conftest$ac_exeext conftest.$ac_ext
36676 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36677 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
36678 if test $ac_cv_func__spawnlp = yes; then
36680 cat >>confdefs.h <<\_ACEOF
36681 #define HAVE_SPAWNLP 1
36687 echo "$as_me:$LINENO: checking for _snprintf" >&5
36688 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
36689 if test "${ac_cv_func__snprintf+set}" = set; then
36690 echo $ECHO_N "(cached) $ECHO_C" >&6
36692 cat >conftest.$ac_ext <<_ACEOF
36695 cat confdefs.h >>conftest.$ac_ext
36696 cat >>conftest.$ac_ext <<_ACEOF
36697 /* end confdefs.h. */
36698 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36700 #define _snprintf innocuous__snprintf
36702 /* System header to define __stub macros and hopefully few prototypes,
36703 which can conflict with char _snprintf (); below.
36704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36705 <limits.h> exists even on freestanding compilers. */
36708 # include <limits.h>
36710 # include <assert.h>
36715 /* Override any gcc2 internal prototype to avoid an error. */
36720 /* We use char because int might match the return type of a gcc2
36721 builtin and then its argument prototype would still apply. */
36723 /* The GNU C library defines this for functions which it implements
36724 to always fail with ENOSYS. Some functions are actually named
36725 something starting with __ and the normal name is an alias. */
36726 #if defined (__stub__snprintf) || defined (__stub____snprintf)
36729 char (*f) () = _snprintf;
36738 return f != _snprintf;
36743 rm -f conftest.$ac_objext conftest$ac_exeext
36744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36745 (eval $ac_link) 2>conftest.er1
36747 grep -v '^ *+' conftest.er1 >conftest.err
36749 cat conftest.err >&5
36750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36751 (exit $ac_status); } &&
36752 { ac_try='test -z "$ac_c_werror_flag"
36753 || test ! -s conftest.err'
36754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36755 (eval $ac_try) 2>&5
36757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758 (exit $ac_status); }; } &&
36759 { ac_try='test -s conftest$ac_exeext'
36760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36761 (eval $ac_try) 2>&5
36763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764 (exit $ac_status); }; }; then
36765 ac_cv_func__snprintf=yes
36767 echo "$as_me: failed program was:" >&5
36768 sed 's/^/| /' conftest.$ac_ext >&5
36770 ac_cv_func__snprintf=no
36772 rm -f conftest.err conftest.$ac_objext \
36773 conftest$ac_exeext conftest.$ac_ext
36775 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36776 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
36777 if test $ac_cv_func__snprintf = yes; then
36778 ac_cv_func_snprintf=yes
36780 cat >>confdefs.h <<\_ACEOF
36781 #define snprintf _snprintf
36790 for ac_func in vsnprintf _vsnprintf
36792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36793 echo "$as_me:$LINENO: checking for $ac_func" >&5
36794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36795 if eval "test \"\${$as_ac_var+set}\" = set"; then
36796 echo $ECHO_N "(cached) $ECHO_C" >&6
36798 cat >conftest.$ac_ext <<_ACEOF
36801 cat confdefs.h >>conftest.$ac_ext
36802 cat >>conftest.$ac_ext <<_ACEOF
36803 /* end confdefs.h. */
36804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36806 #define $ac_func innocuous_$ac_func
36808 /* System header to define __stub macros and hopefully few prototypes,
36809 which can conflict with char $ac_func (); below.
36810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36811 <limits.h> exists even on freestanding compilers. */
36814 # include <limits.h>
36816 # include <assert.h>
36821 /* Override any gcc2 internal prototype to avoid an error. */
36826 /* We use char because int might match the return type of a gcc2
36827 builtin and then its argument prototype would still apply. */
36829 /* The GNU C library defines this for functions which it implements
36830 to always fail with ENOSYS. Some functions are actually named
36831 something starting with __ and the normal name is an alias. */
36832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36835 char (*f) () = $ac_func;
36844 return f != $ac_func;
36849 rm -f conftest.$ac_objext conftest$ac_exeext
36850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36851 (eval $ac_link) 2>conftest.er1
36853 grep -v '^ *+' conftest.er1 >conftest.err
36855 cat conftest.err >&5
36856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857 (exit $ac_status); } &&
36858 { ac_try='test -z "$ac_c_werror_flag"
36859 || test ! -s conftest.err'
36860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36861 (eval $ac_try) 2>&5
36863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864 (exit $ac_status); }; } &&
36865 { ac_try='test -s conftest$ac_exeext'
36866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36867 (eval $ac_try) 2>&5
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); }; }; then
36871 eval "$as_ac_var=yes"
36873 echo "$as_me: failed program was:" >&5
36874 sed 's/^/| /' conftest.$ac_ext >&5
36876 eval "$as_ac_var=no"
36878 rm -f conftest.err conftest.$ac_objext \
36879 conftest$ac_exeext conftest.$ac_ext
36881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36883 if test `eval echo '${'$as_ac_var'}'` = yes; then
36884 cat >>confdefs.h <<_ACEOF
36885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36892 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36893 ac_cv_func_vsnprintf=yes
36895 cat >>confdefs.h <<\_ACEOF
36896 #define vsnprintf _vsnprintf
36902 for ac_func in vprintf
36904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36905 echo "$as_me:$LINENO: checking for $ac_func" >&5
36906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36907 if eval "test \"\${$as_ac_var+set}\" = set"; then
36908 echo $ECHO_N "(cached) $ECHO_C" >&6
36910 cat >conftest.$ac_ext <<_ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h. */
36916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36918 #define $ac_func innocuous_$ac_func
36920 /* System header to define __stub macros and hopefully few prototypes,
36921 which can conflict with char $ac_func (); below.
36922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36923 <limits.h> exists even on freestanding compilers. */
36926 # include <limits.h>
36928 # include <assert.h>
36933 /* Override any gcc2 internal prototype to avoid an error. */
36938 /* We use char because int might match the return type of a gcc2
36939 builtin and then its argument prototype would still apply. */
36941 /* The GNU C library defines this for functions which it implements
36942 to always fail with ENOSYS. Some functions are actually named
36943 something starting with __ and the normal name is an alias. */
36944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36947 char (*f) () = $ac_func;
36956 return f != $ac_func;
36961 rm -f conftest.$ac_objext conftest$ac_exeext
36962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36963 (eval $ac_link) 2>conftest.er1
36965 grep -v '^ *+' conftest.er1 >conftest.err
36967 cat conftest.err >&5
36968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969 (exit $ac_status); } &&
36970 { ac_try='test -z "$ac_c_werror_flag"
36971 || test ! -s conftest.err'
36972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36973 (eval $ac_try) 2>&5
36975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36976 (exit $ac_status); }; } &&
36977 { ac_try='test -s conftest$ac_exeext'
36978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36979 (eval $ac_try) 2>&5
36981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982 (exit $ac_status); }; }; then
36983 eval "$as_ac_var=yes"
36985 echo "$as_me: failed program was:" >&5
36986 sed 's/^/| /' conftest.$ac_ext >&5
36988 eval "$as_ac_var=no"
36990 rm -f conftest.err conftest.$ac_objext \
36991 conftest$ac_exeext conftest.$ac_ext
36993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36995 if test `eval echo '${'$as_ac_var'}'` = yes; then
36996 cat >>confdefs.h <<_ACEOF
36997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37000 echo "$as_me:$LINENO: checking for _doprnt" >&5
37001 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
37002 if test "${ac_cv_func__doprnt+set}" = set; then
37003 echo $ECHO_N "(cached) $ECHO_C" >&6
37005 cat >conftest.$ac_ext <<_ACEOF
37008 cat confdefs.h >>conftest.$ac_ext
37009 cat >>conftest.$ac_ext <<_ACEOF
37010 /* end confdefs.h. */
37011 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37013 #define _doprnt innocuous__doprnt
37015 /* System header to define __stub macros and hopefully few prototypes,
37016 which can conflict with char _doprnt (); below.
37017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37018 <limits.h> exists even on freestanding compilers. */
37021 # include <limits.h>
37023 # include <assert.h>
37028 /* Override any gcc2 internal prototype to avoid an error. */
37033 /* We use char because int might match the return type of a gcc2
37034 builtin and then its argument prototype would still apply. */
37036 /* The GNU C library defines this for functions which it implements
37037 to always fail with ENOSYS. Some functions are actually named
37038 something starting with __ and the normal name is an alias. */
37039 #if defined (__stub__doprnt) || defined (__stub____doprnt)
37042 char (*f) () = _doprnt;
37051 return f != _doprnt;
37056 rm -f conftest.$ac_objext conftest$ac_exeext
37057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37058 (eval $ac_link) 2>conftest.er1
37060 grep -v '^ *+' conftest.er1 >conftest.err
37062 cat conftest.err >&5
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); } &&
37065 { ac_try='test -z "$ac_c_werror_flag"
37066 || test ! -s conftest.err'
37067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37068 (eval $ac_try) 2>&5
37070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37071 (exit $ac_status); }; } &&
37072 { ac_try='test -s conftest$ac_exeext'
37073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37074 (eval $ac_try) 2>&5
37076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37077 (exit $ac_status); }; }; then
37078 ac_cv_func__doprnt=yes
37080 echo "$as_me: failed program was:" >&5
37081 sed 's/^/| /' conftest.$ac_ext >&5
37083 ac_cv_func__doprnt=no
37085 rm -f conftest.err conftest.$ac_objext \
37086 conftest$ac_exeext conftest.$ac_ext
37088 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37089 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
37090 if test $ac_cv_func__doprnt = yes; then
37092 cat >>confdefs.h <<\_ACEOF
37093 #define HAVE_DOPRNT 1
37103 if test $ac_cv_func_vprintf = yes ; then
37106 for ac_func in snprintf vsnprintf
37108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37109 echo "$as_me:$LINENO: checking for $ac_func" >&5
37110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37111 if eval "test \"\${$as_ac_var+set}\" = set"; then
37112 echo $ECHO_N "(cached) $ECHO_C" >&6
37114 cat >conftest.$ac_ext <<_ACEOF
37117 cat confdefs.h >>conftest.$ac_ext
37118 cat >>conftest.$ac_ext <<_ACEOF
37119 /* end confdefs.h. */
37120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37122 #define $ac_func innocuous_$ac_func
37124 /* System header to define __stub macros and hopefully few prototypes,
37125 which can conflict with char $ac_func (); below.
37126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37127 <limits.h> exists even on freestanding compilers. */
37130 # include <limits.h>
37132 # include <assert.h>
37137 /* Override any gcc2 internal prototype to avoid an error. */
37142 /* We use char because int might match the return type of a gcc2
37143 builtin and then its argument prototype would still apply. */
37145 /* The GNU C library defines this for functions which it implements
37146 to always fail with ENOSYS. Some functions are actually named
37147 something starting with __ and the normal name is an alias. */
37148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37151 char (*f) () = $ac_func;
37160 return f != $ac_func;
37165 rm -f conftest.$ac_objext conftest$ac_exeext
37166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37167 (eval $ac_link) 2>conftest.er1
37169 grep -v '^ *+' conftest.er1 >conftest.err
37171 cat conftest.err >&5
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); } &&
37174 { ac_try='test -z "$ac_c_werror_flag"
37175 || test ! -s conftest.err'
37176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37177 (eval $ac_try) 2>&5
37179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); }; } &&
37181 { ac_try='test -s conftest$ac_exeext'
37182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37183 (eval $ac_try) 2>&5
37185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186 (exit $ac_status); }; }; then
37187 eval "$as_ac_var=yes"
37189 echo "$as_me: failed program was:" >&5
37190 sed 's/^/| /' conftest.$ac_ext >&5
37192 eval "$as_ac_var=no"
37194 rm -f conftest.err conftest.$ac_objext \
37195 conftest$ac_exeext conftest.$ac_ext
37197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37199 if test `eval echo '${'$as_ac_var'}'` = yes; then
37200 cat >>confdefs.h <<_ACEOF
37201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37325 echo "$as_me:$LINENO: checking for $ac_func" >&5
37326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37327 if eval "test \"\${$as_ac_var+set}\" = set"; then
37328 echo $ECHO_N "(cached) $ECHO_C" >&6
37330 cat >conftest.$ac_ext <<_ACEOF
37333 cat confdefs.h >>conftest.$ac_ext
37334 cat >>conftest.$ac_ext <<_ACEOF
37335 /* end confdefs.h. */
37336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37338 #define $ac_func innocuous_$ac_func
37340 /* System header to define __stub macros and hopefully few prototypes,
37341 which can conflict with char $ac_func (); below.
37342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37343 <limits.h> exists even on freestanding compilers. */
37346 # include <limits.h>
37348 # include <assert.h>
37353 /* Override any gcc2 internal prototype to avoid an error. */
37358 /* We use char because int might match the return type of a gcc2
37359 builtin and then its argument prototype would still apply. */
37361 /* The GNU C library defines this for functions which it implements
37362 to always fail with ENOSYS. Some functions are actually named
37363 something starting with __ and the normal name is an alias. */
37364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37367 char (*f) () = $ac_func;
37376 return f != $ac_func;
37381 rm -f conftest.$ac_objext conftest$ac_exeext
37382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37383 (eval $ac_link) 2>conftest.er1
37385 grep -v '^ *+' conftest.er1 >conftest.err
37387 cat conftest.err >&5
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); } &&
37390 { ac_try='test -z "$ac_c_werror_flag"
37391 || test ! -s conftest.err'
37392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393 (eval $ac_try) 2>&5
37395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396 (exit $ac_status); }; } &&
37397 { ac_try='test -s conftest$ac_exeext'
37398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399 (eval $ac_try) 2>&5
37401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402 (exit $ac_status); }; }; then
37403 eval "$as_ac_var=yes"
37405 echo "$as_me: failed program was:" >&5
37406 sed 's/^/| /' conftest.$ac_ext >&5
37408 eval "$as_ac_var=no"
37410 rm -f conftest.err conftest.$ac_objext \
37411 conftest$ac_exeext conftest.$ac_ext
37413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37415 if test `eval echo '${'$as_ac_var'}'` = yes; then
37416 cat >>confdefs.h <<_ACEOF
37417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37426 for ac_func in getopt getpeereid
37428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37429 echo "$as_me:$LINENO: checking for $ac_func" >&5
37430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37431 if eval "test \"\${$as_ac_var+set}\" = set"; then
37432 echo $ECHO_N "(cached) $ECHO_C" >&6
37434 cat >conftest.$ac_ext <<_ACEOF
37437 cat confdefs.h >>conftest.$ac_ext
37438 cat >>conftest.$ac_ext <<_ACEOF
37439 /* end confdefs.h. */
37440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37442 #define $ac_func innocuous_$ac_func
37444 /* System header to define __stub macros and hopefully few prototypes,
37445 which can conflict with char $ac_func (); below.
37446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37447 <limits.h> exists even on freestanding compilers. */
37450 # include <limits.h>
37452 # include <assert.h>
37457 /* Override any gcc2 internal prototype to avoid an error. */
37462 /* We use char because int might match the return type of a gcc2
37463 builtin and then its argument prototype would still apply. */
37465 /* The GNU C library defines this for functions which it implements
37466 to always fail with ENOSYS. Some functions are actually named
37467 something starting with __ and the normal name is an alias. */
37468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37471 char (*f) () = $ac_func;
37480 return f != $ac_func;
37485 rm -f conftest.$ac_objext conftest$ac_exeext
37486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37487 (eval $ac_link) 2>conftest.er1
37489 grep -v '^ *+' conftest.er1 >conftest.err
37491 cat conftest.err >&5
37492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37493 (exit $ac_status); } &&
37494 { ac_try='test -z "$ac_c_werror_flag"
37495 || test ! -s conftest.err'
37496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37497 (eval $ac_try) 2>&5
37499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500 (exit $ac_status); }; } &&
37501 { ac_try='test -s conftest$ac_exeext'
37502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37503 (eval $ac_try) 2>&5
37505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506 (exit $ac_status); }; }; then
37507 eval "$as_ac_var=yes"
37509 echo "$as_me: failed program was:" >&5
37510 sed 's/^/| /' conftest.$ac_ext >&5
37512 eval "$as_ac_var=no"
37514 rm -f conftest.err conftest.$ac_objext \
37515 conftest$ac_exeext conftest.$ac_ext
37517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37519 if test `eval echo '${'$as_ac_var'}'` = yes; then
37520 cat >>confdefs.h <<_ACEOF
37521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37526 "$ac_func.$ac_objext" | \
37527 *" $ac_func.$ac_objext" | \
37528 "$ac_func.$ac_objext "* | \
37529 *" $ac_func.$ac_objext "* ) ;;
37530 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37538 if test "$ac_cv_func_getopt" != yes; then
37539 LIBSRCS="$LIBSRCS getopt.c"
37542 if test "$ac_cv_func_getpeereid" != yes; then
37544 for ac_func in getpeerucred
37546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37547 echo "$as_me:$LINENO: checking for $ac_func" >&5
37548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37549 if eval "test \"\${$as_ac_var+set}\" = set"; then
37550 echo $ECHO_N "(cached) $ECHO_C" >&6
37552 cat >conftest.$ac_ext <<_ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h. */
37558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37560 #define $ac_func innocuous_$ac_func
37562 /* System header to define __stub macros and hopefully few prototypes,
37563 which can conflict with char $ac_func (); below.
37564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37565 <limits.h> exists even on freestanding compilers. */
37568 # include <limits.h>
37570 # include <assert.h>
37575 /* Override any gcc2 internal prototype to avoid an error. */
37580 /* We use char because int might match the return type of a gcc2
37581 builtin and then its argument prototype would still apply. */
37583 /* The GNU C library defines this for functions which it implements
37584 to always fail with ENOSYS. Some functions are actually named
37585 something starting with __ and the normal name is an alias. */
37586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37589 char (*f) () = $ac_func;
37598 return f != $ac_func;
37603 rm -f conftest.$ac_objext conftest$ac_exeext
37604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37605 (eval $ac_link) 2>conftest.er1
37607 grep -v '^ *+' conftest.er1 >conftest.err
37609 cat conftest.err >&5
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); } &&
37612 { ac_try='test -z "$ac_c_werror_flag"
37613 || test ! -s conftest.err'
37614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37615 (eval $ac_try) 2>&5
37617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); }; } &&
37619 { ac_try='test -s conftest$ac_exeext'
37620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37621 (eval $ac_try) 2>&5
37623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37624 (exit $ac_status); }; }; then
37625 eval "$as_ac_var=yes"
37627 echo "$as_me: failed program was:" >&5
37628 sed 's/^/| /' conftest.$ac_ext >&5
37630 eval "$as_ac_var=no"
37632 rm -f conftest.err conftest.$ac_objext \
37633 conftest$ac_exeext conftest.$ac_ext
37635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37637 if test `eval echo '${'$as_ac_var'}'` = yes; then
37638 cat >>confdefs.h <<_ACEOF
37639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37645 if test "$ac_cv_func_getpeerucred" != yes ; then
37646 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37647 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37648 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37649 echo $ECHO_N "(cached) $ECHO_C" >&6
37651 cat >conftest.$ac_ext <<_ACEOF
37654 cat confdefs.h >>conftest.$ac_ext
37655 cat >>conftest.$ac_ext <<_ACEOF
37656 /* end confdefs.h. */
37657 $ac_includes_default
37658 #ifdef HAVE_SYS_SOCKET_H
37659 #include <sys/socket.h>
37665 static struct msghdr ac_aggr;
37666 if (ac_aggr.msg_accrightslen)
37672 rm -f conftest.$ac_objext
37673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37674 (eval $ac_compile) 2>conftest.er1
37676 grep -v '^ *+' conftest.er1 >conftest.err
37678 cat conftest.err >&5
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); } &&
37681 { ac_try='test -z "$ac_c_werror_flag"
37682 || test ! -s conftest.err'
37683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37684 (eval $ac_try) 2>&5
37686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37687 (exit $ac_status); }; } &&
37688 { ac_try='test -s conftest.$ac_objext'
37689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37690 (eval $ac_try) 2>&5
37692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693 (exit $ac_status); }; }; then
37694 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37696 echo "$as_me: failed program was:" >&5
37697 sed 's/^/| /' conftest.$ac_ext >&5
37699 cat >conftest.$ac_ext <<_ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h. */
37705 $ac_includes_default
37706 #ifdef HAVE_SYS_SOCKET_H
37707 #include <sys/socket.h>
37713 static struct msghdr ac_aggr;
37714 if (sizeof ac_aggr.msg_accrightslen)
37720 rm -f conftest.$ac_objext
37721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37722 (eval $ac_compile) 2>conftest.er1
37724 grep -v '^ *+' conftest.er1 >conftest.err
37726 cat conftest.err >&5
37727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37728 (exit $ac_status); } &&
37729 { ac_try='test -z "$ac_c_werror_flag"
37730 || test ! -s conftest.err'
37731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37732 (eval $ac_try) 2>&5
37734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37735 (exit $ac_status); }; } &&
37736 { ac_try='test -s conftest.$ac_objext'
37737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37738 (eval $ac_try) 2>&5
37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 (exit $ac_status); }; }; then
37742 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37744 echo "$as_me: failed program was:" >&5
37745 sed 's/^/| /' conftest.$ac_ext >&5
37747 ac_cv_member_struct_msghdr_msg_accrightslen=no
37749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37753 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37754 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
37755 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37757 cat >>confdefs.h <<_ACEOF
37758 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37764 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37765 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37766 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
37767 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37768 echo $ECHO_N "(cached) $ECHO_C" >&6
37770 cat >conftest.$ac_ext <<_ACEOF
37773 cat confdefs.h >>conftest.$ac_ext
37774 cat >>conftest.$ac_ext <<_ACEOF
37775 /* end confdefs.h. */
37776 $ac_includes_default
37777 #ifdef HAVE_SYS_SOCKET_H
37778 #include <sys/socket.h>
37784 static struct msghdr ac_aggr;
37785 if (ac_aggr.msg_control)
37791 rm -f conftest.$ac_objext
37792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37793 (eval $ac_compile) 2>conftest.er1
37795 grep -v '^ *+' conftest.er1 >conftest.err
37797 cat conftest.err >&5
37798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799 (exit $ac_status); } &&
37800 { ac_try='test -z "$ac_c_werror_flag"
37801 || test ! -s conftest.err'
37802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37803 (eval $ac_try) 2>&5
37805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); }; } &&
37807 { ac_try='test -s conftest.$ac_objext'
37808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37809 (eval $ac_try) 2>&5
37811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812 (exit $ac_status); }; }; then
37813 ac_cv_member_struct_msghdr_msg_control=yes
37815 echo "$as_me: failed program was:" >&5
37816 sed 's/^/| /' conftest.$ac_ext >&5
37818 cat >conftest.$ac_ext <<_ACEOF
37821 cat confdefs.h >>conftest.$ac_ext
37822 cat >>conftest.$ac_ext <<_ACEOF
37823 /* end confdefs.h. */
37824 $ac_includes_default
37825 #ifdef HAVE_SYS_SOCKET_H
37826 #include <sys/socket.h>
37832 static struct msghdr ac_aggr;
37833 if (sizeof ac_aggr.msg_control)
37839 rm -f conftest.$ac_objext
37840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37841 (eval $ac_compile) 2>conftest.er1
37843 grep -v '^ *+' conftest.er1 >conftest.err
37845 cat conftest.err >&5
37846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847 (exit $ac_status); } &&
37848 { ac_try='test -z "$ac_c_werror_flag"
37849 || test ! -s conftest.err'
37850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37851 (eval $ac_try) 2>&5
37853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854 (exit $ac_status); }; } &&
37855 { ac_try='test -s conftest.$ac_objext'
37856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857 (eval $ac_try) 2>&5
37859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860 (exit $ac_status); }; }; then
37861 ac_cv_member_struct_msghdr_msg_control=yes
37863 echo "$as_me: failed program was:" >&5
37864 sed 's/^/| /' conftest.$ac_ext >&5
37866 ac_cv_member_struct_msghdr_msg_control=no
37868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37872 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37873 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
37874 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37876 cat >>confdefs.h <<_ACEOF
37877 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37884 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37885 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
37886 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37887 echo $ECHO_N "(cached) $ECHO_C" >&6
37889 cat >conftest.$ac_ext <<_ACEOF
37892 cat confdefs.h >>conftest.$ac_ext
37893 cat >>conftest.$ac_ext <<_ACEOF
37894 /* end confdefs.h. */
37895 $ac_includes_default
37899 static struct stat ac_aggr;
37900 if (ac_aggr.st_fstype)
37906 rm -f conftest.$ac_objext
37907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37908 (eval $ac_compile) 2>conftest.er1
37910 grep -v '^ *+' conftest.er1 >conftest.err
37912 cat conftest.err >&5
37913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914 (exit $ac_status); } &&
37915 { ac_try='test -z "$ac_c_werror_flag"
37916 || test ! -s conftest.err'
37917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37918 (eval $ac_try) 2>&5
37920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921 (exit $ac_status); }; } &&
37922 { ac_try='test -s conftest.$ac_objext'
37923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924 (eval $ac_try) 2>&5
37926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927 (exit $ac_status); }; }; then
37928 ac_cv_member_struct_stat_st_fstype=yes
37930 echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37933 cat >conftest.$ac_ext <<_ACEOF
37936 cat confdefs.h >>conftest.$ac_ext
37937 cat >>conftest.$ac_ext <<_ACEOF
37938 /* end confdefs.h. */
37939 $ac_includes_default
37943 static struct stat ac_aggr;
37944 if (sizeof ac_aggr.st_fstype)
37950 rm -f conftest.$ac_objext
37951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37952 (eval $ac_compile) 2>conftest.er1
37954 grep -v '^ *+' conftest.er1 >conftest.err
37956 cat conftest.err >&5
37957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958 (exit $ac_status); } &&
37959 { ac_try='test -z "$ac_c_werror_flag"
37960 || test ! -s conftest.err'
37961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37962 (eval $ac_try) 2>&5
37964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965 (exit $ac_status); }; } &&
37966 { ac_try='test -s conftest.$ac_objext'
37967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968 (eval $ac_try) 2>&5
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); }; }; then
37972 ac_cv_member_struct_stat_st_fstype=yes
37974 echo "$as_me: failed program was:" >&5
37975 sed 's/^/| /' conftest.$ac_ext >&5
37977 ac_cv_member_struct_stat_st_fstype=no
37979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37983 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37984 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
37985 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37987 cat >>confdefs.h <<_ACEOF
37988 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37993 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37994 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
37995 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37996 echo $ECHO_N "(cached) $ECHO_C" >&6
37998 cat >conftest.$ac_ext <<_ACEOF
38001 cat confdefs.h >>conftest.$ac_ext
38002 cat >>conftest.$ac_ext <<_ACEOF
38003 /* end confdefs.h. */
38004 $ac_includes_default
38008 static struct stat ac_aggr;
38009 if (ac_aggr.st_vfstype)
38015 rm -f conftest.$ac_objext
38016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38017 (eval $ac_compile) 2>conftest.er1
38019 grep -v '^ *+' conftest.er1 >conftest.err
38021 cat conftest.err >&5
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); } &&
38024 { ac_try='test -z "$ac_c_werror_flag"
38025 || test ! -s conftest.err'
38026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38027 (eval $ac_try) 2>&5
38029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38030 (exit $ac_status); }; } &&
38031 { ac_try='test -s conftest.$ac_objext'
38032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38033 (eval $ac_try) 2>&5
38035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036 (exit $ac_status); }; }; then
38037 ac_cv_member_struct_stat_st_vfstype=yes
38039 echo "$as_me: failed program was:" >&5
38040 sed 's/^/| /' conftest.$ac_ext >&5
38042 cat >conftest.$ac_ext <<_ACEOF
38045 cat confdefs.h >>conftest.$ac_ext
38046 cat >>conftest.$ac_ext <<_ACEOF
38047 /* end confdefs.h. */
38048 $ac_includes_default
38052 static struct stat ac_aggr;
38053 if (sizeof ac_aggr.st_vfstype)
38059 rm -f conftest.$ac_objext
38060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38061 (eval $ac_compile) 2>conftest.er1
38063 grep -v '^ *+' conftest.er1 >conftest.err
38065 cat conftest.err >&5
38066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067 (exit $ac_status); } &&
38068 { ac_try='test -z "$ac_c_werror_flag"
38069 || test ! -s conftest.err'
38070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38071 (eval $ac_try) 2>&5
38073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074 (exit $ac_status); }; } &&
38075 { ac_try='test -s conftest.$ac_objext'
38076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077 (eval $ac_try) 2>&5
38079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080 (exit $ac_status); }; }; then
38081 ac_cv_member_struct_stat_st_vfstype=yes
38083 echo "$as_me: failed program was:" >&5
38084 sed 's/^/| /' conftest.$ac_ext >&5
38086 ac_cv_member_struct_stat_st_vfstype=no
38088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38092 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38093 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
38094 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38096 cat >>confdefs.h <<_ACEOF
38097 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38103 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38104 cat >conftest.$ac_ext <<_ACEOF
38105 struct stat st; char *ptr=st.st_fstype;
38107 rm -f conftest.$ac_objext
38108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38109 (eval $ac_compile) 2>conftest.er1
38111 grep -v '^ *+' conftest.er1 >conftest.err
38113 cat conftest.err >&5
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); } &&
38116 { ac_try='test -z "$ac_c_werror_flag"
38117 || test ! -s conftest.err'
38118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38119 (eval $ac_try) 2>&5
38121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38122 (exit $ac_status); }; } &&
38123 { ac_try='test -s conftest.$ac_objext'
38124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38125 (eval $ac_try) 2>&5
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); }; }; then
38130 cat >>confdefs.h <<\_ACEOF
38131 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38135 echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38139 cat >>confdefs.h <<\_ACEOF
38140 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38147 LIBSRCS="$LIBSRCS getpeereid.c"
38150 if test "$ac_cv_func_snprintf" != yes ||
38151 test "$ac_cv_func_vsnprintf" != yes; then
38152 if test "$ac_cv_func_snprintf" != yes; then
38154 cat >>confdefs.h <<\_ACEOF
38155 #define snprintf ber_pvt_snprintf
38159 if test "$ac_cv_func_vsnprintf" != yes; then
38161 cat >>confdefs.h <<\_ACEOF
38162 #define vsnprintf ber_pvt_vsnprintf
38169 if test "$ol_enable_slapi" != no ; then
38171 for ac_header in ltdl.h
38173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38175 echo "$as_me:$LINENO: checking for $ac_header" >&5
38176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38178 echo $ECHO_N "(cached) $ECHO_C" >&6
38180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38183 # Is the header compilable?
38184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38186 cat >conftest.$ac_ext <<_ACEOF
38189 cat confdefs.h >>conftest.$ac_ext
38190 cat >>conftest.$ac_ext <<_ACEOF
38191 /* end confdefs.h. */
38192 $ac_includes_default
38193 #include <$ac_header>
38195 rm -f conftest.$ac_objext
38196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38197 (eval $ac_compile) 2>conftest.er1
38199 grep -v '^ *+' conftest.er1 >conftest.err
38201 cat conftest.err >&5
38202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203 (exit $ac_status); } &&
38204 { ac_try='test -z "$ac_c_werror_flag"
38205 || test ! -s conftest.err'
38206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38207 (eval $ac_try) 2>&5
38209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38210 (exit $ac_status); }; } &&
38211 { ac_try='test -s conftest.$ac_objext'
38212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38213 (eval $ac_try) 2>&5
38215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216 (exit $ac_status); }; }; then
38217 ac_header_compiler=yes
38219 echo "$as_me: failed program was:" >&5
38220 sed 's/^/| /' conftest.$ac_ext >&5
38222 ac_header_compiler=no
38224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38226 echo "${ECHO_T}$ac_header_compiler" >&6
38228 # Is the header present?
38229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38231 cat >conftest.$ac_ext <<_ACEOF
38234 cat confdefs.h >>conftest.$ac_ext
38235 cat >>conftest.$ac_ext <<_ACEOF
38236 /* end confdefs.h. */
38237 #include <$ac_header>
38239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38242 grep -v '^ *+' conftest.er1 >conftest.err
38244 cat conftest.err >&5
38245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246 (exit $ac_status); } >/dev/null; then
38247 if test -s conftest.err; then
38248 ac_cpp_err=$ac_c_preproc_warn_flag
38249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38256 if test -z "$ac_cpp_err"; then
38257 ac_header_preproc=yes
38259 echo "$as_me: failed program was:" >&5
38260 sed 's/^/| /' conftest.$ac_ext >&5
38262 ac_header_preproc=no
38264 rm -f conftest.err conftest.$ac_ext
38265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38266 echo "${ECHO_T}$ac_header_preproc" >&6
38268 # So? What about this header?
38269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38275 ac_header_preproc=yes
38278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38292 ## --------------------------------------------- ##
38293 ## Report this to <http://www.openldap.org/its/> ##
38294 ## --------------------------------------------- ##
38297 sed "s/^/$as_me: WARNING: /" >&2
38300 echo "$as_me:$LINENO: checking for $ac_header" >&5
38301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38303 echo $ECHO_N "(cached) $ECHO_C" >&6
38305 eval "$as_ac_Header=\$ac_header_preproc"
38307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38312 cat >>confdefs.h <<_ACEOF
38313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38321 if test $ac_cv_header_ltdl_h != yes ; then
38322 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38323 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38324 { (exit 1); exit 1; }; }
38326 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38327 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38328 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38329 echo $ECHO_N "(cached) $ECHO_C" >&6
38331 ac_check_lib_save_LIBS=$LIBS
38332 LIBS="-lltdl $LIBS"
38333 cat >conftest.$ac_ext <<_ACEOF
38336 cat confdefs.h >>conftest.$ac_ext
38337 cat >>conftest.$ac_ext <<_ACEOF
38338 /* end confdefs.h. */
38340 /* Override any gcc2 internal prototype to avoid an error. */
38344 /* We use char because int might match the return type of a gcc2
38345 builtin and then its argument prototype would still apply. */
38355 rm -f conftest.$ac_objext conftest$ac_exeext
38356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38357 (eval $ac_link) 2>conftest.er1
38359 grep -v '^ *+' conftest.er1 >conftest.err
38361 cat conftest.err >&5
38362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38363 (exit $ac_status); } &&
38364 { ac_try='test -z "$ac_c_werror_flag"
38365 || test ! -s conftest.err'
38366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38367 (eval $ac_try) 2>&5
38369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370 (exit $ac_status); }; } &&
38371 { ac_try='test -s conftest$ac_exeext'
38372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38373 (eval $ac_try) 2>&5
38375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38376 (exit $ac_status); }; }; then
38377 ac_cv_lib_ltdl_lt_dlinit=yes
38379 echo "$as_me: failed program was:" >&5
38380 sed 's/^/| /' conftest.$ac_ext >&5
38382 ac_cv_lib_ltdl_lt_dlinit=no
38384 rm -f conftest.err conftest.$ac_objext \
38385 conftest$ac_exeext conftest.$ac_ext
38386 LIBS=$ac_check_lib_save_LIBS
38388 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38389 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38390 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38393 LIBSLAPI=libslapi.a
38394 LIBSLAPITOOLS=../libslapi.a
38396 cat >>confdefs.h <<\_ACEOF
38397 #define HAVE_LIBLTDL 1
38402 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38403 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38404 { (exit 1); exit 1; }; }
38409 cat >>confdefs.h <<\_ACEOF
38410 #define LDAP_SLAPI 1
38415 if test "$ol_enable_debug" != no ; then
38416 if test "$ol_enable_debug" = traditional; then
38418 cat >>confdefs.h <<\_ACEOF
38419 #define OLD_DEBUG 1
38424 cat >>confdefs.h <<\_ACEOF
38425 #define LDAP_DEBUG 1
38429 if test "$ol_enable_syslog" = yes ; then
38431 cat >>confdefs.h <<\_ACEOF
38432 #define LDAP_SYSLOG 1
38436 if test "$ol_enable_proctitle" != no ; then
38438 cat >>confdefs.h <<\_ACEOF
38439 #define LDAP_PROCTITLE 1
38443 if test "$ol_enable_referrals" != no ; then
38445 cat >>confdefs.h <<\_ACEOF
38446 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38450 if test "$ol_enable_local" != no; then
38452 cat >>confdefs.h <<\_ACEOF
38453 #define LDAP_PF_LOCAL 1
38457 if test "$ol_link_ipv6" != no; then
38459 cat >>confdefs.h <<\_ACEOF
38460 #define LDAP_PF_INET6 1
38464 if test "$ol_enable_cleartext" != no ; then
38466 cat >>confdefs.h <<\_ACEOF
38467 #define SLAPD_CLEARTEXT 1
38471 if test "$ol_enable_crypt" != no ; then
38473 cat >>confdefs.h <<\_ACEOF
38474 #define SLAPD_CRYPT 1
38478 if test "$ol_link_spasswd" != no ; then
38480 cat >>confdefs.h <<\_ACEOF
38481 #define SLAPD_SPASSWD 1
38485 if test "$ol_enable_rlookups" != no ; then
38487 cat >>confdefs.h <<\_ACEOF
38488 #define SLAPD_RLOOKUPS 1
38492 if test "$ol_enable_aci" != no ; then
38493 if test $ol_enable_dynacl = no ; then
38494 ol_enable_dynacl=yes
38495 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38496 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38498 if test "$ol_enable_aci" = mod ; then
38499 MFLAG=SLAPD_MOD_DYNAMIC
38500 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38501 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38502 { (exit 1); exit 1; }; }
38504 MFLAG=SLAPD_MOD_STATIC
38506 WITH_ACI_ENABLED=$ol_enable_aci
38508 cat >>confdefs.h <<_ACEOF
38509 #define SLAPD_ACI_ENABLED $MFLAG
38513 WITH_ACI_ENABLED=no
38515 if test "$ol_enable_dynacl" != no ; then
38517 cat >>confdefs.h <<\_ACEOF
38518 #define SLAP_DYNACL 1
38523 if test "$ol_link_modules" != no ; then
38525 cat >>confdefs.h <<\_ACEOF
38526 #define SLAPD_MODULES 1
38530 SLAPD_MODULES_LDFLAGS="-dlopen self"
38534 cat >>confdefs.h <<\_ACEOF
38535 #define SLAPD_MOD_STATIC 1
38539 cat >>confdefs.h <<\_ACEOF
38540 #define SLAPD_MOD_DYNAMIC 2
38544 if test "$ol_enable_monitor" != no ; then
38546 BUILD_MONITOR=$ol_enable_monitor
38547 if test "$ol_enable_monitor" = mod ; then
38548 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38549 MFLAG=SLAPD_MOD_DYNAMIC
38551 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38552 MFLAG=SLAPD_MOD_STATIC
38555 cat >>confdefs.h <<_ACEOF
38556 #define SLAPD_MONITOR $MFLAG
38561 if test "$ol_enable_bdb" != no ; then
38563 BUILD_BDB=$ol_enable_bdb
38564 if test "$ol_enable_bdb" = mod ; then
38565 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38566 MFLAG=SLAPD_MOD_DYNAMIC
38568 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38569 MFLAG=SLAPD_MOD_STATIC
38572 cat >>confdefs.h <<_ACEOF
38573 #define SLAPD_BDB $MFLAG
38578 if test "$ol_enable_dnssrv" != no ; then
38580 BUILD_DNSSRV=$ol_enable_dnssrv
38581 if test "$ol_enable_dnssrv" = mod ; then
38582 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38583 MFLAG=SLAPD_MOD_DYNAMIC
38585 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38586 MFLAG=SLAPD_MOD_STATIC
38589 cat >>confdefs.h <<_ACEOF
38590 #define SLAPD_DNSSRV $MFLAG
38595 if test "$ol_enable_hdb" != no ; then
38597 BUILD_HDB=$ol_enable_hdb
38598 if test "$ol_enable_hdb" = mod ; then
38599 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38600 MFLAG=SLAPD_MOD_DYNAMIC
38602 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38603 MFLAG=SLAPD_MOD_STATIC
38606 cat >>confdefs.h <<_ACEOF
38607 #define SLAPD_HDB $MFLAG
38612 if test "$ol_enable_ldap" != no ; then
38614 BUILD_LDAP=$ol_enable_ldap
38615 if test "$ol_enable_ldap" = mod ; then
38616 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38617 MFLAG=SLAPD_MOD_DYNAMIC
38619 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38620 MFLAG=SLAPD_MOD_STATIC
38623 cat >>confdefs.h <<_ACEOF
38624 #define SLAPD_LDAP $MFLAG
38629 if test "$ol_enable_meta" != no ; then
38631 BUILD_META=$ol_enable_meta
38633 if test "$ol_enable_meta" = mod ; then
38634 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38635 MFLAG=SLAPD_MOD_DYNAMIC
38637 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38638 MFLAG=SLAPD_MOD_STATIC
38641 cat >>confdefs.h <<_ACEOF
38642 #define SLAPD_META $MFLAG
38647 if test "$ol_enable_ndb" != no ; then
38649 BUILD_NDB=$ol_enable_ndb
38650 if test "$ol_enable_ndb" = mod ; then
38651 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38652 MFLAG=SLAPD_MOD_DYNAMIC
38654 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38655 MFLAG=SLAPD_MOD_STATIC
38658 cat >>confdefs.h <<_ACEOF
38659 #define SLAPD_NDB $MFLAG
38664 if test "$ol_enable_null" != no ; then
38666 BUILD_NULL=$ol_enable_null
38667 if test "$ol_enable_null" = mod ; then
38668 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38669 MFLAG=SLAPD_MOD_DYNAMIC
38671 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38672 MFLAG=SLAPD_MOD_STATIC
38675 cat >>confdefs.h <<_ACEOF
38676 #define SLAPD_NULL $MFLAG
38681 if test "$ol_enable_passwd" != no ; then
38683 BUILD_PASSWD=$ol_enable_passwd
38684 if test "$ol_enable_passwd" = mod ; then
38685 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38686 MFLAG=SLAPD_MOD_DYNAMIC
38688 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38689 MFLAG=SLAPD_MOD_STATIC
38692 cat >>confdefs.h <<_ACEOF
38693 #define SLAPD_PASSWD $MFLAG
38698 if test "$ol_link_perl" != no ; then
38700 BUILD_PERL=$ol_enable_perl
38701 if test "$ol_enable_perl" = mod ; then
38702 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38703 MFLAG=SLAPD_MOD_DYNAMIC
38705 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38706 MFLAG=SLAPD_MOD_STATIC
38709 cat >>confdefs.h <<_ACEOF
38710 #define SLAPD_PERL $MFLAG
38715 if test "$ol_enable_relay" != no ; then
38717 BUILD_RELAY=$ol_enable_relay
38718 if test "$ol_enable_relay" = mod ; then
38719 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38720 MFLAG=SLAPD_MOD_DYNAMIC
38722 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38723 MFLAG=SLAPD_MOD_STATIC
38726 cat >>confdefs.h <<_ACEOF
38727 #define SLAPD_RELAY $MFLAG
38732 if test "$ol_enable_shell" != no ; then
38733 if test "$ol_link_threads" != no ; then
38734 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38735 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38738 BUILD_SHELL=$ol_enable_shell
38739 if test "$ol_enable_shell" = mod ; then
38740 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38741 MFLAG=SLAPD_MOD_DYNAMIC
38743 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38744 MFLAG=SLAPD_MOD_STATIC
38747 cat >>confdefs.h <<_ACEOF
38748 #define SLAPD_SHELL $MFLAG
38753 if test "$ol_enable_sock" != no ; then
38755 BUILD_SOCK=$ol_enable_sock
38756 if test "$ol_enable_sock" = mod ; then
38757 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38758 MFLAG=SLAPD_MOD_DYNAMIC
38760 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38761 MFLAG=SLAPD_MOD_STATIC
38764 cat >>confdefs.h <<_ACEOF
38765 #define SLAPD_SOCK $MFLAG
38770 if test "$ol_link_sql" != no ; then
38772 BUILD_SQL=$ol_enable_sql
38773 if test "$ol_enable_sql" = mod; then
38774 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38775 MFLAG=SLAPD_MOD_DYNAMIC
38777 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38778 MFLAG=SLAPD_MOD_STATIC
38781 cat >>confdefs.h <<_ACEOF
38782 #define SLAPD_SQL $MFLAG
38787 if test "$ol_enable_accesslog" != no ; then
38788 BUILD_ACCESSLOG=$ol_enable_accesslog
38789 if test "$ol_enable_accesslog" = mod ; then
38790 MFLAG=SLAPD_MOD_DYNAMIC
38791 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38793 MFLAG=SLAPD_MOD_STATIC
38794 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38797 cat >>confdefs.h <<_ACEOF
38798 #define SLAPD_OVER_ACCESSLOG $MFLAG
38803 if test "$ol_enable_auditlog" != no ; then
38804 BUILD_AUDITLOG=$ol_enable_auditlog
38805 if test "$ol_enable_auditlog" = mod ; then
38806 MFLAG=SLAPD_MOD_DYNAMIC
38807 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38809 MFLAG=SLAPD_MOD_STATIC
38810 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38813 cat >>confdefs.h <<_ACEOF
38814 #define SLAPD_OVER_AUDITLOG $MFLAG
38819 if test "$ol_enable_collect" != no ; then
38820 BUILD_COLLECT=$ol_enable_collect
38821 if test "$ol_enable_collect" = mod ; then
38822 MFLAG=SLAPD_MOD_DYNAMIC
38823 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38825 MFLAG=SLAPD_MOD_STATIC
38826 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38829 cat >>confdefs.h <<_ACEOF
38830 #define SLAPD_OVER_COLLECT $MFLAG
38835 if test "$ol_enable_constraint" != no ; then
38836 BUILD_CONSTRAINT=$ol_enable_constraint
38837 if test "$ol_enable_constraint" = mod ; then
38838 MFLAG=SLAPD_MOD_DYNAMIC
38839 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38841 MFLAG=SLAPD_MOD_STATIC
38842 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38845 cat >>confdefs.h <<_ACEOF
38846 #define SLAPD_OVER_CONSTRAINT $MFLAG
38851 if test "$ol_enable_dds" != no ; then
38852 BUILD_DDS=$ol_enable_dds
38853 if test "$ol_enable_dds" = mod ; then
38854 MFLAG=SLAPD_MOD_DYNAMIC
38855 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38857 MFLAG=SLAPD_MOD_STATIC
38858 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38861 cat >>confdefs.h <<_ACEOF
38862 #define SLAPD_OVER_DDS $MFLAG
38867 if test "$ol_enable_deref" != no ; then
38868 BUILD_DDS=$ol_enable_deref
38869 if test "$ol_enable_deref" = mod ; then
38870 MFLAG=SLAPD_MOD_DYNAMIC
38871 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38873 MFLAG=SLAPD_MOD_STATIC
38874 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38877 cat >>confdefs.h <<_ACEOF
38878 #define SLAPD_OVER_DEREF $MFLAG
38883 if test "$ol_enable_dyngroup" != no ; then
38884 BUILD_DYNGROUP=$ol_enable_dyngroup
38885 if test "$ol_enable_dyngroup" = mod ; then
38886 MFLAG=SLAPD_MOD_DYNAMIC
38887 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38889 MFLAG=SLAPD_MOD_STATIC
38890 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38893 cat >>confdefs.h <<_ACEOF
38894 #define SLAPD_OVER_DYNGROUP $MFLAG
38899 if test "$ol_enable_dynlist" != no ; then
38900 BUILD_DYNLIST=$ol_enable_dynlist
38901 if test "$ol_enable_dynlist" = mod ; then
38902 MFLAG=SLAPD_MOD_DYNAMIC
38903 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38905 MFLAG=SLAPD_MOD_STATIC
38906 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38909 cat >>confdefs.h <<_ACEOF
38910 #define SLAPD_OVER_DYNLIST $MFLAG
38915 if test "$ol_enable_memberof" != no ; then
38916 BUILD_MEMBEROF=$ol_enable_memberof
38917 if test "$ol_enable_memberof" = mod ; then
38918 MFLAG=SLAPD_MOD_DYNAMIC
38919 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38921 MFLAG=SLAPD_MOD_STATIC
38922 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38925 cat >>confdefs.h <<_ACEOF
38926 #define SLAPD_OVER_MEMBEROF $MFLAG
38931 if test "$ol_enable_ppolicy" != no ; then
38932 BUILD_PPOLICY=$ol_enable_ppolicy
38933 if test "$ol_enable_ppolicy" = mod ; then
38934 MFLAG=SLAPD_MOD_DYNAMIC
38935 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38937 MFLAG=SLAPD_MOD_STATIC
38938 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38941 cat >>confdefs.h <<_ACEOF
38942 #define SLAPD_OVER_PPOLICY $MFLAG
38947 if test "$ol_enable_proxycache" != no ; then
38948 BUILD_PROXYCACHE=$ol_enable_proxycache
38949 if test "$ol_enable_proxycache" = mod ; then
38950 MFLAG=SLAPD_MOD_DYNAMIC
38951 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38953 MFLAG=SLAPD_MOD_STATIC
38954 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38957 cat >>confdefs.h <<_ACEOF
38958 #define SLAPD_OVER_PROXYCACHE $MFLAG
38963 if test "$ol_enable_refint" != no ; then
38964 BUILD_REFINT=$ol_enable_refint
38965 if test "$ol_enable_refint" = mod ; then
38966 MFLAG=SLAPD_MOD_DYNAMIC
38967 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38969 MFLAG=SLAPD_MOD_STATIC
38970 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38973 cat >>confdefs.h <<_ACEOF
38974 #define SLAPD_OVER_REFINT $MFLAG
38979 if test "$ol_enable_retcode" != no ; then
38980 BUILD_RETCODE=$ol_enable_retcode
38981 if test "$ol_enable_retcode" = mod ; then
38982 MFLAG=SLAPD_MOD_DYNAMIC
38983 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38985 MFLAG=SLAPD_MOD_STATIC
38986 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38989 cat >>confdefs.h <<_ACEOF
38990 #define SLAPD_OVER_RETCODE $MFLAG
38995 if test "$ol_enable_rwm" != no ; then
38997 BUILD_RWM=$ol_enable_rwm
38998 if test "$ol_enable_rwm" = mod ; then
38999 MFLAG=SLAPD_MOD_DYNAMIC
39000 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39002 MFLAG=SLAPD_MOD_STATIC
39003 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39006 cat >>confdefs.h <<_ACEOF
39007 #define SLAPD_OVER_RWM $MFLAG
39012 if test "$ol_enable_seqmod" != no ; then
39013 BUILD_SEQMOD=$ol_enable_seqmod
39014 if test "$ol_enable_seqmod" = mod ; then
39015 MFLAG=SLAPD_MOD_DYNAMIC
39016 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39018 MFLAG=SLAPD_MOD_STATIC
39019 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39022 cat >>confdefs.h <<_ACEOF
39023 #define SLAPD_OVER_SEQMOD $MFLAG
39028 if test "$ol_enable_syncprov" != no ; then
39029 BUILD_SYNCPROV=$ol_enable_syncprov
39030 if test "$ol_enable_syncprov" = mod ; then
39031 MFLAG=SLAPD_MOD_DYNAMIC
39032 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39034 MFLAG=SLAPD_MOD_STATIC
39035 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39038 cat >>confdefs.h <<_ACEOF
39039 #define SLAPD_OVER_SYNCPROV $MFLAG
39044 if test "$ol_enable_translucent" != no ; then
39045 BUILD_TRANSLUCENT=$ol_enable_translucent
39046 if test "$ol_enable_translucent" = mod ; then
39047 MFLAG=SLAPD_MOD_DYNAMIC
39048 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39050 MFLAG=SLAPD_MOD_STATIC
39051 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39054 cat >>confdefs.h <<_ACEOF
39055 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39060 if test "$ol_enable_unique" != no ; then
39061 BUILD_UNIQUE=$ol_enable_unique
39062 if test "$ol_enable_unique" = mod ; then
39063 MFLAG=SLAPD_MOD_DYNAMIC
39064 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39066 MFLAG=SLAPD_MOD_STATIC
39067 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39070 cat >>confdefs.h <<_ACEOF
39071 #define SLAPD_OVER_UNIQUE $MFLAG
39076 if test "$ol_enable_valsort" != no ; then
39077 BUILD_VALSORT=$ol_enable_valsort
39078 if test "$ol_enable_valsort" = mod ; then
39079 MFLAG=SLAPD_MOD_DYNAMIC
39080 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39082 MFLAG=SLAPD_MOD_STATIC
39083 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39086 cat >>confdefs.h <<_ACEOF
39087 #define SLAPD_OVER_VALSORT $MFLAG
39092 if test "$ol_enable_rewrite" != no ; then
39094 cat >>confdefs.h <<\_ACEOF
39095 #define ENABLE_REWRITE 1
39101 if test "$ol_enable_slapi" != no ; then
39103 cat >>confdefs.h <<\_ACEOF
39104 #define ENABLE_SLAPI 1
39108 SLAPD_SLAPI_DEPEND=libslapi.a
39113 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39115 SLAPD_MODULES_LDFLAGS=
39209 # Check whether --with-xxinstall or --without-xxinstall was given.
39210 if test "${with_xxinstall+set}" = set; then
39211 withval="$with_xxinstall"
39216 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
39219 ac_config_commands="$ac_config_commands default"
39223 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39224 # Let make expand exec_prefix.
39225 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39227 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39228 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39229 # trailing colons and then remove the whole line if VPATH becomes empty
39230 # (actually we leave an empty line to preserve line numbers).
39231 if test "x$srcdir" = x.; then
39232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39233 s/:*\$(srcdir):*/:/;
39234 s/:*\${srcdir}:*/:/;
39236 s/^\([^=]*=[ ]*\):*/\1/;
39242 DEFS=-DHAVE_CONFIG_H
39246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39247 # 1. Remove the extension, and $U if already installed.
39248 ac_i=`echo "$ac_i" |
39249 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39251 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39252 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39254 LIBOBJS=$ac_libobjs
39256 LTLIBOBJS=$ac_ltlibobjs
39259 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39260 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39261 Usually this means the macro was only invoked conditionally." >&5
39262 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39263 Usually this means the macro was only invoked conditionally." >&2;}
39264 { (exit 1); exit 1; }; }
39266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39268 Usually this means the macro was only invoked conditionally." >&5
39269 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39270 Usually this means the macro was only invoked conditionally." >&2;}
39271 { (exit 1); exit 1; }; }
39273 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39274 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39275 Usually this means the macro was only invoked conditionally." >&5
39276 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39277 Usually this means the macro was only invoked conditionally." >&2;}
39278 { (exit 1); exit 1; }; }
39281 : ${CONFIG_STATUS=./config.status}
39282 ac_clean_files_save=$ac_clean_files
39283 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39284 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39285 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39286 cat >$CONFIG_STATUS <<_ACEOF
39288 # Generated by $as_me.
39289 # Run this file to recreate the current configuration.
39290 # Compiler output produced by configure, useful for debugging
39291 # configure, is in config.log if it exists.
39294 ac_cs_recheck=false
39296 SHELL=\${CONFIG_SHELL-$SHELL}
39299 cat >>$CONFIG_STATUS <<\_ACEOF
39300 ## --------------------- ##
39301 ## M4sh Initialization. ##
39302 ## --------------------- ##
39304 # Be Bourne compatible
39305 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39308 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39309 # is contrary to our usage. Disable this feature.
39310 alias -g '${1+"$@"}'='"$@"'
39311 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39314 DUALCASE=1; export DUALCASE # for MKS sh
39316 # Support unset when possible.
39317 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39324 # Work around bugs in pre-3.0 UWIN ksh.
39325 $as_unset ENV MAIL MAILPATH
39332 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39333 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39334 LC_TELEPHONE LC_TIME
39336 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39337 eval $as_var=C; export $as_var
39343 # Required to use basename.
39344 if expr a : '\(a\)' >/dev/null 2>&1; then
39350 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39351 as_basename=basename
39357 # Name of the executable.
39358 as_me=`$as_basename "$0" ||
39359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39360 X"$0" : 'X\(//\)$' \| \
39361 X"$0" : 'X\(/\)$' \| \
39362 . : '\(.\)' 2>/dev/null ||
39364 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39365 /^X\/\(\/\/\)$/{ s//\1/; q; }
39366 /^X\/\(\/\).*/{ s//\1/; q; }
39370 # PATH needs CR, and LINENO needs CR and PATH.
39371 # Avoid depending upon Character Ranges.
39372 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39373 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39374 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39375 as_cr_digits='0123456789'
39376 as_cr_alnum=$as_cr_Letters$as_cr_digits
39378 # The user is always right.
39379 if test "${PATH_SEPARATOR+set}" != set; then
39380 echo "#! /bin/sh" >conf$$.sh
39381 echo "exit 0" >>conf$$.sh
39383 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39392 as_lineno_1=$LINENO
39393 as_lineno_2=$LINENO
39394 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39395 test "x$as_lineno_1" != "x$as_lineno_2" &&
39396 test "x$as_lineno_3" = "x$as_lineno_2" || {
39397 # Find who we are. Look in the path if we contain no path at all
39400 *[\\/]* ) as_myself=$0 ;;
39401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39402 for as_dir in $PATH
39405 test -z "$as_dir" && as_dir=.
39406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39411 # We did not find ourselves, most probably we were run as `sh COMMAND'
39412 # in which case we are not to be found in the path.
39413 if test "x$as_myself" = x; then
39416 if test ! -f "$as_myself"; then
39417 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39418 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39419 { (exit 1); exit 1; }; }
39421 case $CONFIG_SHELL in
39423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39424 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39427 test -z "$as_dir" && as_dir=.
39428 for as_base in sh bash ksh sh5; do
39431 if ("$as_dir/$as_base" -c '
39432 as_lineno_1=$LINENO
39433 as_lineno_2=$LINENO
39434 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39435 test "x$as_lineno_1" != "x$as_lineno_2" &&
39436 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39437 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39438 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39439 CONFIG_SHELL=$as_dir/$as_base
39440 export CONFIG_SHELL
39441 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39450 # uniformly replaced by the line number. The first 'sed' inserts a
39451 # line-number line before each line; the second 'sed' does the real
39452 # work. The second script uses 'N' to pair each line-number line
39453 # with the numbered line, and appends trailing '-' during
39454 # substitution so that $LINENO is not a special case at line end.
39455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39456 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39457 sed '=' <$as_myself |
39462 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39465 s,^['$as_cr_digits']*\n,,
39466 ' >$as_me.lineno &&
39467 chmod +x $as_me.lineno ||
39468 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39469 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39470 { (exit 1); exit 1; }; }
39472 # Don't try to exec as it changes $[0], causing all sort of problems
39473 # (the dirname of $[0] is not the place where we might find the
39474 # original and so on. Autoconf is especially sensible to this).
39476 # Exit status is that of the last command.
39481 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39482 *c*,-n*) ECHO_N= ECHO_C='
39484 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39485 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39488 if expr a : '\(a\)' >/dev/null 2>&1; then
39494 rm -f conf$$ conf$$.exe conf$$.file
39496 if ln -s conf$$.file conf$$ 2>/dev/null; then
39497 # We could just check for DJGPP; but this test a) works b) is more generic
39498 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39499 if test -f conf$$.exe; then
39500 # Don't use ln at all; we don't have any links
39505 elif ln conf$$.file conf$$ 2>/dev/null; then
39510 rm -f conf$$ conf$$.exe conf$$.file
39512 if mkdir -p . 2>/dev/null; then
39515 test -d ./-p && rmdir ./-p
39519 as_executable_p="test -f"
39521 # Sed expression to map a string onto a valid CPP name.
39522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39524 # Sed expression to map a string onto a valid variable name.
39525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39529 # We need space, tab and new line, in precisely that order.
39539 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39540 # report actual input values of CONFIG_FILES etc. instead of their
39541 # values after options handling. Logging --version etc. is OK.
39545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39546 ## Running $as_me. ##
39551 This file was extended by $as_me, which was
39552 generated by GNU Autoconf 2.59. Invocation command line was
39554 CONFIG_FILES = $CONFIG_FILES
39555 CONFIG_HEADERS = $CONFIG_HEADERS
39556 CONFIG_LINKS = $CONFIG_LINKS
39557 CONFIG_COMMANDS = $CONFIG_COMMANDS
39561 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39565 # Files that config.status was made for.
39566 if test -n "$ac_config_files"; then
39567 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39570 if test -n "$ac_config_headers"; then
39571 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39574 if test -n "$ac_config_links"; then
39575 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39578 if test -n "$ac_config_commands"; then
39579 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39582 cat >>$CONFIG_STATUS <<\_ACEOF
39585 \`$as_me' instantiates files from templates according to the
39586 current configuration.
39588 Usage: $0 [OPTIONS] [FILE]...
39590 -h, --help print this help, then exit
39591 -V, --version print version number, then exit
39592 -q, --quiet do not print progress messages
39593 -d, --debug don't remove temporary files
39594 --recheck update $as_me by reconfiguring in the same conditions
39595 --file=FILE[:TEMPLATE]
39596 instantiate the configuration file FILE
39597 --header=FILE[:TEMPLATE]
39598 instantiate the configuration header FILE
39600 Configuration files:
39603 Configuration headers:
39606 Configuration commands:
39609 Report bugs to <bug-autoconf@gnu.org>."
39612 cat >>$CONFIG_STATUS <<_ACEOF
39615 configured by $0, generated by GNU Autoconf 2.59,
39616 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39618 Copyright (C) 2003 Free Software Foundation, Inc.
39619 This config.status script is free software; the Free Software Foundation
39620 gives unlimited permission to copy, distribute and modify it."
39625 cat >>$CONFIG_STATUS <<\_ACEOF
39626 # If no file are specified by the user, then we need to provide default
39627 # value. By we need to know if files were specified by the user.
39633 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39634 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39642 *) # This is not an option, so the user has probably given explicit
39645 ac_need_defaults=false;;
39649 # Handling of the options.
39651 cat >>$CONFIG_STATUS <<\_ACEOF
39652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39654 --version | --vers* | -V )
39655 echo "$ac_cs_version"; exit 0 ;;
39657 # Conflict between --help and --header
39658 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39659 Try \`$0 --help' for more information." >&5
39660 echo "$as_me: error: ambiguous option: $1
39661 Try \`$0 --help' for more information." >&2;}
39662 { (exit 1); exit 1; }; };;
39663 --help | --hel | -h )
39664 echo "$ac_cs_usage"; exit 0 ;;
39665 --debug | --d* | -d )
39667 --file | --fil | --fi | --f )
39669 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39670 ac_need_defaults=false;;
39671 --header | --heade | --head | --hea )
39673 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39674 ac_need_defaults=false;;
39675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39676 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39679 # This is an error.
39680 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39681 Try \`$0 --help' for more information." >&5
39682 echo "$as_me: error: unrecognized option: $1
39683 Try \`$0 --help' for more information." >&2;}
39684 { (exit 1); exit 1; }; } ;;
39686 *) ac_config_targets="$ac_config_targets $1" ;;
39692 ac_configure_extra_args=
39694 if $ac_cs_silent; then
39696 ac_configure_extra_args="$ac_configure_extra_args --silent"
39700 cat >>$CONFIG_STATUS <<_ACEOF
39701 if \$ac_cs_recheck; then
39702 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39703 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39708 cat >>$CONFIG_STATUS <<_ACEOF
39710 # INIT-COMMANDS section.
39713 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39715 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39716 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39723 cat >>$CONFIG_STATUS <<\_ACEOF
39724 for ac_config_target in $ac_config_targets
39726 case "$ac_config_target" in
39727 # Handling of arguments.
39728 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39729 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39730 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39731 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39732 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39733 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39734 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39735 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39736 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39737 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39738 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39739 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39740 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39741 "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" ;;
39742 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39743 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39744 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39745 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39746 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39747 "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" ;;
39748 "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" ;;
39749 "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" ;;
39750 "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" ;;
39751 "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" ;;
39752 "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" ;;
39753 "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" ;;
39754 "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" ;;
39755 "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" ;;
39756 "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" ;;
39757 "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" ;;
39758 "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" ;;
39759 "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" ;;
39760 "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" ;;
39761 "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" ;;
39762 "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" ;;
39763 "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" ;;
39764 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39765 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39766 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39767 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39768 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39769 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39770 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39771 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39772 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39773 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39774 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39775 { (exit 1); exit 1; }; };;
39779 # If the user did not use the arguments to specify the items to instantiate,
39780 # then the envvar interface is used. Set only those that are not.
39781 # We use the long form for the default assignment because of an extremely
39782 # bizarre bug on SunOS 4.1.3.
39783 if $ac_need_defaults; then
39784 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39785 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39786 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39789 # Have a temporary directory for convenience. Make it in the build tree
39790 # simply because there is no reason to put it here, and in addition,
39791 # creating and moving files from /tmp can sometimes cause problems.
39792 # Create a temporary directory, and hook for its removal unless debugging.
39795 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39796 trap '{ (exit 1); exit 1; }' 1 2 13 15
39799 # Create a (secure) tmp directory for tmp files.
39802 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39803 test -n "$tmp" && test -d "$tmp"
39806 tmp=./confstat$$-$RANDOM
39807 (umask 077 && mkdir $tmp)
39810 echo "$me: cannot create a temporary directory in ." >&2
39811 { (exit 1); exit 1; }
39816 cat >>$CONFIG_STATUS <<_ACEOF
39819 # CONFIG_FILES section.
39822 # No need to generate the scripts if there are no CONFIG_FILES.
39823 # This happens for instance when ./config.status config.h
39824 if test -n "\$CONFIG_FILES"; then
39825 # Protect against being on the right side of a sed subst in config.status.
39826 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39827 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39828 s,@SHELL@,$SHELL,;t t
39829 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39830 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39831 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39832 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39833 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39834 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39835 s,@exec_prefix@,$exec_prefix,;t t
39836 s,@prefix@,$prefix,;t t
39837 s,@program_transform_name@,$program_transform_name,;t t
39838 s,@bindir@,$bindir,;t t
39839 s,@sbindir@,$sbindir,;t t
39840 s,@libexecdir@,$libexecdir,;t t
39841 s,@datadir@,$datadir,;t t
39842 s,@sysconfdir@,$sysconfdir,;t t
39843 s,@sharedstatedir@,$sharedstatedir,;t t
39844 s,@localstatedir@,$localstatedir,;t t
39845 s,@libdir@,$libdir,;t t
39846 s,@includedir@,$includedir,;t t
39847 s,@oldincludedir@,$oldincludedir,;t t
39848 s,@infodir@,$infodir,;t t
39849 s,@mandir@,$mandir,;t t
39850 s,@build_alias@,$build_alias,;t t
39851 s,@host_alias@,$host_alias,;t t
39852 s,@target_alias@,$target_alias,;t t
39853 s,@DEFS@,$DEFS,;t t
39854 s,@ECHO_C@,$ECHO_C,;t t
39855 s,@ECHO_N@,$ECHO_N,;t t
39856 s,@ECHO_T@,$ECHO_T,;t t
39857 s,@LIBS@,$LIBS,;t t
39858 s,@build@,$build,;t t
39859 s,@build_cpu@,$build_cpu,;t t
39860 s,@build_vendor@,$build_vendor,;t t
39861 s,@build_os@,$build_os,;t t
39862 s,@host@,$host,;t t
39863 s,@host_cpu@,$host_cpu,;t t
39864 s,@host_vendor@,$host_vendor,;t t
39865 s,@host_os@,$host_os,;t t
39866 s,@target@,$target,;t t
39867 s,@target_cpu@,$target_cpu,;t t
39868 s,@target_vendor@,$target_vendor,;t t
39869 s,@target_os@,$target_os,;t t
39870 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39871 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39872 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39873 s,@CYGPATH_W@,$CYGPATH_W,;t t
39874 s,@PACKAGE@,$PACKAGE,;t t
39875 s,@VERSION@,$VERSION,;t t
39876 s,@ACLOCAL@,$ACLOCAL,;t t
39877 s,@AUTOCONF@,$AUTOCONF,;t t
39878 s,@AUTOMAKE@,$AUTOMAKE,;t t
39879 s,@AUTOHEADER@,$AUTOHEADER,;t t
39880 s,@MAKEINFO@,$MAKEINFO,;t t
39881 s,@install_sh@,$install_sh,;t t
39882 s,@STRIP@,$STRIP,;t t
39883 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39884 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39885 s,@mkdir_p@,$mkdir_p,;t t
39887 s,@SET_MAKE@,$SET_MAKE,;t t
39888 s,@am__leading_dot@,$am__leading_dot,;t t
39889 s,@AMTAR@,$AMTAR,;t t
39890 s,@am__tar@,$am__tar,;t t
39891 s,@am__untar@,$am__untar,;t t
39892 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
39893 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
39894 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
39895 s,@top_builddir@,$top_builddir,;t t
39896 s,@ldap_subdir@,$ldap_subdir,;t t
39899 s,@CFLAGS@,$CFLAGS,;t t
39900 s,@LDFLAGS@,$LDFLAGS,;t t
39901 s,@CPPFLAGS@,$CPPFLAGS,;t t
39902 s,@ac_ct_CC@,$ac_ct_CC,;t t
39903 s,@EXEEXT@,$EXEEXT,;t t
39904 s,@OBJEXT@,$OBJEXT,;t t
39905 s,@DEPDIR@,$DEPDIR,;t t
39906 s,@am__include@,$am__include,;t t
39907 s,@am__quote@,$am__quote,;t t
39908 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39909 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39910 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39911 s,@CCDEPMODE@,$CCDEPMODE,;t t
39912 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39913 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39914 s,@EGREP@,$EGREP,;t t
39915 s,@LN_S@,$LN_S,;t t
39916 s,@ECHO@,$ECHO,;t t
39917 s,@ac_ct_AR@,$ac_ct_AR,;t t
39918 s,@RANLIB@,$RANLIB,;t t
39919 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39920 s,@DLLTOOL@,$DLLTOOL,;t t
39921 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
39923 s,@ac_ct_AS@,$ac_ct_AS,;t t
39924 s,@OBJDUMP@,$OBJDUMP,;t t
39925 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
39927 s,@LIBTOOL@,$LIBTOOL,;t t
39928 s,@PERLBIN@,$PERLBIN,;t t
39929 s,@OL_MKDEP@,$OL_MKDEP,;t t
39930 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
39931 s,@LTSTATIC@,$LTSTATIC,;t t
39932 s,@MYSQL@,$MYSQL,;t t
39933 s,@LIBOBJS@,$LIBOBJS,;t t
39934 s,@LIBSRCS@,$LIBSRCS,;t t
39935 s,@PLAT@,$PLAT,;t t
39936 s,@WITH_SASL@,$WITH_SASL,;t t
39937 s,@WITH_TLS@,$WITH_TLS,;t t
39938 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
39939 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
39940 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
39941 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
39942 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
39943 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
39944 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
39945 s,@BUILD_BDB@,$BUILD_BDB,;t t
39946 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
39947 s,@BUILD_HDB@,$BUILD_HDB,;t t
39948 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
39949 s,@BUILD_META@,$BUILD_META,;t t
39950 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
39951 s,@BUILD_NDB@,$BUILD_NDB,;t t
39952 s,@BUILD_NULL@,$BUILD_NULL,;t t
39953 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
39954 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
39955 s,@BUILD_PERL@,$BUILD_PERL,;t t
39956 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
39957 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
39958 s,@BUILD_SQL@,$BUILD_SQL,;t t
39959 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
39960 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
39961 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
39962 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
39963 s,@BUILD_DDS@,$BUILD_DDS,;t t
39964 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
39965 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
39966 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
39967 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
39968 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
39969 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
39970 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
39971 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
39972 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
39973 s,@BUILD_RWM@,$BUILD_RWM,;t t
39974 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
39975 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
39976 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
39977 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
39978 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
39979 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
39980 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
39981 s,@BDB_LIBS@,$BDB_LIBS,;t t
39982 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
39983 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
39984 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
39985 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
39986 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
39987 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
39988 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
39989 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
39990 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
39991 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
39992 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
39993 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
39994 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
39995 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
39996 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
39997 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
39998 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
39999 s,@SASL_LIBS@,$SASL_LIBS,;t t
40000 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
40001 s,@TLS_LIBS@,$TLS_LIBS,;t t
40002 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
40003 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
40004 s,@LIBSLAPI@,$LIBSLAPI,;t t
40005 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
40006 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
40007 s,@ICU_LIBS@,$ICU_LIBS,;t t
40008 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
40009 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
40010 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
40011 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
40012 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
40013 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40018 cat >>$CONFIG_STATUS <<\_ACEOF
40019 # Split the substitutions into bite-sized pieces for seds with
40020 # small command number limits, like on Digital OSF/1 and HP-UX.
40021 ac_max_sed_lines=48
40022 ac_sed_frag=1 # Number of current file.
40023 ac_beg=1 # First line for current file.
40024 ac_end=$ac_max_sed_lines # Line after last line for current file.
40027 while $ac_more_lines; do
40028 if test $ac_beg -gt 1; then
40029 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40031 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40033 if test ! -s $tmp/subs.frag; then
40034 ac_more_lines=false
40036 # The purpose of the label and of the branching condition is to
40037 # speed up the sed processing (if there are no `@' at all, there
40038 # is no need to browse any of the substitutions).
40039 # These are the two extra sed commands mentioned above.
40041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40042 if test -z "$ac_sed_cmds"; then
40043 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40045 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40047 ac_sed_frag=`expr $ac_sed_frag + 1`
40049 ac_end=`expr $ac_end + $ac_max_sed_lines`
40052 if test -z "$ac_sed_cmds"; then
40055 fi # test -n "$CONFIG_FILES"
40058 cat >>$CONFIG_STATUS <<\_ACEOF
40059 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40062 - | *:- | *:-:* ) # input from stdin
40064 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40065 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40066 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40068 * ) ac_file_in=$ac_file.in ;;
40071 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40072 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40074 X"$ac_file" : 'X\(//\)[^/]' \| \
40075 X"$ac_file" : 'X\(//\)$' \| \
40076 X"$ac_file" : 'X\(/\)' \| \
40077 . : '\(.\)' 2>/dev/null ||
40079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40081 /^X\(\/\/\)$/{ s//\1/; q; }
40082 /^X\(\/\).*/{ s//\1/; q; }
40084 { if $as_mkdir_p; then
40089 while test ! -d "$as_dir"; do
40090 as_dirs="$as_dir $as_dirs"
40091 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40093 X"$as_dir" : 'X\(//\)[^/]' \| \
40094 X"$as_dir" : 'X\(//\)$' \| \
40095 X"$as_dir" : 'X\(/\)' \| \
40096 . : '\(.\)' 2>/dev/null ||
40098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40100 /^X\(\/\/\)$/{ s//\1/; q; }
40101 /^X\(\/\).*/{ s//\1/; q; }
40104 test ! -n "$as_dirs" || mkdir $as_dirs
40105 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40106 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40107 { (exit 1); exit 1; }; }; }
40111 if test "$ac_dir" != .; then
40112 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40113 # A "../" for each directory in $ac_dir_suffix.
40114 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40116 ac_dir_suffix= ac_top_builddir=
40120 .) # No --srcdir option. We are building in place.
40122 if test -z "$ac_top_builddir"; then
40125 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40127 [\\/]* | ?:[\\/]* ) # Absolute path.
40128 ac_srcdir=$srcdir$ac_dir_suffix;
40129 ac_top_srcdir=$srcdir ;;
40130 *) # Relative path.
40131 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40132 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40135 # Do not use `cd foo && pwd` to compute absolute paths, because
40136 # the directories may not exist.
40138 .) ac_abs_builddir="$ac_dir";;
40141 .) ac_abs_builddir=`pwd`;;
40142 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40143 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40146 case $ac_abs_builddir in
40147 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40149 case ${ac_top_builddir}. in
40150 .) ac_abs_top_builddir=$ac_abs_builddir;;
40151 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40152 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40155 case $ac_abs_builddir in
40156 .) ac_abs_srcdir=$ac_srcdir;;
40159 .) ac_abs_srcdir=$ac_abs_builddir;;
40160 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40161 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40164 case $ac_abs_builddir in
40165 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40167 case $ac_top_srcdir in
40168 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40169 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40170 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40176 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40177 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40180 if test x"$ac_file" != x-; then
40181 { echo "$as_me:$LINENO: creating $ac_file" >&5
40182 echo "$as_me: creating $ac_file" >&6;}
40185 # Let's still pretend it is `configure' which instantiates (i.e., don't
40186 # use $as_me), people would be surprised to read:
40187 # /* config.h. Generated by config.status. */
40188 if test x"$ac_file" = x-; then
40191 configure_input="$ac_file. "
40193 configure_input=$configure_input"Generated from `echo $ac_file_in |
40194 sed 's,.*/,,'` by configure."
40196 # First look for the input files in the build tree, otherwise in the
40198 ac_file_inputs=`IFS=:
40199 for f in $ac_file_in; do
40201 -) echo $tmp/stdin ;;
40203 # Absolute (can't be DOS-style, as IFS=:)
40204 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40205 echo "$as_me: error: cannot find input file: $f" >&2;}
40206 { (exit 1); exit 1; }; }
40209 if test -f "$f"; then
40212 elif test -f "$srcdir/$f"; then
40217 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40218 echo "$as_me: error: cannot find input file: $f" >&2;}
40219 { (exit 1); exit 1; }; }
40222 done` || { (exit 1); exit 1; }
40224 cat >>$CONFIG_STATUS <<_ACEOF
40228 cat >>$CONFIG_STATUS <<\_ACEOF
40230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40231 s,@configure_input@,$configure_input,;t t
40232 s,@srcdir@,$ac_srcdir,;t t
40233 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40234 s,@top_srcdir@,$ac_top_srcdir,;t t
40235 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40236 s,@builddir@,$ac_builddir,;t t
40237 s,@abs_builddir@,$ac_abs_builddir,;t t
40238 s,@top_builddir@,$ac_top_builddir,;t t
40239 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40240 s,@INSTALL@,$ac_INSTALL,;t t
40241 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40243 if test x"$ac_file" != x-; then
40244 mv $tmp/out $ac_file
40252 cat >>$CONFIG_STATUS <<\_ACEOF
40255 # CONFIG_HEADER section.
40258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40261 # ac_d sets the value in "#define NAME VALUE" lines.
40262 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40263 ac_dB='[ ].*$,\1#\2'
40266 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40267 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40268 ac_uB='$,\1#\2define\3'
40272 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40275 - | *:- | *:-:* ) # input from stdin
40277 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40279 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40281 * ) ac_file_in=$ac_file.in ;;
40284 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40285 echo "$as_me: creating $ac_file" >&6;}
40287 # First look for the input files in the build tree, otherwise in the
40289 ac_file_inputs=`IFS=:
40290 for f in $ac_file_in; do
40292 -) echo $tmp/stdin ;;
40294 # Absolute (can't be DOS-style, as IFS=:)
40295 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40296 echo "$as_me: error: cannot find input file: $f" >&2;}
40297 { (exit 1); exit 1; }; }
40298 # Do quote $f, to prevent DOS paths from being IFS'd.
40301 if test -f "$f"; then
40304 elif test -f "$srcdir/$f"; then
40309 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40310 echo "$as_me: error: cannot find input file: $f" >&2;}
40311 { (exit 1); exit 1; }; }
40314 done` || { (exit 1); exit 1; }
40315 # Remove the trailing spaces.
40316 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40320 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40321 # `conftest.undefs', that substitutes the proper values into
40322 # config.h.in to produce config.h. The first handles `#define'
40323 # templates, and the second `#undef' templates.
40324 # And first: Protect against being on the right side of a sed subst in
40325 # config.status. Protect against being in an unquoted here document
40326 # in config.status.
40327 rm -f conftest.defines conftest.undefs
40328 # Using a here document instead of a string reduces the quoting nightmare.
40329 # Putting comments in sed scripts is not portable.
40331 # `end' is used to avoid that the second main sed command (meant for
40332 # 0-ary CPP macros) applies to n-ary macro definitions.
40333 # See the Autoconf documentation for `clear'.
40334 cat >confdef2sed.sed <<\_ACEOF
40339 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40341 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40344 # If some macros were called several times there might be several times
40345 # the same #defines, which is useless. Nevertheless, we may not want to
40346 # sort them, since we want the *last* AC-DEFINE to be honored.
40347 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40348 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40349 rm -f confdef2sed.sed
40351 # This sed command replaces #undef with comments. This is necessary, for
40352 # example, in the case of _POSIX_SOURCE, which is predefined and required
40353 # on some systems where configure will not decide to define it.
40354 cat >>conftest.undefs <<\_ACEOF
40355 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40358 # Break up conftest.defines because some shells have a limit on the size
40359 # of here documents, and old seds have small limits too (100 cmds).
40360 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40361 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40362 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40363 echo ' :' >>$CONFIG_STATUS
40364 rm -f conftest.tail
40365 while grep . conftest.defines >/dev/null
40367 # Write a limited-size here document to $tmp/defines.sed.
40368 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40369 # Speed up: don't consider the non `#define' lines.
40370 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40371 # Work around the forget-to-reset-the-flag bug.
40372 echo 't clr' >>$CONFIG_STATUS
40373 echo ': clr' >>$CONFIG_STATUS
40374 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40376 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40378 mv $tmp/out $tmp/in
40380 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40381 rm -f conftest.defines
40382 mv conftest.tail conftest.defines
40384 rm -f conftest.defines
40385 echo ' fi # grep' >>$CONFIG_STATUS
40386 echo >>$CONFIG_STATUS
40388 # Break up conftest.undefs because some shells have a limit on the size
40389 # of here documents, and old seds have small limits too (100 cmds).
40390 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40391 rm -f conftest.tail
40392 while grep . conftest.undefs >/dev/null
40394 # Write a limited-size here document to $tmp/undefs.sed.
40395 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40396 # Speed up: don't consider the non `#undef'
40397 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40398 # Work around the forget-to-reset-the-flag bug.
40399 echo 't clr' >>$CONFIG_STATUS
40400 echo ': clr' >>$CONFIG_STATUS
40401 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40403 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40405 mv $tmp/out $tmp/in
40407 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40408 rm -f conftest.undefs
40409 mv conftest.tail conftest.undefs
40411 rm -f conftest.undefs
40413 cat >>$CONFIG_STATUS <<\_ACEOF
40414 # Let's still pretend it is `configure' which instantiates (i.e., don't
40415 # use $as_me), people would be surprised to read:
40416 # /* config.h. Generated by config.status. */
40417 if test x"$ac_file" = x-; then
40418 echo "/* Generated by configure. */" >$tmp/config.h
40420 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40422 cat $tmp/in >>$tmp/config.h
40424 if test x"$ac_file" != x-; then
40425 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40426 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40427 echo "$as_me: $ac_file is unchanged" >&6;}
40429 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40431 X"$ac_file" : 'X\(//\)[^/]' \| \
40432 X"$ac_file" : 'X\(//\)$' \| \
40433 X"$ac_file" : 'X\(/\)' \| \
40434 . : '\(.\)' 2>/dev/null ||
40436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40438 /^X\(\/\/\)$/{ s//\1/; q; }
40439 /^X\(\/\).*/{ s//\1/; q; }
40441 { if $as_mkdir_p; then
40446 while test ! -d "$as_dir"; do
40447 as_dirs="$as_dir $as_dirs"
40448 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40450 X"$as_dir" : 'X\(//\)[^/]' \| \
40451 X"$as_dir" : 'X\(//\)$' \| \
40452 X"$as_dir" : 'X\(/\)' \| \
40453 . : '\(.\)' 2>/dev/null ||
40455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40457 /^X\(\/\/\)$/{ s//\1/; q; }
40458 /^X\(\/\).*/{ s//\1/; q; }
40461 test ! -n "$as_dirs" || mkdir $as_dirs
40462 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40464 { (exit 1); exit 1; }; }; }
40467 mv $tmp/config.h $ac_file
40471 rm -f $tmp/config.h
40473 # Compute $ac_file's index in $config_headers.
40475 for _am_header in $config_headers :; do
40476 case $_am_header in
40477 $ac_file | $ac_file:* )
40480 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40483 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40484 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40485 X$ac_file : 'X\(//\)[^/]' \| \
40486 X$ac_file : 'X\(//\)$' \| \
40487 X$ac_file : 'X\(/\)' \| \
40488 . : '\(.\)' 2>/dev/null ||
40490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40492 /^X\(\/\/\)$/{ s//\1/; q; }
40493 /^X\(\/\).*/{ s//\1/; q; }
40494 s/.*/./; q'`/stamp-h$_am_stamp_count
40497 cat >>$CONFIG_STATUS <<\_ACEOF
40500 # CONFIG_COMMANDS section.
40502 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40503 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40504 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40505 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40506 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40507 X"$ac_dest" : 'X\(//\)[^/]' \| \
40508 X"$ac_dest" : 'X\(//\)$' \| \
40509 X"$ac_dest" : 'X\(/\)' \| \
40510 . : '\(.\)' 2>/dev/null ||
40512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40514 /^X\(\/\/\)$/{ s//\1/; q; }
40515 /^X\(\/\).*/{ s//\1/; q; }
40517 { if $as_mkdir_p; then
40522 while test ! -d "$as_dir"; do
40523 as_dirs="$as_dir $as_dirs"
40524 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40526 X"$as_dir" : 'X\(//\)[^/]' \| \
40527 X"$as_dir" : 'X\(//\)$' \| \
40528 X"$as_dir" : 'X\(/\)' \| \
40529 . : '\(.\)' 2>/dev/null ||
40531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40533 /^X\(\/\/\)$/{ s//\1/; q; }
40534 /^X\(\/\).*/{ s//\1/; q; }
40537 test ! -n "$as_dirs" || mkdir $as_dirs
40538 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40539 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40540 { (exit 1); exit 1; }; }; }
40544 if test "$ac_dir" != .; then
40545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40546 # A "../" for each directory in $ac_dir_suffix.
40547 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40549 ac_dir_suffix= ac_top_builddir=
40553 .) # No --srcdir option. We are building in place.
40555 if test -z "$ac_top_builddir"; then
40558 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40560 [\\/]* | ?:[\\/]* ) # Absolute path.
40561 ac_srcdir=$srcdir$ac_dir_suffix;
40562 ac_top_srcdir=$srcdir ;;
40563 *) # Relative path.
40564 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40565 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40568 # Do not use `cd foo && pwd` to compute absolute paths, because
40569 # the directories may not exist.
40571 .) ac_abs_builddir="$ac_dir";;
40574 .) ac_abs_builddir=`pwd`;;
40575 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40576 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40579 case $ac_abs_builddir in
40580 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40582 case ${ac_top_builddir}. in
40583 .) ac_abs_top_builddir=$ac_abs_builddir;;
40584 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40585 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40588 case $ac_abs_builddir in
40589 .) ac_abs_srcdir=$ac_srcdir;;
40592 .) ac_abs_srcdir=$ac_abs_builddir;;
40593 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40594 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40597 case $ac_abs_builddir in
40598 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40600 case $ac_top_srcdir in
40601 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40602 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40603 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40608 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40609 echo "$as_me: executing $ac_dest commands" >&6;}
40611 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40612 # Strip MF so we end up with the name of the file.
40613 mf=`echo "$mf" | sed -e 's/:.*$//'`
40614 # Check whether this is an Automake generated Makefile or not.
40615 # We used to match only the files named `Makefile.in', but
40616 # some people rename them; so instead we look at the file content.
40617 # Grep'ing the first line is not enough: some people post-process
40618 # each Makefile.in and add a new line on top of each file to say so.
40619 # So let's grep whole file.
40620 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40621 dirpart=`(dirname "$mf") 2>/dev/null ||
40622 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40623 X"$mf" : 'X\(//\)[^/]' \| \
40624 X"$mf" : 'X\(//\)$' \| \
40625 X"$mf" : 'X\(/\)' \| \
40626 . : '\(.\)' 2>/dev/null ||
40628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40629 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40630 /^X\(\/\/\)$/{ s//\1/; q; }
40631 /^X\(\/\).*/{ s//\1/; q; }
40636 # Extract the definition of DEPDIR, am__include, and am__quote
40637 # from the Makefile without running `make'.
40638 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40639 test -z "$DEPDIR" && continue
40640 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40641 test -z "am__include" && continue
40642 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40643 # When using ansi2knr, U may be empty or an underscore; expand it
40644 U=`sed -n 's/^U = //p' < "$mf"`
40645 # Find all dependency output files, they are included files with
40646 # $(DEPDIR) in their names. We invoke sed twice because it is the
40647 # simplest approach to changing $(DEPDIR) to its actual value in the
40649 for file in `sed -n "
40650 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40651 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40652 # Make sure the directory exists.
40653 test -f "$dirpart/$file" && continue
40654 fdir=`(dirname "$file") 2>/dev/null ||
40655 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40656 X"$file" : 'X\(//\)[^/]' \| \
40657 X"$file" : 'X\(//\)$' \| \
40658 X"$file" : 'X\(/\)' \| \
40659 . : '\(.\)' 2>/dev/null ||
40661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40663 /^X\(\/\/\)$/{ s//\1/; q; }
40664 /^X\(\/\).*/{ s//\1/; q; }
40666 { if $as_mkdir_p; then
40667 mkdir -p $dirpart/$fdir
40669 as_dir=$dirpart/$fdir
40671 while test ! -d "$as_dir"; do
40672 as_dirs="$as_dir $as_dirs"
40673 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40675 X"$as_dir" : 'X\(//\)[^/]' \| \
40676 X"$as_dir" : 'X\(//\)$' \| \
40677 X"$as_dir" : 'X\(/\)' \| \
40678 . : '\(.\)' 2>/dev/null ||
40680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40682 /^X\(\/\/\)$/{ s//\1/; q; }
40683 /^X\(\/\).*/{ s//\1/; q; }
40686 test ! -n "$as_dirs" || mkdir $as_dirs
40687 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40688 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40689 { (exit 1); exit 1; }; }; }
40691 # echo "creating $dirpart/$file"
40692 echo '# dummy' > "$dirpart/$file"
40699 BACKENDSC="servers/slapd/backends.c"
40700 echo "Making $BACKENDSC"
40702 cat > $BACKENDSC << ENDX
40703 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40705 * Copyright 1998-2009 The OpenLDAP Foundation.
40706 * All rights reserved.
40708 * Redistribution and use in source and binary forms, with or without
40709 * modification, are permitted only as authorized by the OpenLDAP
40712 * A copy of this license is available in the file LICENSE in the
40713 * top-level directory of the distribution or, alternatively, at
40714 * <http://www.OpenLDAP.org/license.html>.
40716 /* This file is automatically generated by configure; please do not edit. */
40718 #include "portable.h"
40722 if test "${STATIC_BACKENDS}"; then
40723 for b in config ${STATIC_BACKENDS}; do
40724 bb=`echo "${b}" | sed -e 's/back-//'`
40725 cat >> $BACKENDSC << ENDX
40726 extern BI_init ${bb}_back_initialize;
40730 cat >> $BACKENDSC << ENDX
40732 BackendInfo slap_binfo[] = {
40735 for b in config ${STATIC_BACKENDS}; do
40736 bb=`echo "${b}" | sed -e 's/back-//'`
40737 echo " Add ${bb} ..."
40738 cat >> $BACKENDSC << ENDX
40739 { "${bb}", ${bb}_back_initialize },
40743 cat >> $BACKENDSC << ENDX
40747 /* end of generated file */
40750 OVERLAYSC="servers/slapd/overlays/statover.c"
40751 echo "Making $OVERLAYSC"
40753 cat > $OVERLAYSC << ENDX
40754 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40756 * Copyright 1998-2009 The OpenLDAP Foundation.
40757 * All rights reserved.
40759 * Redistribution and use in source and binary forms, with or without
40760 * modification, are permitted only as authorized by the OpenLDAP
40763 * A copy of this license is available in the file LICENSE in the
40764 * top-level directory of the distribution or, alternatively, at
40765 * <http://www.OpenLDAP.org/license.html>.
40767 /* This file is automatically generated by configure; please do not edit. */
40769 #include "portable.h"
40773 if test "${STATIC_OVERLAYS}"; then
40774 for o in ${STATIC_OVERLAYS}; do
40775 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40776 cat >> $OVERLAYSC << ENDX
40777 extern OV_init ${oo}_initialize;
40782 cat >> $OVERLAYSC << ENDX
40784 OverlayInit slap_oinfo[] = {
40787 if test "${STATIC_OVERLAYS}"; then
40788 for o in ${STATIC_OVERLAYS}; do
40789 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40790 echo " Add ${oo} ..."
40791 cat >> $OVERLAYSC << ENDX
40792 { "${oo}", ${oo}_initialize },
40797 cat >> $OVERLAYSC << ENDX
40801 /* end of generated file */
40804 if test "${ol_cv_mkdep}" = no; then
40805 echo '(Do not "make depend"; we do not know how to build dependencies)'
40807 echo 'Please run "make depend" to build dependencies'
40814 cat >>$CONFIG_STATUS <<\_ACEOF
40816 { (exit 0); exit 0; }
40818 chmod +x $CONFIG_STATUS
40819 ac_clean_files=$ac_clean_files_save
40822 # configure is writing to config.log, and then calls config.status.
40823 # config.status does its own redirection, appending to config.log.
40824 # Unfortunately, on DOS this fails, as config.log is still kept open
40825 # by configure, so config.status won't be able to write to it; its
40826 # output is simply discarded. So we exec the FD to /dev/null,
40827 # effectively closing config.log, so it can be properly (re)opened and
40828 # appended to by config.status. When coming back to configure, we
40829 # need to make the FD available again.
40830 if test "$no_create" != yes; then
40832 ac_config_status_args=
40833 test "$silent" = yes &&
40834 ac_config_status_args="$ac_config_status_args --quiet"
40836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40839 # would make configure fail if this is the last instruction.
40840 $ac_cs_success || { (exit 1); exit 1; }