2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.14 2008/09/17 22:54:33 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2008 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 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 [yes]
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-dyngroup Dynamic Group overlay no|yes|mod [no]
1056 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1057 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1058 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1059 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1060 --enable-refint Referential Integrity overlay no|yes|mod [no]
1061 --enable-retcode Return Code testing overlay no|yes|mod [no]
1062 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1063 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1064 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1065 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1066 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1067 --enable-valsort Value Sorting overlay no|yes|mod [no]
1069 Library Generation & Linking Options
1070 --enable-static[=PKGS]
1071 build static libraries [default=yes]
1072 --enable-shared[=PKGS]
1073 build shared libraries [default=yes]
1074 --enable-fast-install[=PKGS]
1075 optimize for fast installation [default=yes]
1076 --disable-dependency-tracking speeds up one-time build
1077 --enable-dependency-tracking do not reject slow dependency extractors
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1083 --with-subdir=DIR change default subdirectory used for installs
1084 --with-cyrus-sasl with Cyrus SASL support [auto]
1085 --with-fetch with fetch(3) URL support [auto]
1086 --with-threads with threads [auto]
1087 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1088 --with-yielding-select with implicitly yielding select [auto]
1089 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1090 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1091 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1092 --with-pic try to use only PIC/non-PIC objects [default=use
1095 include additional configurations [automatic]
1097 See INSTALL file for further details.
1099 Some influential environment variables:
1100 CC C compiler command
1101 CFLAGS C compiler flags
1102 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1103 nonstandard directory <lib dir>
1104 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105 headers in a nonstandard directory <include dir>
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1114 if test "$ac_init_help" = "recursive"; then
1115 # If there are subdirs, report their specific --help.
1117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118 test -d $ac_dir || continue
1121 if test "$ac_dir" != .; then
1122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123 # A "../" for each directory in $ac_dir_suffix.
1124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 ac_dir_suffix= ac_top_builddir=
1130 .) # No --srcdir option. We are building in place.
1132 if test -z "$ac_top_builddir"; then
1135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137 [\\/]* | ?:[\\/]* ) # Absolute path.
1138 ac_srcdir=$srcdir$ac_dir_suffix;
1139 ac_top_srcdir=$srcdir ;;
1141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145 # Do not use `cd foo && pwd` to compute absolute paths, because
1146 # the directories may not exist.
1148 .) ac_abs_builddir="$ac_dir";;
1151 .) ac_abs_builddir=`pwd`;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156 case $ac_abs_builddir in
1157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 case ${ac_top_builddir}. in
1160 .) ac_abs_top_builddir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165 case $ac_abs_builddir in
1166 .) ac_abs_srcdir=$ac_srcdir;;
1169 .) ac_abs_srcdir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174 case $ac_abs_builddir in
1175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 case $ac_top_srcdir in
1178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1185 # Check for guested configure; otherwise get Cygnus style configure.
1186 if test -f $ac_srcdir/configure.gnu; then
1188 $SHELL $ac_srcdir/configure.gnu --help=recursive
1189 elif test -f $ac_srcdir/configure; then
1191 $SHELL $ac_srcdir/configure --help=recursive
1192 elif test -f $ac_srcdir/configure.ac ||
1193 test -f $ac_srcdir/configure.in; then
1195 $ac_configure --help
1197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1203 test -n "$ac_init_help" && exit 0
1204 if $ac_init_version; then
1207 Copyright (C) 2003 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1211 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1212 Restrictions apply, see COPYRIGHT and LICENSE files.
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1221 It was created by $as_me, which was
1222 generated by GNU Autoconf 2.59. Invocation command line was
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1242 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1243 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1246 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1247 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1248 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 test -z "$as_dir" && as_dir=.
1257 echo "PATH: $as_dir"
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1281 ac_must_keep_next=false
1287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298 if test $ac_must_keep_next = true; then
1299 ac_must_keep_next=false # Got value, back to normal.
1302 *=* | --config-cache | -C | -disable-* | --disable-* \
1303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305 | -with-* | --with-* | -without-* | --without-* | --x)
1306 case "$ac_configure_args0 " in
1307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310 -* ) ac_must_keep_next=true ;;
1313 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314 # Get rid of the leading space.
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log. We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329 # Save into config.log some information that might help in debugging.
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1339 # The following way of writing the cache mishandles newlines in values,
1342 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1362 for ac_var in $ac_subst_vars
1364 eval ac_val=$`echo $ac_var`
1365 echo "$ac_var='"'"'$ac_val'"'"'"
1369 if test -n "$ac_subst_files"; then
1376 for ac_var in $ac_subst_files
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1384 if test -s confdefs.h; then
1391 sed "/^$/d" confdefs.h | sort
1394 test "$ac_signal" != 0 &&
1395 echo "$as_me: caught signal $ac_signal"
1396 echo "$as_me: exit $exit_status"
1398 rm -f core *.core &&
1399 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402 for ac_signal in 1 2 13 15; do
1403 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 # Predefined preprocessor variables.
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442 if test "x$prefix" != xNONE; then
1443 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448 for ac_site_file in $CONFIG_SITE; do
1449 if test -r "$ac_site_file"; then
1450 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452 sed 's/^/| /' "$ac_site_file" >&5
1458 # Check that the precious variables saved in the cache have kept the same
1460 ac_cache_corrupted=false
1461 for ac_var in `(set) 2>&1 |
1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1480 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1482 echo "$as_me: former value: $ac_old_val" >&2;}
1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1484 echo "$as_me: current value: $ac_new_val" >&2;}
1485 ac_cache_corrupted=:
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501 if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1510 ac_cpp='$CPP $CPPFLAGS'
1511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1558 for ac_dir in build $srcdir/build; do
1559 if test -f $ac_dir/install-sh; then
1561 ac_install_sh="$ac_aux_dir/install-sh -c"
1563 elif test -f $ac_dir/install.sh; then
1565 ac_install_sh="$ac_aux_dir/install.sh -c"
1567 elif test -f $ac_dir/shtool; then
1569 ac_install_sh="$ac_aux_dir/shtool install -c"
1573 if test -z "$ac_aux_dir"; then
1574 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576 { (exit 1); exit 1; }; }
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586 { (exit 1); exit 1; }; }
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590 ac_cv_shtool="$ac_aux_dir/shtool"
1592 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594 { (exit 1); exit 1; }; }
1597 SHTOOL="$ac_cv_shtool"
1601 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1602 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1606 if test -d $ac_aux_dir/CVS; then
1607 OPENLDAP_CVS="(from CVS sources) "
1610 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1612 # Make sure we can run config.sub.
1613 $ac_config_sub sun4 >/dev/null 2>&1 ||
1614 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1615 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1616 { (exit 1); exit 1; }; }
1618 echo "$as_me:$LINENO: checking build system type" >&5
1619 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1620 if test "${ac_cv_build+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 ac_cv_build_alias=$build_alias
1624 test -z "$ac_cv_build_alias" &&
1625 ac_cv_build_alias=`$ac_config_guess`
1626 test -z "$ac_cv_build_alias" &&
1627 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1628 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1629 { (exit 1); exit 1; }; }
1630 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1637 echo "${ECHO_T}$ac_cv_build" >&6
1639 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644 echo "$as_me:$LINENO: checking host system type" >&5
1645 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1646 if test "${ac_cv_host+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 ac_cv_host_alias=$host_alias
1650 test -z "$ac_cv_host_alias" &&
1651 ac_cv_host_alias=$ac_cv_build_alias
1652 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1654 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1655 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1659 echo "${ECHO_T}$ac_cv_host" >&6
1661 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666 echo "$as_me:$LINENO: checking target system type" >&5
1667 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1668 if test "${ac_cv_target+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 ac_cv_target_alias=$target_alias
1672 test "x$ac_cv_target_alias" = "x" &&
1673 ac_cv_target_alias=$ac_cv_host_alias
1674 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1675 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1676 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1677 { (exit 1); exit 1; }; }
1680 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1681 echo "${ECHO_T}$ac_cv_target" >&6
1682 target=$ac_cv_target
1683 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1688 # The aliases save the names the user supplied, while $host etc.
1689 # will get canonicalized.
1690 test -n "$target_alias" &&
1691 test "$program_prefix$program_suffix$program_transform_name" = \
1693 program_prefix=${target_alias}-
1695 am__api_version="1.9"
1696 # Find a good install program. We prefer a C program (faster),
1697 # so one script is as good as another. But avoid the broken or
1698 # incompatible versions:
1699 # SysV /etc/install, /usr/sbin/install
1700 # SunOS /usr/etc/install
1701 # IRIX /sbin/install
1703 # AmigaOS /C/install, which installs bootblocks on floppy discs
1704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1707 # OS/2's system install, which has a completely different semantic
1708 # ./install, which can be erroneously created by make from ./install.sh.
1709 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1710 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1711 if test -z "$INSTALL"; then
1712 if test "${ac_cv_path_install+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 # Account for people who put trailing slashes in PATH elements.
1722 ./ | .// | /cC/* | \
1723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1724 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1727 # OSF1 and SCO ODT 3.0 have their own names for install.
1728 # Don't use installbsd from OSF since it installs stuff as root
1730 for ac_prog in ginstall scoinst install; do
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733 if test $ac_prog = install &&
1734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # AIX install. It has an incompatible calling convention.
1737 elif test $ac_prog = install &&
1738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # program-specific install script used by HP pwplus--don't use.
1742 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1754 if test "${ac_cv_path_install+set}" = set; then
1755 INSTALL=$ac_cv_path_install
1757 # As a last resort, use the slow shell script. We don't cache a
1758 # path for INSTALL within a source directory, because that will
1759 # break other packages using the cache if that directory is
1760 # removed, or if the path is relative.
1761 INSTALL=$ac_install_sh
1764 echo "$as_me:$LINENO: result: $INSTALL" >&5
1765 echo "${ECHO_T}$INSTALL" >&6
1767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768 # It thinks the first close brace ends the variable substitution.
1769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1776 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1779 echo timestamp > conftest.file
1780 # Do `set' in a subshell so we don't clobber the current shell's
1781 # arguments. Must try -L first in case configure is actually a
1782 # symlink; some systems play weird games with the mod time of symlinks
1783 # (eg FreeBSD returns the mod time of the symlink's containing
1786 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1787 if test "$*" = "X"; then
1789 set X `ls -t $srcdir/configure conftest.file`
1792 if test "$*" != "X $srcdir/configure conftest.file" \
1793 && test "$*" != "X conftest.file $srcdir/configure"; then
1795 # If neither matched, then we have a broken ls. This can happen
1796 # if, for instance, CONFIG_SHELL is bash and it inherits a
1797 # broken ls alias from the environment. This has actually
1798 # happened. Such a system could not be considered "sane".
1799 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&5
1801 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1802 alias in your environment" >&2;}
1803 { (exit 1); exit 1; }; }
1806 test "$2" = conftest.file
1812 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1813 Check your system clock" >&5
1814 echo "$as_me: error: newly created file is older than distributed files!
1815 Check your system clock" >&2;}
1816 { (exit 1); exit 1; }; }
1818 echo "$as_me:$LINENO: result: yes" >&5
1819 echo "${ECHO_T}yes" >&6
1820 test "$program_prefix" != NONE &&
1821 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1822 # Use a double $ so make ignores it.
1823 test "$program_suffix" != NONE &&
1824 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1825 # Double any \ or $. echo might interpret backslashes.
1826 # By default was `s,x,x', remove it if useless.
1827 cat <<\_ACEOF >conftest.sed
1828 s/[\\$]/&&/g;s/;s,x,x,$//
1830 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1833 # expand $ac_aux_dir to an absolute path
1834 am_aux_dir=`cd $ac_aux_dir && pwd`
1836 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1837 # Use eval to expand $SHELL
1838 if eval "$MISSING --run true"; then
1839 am_missing_run="$MISSING --run "
1842 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1843 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1846 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1847 # We used to keeping the `.' as first argument, in order to
1848 # allow $(mkdir_p) to be used without argument. As in
1849 # $(mkdir_p) $(somedir)
1850 # where $(somedir) is conditionally defined. However this is wrong
1852 # 1. if the package is installed by a user who cannot write `.'
1853 # make install will fail,
1854 # 2. the above comment should most certainly read
1855 # $(mkdir_p) $(DESTDIR)$(somedir)
1856 # so it does not work when $(somedir) is undefined and
1857 # $(DESTDIR) is not.
1858 # To support the latter case, we have to write
1859 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1860 # so the `.' trick is pointless.
1861 mkdir_p='mkdir -p --'
1863 # On NextStep and OpenStep, the `mkdir' command does not
1864 # recognize any option. It will interpret all options as
1865 # directories to create, and then abort because `.' already
1867 for d in ./-p ./--version;
1869 test -d $d && rmdir $d
1871 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1872 if test -f "$ac_aux_dir/mkinstalldirs"; then
1873 mkdir_p='$(mkinstalldirs)'
1875 mkdir_p='$(install_sh) -d'
1879 for ac_prog in gawk mawk nawk awk
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_AWK+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$AWK"; then
1889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_AWK="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$AWK"; then
1909 echo "$as_me:$LINENO: result: $AWK" >&5
1910 echo "${ECHO_T}$AWK" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$AWK" && break
1919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1920 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1921 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1922 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 cat >conftest.make <<\_ACEOF
1927 @echo 'ac_maketemp="$(MAKE)"'
1929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1930 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1931 if test -n "$ac_maketemp"; then
1932 eval ac_cv_prog_make_${ac_make}_set=yes
1934 eval ac_cv_prog_make_${ac_make}_set=no
1938 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1939 echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 SET_MAKE="MAKE=${MAKE-make}"
1948 rm -rf .tst 2>/dev/null
1949 mkdir .tst 2>/dev/null
1950 if test -d .tst; then
1955 rmdir .tst 2>/dev/null
1957 # test to see if srcdir already configured
1958 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1959 test -f $srcdir/config.status; then
1960 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1961 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # test whether we have cygpath
1966 if test -z "$CYGPATH_W"; then
1967 if (cygpath --version) >/dev/null 2>/dev/null; then
1968 CYGPATH_W='cygpath -w'
1975 # Define the identity of the package.
1980 # Some tools Automake needs.
1982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1996 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1998 # Installed binaries are usually stripped using `strip' when the user
1999 # run `make install-strip'. However `strip' might not be the right
2000 # tool to use in cross-compilation environments, therefore Automake
2001 # will honor the `STRIP' environment variable to overrule this program.
2002 if test "$cross_compiling" != no; then
2003 if test -n "$ac_tool_prefix"; then
2004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}strip; ac_word=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_STRIP+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$STRIP"; then
2012 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 STRIP=$ac_cv_prog_STRIP
2031 if test -n "$STRIP"; then
2032 echo "$as_me:$LINENO: result: $STRIP" >&5
2033 echo "${ECHO_T}$STRIP" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$ac_cv_prog_STRIP"; then
2042 # Extract the first word of "strip", so it can be a program name with args.
2043 set dummy strip; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$ac_ct_STRIP"; then
2050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059 ac_cv_prog_ac_ct_STRIP="strip"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2069 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2070 if test -n "$ac_ct_STRIP"; then
2071 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2072 echo "${ECHO_T}$ac_ct_STRIP" >&6
2074 echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2080 STRIP="$ac_cv_prog_STRIP"
2084 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2086 # We need awk for the "check" target. The system "awk" is bad on
2088 # Always define AMTAR for backward compatibility.
2090 AMTAR=${AMTAR-"${am_missing_run}tar"}
2092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2098 cat >>confdefs.h <<_ACEOF
2099 #define OPENLDAP_PACKAGE "$PACKAGE"
2103 cat >>confdefs.h <<_ACEOF
2104 #define OPENLDAP_VERSION "$VERSION"
2109 cat >>confdefs.h <<_ACEOF
2110 #define LDAP_VENDOR_VERSION $OL_API_INC
2114 cat >>confdefs.h <<_ACEOF
2115 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2119 cat >>confdefs.h <<_ACEOF
2120 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2124 cat >>confdefs.h <<_ACEOF
2125 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2129 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2131 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2133 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2141 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2143 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2145 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2148 echo "$as_me:$LINENO: checking configure arguments" >&5
2149 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2154 ldap_subdir="/openldap"
2157 # Check whether --with-subdir or --without-subdir was given.
2158 if test "${with_subdir+set}" = set; then
2159 withval="$with_subdir"
2166 ldap_subdir="$withval"
2169 ldap_subdir="/$withval"
2175 # OpenLDAP --enable-debug
2177 # Check whether --enable-debug or --disable-debug was given.
2178 if test "${enable_debug+set}" = set; then
2179 enableval="$enable_debug"
2182 for ol_val in no yes traditional ; do
2183 if test "$enableval" = "$ol_val" ; then
2187 if test "$ol_arg" = "invalid" ; then
2188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2189 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2190 { (exit 1); exit 1; }; }
2192 ol_enable_debug="$ol_arg"
2197 # end --enable-debug
2198 # OpenLDAP --enable-dynamic
2200 # Check whether --enable-dynamic or --disable-dynamic was given.
2201 if test "${enable_dynamic+set}" = set; then
2202 enableval="$enable_dynamic"
2205 for ol_val in auto yes no ; do
2206 if test "$enableval" = "$ol_val" ; then
2210 if test "$ol_arg" = "invalid" ; then
2211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2212 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2213 { (exit 1); exit 1; }; }
2215 ol_enable_dynamic="$ol_arg"
2218 ol_enable_dynamic=no
2220 # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2223 # Check whether --enable-syslog or --disable-syslog was given.
2224 if test "${enable_syslog+set}" = set; then
2225 enableval="$enable_syslog"
2228 for ol_val in auto yes no ; do
2229 if test "$enableval" = "$ol_val" ; then
2233 if test "$ol_arg" = "invalid" ; then
2234 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2235 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2236 { (exit 1); exit 1; }; }
2238 ol_enable_syslog="$ol_arg"
2241 ol_enable_syslog=auto
2243 # end --enable-syslog
2244 # OpenLDAP --enable-proctitle
2246 # Check whether --enable-proctitle or --disable-proctitle was given.
2247 if test "${enable_proctitle+set}" = set; then
2248 enableval="$enable_proctitle"
2251 for ol_val in auto yes no ; do
2252 if test "$enableval" = "$ol_val" ; then
2256 if test "$ol_arg" = "invalid" ; then
2257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2259 { (exit 1); exit 1; }; }
2261 ol_enable_proctitle="$ol_arg"
2264 ol_enable_proctitle=yes
2266 # end --enable-proctitle
2267 ol_enable_referrals=${ol_enable_referrals-no}
2268 # OpenLDAP --enable-ipv6
2270 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2271 if test "${enable_ipv6+set}" = set; then
2272 enableval="$enable_ipv6"
2275 for ol_val in auto yes no ; do
2276 if test "$enableval" = "$ol_val" ; then
2280 if test "$ol_arg" = "invalid" ; then
2281 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2282 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2283 { (exit 1); exit 1; }; }
2285 ol_enable_ipv6="$ol_arg"
2291 # OpenLDAP --enable-local
2293 # Check whether --enable-local or --disable-local was given.
2294 if test "${enable_local+set}" = set; then
2295 enableval="$enable_local"
2298 for ol_val in auto yes no ; do
2299 if test "$enableval" = "$ol_val" ; then
2303 if test "$ol_arg" = "invalid" ; then
2304 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2305 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2306 { (exit 1); exit 1; }; }
2308 ol_enable_local="$ol_arg"
2311 ol_enable_local=auto
2313 # end --enable-local
2315 # OpenLDAP --with-cyrus_sasl
2317 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2318 if test "${with_cyrus_sasl+set}" = set; then
2319 withval="$with_cyrus_sasl"
2322 for ol_val in auto yes no ; do
2323 if test "$withval" = "$ol_val" ; then
2327 if test "$ol_arg" = "invalid" ; then
2328 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2329 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2330 { (exit 1); exit 1; }; }
2332 ol_with_cyrus_sasl="$ol_arg"
2335 ol_with_cyrus_sasl="auto"
2336 fi; # end --with-cyrus_sasl
2338 # OpenLDAP --with-fetch
2340 # Check whether --with-fetch or --without-fetch was given.
2341 if test "${with_fetch+set}" = set; then
2342 withval="$with_fetch"
2345 for ol_val in auto yes no ; do
2346 if test "$withval" = "$ol_val" ; then
2350 if test "$ol_arg" = "invalid" ; then
2351 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2352 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2353 { (exit 1); exit 1; }; }
2355 ol_with_fetch="$ol_arg"
2358 ol_with_fetch="auto"
2359 fi; # end --with-fetch
2361 # OpenLDAP --with-threads
2363 # Check whether --with-threads or --without-threads was given.
2364 if test "${with_threads+set}" = set; then
2365 withval="$with_threads"
2368 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2369 if test "$withval" = "$ol_val" ; then
2373 if test "$ol_arg" = "invalid" ; then
2374 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2375 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2376 { (exit 1); exit 1; }; }
2378 ol_with_threads="$ol_arg"
2381 ol_with_threads="auto"
2382 fi; # end --with-threads
2384 # OpenLDAP --with-tls
2386 # Check whether --with-tls or --without-tls was given.
2387 if test "${with_tls+set}" = set; then
2391 for ol_val in auto openssl gnutls yes no ; do
2392 if test "$withval" = "$ol_val" ; then
2396 if test "$ol_arg" = "invalid" ; then
2397 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2398 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2399 { (exit 1); exit 1; }; }
2401 ol_with_tls="$ol_arg"
2405 fi; # end --with-tls
2407 # OpenLDAP --with-yielding_select
2409 # Check whether --with-yielding_select or --without-yielding_select was given.
2410 if test "${with_yielding_select+set}" = set; then
2411 withval="$with_yielding_select"
2414 for ol_val in auto yes no manual ; do
2415 if test "$withval" = "$ol_val" ; then
2419 if test "$ol_arg" = "invalid" ; then
2420 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2421 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2422 { (exit 1); exit 1; }; }
2424 ol_with_yielding_select="$ol_arg"
2427 ol_with_yielding_select="auto"
2428 fi; # end --with-yielding_select
2430 # OpenLDAP --with-mp
2432 # Check whether --with-mp or --without-mp was given.
2433 if test "${with_mp+set}" = set; then
2437 for ol_val in auto longlong long bignum gmp yes no ; do
2438 if test "$withval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2444 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2445 { (exit 1); exit 1; }; }
2447 ol_with_mp="$ol_arg"
2453 # OpenLDAP --with-odbc
2455 # Check whether --with-odbc or --without-odbc was given.
2456 if test "${with_odbc+set}" = set; then
2457 withval="$with_odbc"
2460 for ol_val in auto iodbc unixodbc odbc32 ; do
2461 if test "$withval" = "$ol_val" ; then
2465 if test "$ol_arg" = "invalid" ; then
2466 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2467 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2468 { (exit 1); exit 1; }; }
2470 ol_with_odbc="$ol_arg"
2474 fi; # end --with-odbc
2478 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2479 if test "${enable_xxslapdoptions+set}" = set; then
2480 enableval="$enable_xxslapdoptions"
2483 # OpenLDAP --enable-slapd
2485 # Check whether --enable-slapd or --disable-slapd was given.
2486 if test "${enable_slapd+set}" = set; then
2487 enableval="$enable_slapd"
2490 for ol_val in auto yes no ; do
2491 if test "$enableval" = "$ol_val" ; then
2495 if test "$ol_arg" = "invalid" ; then
2496 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2498 { (exit 1); exit 1; }; }
2500 ol_enable_slapd="$ol_arg"
2505 # end --enable-slapd
2506 # OpenLDAP --enable-dynacl
2508 # Check whether --enable-dynacl or --disable-dynacl was given.
2509 if test "${enable_dynacl+set}" = set; then
2510 enableval="$enable_dynacl"
2513 for ol_val in auto yes no ; do
2514 if test "$enableval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2521 { (exit 1); exit 1; }; }
2523 ol_enable_dynacl="$ol_arg"
2528 # end --enable-dynacl
2529 # OpenLDAP --enable-aci
2531 # Check whether --enable-aci or --disable-aci was given.
2532 if test "${enable_aci+set}" = set; then
2533 enableval="$enable_aci"
2536 for ol_val in no yes mod ; do
2537 if test "$enableval" = "$ol_val" ; then
2541 if test "$ol_arg" = "invalid" ; then
2542 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2544 { (exit 1); exit 1; }; }
2546 ol_enable_aci="$ol_arg"
2552 # OpenLDAP --enable-cleartext
2554 # Check whether --enable-cleartext or --disable-cleartext was given.
2555 if test "${enable_cleartext+set}" = set; then
2556 enableval="$enable_cleartext"
2559 for ol_val in auto yes no ; do
2560 if test "$enableval" = "$ol_val" ; then
2564 if test "$ol_arg" = "invalid" ; then
2565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2567 { (exit 1); exit 1; }; }
2569 ol_enable_cleartext="$ol_arg"
2572 ol_enable_cleartext=yes
2574 # end --enable-cleartext
2575 # OpenLDAP --enable-crypt
2577 # Check whether --enable-crypt or --disable-crypt was given.
2578 if test "${enable_crypt+set}" = set; then
2579 enableval="$enable_crypt"
2582 for ol_val in auto yes no ; do
2583 if test "$enableval" = "$ol_val" ; then
2587 if test "$ol_arg" = "invalid" ; then
2588 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2590 { (exit 1); exit 1; }; }
2592 ol_enable_crypt="$ol_arg"
2597 # end --enable-crypt
2598 # OpenLDAP --enable-lmpasswd
2600 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2601 if test "${enable_lmpasswd+set}" = set; then
2602 enableval="$enable_lmpasswd"
2605 for ol_val in auto yes no ; do
2606 if test "$enableval" = "$ol_val" ; then
2610 if test "$ol_arg" = "invalid" ; then
2611 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2613 { (exit 1); exit 1; }; }
2615 ol_enable_lmpasswd="$ol_arg"
2618 ol_enable_lmpasswd=no
2620 # end --enable-lmpasswd
2621 # OpenLDAP --enable-spasswd
2623 # Check whether --enable-spasswd or --disable-spasswd was given.
2624 if test "${enable_spasswd+set}" = set; then
2625 enableval="$enable_spasswd"
2628 for ol_val in auto yes no ; do
2629 if test "$enableval" = "$ol_val" ; then
2633 if test "$ol_arg" = "invalid" ; then
2634 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2636 { (exit 1); exit 1; }; }
2638 ol_enable_spasswd="$ol_arg"
2641 ol_enable_spasswd=no
2643 # end --enable-spasswd
2644 # OpenLDAP --enable-modules
2646 # Check whether --enable-modules or --disable-modules was given.
2647 if test "${enable_modules+set}" = set; then
2648 enableval="$enable_modules"
2651 for ol_val in auto yes no ; do
2652 if test "$enableval" = "$ol_val" ; then
2656 if test "$ol_arg" = "invalid" ; then
2657 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2659 { (exit 1); exit 1; }; }
2661 ol_enable_modules="$ol_arg"
2664 ol_enable_modules=no
2666 # end --enable-modules
2667 # OpenLDAP --enable-rewrite
2669 # Check whether --enable-rewrite or --disable-rewrite was given.
2670 if test "${enable_rewrite+set}" = set; then
2671 enableval="$enable_rewrite"
2674 for ol_val in auto yes no ; do
2675 if test "$enableval" = "$ol_val" ; then
2679 if test "$ol_arg" = "invalid" ; then
2680 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2682 { (exit 1); exit 1; }; }
2684 ol_enable_rewrite="$ol_arg"
2687 ol_enable_rewrite=auto
2689 # end --enable-rewrite
2690 # OpenLDAP --enable-rlookups
2692 # Check whether --enable-rlookups or --disable-rlookups was given.
2693 if test "${enable_rlookups+set}" = set; then
2694 enableval="$enable_rlookups"
2697 for ol_val in auto yes no ; do
2698 if test "$enableval" = "$ol_val" ; then
2702 if test "$ol_arg" = "invalid" ; then
2703 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2705 { (exit 1); exit 1; }; }
2707 ol_enable_rlookups="$ol_arg"
2710 ol_enable_rlookups=no
2712 # end --enable-rlookups
2713 # OpenLDAP --enable-slapi
2715 # Check whether --enable-slapi or --disable-slapi was given.
2716 if test "${enable_slapi+set}" = set; then
2717 enableval="$enable_slapi"
2720 for ol_val in auto yes no ; do
2721 if test "$enableval" = "$ol_val" ; then
2725 if test "$ol_arg" = "invalid" ; then
2726 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2728 { (exit 1); exit 1; }; }
2730 ol_enable_slapi="$ol_arg"
2735 # end --enable-slapi
2736 # OpenLDAP --enable-slp
2738 # Check whether --enable-slp or --disable-slp was given.
2739 if test "${enable_slp+set}" = set; then
2740 enableval="$enable_slp"
2743 for ol_val in auto yes no ; do
2744 if test "$enableval" = "$ol_val" ; then
2748 if test "$ol_arg" = "invalid" ; then
2749 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2750 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2751 { (exit 1); exit 1; }; }
2753 ol_enable_slp="$ol_arg"
2759 # OpenLDAP --enable-wrappers
2761 # Check whether --enable-wrappers or --disable-wrappers was given.
2762 if test "${enable_wrappers+set}" = set; then
2763 enableval="$enable_wrappers"
2766 for ol_val in auto yes no ; do
2767 if test "$enableval" = "$ol_val" ; then
2771 if test "$ol_arg" = "invalid" ; then
2772 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2773 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2774 { (exit 1); exit 1; }; }
2776 ol_enable_wrappers="$ol_arg"
2779 ol_enable_wrappers=no
2781 # end --enable-wrappers
2798 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2799 if test "${enable_xxslapbackends+set}" = set; then
2800 enableval="$enable_xxslapbackends"
2804 # OpenLDAP --enable-backends
2806 # Check whether --enable-backends or --disable-backends was given.
2807 if test "${enable_backends+set}" = set; then
2808 enableval="$enable_backends"
2811 for ol_val in no yes mod ; do
2812 if test "$enableval" = "$ol_val" ; then
2816 if test "$ol_arg" = "invalid" ; then
2817 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2818 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2819 { (exit 1); exit 1; }; }
2821 ol_enable_backends="$ol_arg"
2824 # end --enable-backends
2825 # OpenLDAP --enable-bdb
2827 # Check whether --enable-bdb or --disable-bdb was given.
2828 if test "${enable_bdb+set}" = set; then
2829 enableval="$enable_bdb"
2832 for ol_val in no yes mod ; do
2833 if test "$enableval" = "$ol_val" ; then
2837 if test "$ol_arg" = "invalid" ; then
2838 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2839 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2840 { (exit 1); exit 1; }; }
2842 ol_enable_bdb="$ol_arg"
2845 ol_enable_bdb=${ol_enable_backends:-yes}
2848 # OpenLDAP --enable-dnssrv
2850 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2851 if test "${enable_dnssrv+set}" = set; then
2852 enableval="$enable_dnssrv"
2855 for ol_val in no yes mod ; do
2856 if test "$enableval" = "$ol_val" ; then
2860 if test "$ol_arg" = "invalid" ; then
2861 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2862 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2863 { (exit 1); exit 1; }; }
2865 ol_enable_dnssrv="$ol_arg"
2868 ol_enable_dnssrv=${ol_enable_backends:-no}
2870 # end --enable-dnssrv
2871 # OpenLDAP --enable-hdb
2873 # Check whether --enable-hdb or --disable-hdb was given.
2874 if test "${enable_hdb+set}" = set; then
2875 enableval="$enable_hdb"
2878 for ol_val in no yes mod ; do
2879 if test "$enableval" = "$ol_val" ; then
2883 if test "$ol_arg" = "invalid" ; then
2884 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2885 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2886 { (exit 1); exit 1; }; }
2888 ol_enable_hdb="$ol_arg"
2891 ol_enable_hdb=${ol_enable_backends:-yes}
2894 # OpenLDAP --enable-ldap
2896 # Check whether --enable-ldap or --disable-ldap was given.
2897 if test "${enable_ldap+set}" = set; then
2898 enableval="$enable_ldap"
2901 for ol_val in no yes mod ; do
2902 if test "$enableval" = "$ol_val" ; then
2906 if test "$ol_arg" = "invalid" ; then
2907 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2908 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2909 { (exit 1); exit 1; }; }
2911 ol_enable_ldap="$ol_arg"
2914 ol_enable_ldap=${ol_enable_backends:-no}
2917 # OpenLDAP --enable-meta
2919 # Check whether --enable-meta or --disable-meta was given.
2920 if test "${enable_meta+set}" = set; then
2921 enableval="$enable_meta"
2924 for ol_val in no yes mod ; do
2925 if test "$enableval" = "$ol_val" ; then
2929 if test "$ol_arg" = "invalid" ; then
2930 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2931 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2932 { (exit 1); exit 1; }; }
2934 ol_enable_meta="$ol_arg"
2937 ol_enable_meta=${ol_enable_backends:-no}
2940 # OpenLDAP --enable-monitor
2942 # Check whether --enable-monitor or --disable-monitor was given.
2943 if test "${enable_monitor+set}" = set; then
2944 enableval="$enable_monitor"
2947 for ol_val in no yes mod ; do
2948 if test "$enableval" = "$ol_val" ; then
2952 if test "$ol_arg" = "invalid" ; then
2953 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2954 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2955 { (exit 1); exit 1; }; }
2957 ol_enable_monitor="$ol_arg"
2960 ol_enable_monitor=${ol_enable_backends:-yes}
2962 # end --enable-monitor
2963 # OpenLDAP --enable-ndb
2965 # Check whether --enable-ndb or --disable-ndb was given.
2966 if test "${enable_ndb+set}" = set; then
2967 enableval="$enable_ndb"
2970 for ol_val in no yes mod ; do
2971 if test "$enableval" = "$ol_val" ; then
2975 if test "$ol_arg" = "invalid" ; then
2976 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
2977 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
2978 { (exit 1); exit 1; }; }
2980 ol_enable_ndb="$ol_arg"
2983 ol_enable_ndb=${ol_enable_backends:-no}
2986 # OpenLDAP --enable-null
2988 # Check whether --enable-null or --disable-null was given.
2989 if test "${enable_null+set}" = set; then
2990 enableval="$enable_null"
2993 for ol_val in no yes mod ; do
2994 if test "$enableval" = "$ol_val" ; then
2998 if test "$ol_arg" = "invalid" ; then
2999 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3000 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3001 { (exit 1); exit 1; }; }
3003 ol_enable_null="$ol_arg"
3006 ol_enable_null=${ol_enable_backends:-no}
3009 # OpenLDAP --enable-passwd
3011 # Check whether --enable-passwd or --disable-passwd was given.
3012 if test "${enable_passwd+set}" = set; then
3013 enableval="$enable_passwd"
3016 for ol_val in no yes mod ; do
3017 if test "$enableval" = "$ol_val" ; then
3021 if test "$ol_arg" = "invalid" ; then
3022 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3023 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3024 { (exit 1); exit 1; }; }
3026 ol_enable_passwd="$ol_arg"
3029 ol_enable_passwd=${ol_enable_backends:-no}
3031 # end --enable-passwd
3032 # OpenLDAP --enable-perl
3034 # Check whether --enable-perl or --disable-perl was given.
3035 if test "${enable_perl+set}" = set; then
3036 enableval="$enable_perl"
3039 for ol_val in no yes mod ; do
3040 if test "$enableval" = "$ol_val" ; then
3044 if test "$ol_arg" = "invalid" ; then
3045 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3046 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3047 { (exit 1); exit 1; }; }
3049 ol_enable_perl="$ol_arg"
3052 ol_enable_perl=${ol_enable_backends:-no}
3055 # OpenLDAP --enable-relay
3057 # Check whether --enable-relay or --disable-relay was given.
3058 if test "${enable_relay+set}" = set; then
3059 enableval="$enable_relay"
3062 for ol_val in no yes mod ; do
3063 if test "$enableval" = "$ol_val" ; then
3067 if test "$ol_arg" = "invalid" ; then
3068 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3069 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3070 { (exit 1); exit 1; }; }
3072 ol_enable_relay="$ol_arg"
3075 ol_enable_relay=${ol_enable_backends:-yes}
3077 # end --enable-relay
3078 # OpenLDAP --enable-shell
3080 # Check whether --enable-shell or --disable-shell was given.
3081 if test "${enable_shell+set}" = set; then
3082 enableval="$enable_shell"
3085 for ol_val in no yes mod ; do
3086 if test "$enableval" = "$ol_val" ; then
3090 if test "$ol_arg" = "invalid" ; then
3091 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3093 { (exit 1); exit 1; }; }
3095 ol_enable_shell="$ol_arg"
3098 ol_enable_shell=${ol_enable_backends:-no}
3100 # end --enable-shell
3101 # OpenLDAP --enable-sock
3103 # Check whether --enable-sock or --disable-sock was given.
3104 if test "${enable_sock+set}" = set; then
3105 enableval="$enable_sock"
3108 for ol_val in no yes mod ; do
3109 if test "$enableval" = "$ol_val" ; then
3113 if test "$ol_arg" = "invalid" ; then
3114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3116 { (exit 1); exit 1; }; }
3118 ol_enable_sock="$ol_arg"
3121 ol_enable_sock=${ol_enable_backends:-no}
3124 # OpenLDAP --enable-sql
3126 # Check whether --enable-sql or --disable-sql was given.
3127 if test "${enable_sql+set}" = set; then
3128 enableval="$enable_sql"
3131 for ol_val in no yes mod ; do
3132 if test "$enableval" = "$ol_val" ; then
3136 if test "$ol_arg" = "invalid" ; then
3137 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3138 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3139 { (exit 1); exit 1; }; }
3141 ol_enable_sql="$ol_arg"
3144 ol_enable_sql=${ol_enable_backends:-no}
3148 Overlays="accesslog \
3167 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3168 if test "${enable_xxslapoverlays+set}" = set; then
3169 enableval="$enable_xxslapoverlays"
3173 # OpenLDAP --enable-overlays
3175 # Check whether --enable-overlays or --disable-overlays was given.
3176 if test "${enable_overlays+set}" = set; then
3177 enableval="$enable_overlays"
3180 for ol_val in no yes mod ; do
3181 if test "$enableval" = "$ol_val" ; then
3185 if test "$ol_arg" = "invalid" ; then
3186 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3187 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3188 { (exit 1); exit 1; }; }
3190 ol_enable_overlays="$ol_arg"
3193 # end --enable-overlays
3194 # OpenLDAP --enable-accesslog
3196 # Check whether --enable-accesslog or --disable-accesslog was given.
3197 if test "${enable_accesslog+set}" = set; then
3198 enableval="$enable_accesslog"
3201 for ol_val in no yes mod ; do
3202 if test "$enableval" = "$ol_val" ; then
3206 if test "$ol_arg" = "invalid" ; then
3207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3208 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3209 { (exit 1); exit 1; }; }
3211 ol_enable_accesslog="$ol_arg"
3214 ol_enable_accesslog=${ol_enable_overlays:-no}
3216 # end --enable-accesslog
3218 # OpenLDAP --enable-auditlog
3220 # Check whether --enable-auditlog or --disable-auditlog was given.
3221 if test "${enable_auditlog+set}" = set; then
3222 enableval="$enable_auditlog"
3225 for ol_val in no yes mod ; do
3226 if test "$enableval" = "$ol_val" ; then
3230 if test "$ol_arg" = "invalid" ; then
3231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3233 { (exit 1); exit 1; }; }
3235 ol_enable_auditlog="$ol_arg"
3238 ol_enable_auditlog=${ol_enable_overlays:-no}
3240 # end --enable-auditlog
3242 # OpenLDAP --enable-collect
3244 # Check whether --enable-collect or --disable-collect was given.
3245 if test "${enable_collect+set}" = set; then
3246 enableval="$enable_collect"
3249 for ol_val in no yes mod ; do
3250 if test "$enableval" = "$ol_val" ; then
3254 if test "$ol_arg" = "invalid" ; then
3255 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3257 { (exit 1); exit 1; }; }
3259 ol_enable_collect="$ol_arg"
3262 ol_enable_collect=${ol_enable_overlays:-no}
3264 # end --enable-collect
3266 # OpenLDAP --enable-constraint
3268 # Check whether --enable-constraint or --disable-constraint was given.
3269 if test "${enable_constraint+set}" = set; then
3270 enableval="$enable_constraint"
3273 for ol_val in no yes mod ; do
3274 if test "$enableval" = "$ol_val" ; then
3278 if test "$ol_arg" = "invalid" ; then
3279 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3281 { (exit 1); exit 1; }; }
3283 ol_enable_constraint="$ol_arg"
3286 ol_enable_constraint=${ol_enable_overlays:-no}
3288 # end --enable-constraint
3290 # OpenLDAP --enable-dds
3292 # Check whether --enable-dds or --disable-dds was given.
3293 if test "${enable_dds+set}" = set; then
3294 enableval="$enable_dds"
3297 for ol_val in no yes mod ; do
3298 if test "$enableval" = "$ol_val" ; then
3302 if test "$ol_arg" = "invalid" ; then
3303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3305 { (exit 1); exit 1; }; }
3307 ol_enable_dds="$ol_arg"
3310 ol_enable_dds=${ol_enable_overlays:-no}
3314 # OpenLDAP --enable-dyngroup
3316 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3317 if test "${enable_dyngroup+set}" = set; then
3318 enableval="$enable_dyngroup"
3321 for ol_val in no yes mod ; do
3322 if test "$enableval" = "$ol_val" ; then
3326 if test "$ol_arg" = "invalid" ; then
3327 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3329 { (exit 1); exit 1; }; }
3331 ol_enable_dyngroup="$ol_arg"
3334 ol_enable_dyngroup=${ol_enable_overlays:-no}
3336 # end --enable-dyngroup
3338 # OpenLDAP --enable-dynlist
3340 # Check whether --enable-dynlist or --disable-dynlist was given.
3341 if test "${enable_dynlist+set}" = set; then
3342 enableval="$enable_dynlist"
3345 for ol_val in no yes mod ; do
3346 if test "$enableval" = "$ol_val" ; then
3350 if test "$ol_arg" = "invalid" ; then
3351 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3353 { (exit 1); exit 1; }; }
3355 ol_enable_dynlist="$ol_arg"
3358 ol_enable_dynlist=${ol_enable_overlays:-no}
3360 # end --enable-dynlist
3362 # OpenLDAP --enable-memberof
3364 # Check whether --enable-memberof or --disable-memberof was given.
3365 if test "${enable_memberof+set}" = set; then
3366 enableval="$enable_memberof"
3369 for ol_val in no yes mod ; do
3370 if test "$enableval" = "$ol_val" ; then
3374 if test "$ol_arg" = "invalid" ; then
3375 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3377 { (exit 1); exit 1; }; }
3379 ol_enable_memberof="$ol_arg"
3382 ol_enable_memberof=${ol_enable_overlays:-no}
3384 # end --enable-memberof
3386 # OpenLDAP --enable-ppolicy
3388 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3389 if test "${enable_ppolicy+set}" = set; then
3390 enableval="$enable_ppolicy"
3393 for ol_val in no yes mod ; do
3394 if test "$enableval" = "$ol_val" ; then
3398 if test "$ol_arg" = "invalid" ; then
3399 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3401 { (exit 1); exit 1; }; }
3403 ol_enable_ppolicy="$ol_arg"
3406 ol_enable_ppolicy=${ol_enable_overlays:-no}
3408 # end --enable-ppolicy
3410 # OpenLDAP --enable-proxycache
3412 # Check whether --enable-proxycache or --disable-proxycache was given.
3413 if test "${enable_proxycache+set}" = set; then
3414 enableval="$enable_proxycache"
3417 for ol_val in no yes mod ; do
3418 if test "$enableval" = "$ol_val" ; then
3422 if test "$ol_arg" = "invalid" ; then
3423 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3425 { (exit 1); exit 1; }; }
3427 ol_enable_proxycache="$ol_arg"
3430 ol_enable_proxycache=${ol_enable_overlays:-no}
3432 # end --enable-proxycache
3434 # OpenLDAP --enable-refint
3436 # Check whether --enable-refint or --disable-refint was given.
3437 if test "${enable_refint+set}" = set; then
3438 enableval="$enable_refint"
3441 for ol_val in no yes mod ; do
3442 if test "$enableval" = "$ol_val" ; then
3446 if test "$ol_arg" = "invalid" ; then
3447 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3449 { (exit 1); exit 1; }; }
3451 ol_enable_refint="$ol_arg"
3454 ol_enable_refint=${ol_enable_overlays:-no}
3456 # end --enable-refint
3458 # OpenLDAP --enable-retcode
3460 # Check whether --enable-retcode or --disable-retcode was given.
3461 if test "${enable_retcode+set}" = set; then
3462 enableval="$enable_retcode"
3465 for ol_val in no yes mod ; do
3466 if test "$enableval" = "$ol_val" ; then
3470 if test "$ol_arg" = "invalid" ; then
3471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3473 { (exit 1); exit 1; }; }
3475 ol_enable_retcode="$ol_arg"
3478 ol_enable_retcode=${ol_enable_overlays:-no}
3480 # end --enable-retcode
3482 # OpenLDAP --enable-rwm
3484 # Check whether --enable-rwm or --disable-rwm was given.
3485 if test "${enable_rwm+set}" = set; then
3486 enableval="$enable_rwm"
3489 for ol_val in no yes mod ; do
3490 if test "$enableval" = "$ol_val" ; then
3494 if test "$ol_arg" = "invalid" ; then
3495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3497 { (exit 1); exit 1; }; }
3499 ol_enable_rwm="$ol_arg"
3502 ol_enable_rwm=${ol_enable_overlays:-no}
3506 # OpenLDAP --enable-seqmod
3508 # Check whether --enable-seqmod or --disable-seqmod was given.
3509 if test "${enable_seqmod+set}" = set; then
3510 enableval="$enable_seqmod"
3513 for ol_val in no yes mod ; do
3514 if test "$enableval" = "$ol_val" ; then
3518 if test "$ol_arg" = "invalid" ; then
3519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3521 { (exit 1); exit 1; }; }
3523 ol_enable_seqmod="$ol_arg"
3526 ol_enable_seqmod=${ol_enable_overlays:-yes}
3528 # end --enable-seqmod
3530 # OpenLDAP --enable-syncprov
3532 # Check whether --enable-syncprov or --disable-syncprov was given.
3533 if test "${enable_syncprov+set}" = set; then
3534 enableval="$enable_syncprov"
3537 for ol_val in no yes mod ; do
3538 if test "$enableval" = "$ol_val" ; then
3542 if test "$ol_arg" = "invalid" ; then
3543 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3545 { (exit 1); exit 1; }; }
3547 ol_enable_syncprov="$ol_arg"
3550 ol_enable_syncprov=${ol_enable_overlays:-yes}
3552 # end --enable-syncprov
3554 # OpenLDAP --enable-translucent
3556 # Check whether --enable-translucent or --disable-translucent was given.
3557 if test "${enable_translucent+set}" = set; then
3558 enableval="$enable_translucent"
3561 for ol_val in no yes mod ; do
3562 if test "$enableval" = "$ol_val" ; then
3566 if test "$ol_arg" = "invalid" ; then
3567 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3568 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3569 { (exit 1); exit 1; }; }
3571 ol_enable_translucent="$ol_arg"
3574 ol_enable_translucent=${ol_enable_overlays:-no}
3576 # end --enable-translucent
3578 # OpenLDAP --enable-unique
3580 # Check whether --enable-unique or --disable-unique was given.
3581 if test "${enable_unique+set}" = set; then
3582 enableval="$enable_unique"
3585 for ol_val in no yes mod ; do
3586 if test "$enableval" = "$ol_val" ; then
3590 if test "$ol_arg" = "invalid" ; then
3591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3593 { (exit 1); exit 1; }; }
3595 ol_enable_unique="$ol_arg"
3598 ol_enable_unique=${ol_enable_overlays:-no}
3600 # end --enable-unique
3602 # OpenLDAP --enable-valsort
3604 # Check whether --enable-valsort or --disable-valsort was given.
3605 if test "${enable_valsort+set}" = set; then
3606 enableval="$enable_valsort"
3609 for ol_val in no yes mod ; do
3610 if test "$enableval" = "$ol_val" ; then
3614 if test "$ol_arg" = "invalid" ; then
3615 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3616 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3617 { (exit 1); exit 1; }; }
3619 ol_enable_valsort="$ol_arg"
3622 ol_enable_valsort=${ol_enable_overlays:-no}
3624 # end --enable-valsort
3627 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3628 if test "${enable_xxliboptions+set}" = set; then
3629 enableval="$enable_xxliboptions"
3632 # Check whether --enable-static or --disable-static was given.
3633 if test "${enable_static+set}" = set; then
3634 enableval="$enable_static"
3635 p=${PACKAGE-default}
3637 yes) enable_static=yes ;;
3638 no) enable_static=no ;;
3641 # Look at the argument we got. We use all the common list separators.
3642 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643 for pkg in $enableval; do
3645 if test "X$pkg" = "X$p"; then
3656 # Check whether --enable-shared or --disable-shared was given.
3657 if test "${enable_shared+set}" = set; then
3658 enableval="$enable_shared"
3659 p=${PACKAGE-default}
3661 yes) enable_shared=yes ;;
3662 no) enable_shared=no ;;
3665 # Look at the argument we got. We use all the common list separators.
3666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667 for pkg in $enableval; do
3669 if test "X$pkg" = "X$p"; then
3683 if test $ol_enable_slapd = no ; then
3684 if test $ol_enable_slapi = yes ; then
3685 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3686 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3688 case "$ol_enable_backends" in yes | mod)
3689 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3690 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3692 for i in $Backends; do
3693 eval "ol_tmp=\$ol_enable_$i"
3694 if test $ol_tmp != no ; then
3695 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3696 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3697 eval "ol_enable_$i=no"
3700 if test $ol_enable_modules = yes ; then
3701 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3702 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3704 if test $ol_enable_wrappers = yes ; then
3705 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3706 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3708 if test $ol_enable_rlookups = yes ; then
3709 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3710 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3712 if test $ol_enable_dynacl = yes ; then
3713 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3716 if test $ol_enable_aci != no ; then
3717 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3718 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3720 if test $ol_enable_rewrite = yes ; then
3721 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3722 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3724 case "$ol_enable_overlays" in yes | mod)
3725 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3726 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3728 for i in $Overlays; do
3729 eval "ol_tmp=\$ol_enable_$i"
3730 if test $ol_tmp != no ; then
3731 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3732 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3733 eval "ol_enable_$i=no"
3737 # force settings to no
3742 ol_enable_modules=no
3743 ol_enable_rlookups=no
3746 ol_enable_wrappers=no
3748 ol_enable_rewrite=no
3750 elif test $ol_enable_modules != yes &&
3751 test $ol_enable_bdb = no &&
3752 test $ol_enable_dnssrv = no &&
3753 test $ol_enable_hdb = no &&
3754 test $ol_enable_ldap = no &&
3755 test $ol_enable_meta = no &&
3756 test $ol_enable_monitor = no &&
3757 test $ol_enable_ndb = no &&
3758 test $ol_enable_null = no &&
3759 test $ol_enable_passwd = no &&
3760 test $ol_enable_perl = no &&
3761 test $ol_enable_relay = no &&
3762 test $ol_enable_shell = no &&
3763 test $ol_enable_sock = no &&
3764 test $ol_enable_sql = no ; then
3766 if test $ol_enable_slapd = yes ; then
3767 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3768 echo "$as_me: error: slapd requires a backend" >&2;}
3769 { (exit 1); exit 1; }; }
3771 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3772 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3777 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3778 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3779 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3780 { (exit 1); exit 1; }; }
3783 if test $ol_enable_lmpasswd = yes ; then
3784 if test $ol_with_tls = no ; then
3785 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3786 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3787 { (exit 1); exit 1; }; }
3791 if test $ol_enable_spasswd = yes ; then
3792 if test $ol_with_cyrus_sasl = no ; then
3793 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3794 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3795 { (exit 1); exit 1; }; }
3797 ol_with_cyrus_sasl=yes
3800 echo "$as_me:$LINENO: result: done" >&5
3801 echo "${ECHO_T}done" >&6
3850 BUILD_TRANSLUCENT=no
3854 SLAPD_STATIC_OVERLAYS=
3855 SLAPD_DYNAMIC_OVERLAYS=
3857 SLAPD_MODULES_LDFLAGS=
3858 SLAPD_MODULES_CPPFLAGS=
3860 SLAPD_STATIC_BACKENDS=back-ldif
3861 SLAPD_DYNAMIC_BACKENDS=
3887 cat >>confdefs.h <<\_ACEOF
3888 #define HAVE_MKVERSION 1
3896 *-*-aix*) if test -z "$CC" ; then
3897 case "$ol_with_threads" in
3898 auto | yes | posix) ol_aix_threads=yes ;;
3904 if test $ol_aix_threads = yes ; then
3905 if test -z "${CC}" ; then
3906 for ac_prog in cc_r xlc_r cc
3908 # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_CC+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 if test -n "$CC"; then
3916 ac_cv_prog_CC="$CC" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CC="$ac_prog"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 if test -n "$CC"; then
3936 echo "$as_me:$LINENO: result: $CC" >&5
3937 echo "${ECHO_T}$CC" >&6
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3943 test -n "$CC" && break
3947 if test "$CC" = cc ; then
3948 if test $ol_with_threads != auto ; then
3949 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3950 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3951 { (exit 1); exit 1; }; }
3953 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3954 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3960 case ${CC} in cc_r | xlc_r)
3961 ol_with_threads=posix
3962 ol_cv_pthread_create=yes
3967 if test -z "${CC}"; then
3968 for ac_prog in cc gcc
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy $ac_prog; ac_word=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_CC+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC="$CC" # Let the user override the test.
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_CC="$ac_prog"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 if test -n "$CC"; then
3998 echo "$as_me:$LINENO: result: $CC" >&5
3999 echo "${ECHO_T}$CC" >&6
4001 echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4005 test -n "$CC" && break
4007 test -n "$CC" || CC="missing"
4010 if test "${CC}" = "missing" ; then
4011 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4012 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4013 { (exit 1); exit 1; }; }
4017 if test -z "${AR}"; then
4018 for ac_prog in ar gar
4020 # Extract the first word of "$ac_prog", so it can be a program name with args.
4021 set dummy $ac_prog; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_prog_AR+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 if test -n "$AR"; then
4028 ac_cv_prog_AR="$AR" # Let the user override the test.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_AR="$ac_prog"
4038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 if test -n "$AR"; then
4048 echo "$as_me:$LINENO: result: $AR" >&5
4049 echo "${ECHO_T}$AR" >&6
4051 echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6
4055 test -n "$AR" && break
4057 test -n "$AR" || AR="missing"
4060 if test "${AR}" = "missing" ; then
4061 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4062 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4063 { (exit 1); exit 1; }; }
4071 # Check whether --enable-fast-install or --disable-fast-install was given.
4072 if test "${enable_fast_install+set}" = set; then
4073 enableval="$enable_fast_install"
4074 p=${PACKAGE-default}
4076 yes) enable_fast_install=yes ;;
4077 no) enable_fast_install=no ;;
4079 enable_fast_install=no
4080 # Look at the argument we got. We use all the common list separators.
4081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4082 for pkg in $enableval; do
4084 if test "X$pkg" = "X$p"; then
4085 enable_fast_install=yes
4092 enable_fast_install=yes
4095 DEPDIR="${am__leading_dot}deps"
4097 ac_config_commands="$ac_config_commands depfiles"
4100 am_make=${MAKE-make}
4101 cat > confinc << 'END'
4106 # If we don't find an include directive, just comment out the code.
4107 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4108 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4112 # First try GNU make style include.
4113 echo "include confinc" > confmf
4114 # We grep out `Entering directory' and `Leaving directory'
4115 # messages which can occur if `w' ends up in MAKEFLAGS.
4116 # In particular we don't look at `^make:' because GNU make might
4117 # be invoked under some other name (usually "gmake"), in which
4118 # case it prints its new name instead of `make'.
4119 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4124 # Now try BSD make style include.
4125 if test "$am__include" = "#"; then
4126 echo '.include "confinc"' > confmf
4127 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4128 am__include=.include
4135 echo "$as_me:$LINENO: result: $_am_result" >&5
4136 echo "${ECHO_T}$_am_result" >&6
4137 rm -f confinc confmf
4139 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4140 if test "${enable_dependency_tracking+set}" = set; then
4141 enableval="$enable_dependency_tracking"
4144 if test "x$enable_dependency_tracking" != xno; then
4145 am_depcomp="$ac_aux_dir/depcomp"
4150 if test "x$enable_dependency_tracking" != xno; then
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4168 echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170 if test "${ac_cv_prog_CC+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 if test -n "$CC"; then
4174 ac_cv_prog_CC="$CC" # Let the user override the test.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 if test -n "$CC"; then
4194 echo "$as_me:$LINENO: result: $CC" >&5
4195 echo "${ECHO_T}$CC" >&6
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4202 if test -z "$ac_cv_prog_CC"; then
4204 # Extract the first word of "gcc", so it can be a program name with args.
4205 set dummy gcc; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 if test -n "$ac_ct_CC"; then
4212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_ac_ct_CC="gcc"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4231 if test -n "$ac_ct_CC"; then
4232 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4233 echo "${ECHO_T}$ac_ct_CC" >&6
4235 echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4244 if test -z "$CC"; then
4245 if test -n "$ac_tool_prefix"; then
4246 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4247 set dummy ${ac_tool_prefix}cc; ac_word=$2
4248 echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250 if test "${ac_cv_prog_CC+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test -n "$CC"; then
4254 ac_cv_prog_CC="$CC" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_CC="${ac_tool_prefix}cc"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 if test -n "$CC"; then
4274 echo "$as_me:$LINENO: result: $CC" >&5
4275 echo "${ECHO_T}$CC" >&6
4277 echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4282 if test -z "$ac_cv_prog_CC"; then
4284 # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc; ac_word=$2
4286 echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test -n "$ac_ct_CC"; then
4292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_ac_ct_CC="cc"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4311 if test -n "$ac_ct_CC"; then
4312 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4313 echo "${ECHO_T}$ac_ct_CC" >&6
4315 echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4325 if test -z "$CC"; then
4326 # Extract the first word of "cc", so it can be a program name with args.
4327 set dummy cc; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_prog_CC+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 if test -n "$CC"; then
4334 ac_cv_prog_CC="$CC" # Let the user override the test.
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4345 ac_prog_rejected=yes
4349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 if test $ac_prog_rejected = yes; then
4356 # We found a bogon in the path, so make sure we never use it.
4357 set dummy $ac_cv_prog_CC
4359 if test $# != 0; then
4360 # We chose a different compiler from the bogus one.
4361 # However, it has the same basename, so the bogon will be chosen
4362 # first if we set CC to just the basename; use the full file name.
4364 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4370 if test -n "$CC"; then
4371 echo "$as_me:$LINENO: result: $CC" >&5
4372 echo "${ECHO_T}$CC" >&6
4374 echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4379 if test -z "$CC"; then
4380 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385 echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 if test "${ac_cv_prog_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test -n "$CC"; then
4391 ac_cv_prog_CC="$CC" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 if test -n "$CC"; then
4411 echo "$as_me:$LINENO: result: $CC" >&5
4412 echo "${ECHO_T}$CC" >&6
4414 echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4418 test -n "$CC" && break
4421 if test -z "$CC"; then
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$ac_ct_CC"; then
4433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442 ac_cv_prog_ac_ct_CC="$ac_prog"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4452 if test -n "$ac_ct_CC"; then
4453 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4454 echo "${ECHO_T}$ac_ct_CC" >&6
4456 echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6
4460 test -n "$ac_ct_CC" && break
4469 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4470 See \`config.log' for more details." >&5
4471 echo "$as_me: error: no acceptable C compiler found in \$PATH
4472 See \`config.log' for more details." >&2;}
4473 { (exit 1); exit 1; }; }
4475 # Provide some information about the compiler.
4476 echo "$as_me:$LINENO:" \
4477 "checking for C compiler version" >&5
4478 ac_compiler=`set X $ac_compile; echo $2`
4479 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4480 (eval $ac_compiler --version </dev/null >&5) 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }
4484 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4485 (eval $ac_compiler -v </dev/null >&5) 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4490 (eval $ac_compiler -V </dev/null >&5) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4510 ac_clean_files_save=$ac_clean_files
4511 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4512 # Try to create an executable without -o first, disregard a.out.
4513 # It will help us diagnose broken compilers, and finding out an intuition
4515 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4516 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4517 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4519 (eval $ac_link_default) 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; then
4523 # Find the output, starting from the most likely. This scheme is
4524 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4527 # Be careful to initialize this variable, since it used to be cached.
4528 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4530 # b.out is created by i960 compilers.
4531 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4533 test -f "$ac_file" || continue
4535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4538 # This is the source file.
4541 # We found the default executable, but exeext='' is most
4545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4546 # FIXME: I believe we export ac_cv_exeext for Libtool,
4547 # but it would be cool to find out if it's true. Does anybody
4548 # maintain Libtool? --akim.
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4560 See \`config.log' for more details." >&5
4561 echo "$as_me: error: C compiler cannot create executables
4562 See \`config.log' for more details." >&2;}
4563 { (exit 77); exit 77; }; }
4566 ac_exeext=$ac_cv_exeext
4567 echo "$as_me:$LINENO: result: $ac_file" >&5
4568 echo "${ECHO_T}$ac_file" >&6
4570 # Check the compiler produces executables we can run. If not, either
4571 # the compiler is broken, or we cross compile.
4572 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4573 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4574 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4575 # If not cross compiling, check that we can run a simple program.
4576 if test "$cross_compiling" != yes; then
4577 if { ac_try='./$ac_file'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4585 if test "$cross_compiling" = maybe; then
4588 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4589 If you meant to cross compile, use \`--host'.
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: cannot run C compiled programs.
4592 If you meant to cross compile, use \`--host'.
4593 See \`config.log' for more details." >&2;}
4594 { (exit 1); exit 1; }; }
4598 echo "$as_me:$LINENO: result: yes" >&5
4599 echo "${ECHO_T}yes" >&6
4601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4602 ac_clean_files=$ac_clean_files_save
4603 # Check the compiler produces executables we can run. If not, either
4604 # the compiler is broken, or we cross compile.
4605 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4607 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4608 echo "${ECHO_T}$cross_compiling" >&6
4610 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613 (eval $ac_link) 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; then
4617 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4618 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4619 # work properly (i.e., refer to `conftest.exe'), while it won't with
4621 for ac_file in conftest.exe conftest conftest.*; do
4622 test -f "$ac_file" || continue
4624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4625 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4632 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4633 See \`config.log' for more details." >&5
4634 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4635 See \`config.log' for more details." >&2;}
4636 { (exit 1); exit 1; }; }
4639 rm -f conftest$ac_cv_exeext
4640 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4641 echo "${ECHO_T}$ac_cv_exeext" >&6
4643 rm -f conftest.$ac_ext
4644 EXEEXT=$ac_cv_exeext
4646 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4647 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4648 if test "${ac_cv_objext+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4666 rm -f conftest.o conftest.obj
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; then
4672 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4680 echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4683 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4684 See \`config.log' for more details." >&5
4685 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4686 See \`config.log' for more details." >&2;}
4687 { (exit 1); exit 1; }; }
4690 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4692 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4693 echo "${ECHO_T}$ac_cv_objext" >&6
4694 OBJEXT=$ac_cv_objext
4696 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4698 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 cat >conftest.$ac_ext <<_ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>conftest.er1
4723 grep -v '^ *+' conftest.er1 >conftest.err
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -z "$ac_c_werror_flag"
4729 || test ! -s conftest.err'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; } &&
4735 { ac_try='test -s conftest.$ac_objext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4752 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4753 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4754 GCC=`test $ac_compiler_gnu = yes && echo yes`
4755 ac_test_CFLAGS=${CFLAGS+set}
4756 ac_save_CFLAGS=$CFLAGS
4758 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4760 if test "${ac_cv_prog_cc_g+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780 (eval $ac_compile) 2>conftest.er1
4782 grep -v '^ *+' conftest.er1 >conftest.err
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -z "$ac_c_werror_flag"
4788 || test ! -s conftest.err'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest.$ac_objext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4811 if test "$ac_test_CFLAGS" = set; then
4812 CFLAGS=$ac_save_CFLAGS
4813 elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4820 if test "$GCC" = yes; then
4826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 ac_cv_prog_cc_stdc=no
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4841 #include <sys/types.h>
4842 #include <sys/stat.h>
4843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4844 struct buf { int x; };
4845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4846 static char *e (p, i)
4852 static char *f (char * (*g) (char **, int), char **p, ...)
4857 s = g (p, va_arg (v,int));
4862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4863 function prototypes and stuff, but not '\xHH' hex character constants.
4864 These don't provoke an error unfortunately, instead are silently treated
4865 as 'x'. The following induces an error, until -std1 is added to get
4866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4867 array size at least. It's necessary to write '\x00'==0 to get something
4868 that's true only with -std1. */
4869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4885 # Don't try gcc -ansi; that turns off useful extensions and
4886 # breaks some systems' header files.
4887 # AIX -qlanglvl=ansi
4888 # Ultrix and OSF/1 -std1
4889 # HP-UX 10.20 and later -Ae
4890 # HP-UX older versions -Aa -D_HPUX_SOURCE
4891 # SVR4 -Xc -D__EXTENSIONS__
4892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4894 CC="$ac_save_CC $ac_arg"
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_cv_prog_cc_stdc=$ac_arg
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4924 rm -f conftest.err conftest.$ac_objext
4926 rm -f conftest.$ac_ext conftest.$ac_objext
4931 case "x$ac_cv_prog_cc_stdc" in
4933 echo "$as_me:$LINENO: result: none needed" >&5
4934 echo "${ECHO_T}none needed" >&6 ;;
4936 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4937 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4938 CC="$CC $ac_cv_prog_cc_stdc" ;;
4941 # Some people use a C++ compiler to compile C. Since we use `exit',
4942 # in C++ we need to declare it. In case someone uses the same compiler
4943 # for both compiling C and C++ we need to have the C++ compiler decide
4944 # the declaration of exit, since it's the most demanding environment.
4945 cat >conftest.$ac_ext <<_ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>conftest.er1
4954 grep -v '^ *+' conftest.er1 >conftest.err
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } &&
4959 { ac_try='test -z "$ac_c_werror_flag"
4960 || test ! -s conftest.err'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 for ac_declaration in \
4974 'extern "C" void std::exit (int) throw (); using std::exit;' \
4975 'extern "C" void std::exit (int); using std::exit;' \
4976 'extern "C" void exit (int) throw ();' \
4977 'extern "C" void exit (int);' \
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4996 rm -f conftest.$ac_objext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998 (eval $ac_compile) 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } &&
5005 { ac_try='test -z "$ac_c_werror_flag"
5006 || test ! -s conftest.err'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; } &&
5012 { ac_try='test -s conftest.$ac_objext'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5041 rm -f conftest.$ac_objext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043 (eval $ac_compile) 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try='test -z "$ac_c_werror_flag"
5051 || test ! -s conftest.err'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try='test -s conftest.$ac_objext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5072 if test -n "$ac_declaration"; then
5073 echo '#ifdef __cplusplus' >>confdefs.h
5074 echo $ac_declaration >>confdefs.h
5075 echo '#endif' >>confdefs.h
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 depcc="$CC" am_compiler_list=
5092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5098 # We make a subdir and do the tests there. Otherwise we can end up
5099 # making bogus files that we don't know about and never remove. For
5100 # instance it was reported that on HP-UX the gcc test will end up
5101 # making a dummy file named `D' -- because `-MD' means `put the output
5104 # Copy depcomp to subdir because otherwise we won't find it if we're
5105 # using a relative directory.
5106 cp "$am_depcomp" conftest.dir
5108 # We will build objects and dependencies in a subdirectory because
5109 # it helps to detect inapplicable dependency modes. For instance
5110 # both Tru64's cc and ICC support -MD to output dependencies as a
5111 # side effect of compilation, but ICC will put the dependencies in
5112 # the current directory while Tru64 will put them in the object
5116 am_cv_CC_dependencies_compiler_type=none
5117 if test "$am_compiler_list" = ""; then
5118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5120 for depmode in $am_compiler_list; do
5121 # Setup a source with many dependencies, because some compilers
5122 # like to wrap large dependency lists on column 80 (with \), and
5123 # we should not choose a depcomp mode which is confused by this.
5125 # We need to recreate these files for each test, as the compiler may
5126 # overwrite some of them when testing with obscure command lines.
5127 # This happens at least with the AIX C compiler.
5129 for i in 1 2 3 4 5 6; do
5130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5132 # Solaris 8's {/usr,}/bin/sh.
5133 touch sub/conftst$i.h
5135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5139 # after this tag, mechanisms are not by side-effect, so they'll
5140 # only be used when explicitly requested
5141 if test "x$enable_dependency_tracking" = xyes; then
5149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5150 # mode. It turns out that the SunPro C++ compiler does not properly
5151 # handle `-M -o', and we need to detect this.
5152 if depmode=$depmode \
5153 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5155 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5156 >/dev/null 2>conftest.err &&
5157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5158 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5160 # icc doesn't choke on unknown options, it will just issue warnings
5161 # or remarks (even with -Werror). So we grep stderr for any message
5162 # that says an option was ignored or not supported.
5163 # When given -MP, icc 7.0 and 7.1 complain thusly:
5164 # icc: Command line warning: ignoring option '-M'; no argument required
5165 # The diagnosis changed in icc 8.0:
5166 # icc: Command line remark: option '-MP' not supported
5167 if (grep 'ignoring option' conftest.err ||
5168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5169 am_cv_CC_dependencies_compiler_type=$depmode
5178 am_cv_CC_dependencies_compiler_type=none
5182 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5183 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5184 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5189 test "x$enable_dependency_tracking" != xno \
5190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5192 am__fastdepCC_FALSE='#'
5194 am__fastdepCC_TRUE='#'
5195 am__fastdepCC_FALSE=
5199 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5200 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5201 if test "${lt_cv_path_SED+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 # Loop through the user's path and test for sed and gsed.
5205 # Then use that list of sed's as ones to test for truncation.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for lt_ac_prog in sed gsed; do
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5214 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5222 # along with /bin/sed that truncates output.
5223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5224 test ! -f $lt_ac_sed && continue
5225 cat /dev/null > conftest.in
5227 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5228 # Check for GNU sed and select it if it is found.
5229 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5230 lt_cv_path_SED=$lt_ac_sed
5234 cat conftest.in conftest.in >conftest.tmp
5235 mv conftest.tmp conftest.in
5236 cp conftest.in conftest.nl
5238 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5239 cmp -s conftest.out conftest.nl || break
5240 # 10000 chars as input seems more than enough
5241 test $lt_ac_count -gt 10 && break
5242 lt_ac_count=`expr $lt_ac_count + 1`
5243 if test $lt_ac_count -gt $lt_ac_max; then
5244 lt_ac_max=$lt_ac_count
5245 lt_cv_path_SED=$lt_ac_sed
5253 echo "$as_me:$LINENO: result: $SED" >&5
5254 echo "${ECHO_T}$SED" >&6
5256 echo "$as_me:$LINENO: checking for egrep" >&5
5257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5258 if test "${ac_cv_prog_egrep+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5262 then ac_cv_prog_egrep='grep -E'
5263 else ac_cv_prog_egrep='egrep'
5266 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5267 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5268 EGREP=$ac_cv_prog_egrep
5272 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5273 if test "${with_gnu_ld+set}" = set; then
5274 withval="$with_gnu_ld"
5275 test "$withval" = no || with_gnu_ld=yes
5280 if test "$GCC" = yes; then
5281 # Check if gcc -print-prog-name=ld gives a path.
5282 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5283 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5286 # gcc leaves a trailing carriage return which upsets mingw
5287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5292 # Accept absolute paths.
5294 re_direlt='/[^/][^/]*/\.\./'
5295 # Canonicalize the pathname of ld
5296 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5297 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5298 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5300 test -z "$LD" && LD="$ac_prog"
5303 # If it fails, then pretend we aren't using GCC.
5307 # If it is relative, then search for the first ld in PATH.
5311 elif test "$with_gnu_ld" = yes; then
5312 echo "$as_me:$LINENO: checking for GNU ld" >&5
5313 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5315 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5316 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5318 if test "${lt_cv_path_LD+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 if test -z "$LD"; then
5322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5323 for ac_dir in $PATH; do
5325 test -z "$ac_dir" && ac_dir=.
5326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5327 lt_cv_path_LD="$ac_dir/$ac_prog"
5328 # Check to see if the program is GNU ld. I'd rather use --version,
5329 # but apparently some variants of GNU ld only accept -v.
5330 # Break only if it was the GNU/non-GNU ld that we prefer.
5331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5332 *GNU* | *'with BFD'*)
5333 test "$with_gnu_ld" != no && break
5336 test "$with_gnu_ld" != yes && break
5343 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5348 if test -n "$LD"; then
5349 echo "$as_me:$LINENO: result: $LD" >&5
5350 echo "${ECHO_T}$LD" >&6
5352 echo "$as_me:$LINENO: result: no" >&5
5353 echo "${ECHO_T}no" >&6
5355 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5356 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5357 { (exit 1); exit 1; }; }
5358 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5359 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5364 case `$LD -v 2>&1 </dev/null` in
5365 *GNU* | *'with BFD'*)
5366 lt_cv_prog_gnu_ld=yes
5369 lt_cv_prog_gnu_ld=no
5373 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5374 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5375 with_gnu_ld=$lt_cv_prog_gnu_ld
5378 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5379 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5380 if test "${lt_cv_ld_reload_flag+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 lt_cv_ld_reload_flag='-r'
5385 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5386 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5387 reload_flag=$lt_cv_ld_reload_flag
5388 case $reload_flag in
5390 *) reload_flag=" $reload_flag" ;;
5392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5395 if test "$GCC" = yes; then
5396 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5403 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5404 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5405 if test "${lt_cv_path_NM+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 if test -n "$NM"; then
5409 # Let the user override the test.
5412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5413 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5415 test -z "$ac_dir" && ac_dir=.
5416 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5417 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5418 # Check to see if the nm accepts a BSD-compat flag.
5419 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5420 # nm: unknown option "B" ignored
5421 # Tru64's nm complains that /dev/null is an invalid object file
5422 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5423 */dev/null* | *'Invalid file or object type'*)
5424 lt_cv_path_NM="$tmp_nm -B"
5428 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5430 lt_cv_path_NM="$tmp_nm -p"
5434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5435 continue # so that we can try to find one that supports BSD flags
5442 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5445 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5446 echo "${ECHO_T}$lt_cv_path_NM" >&6
5449 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5450 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5452 if test "$LN_S" = "ln -s"; then
5453 echo "$as_me:$LINENO: result: yes" >&5
5454 echo "${ECHO_T}yes" >&6
5456 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5457 echo "${ECHO_T}no, using $LN_S" >&6
5460 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5461 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5462 if test "${lt_cv_deplibs_check_method+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 lt_cv_file_magic_cmd='$MAGIC_CMD'
5466 lt_cv_file_magic_test_file=
5467 lt_cv_deplibs_check_method='unknown'
5468 # Need to set the preceding variable on all platforms that support
5469 # interlibrary dependencies.
5470 # 'none' -- dependencies not supported.
5471 # `unknown' -- same as none, but documents that we really don't know.
5472 # 'pass_all' -- all dependencies passed with no checks.
5473 # 'test_compile' -- check by making test program.
5474 # 'file_magic [[regex]]' -- check by looking for files in library path
5475 # which responds to the $file_magic_cmd with a given extended regex.
5476 # If you have `file' or equivalent on your system and you're not sure
5477 # whether `pass_all' will *always* work, you probably want this one.
5481 lt_cv_deplibs_check_method=pass_all
5485 lt_cv_deplibs_check_method=pass_all
5489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5490 lt_cv_file_magic_cmd='/usr/bin/file -L'
5491 lt_cv_file_magic_test_file=/shlib/libc.so
5495 # func_win32_libid is a shell function defined in ltmain.sh
5496 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5497 lt_cv_file_magic_cmd='func_win32_libid'
5501 # Base MSYS/MinGW do not provide the 'file' command needed by
5502 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5504 lt_cv_file_magic_cmd='$OBJDUMP -f'
5507 darwin* | rhapsody*)
5508 lt_cv_deplibs_check_method=pass_all
5511 freebsd* | kfreebsd*-gnu | dragonfly*)
5512 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5515 # Not sure whether the presence of OpenBSD here was a mistake.
5516 # Let's accept both of them until this is cleared up.
5517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5518 lt_cv_file_magic_cmd=/usr/bin/file
5519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5523 lt_cv_deplibs_check_method=pass_all
5528 lt_cv_deplibs_check_method=pass_all
5531 hpux10.20* | hpux11*)
5532 lt_cv_file_magic_cmd=/usr/bin/file
5535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5536 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5539 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]'
5540 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5549 irix5* | irix6* | nonstopux*)
5551 *-32|*"-32 ") libmagic=32-bit;;
5552 *-n32|*"-n32 ") libmagic=N32;;
5553 *-64|*"-64 ") libmagic=64-bit;;
5554 *) libmagic=never-match;;
5556 lt_cv_deplibs_check_method=pass_all
5559 # This must be Linux ELF.
5561 lt_cv_deplibs_check_method=pass_all
5565 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5574 lt_cv_file_magic_cmd=/usr/bin/file
5575 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5579 lt_cv_deplibs_check_method=unknown
5583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5590 osf3* | osf4* | osf5*)
5591 lt_cv_deplibs_check_method=pass_all
5595 lt_cv_deplibs_check_method=pass_all
5599 lt_cv_deplibs_check_method=pass_all
5602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5603 case $host_vendor in
5605 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]'
5606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5609 lt_cv_deplibs_check_method=pass_all
5612 lt_cv_file_magic_cmd='/bin/file'
5613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5616 lt_cv_file_magic_cmd='/bin/file'
5617 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5618 lt_cv_file_magic_test_file=/lib/libc.so
5621 lt_cv_deplibs_check_method=pass_all
5626 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5627 lt_cv_deplibs_check_method=pass_all
5632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5634 file_magic_cmd=$lt_cv_file_magic_cmd
5635 deplibs_check_method=$lt_cv_deplibs_check_method
5636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5641 # If no C compiler was specified, use CC.
5644 # Allow CC to be a program name with arguments.
5648 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5649 if test "${enable_libtool_lock+set}" = set; then
5650 enableval="$enable_libtool_lock"
5653 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5655 # Some flags need to be propagated to the compiler or linker for good
5659 # Find out which ABI we are using.
5660 echo 'int i;' > conftest.$ac_ext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; then
5666 case `/usr/bin/file conftest.$ac_objext` in
5678 # Find out which ABI we are using.
5679 echo '#line 5679 "configure"' > conftest.$ac_ext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5681 (eval $ac_compile) 2>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; then
5685 if test "$lt_cv_prog_gnu_ld" = yes; then
5686 case `/usr/bin/file conftest.$ac_objext` in
5688 LD="${LD-ld} -melf32bsmip"
5691 LD="${LD-ld} -melf32bmipn32"
5694 LD="${LD-ld} -melf64bmip"
5698 case `/usr/bin/file conftest.$ac_objext` in
5714 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5715 # Find out which ABI we are using.
5716 echo 'int i;' > conftest.$ac_ext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718 (eval $ac_compile) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; then
5722 case `/usr/bin/file conftest.o` in
5726 LD="${LD-ld} -m elf_i386"
5728 ppc64-*linux*|powerpc64-*linux*)
5729 LD="${LD-ld} -m elf32ppclinux"
5732 LD="${LD-ld} -m elf_s390"
5735 LD="${LD-ld} -m elf32_sparc"
5742 LD="${LD-ld} -m elf_x86_64"
5744 ppc*-*linux*|powerpc*-*linux*)
5745 LD="${LD-ld} -m elf64ppc"
5748 LD="${LD-ld} -m elf64_s390"
5751 LD="${LD-ld} -m elf64_sparc"
5761 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5762 SAVE_CFLAGS="$CFLAGS"
5763 CFLAGS="$CFLAGS -belf"
5764 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5765 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5766 if test "${lt_cv_cc_needs_belf+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 ac_cpp='$CPP $CPPFLAGS'
5771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5790 rm -f conftest.$ac_objext conftest$ac_exeext
5791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5792 (eval $ac_link) 2>conftest.er1
5794 grep -v '^ *+' conftest.er1 >conftest.err
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag"
5800 || test ! -s conftest.err'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; } &&
5806 { ac_try='test -s conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 lt_cv_cc_needs_belf=yes
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5817 lt_cv_cc_needs_belf=no
5819 rm -f conftest.err conftest.$ac_objext \
5820 conftest$ac_exeext conftest.$ac_ext
5822 ac_cpp='$CPP $CPPFLAGS'
5823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5829 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5830 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5831 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5832 CFLAGS="$SAVE_CFLAGS"
5835 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5839 echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5841 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 if test -n "$DLLTOOL"; then
5845 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 DLLTOOL=$ac_cv_prog_DLLTOOL
5864 if test -n "$DLLTOOL"; then
5865 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5866 echo "${ECHO_T}$DLLTOOL" >&6
5868 echo "$as_me:$LINENO: result: no" >&5
5869 echo "${ECHO_T}no" >&6
5873 if test -z "$ac_cv_prog_DLLTOOL"; then
5874 ac_ct_DLLTOOL=$DLLTOOL
5875 # Extract the first word of "dlltool", so it can be a program name with args.
5876 set dummy dlltool; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 if test -n "$ac_ct_DLLTOOL"; then
5883 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5902 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5903 if test -n "$ac_ct_DLLTOOL"; then
5904 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5905 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5907 echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6
5911 DLLTOOL=$ac_ct_DLLTOOL
5913 DLLTOOL="$ac_cv_prog_DLLTOOL"
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}as; ac_word=$2
5919 echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5921 if test "${ac_cv_prog_AS+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 if test -n "$AS"; then
5925 ac_cv_prog_AS="$AS" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_AS="${ac_tool_prefix}as"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 if test -n "$AS"; then
5945 echo "$as_me:$LINENO: result: $AS" >&5
5946 echo "${ECHO_T}$AS" >&6
5948 echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5953 if test -z "$ac_cv_prog_AS"; then
5955 # Extract the first word of "as", so it can be a program name with args.
5956 set dummy as; ac_word=$2
5957 echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 if test -n "$ac_ct_AS"; then
5963 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_ac_ct_AS="as"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5982 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5983 if test -n "$ac_ct_AS"; then
5984 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5985 echo "${ECHO_T}$ac_ct_AS" >&6
5987 echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5996 if test -n "$ac_tool_prefix"; then
5997 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5998 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5999 echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6001 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 if test -n "$OBJDUMP"; then
6005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6014 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 OBJDUMP=$ac_cv_prog_OBJDUMP
6024 if test -n "$OBJDUMP"; then
6025 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6026 echo "${ECHO_T}$OBJDUMP" >&6
6028 echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6033 if test -z "$ac_cv_prog_OBJDUMP"; then
6034 ac_ct_OBJDUMP=$OBJDUMP
6035 # Extract the first word of "objdump", so it can be a program name with args.
6036 set dummy objdump; ac_word=$2
6037 echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6039 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 if test -n "$ac_ct_OBJDUMP"; then
6043 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6062 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6063 if test -n "$ac_ct_OBJDUMP"; then
6064 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6065 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6067 echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6
6071 OBJDUMP=$ac_ct_OBJDUMP
6073 OBJDUMP="$ac_cv_prog_OBJDUMP"
6080 need_locks="$enable_libtool_lock"
6084 ac_cpp='$CPP $CPPFLAGS'
6085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6089 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6090 # On Suns, sometimes $CPP names a directory.
6091 if test -n "$CPP" && test -d "$CPP"; then
6094 if test -z "$CPP"; then
6095 if test "${ac_cv_prog_CPP+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 # Double quotes because CPP needs to be expanded
6099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6102 for ac_c_preproc_warn_flag in '' yes
6104 # Use a header file that comes with gcc, so configuring glibc
6105 # with a fresh cross-compiler works.
6106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107 # <limits.h> exists even on freestanding compilers.
6108 # On the NeXT, cc -E runs the code through the compiler's parser,
6109 # not just through cpp. "Syntax error" is here to catch this case.
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 # include <limits.h>
6119 # include <assert.h>
6123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } >/dev/null; then
6131 if test -s conftest.err; then
6132 ac_cpp_err=$ac_c_preproc_warn_flag
6133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6140 if test -z "$ac_cpp_err"; then
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 # Broken: fails on valid input.
6149 rm -f conftest.err conftest.$ac_ext
6151 # OK, works on sane cases. Now check whether non-existent headers
6152 # can be detected and how.
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 #include <ac_nonexistent.h>
6161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } >/dev/null; then
6169 if test -s conftest.err; then
6170 ac_cpp_err=$ac_c_preproc_warn_flag
6171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6178 if test -z "$ac_cpp_err"; then
6179 # Broken: success on invalid input.
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 # Passes both tests.
6189 rm -f conftest.err conftest.$ac_ext
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.err conftest.$ac_ext
6194 if $ac_preproc_ok; then
6206 echo "$as_me:$LINENO: result: $CPP" >&5
6207 echo "${ECHO_T}$CPP" >&6
6209 for ac_c_preproc_warn_flag in '' yes
6211 # Use a header file that comes with gcc, so configuring glibc
6212 # with a fresh cross-compiler works.
6213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214 # <limits.h> exists even on freestanding compilers.
6215 # On the NeXT, cc -E runs the code through the compiler's parser,
6216 # not just through cpp. "Syntax error" is here to catch this case.
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6224 # include <limits.h>
6226 # include <assert.h>
6230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev/null; then
6238 if test -s conftest.err; then
6239 ac_cpp_err=$ac_c_preproc_warn_flag
6240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6247 if test -z "$ac_cpp_err"; then
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 # Broken: fails on valid input.
6256 rm -f conftest.err conftest.$ac_ext
6258 # OK, works on sane cases. Now check whether non-existent headers
6259 # can be detected and how.
6260 cat >conftest.$ac_ext <<_ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 #include <ac_nonexistent.h>
6268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } >/dev/null; then
6276 if test -s conftest.err; then
6277 ac_cpp_err=$ac_c_preproc_warn_flag
6278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6285 if test -z "$ac_cpp_err"; then
6286 # Broken: success on invalid input.
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6292 # Passes both tests.
6296 rm -f conftest.err conftest.$ac_ext
6299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6300 rm -f conftest.err conftest.$ac_ext
6301 if $ac_preproc_ok; then
6304 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6305 See \`config.log' for more details." >&5
6306 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6307 See \`config.log' for more details." >&2;}
6308 { (exit 1); exit 1; }; }
6312 ac_cpp='$CPP $CPPFLAGS'
6313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6318 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6319 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6320 if test "${ac_cv_header_stdc+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_header_stdc=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_header_stdc=no
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 if test $ac_cv_header_stdc = yes; then
6374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385 $EGREP "memchr" >/dev/null 2>&1; then
6388 ac_cv_header_stdc=no
6394 if test $ac_cv_header_stdc = yes; then
6395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406 $EGREP "free" >/dev/null 2>&1; then
6409 ac_cv_header_stdc=no
6415 if test $ac_cv_header_stdc = yes; then
6416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6417 if test "$cross_compiling" = yes; then
6420 cat >conftest.$ac_ext <<_ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6427 #if ((' ' & 0x0FF) == 0x020)
6428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6431 # define ISLOWER(c) \
6432 (('a' <= (c) && (c) <= 'i') \
6433 || ('j' <= (c) && (c) <= 'r') \
6434 || ('s' <= (c) && (c) <= 'z'))
6435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6443 for (i = 0; i < 256; i++)
6444 if (XOR (islower (i), ISLOWER (i))
6445 || toupper (i) != TOUPPER (i))
6450 rm -f conftest$ac_exeext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6452 (eval $ac_link) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6463 echo "$as_me: program exited with status $ac_status" >&5
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6468 ac_cv_header_stdc=no
6470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6474 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6475 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6476 if test $ac_cv_header_stdc = yes; then
6478 cat >>confdefs.h <<\_ACEOF
6479 #define STDC_HEADERS 1
6484 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6494 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6495 inttypes.h stdint.h unistd.h
6497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6498 echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6511 #include <$ac_header>
6513 rm -f conftest.$ac_objext
6514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515 (eval $ac_compile) 2>conftest.er1
6517 grep -v '^ *+' conftest.er1 >conftest.err
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_c_werror_flag"
6523 || test ! -s conftest.err'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; } &&
6529 { ac_try='test -s conftest.$ac_objext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 eval "$as_ac_Header=yes"
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 eval "$as_ac_Header=no"
6542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6547 cat >>confdefs.h <<_ACEOF
6548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6557 for ac_header in dlfcn.h
6559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6561 echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6569 # Is the header compilable?
6570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6572 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 $ac_includes_default
6579 #include <$ac_header>
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583 (eval $ac_compile) 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
6590 { ac_try='test -z "$ac_c_werror_flag"
6591 || test ! -s conftest.err'
6592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 ac_header_compiler=yes
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6608 ac_header_compiler=no
6610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6612 echo "${ECHO_T}$ac_header_compiler" >&6
6614 # Is the header present?
6615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6617 cat >conftest.$ac_ext <<_ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 #include <$ac_header>
6625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } >/dev/null; then
6633 if test -s conftest.err; then
6634 ac_cpp_err=$ac_c_preproc_warn_flag
6635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6642 if test -z "$ac_cpp_err"; then
6643 ac_header_preproc=yes
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 ac_header_preproc=no
6650 rm -f conftest.err conftest.$ac_ext
6651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6652 echo "${ECHO_T}$ac_header_preproc" >&6
6654 # So? What about this header?
6655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6661 ac_header_preproc=yes
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6678 ## --------------------------------------------- ##
6679 ## Report this to <http://www.openldap.org/its/> ##
6680 ## --------------------------------------------- ##
6683 sed "s/^/$as_me: WARNING: /" >&2
6686 echo "$as_me:$LINENO: checking for $ac_header" >&5
6687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 eval "$as_ac_Header=\$ac_header_preproc"
6693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6698 cat >>confdefs.h <<_ACEOF
6699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6707 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6709 # find the maximum length of command line arguments
6710 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6711 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6712 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 # On DJGPP, this test can blow up pretty badly due to problems in libc
6721 # (any single argument exceeding 2000 bytes causes a buffer overrun
6722 # during glob expansion). Even if it were fixed, the result of this
6723 # check would be larger than it should be.
6724 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6728 # Under GNU Hurd, this test is not required because there is
6729 # no limit to the length of command line arguments.
6730 # Libtool will interpret -1 as no limit whatsoever
6731 lt_cv_sys_max_cmd_len=-1;
6735 # On Win9x/ME, this test blows up -- it succeeds, but takes
6736 # about 5 minutes as the teststring grows exponentially.
6737 # Worse, since 9x/ME are not pre-emptively multitasking,
6738 # you end up with a "frozen" computer, even though with patience
6739 # the test eventually succeeds (with a max line length of 256k).
6740 # Instead, let's just punt: use the minimum linelength reported by
6741 # all of the supported platforms: 8192 (on NT/2K/XP).
6742 lt_cv_sys_max_cmd_len=8192;
6746 # On AmigaOS with pdksh, this test takes hours, literally.
6747 # So we just punt and use a minimum line length of 8192.
6748 lt_cv_sys_max_cmd_len=8192;
6751 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6752 # This has been around since 386BSD, at least. Likely further.
6753 if test -x /sbin/sysctl; then
6754 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6755 elif test -x /usr/sbin/sysctl; then
6756 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6758 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6760 # And add a safety zone
6761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6765 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6766 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6767 # nice to cause kernel panics so lets avoid the loop below.
6768 # First set a reasonable default.
6769 lt_cv_sys_max_cmd_len=16384
6771 if test -x /sbin/sysconfig; then
6772 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6773 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6778 # If test is not a shell built-in, we'll probably end up computing a
6779 # maximum length that is only half of the actual maximum length, but
6781 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6782 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6783 = "XX$teststring") >/dev/null 2>&1 &&
6784 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6785 lt_cv_sys_max_cmd_len=$new_result &&
6786 test $i != 17 # 1/2 MB should be enough
6789 teststring=$teststring$teststring
6792 # Add a significant safety factor because C++ compilers can tack on massive
6793 # amounts of additional arguments before passing them to the linker.
6794 # It appears as though 1/2 is a usable value.
6795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6801 if test -n $lt_cv_sys_max_cmd_len ; then
6802 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6803 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6805 echo "$as_me:$LINENO: result: none" >&5
6806 echo "${ECHO_T}none" >&6
6812 # Check for command to grab the raw symbol name followed by C symbol from nm.
6813 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6814 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6815 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 # These are sane defaults that work on at least a few old systems.
6820 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6822 # Character class describing NM global symbol codes.
6823 symcode='[BCDEGRST]'
6825 # Regexp to match symbols that can be accessed directly from C.
6826 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6828 # Transform an extracted symbol line into a proper C declaration
6829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6831 # Transform an extracted symbol line into symbol name and symbol address
6832 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'"
6834 # Define system-specific variables.
6839 cygwin* | mingw* | pw32*)
6840 symcode='[ABCDGISTW]'
6842 hpux*) # Its linker distinguishes data from code symbols
6843 if test "$host_cpu" = ia64; then
6844 symcode='[ABCDEGRST]'
6846 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6847 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'"
6850 if test "$host_cpu" = ia64; then
6851 symcode='[ABCDGIRSTW]'
6852 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6853 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'"
6857 symcode='[BCDEGRST]'
6860 symcode='[BCDEGQRST]'
6870 # Handle CRLF in mingw tool chain
6874 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6878 # If we're using GNU nm, then use its standard symbol codes.
6879 case `$NM -V 2>&1` in
6880 *GNU* | *'with BFD'*)
6881 symcode='[ABCDGIRSTW]' ;;
6884 # Try without a prefix undercore, then with it.
6885 for ac_symprfx in "" "_"; do
6887 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6888 symxfrm="\\1 $ac_symprfx\\2 \\2"
6890 # Write the raw and C identifiers.
6891 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6893 # Check to see that the pipe works correctly.
6897 cat > conftest.$ac_ext <<EOF
6902 void nm_test_func(){}
6906 int main(){nm_test_var='a';nm_test_func();return(0);}
6909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910 (eval $ac_compile) 2>&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; then
6914 # Now try to grab the symbols.
6916 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6917 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && test -s "$nlist"; then
6921 # Try sorting and uniquifying the output.
6922 if sort "$nlist" | uniq > "$nlist"T; then
6923 mv -f "$nlist"T "$nlist"
6928 # Make sure that we snagged all the symbols we need.
6929 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6930 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6931 cat <<EOF > conftest.$ac_ext
6937 # Now generate the symbol file.
6938 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6940 cat <<EOF >> conftest.$ac_ext
6941 #if defined (__STDC__) && __STDC__
6942 # define lt_ptr_t void *
6944 # define lt_ptr_t char *
6948 /* The mapping between symbol names and symbols. */
6953 lt_preloaded_symbols[] =
6956 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6957 cat <<\EOF >> conftest.$ac_ext
6965 # Now try linking the two files.
6966 mv conftest.$ac_objext conftstm.$ac_objext
6967 lt_save_LIBS="$LIBS"
6968 lt_save_CFLAGS="$CFLAGS"
6969 LIBS="conftstm.$ac_objext"
6970 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6978 LIBS="$lt_save_LIBS"
6979 CFLAGS="$lt_save_CFLAGS"
6981 echo "cannot find nm_test_func in $nlist" >&5
6984 echo "cannot find nm_test_var in $nlist" >&5
6987 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6990 echo "$progname: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6993 rm -f conftest* conftst*
6995 # Do not use the global_symbol_pipe unless it works.
6996 if test "$pipe_works" = yes; then
6999 lt_cv_sys_global_symbol_pipe=
7005 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7006 lt_cv_sys_global_symbol_to_cdecl=
7008 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7009 echo "$as_me:$LINENO: result: failed" >&5
7010 echo "${ECHO_T}failed" >&6
7012 echo "$as_me:$LINENO: result: ok" >&5
7013 echo "${ECHO_T}ok" >&6
7016 echo "$as_me:$LINENO: checking for objdir" >&5
7017 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7018 if test "${lt_cv_objdir+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 rm -f .libs 2>/dev/null
7022 mkdir .libs 2>/dev/null
7023 if test -d .libs; then
7026 # MS-DOS does not allow filenames that begin with a dot.
7029 rmdir .libs 2>/dev/null
7031 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7032 echo "${ECHO_T}$lt_cv_objdir" >&6
7033 objdir=$lt_cv_objdir
7041 # AIX sometimes has problems with the GCC collect2 program. For some
7042 # reason, if we set the COLLECT_NAMES environment variable, the problems
7043 # vanish in a puff of smoke.
7044 if test "X${COLLECT_NAMES+set}" != Xset; then
7046 export COLLECT_NAMES
7051 # Sed substitution that helps us do robust quoting. It backslashifies
7052 # metacharacters that are still active within double-quoted strings.
7053 Xsed='sed -e 1s/^X//'
7054 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7056 # Same as above, but do not quote variable references.
7057 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7059 # Sed substitution to delay expansion of an escaped shell variable in a
7060 # double_quote_subst'ed string.
7061 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7063 # Sed substitution to avoid accidental globbing in evaled expressions
7064 no_glob_subst='s/\*/\\\*/g'
7070 default_ofile=libtool
7071 can_build_shared=yes
7073 # All known linkers require a `.a' archive for static linking (except MSVC,
7074 # which needs '.lib').
7076 ltmain="$ac_aux_dir/ltmain.sh"
7077 ofile="$default_ofile"
7078 with_gnu_ld="$lt_cv_prog_gnu_ld"
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}ar; ac_word=$2
7083 echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7085 if test "${ac_cv_prog_AR+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 if test -n "$AR"; then
7089 ac_cv_prog_AR="$AR" # Let the user override the test.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_prog_AR="${ac_tool_prefix}ar"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 if test -n "$AR"; then
7109 echo "$as_me:$LINENO: result: $AR" >&5
7110 echo "${ECHO_T}$AR" >&6
7112 echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6
7117 if test -z "$ac_cv_prog_AR"; then
7119 # Extract the first word of "ar", so it can be a program name with args.
7120 set dummy ar; ac_word=$2
7121 echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$ac_ct_AR"; then
7127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_ac_ct_AR="ar"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7147 if test -n "$ac_ct_AR"; then
7148 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7149 echo "${ECHO_T}$ac_ct_AR" >&6
7151 echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6
7160 if test -n "$ac_tool_prefix"; then
7161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7163 echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165 if test "${ac_cv_prog_RANLIB+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 if test -n "$RANLIB"; then
7169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 RANLIB=$ac_cv_prog_RANLIB
7188 if test -n "$RANLIB"; then
7189 echo "$as_me:$LINENO: result: $RANLIB" >&5
7190 echo "${ECHO_T}$RANLIB" >&6
7192 echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6
7197 if test -z "$ac_cv_prog_RANLIB"; then
7198 ac_ct_RANLIB=$RANLIB
7199 # Extract the first word of "ranlib", so it can be a program name with args.
7200 set dummy ranlib; ac_word=$2
7201 echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 if test -n "$ac_ct_RANLIB"; then
7207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_ac_ct_RANLIB="ranlib"
7217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7227 if test -n "$ac_ct_RANLIB"; then
7228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7229 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7231 echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6
7235 RANLIB=$ac_ct_RANLIB
7237 RANLIB="$ac_cv_prog_RANLIB"
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}strip; ac_word=$2
7243 echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7245 if test "${ac_cv_prog_STRIP+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 if test -n "$STRIP"; then
7249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 STRIP=$ac_cv_prog_STRIP
7268 if test -n "$STRIP"; then
7269 echo "$as_me:$LINENO: result: $STRIP" >&5
7270 echo "${ECHO_T}$STRIP" >&6
7272 echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7277 if test -z "$ac_cv_prog_STRIP"; then
7279 # Extract the first word of "strip", so it can be a program name with args.
7280 set dummy strip; ac_word=$2
7281 echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7283 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 if test -n "$ac_ct_STRIP"; then
7287 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_ac_ct_STRIP="strip"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7306 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7307 if test -n "$ac_ct_STRIP"; then
7308 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7309 echo "${ECHO_T}$ac_ct_STRIP" >&6
7311 echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6
7317 STRIP="$ac_cv_prog_STRIP"
7322 old_CFLAGS="$CFLAGS"
7324 # Set sane defaults for various variables
7325 test -z "$AR" && AR=ar
7326 test -z "$AR_FLAGS" && AR_FLAGS=cru
7327 test -z "$AS" && AS=as
7328 test -z "$CC" && CC=cc
7329 test -z "$LTCC" && LTCC=$CC
7330 test -z "$DLLTOOL" && DLLTOOL=dlltool
7331 test -z "$LD" && LD=ld
7332 test -z "$LN_S" && LN_S="ln -s"
7333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7334 test -z "$NM" && NM=nm
7335 test -z "$SED" && SED=sed
7336 test -z "$OBJDUMP" && OBJDUMP=objdump
7337 test -z "$RANLIB" && RANLIB=:
7338 test -z "$STRIP" && STRIP=:
7339 test -z "$ac_objext" && ac_objext=o
7341 # Determine commands to create old-style static archives.
7342 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7343 old_postinstall_cmds='chmod 644 $oldlib'
7344 old_postuninstall_cmds=
7346 if test -n "$RANLIB"; then
7349 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7352 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7355 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7358 for cc_temp in $compiler""; do
7360 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7361 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7366 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7369 # Only perform the check for file, if the check method requires it
7370 case $deplibs_check_method in
7372 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7373 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7374 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7375 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7383 lt_save_MAGIC_CMD="$MAGIC_CMD"
7384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7385 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7386 for ac_dir in $ac_dummy; do
7388 test -z "$ac_dir" && ac_dir=.
7389 if test -f $ac_dir/${ac_tool_prefix}file; then
7390 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7391 if test -n "$file_magic_test_file"; then
7392 case $deplibs_check_method in
7394 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7396 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7397 $EGREP "$file_magic_regex" > /dev/null; then
7402 *** Warning: the command libtool uses to detect shared libraries,
7403 *** $file_magic_cmd, produces output that libtool cannot recognize.
7404 *** The result is that libtool may fail to recognize shared libraries
7405 *** as such. This will affect the creation of libtool libraries that
7406 *** depend on shared libraries, but programs linked with such libtool
7407 *** libraries will work regardless of this problem. Nevertheless, you
7408 *** may want to report the problem to your system manager and/or to
7409 *** bug-libtool@gnu.org
7419 MAGIC_CMD="$lt_save_MAGIC_CMD"
7424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7425 if test -n "$MAGIC_CMD"; then
7426 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7427 echo "${ECHO_T}$MAGIC_CMD" >&6
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7433 if test -z "$lt_cv_path_MAGIC_CMD"; then
7434 if test -n "$ac_tool_prefix"; then
7435 echo "$as_me:$LINENO: checking for file" >&5
7436 echo $ECHO_N "checking for file... $ECHO_C" >&6
7437 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7445 lt_save_MAGIC_CMD="$MAGIC_CMD"
7446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7448 for ac_dir in $ac_dummy; do
7450 test -z "$ac_dir" && ac_dir=.
7451 if test -f $ac_dir/file; then
7452 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7453 if test -n "$file_magic_test_file"; then
7454 case $deplibs_check_method in
7456 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7459 $EGREP "$file_magic_regex" > /dev/null; then
7464 *** Warning: the command libtool uses to detect shared libraries,
7465 *** $file_magic_cmd, produces output that libtool cannot recognize.
7466 *** The result is that libtool may fail to recognize shared libraries
7467 *** as such. This will affect the creation of libtool libraries that
7468 *** depend on shared libraries, but programs linked with such libtool
7469 *** libraries will work regardless of this problem. Nevertheless, you
7470 *** may want to report the problem to your system manager and/or to
7471 *** bug-libtool@gnu.org
7481 MAGIC_CMD="$lt_save_MAGIC_CMD"
7486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7487 if test -n "$MAGIC_CMD"; then
7488 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7489 echo "${ECHO_T}$MAGIC_CMD" >&6
7491 echo "$as_me:$LINENO: result: no" >&5
7492 echo "${ECHO_T}no" >&6
7505 enable_win32_dll=yes
7507 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7508 if test "${enable_libtool_lock+set}" = set; then
7509 enableval="$enable_libtool_lock"
7512 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7515 # Check whether --with-pic or --without-pic was given.
7516 if test "${with_pic+set}" = set; then
7522 test -z "$pic_mode" && pic_mode=default
7524 # Use C for the default configuration in the libtool script
7528 ac_cpp='$CPP $CPPFLAGS'
7529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7534 # Source file extension for C test sources.
7537 # Object file extension for compiled C test sources.
7541 # Code to be used in simple compile tests
7542 lt_simple_compile_test_code="int some_variable = 0;\n"
7544 # Code to be used in simple link tests
7545 lt_simple_link_test_code='int main(){return(0);}\n'
7548 # If no C compiler was specified, use CC.
7551 # Allow CC to be a program name with arguments.
7555 # save warnings/boilerplate of simple test code
7556 ac_outfile=conftest.$ac_objext
7557 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7558 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7559 _lt_compiler_boilerplate=`cat conftest.err`
7562 ac_outfile=conftest.$ac_objext
7563 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7564 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7565 _lt_linker_boilerplate=`cat conftest.err`
7570 # Check for any special shared library compilation flags.
7573 if test "$GCC" = no; then
7576 lt_prog_cc_shlib='-belf'
7580 if test -n "$lt_prog_cc_shlib"; then
7581 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7582 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7583 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7585 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7586 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7587 lt_cv_prog_cc_can_build_shared=no
7593 # Check to make sure the static flag actually works.
7595 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7596 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7597 if test "${lt_prog_compiler_static_works+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 lt_prog_compiler_static_works=no
7601 save_LDFLAGS="$LDFLAGS"
7602 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7603 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7605 # The linker can only warn and ignore the option if not recognized
7606 # So say no if there are warnings
7607 if test -s conftest.err; then
7608 # Append any errors to the config.log.
7609 cat conftest.err 1>&5
7610 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7611 $SED '/^$/d' conftest.err >conftest.er2
7612 if diff conftest.exp conftest.er2 >/dev/null; then
7613 lt_prog_compiler_static_works=yes
7616 lt_prog_compiler_static_works=yes
7620 LDFLAGS="$save_LDFLAGS"
7623 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7624 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7626 if test x"$lt_prog_compiler_static_works" = xyes; then
7629 lt_prog_compiler_static=
7635 lt_prog_compiler_no_builtin_flag=
7637 if test "$GCC" = yes; then
7638 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7641 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7642 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7643 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 lt_cv_prog_compiler_rtti_exceptions=no
7647 ac_outfile=conftest.$ac_objext
7648 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7649 lt_compiler_flag="-fno-rtti -fno-exceptions"
7650 # Insert the option either (1) after the last *FLAGS variable, or
7651 # (2) before a word containing "conftest.", or (3) at the end.
7652 # Note that $ac_compile itself does not contain backslashes and begins
7653 # with a dollar sign (not a hyphen), so the echo should work correctly.
7654 # The option is referenced via a variable to avoid confusing sed.
7655 lt_compile=`echo "$ac_compile" | $SED \
7656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7658 -e 's:$: $lt_compiler_flag:'`
7659 (eval echo "\"\$as_me:7659: $lt_compile\"" >&5)
7660 (eval "$lt_compile" 2>conftest.err)
7662 cat conftest.err >&5
7663 echo "$as_me:7663: \$? = $ac_status" >&5
7664 if (exit $ac_status) && test -s "$ac_outfile"; then
7665 # The compiler can only warn and ignore the option if not recognized
7666 # So say no if there are warnings other than the usual output.
7667 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7668 $SED '/^$/d' conftest.err >conftest.er2
7669 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7670 lt_cv_prog_compiler_rtti_exceptions=yes
7676 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7677 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7679 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7680 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7687 lt_prog_compiler_wl=
7688 lt_prog_compiler_pic=
7689 lt_prog_compiler_static=
7691 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7692 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7694 if test "$GCC" = yes; then
7695 lt_prog_compiler_wl='-Wl,'
7696 lt_prog_compiler_static='-static'
7700 # All AIX code is PIC.
7701 if test "$host_cpu" = ia64; then
7702 # AIX 5 now supports IA64 processor
7703 lt_prog_compiler_static='-Bstatic'
7708 # FIXME: we need at least 68020 code to build shared libraries, but
7709 # adding the `-m68020' flag to GCC prevents building anything better,
7711 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7714 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7715 # PIC is the default for these OSes.
7718 mingw* | pw32* | os2*)
7719 # This hack is so that the source file can tell whether it is being
7720 # built for inclusion in a dll (and should export symbols for example).
7721 lt_prog_compiler_pic='-DDLL_EXPORT'
7724 darwin* | rhapsody*)
7725 # PIC is the default on this platform
7726 # Common symbols not allowed in MH_DYLIB files
7727 lt_prog_compiler_pic='-fno-common'
7731 # Just because we use GCC doesn't mean we suddenly get shared libraries
7732 # on systems that don't support them.
7733 lt_prog_compiler_can_build_shared=no
7738 if test -d /usr/nec; then
7739 lt_prog_compiler_pic=-Kconform_pic
7744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7751 lt_prog_compiler_pic='-fPIC'
7757 lt_prog_compiler_pic='-fPIC'
7761 # PORTME Check for flag to pass linker flags through the system compiler.
7764 lt_prog_compiler_wl='-Wl,'
7765 if test "$host_cpu" = ia64; then
7766 # AIX 5 now supports IA64 processor
7767 lt_prog_compiler_static='-Bstatic'
7769 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7773 # PIC is the default on this platform
7774 # Common symbols not allowed in MH_DYLIB files
7775 case $cc_basename in
7777 lt_prog_compiler_pic='-qnocommon'
7778 lt_prog_compiler_wl='-Wl,'
7783 mingw* | pw32* | os2*)
7784 # This hack is so that the source file can tell whether it is being
7785 # built for inclusion in a dll (and should export symbols for example).
7786 lt_prog_compiler_pic='-DDLL_EXPORT'
7789 hpux9* | hpux10* | hpux11*)
7790 lt_prog_compiler_wl='-Wl,'
7791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7798 lt_prog_compiler_pic='+Z'
7801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7802 lt_prog_compiler_static='${wl}-a ${wl}archive'
7805 irix5* | irix6* | nonstopux*)
7806 lt_prog_compiler_wl='-Wl,'
7807 # PIC (with -KPIC) is the default.
7808 lt_prog_compiler_static='-non_shared'
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-Bstatic'
7817 case $cc_basename in
7819 lt_prog_compiler_wl='-Wl,'
7820 lt_prog_compiler_pic='-KPIC'
7821 lt_prog_compiler_static='-static'
7823 pgcc* | pgf77* | pgf90* | pgf95*)
7824 # Portland Group compilers (*not* the Pentium gcc compiler,
7825 # which looks to be a dead project)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_pic='-fpic'
7828 lt_prog_compiler_static='-Bstatic'
7831 lt_prog_compiler_wl='-Wl,'
7832 # All Alpha code is PIC.
7833 lt_prog_compiler_static='-non_shared'
7838 osf3* | osf4* | osf5*)
7839 lt_prog_compiler_wl='-Wl,'
7840 # All OSF/1 code is PIC.
7841 lt_prog_compiler_static='-non_shared'
7845 lt_prog_compiler_pic='-Kpic'
7846 lt_prog_compiler_static='-dn'
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-Bstatic'
7852 case $cc_basename in
7854 lt_prog_compiler_wl='-Qoption ld ';;
7856 lt_prog_compiler_wl='-Wl,';;
7861 lt_prog_compiler_wl='-Qoption ld '
7862 lt_prog_compiler_pic='-PIC'
7863 lt_prog_compiler_static='-Bstatic'
7866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-Bstatic'
7873 if test -d /usr/nec ;then
7874 lt_prog_compiler_pic='-Kconform_pic'
7875 lt_prog_compiler_static='-Bstatic'
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_can_build_shared=no
7885 lt_prog_compiler_pic='-pic'
7886 lt_prog_compiler_static='-Bstatic'
7890 lt_prog_compiler_can_build_shared=no
7895 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7896 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7899 # Check to make sure the PIC flag actually works.
7901 if test -n "$lt_prog_compiler_pic"; then
7903 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7904 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7905 if test "${lt_prog_compiler_pic_works+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 lt_prog_compiler_pic_works=no
7909 ac_outfile=conftest.$ac_objext
7910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7912 # Insert the option either (1) after the last *FLAGS variable, or
7913 # (2) before a word containing "conftest.", or (3) at the end.
7914 # Note that $ac_compile itself does not contain backslashes and begins
7915 # with a dollar sign (not a hyphen), so the echo should work correctly.
7916 # The option is referenced via a variable to avoid confusing sed.
7917 lt_compile=`echo "$ac_compile" | $SED \
7918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7920 -e 's:$: $lt_compiler_flag:'`
7921 (eval echo "\"\$as_me:7921: $lt_compile\"" >&5)
7922 (eval "$lt_compile" 2>conftest.err)
7924 cat conftest.err >&5
7925 echo "$as_me:7925: \$? = $ac_status" >&5
7926 if (exit $ac_status) && test -s "$ac_outfile"; then
7927 # The compiler can only warn and ignore the option if not recognized
7928 # So say no if there are warnings other than the usual output.
7929 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7930 $SED '/^$/d' conftest.err >conftest.er2
7931 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7932 lt_prog_compiler_pic_works=yes
7938 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7939 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7941 if test x"$lt_prog_compiler_pic_works" = xyes; then
7942 case $lt_prog_compiler_pic in
7944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7947 lt_prog_compiler_pic=
7948 lt_prog_compiler_can_build_shared=no
7953 # For platforms which do not support PIC, -DPIC is meaningless:
7955 lt_prog_compiler_pic=
7958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7962 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7963 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7964 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 lt_cv_prog_compiler_c_o=no
7968 $rm -r conftest 2>/dev/null
7972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7974 lt_compiler_flag="-o out/conftest2.$ac_objext"
7975 # Insert the option either (1) after the last *FLAGS variable, or
7976 # (2) before a word containing "conftest.", or (3) at the end.
7977 # Note that $ac_compile itself does not contain backslashes and begins
7978 # with a dollar sign (not a hyphen), so the echo should work correctly.
7979 lt_compile=`echo "$ac_compile" | $SED \
7980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982 -e 's:$: $lt_compiler_flag:'`
7983 (eval echo "\"\$as_me:7983: $lt_compile\"" >&5)
7984 (eval "$lt_compile" 2>out/conftest.err)
7986 cat out/conftest.err >&5
7987 echo "$as_me:7987: \$? = $ac_status" >&5
7988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7990 # The compiler can only warn and ignore the option if not recognized
7991 # So say no if there are warnings
7992 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7993 $SED '/^$/d' out/conftest.err >out/conftest.er2
7994 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7995 lt_cv_prog_compiler_c_o=yes
8000 # SGI C++ compiler will create directory out/ii_files/ for
8001 # template instantiation
8002 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8003 $rm out/* && rmdir out
8009 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8010 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8013 hard_links="nottested"
8014 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8015 # do not overwrite the value of need_locks provided by the user
8016 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8017 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8022 ln conftest.a conftest.b 2>&5 || hard_links=no
8023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8024 echo "$as_me:$LINENO: result: $hard_links" >&5
8025 echo "${ECHO_T}$hard_links" >&6
8026 if test "$hard_links" = no; then
8027 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8028 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8035 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8036 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8039 allow_undefined_flag=
8040 enable_shared_with_static_runtimes=no
8042 archive_expsym_cmds=
8043 old_archive_From_new_cmds=
8044 old_archive_from_expsyms_cmds=
8045 export_dynamic_flag_spec=
8046 whole_archive_flag_spec=
8047 thread_safe_flag_spec=
8048 hardcode_libdir_flag_spec=
8049 hardcode_libdir_flag_spec_ld=
8050 hardcode_libdir_separator=
8053 hardcode_shlibpath_var=unsupported
8054 link_all_deplibs=unknown
8055 hardcode_automatic=no
8058 always_export_symbols=no
8059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8060 # include_expsyms should be a list of space-separated symbols to be *always*
8061 # included in the symbol list
8063 # exclude_expsyms can be an extended regexp of symbols to exclude
8064 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8066 # as well as any symbol that contains `d'.
8067 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8069 # platforms (ab)use it in PIC code, but their linkers get confused if
8070 # the symbol is explicitly referenced. Since portable code cannot
8071 # rely on this symbol name, it's probably fine to never include it in
8072 # preloaded symbol tables.
8073 extract_expsyms_cmds=
8074 # Just being paranoid about ensuring that cc_basename is set.
8075 for cc_temp in $compiler""; do
8077 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8078 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8083 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8086 cygwin* | mingw* | pw32*)
8087 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8088 # When not using gcc, we currently assume that we are using
8089 # Microsoft Visual C++.
8090 if test "$GCC" != yes; then
8100 if test "$with_gnu_ld" = yes; then
8101 # If archive_cmds runs LD, not CC, wlarc should be empty
8104 # Set some defaults for GNU ld with shared library support. These
8105 # are reset later if shared libraries are not supported. Putting them
8106 # here allows them to be overridden if necessary.
8107 runpath_var=LD_RUN_PATH
8108 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8109 export_dynamic_flag_spec='${wl}--export-dynamic'
8110 # ancient GNU ld didn't support --whole-archive et. al.
8111 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8114 whole_archive_flag_spec=
8116 supports_anon_versioning=no
8117 case `$LD -v 2>/dev/null` in
8118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8121 *\ 2.11.*) ;; # other 2.11 versions
8122 *) supports_anon_versioning=yes ;;
8125 # See if GNU ld supports shared libraries.
8127 aix3* | aix4* | aix5*)
8128 # On AIX/PPC, the GNU linker is very broken
8129 if test "$host_cpu" != ia64; then
8133 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8134 *** to be unable to reliably create shared libraries on AIX.
8135 *** Therefore, libtool is disabling shared libraries support. If you
8136 *** really care for shared libraries, you may want to modify your PATH
8137 *** so that a non-GNU linker is found, and then restart.
8144 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)'
8145 hardcode_libdir_flag_spec='-L$libdir'
8146 hardcode_minus_L=yes
8148 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8149 # that the semantics of dynamic libraries on AmigaOS, at least up
8150 # to version 4, is to share data among multiple programs linked
8151 # with the same dynamic library. Since this doesn't match the
8152 # behavior of shared libraries on other platforms, we can't use
8158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8159 allow_undefined_flag=unsupported
8160 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8161 # support --undefined. This deserves some investigation. FIXME
8162 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8168 cygwin* | mingw* | pw32*)
8169 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8170 # as there is no search path for DLLs.
8171 hardcode_libdir_flag_spec='-L$libdir'
8172 allow_undefined_flag=unsupported
8173 always_export_symbols=no
8174 enable_shared_with_static_runtimes=yes
8175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8177 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8179 # If the export-symbols file already is a .def file (1st line
8180 # is EXPORTS), use it as is; otherwise, prepend...
8181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8182 cp $export_symbols $output_objdir/$soname.def;
8184 echo EXPORTS > $output_objdir/$soname.def;
8185 cat $export_symbols >> $output_objdir/$soname.def;
8187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8196 case $cc_basename,$host_cpu in
8197 pgcc*) # Portland Group C compiler
8198 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'
8199 tmp_addflag=' $pic_flag'
8201 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8202 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'
8203 tmp_addflag=' $pic_flag -Mnomain' ;;
8204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8205 tmp_addflag=' -i_dynamic' ;;
8206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8207 tmp_addflag=' -i_dynamic -nofor_main' ;;
8208 ifc* | ifort*) # Intel Fortran compiler
8209 tmp_addflag=' -nofor_main' ;;
8211 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213 if test $supports_anon_versioning = yes; then
8214 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8216 $echo "local: *; };" >> $output_objdir/$libname.ver~
8217 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8226 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8235 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8240 *** create shared libraries on Solaris systems. Therefore, libtool
8241 *** is disabling shared libraries support. We urge you to upgrade GNU
8242 *** binutils to release 2.9.1 or newer. Another option is to modify
8243 *** your PATH or compiler configuration so that the native linker is
8244 *** used, and then restart.
8247 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8256 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8259 hardcode_shlibpath_var=no
8263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8272 if test "$ld_shlibs" = no; then
8274 hardcode_libdir_flag_spec=
8275 export_dynamic_flag_spec=
8276 whole_archive_flag_spec=
8279 # PORTME fill in a description of your system's linker (not GNU ld)
8282 allow_undefined_flag=unsupported
8283 always_export_symbols=yes
8284 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'
8285 # Note: this linker hardcodes the directories in LIBPATH if there
8286 # are no directories specified by -L.
8287 hardcode_minus_L=yes
8288 if test "$GCC" = yes && test -z "$link_static_flag"; then
8289 # Neither direct hardcoding nor static linking is supported with a
8291 hardcode_direct=unsupported
8296 if test "$host_cpu" = ia64; then
8297 # On IA64, the linker does run time linking by default, so we don't
8298 # have to do anything special.
8299 aix_use_runtimelinking=no
8300 exp_sym_flag='-Bexport'
8303 # If we're using GNU nm, then we don't want the "-C" option.
8304 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8305 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8306 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'
8308 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'
8310 aix_use_runtimelinking=no
8312 # Test if we are trying to use run time linking or normal
8313 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8314 # need to do runtime linking.
8315 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8316 for ld_flag in $LDFLAGS; do
8317 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8318 aix_use_runtimelinking=yes
8324 exp_sym_flag='-bexport'
8325 no_entry_flag='-bnoentry'
8328 # When large executables or shared objects are built, AIX ld can
8329 # have problems creating the table of contents. If linking a library
8330 # or program results in "error TOC overflow" add -mminimal-toc to
8331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8336 hardcode_libdir_separator=':'
8337 link_all_deplibs=yes
8339 if test "$GCC" = yes; then
8340 case $host_os in aix4.[012]|aix4.[012].*)
8341 # We only want to do this on AIX 4.2 and lower, the check
8342 # below for broken collect2 doesn't work under 4.3+
8343 collect2name=`${CC} -print-prog-name=collect2`
8344 if test -f "$collect2name" && \
8345 strings "$collect2name" | grep resolve_lib_name >/dev/null
8347 # We have reworked collect2
8350 # We have old collect2
8351 hardcode_direct=unsupported
8352 # It fails to find uninstalled libraries when the uninstalled
8353 # path is not listed in the libpath. Setting hardcode_minus_L
8354 # to unsupported forces relinking
8355 hardcode_minus_L=yes
8356 hardcode_libdir_flag_spec='-L$libdir'
8357 hardcode_libdir_separator=
8360 shared_flag='-shared'
8361 if test "$aix_use_runtimelinking" = yes; then
8362 shared_flag="$shared_flag "'${wl}-G'
8366 if test "$host_cpu" = ia64; then
8367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8368 # chokes on -Wl,-G. The following line is correct:
8371 if test "$aix_use_runtimelinking" = yes; then
8372 shared_flag='${wl}-G'
8374 shared_flag='${wl}-bM:SRE'
8379 # It seems that -bexpall does not export symbols beginning with
8380 # underscore (_), so it is better to generate a list of symbols to export.
8381 always_export_symbols=yes
8382 if test "$aix_use_runtimelinking" = yes; then
8383 # Warning - without using the other runtime loading flags (-brtl),
8384 # -berok will link without error, but may produce a broken library.
8385 allow_undefined_flag='-berok'
8386 # Determine the default libpath from the value encoded in an empty executable.
8387 cat >conftest.$ac_ext <<_ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8402 rm -f conftest.$ac_objext conftest$ac_exeext
8403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8404 (eval $ac_link) 2>conftest.er1
8406 grep -v '^ *+' conftest.er1 >conftest.err
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -z "$ac_c_werror_flag"
8412 || test ! -s conftest.err'
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; } &&
8418 { ac_try='test -s conftest$ac_exeext'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; }; then
8425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8427 # Check for a 64-bit object if we didn't find anything.
8428 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; }
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8435 rm -f conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext conftest.$ac_ext
8437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8440 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"
8442 if test "$host_cpu" = ia64; then
8443 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8444 allow_undefined_flag="-z nodefs"
8445 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"
8447 # Determine the default libpath from the value encoded in an empty executable.
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag"
8473 || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8488 # Check for a 64-bit object if we didn't find anything.
8489 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; }
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8496 rm -f conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8501 # Warning - without using the other run time loading flags,
8502 # -berok will link without error, but may produce a broken library.
8503 no_undefined_flag=' ${wl}-bernotok'
8504 allow_undefined_flag=' ${wl}-berok'
8505 # -bexpall does not export symbols beginning with underscore (_)
8506 always_export_symbols=yes
8507 # Exported symbols can be pulled into shared objects from archives
8508 whole_archive_flag_spec=' '
8509 archive_cmds_need_lc=yes
8510 # This is similar to how AIX traditionally builds its shared libraries.
8511 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'
8517 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)'
8518 hardcode_libdir_flag_spec='-L$libdir'
8519 hardcode_minus_L=yes
8520 # see comment about different semantics on the GNU ld section
8525 export_dynamic_flag_spec=-rdynamic
8528 cygwin* | mingw* | pw32*)
8529 # When not using gcc, we currently assume that we are using
8530 # Microsoft Visual C++.
8531 # hardcode_libdir_flag_spec is actually meaningless, as there is
8532 # no search path for DLLs.
8533 hardcode_libdir_flag_spec=' '
8534 allow_undefined_flag=unsupported
8535 # Tell ltmain to make .lib files, not .a files.
8537 # Tell ltmain to make .dll files, not .so files.
8539 # FIXME: Setting linknames here is a bad hack.
8540 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8541 # The linker will automatically build a .lib file if we build a DLL.
8542 old_archive_From_new_cmds='true'
8543 # FIXME: Should let the user specify the lib program.
8544 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8545 fix_srcfile_path='`cygpath -w "$srcfile"`'
8546 enable_shared_with_static_runtimes=yes
8549 darwin* | rhapsody*)
8551 rhapsody* | darwin1.[012])
8552 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8556 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8558 case ${MACOSX_DEPLOYMENT_TARGET} in
8560 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8563 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8569 archive_cmds_need_lc=no
8571 hardcode_automatic=yes
8572 hardcode_shlibpath_var=unsupported
8573 whole_archive_flag_spec=''
8574 link_all_deplibs=yes
8575 if test "$GCC" = yes ; then
8576 output_verbose_link_cmd='echo'
8577 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8578 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8579 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8580 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}'
8581 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}'
8583 case $cc_basename in
8585 output_verbose_link_cmd='echo'
8586 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8587 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8589 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}'
8590 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}'
8600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601 hardcode_libdir_flag_spec='-L$libdir'
8602 hardcode_shlibpath_var=no
8609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8610 # support. Future versions do this automatically, but an explicit c++rt0.o
8611 # does not break anything, and helps significantly (at the cost of a little
8614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8615 hardcode_libdir_flag_spec='-R$libdir'
8617 hardcode_shlibpath_var=no
8620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8624 hardcode_minus_L=yes
8625 hardcode_shlibpath_var=no
8628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8629 freebsd* | kfreebsd*-gnu | dragonfly*)
8630 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8631 hardcode_libdir_flag_spec='-R$libdir'
8633 hardcode_shlibpath_var=no
8637 if test "$GCC" = yes; then
8638 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'
8640 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'
8642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8643 hardcode_libdir_separator=:
8646 # hardcode_minus_L: Not really in the search PATH,
8647 # but as the default location of the library.
8648 hardcode_minus_L=yes
8649 export_dynamic_flag_spec='${wl}-E'
8653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8665 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8672 if test "$with_gnu_ld" = no; then
8675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8676 hardcode_libdir_flag_spec_ld='+b $libdir'
8677 hardcode_libdir_separator=:
8679 hardcode_shlibpath_var=no
8682 hardcode_libdir_flag_spec='-L$libdir'
8684 hardcode_shlibpath_var=no
8686 # hardcode_minus_L: Not really in the search PATH,
8687 # but as the default location of the library.
8688 hardcode_minus_L=yes
8691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8692 hardcode_libdir_separator=:
8694 export_dynamic_flag_spec='${wl}-E'
8696 # hardcode_minus_L: Not really in the search PATH,
8697 # but as the default location of the library.
8698 hardcode_minus_L=yes
8704 irix5* | irix6* | nonstopux*)
8705 if test "$GCC" = yes; then
8706 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'
8708 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'
8709 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712 hardcode_libdir_separator=:
8713 link_all_deplibs=yes
8717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8720 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8722 hardcode_libdir_flag_spec='-R$libdir'
8724 hardcode_shlibpath_var=no
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8731 hardcode_libdir_separator=:
8732 hardcode_shlibpath_var=no
8737 hardcode_shlibpath_var=no
8738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8742 export_dynamic_flag_spec='${wl}-E'
8745 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8747 hardcode_libdir_flag_spec='-R$libdir'
8750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8758 hardcode_libdir_flag_spec='-L$libdir'
8759 hardcode_minus_L=yes
8760 allow_undefined_flag=unsupported
8761 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'
8762 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8766 if test "$GCC" = yes; then
8767 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8768 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'
8770 allow_undefined_flag=' -expect_unresolved \*'
8771 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'
8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774 hardcode_libdir_separator=:
8777 osf4* | osf5*) # as osf3* with the addition of -msym flag
8778 if test "$GCC" = yes; then
8779 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8780 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'
8781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783 allow_undefined_flag=' -expect_unresolved \*'
8784 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'
8785 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8786 $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'
8788 # Both c and cxx compiler support -rpath directly
8789 hardcode_libdir_flag_spec='-rpath $libdir'
8791 hardcode_libdir_separator=:
8795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796 hardcode_shlibpath_var=no
8797 export_dynamic_flag_spec='${wl}-Bexport'
8798 runpath_var=LD_RUN_PATH
8799 hardcode_runpath_var=yes
8803 no_undefined_flag=' -z text'
8804 if test "$GCC" = yes; then
8806 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8807 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8808 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8811 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8813 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8815 hardcode_libdir_flag_spec='-R$libdir'
8816 hardcode_shlibpath_var=no
8818 solaris2.[0-5] | solaris2.[0-5].*) ;;
8820 # The compiler driver will combine linker options so we
8821 # cannot just pass the convience library names through
8822 # without $wl, iff we do not link with $LD.
8823 # Luckily, gcc supports the same syntax we need for Sun Studio.
8824 # Supported since Solaris 2.6 (maybe 2.5.1?)
8827 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8829 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' ;;
8832 link_all_deplibs=yes
8836 if test "x$host_vendor" = xsequent; then
8837 # Use $CC to link under sequent, because it throws in some extra .o
8838 # files that make .init and .fini sections work.
8839 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8843 hardcode_libdir_flag_spec='-L$libdir'
8845 hardcode_minus_L=yes
8846 hardcode_shlibpath_var=no
8850 case $host_vendor in
8852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_direct=yes # is this really true???
8856 ## LD is ld it makes a PLAMLIB
8857 ## CC just makes a GrossModule.
8858 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8859 reload_cmds='$CC -r -o $output$reload_objs'
8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8867 runpath_var='LD_RUN_PATH'
8868 hardcode_shlibpath_var=no
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_shlibpath_var=no
8874 export_dynamic_flag_spec='-Bexport'
8878 if test -d /usr/nec; then
8879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880 hardcode_shlibpath_var=no
8881 runpath_var=LD_RUN_PATH
8882 hardcode_runpath_var=yes
8888 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8891 hardcode_shlibpath_var=no
8892 hardcode_runpath_var=yes
8893 runpath_var=LD_RUN_PATH
8896 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8897 no_undefined_flag='${wl}-z ${wl}text'
8898 if test "$GCC" = yes; then
8899 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8901 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8903 runpath_var='LD_RUN_PATH'
8904 hardcode_shlibpath_var=no
8908 no_undefined_flag=' -z text'
8909 # $CC -shared without GNU ld will not create a library from C++
8910 # object files and a static libstdc++, better avoid it by now
8911 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8913 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8914 hardcode_libdir_flag_spec=
8915 hardcode_shlibpath_var=no
8916 runpath_var='LD_RUN_PATH'
8920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_libdir_flag_spec='-L$libdir'
8922 hardcode_shlibpath_var=no
8931 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8932 echo "${ECHO_T}$ld_shlibs" >&6
8933 test "$ld_shlibs" = no && can_build_shared=no
8935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8936 if test "$GCC" = yes; then
8937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8941 # Do we need to explicitly link libc?
8943 case "x$archive_cmds_need_lc" in
8945 # Assume -lc should be added
8946 archive_cmds_need_lc=yes
8948 if test "$enable_shared" = yes && test "$GCC" = yes; then
8949 case $archive_cmds in
8951 # FIXME: we may have to deal with multi-command sequences.
8954 # Test whether the compiler implicitly links with -lc since on some
8955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8956 # to ld, don't add -lc before -lgcc.
8957 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8958 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8960 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8963 (eval $ac_compile) 2>&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } 2>conftest.err; then
8969 libobjs=conftest.$ac_objext
8971 wl=$lt_prog_compiler_wl
8977 lt_save_allow_undefined_flag=$allow_undefined_flag
8978 allow_undefined_flag=
8979 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8980 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }
8985 archive_cmds_need_lc=no
8987 archive_cmds_need_lc=yes
8989 allow_undefined_flag=$lt_save_allow_undefined_flag
8991 cat conftest.err 1>&5
8994 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8995 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9002 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9005 libname_spec='lib$name'
9013 shlibpath_overrides_runpath=unknown
9015 dynamic_linker="$host_os ld.so"
9016 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9017 if test "$GCC" = yes; then
9018 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9019 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9020 # if the path contains ";" then we assume it to be the separator
9021 # otherwise default to the standard path separator (i.e. ":") - it is
9022 # assumed that no part of a normal pathname contains ";" but that should
9023 # okay in the real world where ";" in dirpaths is itself problematic.
9024 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9029 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9031 need_lib_prefix=unknown
9032 hardcode_into_libs=no
9034 # when you set need_version to no, make sure it does not cause -set_version
9035 # flags to be left without arguments
9036 need_version=unknown
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9042 shlibpath_var=LIBPATH
9044 # AIX 3 has no versioning support, so we append a major version to the name.
9045 soname_spec='${libname}${release}${shared_ext}$major'
9052 hardcode_into_libs=yes
9053 if test "$host_cpu" = ia64; then
9054 # AIX 5 supports IA64
9055 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9056 shlibpath_var=LD_LIBRARY_PATH
9058 # With GCC up to 2.95.x, collect2 would create an import file
9059 # for dependence libraries. The import file would start with
9060 # the line `#! .'. This would cause the generated library to
9061 # depend on `.', always an invalid library. This was fixed in
9062 # development snapshots of GCC prior to 3.0.
9064 aix4 | aix4.[01] | aix4.[01].*)
9065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9067 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9075 # soname into executable. Probably we can add versioning support to
9076 # collect2, so additional links can be useful in future.
9077 if test "$aix_use_runtimelinking" = yes; then
9078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9079 # instead of lib<name>.a to let people know that these are not
9080 # typical AIX shared libraries.
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 # We preserve .a as extension for shared libraries through AIX4.2
9084 # and later when we are not doing run time linking.
9085 library_names_spec='${libname}${release}.a $libname.a'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9088 shlibpath_var=LIBPATH
9093 library_names_spec='$libname.ixlibrary $libname.a'
9094 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9095 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'
9099 library_names_spec='${libname}${shared_ext}'
9100 dynamic_linker="$host_os ld.so"
9101 shlibpath_var=LIBRARY_PATH
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9113 # the default ld.so.conf also contains /usr/contrib/lib and
9114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9115 # libtool to hard-code these into programs
9118 cygwin* | mingw* | pw32*)
9119 version_type=windows
9124 case $GCC,$host_os in
9125 yes,cygwin* | yes,mingw* | yes,pw32*)
9126 library_names_spec='$libname.dll.a'
9127 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9128 postinstall_cmds='base_file=`basename \${file}`~
9129 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9130 dldir=$destdir/`dirname \$dlpath`~
9131 test -d \$dldir || mkdir -p \$dldir~
9132 $install_prog $dir/$dlname \$dldir/$dlname~
9133 chmod a+x \$dldir/$dlname'
9134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9135 dlpath=$dir/\$dldll~
9137 shlibpath_overrides_runpath=yes
9141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9143 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9146 # MinGW DLLs use traditional 'lib' prefix
9147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9148 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9149 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9150 # It is most probably a Windows format PATH printed by
9151 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9152 # path with ; separators, and with drive letters. We can handle the
9153 # drive letters (cygwin fileutils understands them), so leave them,
9154 # especially as we might pass files found there to a mingw objdump,
9155 # which wouldn't understand a cygwinified path. Ahh.
9156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9162 # pw32 DLLs use 'pw' prefix rather than 'lib'
9163 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9169 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9172 dynamic_linker='Win32 ld.exe'
9173 # FIXME: first we should search . and the directory the executable is in
9177 darwin* | rhapsody*)
9178 dynamic_linker="$host_os dyld"
9182 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9183 soname_spec='${libname}${release}${major}$shared_ext'
9184 shlibpath_overrides_runpath=yes
9185 shlibpath_var=DYLD_LIBRARY_PATH
9186 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9187 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9188 if test "$GCC" = yes; then
9189 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"`
9191 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 shlibpath_overrides_runpath=no
9217 hardcode_into_libs=yes
9218 dynamic_linker='GNU ld.so'
9221 freebsd* | dragonfly*)
9222 # DragonFly does not have aout. When/if they implement a new
9223 # versioning mechanism, adjust this.
9224 if test -x /usr/bin/objformat; then
9225 objformat=`/usr/bin/objformat`
9228 freebsd[123]*) objformat=aout ;;
9232 version_type=freebsd-$objformat
9233 case $version_type in
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9244 shlibpath_var=LD_LIBRARY_PATH
9247 shlibpath_overrides_runpath=yes
9249 freebsd3.[01]* | freebsdelf3.[01]*)
9250 shlibpath_overrides_runpath=yes
9251 hardcode_into_libs=yes
9254 shlibpath_overrides_runpath=no
9255 hardcode_into_libs=yes
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 hardcode_into_libs=yes
9270 hpux9* | hpux10* | hpux11*)
9271 # Give a soname corresponding to the major version so that dld.sl refuses to
9272 # link against other versions.
9279 hardcode_into_libs=yes
9280 dynamic_linker="$host_os dld.so"
9281 shlibpath_var=LD_LIBRARY_PATH
9282 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9285 if test "X$HPUX_IA64_MODE" = X32; then
9286 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9288 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9294 hardcode_into_libs=yes
9295 dynamic_linker="$host_os dld.sl"
9296 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9305 dynamic_linker="$host_os dld.sl"
9306 shlibpath_var=SHLIB_PATH
9307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9312 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9313 postinstall_cmds='chmod 555 $lib'
9316 irix5* | irix6* | nonstopux*)
9318 nonstopux*) version_type=nonstopux ;;
9320 if test "$lt_cv_prog_gnu_ld" = yes; then
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9331 irix5* | nonstopux*)
9335 case $LD in # libtool.m4 will add one of these switches to LD
9336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9337 libsuff= shlibsuff= libmagic=32-bit;;
9338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9339 libsuff=32 shlibsuff=N32 libmagic=N32;;
9340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9342 *) libsuff= shlibsuff= libmagic=never-match;;
9346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9347 shlibpath_overrides_runpath=no
9348 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9349 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9350 hardcode_into_libs=yes
9353 # No shared lib support for Linux oldld, aout, or coff.
9354 linux*oldld* | linux*aout* | linux*coff*)
9358 # This must be Linux ELF.
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 shlibpath_overrides_runpath=no
9368 # This implies no fast_install, which is unacceptable.
9369 # Some rework will be needed to allow for fast_install
9370 # before this can be enabled.
9371 hardcode_into_libs=yes
9373 # Append ld.so.conf contents to the search path
9374 if test -f /etc/ld.so.conf; then
9375 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' ' '`
9376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9379 # We used to test for /lib/ld.so.1 and disable shared libraries on
9380 # powerpc, because MkLinux only supported shared libraries with the
9381 # GNU dynamic linker. Since this was broken with cross compilers,
9382 # most powerpc-linux boxes support dynamic linking these days and
9383 # people can always --disable-shared, the test was removed, and we
9384 # assume the GNU/Linux dynamic linker is in use.
9385 dynamic_linker='GNU/Linux ld.so'
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath=no
9396 hardcode_into_libs=yes
9397 dynamic_linker='GNU ld.so'
9404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9407 dynamic_linker='NetBSD (a.out) ld.so'
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 dynamic_linker='NetBSD ld.elf_so'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=yes
9415 hardcode_into_libs=yes
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 shlibpath_overrides_runpath=yes
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes
9438 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9440 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9441 *) need_version=no ;;
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9448 openbsd2.[89] | openbsd2.[89].*)
9449 shlibpath_overrides_runpath=no
9452 shlibpath_overrides_runpath=yes
9456 shlibpath_overrides_runpath=yes
9461 libname_spec='$name'
9464 library_names_spec='$libname${shared_ext} $libname.a'
9465 dynamic_linker='OS/2 ld.exe'
9466 shlibpath_var=LIBPATH
9469 osf3* | osf4* | osf5*)
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9477 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9482 soname_spec='${libname}${release}${shared_ext}$major'
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484 shlibpath_var=LD_LIBRARY_PATH
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 shlibpath_overrides_runpath=yes
9495 hardcode_into_libs=yes
9496 # ldd complains unless libraries are executable
9497 postinstall_cmds='chmod +x $lib'
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 shlibpath_overrides_runpath=yes
9506 if test "$with_gnu_ld" = yes; then
9512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 case $host_vendor in
9519 shlibpath_overrides_runpath=no
9521 export_dynamic_flag_spec='${wl}-Blargedynsym'
9522 runpath_var=LD_RUN_PATH
9530 shlibpath_overrides_runpath=no
9531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9537 if test -d /usr/nec ;then
9539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9540 soname_spec='$libname${shared_ext}.$major'
9541 shlibpath_var=LD_LIBRARY_PATH
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 shlibpath_var=LD_LIBRARY_PATH
9556 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9557 echo "${ECHO_T}$dynamic_linker" >&6
9558 test "$dynamic_linker" = no && can_build_shared=no
9560 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9561 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9563 if test -n "$hardcode_libdir_flag_spec" || \
9564 test -n "$runpath_var" || \
9565 test "X$hardcode_automatic" = "Xyes" ; then
9567 # We can hardcode non-existant directories.
9568 if test "$hardcode_direct" != no &&
9569 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9570 # have to relink, otherwise we might link with an installed library
9571 # when we should be linking with a yet-to-be-installed one
9572 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9573 test "$hardcode_minus_L" != no; then
9574 # Linking always hardcodes the temporary library directory.
9575 hardcode_action=relink
9577 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9578 hardcode_action=immediate
9581 # We cannot hardcode anything, or else we can only hardcode existing
9583 hardcode_action=unsupported
9585 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9586 echo "${ECHO_T}$hardcode_action" >&6
9588 if test "$hardcode_action" = relink; then
9589 # Fast installation is not supported
9590 enable_fast_install=no
9591 elif test "$shlibpath_overrides_runpath" = yes ||
9592 test "$enable_shared" = no; then
9593 # Fast installation is not necessary
9594 enable_fast_install=needless
9599 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9600 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9601 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9602 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9603 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9604 echo "$as_me:$LINENO: result: yes" >&5
9605 echo "${ECHO_T}yes" >&6
9607 # FIXME - insert some real tests, host_os isn't really good enough
9610 if test -n "$STRIP" ; then
9611 striplib="$STRIP -x"
9612 echo "$as_me:$LINENO: result: yes" >&5
9613 echo "${ECHO_T}yes" >&6
9615 echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6
9620 echo "$as_me:$LINENO: result: no" >&5
9621 echo "${ECHO_T}no" >&6
9626 if test "x$enable_dlopen" != xyes; then
9627 enable_dlopen=unknown
9628 enable_dlopen_self=unknown
9629 enable_dlopen_self_static=unknown
9636 lt_cv_dlopen="load_add_on"
9638 lt_cv_dlopen_self=yes
9642 lt_cv_dlopen="LoadLibrary"
9647 lt_cv_dlopen="dlopen"
9652 # if libdl is installed we need to link against it
9653 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 ac_check_lib_save_LIBS=$LIBS
9660 cat >conftest.$ac_ext <<_ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9667 /* Override any gcc2 internal prototype to avoid an error. */
9671 /* We use char because int might match the return type of a gcc2
9672 builtin and then its argument prototype would still apply. */
9682 rm -f conftest.$ac_objext conftest$ac_exeext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684 (eval $ac_link) 2>conftest.er1
9686 grep -v '^ *+' conftest.er1 >conftest.err
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag"
9692 || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest$ac_exeext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_lib_dl_dlopen=yes
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9709 ac_cv_lib_dl_dlopen=no
9711 rm -f conftest.err conftest.$ac_objext \
9712 conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9715 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9716 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9717 if test $ac_cv_lib_dl_dlopen = yes; then
9718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9723 lt_cv_dlopen_self=yes
9730 echo "$as_me:$LINENO: checking for shl_load" >&5
9731 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9732 if test "${ac_cv_func_shl_load+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743 #define shl_load innocuous_shl_load
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char shl_load (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9751 # include <limits.h>
9753 # include <assert.h>
9758 /* Override any gcc2 internal prototype to avoid an error. */
9763 /* We use char because int might match the return type of a gcc2
9764 builtin and then its argument prototype would still apply. */
9766 /* The GNU C library defines this for functions which it implements
9767 to always fail with ENOSYS. Some functions are actually named
9768 something starting with __ and the normal name is an alias. */
9769 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9772 char (*f) () = shl_load;
9781 return f != shl_load;
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9788 (eval $ac_link) 2>conftest.er1
9790 grep -v '^ *+' conftest.er1 >conftest.err
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try='test -z "$ac_c_werror_flag"
9796 || test ! -s conftest.err'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try='test -s conftest$ac_exeext'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_cv_func_shl_load=yes
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_cv_func_shl_load=no
9815 rm -f conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9818 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9819 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9820 if test $ac_cv_func_shl_load = yes; then
9821 lt_cv_dlopen="shl_load"
9823 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9824 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9825 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9826 echo $ECHO_N "(cached) $ECHO_C" >&6
9828 ac_check_lib_save_LIBS=$LIBS
9830 cat >conftest.$ac_ext <<_ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9837 /* Override any gcc2 internal prototype to avoid an error. */
9841 /* We use char because int might match the return type of a gcc2
9842 builtin and then its argument prototype would still apply. */
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9854 (eval $ac_link) 2>conftest.er1
9856 grep -v '^ *+' conftest.er1 >conftest.err
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -z "$ac_c_werror_flag"
9862 || test ! -s conftest.err'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; }; then
9874 ac_cv_lib_dld_shl_load=yes
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9879 ac_cv_lib_dld_shl_load=no
9881 rm -f conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9883 LIBS=$ac_check_lib_save_LIBS
9885 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9886 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9887 if test $ac_cv_lib_dld_shl_load = yes; then
9888 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9890 echo "$as_me:$LINENO: checking for dlopen" >&5
9891 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9892 if test "${ac_cv_func_dlopen+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9903 #define dlopen innocuous_dlopen
9905 /* System header to define __stub macros and hopefully few prototypes,
9906 which can conflict with char dlopen (); below.
9907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9908 <limits.h> exists even on freestanding compilers. */
9911 # include <limits.h>
9913 # include <assert.h>
9918 /* Override any gcc2 internal prototype to avoid an error. */
9923 /* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9926 /* The GNU C library defines this for functions which it implements
9927 to always fail with ENOSYS. Some functions are actually named
9928 something starting with __ and the normal name is an alias. */
9929 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9932 char (*f) () = dlopen;
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag"
9956 || test ! -s conftest.err'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; } &&
9962 { ac_try='test -s conftest$ac_exeext'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9968 ac_cv_func_dlopen=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_cv_func_dlopen=no
9975 rm -f conftest.err conftest.$ac_objext \
9976 conftest$ac_exeext conftest.$ac_ext
9978 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9980 if test $ac_cv_func_dlopen = yes; then
9981 lt_cv_dlopen="dlopen"
9983 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 ac_check_lib_save_LIBS=$LIBS
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9997 /* Override any gcc2 internal prototype to avoid an error. */
10001 /* We use char because int might match the return type of a gcc2
10002 builtin and then its argument prototype would still apply. */
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>conftest.er1
10016 grep -v '^ *+' conftest.er1 >conftest.err
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag"
10022 || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest$ac_exeext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_lib_dl_dlopen=yes
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ac_cv_lib_dl_dlopen=no
10041 rm -f conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10045 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10046 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10047 if test $ac_cv_lib_dl_dlopen = yes; then
10048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10050 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10051 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10052 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 ac_check_lib_save_LIBS=$LIBS
10056 LIBS="-lsvld $LIBS"
10057 cat >conftest.$ac_ext <<_ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10064 /* Override any gcc2 internal prototype to avoid an error. */
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10083 grep -v '^ *+' conftest.er1 >conftest.err
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_lib_svld_dlopen=yes
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_lib_svld_dlopen=no
10108 rm -f conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_check_lib_save_LIBS
10112 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10113 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10114 if test $ac_cv_lib_svld_dlopen = yes; then
10115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10117 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10118 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10119 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 ac_check_lib_save_LIBS=$LIBS
10124 cat >conftest.$ac_ext <<_ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10131 /* Override any gcc2 internal prototype to avoid an error. */
10135 /* We use char because int might match the return type of a gcc2
10136 builtin and then its argument prototype would still apply. */
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10148 (eval $ac_link) 2>conftest.er1
10150 grep -v '^ *+' conftest.er1 >conftest.err
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -z "$ac_c_werror_flag"
10156 || test ! -s conftest.err'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; } &&
10162 { ac_try='test -s conftest$ac_exeext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_lib_dld_dld_link=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 ac_cv_lib_dld_dld_link=no
10175 rm -f conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10180 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10181 if test $ac_cv_lib_dld_dld_link = yes; then
10182 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10203 if test "x$lt_cv_dlopen" != xno; then
10209 case $lt_cv_dlopen in
10211 save_CPPFLAGS="$CPPFLAGS"
10212 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10214 save_LDFLAGS="$LDFLAGS"
10215 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10218 LIBS="$lt_cv_dlopen_libs $LIBS"
10220 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10221 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10222 if test "${lt_cv_dlopen_self+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10225 if test "$cross_compiling" = yes; then :
10226 lt_cv_dlopen_self=cross
10228 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10229 lt_status=$lt_dlunknown
10230 cat > conftest.$ac_ext <<EOF
10231 #line 10231 "configure"
10232 #include "confdefs.h"
10241 # define LT_DLGLOBAL RTLD_GLOBAL
10244 # define LT_DLGLOBAL DL_GLOBAL
10246 # define LT_DLGLOBAL 0
10250 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10251 find out it does not work in some platform. */
10252 #ifndef LT_DLLAZY_OR_NOW
10254 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10257 # define LT_DLLAZY_OR_NOW DL_LAZY
10260 # define LT_DLLAZY_OR_NOW RTLD_NOW
10263 # define LT_DLLAZY_OR_NOW DL_NOW
10265 # define LT_DLLAZY_OR_NOW 0
10273 extern "C" void exit (int);
10276 void fnord() { int i=42;}
10279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10280 int status = $lt_dlunknown;
10284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10286 /* dlclose (self); */
10292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10293 (eval $ac_link) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10297 (./conftest; exit; ) >&5 2>/dev/null
10299 case x$lt_status in
10300 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10301 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10302 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10305 # compilation failed
10306 lt_cv_dlopen_self=no
10313 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10314 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10316 if test "x$lt_cv_dlopen_self" = xyes; then
10317 LDFLAGS="$LDFLAGS $link_static_flag"
10318 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10319 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10320 if test "${lt_cv_dlopen_self_static+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 if test "$cross_compiling" = yes; then :
10324 lt_cv_dlopen_self_static=cross
10326 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10327 lt_status=$lt_dlunknown
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10339 # define LT_DLGLOBAL RTLD_GLOBAL
10342 # define LT_DLGLOBAL DL_GLOBAL
10344 # define LT_DLGLOBAL 0
10348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10349 find out it does not work in some platform. */
10350 #ifndef LT_DLLAZY_OR_NOW
10352 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10355 # define LT_DLLAZY_OR_NOW DL_LAZY
10358 # define LT_DLLAZY_OR_NOW RTLD_NOW
10361 # define LT_DLLAZY_OR_NOW DL_NOW
10363 # define LT_DLLAZY_OR_NOW 0
10371 extern "C" void exit (int);
10374 void fnord() { int i=42;}
10377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10378 int status = $lt_dlunknown;
10382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10383 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10384 /* dlclose (self); */
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10395 (./conftest; exit; ) >&5 2>/dev/null
10397 case x$lt_status in
10398 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10399 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10400 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10403 # compilation failed
10404 lt_cv_dlopen_self_static=no
10411 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10412 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10415 CPPFLAGS="$save_CPPFLAGS"
10416 LDFLAGS="$save_LDFLAGS"
10421 case $lt_cv_dlopen_self in
10422 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10423 *) enable_dlopen_self=unknown ;;
10426 case $lt_cv_dlopen_self_static in
10427 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10428 *) enable_dlopen_self_static=unknown ;;
10433 # Report which librarie types wil actually be built
10434 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10435 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10436 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10437 echo "${ECHO_T}$can_build_shared" >&6
10439 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10440 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10441 test "$can_build_shared" = "no" && enable_shared=no
10443 # On AIX, shared libraries and static libraries use the same namespace, and
10444 # are all built from PIC.
10447 test "$enable_shared" = yes && enable_static=no
10448 if test -n "$RANLIB"; then
10449 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10450 postinstall_cmds='$RANLIB $lib'
10455 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10456 test "$enable_shared" = yes && enable_static=no
10460 echo "$as_me:$LINENO: result: $enable_shared" >&5
10461 echo "${ECHO_T}$enable_shared" >&6
10463 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10464 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10465 # Make sure either enable_shared or enable_static is yes.
10466 test "$enable_shared" = yes || enable_static=yes
10467 echo "$as_me:$LINENO: result: $enable_static" >&5
10468 echo "${ECHO_T}$enable_static" >&6
10470 # The else clause should only fire when bootstrapping the
10471 # libtool distribution, otherwise you forgot to ship ltmain.sh
10472 # with your package, and you will get complaints that there are
10473 # no rules to generate ltmain.sh.
10474 if test -f "$ltmain"; then
10475 # See if we are running on zsh, and set the options which allow our commands through
10476 # without removal of \ escapes.
10477 if test -n "${ZSH_VERSION+set}" ; then
10478 setopt NO_GLOB_SUBST
10480 # Now quote all the things that may contain metacharacters while being
10481 # careful not to overquote the AC_SUBSTed values. We take copies of the
10482 # variables and quote the copies for generation of the libtool script.
10483 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10485 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10486 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10487 deplibs_check_method reload_flag reload_cmds need_locks \
10488 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10489 lt_cv_sys_global_symbol_to_c_name_address \
10490 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10491 old_postinstall_cmds old_postuninstall_cmds \
10495 lt_prog_compiler_wl \
10496 lt_prog_compiler_pic \
10497 lt_prog_compiler_static \
10498 lt_prog_compiler_no_builtin_flag \
10499 export_dynamic_flag_spec \
10500 thread_safe_flag_spec \
10501 whole_archive_flag_spec \
10502 enable_shared_with_static_runtimes \
10504 old_archive_from_new_cmds \
10509 compiler_lib_search_path \
10511 archive_expsym_cmds \
10513 postuninstall_cmds \
10514 old_archive_from_expsyms_cmds \
10515 allow_undefined_flag \
10516 no_undefined_flag \
10517 export_symbols_cmds \
10518 hardcode_libdir_flag_spec \
10519 hardcode_libdir_flag_spec_ld \
10520 hardcode_libdir_separator \
10521 hardcode_automatic \
10523 module_expsym_cmds \
10524 lt_cv_prog_compiler_c_o \
10526 include_expsyms; do
10529 old_archive_cmds | \
10530 old_archive_from_new_cmds | \
10532 archive_expsym_cmds | \
10534 module_expsym_cmds | \
10535 old_archive_from_expsyms_cmds | \
10536 export_symbols_cmds | \
10537 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10538 postinstall_cmds | postuninstall_cmds | \
10539 old_postinstall_cmds | old_postuninstall_cmds | \
10540 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10541 # Double-quote double-evaled strings.
10542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10545 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10551 *'\$0 --fallback-echo"')
10552 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10556 cfgfile="${ofile}T"
10557 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10559 { echo "$as_me:$LINENO: creating $ofile" >&5
10560 echo "$as_me: creating $ofile" >&6;}
10562 cat <<__EOF__ >> "$cfgfile"
10565 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10566 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10567 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10569 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10570 # Free Software Foundation, Inc.
10572 # This file is part of GNU Libtool:
10573 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10575 # This program is free software; you can redistribute it and/or modify
10576 # it under the terms of the GNU General Public License as published by
10577 # the Free Software Foundation; either version 2 of the License, or
10578 # (at your option) any later version.
10580 # This program is distributed in the hope that it will be useful, but
10581 # WITHOUT ANY WARRANTY; without even the implied warranty of
10582 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10583 # General Public License for more details.
10585 # You should have received a copy of the GNU General Public License
10586 # along with this program; if not, write to the Free Software
10587 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10589 # As a special exception to the GNU General Public License, if you
10590 # distribute this file as part of a program that contains a
10591 # configuration script generated by Autoconf, you may include it under
10592 # the same distribution terms that you use for the rest of that program.
10594 # A sed program that does not truncate output.
10597 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10598 Xsed="$SED -e 1s/^X//"
10600 # The HP-UX ksh and POSIX shell print the target directory to stdout
10601 # if CDPATH is set.
10602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10604 # The names of the tagged configurations supported by this script.
10607 # ### BEGIN LIBTOOL CONFIG
10609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10611 # Shell to use when invoking shell scripts.
10614 # Whether or not to build shared libraries.
10615 build_libtool_libs=$enable_shared
10617 # Whether or not to build static libraries.
10618 build_old_libs=$enable_static
10620 # Whether or not to add -lc for building shared libraries.
10621 build_libtool_need_lc=$archive_cmds_need_lc
10623 # Whether or not to disallow shared libs when runtime libs are static
10624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10626 # Whether or not to optimize for fast installation.
10627 fast_install=$enable_fast_install
10630 host_alias=$host_alias
10634 # The build system.
10635 build_alias=$build_alias
10639 # An echo program that does not interpret backslashes.
10644 AR_FLAGS=$lt_AR_FLAGS
10649 # A language-specific compiler.
10652 # Is the compiler the GNU C compiler?
10658 # The linker used to build libraries.
10661 # Whether we need hard or soft links.
10664 # A BSD-compatible nm program.
10667 # A symbol stripping program
10670 # Used to examine libraries when file_magic_cmd begins "file"
10671 MAGIC_CMD=$MAGIC_CMD
10673 # Used on cygwin: DLL creation program.
10676 # Used on cygwin: object dumper.
10679 # Used on cygwin: assembler.
10682 # The name of the directory that contains temporary libtool files.
10685 # How to create reloadable object files.
10686 reload_flag=$lt_reload_flag
10687 reload_cmds=$lt_reload_cmds
10689 # How to pass a linker flag through the compiler.
10690 wl=$lt_lt_prog_compiler_wl
10692 # Object file suffix (normally "o").
10693 objext="$ac_objext"
10695 # Old archive suffix (normally "a").
10698 # Shared library suffix (normally ".so").
10699 shrext_cmds='$shrext_cmds'
10701 # Executable file suffix (normally "").
10704 # Additional compiler flags for building library objects.
10705 pic_flag=$lt_lt_prog_compiler_pic
10708 # What is the maximum length of a command?
10709 max_cmd_len=$lt_cv_sys_max_cmd_len
10711 # Does compiler simultaneously support -c and -o options?
10712 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10714 # Must we lock files when doing compilation?
10715 need_locks=$lt_need_locks
10717 # Do we need the lib prefix for modules?
10718 need_lib_prefix=$need_lib_prefix
10720 # Do we need a version for libraries?
10721 need_version=$need_version
10723 # Whether dlopen is supported.
10724 dlopen_support=$enable_dlopen
10726 # Whether dlopen of programs is supported.
10727 dlopen_self=$enable_dlopen_self
10729 # Whether dlopen of statically linked programs is supported.
10730 dlopen_self_static=$enable_dlopen_self_static
10732 # Compiler flag to prevent dynamic linking.
10733 link_static_flag=$lt_lt_prog_compiler_static
10735 # Compiler flag to turn off builtin functions.
10736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10738 # Compiler flag to allow reflexive dlopens.
10739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10741 # Compiler flag to generate shared objects directly from archives.
10742 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10744 # Compiler flag to generate thread-safe objects.
10745 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10747 # Library versioning type.
10748 version_type=$version_type
10750 # Format of library name prefix.
10751 libname_spec=$lt_libname_spec
10753 # List of archive names. First name is the real one, the rest are links.
10754 # The last name is the one that the linker finds with -lNAME.
10755 library_names_spec=$lt_library_names_spec
10757 # The coded name of the library, if different from the real name.
10758 soname_spec=$lt_soname_spec
10760 # Commands used to build and install an old-style archive.
10762 old_archive_cmds=$lt_old_archive_cmds
10763 old_postinstall_cmds=$lt_old_postinstall_cmds
10764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10766 # Create an old-style archive from a shared archive.
10767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10769 # Create a temporary old-style archive to link instead of a shared archive.
10770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10772 # Commands used to build and install a shared archive.
10773 archive_cmds=$lt_archive_cmds
10774 archive_expsym_cmds=$lt_archive_expsym_cmds
10775 postinstall_cmds=$lt_postinstall_cmds
10776 postuninstall_cmds=$lt_postuninstall_cmds
10778 # Commands used to build a loadable module (assumed same as above if empty)
10779 module_cmds=$lt_module_cmds
10780 module_expsym_cmds=$lt_module_expsym_cmds
10782 # Commands to strip libraries.
10783 old_striplib=$lt_old_striplib
10784 striplib=$lt_striplib
10786 # Dependencies to place before the objects being linked to create a
10788 predep_objects=$lt_predep_objects
10790 # Dependencies to place after the objects being linked to create a
10792 postdep_objects=$lt_postdep_objects
10794 # Dependencies to place before the objects being linked to create a
10796 predeps=$lt_predeps
10798 # Dependencies to place after the objects being linked to create a
10800 postdeps=$lt_postdeps
10802 # The library search path used internally by the compiler when linking
10803 # a shared library.
10804 compiler_lib_search_path=$lt_compiler_lib_search_path
10806 # Method to check whether dependent libraries are shared objects.
10807 deplibs_check_method=$lt_deplibs_check_method
10809 # Command to use when deplibs_check_method == file_magic.
10810 file_magic_cmd=$lt_file_magic_cmd
10812 # Flag that allows shared libraries with undefined symbols to be built.
10813 allow_undefined_flag=$lt_allow_undefined_flag
10815 # Flag that forces no undefined symbols.
10816 no_undefined_flag=$lt_no_undefined_flag
10818 # Commands used to finish a libtool library installation in a directory.
10819 finish_cmds=$lt_finish_cmds
10821 # Same as above, but a single script fragment to be evaled but not shown.
10822 finish_eval=$lt_finish_eval
10824 # Take the output of nm and produce a listing of raw symbols and C names.
10825 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10827 # Transform the output of nm in a proper C declaration
10828 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10830 # Transform the output of nm in a C name address pair
10831 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10833 # This is the shared library runtime path variable.
10834 runpath_var=$runpath_var
10836 # This is the shared library path variable.
10837 shlibpath_var=$shlibpath_var
10839 # Is shlibpath searched before the hard-coded library search path?
10840 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10842 # How to hardcode a shared library path into an executable.
10843 hardcode_action=$hardcode_action
10845 # Whether we should hardcode library paths into libraries.
10846 hardcode_into_libs=$hardcode_into_libs
10848 # Flag to hardcode \$libdir into a binary during linking.
10849 # This must work even if \$libdir does not exist.
10850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10852 # If ld is used when linking, flag to hardcode \$libdir into
10853 # a binary during linking. This must work even if \$libdir does
10855 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10857 # Whether we need a single -rpath flag with a separated argument.
10858 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10860 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10861 # resulting binary.
10862 hardcode_direct=$hardcode_direct
10864 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10865 # resulting binary.
10866 hardcode_minus_L=$hardcode_minus_L
10868 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10869 # the resulting binary.
10870 hardcode_shlibpath_var=$hardcode_shlibpath_var
10872 # Set to yes if building a shared library automatically hardcodes DIR into the library
10873 # and all subsequent libraries and executables linked against it.
10874 hardcode_automatic=$hardcode_automatic
10876 # Variables whose values should be saved in libtool wrapper scripts and
10877 # restored at relink time.
10878 variables_saved_for_relink="$variables_saved_for_relink"
10880 # Whether libtool must link a program against all its dependency libraries.
10881 link_all_deplibs=$link_all_deplibs
10883 # Compile-time system search path for libraries
10884 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10886 # Run-time system search path for libraries
10887 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10889 # Fix the shell variable \$srcfile for the compiler.
10890 fix_srcfile_path="$fix_srcfile_path"
10892 # Set to yes if exported symbols are required.
10893 always_export_symbols=$always_export_symbols
10895 # The commands to list exported symbols.
10896 export_symbols_cmds=$lt_export_symbols_cmds
10898 # The commands to extract the exported symbol list from a shared archive.
10899 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10901 # Symbols that should not be listed in the preloaded symbols.
10902 exclude_expsyms=$lt_exclude_expsyms
10904 # Symbols that must always be exported.
10905 include_expsyms=$lt_include_expsyms
10907 # ### END LIBTOOL CONFIG
10914 cat <<\EOF >> "$cfgfile"
10916 # AIX sometimes has problems with the GCC collect2 program. For some
10917 # reason, if we set the COLLECT_NAMES environment variable, the problems
10918 # vanish in a puff of smoke.
10919 if test "X${COLLECT_NAMES+set}" != Xset; then
10921 export COLLECT_NAMES
10927 # We use sed instead of cat because bash on DJGPP gets confused if
10928 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10929 # text mode, it properly converts lines to CR/LF. This bash problem
10930 # is reportedly fixed, but why not run on old versions too?
10931 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10933 mv -f "$cfgfile" "$ofile" || \
10934 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10938 # If there is no Makefile yet, we rely on a make rule to execute
10939 # `config.status --recheck' to rerun these tests and create the
10940 # libtool script then.
10941 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10942 if test -f "$ltmain_in"; then
10943 test -f Makefile && make "$ltmain"
10949 ac_cpp='$CPP $CPPFLAGS'
10950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10957 # Check whether --with-tags or --without-tags was given.
10958 if test "${with_tags+set}" = set; then
10959 withval="$with_tags"
10960 tagnames="$withval"
10963 if test -f "$ltmain" && test -n "$tagnames"; then
10964 if test ! -f "${ofile}"; then
10965 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10966 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10969 if test -z "$LTCC"; then
10970 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10971 if test -z "$LTCC"; then
10972 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10973 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10976 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10980 # Extract list of available tagged configurations in $ofile.
10981 # Note that this assumes the entire list is on one line.
10982 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10985 for tagname in $tagnames; do
10987 # Check whether tagname contains only valid characters
10988 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10990 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10991 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10992 { (exit 1); exit 1; }; }
10996 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10998 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10999 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11000 { (exit 1); exit 1; }; }
11003 # Update the list of available tags.
11004 if test -n "$tagname"; then
11005 echo appending configuration tag \"$tagname\" to $ofile
11009 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11010 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11011 (test "X$CXX" != "Xg++"))) ; then
11019 if test -n "$F77" && test "X$F77" != "Xno"; then
11027 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11038 # Source file extension for RC test sources.
11041 # Object file extension for compiled RC test sources.
11045 # Code to be used in simple compile tests
11046 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11048 # Code to be used in simple link tests
11049 lt_simple_link_test_code="$lt_simple_compile_test_code"
11051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11053 # If no C compiler was specified, use CC.
11056 # Allow CC to be a program name with arguments.
11060 # save warnings/boilerplate of simple test code
11061 ac_outfile=conftest.$ac_objext
11062 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11064 _lt_compiler_boilerplate=`cat conftest.err`
11067 ac_outfile=conftest.$ac_objext
11068 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11070 _lt_linker_boilerplate=`cat conftest.err`
11074 # Allow CC to be a program name with arguments.
11079 for cc_temp in $compiler""; do
11081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11087 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11089 lt_cv_prog_compiler_c_o_RC=yes
11091 # The else clause should only fire when bootstrapping the
11092 # libtool distribution, otherwise you forgot to ship ltmain.sh
11093 # with your package, and you will get complaints that there are
11094 # no rules to generate ltmain.sh.
11095 if test -f "$ltmain"; then
11096 # See if we are running on zsh, and set the options which allow our commands through
11097 # without removal of \ escapes.
11098 if test -n "${ZSH_VERSION+set}" ; then
11099 setopt NO_GLOB_SUBST
11101 # Now quote all the things that may contain metacharacters while being
11102 # careful not to overquote the AC_SUBSTed values. We take copies of the
11103 # variables and quote the copies for generation of the libtool script.
11104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11108 deplibs_check_method reload_flag reload_cmds need_locks \
11109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11110 lt_cv_sys_global_symbol_to_c_name_address \
11111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11112 old_postinstall_cmds old_postuninstall_cmds \
11116 lt_prog_compiler_wl_RC \
11117 lt_prog_compiler_pic_RC \
11118 lt_prog_compiler_static_RC \
11119 lt_prog_compiler_no_builtin_flag_RC \
11120 export_dynamic_flag_spec_RC \
11121 thread_safe_flag_spec_RC \
11122 whole_archive_flag_spec_RC \
11123 enable_shared_with_static_runtimes_RC \
11124 old_archive_cmds_RC \
11125 old_archive_from_new_cmds_RC \
11126 predep_objects_RC \
11127 postdep_objects_RC \
11130 compiler_lib_search_path_RC \
11132 archive_expsym_cmds_RC \
11133 postinstall_cmds_RC \
11134 postuninstall_cmds_RC \
11135 old_archive_from_expsyms_cmds_RC \
11136 allow_undefined_flag_RC \
11137 no_undefined_flag_RC \
11138 export_symbols_cmds_RC \
11139 hardcode_libdir_flag_spec_RC \
11140 hardcode_libdir_flag_spec_ld_RC \
11141 hardcode_libdir_separator_RC \
11142 hardcode_automatic_RC \
11144 module_expsym_cmds_RC \
11145 lt_cv_prog_compiler_c_o_RC \
11146 exclude_expsyms_RC \
11147 include_expsyms_RC; do
11150 old_archive_cmds_RC | \
11151 old_archive_from_new_cmds_RC | \
11152 archive_cmds_RC | \
11153 archive_expsym_cmds_RC | \
11155 module_expsym_cmds_RC | \
11156 old_archive_from_expsyms_cmds_RC | \
11157 export_symbols_cmds_RC | \
11158 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11159 postinstall_cmds | postuninstall_cmds | \
11160 old_postinstall_cmds | old_postuninstall_cmds | \
11161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11162 # Double-quote double-evaled strings.
11163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11172 *'\$0 --fallback-echo"')
11173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11179 cat <<__EOF__ >> "$cfgfile"
11180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11184 # Shell to use when invoking shell scripts.
11187 # Whether or not to build shared libraries.
11188 build_libtool_libs=$enable_shared
11190 # Whether or not to build static libraries.
11191 build_old_libs=$enable_static
11193 # Whether or not to add -lc for building shared libraries.
11194 build_libtool_need_lc=$archive_cmds_need_lc_RC
11196 # Whether or not to disallow shared libs when runtime libs are static
11197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11199 # Whether or not to optimize for fast installation.
11200 fast_install=$enable_fast_install
11203 host_alias=$host_alias
11207 # The build system.
11208 build_alias=$build_alias
11212 # An echo program that does not interpret backslashes.
11217 AR_FLAGS=$lt_AR_FLAGS
11222 # A language-specific compiler.
11225 # Is the compiler the GNU C compiler?
11231 # The linker used to build libraries.
11234 # Whether we need hard or soft links.
11237 # A BSD-compatible nm program.
11240 # A symbol stripping program
11243 # Used to examine libraries when file_magic_cmd begins "file"
11244 MAGIC_CMD=$MAGIC_CMD
11246 # Used on cygwin: DLL creation program.
11249 # Used on cygwin: object dumper.
11252 # Used on cygwin: assembler.
11255 # The name of the directory that contains temporary libtool files.
11258 # How to create reloadable object files.
11259 reload_flag=$lt_reload_flag
11260 reload_cmds=$lt_reload_cmds
11262 # How to pass a linker flag through the compiler.
11263 wl=$lt_lt_prog_compiler_wl_RC
11265 # Object file suffix (normally "o").
11266 objext="$ac_objext"
11268 # Old archive suffix (normally "a").
11271 # Shared library suffix (normally ".so").
11272 shrext_cmds='$shrext_cmds'
11274 # Executable file suffix (normally "").
11277 # Additional compiler flags for building library objects.
11278 pic_flag=$lt_lt_prog_compiler_pic_RC
11281 # What is the maximum length of a command?
11282 max_cmd_len=$lt_cv_sys_max_cmd_len
11284 # Does compiler simultaneously support -c and -o options?
11285 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11287 # Must we lock files when doing compilation?
11288 need_locks=$lt_need_locks
11290 # Do we need the lib prefix for modules?
11291 need_lib_prefix=$need_lib_prefix
11293 # Do we need a version for libraries?
11294 need_version=$need_version
11296 # Whether dlopen is supported.
11297 dlopen_support=$enable_dlopen
11299 # Whether dlopen of programs is supported.
11300 dlopen_self=$enable_dlopen_self
11302 # Whether dlopen of statically linked programs is supported.
11303 dlopen_self_static=$enable_dlopen_self_static
11305 # Compiler flag to prevent dynamic linking.
11306 link_static_flag=$lt_lt_prog_compiler_static_RC
11308 # Compiler flag to turn off builtin functions.
11309 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11311 # Compiler flag to allow reflexive dlopens.
11312 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11314 # Compiler flag to generate shared objects directly from archives.
11315 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11317 # Compiler flag to generate thread-safe objects.
11318 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11320 # Library versioning type.
11321 version_type=$version_type
11323 # Format of library name prefix.
11324 libname_spec=$lt_libname_spec
11326 # List of archive names. First name is the real one, the rest are links.
11327 # The last name is the one that the linker finds with -lNAME.
11328 library_names_spec=$lt_library_names_spec
11330 # The coded name of the library, if different from the real name.
11331 soname_spec=$lt_soname_spec
11333 # Commands used to build and install an old-style archive.
11335 old_archive_cmds=$lt_old_archive_cmds_RC
11336 old_postinstall_cmds=$lt_old_postinstall_cmds
11337 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11339 # Create an old-style archive from a shared archive.
11340 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11342 # Create a temporary old-style archive to link instead of a shared archive.
11343 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11345 # Commands used to build and install a shared archive.
11346 archive_cmds=$lt_archive_cmds_RC
11347 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11348 postinstall_cmds=$lt_postinstall_cmds
11349 postuninstall_cmds=$lt_postuninstall_cmds
11351 # Commands used to build a loadable module (assumed same as above if empty)
11352 module_cmds=$lt_module_cmds_RC
11353 module_expsym_cmds=$lt_module_expsym_cmds_RC
11355 # Commands to strip libraries.
11356 old_striplib=$lt_old_striplib
11357 striplib=$lt_striplib
11359 # Dependencies to place before the objects being linked to create a
11361 predep_objects=$lt_predep_objects_RC
11363 # Dependencies to place after the objects being linked to create a
11365 postdep_objects=$lt_postdep_objects_RC
11367 # Dependencies to place before the objects being linked to create a
11369 predeps=$lt_predeps_RC
11371 # Dependencies to place after the objects being linked to create a
11373 postdeps=$lt_postdeps_RC
11375 # The library search path used internally by the compiler when linking
11376 # a shared library.
11377 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11379 # Method to check whether dependent libraries are shared objects.
11380 deplibs_check_method=$lt_deplibs_check_method
11382 # Command to use when deplibs_check_method == file_magic.
11383 file_magic_cmd=$lt_file_magic_cmd
11385 # Flag that allows shared libraries with undefined symbols to be built.
11386 allow_undefined_flag=$lt_allow_undefined_flag_RC
11388 # Flag that forces no undefined symbols.
11389 no_undefined_flag=$lt_no_undefined_flag_RC
11391 # Commands used to finish a libtool library installation in a directory.
11392 finish_cmds=$lt_finish_cmds
11394 # Same as above, but a single script fragment to be evaled but not shown.
11395 finish_eval=$lt_finish_eval
11397 # Take the output of nm and produce a listing of raw symbols and C names.
11398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11400 # Transform the output of nm in a proper C declaration
11401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11403 # Transform the output of nm in a C name address pair
11404 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11406 # This is the shared library runtime path variable.
11407 runpath_var=$runpath_var
11409 # This is the shared library path variable.
11410 shlibpath_var=$shlibpath_var
11412 # Is shlibpath searched before the hard-coded library search path?
11413 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11415 # How to hardcode a shared library path into an executable.
11416 hardcode_action=$hardcode_action_RC
11418 # Whether we should hardcode library paths into libraries.
11419 hardcode_into_libs=$hardcode_into_libs
11421 # Flag to hardcode \$libdir into a binary during linking.
11422 # This must work even if \$libdir does not exist.
11423 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11425 # If ld is used when linking, flag to hardcode \$libdir into
11426 # a binary during linking. This must work even if \$libdir does
11428 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11430 # Whether we need a single -rpath flag with a separated argument.
11431 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11433 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11434 # resulting binary.
11435 hardcode_direct=$hardcode_direct_RC
11437 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11438 # resulting binary.
11439 hardcode_minus_L=$hardcode_minus_L_RC
11441 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11442 # the resulting binary.
11443 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11445 # Set to yes if building a shared library automatically hardcodes DIR into the library
11446 # and all subsequent libraries and executables linked against it.
11447 hardcode_automatic=$hardcode_automatic_RC
11449 # Variables whose values should be saved in libtool wrapper scripts and
11450 # restored at relink time.
11451 variables_saved_for_relink="$variables_saved_for_relink"
11453 # Whether libtool must link a program against all its dependency libraries.
11454 link_all_deplibs=$link_all_deplibs_RC
11456 # Compile-time system search path for libraries
11457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11459 # Run-time system search path for libraries
11460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11462 # Fix the shell variable \$srcfile for the compiler.
11463 fix_srcfile_path="$fix_srcfile_path_RC"
11465 # Set to yes if exported symbols are required.
11466 always_export_symbols=$always_export_symbols_RC
11468 # The commands to list exported symbols.
11469 export_symbols_cmds=$lt_export_symbols_cmds_RC
11471 # The commands to extract the exported symbol list from a shared archive.
11472 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11474 # Symbols that should not be listed in the preloaded symbols.
11475 exclude_expsyms=$lt_exclude_expsyms_RC
11477 # Symbols that must always be exported.
11478 include_expsyms=$lt_include_expsyms_RC
11480 # ### END LIBTOOL TAG CONFIG: $tagname
11486 # If there is no Makefile yet, we rely on a make rule to execute
11487 # `config.status --recheck' to rerun these tests and create the
11488 # libtool script then.
11489 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11490 if test -f "$ltmain_in"; then
11491 test -f Makefile && make "$ltmain"
11497 ac_cpp='$CPP $CPPFLAGS'
11498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11507 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11508 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11509 { (exit 1); exit 1; }; }
11513 # Append the new tag name to the list of available tags.
11514 if test -n "$tagname" ; then
11515 available_tags="$available_tags $tagname"
11521 # Now substitute the updated list of available tags.
11522 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11523 mv "${ofile}T" "$ofile"
11527 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11528 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11529 { (exit 1); exit 1; }; }
11535 # This can be used to rebuild libtool when needed
11536 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11538 # Always use our own libtool.
11539 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11541 # Prevent multiple expansion
11553 if test $ol_enable_perl != no ; then
11554 # Extract the first word of "perl", so it can be a program name with args.
11555 set dummy perl; ac_word=$2
11556 echo "$as_me:$LINENO: checking for $ac_word" >&5
11557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11558 if test "${ac_cv_path_PERLBIN+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11584 PERLBIN=$ac_cv_path_PERLBIN
11586 if test -n "$PERLBIN"; then
11587 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11588 echo "${ECHO_T}$PERLBIN" >&6
11590 echo "$as_me:$LINENO: result: no" >&5
11591 echo "${ECHO_T}no" >&6
11595 if test "no$PERLBIN" = "no" ; then
11596 if test $ol_enable_perl = yes ; then
11597 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11598 echo "$as_me: error: could not locate perl" >&2;}
11599 { (exit 1); exit 1; }; }
11603 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11604 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11606 if test x"$ol_enable_perl" = "xyes" ; then
11607 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11609 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11616 ac_cpp='$CPP $CPPFLAGS'
11617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11620 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11621 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11622 # On Suns, sometimes $CPP names a directory.
11623 if test -n "$CPP" && test -d "$CPP"; then
11626 if test -z "$CPP"; then
11627 if test "${ac_cv_prog_CPP+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 # Double quotes because CPP needs to be expanded
11631 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11633 ac_preproc_ok=false
11634 for ac_c_preproc_warn_flag in '' yes
11636 # Use a header file that comes with gcc, so configuring glibc
11637 # with a fresh cross-compiler works.
11638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11639 # <limits.h> exists even on freestanding compilers.
11640 # On the NeXT, cc -E runs the code through the compiler's parser,
11641 # not just through cpp. "Syntax error" is here to catch this case.
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11649 # include <limits.h>
11651 # include <assert.h>
11655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11658 grep -v '^ *+' conftest.er1 >conftest.err
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } >/dev/null; then
11663 if test -s conftest.err; then
11664 ac_cpp_err=$ac_c_preproc_warn_flag
11665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11672 if test -z "$ac_cpp_err"; then
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 # Broken: fails on valid input.
11681 rm -f conftest.err conftest.$ac_ext
11683 # OK, works on sane cases. Now check whether non-existent headers
11684 # can be detected and how.
11685 cat >conftest.$ac_ext <<_ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 #include <ac_nonexistent.h>
11693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } >/dev/null; then
11701 if test -s conftest.err; then
11702 ac_cpp_err=$ac_c_preproc_warn_flag
11703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11710 if test -z "$ac_cpp_err"; then
11711 # Broken: success on invalid input.
11714 echo "$as_me: failed program was:" >&5
11715 sed 's/^/| /' conftest.$ac_ext >&5
11717 # Passes both tests.
11721 rm -f conftest.err conftest.$ac_ext
11724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11725 rm -f conftest.err conftest.$ac_ext
11726 if $ac_preproc_ok; then
11731 ac_cv_prog_CPP=$CPP
11734 CPP=$ac_cv_prog_CPP
11736 ac_cv_prog_CPP=$CPP
11738 echo "$as_me:$LINENO: result: $CPP" >&5
11739 echo "${ECHO_T}$CPP" >&6
11740 ac_preproc_ok=false
11741 for ac_c_preproc_warn_flag in '' yes
11743 # Use a header file that comes with gcc, so configuring glibc
11744 # with a fresh cross-compiler works.
11745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11746 # <limits.h> exists even on freestanding compilers.
11747 # On the NeXT, cc -E runs the code through the compiler's parser,
11748 # not just through cpp. "Syntax error" is here to catch this case.
11749 cat >conftest.$ac_ext <<_ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11756 # include <limits.h>
11758 # include <assert.h>
11762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } >/dev/null; then
11770 if test -s conftest.err; then
11771 ac_cpp_err=$ac_c_preproc_warn_flag
11772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11779 if test -z "$ac_cpp_err"; then
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 # Broken: fails on valid input.
11788 rm -f conftest.err conftest.$ac_ext
11790 # OK, works on sane cases. Now check whether non-existent headers
11791 # can be detected and how.
11792 cat >conftest.$ac_ext <<_ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 #include <ac_nonexistent.h>
11800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11803 grep -v '^ *+' conftest.er1 >conftest.err
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } >/dev/null; then
11808 if test -s conftest.err; then
11809 ac_cpp_err=$ac_c_preproc_warn_flag
11810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11817 if test -z "$ac_cpp_err"; then
11818 # Broken: success on invalid input.
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 # Passes both tests.
11828 rm -f conftest.err conftest.$ac_ext
11831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11832 rm -f conftest.err conftest.$ac_ext
11833 if $ac_preproc_ok; then
11836 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11837 See \`config.log' for more details." >&5
11838 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11839 See \`config.log' for more details." >&2;}
11840 { (exit 1); exit 1; }; }
11844 ac_cpp='$CPP $CPPFLAGS'
11845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11851 *mingw32* ) ac_cv_mingw32=yes ;;
11852 *cygwin* ) ac_cv_cygwin=yes ;;
11858 cat >>confdefs.h <<_ACEOF
11859 #define EXEEXT "${EXEEXT}"
11863 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11864 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11865 if test "${ac_cv_lib_be_be_app+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 ac_check_lib_save_LIBS=$LIBS
11869 LIBS="-lbe -lroot -lnet $LIBS"
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11877 /* Override any gcc2 internal prototype to avoid an error. */
11881 /* We use char because int might match the return type of a gcc2
11882 builtin and then its argument prototype would still apply. */
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894 (eval $ac_link) 2>conftest.er1
11896 grep -v '^ *+' conftest.er1 >conftest.err
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
11901 { ac_try='test -z "$ac_c_werror_flag"
11902 || test ! -s conftest.err'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } &&
11908 { ac_try='test -s conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_lib_be_be_app=yes
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_lib_be_be_app=no
11921 rm -f conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11925 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11926 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11927 if test $ac_cv_lib_be_be_app = yes; then
11928 LIBS="$LIBS -lbe -lroot -lnet"
11935 ac_cpp='$CPP $CPPFLAGS'
11936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11939 if test -n "$ac_tool_prefix"; then
11940 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11942 echo "$as_me:$LINENO: checking for $ac_word" >&5
11943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11944 if test "${ac_cv_prog_CC+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 if test -n "$CC"; then
11948 ac_cv_prog_CC="$CC" # Let the user override the test.
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11957 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 if test -n "$CC"; then
11968 echo "$as_me:$LINENO: result: $CC" >&5
11969 echo "${ECHO_T}$CC" >&6
11971 echo "$as_me:$LINENO: result: no" >&5
11972 echo "${ECHO_T}no" >&6
11976 if test -z "$ac_cv_prog_CC"; then
11978 # Extract the first word of "gcc", so it can be a program name with args.
11979 set dummy gcc; ac_word=$2
11980 echo "$as_me:$LINENO: checking for $ac_word" >&5
11981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 if test -n "$ac_ct_CC"; then
11986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11992 test -z "$as_dir" && as_dir=.
11993 for ac_exec_ext in '' $ac_executable_extensions; do
11994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995 ac_cv_prog_ac_ct_CC="gcc"
11996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12005 if test -n "$ac_ct_CC"; then
12006 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12007 echo "${ECHO_T}$ac_ct_CC" >&6
12009 echo "$as_me:$LINENO: result: no" >&5
12010 echo "${ECHO_T}no" >&6
12015 CC="$ac_cv_prog_CC"
12018 if test -z "$CC"; then
12019 if test -n "$ac_tool_prefix"; then
12020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12021 set dummy ${ac_tool_prefix}cc; ac_word=$2
12022 echo "$as_me:$LINENO: checking for $ac_word" >&5
12023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12024 if test "${ac_cv_prog_CC+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 if test -n "$CC"; then
12028 ac_cv_prog_CC="$CC" # Let the user override the test.
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_prog_CC="${ac_tool_prefix}cc"
12038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12047 if test -n "$CC"; then
12048 echo "$as_me:$LINENO: result: $CC" >&5
12049 echo "${ECHO_T}$CC" >&6
12051 echo "$as_me:$LINENO: result: no" >&5
12052 echo "${ECHO_T}no" >&6
12056 if test -z "$ac_cv_prog_CC"; then
12058 # Extract the first word of "cc", so it can be a program name with args.
12059 set dummy cc; ac_word=$2
12060 echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 if test -n "$ac_ct_CC"; then
12066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_prog_ac_ct_CC="cc"
12076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12085 if test -n "$ac_ct_CC"; then
12086 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12087 echo "${ECHO_T}$ac_ct_CC" >&6
12089 echo "$as_me:$LINENO: result: no" >&5
12090 echo "${ECHO_T}no" >&6
12095 CC="$ac_cv_prog_CC"
12099 if test -z "$CC"; then
12100 # Extract the first word of "cc", so it can be a program name with args.
12101 set dummy cc; ac_word=$2
12102 echo "$as_me:$LINENO: checking for $ac_word" >&5
12103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12104 if test "${ac_cv_prog_CC+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 if test -n "$CC"; then
12108 ac_cv_prog_CC="$CC" # Let the user override the test.
12110 ac_prog_rejected=no
12111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12115 test -z "$as_dir" && as_dir=.
12116 for ac_exec_ext in '' $ac_executable_extensions; do
12117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12119 ac_prog_rejected=yes
12123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 if test $ac_prog_rejected = yes; then
12130 # We found a bogon in the path, so make sure we never use it.
12131 set dummy $ac_cv_prog_CC
12133 if test $# != 0; then
12134 # We chose a different compiler from the bogus one.
12135 # However, it has the same basename, so the bogon will be chosen
12136 # first if we set CC to just the basename; use the full file name.
12138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12144 if test -n "$CC"; then
12145 echo "$as_me:$LINENO: result: $CC" >&5
12146 echo "${ECHO_T}$CC" >&6
12148 echo "$as_me:$LINENO: result: no" >&5
12149 echo "${ECHO_T}no" >&6
12153 if test -z "$CC"; then
12154 if test -n "$ac_tool_prefix"; then
12157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12159 echo "$as_me:$LINENO: checking for $ac_word" >&5
12160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12161 if test "${ac_cv_prog_CC+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 if test -n "$CC"; then
12165 ac_cv_prog_CC="$CC" # Let the user override the test.
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 if test -n "$CC"; then
12185 echo "$as_me:$LINENO: result: $CC" >&5
12186 echo "${ECHO_T}$CC" >&6
12188 echo "$as_me:$LINENO: result: no" >&5
12189 echo "${ECHO_T}no" >&6
12192 test -n "$CC" && break
12195 if test -z "$CC"; then
12199 # Extract the first word of "$ac_prog", so it can be a program name with args.
12200 set dummy $ac_prog; ac_word=$2
12201 echo "$as_me:$LINENO: checking for $ac_word" >&5
12202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 if test -n "$ac_ct_CC"; then
12207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216 ac_cv_prog_ac_ct_CC="$ac_prog"
12217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12226 if test -n "$ac_ct_CC"; then
12227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12228 echo "${ECHO_T}$ac_ct_CC" >&6
12230 echo "$as_me:$LINENO: result: no" >&5
12231 echo "${ECHO_T}no" >&6
12234 test -n "$ac_ct_CC" && break
12243 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12244 See \`config.log' for more details." >&5
12245 echo "$as_me: error: no acceptable C compiler found in \$PATH
12246 See \`config.log' for more details." >&2;}
12247 { (exit 1); exit 1; }; }
12249 # Provide some information about the compiler.
12250 echo "$as_me:$LINENO:" \
12251 "checking for C compiler version" >&5
12252 ac_compiler=`set X $ac_compile; echo $2`
12253 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12254 (eval $ac_compiler --version </dev/null >&5) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }
12258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12259 (eval $ac_compiler -v </dev/null >&5) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }
12263 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12264 (eval $ac_compiler -V </dev/null >&5) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }
12269 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12270 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12271 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12292 rm -f conftest.$ac_objext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_c_werror_flag"
12302 || test ! -s conftest.err'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_compiler_gnu=yes
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12325 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12326 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12327 GCC=`test $ac_compiler_gnu = yes && echo yes`
12328 ac_test_CFLAGS=${CFLAGS+set}
12329 ac_save_CFLAGS=$CFLAGS
12331 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12332 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12333 if test "${ac_cv_prog_cc_g+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12351 rm -f conftest.$ac_objext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12353 (eval $ac_compile) 2>conftest.er1
12355 grep -v '^ *+' conftest.er1 >conftest.err
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -z "$ac_c_werror_flag"
12361 || test ! -s conftest.err'
12362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363 (eval $ac_try) 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; } &&
12367 { ac_try='test -s conftest.$ac_objext'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_cv_prog_cc_g=yes
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12384 if test "$ac_test_CFLAGS" = set; then
12385 CFLAGS=$ac_save_CFLAGS
12386 elif test $ac_cv_prog_cc_g = yes; then
12387 if test "$GCC" = yes; then
12393 if test "$GCC" = yes; then
12399 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12400 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12401 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 ac_cv_prog_cc_stdc=no
12406 cat >conftest.$ac_ext <<_ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 #include <stdarg.h>
12414 #include <sys/types.h>
12415 #include <sys/stat.h>
12416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12417 struct buf { int x; };
12418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12419 static char *e (p, i)
12425 static char *f (char * (*g) (char **, int), char **p, ...)
12430 s = g (p, va_arg (v,int));
12435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12436 function prototypes and stuff, but not '\xHH' hex character constants.
12437 These don't provoke an error unfortunately, instead are silently treated
12438 as 'x'. The following induces an error, until -std1 is added to get
12439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12440 array size at least. It's necessary to write '\x00'==0 to get something
12441 that's true only with -std1. */
12442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12444 int test (int i, double x);
12445 struct s1 {int (*f) (int a);};
12446 struct s2 {int (*f) (double a);};
12447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12458 # Don't try gcc -ansi; that turns off useful extensions and
12459 # breaks some systems' header files.
12460 # AIX -qlanglvl=ansi
12461 # Ultrix and OSF/1 -std1
12462 # HP-UX 10.20 and later -Ae
12463 # HP-UX older versions -Aa -D_HPUX_SOURCE
12464 # SVR4 -Xc -D__EXTENSIONS__
12465 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12467 CC="$ac_save_CC $ac_arg"
12468 rm -f conftest.$ac_objext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>conftest.er1
12472 grep -v '^ *+' conftest.er1 >conftest.err
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest.$ac_objext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 ac_cv_prog_cc_stdc=$ac_arg
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12497 rm -f conftest.err conftest.$ac_objext
12499 rm -f conftest.$ac_ext conftest.$ac_objext
12504 case "x$ac_cv_prog_cc_stdc" in
12506 echo "$as_me:$LINENO: result: none needed" >&5
12507 echo "${ECHO_T}none needed" >&6 ;;
12509 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12510 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12511 CC="$CC $ac_cv_prog_cc_stdc" ;;
12514 # Some people use a C++ compiler to compile C. Since we use `exit',
12515 # in C++ we need to declare it. In case someone uses the same compiler
12516 # for both compiling C and C++ we need to have the C++ compiler decide
12517 # the declaration of exit, since it's the most demanding environment.
12518 cat >conftest.$ac_ext <<_ACEOF
12519 #ifndef __cplusplus
12523 rm -f conftest.$ac_objext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525 (eval $ac_compile) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest.$ac_objext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 for ac_declaration in \
12547 'extern "C" void std::exit (int) throw (); using std::exit;' \
12548 'extern "C" void std::exit (int); using std::exit;' \
12549 'extern "C" void exit (int) throw ();' \
12550 'extern "C" void exit (int);' \
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 #include <stdlib.h>
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616 (eval $ac_compile) 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_c_werror_flag"
12624 || test ! -s conftest.err'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 if test -n "$ac_declaration"; then
12646 echo '#ifdef __cplusplus' >>confdefs.h
12647 echo $ac_declaration >>confdefs.h
12648 echo '#endif' >>confdefs.h
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12658 ac_cpp='$CPP $CPPFLAGS'
12659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663 depcc="$CC" am_compiler_list=
12665 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12666 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12667 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12671 # We make a subdir and do the tests there. Otherwise we can end up
12672 # making bogus files that we don't know about and never remove. For
12673 # instance it was reported that on HP-UX the gcc test will end up
12674 # making a dummy file named `D' -- because `-MD' means `put the output
12677 # Copy depcomp to subdir because otherwise we won't find it if we're
12678 # using a relative directory.
12679 cp "$am_depcomp" conftest.dir
12681 # We will build objects and dependencies in a subdirectory because
12682 # it helps to detect inapplicable dependency modes. For instance
12683 # both Tru64's cc and ICC support -MD to output dependencies as a
12684 # side effect of compilation, but ICC will put the dependencies in
12685 # the current directory while Tru64 will put them in the object
12689 am_cv_CC_dependencies_compiler_type=none
12690 if test "$am_compiler_list" = ""; then
12691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12693 for depmode in $am_compiler_list; do
12694 # Setup a source with many dependencies, because some compilers
12695 # like to wrap large dependency lists on column 80 (with \), and
12696 # we should not choose a depcomp mode which is confused by this.
12698 # We need to recreate these files for each test, as the compiler may
12699 # overwrite some of them when testing with obscure command lines.
12700 # This happens at least with the AIX C compiler.
12702 for i in 1 2 3 4 5 6; do
12703 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12704 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12705 # Solaris 8's {/usr,}/bin/sh.
12706 touch sub/conftst$i.h
12708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12712 # after this tag, mechanisms are not by side-effect, so they'll
12713 # only be used when explicitly requested
12714 if test "x$enable_dependency_tracking" = xyes; then
12722 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12723 # mode. It turns out that the SunPro C++ compiler does not properly
12724 # handle `-M -o', and we need to detect this.
12725 if depmode=$depmode \
12726 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12727 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12728 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12729 >/dev/null 2>conftest.err &&
12730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12731 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12733 # icc doesn't choke on unknown options, it will just issue warnings
12734 # or remarks (even with -Werror). So we grep stderr for any message
12735 # that says an option was ignored or not supported.
12736 # When given -MP, icc 7.0 and 7.1 complain thusly:
12737 # icc: Command line warning: ignoring option '-M'; no argument required
12738 # The diagnosis changed in icc 8.0:
12739 # icc: Command line remark: option '-MP' not supported
12740 if (grep 'ignoring option' conftest.err ||
12741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12742 am_cv_CC_dependencies_compiler_type=$depmode
12749 rm -rf conftest.dir
12751 am_cv_CC_dependencies_compiler_type=none
12755 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12756 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12757 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12762 test "x$enable_dependency_tracking" != xno \
12763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12764 am__fastdepCC_TRUE=
12765 am__fastdepCC_FALSE='#'
12767 am__fastdepCC_TRUE='#'
12768 am__fastdepCC_FALSE=
12772 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12773 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12774 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12775 { (exit 1); exit 1; }; }
12778 # test for make depend flag
12781 if test -z "${MKDEP}"; then
12782 OL_MKDEP="${CC-cc}"
12783 if test -z "${MKDEP_FLAGS}"; then
12784 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12785 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12786 if test "${ol_cv_mkdep+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 for flag in "-M" "-xM"; do
12792 cat > conftest.c <<EOF
12795 if { ac_try='$OL_MKDEP $flag conftest.c'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; } \
12801 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12803 if test ! -f conftest."${ac_object}" ; then
12805 OL_MKDEP_FLAGS="$flag"
12813 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12814 echo "${ECHO_T}$ol_cv_mkdep" >&6
12815 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12818 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12822 OL_MKDEP="${MKDEP}"
12823 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12828 if test "${ol_cv_mkdep}" = no ; then
12829 # this will soon become an error
12830 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12831 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12834 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12835 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12836 if test "${ac_cv_lib_s_afopen+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 ac_check_lib_save_LIBS=$LIBS
12841 cat >conftest.$ac_ext <<_ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12848 /* Override any gcc2 internal prototype to avoid an error. */
12852 /* We use char because int might match the return type of a gcc2
12853 builtin and then its argument prototype would still apply. */
12863 rm -f conftest.$ac_objext conftest$ac_exeext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865 (eval $ac_link) 2>conftest.er1
12867 grep -v '^ *+' conftest.er1 >conftest.err
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try='test -z "$ac_c_werror_flag"
12873 || test ! -s conftest.err'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } &&
12879 { ac_try='test -s conftest$ac_exeext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 ac_cv_lib_s_afopen=yes
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12890 ac_cv_lib_s_afopen=no
12892 rm -f conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 LIBS=$ac_check_lib_save_LIBS
12896 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12897 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12898 if test $ac_cv_lib_s_afopen = yes; then
12902 cat >>confdefs.h <<\_ACEOF
12903 #define HAVE_AIX_SECURITY 1
12912 ac_cv_func_getopt=no
12914 cat >>confdefs.h <<\_ACEOF
12915 #define BOTH_STRINGS_H 1
12922 WITH_MODULES_ENABLED=no
12923 if test $ol_enable_modules != no ; then
12925 for ac_header in ltdl.h
12927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12929 echo "$as_me:$LINENO: checking for $ac_header" >&5
12930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12937 # Is the header compilable?
12938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12946 $ac_includes_default
12947 #include <$ac_header>
12949 rm -f conftest.$ac_objext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951 (eval $ac_compile) 2>conftest.er1
12953 grep -v '^ *+' conftest.er1 >conftest.err
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest.$ac_objext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 ac_header_compiler=yes
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12976 ac_header_compiler=no
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12980 echo "${ECHO_T}$ac_header_compiler" >&6
12982 # Is the header present?
12983 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991 #include <$ac_header>
12993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12996 grep -v '^ *+' conftest.er1 >conftest.err
12998 cat conftest.err >&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } >/dev/null; then
13001 if test -s conftest.err; then
13002 ac_cpp_err=$ac_c_preproc_warn_flag
13003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13010 if test -z "$ac_cpp_err"; then
13011 ac_header_preproc=yes
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ac_header_preproc=no
13018 rm -f conftest.err conftest.$ac_ext
13019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13020 echo "${ECHO_T}$ac_header_preproc" >&6
13022 # So? What about this header?
13023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13029 ac_header_preproc=yes
13032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13046 ## --------------------------------------------- ##
13047 ## Report this to <http://www.openldap.org/its/> ##
13048 ## --------------------------------------------- ##
13051 sed "s/^/$as_me: WARNING: /" >&2
13054 echo "$as_me:$LINENO: checking for $ac_header" >&5
13055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 eval "$as_ac_Header=\$ac_header_preproc"
13061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13066 cat >>confdefs.h <<_ACEOF
13067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13075 if test $ac_cv_header_ltdl_h = no ; then
13076 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13077 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13078 { (exit 1); exit 1; }; }
13081 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13082 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13083 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lltdl $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13095 /* Override any gcc2 internal prototype to avoid an error. */
13099 /* We use char because int might match the return type of a gcc2
13100 builtin and then its argument prototype would still apply. */
13110 rm -f conftest.$ac_objext conftest$ac_exeext
13111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13112 (eval $ac_link) 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_c_werror_flag"
13120 || test ! -s conftest.err'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 ac_cv_lib_ltdl_lt_dlinit=yes
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13137 ac_cv_lib_ltdl_lt_dlinit=no
13139 rm -f conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13143 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13144 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13145 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13147 MODULES_LIBS=-lltdl
13149 cat >>confdefs.h <<\_ACEOF
13150 #define HAVE_LIBLTDL 1
13157 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13158 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13159 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13160 { (exit 1); exit 1; }; }
13162 ol_link_modules=yes
13163 WITH_MODULES_ENABLED=yes
13166 for i in $Backends; do
13167 eval "ol_tmp=\$ol_enable_$i"
13168 if test $ol_tmp = mod ; then
13169 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13170 echo "$as_me: WARNING: building static $i backend" >&2;}
13171 eval "ol_enable_$i=yes"
13174 for i in $Overlays; do
13175 eval "ol_tmp=\$ol_enable_$i"
13176 if test $ol_tmp = mod ; then
13177 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13178 echo "$as_me: WARNING: building static $i overlay" >&2;}
13179 eval "ol_enable_$i=yes"
13185 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13186 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13187 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13199 #include <__ASCII__/generate_error.h>
13203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13206 grep -v '^ *+' conftest.er1 >conftest.err
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } >/dev/null; then
13211 if test -s conftest.err; then
13212 ac_cpp_err=$ac_c_preproc_warn_flag
13213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13220 if test -z "$ac_cpp_err"; then
13221 ol_cv_cpp_ebcdic=yes
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ol_cv_cpp_ebcdic=no
13228 rm -f conftest.err conftest.$ac_ext
13230 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13231 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13232 if test $ol_cv_cpp_ebcdic = yes ; then
13234 cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_EBCDIC 1
13240 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13241 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13242 if test "${ol_cv_header_stdc+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 #include <stdlib.h>
13252 #include <stdarg.h>
13253 #include <string.h>
13256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } >/dev/null; then
13264 if test -s conftest.err; then
13265 ac_cpp_err=$ac_c_preproc_warn_flag
13266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13273 if test -z "$ac_cpp_err"; then
13274 ol_cv_header_stdc=yes
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ol_cv_header_stdc=no
13281 rm -f conftest.err conftest.$ac_ext
13283 if test $ol_cv_header_stdc = yes; then
13284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <string.h>
13294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13295 $EGREP "memchr" >/dev/null 2>&1; then
13298 ol_cv_header_stdc=no
13304 if test $ol_cv_header_stdc = yes; then
13305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13306 cat >conftest.$ac_ext <<_ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <stdlib.h>
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316 $EGREP "free" >/dev/null 2>&1; then
13319 ol_cv_header_stdc=no
13325 if test $ol_cv_header_stdc = yes; then
13326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13327 if test "$cross_compiling" = yes; then
13330 cat >conftest.$ac_ext <<_ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13337 #ifndef HAVE_EBCDIC
13338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13341 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13342 || ('j' <= (c) && (c) <= 'r') \
13343 || ('s' <= (c) && (c) <= 'z'))
13344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13347 int main () { int i; for (i = 0; i < 256; i++)
13348 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13352 rm -f conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354 (eval $ac_link) 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13365 echo "$as_me: program exited with status $ac_status" >&5
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 ( exit $ac_status )
13370 ol_cv_header_stdc=no
13372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13376 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13377 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13378 if test $ol_cv_header_stdc = yes; then
13379 cat >>confdefs.h <<\_ACEOF
13380 #define STDC_HEADERS 1
13384 ac_cv_header_stdc=disable
13387 if test $ol_cv_header_stdc != yes; then
13388 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13389 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13397 ac_header_dirent=no
13398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13399 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13400 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13401 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <sys/types.h>
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425 (eval $ac_compile) 2>conftest.er1
13427 grep -v '^ *+' conftest.er1 >conftest.err
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -z "$ac_c_werror_flag"
13433 || test ! -s conftest.err'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; } &&
13439 { ac_try='test -s conftest.$ac_objext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 eval "$as_ac_Header=yes"
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 eval "$as_ac_Header=no"
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13457 cat >>confdefs.h <<_ACEOF
13458 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13461 ac_header_dirent=$ac_hdr; break
13465 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13466 if test $ac_header_dirent = dirent.h; then
13467 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13468 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13469 if test "${ac_cv_search_opendir+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 ac_func_search_save_LIBS=$LIBS
13473 ac_cv_search_opendir=no
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13481 /* Override any gcc2 internal prototype to avoid an error. */
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498 (eval $ac_link) 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -z "$ac_c_werror_flag"
13506 || test ! -s conftest.err'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; } &&
13512 { ac_try='test -s conftest$ac_exeext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 ac_cv_search_opendir="none required"
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13524 rm -f conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
13526 if test "$ac_cv_search_opendir" = no; then
13527 for ac_lib in dir; do
13528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13529 cat >conftest.$ac_ext <<_ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13536 /* Override any gcc2 internal prototype to avoid an error. */
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_search_opendir="-l$ac_lib"
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13584 LIBS=$ac_func_search_save_LIBS
13586 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13587 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13588 if test "$ac_cv_search_opendir" != no; then
13589 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13594 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13595 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13596 if test "${ac_cv_search_opendir+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 ac_func_search_save_LIBS=$LIBS
13600 ac_cv_search_opendir=no
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13608 /* Override any gcc2 internal prototype to avoid an error. */
13612 /* We use char because int might match the return type of a gcc2
13613 builtin and then its argument prototype would still apply. */
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13625 (eval $ac_link) 2>conftest.er1
13627 grep -v '^ *+' conftest.er1 >conftest.err
13629 cat conftest.err >&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
13632 { ac_try='test -z "$ac_c_werror_flag"
13633 || test ! -s conftest.err'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; } &&
13639 { ac_try='test -s conftest$ac_exeext'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
13645 ac_cv_search_opendir="none required"
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13651 rm -f conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13653 if test "$ac_cv_search_opendir" = no; then
13654 for ac_lib in x; do
13655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 /* Override any gcc2 internal prototype to avoid an error. */
13667 /* We use char because int might match the return type of a gcc2
13668 builtin and then its argument prototype would still apply. */
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680 (eval $ac_link) 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag"
13688 || test ! -s conftest.err'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; } &&
13694 { ac_try='test -s conftest$ac_exeext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_search_opendir="-l$ac_lib"
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13707 rm -f conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13711 LIBS=$ac_func_search_save_LIBS
13713 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13714 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13715 if test "$ac_cv_search_opendir" != no; then
13716 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13722 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13723 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13724 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 cat >conftest.$ac_ext <<_ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <sys/types.h>
13734 #include <sys/wait.h>
13735 #ifndef WEXITSTATUS
13736 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13739 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13747 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754 (eval $ac_compile) 2>conftest.er1
13756 grep -v '^ *+' conftest.er1 >conftest.err
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } &&
13761 { ac_try='test -z "$ac_c_werror_flag"
13762 || test ! -s conftest.err'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_header_sys_wait_h=yes
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13779 ac_cv_header_sys_wait_h=no
13781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13783 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13785 if test $ac_cv_header_sys_wait_h = yes; then
13787 cat >>confdefs.h <<\_ACEOF
13788 #define HAVE_SYS_WAIT_H 1
13793 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13794 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13795 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 cat >conftest.$ac_ext <<_ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 #include <sys/types.h>
13805 #include <termios.h>
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "yes" >/dev/null 2>&1; then
13813 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13815 ac_cv_sys_tiocgwinsz_in_termios_h=no
13820 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13821 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13823 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13824 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13825 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13826 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 #include <sys/types.h>
13836 #include <sys/ioctl.h>
13842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13843 $EGREP "yes" >/dev/null 2>&1; then
13844 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13846 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13851 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13852 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13854 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13856 cat >>confdefs.h <<\_ACEOF
13857 #define GWINSZ_IN_SYS_IOCTL 1
13961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13963 echo "$as_me:$LINENO: checking for $ac_header" >&5
13964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13971 # Is the header compilable?
13972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 $ac_includes_default
13981 #include <$ac_header>
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985 (eval $ac_compile) 2>conftest.er1
13987 grep -v '^ *+' conftest.er1 >conftest.err
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -z "$ac_c_werror_flag"
13993 || test ! -s conftest.err'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } &&
13999 { ac_try='test -s conftest.$ac_objext'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 ac_header_compiler=yes
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 ac_header_compiler=no
14012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14014 echo "${ECHO_T}$ac_header_compiler" >&6
14016 # Is the header present?
14017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <$ac_header>
14027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14030 grep -v '^ *+' conftest.er1 >conftest.err
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } >/dev/null; then
14035 if test -s conftest.err; then
14036 ac_cpp_err=$ac_c_preproc_warn_flag
14037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14044 if test -z "$ac_cpp_err"; then
14045 ac_header_preproc=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_header_preproc=no
14052 rm -f conftest.err conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14054 echo "${ECHO_T}$ac_header_preproc" >&6
14056 # So? What about this header?
14057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14063 ac_header_preproc=yes
14066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14080 ## --------------------------------------------- ##
14081 ## Report this to <http://www.openldap.org/its/> ##
14082 ## --------------------------------------------- ##
14085 sed "s/^/$as_me: WARNING: /" >&2
14088 echo "$as_me:$LINENO: checking for $ac_header" >&5
14089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 eval "$as_ac_Header=\$ac_header_preproc"
14095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14100 cat >>confdefs.h <<_ACEOF
14101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14109 if test "$ac_cv_mingw32" = yes ; then
14112 for ac_header in winsock.h winsock2.h
14114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116 echo "$as_me:$LINENO: checking for $ac_header" >&5
14117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124 # Is the header compilable?
14125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 $ac_includes_default
14134 #include <$ac_header>
14136 rm -f conftest.$ac_objext
14137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14138 (eval $ac_compile) 2>conftest.er1
14140 grep -v '^ *+' conftest.er1 >conftest.err
14142 cat conftest.err >&5
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } &&
14145 { ac_try='test -z "$ac_c_werror_flag"
14146 || test ! -s conftest.err'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; } &&
14152 { ac_try='test -s conftest.$ac_objext'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 ac_header_compiler=yes
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ac_header_compiler=no
14165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14167 echo "${ECHO_T}$ac_header_compiler" >&6
14169 # Is the header present?
14170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include <$ac_header>
14180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14183 grep -v '^ *+' conftest.er1 >conftest.err
14185 cat conftest.err >&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); } >/dev/null; then
14188 if test -s conftest.err; then
14189 ac_cpp_err=$ac_c_preproc_warn_flag
14190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14197 if test -z "$ac_cpp_err"; then
14198 ac_header_preproc=yes
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14203 ac_header_preproc=no
14205 rm -f conftest.err conftest.$ac_ext
14206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14207 echo "${ECHO_T}$ac_header_preproc" >&6
14209 # So? What about this header?
14210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14216 ac_header_preproc=yes
14219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14233 ## --------------------------------------------- ##
14234 ## Report this to <http://www.openldap.org/its/> ##
14235 ## --------------------------------------------- ##
14238 sed "s/^/$as_me: WARNING: /" >&2
14241 echo "$as_me:$LINENO: checking for $ac_header" >&5
14242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 eval "$as_ac_Header=\$ac_header_preproc"
14248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14253 cat >>confdefs.h <<_ACEOF
14254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14264 for ac_header in resolv.h
14266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14267 echo "$as_me:$LINENO: checking for $ac_header" >&5
14268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 cat >conftest.$ac_ext <<_ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 $ac_includes_default
14279 #include <netinet/in.h>
14282 #include <$ac_header>
14284 rm -f conftest.$ac_objext
14285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14286 (eval $ac_compile) 2>conftest.er1
14288 grep -v '^ *+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -z "$ac_c_werror_flag"
14294 || test ! -s conftest.err'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 eval "$as_ac_Header=yes"
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 eval "$as_ac_Header=no"
14313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14318 cat >>confdefs.h <<_ACEOF
14319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14328 for ac_header in netinet/tcp.h
14330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14331 echo "$as_me:$LINENO: checking for $ac_header" >&5
14332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 cat >conftest.$ac_ext <<_ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 $ac_includes_default
14343 #include <netinet/in.h>
14346 #include <$ac_header>
14348 rm -f conftest.$ac_objext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14350 (eval $ac_compile) 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -z "$ac_c_werror_flag"
14358 || test ! -s conftest.err'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; } &&
14364 { ac_try='test -s conftest.$ac_objext'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14370 eval "$as_ac_Header=yes"
14372 echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14375 eval "$as_ac_Header=no"
14377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14392 for ac_header in sys/ucred.h
14394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14395 echo "$as_me:$LINENO: checking for $ac_header" >&5
14396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 cat >conftest.$ac_ext <<_ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14406 $ac_includes_default
14407 #ifdef HAVE_SYS_PARAM_H
14408 #include <sys/param.h>
14412 #include <$ac_header>
14414 rm -f conftest.$ac_objext
14415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14416 (eval $ac_compile) 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } &&
14423 { ac_try='test -z "$ac_c_werror_flag"
14424 || test ! -s conftest.err'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 eval "$as_ac_Header=yes"
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 eval "$as_ac_Header=no"
14443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14448 cat >>confdefs.h <<_ACEOF
14449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14460 for ac_func in sigaction sigset
14462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14463 echo "$as_me:$LINENO: checking for $ac_func" >&5
14464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14465 if eval "test \"\${$as_ac_var+set}\" = set"; then
14466 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 cat >conftest.$ac_ext <<_ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14476 #define $ac_func innocuous_$ac_func
14478 /* System header to define __stub macros and hopefully few prototypes,
14479 which can conflict with char $ac_func (); below.
14480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14481 <limits.h> exists even on freestanding compilers. */
14484 # include <limits.h>
14486 # include <assert.h>
14491 /* Override any gcc2 internal prototype to avoid an error. */
14496 /* We use char because int might match the return type of a gcc2
14497 builtin and then its argument prototype would still apply. */
14499 /* The GNU C library defines this for functions which it implements
14500 to always fail with ENOSYS. Some functions are actually named
14501 something starting with __ and the normal name is an alias. */
14502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14505 char (*f) () = $ac_func;
14514 return f != $ac_func;
14519 rm -f conftest.$ac_objext conftest$ac_exeext
14520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521 (eval $ac_link) 2>conftest.er1
14523 grep -v '^ *+' conftest.er1 >conftest.err
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } &&
14528 { ac_try='test -z "$ac_c_werror_flag"
14529 || test ! -s conftest.err'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; } &&
14535 { ac_try='test -s conftest$ac_exeext'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541 eval "$as_ac_var=yes"
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 eval "$as_ac_var=no"
14548 rm -f conftest.err conftest.$ac_objext \
14549 conftest$ac_exeext conftest.$ac_ext
14551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14553 if test `eval echo '${'$as_ac_var'}'` = yes; then
14554 cat >>confdefs.h <<_ACEOF
14555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14562 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14564 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14565 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14566 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 ac_check_lib_save_LIBS=$LIBS
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14578 /* Override any gcc2 internal prototype to avoid an error. */
14582 /* We use char because int might match the return type of a gcc2
14583 builtin and then its argument prototype would still apply. */
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14595 (eval $ac_link) 2>conftest.er1
14597 grep -v '^ *+' conftest.er1 >conftest.err
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } &&
14602 { ac_try='test -z "$ac_c_werror_flag"
14603 || test ! -s conftest.err'
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; } &&
14609 { ac_try='test -s conftest$ac_exeext'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 ac_cv_lib_V3_sigset=yes
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_cv_lib_V3_sigset=no
14622 rm -f conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14624 LIBS=$ac_check_lib_save_LIBS
14626 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14627 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14628 if test $ac_cv_lib_V3_sigset = yes; then
14629 cat >>confdefs.h <<_ACEOF
14630 #define HAVE_LIBV3 1
14639 if test "$ac_cv_header_winsock_h" = yes; then
14640 echo "$as_me:$LINENO: checking for winsock" >&5
14641 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14642 if test "${ol_cv_winsock+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 for curlib in ws2_32 wsock32; do
14647 LIBS="$LIBS -l$curlib"
14648 cat >conftest.$ac_ext <<_ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 #include <winsock.h>
14661 select(0,NULL,NULL,NULL,NULL);
14663 gethostname(NULL,0);
14669 rm -f conftest.$ac_objext conftest$ac_exeext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14671 (eval $ac_link) 2>conftest.er1
14673 grep -v '^ *+' conftest.er1 >conftest.err
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
14678 { ac_try='test -z "$ac_c_werror_flag"
14679 || test ! -s conftest.err'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; } &&
14685 { ac_try='test -s conftest$ac_exeext'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; }; then
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14698 rm -f conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
14701 if test $ol_cv_winsock = yes; then
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_WINSOCK 1
14707 ac_cv_func_socket=yes
14708 ac_cv_func_select=yes
14709 ac_cv_func_closesocket=yes
14710 ac_cv_func_gethostname=yes
14711 if test $curlib = ws2_32; then
14712 ol_cv_winsock=winsock2
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_WINSOCK2 1
14724 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14725 echo "${ECHO_T}$ol_cv_winsock" >&6
14729 echo "$as_me:$LINENO: checking for socket" >&5
14730 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14731 if test "${ac_cv_func_socket+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 cat >conftest.$ac_ext <<_ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14740 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14742 #define socket innocuous_socket
14744 /* System header to define __stub macros and hopefully few prototypes,
14745 which can conflict with char socket (); below.
14746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14747 <limits.h> exists even on freestanding compilers. */
14750 # include <limits.h>
14752 # include <assert.h>
14757 /* Override any gcc2 internal prototype to avoid an error. */
14762 /* We use char because int might match the return type of a gcc2
14763 builtin and then its argument prototype would still apply. */
14765 /* The GNU C library defines this for functions which it implements
14766 to always fail with ENOSYS. Some functions are actually named
14767 something starting with __ and the normal name is an alias. */
14768 #if defined (__stub_socket) || defined (__stub___socket)
14771 char (*f) () = socket;
14780 return f != socket;
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787 (eval $ac_link) 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_c_werror_flag"
14795 || test ! -s conftest.err'
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); }; } &&
14801 { ac_try='test -s conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_func_socket=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_cv_func_socket=no
14814 rm -f conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14818 echo "${ECHO_T}$ac_cv_func_socket" >&6
14819 if test $ac_cv_func_socket = yes; then
14824 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14825 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14826 if test "${ac_cv_lib_socket_main+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 ac_check_lib_save_LIBS=$LIBS
14830 LIBS="-lsocket $LIBS"
14831 cat >conftest.$ac_ext <<_ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14847 rm -f conftest.$ac_objext conftest$ac_exeext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14849 (eval $ac_link) 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag"
14857 || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try='test -s conftest$ac_exeext'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 ac_cv_lib_socket_main=yes
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14874 ac_cv_lib_socket_main=no
14876 rm -f conftest.err conftest.$ac_objext \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14881 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14882 if test $ac_cv_lib_socket_main = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define HAVE_LIBSOCKET 1
14887 LIBS="-lsocket $LIBS"
14892 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14893 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14894 if test "${ac_cv_lib_net_main+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 ac_check_lib_save_LIBS=$LIBS
14899 cat >conftest.$ac_ext <<_ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14915 rm -f conftest.$ac_objext conftest$ac_exeext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14917 (eval $ac_link) 2>conftest.er1
14919 grep -v '^ *+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -z "$ac_c_werror_flag"
14925 || test ! -s conftest.err'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; } &&
14931 { ac_try='test -s conftest$ac_exeext'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_cv_lib_net_main=yes
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_cv_lib_net_main=no
14944 rm -f conftest.err conftest.$ac_objext \
14945 conftest$ac_exeext conftest.$ac_ext
14946 LIBS=$ac_check_lib_save_LIBS
14948 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14949 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14950 if test $ac_cv_lib_net_main = yes; then
14951 cat >>confdefs.h <<_ACEOF
14952 #define HAVE_LIBNET 1
14960 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14961 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14962 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 ac_check_lib_save_LIBS=$LIBS
14966 LIBS="-lnsl_s $LIBS"
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14985 (eval $ac_link) 2>conftest.er1
14987 grep -v '^ *+' conftest.er1 >conftest.err
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -z "$ac_c_werror_flag"
14993 || test ! -s conftest.err'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; } &&
14999 { ac_try='test -s conftest$ac_exeext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_cv_lib_nsl_s_main=yes
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_cv_lib_nsl_s_main=no
15012 rm -f conftest.err conftest.$ac_objext \
15013 conftest$ac_exeext conftest.$ac_ext
15014 LIBS=$ac_check_lib_save_LIBS
15016 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15017 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15018 if test $ac_cv_lib_nsl_s_main = yes; then
15019 cat >>confdefs.h <<_ACEOF
15020 #define HAVE_LIBNSL_S 1
15023 LIBS="-lnsl_s $LIBS"
15028 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15029 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15030 if test "${ac_cv_lib_nsl_main+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 ac_check_lib_save_LIBS=$LIBS
15035 cat >conftest.$ac_ext <<_ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15053 (eval $ac_link) 2>conftest.er1
15055 grep -v '^ *+' conftest.er1 >conftest.err
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } &&
15060 { ac_try='test -z "$ac_c_werror_flag"
15061 || test ! -s conftest.err'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; } &&
15067 { ac_try='test -s conftest$ac_exeext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 ac_cv_lib_nsl_main=yes
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 ac_cv_lib_nsl_main=no
15080 rm -f conftest.err conftest.$ac_objext \
15081 conftest$ac_exeext conftest.$ac_ext
15082 LIBS=$ac_check_lib_save_LIBS
15084 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15085 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15086 if test $ac_cv_lib_nsl_main = yes; then
15087 cat >>confdefs.h <<_ACEOF
15088 #define HAVE_LIBNSL 1
15096 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15097 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15098 if test "${ac_cv_lib_inet_socket+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 ac_check_lib_save_LIBS=$LIBS
15102 LIBS="-linet $LIBS"
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15110 /* Override any gcc2 internal prototype to avoid an error. */
15114 /* We use char because int might match the return type of a gcc2
15115 builtin and then its argument prototype would still apply. */
15125 rm -f conftest.$ac_objext conftest$ac_exeext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15127 (eval $ac_link) 2>conftest.er1
15129 grep -v '^ *+' conftest.er1 >conftest.err
15131 cat conftest.err >&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try='test -z "$ac_c_werror_flag"
15135 || test ! -s conftest.err'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; } &&
15141 { ac_try='test -s conftest$ac_exeext'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; }; then
15147 ac_cv_lib_inet_socket=yes
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 ac_cv_lib_inet_socket=no
15154 rm -f conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_check_lib_save_LIBS
15158 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15159 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15160 if test $ac_cv_lib_inet_socket = yes; then
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_LIBINET 1
15165 LIBS="-linet $LIBS"
15170 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15171 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15172 if test "${ac_cv_lib_gen_main+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_check_lib_save_LIBS=$LIBS
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195 (eval $ac_link) 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try='test -z "$ac_c_werror_flag"
15203 || test ! -s conftest.err'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try='test -s conftest$ac_exeext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_lib_gen_main=yes
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15220 ac_cv_lib_gen_main=no
15222 rm -f conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
15224 LIBS=$ac_check_lib_save_LIBS
15226 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15227 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15228 if test $ac_cv_lib_gen_main = yes; then
15229 cat >>confdefs.h <<_ACEOF
15230 #define HAVE_LIBGEN 1
15241 echo "$as_me:$LINENO: checking for select" >&5
15242 echo $ECHO_N "checking for select... $ECHO_C" >&6
15243 if test "${ac_cv_func_select+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 /* Define select to an innocuous variant, in case <limits.h> declares select.
15253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15254 #define select innocuous_select
15256 /* System header to define __stub macros and hopefully few prototypes,
15257 which can conflict with char select (); below.
15258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15259 <limits.h> exists even on freestanding compilers. */
15262 # include <limits.h>
15264 # include <assert.h>
15269 /* Override any gcc2 internal prototype to avoid an error. */
15274 /* We use char because int might match the return type of a gcc2
15275 builtin and then its argument prototype would still apply. */
15277 /* The GNU C library defines this for functions which it implements
15278 to always fail with ENOSYS. Some functions are actually named
15279 something starting with __ and the normal name is an alias. */
15280 #if defined (__stub_select) || defined (__stub___select)
15283 char (*f) () = select;
15292 return f != select;
15297 rm -f conftest.$ac_objext conftest$ac_exeext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15299 (eval $ac_link) 2>conftest.er1
15301 grep -v '^ *+' conftest.er1 >conftest.err
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try='test -z "$ac_c_werror_flag"
15307 || test ! -s conftest.err'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try='test -s conftest$ac_exeext'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_cv_func_select=yes
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_cv_func_select=no
15326 rm -f conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
15329 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15330 echo "${ECHO_T}$ac_cv_func_select" >&6
15331 if test $ac_cv_func_select = yes; then
15334 { { echo "$as_me:$LINENO: error: select() required." >&5
15335 echo "$as_me: error: select() required." >&2;}
15336 { (exit 1); exit 1; }; }
15340 if test "${ac_cv_header_winsock_h}" != yes; then
15343 for ac_header in sys/select.h sys/socket.h
15345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15347 echo "$as_me:$LINENO: checking for $ac_header" >&5
15348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15355 # Is the header compilable?
15356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15358 cat >conftest.$ac_ext <<_ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15364 $ac_includes_default
15365 #include <$ac_header>
15367 rm -f conftest.$ac_objext
15368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15369 (eval $ac_compile) 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } &&
15376 { ac_try='test -z "$ac_c_werror_flag"
15377 || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_header_compiler=yes
15391 echo "$as_me: failed program was:" >&5
15392 sed 's/^/| /' conftest.$ac_ext >&5
15394 ac_header_compiler=no
15396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15397 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15398 echo "${ECHO_T}$ac_header_compiler" >&6
15400 # Is the header present?
15401 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15403 cat >conftest.$ac_ext <<_ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15409 #include <$ac_header>
15411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } >/dev/null; then
15419 if test -s conftest.err; then
15420 ac_cpp_err=$ac_c_preproc_warn_flag
15421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15428 if test -z "$ac_cpp_err"; then
15429 ac_header_preproc=yes
15431 echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 ac_header_preproc=no
15436 rm -f conftest.err conftest.$ac_ext
15437 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15438 echo "${ECHO_T}$ac_header_preproc" >&6
15440 # So? What about this header?
15441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15447 ac_header_preproc=yes
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15464 ## --------------------------------------------- ##
15465 ## Report this to <http://www.openldap.org/its/> ##
15466 ## --------------------------------------------- ##
15469 sed "s/^/$as_me: WARNING: /" >&2
15472 echo "$as_me:$LINENO: checking for $ac_header" >&5
15473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 eval "$as_ac_Header=\$ac_header_preproc"
15479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15484 cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15492 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15493 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15494 if test "${ac_cv_func_select_args+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15498 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15499 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15500 cat >conftest.$ac_ext <<_ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506 $ac_includes_default
15507 #if HAVE_SYS_SELECT_H
15508 # include <sys/select.h>
15510 #if HAVE_SYS_SOCKET_H
15511 # include <sys/socket.h>
15517 extern int select ($ac_arg1,
15518 $ac_arg234, $ac_arg234, $ac_arg234,
15524 rm -f conftest.$ac_objext
15525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15526 (eval $ac_compile) 2>conftest.er1
15528 grep -v '^ *+' conftest.er1 >conftest.err
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -z "$ac_c_werror_flag"
15534 || test ! -s conftest.err'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15548 echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556 # Provide a safe default value.
15557 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15560 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15561 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15562 ac_save_IFS=$IFS; IFS=','
15563 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15567 cat >>confdefs.h <<_ACEOF
15568 #define SELECT_TYPE_ARG1 $1
15572 cat >>confdefs.h <<_ACEOF
15573 #define SELECT_TYPE_ARG234 ($2)
15577 cat >>confdefs.h <<_ACEOF
15578 #define SELECT_TYPE_ARG5 ($3)
15587 for ac_func in poll
15589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15590 echo "$as_me:$LINENO: checking for $ac_func" >&5
15591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15592 if eval "test \"\${$as_ac_var+set}\" = set"; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 cat >conftest.$ac_ext <<_ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15603 #define $ac_func innocuous_$ac_func
15605 /* System header to define __stub macros and hopefully few prototypes,
15606 which can conflict with char $ac_func (); below.
15607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15608 <limits.h> exists even on freestanding compilers. */
15611 # include <limits.h>
15613 # include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error. */
15623 /* We use char because int might match the return type of a gcc2
15624 builtin and then its argument prototype would still apply. */
15626 /* The GNU C library defines this for functions which it implements
15627 to always fail with ENOSYS. Some functions are actually named
15628 something starting with __ and the normal name is an alias. */
15629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15632 char (*f) () = $ac_func;
15641 return f != $ac_func;
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648 (eval $ac_link) 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag"
15656 || test ! -s conftest.err'
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); }; } &&
15662 { ac_try='test -s conftest$ac_exeext'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 eval "$as_ac_var=yes"
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 eval "$as_ac_var=no"
15675 rm -f conftest.err conftest.$ac_objext \
15676 conftest$ac_exeext conftest.$ac_ext
15678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15680 if test `eval echo '${'$as_ac_var'}'` = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15688 if test $ac_cv_func_poll = yes; then
15691 for ac_header in poll.h sys/poll.h
15693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15695 echo "$as_me:$LINENO: checking for $ac_header" >&5
15696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15703 # Is the header compilable?
15704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15706 cat >conftest.$ac_ext <<_ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15712 $ac_includes_default
15713 #include <$ac_header>
15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>conftest.er1
15719 grep -v '^ *+' conftest.er1 >conftest.err
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_c_werror_flag"
15725 || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest.$ac_objext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_header_compiler=yes
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ac_header_compiler=no
15744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15746 echo "${ECHO_T}$ac_header_compiler" >&6
15748 # Is the header present?
15749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15751 cat >conftest.$ac_ext <<_ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 #include <$ac_header>
15759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15762 grep -v '^ *+' conftest.er1 >conftest.err
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } >/dev/null; then
15767 if test -s conftest.err; then
15768 ac_cpp_err=$ac_c_preproc_warn_flag
15769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15776 if test -z "$ac_cpp_err"; then
15777 ac_header_preproc=yes
15779 echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15782 ac_header_preproc=no
15784 rm -f conftest.err conftest.$ac_ext
15785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15786 echo "${ECHO_T}$ac_header_preproc" >&6
15788 # So? What about this header?
15789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15795 ac_header_preproc=yes
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15812 ## --------------------------------------------- ##
15813 ## Report this to <http://www.openldap.org/its/> ##
15814 ## --------------------------------------------- ##
15817 sed "s/^/$as_me: WARNING: /" >&2
15820 echo "$as_me:$LINENO: checking for $ac_header" >&5
15821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 eval "$as_ac_Header=\$ac_header_preproc"
15827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15832 cat >>confdefs.h <<_ACEOF
15833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15843 for ac_header in sys/epoll.h
15845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15847 echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15855 # Is the header compilable?
15856 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15858 cat >conftest.$ac_ext <<_ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 $ac_includes_default
15865 #include <$ac_header>
15867 rm -f conftest.$ac_objext
15868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15869 (eval $ac_compile) 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } &&
15876 { ac_try='test -z "$ac_c_werror_flag"
15877 || test ! -s conftest.err'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; } &&
15883 { ac_try='test -s conftest.$ac_objext'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; }; then
15889 ac_header_compiler=yes
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 ac_header_compiler=no
15896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898 echo "${ECHO_T}$ac_header_compiler" >&6
15900 # Is the header present?
15901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15903 cat >conftest.$ac_ext <<_ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 #include <$ac_header>
15911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15914 grep -v '^ *+' conftest.er1 >conftest.err
15916 cat conftest.err >&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); } >/dev/null; then
15919 if test -s conftest.err; then
15920 ac_cpp_err=$ac_c_preproc_warn_flag
15921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15928 if test -z "$ac_cpp_err"; then
15929 ac_header_preproc=yes
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ac_header_preproc=no
15936 rm -f conftest.err conftest.$ac_ext
15937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15938 echo "${ECHO_T}$ac_header_preproc" >&6
15940 # So? What about this header?
15941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15947 ac_header_preproc=yes
15950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15964 ## --------------------------------------------- ##
15965 ## Report this to <http://www.openldap.org/its/> ##
15966 ## --------------------------------------------- ##
15969 sed "s/^/$as_me: WARNING: /" >&2
15972 echo "$as_me:$LINENO: checking for $ac_header" >&5
15973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 eval "$as_ac_Header=\$ac_header_preproc"
15979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15984 cat >>confdefs.h <<_ACEOF
15985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15992 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15993 echo "$as_me:$LINENO: checking for epoll system call" >&5
15994 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15995 if test "$cross_compiling" = yes; then
15996 echo "$as_me:$LINENO: result: no" >&5
15997 echo "${ECHO_T}no" >&6
15999 cat >conftest.$ac_ext <<_ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 int main(int argc, char **argv)
16007 int epfd = epoll_create(256);
16008 exit (epfd == -1 ? 1 : 0);
16011 rm -f conftest$ac_exeext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16013 (eval $ac_link) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 echo "$as_me:$LINENO: result: yes" >&5
16023 echo "${ECHO_T}yes" >&6
16025 cat >>confdefs.h <<\_ACEOF
16026 #define HAVE_EPOLL 1
16030 echo "$as_me: program exited with status $ac_status" >&5
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ( exit $ac_status )
16035 echo "$as_me:$LINENO: result: no" >&5
16036 echo "${ECHO_T}no" >&6
16038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16043 for ac_header in sys/devpoll.h
16045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16047 echo "$as_me:$LINENO: checking for $ac_header" >&5
16048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16055 # Is the header compilable?
16056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16058 cat >conftest.$ac_ext <<_ACEOF
16061 cat confdefs.h >>conftest.$ac_ext
16062 cat >>conftest.$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16064 $ac_includes_default
16065 #include <$ac_header>
16067 rm -f conftest.$ac_objext
16068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16069 (eval $ac_compile) 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } &&
16076 { ac_try='test -z "$ac_c_werror_flag"
16077 || test ! -s conftest.err'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; } &&
16083 { ac_try='test -s conftest.$ac_objext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_header_compiler=yes
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_header_compiler=no
16096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16098 echo "${ECHO_T}$ac_header_compiler" >&6
16100 # Is the header present?
16101 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16103 cat >conftest.$ac_ext <<_ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 #include <$ac_header>
16111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16114 grep -v '^ *+' conftest.er1 >conftest.err
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } >/dev/null; then
16119 if test -s conftest.err; then
16120 ac_cpp_err=$ac_c_preproc_warn_flag
16121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16128 if test -z "$ac_cpp_err"; then
16129 ac_header_preproc=yes
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 ac_header_preproc=no
16136 rm -f conftest.err conftest.$ac_ext
16137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16138 echo "${ECHO_T}$ac_header_preproc" >&6
16140 # So? What about this header?
16141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16147 ac_header_preproc=yes
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16164 ## --------------------------------------------- ##
16165 ## Report this to <http://www.openldap.org/its/> ##
16166 ## --------------------------------------------- ##
16169 sed "s/^/$as_me: WARNING: /" >&2
16172 echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 eval "$as_ac_Header=\$ac_header_preproc"
16179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16184 cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16192 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16193 -a "${ac_cv_header_poll_h}" = yes ; \
16195 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16196 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16197 if test "$cross_compiling" = yes; then
16198 echo "$as_me:$LINENO: result: no" >&5
16199 echo "${ECHO_T}no" >&6
16201 cat >conftest.$ac_ext <<_ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 int main(int argc, char **argv)
16209 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16210 exit (devpollfd == -1 ? 1 : 0);
16213 rm -f conftest$ac_exeext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16215 (eval $ac_link) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 echo "$as_me:$LINENO: result: yes" >&5
16225 echo "${ECHO_T}yes" >&6
16227 cat >>confdefs.h <<\_ACEOF
16228 #define HAVE_DEVPOLL 1
16232 echo "$as_me: program exited with status $ac_status" >&5
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ( exit $ac_status )
16237 echo "$as_me:$LINENO: result: no" >&5
16238 echo "${ECHO_T}no" >&6
16240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16245 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16246 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16247 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16259 #include <sys/types.h>
16262 #include <stdlib.h>
16267 char *c = (char *) *sys_errlist
16272 rm -f conftest.$ac_objext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274 (eval $ac_compile) 2>conftest.er1
16276 grep -v '^ *+' conftest.er1 >conftest.err
16278 cat conftest.err >&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } &&
16281 { ac_try='test -z "$ac_c_werror_flag"
16282 || test ! -s conftest.err'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 ol_cv_dcl_sys_errlist=yes
16295 ol_cv_have_sys_errlist=yes
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 ol_cv_dcl_sys_errlist=no
16302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16304 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16305 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16307 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16308 if test $ol_cv_dcl_sys_errlist = no ; then
16310 cat >>confdefs.h <<\_ACEOF
16311 #define DECL_SYS_ERRLIST 1
16315 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16316 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16317 if test "${ol_cv_have_sys_errlist+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 cat >conftest.$ac_ext <<_ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16331 char *c = (char *) *sys_errlist
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338 (eval $ac_link) 2>conftest.er1
16340 grep -v '^ *+' conftest.er1 >conftest.err
16342 cat conftest.err >&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -z "$ac_c_werror_flag"
16346 || test ! -s conftest.err'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest$ac_exeext'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ol_cv_have_sys_errlist=yes
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ol_cv_have_sys_errlist=no
16365 rm -f conftest.err conftest.$ac_objext \
16366 conftest$ac_exeext conftest.$ac_ext
16368 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16369 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16371 if test $ol_cv_have_sys_errlist = yes ; then
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_SYS_ERRLIST 1
16380 for ac_func in strerror strerror_r
16382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16383 echo "$as_me:$LINENO: checking for $ac_func" >&5
16384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16385 if eval "test \"\${$as_ac_var+set}\" = set"; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16396 #define $ac_func innocuous_$ac_func
16398 /* System header to define __stub macros and hopefully few prototypes,
16399 which can conflict with char $ac_func (); below.
16400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16401 <limits.h> exists even on freestanding compilers. */
16404 # include <limits.h>
16406 # include <assert.h>
16411 /* Override any gcc2 internal prototype to avoid an error. */
16416 /* We use char because int might match the return type of a gcc2
16417 builtin and then its argument prototype would still apply. */
16419 /* The GNU C library defines this for functions which it implements
16420 to always fail with ENOSYS. Some functions are actually named
16421 something starting with __ and the normal name is an alias. */
16422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16425 char (*f) () = $ac_func;
16434 return f != $ac_func;
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>conftest.er1
16443 grep -v '^ *+' conftest.er1 >conftest.err
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
16448 { ac_try='test -z "$ac_c_werror_flag"
16449 || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest$ac_exeext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 eval "$as_ac_var=yes"
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 eval "$as_ac_var=no"
16468 rm -f conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16473 if test `eval echo '${'$as_ac_var'}'` = yes; then
16474 cat >>confdefs.h <<_ACEOF
16475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16481 ol_cv_func_strerror_r=no
16482 if test "${ac_cv_func_strerror_r}" = yes ; then
16483 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16484 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16485 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495 #include <string.h>
16497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16498 $EGREP "strerror_r" >/dev/null 2>&1; then
16499 ol_decl_strerror_r=yes
16501 ol_decl_strerror_r=no
16505 if test $ol_decl_strerror_r = yes ; then
16506 cat >conftest.$ac_ext <<_ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 #include <string.h>
16516 /* from autoconf 2.59 */
16518 char x = *strerror_r (0, buf, sizeof buf);
16519 char *p = strerror_r (0, buf, sizeof buf);
16525 rm -f conftest.$ac_objext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16527 (eval $ac_compile) 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } &&
16534 { ac_try='test -z "$ac_c_werror_flag"
16535 || test ! -s conftest.err'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; } &&
16541 { ac_try='test -s conftest.$ac_objext'
16542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16543 (eval $ac_try) 2>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); }; }; then
16547 ol_cv_nonposix_strerror_r=yes
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 ol_cv_nonposix_strerror_r=no
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16556 if test "$cross_compiling" = yes; then
16557 ol_cv_nonposix_strerror=no
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16569 strerror_r( 1, buf, sizeof buf );
16570 exit( buf[0] == 0 );
16574 rm -f conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576 (eval $ac_link) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ol_cv_nonposix_strerror_r=yes
16587 echo "$as_me: program exited with status $ac_status" >&5
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ( exit $ac_status )
16592 ol_cv_nonposix_strerror=no
16594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16599 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16600 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16601 if test $ol_cv_nonposix_strerror_r = yes ; then
16603 cat >>confdefs.h <<\_ACEOF
16604 #define HAVE_NONPOSIX_STRERROR_R 1
16609 elif test "${ac_cv_func_strerror}" = no ; then
16610 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16611 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16612 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16624 #include <sys/types.h>
16627 #include <stdlib.h>
16632 char *c = (char *) *sys_errlist
16637 rm -f conftest.$ac_objext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16639 (eval $ac_compile) 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try='test -z "$ac_c_werror_flag"
16647 || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ol_cv_dcl_sys_errlist=yes
16660 ol_cv_have_sys_errlist=yes
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 ol_cv_dcl_sys_errlist=no
16667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16669 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16670 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16672 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16673 if test $ol_cv_dcl_sys_errlist = no ; then
16675 cat >>confdefs.h <<\_ACEOF
16676 #define DECL_SYS_ERRLIST 1
16680 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16681 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16682 if test "${ol_cv_have_sys_errlist+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16696 char *c = (char *) *sys_errlist
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16703 (eval $ac_link) 2>conftest.er1
16705 grep -v '^ *+' conftest.er1 >conftest.err
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } &&
16710 { ac_try='test -z "$ac_c_werror_flag"
16711 || test ! -s conftest.err'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; } &&
16717 { ac_try='test -s conftest$ac_exeext'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 ol_cv_have_sys_errlist=yes
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 ol_cv_have_sys_errlist=no
16730 rm -f conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
16733 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16734 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16736 if test $ol_cv_have_sys_errlist = yes ; then
16738 cat >>confdefs.h <<\_ACEOF
16739 #define HAVE_SYS_ERRLIST 1
16748 for ac_header in regex.h
16750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16751 echo "$as_me:$LINENO: checking for $ac_header" >&5
16752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 $ac_includes_default
16763 #ifdef HAVE_SYS_TYPES_H
16764 #include <sys/types.h>
16768 #include <$ac_header>
16770 rm -f conftest.$ac_objext
16771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16772 (eval $ac_compile) 2>conftest.er1
16774 grep -v '^ *+' conftest.er1 >conftest.err
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
16779 { ac_try='test -z "$ac_c_werror_flag"
16780 || test ! -s conftest.err'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 eval "$as_ac_Header=yes"
16794 echo "$as_me: failed program was:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 eval "$as_ac_Header=no"
16799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16804 cat >>confdefs.h <<_ACEOF
16805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16813 if test "$ac_cv_header_regex_h" != yes ; then
16814 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16815 echo "$as_me: error: POSIX regex.h required." >&2;}
16816 { (exit 1); exit 1; }; }
16818 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16819 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16820 if test "${ac_cv_search_regfree+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16823 ac_func_search_save_LIBS=$LIBS
16824 ac_cv_search_regfree=no
16825 cat >conftest.$ac_ext <<_ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16832 /* Override any gcc2 internal prototype to avoid an error. */
16836 /* We use char because int might match the return type of a gcc2
16837 builtin and then its argument prototype would still apply. */
16847 rm -f conftest.$ac_objext conftest$ac_exeext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16849 (eval $ac_link) 2>conftest.er1
16851 grep -v '^ *+' conftest.er1 >conftest.err
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag"
16857 || test ! -s conftest.err'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; } &&
16863 { ac_try='test -s conftest$ac_exeext'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 ac_cv_search_regfree="none required"
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16875 rm -f conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16877 if test "$ac_cv_search_regfree" = no; then
16878 for ac_lib in regex gnuregex; do
16879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16880 cat >conftest.$ac_ext <<_ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16887 /* Override any gcc2 internal prototype to avoid an error. */
16891 /* We use char because int might match the return type of a gcc2
16892 builtin and then its argument prototype would still apply. */
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16904 (eval $ac_link) 2>conftest.er1
16906 grep -v '^ *+' conftest.er1 >conftest.err
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag"
16912 || test ! -s conftest.err'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest$ac_exeext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_search_regfree="-l$ac_lib"
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16931 rm -f conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16935 LIBS=$ac_func_search_save_LIBS
16937 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16938 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16939 if test "$ac_cv_search_regfree" != no; then
16940 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16943 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16944 echo "$as_me: error: POSIX regex required." >&2;}
16945 { (exit 1); exit 1; }; }
16950 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16951 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16952 if test "${ol_cv_c_posix_regex+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 if test "$cross_compiling" = yes; then
16957 ol_cv_c_posix_regex=cross
16959 cat >conftest.$ac_ext <<_ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16966 #include <sys/types.h>
16968 static char *pattern, *string;
16976 if(regcomp(&re, pattern, 0)) {
16980 string = "ALL MATCH";
16982 rc = regexec(&re, string, 0, (void*)0, 0);
16989 rm -f conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991 (eval $ac_link) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ol_cv_c_posix_regex=yes
17002 echo "$as_me: program exited with status $ac_status" >&5
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ( exit $ac_status )
17007 ol_cv_c_posix_regex=no
17009 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17012 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17013 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17015 if test "$ol_cv_c_posix_regex" = no ; then
17016 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17017 echo "$as_me: error: broken POSIX regex!" >&2;}
17018 { (exit 1); exit 1; }; }
17024 for ac_header in sys/uuid.h
17026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17028 echo "$as_me:$LINENO: checking for $ac_header" >&5
17029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17036 # Is the header compilable?
17037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17039 cat >conftest.$ac_ext <<_ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h. */
17045 $ac_includes_default
17046 #include <$ac_header>
17048 rm -f conftest.$ac_objext
17049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17050 (eval $ac_compile) 2>conftest.er1
17052 grep -v '^ *+' conftest.er1 >conftest.err
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -z "$ac_c_werror_flag"
17058 || test ! -s conftest.err'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_header_compiler=yes
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_header_compiler=no
17077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17079 echo "${ECHO_T}$ac_header_compiler" >&6
17081 # Is the header present?
17082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 #include <$ac_header>
17092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17095 grep -v '^ *+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } >/dev/null; then
17100 if test -s conftest.err; then
17101 ac_cpp_err=$ac_c_preproc_warn_flag
17102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17109 if test -z "$ac_cpp_err"; then
17110 ac_header_preproc=yes
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 ac_header_preproc=no
17117 rm -f conftest.err conftest.$ac_ext
17118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17119 echo "${ECHO_T}$ac_header_preproc" >&6
17121 # So? What about this header?
17122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17128 ac_header_preproc=yes
17131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17145 ## --------------------------------------------- ##
17146 ## Report this to <http://www.openldap.org/its/> ##
17147 ## --------------------------------------------- ##
17150 sed "s/^/$as_me: WARNING: /" >&2
17153 echo "$as_me:$LINENO: checking for $ac_header" >&5
17154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 eval "$as_ac_Header=\$ac_header_preproc"
17160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17165 cat >>confdefs.h <<_ACEOF
17166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17173 if test $ac_cv_header_sys_uuid_h = yes ; then
17175 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17176 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17177 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 ac_func_search_save_LIBS=$LIBS
17181 ac_cv_search_uuid_to_str=no
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17189 /* Override any gcc2 internal prototype to avoid an error. */
17193 /* We use char because int might match the return type of a gcc2
17194 builtin and then its argument prototype would still apply. */
17195 char uuid_to_str ();
17204 rm -f conftest.$ac_objext conftest$ac_exeext
17205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17206 (eval $ac_link) 2>conftest.er1
17208 grep -v '^ *+' conftest.er1 >conftest.err
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try='test -z "$ac_c_werror_flag"
17214 || test ! -s conftest.err'
17215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17216 (eval $ac_try) 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); }; } &&
17220 { ac_try='test -s conftest$ac_exeext'
17221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222 (eval $ac_try) 2>&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); }; }; then
17226 ac_cv_search_uuid_to_str="none required"
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17232 rm -f conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234 if test "$ac_cv_search_uuid_to_str" = no; then
17235 for ac_lib in uuid; do
17236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17237 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 /* Override any gcc2 internal prototype to avoid an error. */
17248 /* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17250 char uuid_to_str ();
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261 (eval $ac_link) 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag"
17269 || test ! -s conftest.err'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_search_uuid_to_str="-l$ac_lib"
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17288 rm -f conftest.err conftest.$ac_objext \
17289 conftest$ac_exeext conftest.$ac_ext
17292 LIBS=$ac_func_search_save_LIBS
17294 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17295 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17296 if test "$ac_cv_search_uuid_to_str" != no; then
17297 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17305 if test have_uuid = yes ; then
17307 cat >>confdefs.h <<\_ACEOF
17308 #define HAVE_UUID_TO_STR 1
17312 test "$ac_cv_search_uuid_to_str" = "none required" || \
17313 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17317 if test $have_uuid = no ; then
17319 for ac_header in uuid/uuid.h
17321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17323 echo "$as_me:$LINENO: checking for $ac_header" >&5
17324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17331 # Is the header compilable?
17332 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 $ac_includes_default
17341 #include <$ac_header>
17343 rm -f conftest.$ac_objext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17345 (eval $ac_compile) 2>conftest.er1
17347 grep -v '^ *+' conftest.er1 >conftest.err
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag"
17353 || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 ac_header_compiler=yes
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 ac_header_compiler=no
17372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17374 echo "${ECHO_T}$ac_header_compiler" >&6
17376 # Is the header present?
17377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17379 cat >conftest.$ac_ext <<_ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17385 #include <$ac_header>
17387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } >/dev/null; then
17395 if test -s conftest.err; then
17396 ac_cpp_err=$ac_c_preproc_warn_flag
17397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17404 if test -z "$ac_cpp_err"; then
17405 ac_header_preproc=yes
17407 echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17410 ac_header_preproc=no
17412 rm -f conftest.err conftest.$ac_ext
17413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17414 echo "${ECHO_T}$ac_header_preproc" >&6
17416 # So? What about this header?
17417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17423 ac_header_preproc=yes
17426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17440 ## --------------------------------------------- ##
17441 ## Report this to <http://www.openldap.org/its/> ##
17442 ## --------------------------------------------- ##
17445 sed "s/^/$as_me: WARNING: /" >&2
17448 echo "$as_me:$LINENO: checking for $ac_header" >&5
17449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 eval "$as_ac_Header=\$ac_header_preproc"
17455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17460 cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17468 if test $ac_cv_header_uuid_uuid_h = yes ; then
17470 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17471 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17472 if test "${ac_cv_search_uuid_generate+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 ac_func_search_save_LIBS=$LIBS
17476 ac_cv_search_uuid_generate=no
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 /* Override any gcc2 internal prototype to avoid an error. */
17488 /* We use char because int might match the return type of a gcc2
17489 builtin and then its argument prototype would still apply. */
17490 char uuid_generate ();
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17501 (eval $ac_link) 2>conftest.er1
17503 grep -v '^ *+' conftest.er1 >conftest.err
17505 cat conftest.err >&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
17508 { ac_try='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest$ac_exeext'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_search_uuid_generate="none required"
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17527 rm -f conftest.err conftest.$ac_objext \
17528 conftest$ac_exeext conftest.$ac_ext
17529 if test "$ac_cv_search_uuid_generate" = no; then
17530 for ac_lib in uuid; do
17531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17539 /* Override any gcc2 internal prototype to avoid an error. */
17543 /* We use char because int might match the return type of a gcc2
17544 builtin and then its argument prototype would still apply. */
17545 char uuid_generate ();
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17556 (eval $ac_link) 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_c_werror_flag"
17564 || test ! -s conftest.err'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest$ac_exeext'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_cv_search_uuid_generate="-l$ac_lib"
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17583 rm -f conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17587 LIBS=$ac_func_search_save_LIBS
17589 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17590 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17591 if test "$ac_cv_search_uuid_generate" != no; then
17592 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17600 if test have_uuid = yes ; then
17602 cat >>confdefs.h <<\_ACEOF
17603 #define HAVE_UUID_GENERATE 1
17607 test "$ac_cv_search_uuid_generate" = "none required" || \
17608 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17613 if test $have_uuid = no ; then
17614 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17615 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17617 LIBS="$LIBS -lrpcrt4"
17618 cat >conftest.$ac_ext <<_ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17625 int __stdcall UuidCreate(void *);
17626 int __stdcall UuidToStringA(void *,void **);
17633 UuidToStringA(0,0);
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>conftest.er1
17643 grep -v '^ *+' conftest.er1 >conftest.err
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_c_werror_flag"
17649 || test ! -s conftest.err'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17668 rm -f conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
17670 if test $need_rpcrt = yes; then
17671 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17674 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17675 echo "${ECHO_T}$need_rpcrt" >&6
17678 ol_cv_lib_resolver=no
17679 if test $ol_cv_lib_resolver = no ; then
17680 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17681 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17682 if test "${ol_cv_resolver_none+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 LIBS="$ol_RESOLVER_LIB $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17697 #ifdef HAVE_SYS_TYPES_H
17698 # include <sys/types.h>
17700 #include <netinet/in.h>
17701 #ifdef HAVE_ARPA_NAMESER_H
17702 # include <arpa/nameser.h>
17704 #ifdef HAVE_RESOLV_H
17705 # include <resolv.h>
17713 char *request = NULL;
17714 unsigned char reply[64*1024];
17715 unsigned char host[64*1024];
17719 /* Bind 8/9 interface */
17720 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17722 /* Bind 4 interface */
17726 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17730 /* Bind 8/9 interface */
17732 #elif defined(HFIXEDSZ)
17733 /* Bind 4 interface w/ HFIXEDSZ */
17736 /* Bind 4 interface w/o HFIXEDSZ */
17737 p += sizeof(HEADER);
17739 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>conftest.er1
17749 grep -v '^ *+' conftest.er1 >conftest.err
17751 cat conftest.err >&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
17754 { ac_try='test -z "$ac_c_werror_flag"
17755 || test ! -s conftest.err'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try='test -s conftest$ac_exeext'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 ol_cv_resolver_none=yes
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ol_cv_resolver_none=no
17774 rm -f conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17780 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17781 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17783 if test $ol_cv_resolver_none = yes ; then
17784 ol_cv_lib_resolver=yes
17788 if test $ol_cv_lib_resolver = no ; then
17789 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17790 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17791 if test "${ol_cv_resolver_resolv+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 ol_RESOLVER_LIB=-lresolv
17797 LIBS="$ol_RESOLVER_LIB $LIBS"
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 #ifdef HAVE_SYS_TYPES_H
17807 # include <sys/types.h>
17809 #include <netinet/in.h>
17810 #ifdef HAVE_ARPA_NAMESER_H
17811 # include <arpa/nameser.h>
17813 #ifdef HAVE_RESOLV_H
17814 # include <resolv.h>
17822 char *request = NULL;
17823 unsigned char reply[64*1024];
17824 unsigned char host[64*1024];
17828 /* Bind 8/9 interface */
17829 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17831 /* Bind 4 interface */
17835 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17839 /* Bind 8/9 interface */
17841 #elif defined(HFIXEDSZ)
17842 /* Bind 4 interface w/ HFIXEDSZ */
17845 /* Bind 4 interface w/o HFIXEDSZ */
17846 p += sizeof(HEADER);
17848 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856 (eval $ac_link) 2>conftest.er1
17858 grep -v '^ *+' conftest.er1 >conftest.err
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
17863 { ac_try='test -z "$ac_c_werror_flag"
17864 || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17876 ol_cv_resolver_resolv=yes
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ol_cv_resolver_resolv=no
17883 rm -f conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17889 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17890 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17892 if test $ol_cv_resolver_resolv = yes ; then
17893 ol_cv_lib_resolver=-lresolv
17897 if test $ol_cv_lib_resolver = no ; then
17898 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17899 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17900 if test "${ol_cv_resolver_bind+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 ol_RESOLVER_LIB=-lbind
17906 LIBS="$ol_RESOLVER_LIB $LIBS"
17908 cat >conftest.$ac_ext <<_ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17915 #ifdef HAVE_SYS_TYPES_H
17916 # include <sys/types.h>
17918 #include <netinet/in.h>
17919 #ifdef HAVE_ARPA_NAMESER_H
17920 # include <arpa/nameser.h>
17922 #ifdef HAVE_RESOLV_H
17923 # include <resolv.h>
17931 char *request = NULL;
17932 unsigned char reply[64*1024];
17933 unsigned char host[64*1024];
17937 /* Bind 8/9 interface */
17938 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17940 /* Bind 4 interface */
17944 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17948 /* Bind 8/9 interface */
17950 #elif defined(HFIXEDSZ)
17951 /* Bind 4 interface w/ HFIXEDSZ */
17954 /* Bind 4 interface w/o HFIXEDSZ */
17955 p += sizeof(HEADER);
17957 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17963 rm -f conftest.$ac_objext conftest$ac_exeext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17965 (eval $ac_link) 2>conftest.er1
17967 grep -v '^ *+' conftest.er1 >conftest.err
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17985 ol_cv_resolver_bind=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ol_cv_resolver_bind=no
17992 rm -f conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17998 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17999 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18001 if test $ol_cv_resolver_bind = yes ; then
18002 ol_cv_lib_resolver=-lbind
18009 if test "$ol_cv_lib_resolver" != no ; then
18011 cat >>confdefs.h <<\_ACEOF
18012 #define HAVE_RES_QUERY 1
18016 if test "$ol_enable_dnssrv" != no ; then
18020 if test "$ol_cv_lib_resolver" != yes ; then
18021 LIBS="$ol_cv_lib_resolver $LIBS"
18025 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18026 if test "$ol_link_dnssrv" = no ; then
18027 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18028 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18029 { (exit 1); exit 1; }; }
18032 ol_enable_dnssrv=no
18036 for ac_func in hstrerror
18038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18039 echo "$as_me:$LINENO: checking for $ac_func" >&5
18040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18041 if eval "test \"\${$as_ac_var+set}\" = set"; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18052 #define $ac_func innocuous_$ac_func
18054 /* System header to define __stub macros and hopefully few prototypes,
18055 which can conflict with char $ac_func (); below.
18056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18057 <limits.h> exists even on freestanding compilers. */
18060 # include <limits.h>
18062 # include <assert.h>
18067 /* Override any gcc2 internal prototype to avoid an error. */
18072 /* We use char because int might match the return type of a gcc2
18073 builtin and then its argument prototype would still apply. */
18075 /* The GNU C library defines this for functions which it implements
18076 to always fail with ENOSYS. Some functions are actually named
18077 something starting with __ and the normal name is an alias. */
18078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18081 char (*f) () = $ac_func;
18090 return f != $ac_func;
18095 rm -f conftest.$ac_objext conftest$ac_exeext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097 (eval $ac_link) 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -z "$ac_c_werror_flag"
18105 || test ! -s conftest.err'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest$ac_exeext'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 eval "$as_ac_var=yes"
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 eval "$as_ac_var=no"
18124 rm -f conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18129 if test `eval echo '${'$as_ac_var'}'` = yes; then
18130 cat >>confdefs.h <<_ACEOF
18131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18142 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18145 echo "$as_me:$LINENO: checking for $ac_func" >&5
18146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18147 if eval "test \"\${$as_ac_var+set}\" = set"; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18158 #define $ac_func innocuous_$ac_func
18160 /* System header to define __stub macros and hopefully few prototypes,
18161 which can conflict with char $ac_func (); below.
18162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18163 <limits.h> exists even on freestanding compilers. */
18166 # include <limits.h>
18168 # include <assert.h>
18173 /* Override any gcc2 internal prototype to avoid an error. */
18178 /* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18181 /* The GNU C library defines this for functions which it implements
18182 to always fail with ENOSYS. Some functions are actually named
18183 something starting with __ and the normal name is an alias. */
18184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18187 char (*f) () = $ac_func;
18196 return f != $ac_func;
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>conftest.er1
18205 grep -v '^ *+' conftest.er1 >conftest.err
18207 cat conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -z "$ac_c_werror_flag"
18211 || test ! -s conftest.err'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest$ac_exeext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 eval "$as_ac_var=yes"
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 eval "$as_ac_var=no"
18230 rm -f conftest.err conftest.$ac_objext \
18231 conftest$ac_exeext conftest.$ac_ext
18233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18235 if test `eval echo '${'$as_ac_var'}'` = yes; then
18236 cat >>confdefs.h <<_ACEOF
18237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18245 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18246 if test $ol_enable_ipv6 = yes ; then
18247 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18248 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18249 { (exit 1); exit 1; }; }
18251 elif test $ol_enable_ipv6 != no ; then
18252 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18253 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18254 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 cat >conftest.$ac_ext <<_ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18265 # include <netinet/in.h>
18266 # ifdef INET6_ADDRSTRLEN
18267 __has_inet6_addrstrlen__;
18271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18272 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18273 ol_cv_inet6_addrstrlen=yes
18275 ol_cv_inet6_addrstrlen=no
18280 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18281 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18284 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18285 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18286 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 cat >conftest.$ac_ext <<_ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18297 #include <sys/types.h>
18298 #include <sys/socket.h>
18304 struct sockaddr_storage ss;
18310 rm -f conftest.$ac_objext
18311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18312 (eval $ac_compile) 2>conftest.er1
18314 grep -v '^ *+' conftest.er1 >conftest.err
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -z "$ac_c_werror_flag"
18320 || test ! -s conftest.err'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18332 ol_cv_struct_sockaddr_storage=yes
18334 echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18337 ol_cv_struct_sockaddr_storage=no
18339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18341 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18342 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18344 if test $ol_cv_inet6_addrstrlen = yes &&
18345 test $ol_cv_struct_sockaddr_storage = yes ; then
18347 elif test $ol_enable_ipv6 = yes &&
18348 test $ol_cv_inet6_addrstrlen = no ; then
18349 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18350 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18351 { (exit 1); exit 1; }; }
18352 elif test $ol_enable_ipv6 = yes &&
18353 test $ol_cv_struct_sockaddr_storage = no ; then
18354 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18355 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18356 { (exit 1); exit 1; }; }
18360 if test $ol_enable_local != no ; then
18362 for ac_header in sys/un.h
18364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18366 echo "$as_me:$LINENO: checking for $ac_header" >&5
18367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18374 # Is the header compilable?
18375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 $ac_includes_default
18384 #include <$ac_header>
18386 rm -f conftest.$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>conftest.er1
18390 grep -v '^ *+' conftest.er1 >conftest.err
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest.$ac_objext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_header_compiler=yes
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18413 ac_header_compiler=no
18415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18417 echo "${ECHO_T}$ac_header_compiler" >&6
18419 # Is the header present?
18420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18422 cat >conftest.$ac_ext <<_ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <$ac_header>
18430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev/null; then
18438 if test -s conftest.err; then
18439 ac_cpp_err=$ac_c_preproc_warn_flag
18440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18447 if test -z "$ac_cpp_err"; then
18448 ac_header_preproc=yes
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18453 ac_header_preproc=no
18455 rm -f conftest.err conftest.$ac_ext
18456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18457 echo "${ECHO_T}$ac_header_preproc" >&6
18459 # So? What about this header?
18460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18466 ac_header_preproc=yes
18469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18483 ## --------------------------------------------- ##
18484 ## Report this to <http://www.openldap.org/its/> ##
18485 ## --------------------------------------------- ##
18488 sed "s/^/$as_me: WARNING: /" >&2
18491 echo "$as_me:$LINENO: checking for $ac_header" >&5
18492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 eval "$as_ac_Header=\$ac_header_preproc"
18498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18512 if test $ol_enable_local = auto ; then
18513 ol_enable_local=$ac_cv_header_sys_un_h
18514 elif test $ac_cv_header_sys_un_h = no ; then
18515 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18516 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18517 { (exit 1); exit 1; }; }
18522 if test $ol_with_tls = yes ; then
18527 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18529 for ac_header in openssl/ssl.h
18531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18533 echo "$as_me:$LINENO: checking for $ac_header" >&5
18534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18541 # Is the header compilable?
18542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18544 cat >conftest.$ac_ext <<_ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550 $ac_includes_default
18551 #include <$ac_header>
18553 rm -f conftest.$ac_objext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18555 (eval $ac_compile) 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag"
18563 || test ! -s conftest.err'
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; } &&
18569 { ac_try='test -s conftest.$ac_objext'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; }; then
18575 ac_header_compiler=yes
18577 echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18580 ac_header_compiler=no
18582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18584 echo "${ECHO_T}$ac_header_compiler" >&6
18586 # Is the header present?
18587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18595 #include <$ac_header>
18597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18600 grep -v '^ *+' conftest.er1 >conftest.err
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } >/dev/null; then
18605 if test -s conftest.err; then
18606 ac_cpp_err=$ac_c_preproc_warn_flag
18607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18614 if test -z "$ac_cpp_err"; then
18615 ac_header_preproc=yes
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 ac_header_preproc=no
18622 rm -f conftest.err conftest.$ac_ext
18623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18624 echo "${ECHO_T}$ac_header_preproc" >&6
18626 # So? What about this header?
18627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18633 ac_header_preproc=yes
18636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18650 ## --------------------------------------------- ##
18651 ## Report this to <http://www.openldap.org/its/> ##
18652 ## --------------------------------------------- ##
18655 sed "s/^/$as_me: WARNING: /" >&2
18658 echo "$as_me:$LINENO: checking for $ac_header" >&5
18659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18661 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 eval "$as_ac_Header=\$ac_header_preproc"
18665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18670 cat >>confdefs.h <<_ACEOF
18671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18679 if test $ac_cv_header_openssl_ssl_h = yes ; then
18680 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18681 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18682 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 ac_check_lib_save_LIBS=$LIBS
18686 LIBS="-lssl -lcrypto $LIBS"
18687 cat >conftest.$ac_ext <<_ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18694 /* Override any gcc2 internal prototype to avoid an error. */
18698 /* We use char because int might match the return type of a gcc2
18699 builtin and then its argument prototype would still apply. */
18700 char SSL_library_init ();
18704 SSL_library_init ();
18709 rm -f conftest.$ac_objext conftest$ac_exeext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18711 (eval $ac_link) 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); } &&
18718 { ac_try='test -z "$ac_c_werror_flag"
18719 || test ! -s conftest.err'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 ac_cv_lib_ssl_SSL_library_init=yes
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 ac_cv_lib_ssl_SSL_library_init=no
18738 rm -f conftest.err conftest.$ac_objext \
18739 conftest$ac_exeext conftest.$ac_ext
18740 LIBS=$ac_check_lib_save_LIBS
18742 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18743 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18744 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18752 if test $have_openssl = no ; then
18753 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18754 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18755 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 ac_check_lib_save_LIBS=$LIBS
18759 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18760 cat >conftest.$ac_ext <<_ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18767 /* Override any gcc2 internal prototype to avoid an error. */
18771 /* We use char because int might match the return type of a gcc2
18772 builtin and then its argument prototype would still apply. */
18773 char ssl3_accept ();
18782 rm -f conftest.$ac_objext conftest$ac_exeext
18783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18784 (eval $ac_link) 2>conftest.er1
18786 grep -v '^ *+' conftest.er1 >conftest.err
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -z "$ac_c_werror_flag"
18792 || test ! -s conftest.err'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest$ac_exeext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 ac_cv_lib_ssl_ssl3_accept=yes
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 ac_cv_lib_ssl_ssl3_accept=no
18811 rm -f conftest.err conftest.$ac_objext \
18812 conftest$ac_exeext conftest.$ac_ext
18813 LIBS=$ac_check_lib_save_LIBS
18815 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18816 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18817 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18826 if test $have_openssl = yes ; then
18827 ol_with_tls=openssl
18831 cat >>confdefs.h <<\_ACEOF
18832 #define HAVE_OPENSSL 1
18836 if test $need_rsaref = yes; then
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE_RSAREF 1
18843 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18845 TLS_LIBS="-lssl -lcrypto"
18848 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18849 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18850 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18861 #ifdef HAVE_OPENSSL_SSL_H
18862 #include <openssl/ssl.h>
18865 /* Require 0.9.7d+ */
18866 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18867 char *__ssl_compat = "0.9.7d";
18871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18872 $EGREP "__ssl_compat" >/dev/null 2>&1; then
18873 ol_cv_ssl_crl_compat=yes
18875 ol_cv_ssl_crl_compat=no
18880 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18881 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18883 if test $ol_cv_ssl_crl_compat = yes ; then
18885 cat >>confdefs.h <<\_ACEOF
18886 #define HAVE_OPENSSL_CRL 1
18894 if test $ol_link_tls = no ; then
18895 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18897 for ac_header in gnutls/gnutls.h
18899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18901 echo "$as_me:$LINENO: checking for $ac_header" >&5
18902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18909 # Is the header compilable?
18910 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18912 cat >conftest.$ac_ext <<_ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18918 $ac_includes_default
18919 #include <$ac_header>
18921 rm -f conftest.$ac_objext
18922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18923 (eval $ac_compile) 2>conftest.er1
18925 grep -v '^ *+' conftest.er1 >conftest.err
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -z "$ac_c_werror_flag"
18931 || test ! -s conftest.err'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest.$ac_objext'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
18943 ac_header_compiler=yes
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 ac_header_compiler=no
18950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18952 echo "${ECHO_T}$ac_header_compiler" >&6
18954 # Is the header present?
18955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18957 cat >conftest.$ac_ext <<_ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 #include <$ac_header>
18965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18968 grep -v '^ *+' conftest.er1 >conftest.err
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } >/dev/null; then
18973 if test -s conftest.err; then
18974 ac_cpp_err=$ac_c_preproc_warn_flag
18975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18982 if test -z "$ac_cpp_err"; then
18983 ac_header_preproc=yes
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18988 ac_header_preproc=no
18990 rm -f conftest.err conftest.$ac_ext
18991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18992 echo "${ECHO_T}$ac_header_preproc" >&6
18994 # So? What about this header?
18995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19001 ac_header_preproc=yes
19004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19018 ## --------------------------------------------- ##
19019 ## Report this to <http://www.openldap.org/its/> ##
19020 ## --------------------------------------------- ##
19023 sed "s/^/$as_me: WARNING: /" >&2
19026 echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 eval "$as_ac_Header=\$ac_header_preproc"
19033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19038 cat >>confdefs.h <<_ACEOF
19039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19047 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19048 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19049 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19050 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 ac_check_lib_save_LIBS=$LIBS
19054 LIBS="-lgnutls $LIBS"
19055 cat >conftest.$ac_ext <<_ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h. */
19062 /* Override any gcc2 internal prototype to avoid an error. */
19066 /* We use char because int might match the return type of a gcc2
19067 builtin and then its argument prototype would still apply. */
19068 char gnutls_init ();
19077 rm -f conftest.$ac_objext conftest$ac_exeext
19078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19079 (eval $ac_link) 2>conftest.er1
19081 grep -v '^ *+' conftest.er1 >conftest.err
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
19086 { ac_try='test -z "$ac_c_werror_flag"
19087 || test ! -s conftest.err'
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest$ac_exeext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_lib_gnutls_gnutls_init=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_lib_gnutls_gnutls_init=no
19106 rm -f conftest.err conftest.$ac_objext \
19107 conftest$ac_exeext conftest.$ac_ext
19108 LIBS=$ac_check_lib_save_LIBS
19110 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19111 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19112 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19119 if test $have_gnutls = yes ; then
19123 TLS_LIBS="-lgnutls"
19126 cat >>confdefs.h <<\_ACEOF
19127 #define HAVE_GNUTLS 1
19136 if test $ol_link_tls = yes ; then
19138 cat >>confdefs.h <<\_ACEOF
19143 elif test $ol_with_tls = auto ; then
19144 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19145 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19146 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19147 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19148 elif test $ol_with_tls != no ; then
19149 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19150 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19151 { (exit 1); exit 1; }; }
19153 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19154 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19157 if test $ol_enable_lmpasswd != no; then
19158 if test $ol_link_tls != yes ; then
19159 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19160 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19161 { (exit 1); exit 1; }; }
19165 cat >>confdefs.h <<\_ACEOF
19166 #define SLAPD_LMHASH 1
19173 case $ol_with_threads in auto | yes | nt)
19176 echo "$as_me:$LINENO: checking for _beginthread" >&5
19177 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19178 if test "${ac_cv_func__beginthread+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19189 #define _beginthread innocuous__beginthread
19191 /* System header to define __stub macros and hopefully few prototypes,
19192 which can conflict with char _beginthread (); below.
19193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19194 <limits.h> exists even on freestanding compilers. */
19197 # include <limits.h>
19199 # include <assert.h>
19202 #undef _beginthread
19204 /* Override any gcc2 internal prototype to avoid an error. */
19209 /* We use char because int might match the return type of a gcc2
19210 builtin and then its argument prototype would still apply. */
19211 char _beginthread ();
19212 /* The GNU C library defines this for functions which it implements
19213 to always fail with ENOSYS. Some functions are actually named
19214 something starting with __ and the normal name is an alias. */
19215 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19218 char (*f) () = _beginthread;
19227 return f != _beginthread;
19232 rm -f conftest.$ac_objext conftest$ac_exeext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19234 (eval $ac_link) 2>conftest.er1
19236 grep -v '^ *+' conftest.er1 >conftest.err
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag"
19242 || test ! -s conftest.err'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try='test -s conftest$ac_exeext'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 ac_cv_func__beginthread=yes
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19259 ac_cv_func__beginthread=no
19261 rm -f conftest.err conftest.$ac_objext \
19262 conftest$ac_exeext conftest.$ac_ext
19264 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19265 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19268 if test $ac_cv_func__beginthread = yes ; then
19270 cat >>confdefs.h <<\_ACEOF
19271 #define HAVE_NT_THREADS 1
19274 ol_cv_nt_threads=yes
19278 if test "$ol_cv_nt_threads" = yes ; then
19280 ol_with_threads=found
19281 ol_with_yielding_select=yes
19284 cat >>confdefs.h <<\_ACEOF
19285 #define HAVE_NT_SERVICE_MANAGER 1
19289 cat >>confdefs.h <<\_ACEOF
19290 #define HAVE_NT_EVENT_LOG 1
19295 if test $ol_with_threads = nt ; then
19296 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19297 echo "$as_me: error: could not locate NT Threads" >&2;}
19298 { (exit 1); exit 1; }; }
19303 case $ol_with_threads in auto | yes | posix)
19306 for ac_header in pthread.h
19308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19310 echo "$as_me:$LINENO: checking for $ac_header" >&5
19311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19318 # Is the header compilable?
19319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19321 cat >conftest.$ac_ext <<_ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19327 $ac_includes_default
19328 #include <$ac_header>
19330 rm -f conftest.$ac_objext
19331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19332 (eval $ac_compile) 2>conftest.er1
19334 grep -v '^ *+' conftest.er1 >conftest.err
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); } &&
19339 { ac_try='test -z "$ac_c_werror_flag"
19340 || test ! -s conftest.err'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } &&
19346 { ac_try='test -s conftest.$ac_objext'
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; }; then
19352 ac_header_compiler=yes
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19357 ac_header_compiler=no
19359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19361 echo "${ECHO_T}$ac_header_compiler" >&6
19363 # Is the header present?
19364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19366 cat >conftest.$ac_ext <<_ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19372 #include <$ac_header>
19374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } >/dev/null; then
19382 if test -s conftest.err; then
19383 ac_cpp_err=$ac_c_preproc_warn_flag
19384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19391 if test -z "$ac_cpp_err"; then
19392 ac_header_preproc=yes
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_header_preproc=no
19399 rm -f conftest.err conftest.$ac_ext
19400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19401 echo "${ECHO_T}$ac_header_preproc" >&6
19403 # So? What about this header?
19404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19410 ac_header_preproc=yes
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19427 ## --------------------------------------------- ##
19428 ## Report this to <http://www.openldap.org/its/> ##
19429 ## --------------------------------------------- ##
19432 sed "s/^/$as_me: WARNING: /" >&2
19435 echo "$as_me:$LINENO: checking for $ac_header" >&5
19436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 eval "$as_ac_Header=\$ac_header_preproc"
19442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19447 cat >>confdefs.h <<_ACEOF
19448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19456 if test $ac_cv_header_pthread_h = yes ; then
19457 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19458 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19459 if test "${ol_cv_pthread_version+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19470 # include <pthread.h>
19476 int i = PTHREAD_CREATE_JOINABLE;
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19484 (eval $ac_compile) 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_objext'
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
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 #include <pthread.h>
19514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19515 $EGREP "pthread_detach" >/dev/null 2>&1; then
19516 ol_cv_pthread_version=10
19518 ol_cv_pthread_version=8
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 # include <pthread.h>
19535 # ifdef PTHREAD_CREATE_UNDETACHED
19540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19541 $EGREP "draft7" >/dev/null 2>&1; then
19542 ol_cv_pthread_version=7
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551 #include <pthread.h>
19554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19555 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19556 ol_cv_pthread_version=6
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 # include <pthread.h>
19567 #ifdef PTHREAD_MUTEX_INITIALIZER
19572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19573 $EGREP "draft5" >/dev/null 2>&1; then
19574 ol_cv_pthread_version=5
19576 ol_cv_pthread_version=4
19587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19590 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19591 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19594 if test $ol_cv_pthread_version != 0 ; then
19596 cat >>confdefs.h <<_ACEOF
19597 #define HAVE_PTHREADS $ol_cv_pthread_version
19601 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19602 echo "$as_me: error: unknown pthread version" >&2;}
19603 { (exit 1); exit 1; }; }
19606 # consider threads found
19607 ol_with_threads=found
19610 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19611 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19612 if test "${ol_cv_header_linux_threads+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #include <pthread.h>
19623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19624 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19625 ol_cv_header_linux_threads=yes
19627 ol_cv_header_linux_threads=no
19633 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19634 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19635 if test $ol_cv_header_linux_threads = yes; then
19637 cat >>confdefs.h <<\_ACEOF
19638 #define HAVE_LINUX_THREADS 1
19644 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19645 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19646 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 #include <pthread.h>
19656 #ifdef _POSIX_THREAD_IS_GNU_PTH
19661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19662 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19663 ol_cv_header_gnu_pth_pthread_h=yes
19665 ol_cv_header_gnu_pth_pthread_h=no
19671 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19672 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19675 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19677 for ac_header in sched.h
19679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19681 echo "$as_me:$LINENO: checking for $ac_header" >&5
19682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19689 # Is the header compilable?
19690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19692 cat >conftest.$ac_ext <<_ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698 $ac_includes_default
19699 #include <$ac_header>
19701 rm -f conftest.$ac_objext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19703 (eval $ac_compile) 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_c_werror_flag"
19711 || test ! -s conftest.err'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try='test -s conftest.$ac_objext'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_header_compiler=yes
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_header_compiler=no
19730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19732 echo "${ECHO_T}$ac_header_compiler" >&6
19734 # Is the header present?
19735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19737 cat >conftest.$ac_ext <<_ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 #include <$ac_header>
19745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } >/dev/null; then
19753 if test -s conftest.err; then
19754 ac_cpp_err=$ac_c_preproc_warn_flag
19755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19762 if test -z "$ac_cpp_err"; then
19763 ac_header_preproc=yes
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 ac_header_preproc=no
19770 rm -f conftest.err conftest.$ac_ext
19771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19772 echo "${ECHO_T}$ac_header_preproc" >&6
19774 # So? What about this header?
19775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19781 ac_header_preproc=yes
19784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19798 ## --------------------------------------------- ##
19799 ## Report this to <http://www.openldap.org/its/> ##
19800 ## --------------------------------------------- ##
19803 sed "s/^/$as_me: WARNING: /" >&2
19806 echo "$as_me:$LINENO: checking for $ac_header" >&5
19807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 eval "$as_ac_Header=\$ac_header_preproc"
19813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19818 cat >>confdefs.h <<_ACEOF
19819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19829 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19830 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19831 if test "${ol_cv_pthread_create+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 if test "$cross_compiling" = yes; then
19836 cat >conftest.$ac_ext <<_ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19843 /* pthread test headers */
19844 #include <pthread.h>
19845 #if HAVE_PTHREADS < 7
19849 #define NULL (void*)0
19852 static void *task(p)
19855 return (void *) (p == NULL);
19862 /* pthread test function */
19863 #ifndef PTHREAD_CREATE_DETACHED
19864 #define PTHREAD_CREATE_DETACHED 1
19868 int detach = PTHREAD_CREATE_DETACHED;
19870 #if HAVE_PTHREADS > 4
19871 /* Final pthreads */
19872 pthread_attr_t attr;
19874 status = pthread_attr_init(&attr);
19875 if( status ) return status;
19877 #if HAVE_PTHREADS < 7
19878 status = pthread_attr_setdetachstate(&attr, &detach);
19879 if( status < 0 ) status = errno;
19881 status = pthread_attr_setdetachstate(&attr, detach);
19883 if( status ) return status;
19884 status = pthread_create( &t, &attr, task, NULL );
19885 #if HAVE_PTHREADS < 7
19886 if( status < 0 ) status = errno;
19888 if( status ) return status;
19890 /* Draft 4 pthreads */
19891 status = pthread_create( &t, pthread_attr_default, task, NULL );
19892 if( status ) return errno;
19894 /* give thread a chance to complete */
19895 /* it should remain joinable and hence detachable */
19898 status = pthread_detach( &t );
19899 if( status ) return errno;
19902 #ifdef HAVE_LINUX_THREADS
19903 pthread_kill_other_threads_np();
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914 (eval $ac_link) 2>conftest.er1
19916 grep -v '^ *+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_c_werror_flag"
19922 || test ! -s conftest.err'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; } &&
19928 { ac_try='test -s conftest$ac_exeext'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ol_cv_pthread_create=yes
19936 echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19939 ol_cv_pthread_create=no
19941 rm -f conftest.err conftest.$ac_objext \
19942 conftest$ac_exeext conftest.$ac_ext
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19951 /* pthread test headers */
19952 #include <pthread.h>
19953 #if HAVE_PTHREADS < 7
19957 #define NULL (void*)0
19960 static void *task(p)
19963 return (void *) (p == NULL);
19967 int main(argc, argv)
19972 /* pthread test function */
19973 #ifndef PTHREAD_CREATE_DETACHED
19974 #define PTHREAD_CREATE_DETACHED 1
19978 int detach = PTHREAD_CREATE_DETACHED;
19980 #if HAVE_PTHREADS > 4
19981 /* Final pthreads */
19982 pthread_attr_t attr;
19984 status = pthread_attr_init(&attr);
19985 if( status ) return status;
19987 #if HAVE_PTHREADS < 7
19988 status = pthread_attr_setdetachstate(&attr, &detach);
19989 if( status < 0 ) status = errno;
19991 status = pthread_attr_setdetachstate(&attr, detach);
19993 if( status ) return status;
19994 status = pthread_create( &t, &attr, task, NULL );
19995 #if HAVE_PTHREADS < 7
19996 if( status < 0 ) status = errno;
19998 if( status ) return status;
20000 /* Draft 4 pthreads */
20001 status = pthread_create( &t, pthread_attr_default, task, NULL );
20002 if( status ) return errno;
20004 /* give thread a chance to complete */
20005 /* it should remain joinable and hence detachable */
20008 status = pthread_detach( &t );
20009 if( status ) return errno;
20012 #ifdef HAVE_LINUX_THREADS
20013 pthread_kill_other_threads_np();
20021 rm -f conftest$ac_exeext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20023 (eval $ac_link) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028 (eval $ac_try) 2>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20032 ol_cv_pthread_create=yes
20034 echo "$as_me: program exited with status $ac_status" >&5
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ( exit $ac_status )
20039 ol_cv_pthread_create=no
20041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20044 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20045 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20047 if test $ol_cv_pthread_create != no ; then
20048 ol_link_threads=posix
20049 ol_link_pthreads=""
20052 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20053 if test "$ol_link_threads" = no ; then
20055 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20056 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20057 if test "${ol_cv_pthread_kthread+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 LIBS="-kthread $LIBS"
20065 if test "$cross_compiling" = yes; then
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20073 /* pthread test headers */
20074 #include <pthread.h>
20075 #if HAVE_PTHREADS < 7
20079 #define NULL (void*)0
20082 static void *task(p)
20085 return (void *) (p == NULL);
20092 /* pthread test function */
20093 #ifndef PTHREAD_CREATE_DETACHED
20094 #define PTHREAD_CREATE_DETACHED 1
20098 int detach = PTHREAD_CREATE_DETACHED;
20100 #if HAVE_PTHREADS > 4
20101 /* Final pthreads */
20102 pthread_attr_t attr;
20104 status = pthread_attr_init(&attr);
20105 if( status ) return status;
20107 #if HAVE_PTHREADS < 7
20108 status = pthread_attr_setdetachstate(&attr, &detach);
20109 if( status < 0 ) status = errno;
20111 status = pthread_attr_setdetachstate(&attr, detach);
20113 if( status ) return status;
20114 status = pthread_create( &t, &attr, task, NULL );
20115 #if HAVE_PTHREADS < 7
20116 if( status < 0 ) status = errno;
20118 if( status ) return status;
20120 /* Draft 4 pthreads */
20121 status = pthread_create( &t, pthread_attr_default, task, NULL );
20122 if( status ) return errno;
20124 /* give thread a chance to complete */
20125 /* it should remain joinable and hence detachable */
20128 status = pthread_detach( &t );
20129 if( status ) return errno;
20132 #ifdef HAVE_LINUX_THREADS
20133 pthread_kill_other_threads_np();
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144 (eval $ac_link) 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
20151 { ac_try='test -z "$ac_c_werror_flag"
20152 || test ! -s conftest.err'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; } &&
20158 { ac_try='test -s conftest$ac_exeext'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ol_cv_pthread_kthread=yes
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ol_cv_pthread_kthread=no
20171 rm -f conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20174 cat >conftest.$ac_ext <<_ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20181 /* pthread test headers */
20182 #include <pthread.h>
20183 #if HAVE_PTHREADS < 7
20187 #define NULL (void*)0
20190 static void *task(p)
20193 return (void *) (p == NULL);
20197 int main(argc, argv)
20202 /* pthread test function */
20203 #ifndef PTHREAD_CREATE_DETACHED
20204 #define PTHREAD_CREATE_DETACHED 1
20208 int detach = PTHREAD_CREATE_DETACHED;
20210 #if HAVE_PTHREADS > 4
20211 /* Final pthreads */
20212 pthread_attr_t attr;
20214 status = pthread_attr_init(&attr);
20215 if( status ) return status;
20217 #if HAVE_PTHREADS < 7
20218 status = pthread_attr_setdetachstate(&attr, &detach);
20219 if( status < 0 ) status = errno;
20221 status = pthread_attr_setdetachstate(&attr, detach);
20223 if( status ) return status;
20224 status = pthread_create( &t, &attr, task, NULL );
20225 #if HAVE_PTHREADS < 7
20226 if( status < 0 ) status = errno;
20228 if( status ) return status;
20230 /* Draft 4 pthreads */
20231 status = pthread_create( &t, pthread_attr_default, task, NULL );
20232 if( status ) return errno;
20234 /* give thread a chance to complete */
20235 /* it should remain joinable and hence detachable */
20238 status = pthread_detach( &t );
20239 if( status ) return errno;
20242 #ifdef HAVE_LINUX_THREADS
20243 pthread_kill_other_threads_np();
20251 rm -f conftest$ac_exeext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20253 (eval $ac_link) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ol_cv_pthread_kthread=yes
20264 echo "$as_me: program exited with status $ac_status" >&5
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 ( exit $ac_status )
20269 ol_cv_pthread_kthread=no
20271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20278 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20279 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20281 if test $ol_cv_pthread_kthread = yes ; then
20282 ol_link_pthreads="-kthread"
20283 ol_link_threads=posix
20287 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20288 if test "$ol_link_threads" = no ; then
20290 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20291 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20292 if test "${ol_cv_pthread_pthread+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 LIBS="-pthread $LIBS"
20300 if test "$cross_compiling" = yes; then
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20308 /* pthread test headers */
20309 #include <pthread.h>
20310 #if HAVE_PTHREADS < 7
20314 #define NULL (void*)0
20317 static void *task(p)
20320 return (void *) (p == NULL);
20327 /* pthread test function */
20328 #ifndef PTHREAD_CREATE_DETACHED
20329 #define PTHREAD_CREATE_DETACHED 1
20333 int detach = PTHREAD_CREATE_DETACHED;
20335 #if HAVE_PTHREADS > 4
20336 /* Final pthreads */
20337 pthread_attr_t attr;
20339 status = pthread_attr_init(&attr);
20340 if( status ) return status;
20342 #if HAVE_PTHREADS < 7
20343 status = pthread_attr_setdetachstate(&attr, &detach);
20344 if( status < 0 ) status = errno;
20346 status = pthread_attr_setdetachstate(&attr, detach);
20348 if( status ) return status;
20349 status = pthread_create( &t, &attr, task, NULL );
20350 #if HAVE_PTHREADS < 7
20351 if( status < 0 ) status = errno;
20353 if( status ) return status;
20355 /* Draft 4 pthreads */
20356 status = pthread_create( &t, pthread_attr_default, task, NULL );
20357 if( status ) return errno;
20359 /* give thread a chance to complete */
20360 /* it should remain joinable and hence detachable */
20363 status = pthread_detach( &t );
20364 if( status ) return errno;
20367 #ifdef HAVE_LINUX_THREADS
20368 pthread_kill_other_threads_np();
20377 rm -f conftest.$ac_objext conftest$ac_exeext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20379 (eval $ac_link) 2>conftest.er1
20381 grep -v '^ *+' conftest.er1 >conftest.err
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } &&
20386 { ac_try='test -z "$ac_c_werror_flag"
20387 || test ! -s conftest.err'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; } &&
20393 { ac_try='test -s conftest$ac_exeext'
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; }; then
20399 ol_cv_pthread_pthread=yes
20401 echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20404 ol_cv_pthread_pthread=no
20406 rm -f conftest.err conftest.$ac_objext \
20407 conftest$ac_exeext conftest.$ac_ext
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20416 /* pthread test headers */
20417 #include <pthread.h>
20418 #if HAVE_PTHREADS < 7
20422 #define NULL (void*)0
20425 static void *task(p)
20428 return (void *) (p == NULL);
20432 int main(argc, argv)
20437 /* pthread test function */
20438 #ifndef PTHREAD_CREATE_DETACHED
20439 #define PTHREAD_CREATE_DETACHED 1
20443 int detach = PTHREAD_CREATE_DETACHED;
20445 #if HAVE_PTHREADS > 4
20446 /* Final pthreads */
20447 pthread_attr_t attr;
20449 status = pthread_attr_init(&attr);
20450 if( status ) return status;
20452 #if HAVE_PTHREADS < 7
20453 status = pthread_attr_setdetachstate(&attr, &detach);
20454 if( status < 0 ) status = errno;
20456 status = pthread_attr_setdetachstate(&attr, detach);
20458 if( status ) return status;
20459 status = pthread_create( &t, &attr, task, NULL );
20460 #if HAVE_PTHREADS < 7
20461 if( status < 0 ) status = errno;
20463 if( status ) return status;
20465 /* Draft 4 pthreads */
20466 status = pthread_create( &t, pthread_attr_default, task, NULL );
20467 if( status ) return errno;
20469 /* give thread a chance to complete */
20470 /* it should remain joinable and hence detachable */
20473 status = pthread_detach( &t );
20474 if( status ) return errno;
20477 #ifdef HAVE_LINUX_THREADS
20478 pthread_kill_other_threads_np();
20486 rm -f conftest$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488 (eval $ac_link) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
20497 ol_cv_pthread_pthread=yes
20499 echo "$as_me: program exited with status $ac_status" >&5
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 ( exit $ac_status )
20504 ol_cv_pthread_pthread=no
20506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20513 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20514 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20516 if test $ol_cv_pthread_pthread = yes ; then
20517 ol_link_pthreads="-pthread"
20518 ol_link_threads=posix
20522 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20523 if test "$ol_link_threads" = no ; then
20525 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20526 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20527 if test "${ol_cv_pthread_pthreads+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 LIBS="-pthreads $LIBS"
20535 if test "$cross_compiling" = yes; then
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20543 /* pthread test headers */
20544 #include <pthread.h>
20545 #if HAVE_PTHREADS < 7
20549 #define NULL (void*)0
20552 static void *task(p)
20555 return (void *) (p == NULL);
20562 /* pthread test function */
20563 #ifndef PTHREAD_CREATE_DETACHED
20564 #define PTHREAD_CREATE_DETACHED 1
20568 int detach = PTHREAD_CREATE_DETACHED;
20570 #if HAVE_PTHREADS > 4
20571 /* Final pthreads */
20572 pthread_attr_t attr;
20574 status = pthread_attr_init(&attr);
20575 if( status ) return status;
20577 #if HAVE_PTHREADS < 7
20578 status = pthread_attr_setdetachstate(&attr, &detach);
20579 if( status < 0 ) status = errno;
20581 status = pthread_attr_setdetachstate(&attr, detach);
20583 if( status ) return status;
20584 status = pthread_create( &t, &attr, task, NULL );
20585 #if HAVE_PTHREADS < 7
20586 if( status < 0 ) status = errno;
20588 if( status ) return status;
20590 /* Draft 4 pthreads */
20591 status = pthread_create( &t, pthread_attr_default, task, NULL );
20592 if( status ) return errno;
20594 /* give thread a chance to complete */
20595 /* it should remain joinable and hence detachable */
20598 status = pthread_detach( &t );
20599 if( status ) return errno;
20602 #ifdef HAVE_LINUX_THREADS
20603 pthread_kill_other_threads_np();
20612 rm -f conftest.$ac_objext conftest$ac_exeext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20614 (eval $ac_link) 2>conftest.er1
20616 grep -v '^ *+' conftest.er1 >conftest.err
20618 cat conftest.err >&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } &&
20621 { ac_try='test -z "$ac_c_werror_flag"
20622 || test ! -s conftest.err'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; } &&
20628 { ac_try='test -s conftest$ac_exeext'
20629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630 (eval $ac_try) 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; }; then
20634 ol_cv_pthread_pthreads=yes
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 ol_cv_pthread_pthreads=no
20641 rm -f conftest.err conftest.$ac_objext \
20642 conftest$ac_exeext conftest.$ac_ext
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20651 /* pthread test headers */
20652 #include <pthread.h>
20653 #if HAVE_PTHREADS < 7
20657 #define NULL (void*)0
20660 static void *task(p)
20663 return (void *) (p == NULL);
20667 int main(argc, argv)
20672 /* pthread test function */
20673 #ifndef PTHREAD_CREATE_DETACHED
20674 #define PTHREAD_CREATE_DETACHED 1
20678 int detach = PTHREAD_CREATE_DETACHED;
20680 #if HAVE_PTHREADS > 4
20681 /* Final pthreads */
20682 pthread_attr_t attr;
20684 status = pthread_attr_init(&attr);
20685 if( status ) return status;
20687 #if HAVE_PTHREADS < 7
20688 status = pthread_attr_setdetachstate(&attr, &detach);
20689 if( status < 0 ) status = errno;
20691 status = pthread_attr_setdetachstate(&attr, detach);
20693 if( status ) return status;
20694 status = pthread_create( &t, &attr, task, NULL );
20695 #if HAVE_PTHREADS < 7
20696 if( status < 0 ) status = errno;
20698 if( status ) return status;
20700 /* Draft 4 pthreads */
20701 status = pthread_create( &t, pthread_attr_default, task, NULL );
20702 if( status ) return errno;
20704 /* give thread a chance to complete */
20705 /* it should remain joinable and hence detachable */
20708 status = pthread_detach( &t );
20709 if( status ) return errno;
20712 #ifdef HAVE_LINUX_THREADS
20713 pthread_kill_other_threads_np();
20721 rm -f conftest$ac_exeext
20722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20723 (eval $ac_link) 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20728 (eval $ac_try) 2>&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); }; }; then
20732 ol_cv_pthread_pthreads=yes
20734 echo "$as_me: program exited with status $ac_status" >&5
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20738 ( exit $ac_status )
20739 ol_cv_pthread_pthreads=no
20741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20748 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20749 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20751 if test $ol_cv_pthread_pthreads = yes ; then
20752 ol_link_pthreads="-pthreads"
20753 ol_link_threads=posix
20757 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20758 if test "$ol_link_threads" = no ; then
20760 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20761 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20762 if test "${ol_cv_pthread_mthreads+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 LIBS="-mthreads $LIBS"
20770 if test "$cross_compiling" = yes; then
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20778 /* pthread test headers */
20779 #include <pthread.h>
20780 #if HAVE_PTHREADS < 7
20784 #define NULL (void*)0
20787 static void *task(p)
20790 return (void *) (p == NULL);
20797 /* pthread test function */
20798 #ifndef PTHREAD_CREATE_DETACHED
20799 #define PTHREAD_CREATE_DETACHED 1
20803 int detach = PTHREAD_CREATE_DETACHED;
20805 #if HAVE_PTHREADS > 4
20806 /* Final pthreads */
20807 pthread_attr_t attr;
20809 status = pthread_attr_init(&attr);
20810 if( status ) return status;
20812 #if HAVE_PTHREADS < 7
20813 status = pthread_attr_setdetachstate(&attr, &detach);
20814 if( status < 0 ) status = errno;
20816 status = pthread_attr_setdetachstate(&attr, detach);
20818 if( status ) return status;
20819 status = pthread_create( &t, &attr, task, NULL );
20820 #if HAVE_PTHREADS < 7
20821 if( status < 0 ) status = errno;
20823 if( status ) return status;
20825 /* Draft 4 pthreads */
20826 status = pthread_create( &t, pthread_attr_default, task, NULL );
20827 if( status ) return errno;
20829 /* give thread a chance to complete */
20830 /* it should remain joinable and hence detachable */
20833 status = pthread_detach( &t );
20834 if( status ) return errno;
20837 #ifdef HAVE_LINUX_THREADS
20838 pthread_kill_other_threads_np();
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest$ac_exeext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 ol_cv_pthread_mthreads=yes
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 ol_cv_pthread_mthreads=no
20876 rm -f conftest.err conftest.$ac_objext \
20877 conftest$ac_exeext conftest.$ac_ext
20879 cat >conftest.$ac_ext <<_ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20886 /* pthread test headers */
20887 #include <pthread.h>
20888 #if HAVE_PTHREADS < 7
20892 #define NULL (void*)0
20895 static void *task(p)
20898 return (void *) (p == NULL);
20902 int main(argc, argv)
20907 /* pthread test function */
20908 #ifndef PTHREAD_CREATE_DETACHED
20909 #define PTHREAD_CREATE_DETACHED 1
20913 int detach = PTHREAD_CREATE_DETACHED;
20915 #if HAVE_PTHREADS > 4
20916 /* Final pthreads */
20917 pthread_attr_t attr;
20919 status = pthread_attr_init(&attr);
20920 if( status ) return status;
20922 #if HAVE_PTHREADS < 7
20923 status = pthread_attr_setdetachstate(&attr, &detach);
20924 if( status < 0 ) status = errno;
20926 status = pthread_attr_setdetachstate(&attr, detach);
20928 if( status ) return status;
20929 status = pthread_create( &t, &attr, task, NULL );
20930 #if HAVE_PTHREADS < 7
20931 if( status < 0 ) status = errno;
20933 if( status ) return status;
20935 /* Draft 4 pthreads */
20936 status = pthread_create( &t, pthread_attr_default, task, NULL );
20937 if( status ) return errno;
20939 /* give thread a chance to complete */
20940 /* it should remain joinable and hence detachable */
20943 status = pthread_detach( &t );
20944 if( status ) return errno;
20947 #ifdef HAVE_LINUX_THREADS
20948 pthread_kill_other_threads_np();
20956 rm -f conftest$ac_exeext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958 (eval $ac_link) 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; }; then
20967 ol_cv_pthread_mthreads=yes
20969 echo "$as_me: program exited with status $ac_status" >&5
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20973 ( exit $ac_status )
20974 ol_cv_pthread_mthreads=no
20976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20983 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20984 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20986 if test $ol_cv_pthread_mthreads = yes ; then
20987 ol_link_pthreads="-mthreads"
20988 ol_link_threads=posix
20992 # Pthread try link: -thread (ol_cv_pthread_thread)
20993 if test "$ol_link_threads" = no ; then
20995 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20996 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20997 if test "${ol_cv_pthread_thread+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
21003 LIBS="-thread $LIBS"
21005 if test "$cross_compiling" = yes; then
21006 cat >conftest.$ac_ext <<_ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21013 /* pthread test headers */
21014 #include <pthread.h>
21015 #if HAVE_PTHREADS < 7
21019 #define NULL (void*)0
21022 static void *task(p)
21025 return (void *) (p == NULL);
21032 /* pthread test function */
21033 #ifndef PTHREAD_CREATE_DETACHED
21034 #define PTHREAD_CREATE_DETACHED 1
21038 int detach = PTHREAD_CREATE_DETACHED;
21040 #if HAVE_PTHREADS > 4
21041 /* Final pthreads */
21042 pthread_attr_t attr;
21044 status = pthread_attr_init(&attr);
21045 if( status ) return status;
21047 #if HAVE_PTHREADS < 7
21048 status = pthread_attr_setdetachstate(&attr, &detach);
21049 if( status < 0 ) status = errno;
21051 status = pthread_attr_setdetachstate(&attr, detach);
21053 if( status ) return status;
21054 status = pthread_create( &t, &attr, task, NULL );
21055 #if HAVE_PTHREADS < 7
21056 if( status < 0 ) status = errno;
21058 if( status ) return status;
21060 /* Draft 4 pthreads */
21061 status = pthread_create( &t, pthread_attr_default, task, NULL );
21062 if( status ) return errno;
21064 /* give thread a chance to complete */
21065 /* it should remain joinable and hence detachable */
21068 status = pthread_detach( &t );
21069 if( status ) return errno;
21072 #ifdef HAVE_LINUX_THREADS
21073 pthread_kill_other_threads_np();
21082 rm -f conftest.$ac_objext conftest$ac_exeext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084 (eval $ac_link) 2>conftest.er1
21086 grep -v '^ *+' conftest.er1 >conftest.err
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -z "$ac_c_werror_flag"
21092 || test ! -s conftest.err'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; } &&
21098 { ac_try='test -s conftest$ac_exeext'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }; then
21104 ol_cv_pthread_thread=yes
21106 echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 ol_cv_pthread_thread=no
21111 rm -f conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 /* pthread test headers */
21122 #include <pthread.h>
21123 #if HAVE_PTHREADS < 7
21127 #define NULL (void*)0
21130 static void *task(p)
21133 return (void *) (p == NULL);
21137 int main(argc, argv)
21142 /* pthread test function */
21143 #ifndef PTHREAD_CREATE_DETACHED
21144 #define PTHREAD_CREATE_DETACHED 1
21148 int detach = PTHREAD_CREATE_DETACHED;
21150 #if HAVE_PTHREADS > 4
21151 /* Final pthreads */
21152 pthread_attr_t attr;
21154 status = pthread_attr_init(&attr);
21155 if( status ) return status;
21157 #if HAVE_PTHREADS < 7
21158 status = pthread_attr_setdetachstate(&attr, &detach);
21159 if( status < 0 ) status = errno;
21161 status = pthread_attr_setdetachstate(&attr, detach);
21163 if( status ) return status;
21164 status = pthread_create( &t, &attr, task, NULL );
21165 #if HAVE_PTHREADS < 7
21166 if( status < 0 ) status = errno;
21168 if( status ) return status;
21170 /* Draft 4 pthreads */
21171 status = pthread_create( &t, pthread_attr_default, task, NULL );
21172 if( status ) return errno;
21174 /* give thread a chance to complete */
21175 /* it should remain joinable and hence detachable */
21178 status = pthread_detach( &t );
21179 if( status ) return errno;
21182 #ifdef HAVE_LINUX_THREADS
21183 pthread_kill_other_threads_np();
21191 rm -f conftest$ac_exeext
21192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21193 (eval $ac_link) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ol_cv_pthread_thread=yes
21204 echo "$as_me: program exited with status $ac_status" >&5
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ( exit $ac_status )
21209 ol_cv_pthread_thread=no
21211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21218 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21219 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21221 if test $ol_cv_pthread_thread = yes ; then
21222 ol_link_pthreads="-thread"
21223 ol_link_threads=posix
21228 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21229 if test "$ol_link_threads" = no ; then
21230 # try -lpthread -lmach -lexc -lc_r
21231 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21232 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21233 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21239 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21241 if test "$cross_compiling" = yes; then
21242 cat >conftest.$ac_ext <<_ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21249 /* pthread test headers */
21250 #include <pthread.h>
21251 #if HAVE_PTHREADS < 7
21255 #define NULL (void*)0
21258 static void *task(p)
21261 return (void *) (p == NULL);
21268 /* pthread test function */
21269 #ifndef PTHREAD_CREATE_DETACHED
21270 #define PTHREAD_CREATE_DETACHED 1
21274 int detach = PTHREAD_CREATE_DETACHED;
21276 #if HAVE_PTHREADS > 4
21277 /* Final pthreads */
21278 pthread_attr_t attr;
21280 status = pthread_attr_init(&attr);
21281 if( status ) return status;
21283 #if HAVE_PTHREADS < 7
21284 status = pthread_attr_setdetachstate(&attr, &detach);
21285 if( status < 0 ) status = errno;
21287 status = pthread_attr_setdetachstate(&attr, detach);
21289 if( status ) return status;
21290 status = pthread_create( &t, &attr, task, NULL );
21291 #if HAVE_PTHREADS < 7
21292 if( status < 0 ) status = errno;
21294 if( status ) return status;
21296 /* Draft 4 pthreads */
21297 status = pthread_create( &t, pthread_attr_default, task, NULL );
21298 if( status ) return errno;
21300 /* give thread a chance to complete */
21301 /* it should remain joinable and hence detachable */
21304 status = pthread_detach( &t );
21305 if( status ) return errno;
21308 #ifdef HAVE_LINUX_THREADS
21309 pthread_kill_other_threads_np();
21318 rm -f conftest.$ac_objext conftest$ac_exeext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21320 (eval $ac_link) 2>conftest.er1
21322 grep -v '^ *+' conftest.er1 >conftest.err
21324 cat conftest.err >&5
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } &&
21327 { ac_try='test -z "$ac_c_werror_flag"
21328 || test ! -s conftest.err'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; } &&
21334 { ac_try='test -s conftest$ac_exeext'
21335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336 (eval $ac_try) 2>&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); }; }; then
21340 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21345 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21347 rm -f conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext conftest.$ac_ext
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21357 /* pthread test headers */
21358 #include <pthread.h>
21359 #if HAVE_PTHREADS < 7
21363 #define NULL (void*)0
21366 static void *task(p)
21369 return (void *) (p == NULL);
21373 int main(argc, argv)
21378 /* pthread test function */
21379 #ifndef PTHREAD_CREATE_DETACHED
21380 #define PTHREAD_CREATE_DETACHED 1
21384 int detach = PTHREAD_CREATE_DETACHED;
21386 #if HAVE_PTHREADS > 4
21387 /* Final pthreads */
21388 pthread_attr_t attr;
21390 status = pthread_attr_init(&attr);
21391 if( status ) return status;
21393 #if HAVE_PTHREADS < 7
21394 status = pthread_attr_setdetachstate(&attr, &detach);
21395 if( status < 0 ) status = errno;
21397 status = pthread_attr_setdetachstate(&attr, detach);
21399 if( status ) return status;
21400 status = pthread_create( &t, &attr, task, NULL );
21401 #if HAVE_PTHREADS < 7
21402 if( status < 0 ) status = errno;
21404 if( status ) return status;
21406 /* Draft 4 pthreads */
21407 status = pthread_create( &t, pthread_attr_default, task, NULL );
21408 if( status ) return errno;
21410 /* give thread a chance to complete */
21411 /* it should remain joinable and hence detachable */
21414 status = pthread_detach( &t );
21415 if( status ) return errno;
21418 #ifdef HAVE_LINUX_THREADS
21419 pthread_kill_other_threads_np();
21427 rm -f conftest$ac_exeext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429 (eval $ac_link) 2>&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434 (eval $ac_try) 2>&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; }; then
21438 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21440 echo "$as_me: program exited with status $ac_status" >&5
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ( exit $ac_status )
21445 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21454 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21455 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21457 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21458 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21459 ol_link_threads=posix
21463 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21464 if test "$ol_link_threads" = no ; then
21465 # try -lpthread -lmach -lexc
21466 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21467 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21468 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21474 LIBS="-lpthread -lmach -lexc $LIBS"
21476 if test "$cross_compiling" = yes; then
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21484 /* pthread test headers */
21485 #include <pthread.h>
21486 #if HAVE_PTHREADS < 7
21490 #define NULL (void*)0
21493 static void *task(p)
21496 return (void *) (p == NULL);
21503 /* pthread test function */
21504 #ifndef PTHREAD_CREATE_DETACHED
21505 #define PTHREAD_CREATE_DETACHED 1
21509 int detach = PTHREAD_CREATE_DETACHED;
21511 #if HAVE_PTHREADS > 4
21512 /* Final pthreads */
21513 pthread_attr_t attr;
21515 status = pthread_attr_init(&attr);
21516 if( status ) return status;
21518 #if HAVE_PTHREADS < 7
21519 status = pthread_attr_setdetachstate(&attr, &detach);
21520 if( status < 0 ) status = errno;
21522 status = pthread_attr_setdetachstate(&attr, detach);
21524 if( status ) return status;
21525 status = pthread_create( &t, &attr, task, NULL );
21526 #if HAVE_PTHREADS < 7
21527 if( status < 0 ) status = errno;
21529 if( status ) return status;
21531 /* Draft 4 pthreads */
21532 status = pthread_create( &t, pthread_attr_default, task, NULL );
21533 if( status ) return errno;
21535 /* give thread a chance to complete */
21536 /* it should remain joinable and hence detachable */
21539 status = pthread_detach( &t );
21540 if( status ) return errno;
21543 #ifdef HAVE_LINUX_THREADS
21544 pthread_kill_other_threads_np();
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>conftest.er1
21557 grep -v '^ *+' conftest.er1 >conftest.err
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } &&
21562 { ac_try='test -z "$ac_c_werror_flag"
21563 || test ! -s conftest.err'
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; } &&
21569 { ac_try='test -s conftest$ac_exeext'
21570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571 (eval $ac_try) 2>&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; }; then
21575 ol_cv_pthread_lpthread_lmach_lexc=yes
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ol_cv_pthread_lpthread_lmach_lexc=no
21582 rm -f conftest.err conftest.$ac_objext \
21583 conftest$ac_exeext conftest.$ac_ext
21585 cat >conftest.$ac_ext <<_ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21592 /* pthread test headers */
21593 #include <pthread.h>
21594 #if HAVE_PTHREADS < 7
21598 #define NULL (void*)0
21601 static void *task(p)
21604 return (void *) (p == NULL);
21608 int main(argc, argv)
21613 /* pthread test function */
21614 #ifndef PTHREAD_CREATE_DETACHED
21615 #define PTHREAD_CREATE_DETACHED 1
21619 int detach = PTHREAD_CREATE_DETACHED;
21621 #if HAVE_PTHREADS > 4
21622 /* Final pthreads */
21623 pthread_attr_t attr;
21625 status = pthread_attr_init(&attr);
21626 if( status ) return status;
21628 #if HAVE_PTHREADS < 7
21629 status = pthread_attr_setdetachstate(&attr, &detach);
21630 if( status < 0 ) status = errno;
21632 status = pthread_attr_setdetachstate(&attr, detach);
21634 if( status ) return status;
21635 status = pthread_create( &t, &attr, task, NULL );
21636 #if HAVE_PTHREADS < 7
21637 if( status < 0 ) status = errno;
21639 if( status ) return status;
21641 /* Draft 4 pthreads */
21642 status = pthread_create( &t, pthread_attr_default, task, NULL );
21643 if( status ) return errno;
21645 /* give thread a chance to complete */
21646 /* it should remain joinable and hence detachable */
21649 status = pthread_detach( &t );
21650 if( status ) return errno;
21653 #ifdef HAVE_LINUX_THREADS
21654 pthread_kill_other_threads_np();
21662 rm -f conftest$ac_exeext
21663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21664 (eval $ac_link) 2>&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 ol_cv_pthread_lpthread_lmach_lexc=yes
21675 echo "$as_me: program exited with status $ac_status" >&5
21676 echo "$as_me: failed program was:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 ( exit $ac_status )
21680 ol_cv_pthread_lpthread_lmach_lexc=no
21682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21689 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21690 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21692 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21693 ol_link_pthreads="-lpthread -lmach -lexc"
21694 ol_link_threads=posix
21699 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21700 if test "$ol_link_threads" = no ; then
21701 # try -lpthread -Wl,-woff,85
21702 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21703 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21704 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21705 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21712 if test "$cross_compiling" = yes; then
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21720 /* pthread test headers */
21721 #include <pthread.h>
21722 #if HAVE_PTHREADS < 7
21726 #define NULL (void*)0
21729 static void *task(p)
21732 return (void *) (p == NULL);
21739 /* pthread test function */
21740 #ifndef PTHREAD_CREATE_DETACHED
21741 #define PTHREAD_CREATE_DETACHED 1
21745 int detach = PTHREAD_CREATE_DETACHED;
21747 #if HAVE_PTHREADS > 4
21748 /* Final pthreads */
21749 pthread_attr_t attr;
21751 status = pthread_attr_init(&attr);
21752 if( status ) return status;
21754 #if HAVE_PTHREADS < 7
21755 status = pthread_attr_setdetachstate(&attr, &detach);
21756 if( status < 0 ) status = errno;
21758 status = pthread_attr_setdetachstate(&attr, detach);
21760 if( status ) return status;
21761 status = pthread_create( &t, &attr, task, NULL );
21762 #if HAVE_PTHREADS < 7
21763 if( status < 0 ) status = errno;
21765 if( status ) return status;
21767 /* Draft 4 pthreads */
21768 status = pthread_create( &t, pthread_attr_default, task, NULL );
21769 if( status ) return errno;
21771 /* give thread a chance to complete */
21772 /* it should remain joinable and hence detachable */
21775 status = pthread_detach( &t );
21776 if( status ) return errno;
21779 #ifdef HAVE_LINUX_THREADS
21780 pthread_kill_other_threads_np();
21789 rm -f conftest.$ac_objext conftest$ac_exeext
21790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21791 (eval $ac_link) 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } &&
21798 { ac_try='test -z "$ac_c_werror_flag"
21799 || test ! -s conftest.err'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; } &&
21805 { ac_try='test -s conftest$ac_exeext'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ol_cv_pthread_lib_lpthread_woff=yes
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21816 ol_cv_pthread_lib_lpthread_woff=no
21818 rm -f conftest.err conftest.$ac_objext \
21819 conftest$ac_exeext conftest.$ac_ext
21821 cat >conftest.$ac_ext <<_ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21828 /* pthread test headers */
21829 #include <pthread.h>
21830 #if HAVE_PTHREADS < 7
21834 #define NULL (void*)0
21837 static void *task(p)
21840 return (void *) (p == NULL);
21844 int main(argc, argv)
21849 /* pthread test function */
21850 #ifndef PTHREAD_CREATE_DETACHED
21851 #define PTHREAD_CREATE_DETACHED 1
21855 int detach = PTHREAD_CREATE_DETACHED;
21857 #if HAVE_PTHREADS > 4
21858 /* Final pthreads */
21859 pthread_attr_t attr;
21861 status = pthread_attr_init(&attr);
21862 if( status ) return status;
21864 #if HAVE_PTHREADS < 7
21865 status = pthread_attr_setdetachstate(&attr, &detach);
21866 if( status < 0 ) status = errno;
21868 status = pthread_attr_setdetachstate(&attr, detach);
21870 if( status ) return status;
21871 status = pthread_create( &t, &attr, task, NULL );
21872 #if HAVE_PTHREADS < 7
21873 if( status < 0 ) status = errno;
21875 if( status ) return status;
21877 /* Draft 4 pthreads */
21878 status = pthread_create( &t, pthread_attr_default, task, NULL );
21879 if( status ) return errno;
21881 /* give thread a chance to complete */
21882 /* it should remain joinable and hence detachable */
21885 status = pthread_detach( &t );
21886 if( status ) return errno;
21889 #ifdef HAVE_LINUX_THREADS
21890 pthread_kill_other_threads_np();
21898 rm -f conftest$ac_exeext
21899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21900 (eval $ac_link) 2>&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; }; then
21909 ol_cv_pthread_lib_lpthread_woff=yes
21911 echo "$as_me: program exited with status $ac_status" >&5
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ( exit $ac_status )
21916 ol_cv_pthread_lib_lpthread_woff=no
21918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21925 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21926 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21928 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21929 ol_link_pthreads="-lpthread -Wl,-woff,85"
21930 ol_link_threads=posix
21935 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21936 if test "$ol_link_threads" = no ; then
21938 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21939 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21940 if test "${ol_cv_pthread_lpthread+set}" = set; then
21941 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 LIBS="-lpthread $LIBS"
21948 if test "$cross_compiling" = yes; then
21949 cat >conftest.$ac_ext <<_ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21956 /* pthread test headers */
21957 #include <pthread.h>
21958 #if HAVE_PTHREADS < 7
21962 #define NULL (void*)0
21965 static void *task(p)
21968 return (void *) (p == NULL);
21975 /* pthread test function */
21976 #ifndef PTHREAD_CREATE_DETACHED
21977 #define PTHREAD_CREATE_DETACHED 1
21981 int detach = PTHREAD_CREATE_DETACHED;
21983 #if HAVE_PTHREADS > 4
21984 /* Final pthreads */
21985 pthread_attr_t attr;
21987 status = pthread_attr_init(&attr);
21988 if( status ) return status;
21990 #if HAVE_PTHREADS < 7
21991 status = pthread_attr_setdetachstate(&attr, &detach);
21992 if( status < 0 ) status = errno;
21994 status = pthread_attr_setdetachstate(&attr, detach);
21996 if( status ) return status;
21997 status = pthread_create( &t, &attr, task, NULL );
21998 #if HAVE_PTHREADS < 7
21999 if( status < 0 ) status = errno;
22001 if( status ) return status;
22003 /* Draft 4 pthreads */
22004 status = pthread_create( &t, pthread_attr_default, task, NULL );
22005 if( status ) return errno;
22007 /* give thread a chance to complete */
22008 /* it should remain joinable and hence detachable */
22011 status = pthread_detach( &t );
22012 if( status ) return errno;
22015 #ifdef HAVE_LINUX_THREADS
22016 pthread_kill_other_threads_np();
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027 (eval $ac_link) 2>conftest.er1
22029 grep -v '^ *+' conftest.er1 >conftest.err
22031 cat conftest.err >&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } &&
22034 { ac_try='test -z "$ac_c_werror_flag"
22035 || test ! -s conftest.err'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try='test -s conftest$ac_exeext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ol_cv_pthread_lpthread=yes
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ol_cv_pthread_lpthread=no
22054 rm -f conftest.err conftest.$ac_objext \
22055 conftest$ac_exeext conftest.$ac_ext
22057 cat >conftest.$ac_ext <<_ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22064 /* pthread test headers */
22065 #include <pthread.h>
22066 #if HAVE_PTHREADS < 7
22070 #define NULL (void*)0
22073 static void *task(p)
22076 return (void *) (p == NULL);
22080 int main(argc, argv)
22085 /* pthread test function */
22086 #ifndef PTHREAD_CREATE_DETACHED
22087 #define PTHREAD_CREATE_DETACHED 1
22091 int detach = PTHREAD_CREATE_DETACHED;
22093 #if HAVE_PTHREADS > 4
22094 /* Final pthreads */
22095 pthread_attr_t attr;
22097 status = pthread_attr_init(&attr);
22098 if( status ) return status;
22100 #if HAVE_PTHREADS < 7
22101 status = pthread_attr_setdetachstate(&attr, &detach);
22102 if( status < 0 ) status = errno;
22104 status = pthread_attr_setdetachstate(&attr, detach);
22106 if( status ) return status;
22107 status = pthread_create( &t, &attr, task, NULL );
22108 #if HAVE_PTHREADS < 7
22109 if( status < 0 ) status = errno;
22111 if( status ) return status;
22113 /* Draft 4 pthreads */
22114 status = pthread_create( &t, pthread_attr_default, task, NULL );
22115 if( status ) return errno;
22117 /* give thread a chance to complete */
22118 /* it should remain joinable and hence detachable */
22121 status = pthread_detach( &t );
22122 if( status ) return errno;
22125 #ifdef HAVE_LINUX_THREADS
22126 pthread_kill_other_threads_np();
22134 rm -f conftest$ac_exeext
22135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22136 (eval $ac_link) 2>&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141 (eval $ac_try) 2>&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); }; }; then
22145 ol_cv_pthread_lpthread=yes
22147 echo "$as_me: program exited with status $ac_status" >&5
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 ( exit $ac_status )
22152 ol_cv_pthread_lpthread=no
22154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22161 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22162 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22164 if test $ol_cv_pthread_lpthread = yes ; then
22165 ol_link_pthreads="-lpthread"
22166 ol_link_threads=posix
22170 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22171 if test "$ol_link_threads" = no ; then
22173 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22174 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22175 if test "${ol_cv_pthread_lc_r+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 if test "$cross_compiling" = yes; then
22184 cat >conftest.$ac_ext <<_ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h. */
22191 /* pthread test headers */
22192 #include <pthread.h>
22193 #if HAVE_PTHREADS < 7
22197 #define NULL (void*)0
22200 static void *task(p)
22203 return (void *) (p == NULL);
22210 /* pthread test function */
22211 #ifndef PTHREAD_CREATE_DETACHED
22212 #define PTHREAD_CREATE_DETACHED 1
22216 int detach = PTHREAD_CREATE_DETACHED;
22218 #if HAVE_PTHREADS > 4
22219 /* Final pthreads */
22220 pthread_attr_t attr;
22222 status = pthread_attr_init(&attr);
22223 if( status ) return status;
22225 #if HAVE_PTHREADS < 7
22226 status = pthread_attr_setdetachstate(&attr, &detach);
22227 if( status < 0 ) status = errno;
22229 status = pthread_attr_setdetachstate(&attr, detach);
22231 if( status ) return status;
22232 status = pthread_create( &t, &attr, task, NULL );
22233 #if HAVE_PTHREADS < 7
22234 if( status < 0 ) status = errno;
22236 if( status ) return status;
22238 /* Draft 4 pthreads */
22239 status = pthread_create( &t, pthread_attr_default, task, NULL );
22240 if( status ) return errno;
22242 /* give thread a chance to complete */
22243 /* it should remain joinable and hence detachable */
22246 status = pthread_detach( &t );
22247 if( status ) return errno;
22250 #ifdef HAVE_LINUX_THREADS
22251 pthread_kill_other_threads_np();
22260 rm -f conftest.$ac_objext conftest$ac_exeext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22262 (eval $ac_link) 2>conftest.er1
22264 grep -v '^ *+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } &&
22269 { ac_try='test -z "$ac_c_werror_flag"
22270 || test ! -s conftest.err'
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } &&
22276 { ac_try='test -s conftest$ac_exeext'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 ol_cv_pthread_lc_r=yes
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22287 ol_cv_pthread_lc_r=no
22289 rm -f conftest.err conftest.$ac_objext \
22290 conftest$ac_exeext conftest.$ac_ext
22292 cat >conftest.$ac_ext <<_ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22299 /* pthread test headers */
22300 #include <pthread.h>
22301 #if HAVE_PTHREADS < 7
22305 #define NULL (void*)0
22308 static void *task(p)
22311 return (void *) (p == NULL);
22315 int main(argc, argv)
22320 /* pthread test function */
22321 #ifndef PTHREAD_CREATE_DETACHED
22322 #define PTHREAD_CREATE_DETACHED 1
22326 int detach = PTHREAD_CREATE_DETACHED;
22328 #if HAVE_PTHREADS > 4
22329 /* Final pthreads */
22330 pthread_attr_t attr;
22332 status = pthread_attr_init(&attr);
22333 if( status ) return status;
22335 #if HAVE_PTHREADS < 7
22336 status = pthread_attr_setdetachstate(&attr, &detach);
22337 if( status < 0 ) status = errno;
22339 status = pthread_attr_setdetachstate(&attr, detach);
22341 if( status ) return status;
22342 status = pthread_create( &t, &attr, task, NULL );
22343 #if HAVE_PTHREADS < 7
22344 if( status < 0 ) status = errno;
22346 if( status ) return status;
22348 /* Draft 4 pthreads */
22349 status = pthread_create( &t, pthread_attr_default, task, NULL );
22350 if( status ) return errno;
22352 /* give thread a chance to complete */
22353 /* it should remain joinable and hence detachable */
22356 status = pthread_detach( &t );
22357 if( status ) return errno;
22360 #ifdef HAVE_LINUX_THREADS
22361 pthread_kill_other_threads_np();
22369 rm -f conftest$ac_exeext
22370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22371 (eval $ac_link) 2>&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ol_cv_pthread_lc_r=yes
22382 echo "$as_me: program exited with status $ac_status" >&5
22383 echo "$as_me: failed program was:" >&5
22384 sed 's/^/| /' conftest.$ac_ext >&5
22386 ( exit $ac_status )
22387 ol_cv_pthread_lc_r=no
22389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22396 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22397 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22399 if test $ol_cv_pthread_lc_r = yes ; then
22400 ol_link_pthreads="-lc_r"
22401 ol_link_threads=posix
22406 # Pthread try link: -threads (ol_cv_pthread_threads)
22407 if test "$ol_link_threads" = no ; then
22409 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22410 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22411 if test "${ol_cv_pthread_threads+set}" = set; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 LIBS="-threads $LIBS"
22419 if test "$cross_compiling" = yes; then
22420 cat >conftest.$ac_ext <<_ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22427 /* pthread test headers */
22428 #include <pthread.h>
22429 #if HAVE_PTHREADS < 7
22433 #define NULL (void*)0
22436 static void *task(p)
22439 return (void *) (p == NULL);
22446 /* pthread test function */
22447 #ifndef PTHREAD_CREATE_DETACHED
22448 #define PTHREAD_CREATE_DETACHED 1
22452 int detach = PTHREAD_CREATE_DETACHED;
22454 #if HAVE_PTHREADS > 4
22455 /* Final pthreads */
22456 pthread_attr_t attr;
22458 status = pthread_attr_init(&attr);
22459 if( status ) return status;
22461 #if HAVE_PTHREADS < 7
22462 status = pthread_attr_setdetachstate(&attr, &detach);
22463 if( status < 0 ) status = errno;
22465 status = pthread_attr_setdetachstate(&attr, detach);
22467 if( status ) return status;
22468 status = pthread_create( &t, &attr, task, NULL );
22469 #if HAVE_PTHREADS < 7
22470 if( status < 0 ) status = errno;
22472 if( status ) return status;
22474 /* Draft 4 pthreads */
22475 status = pthread_create( &t, pthread_attr_default, task, NULL );
22476 if( status ) return errno;
22478 /* give thread a chance to complete */
22479 /* it should remain joinable and hence detachable */
22482 status = pthread_detach( &t );
22483 if( status ) return errno;
22486 #ifdef HAVE_LINUX_THREADS
22487 pthread_kill_other_threads_np();
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498 (eval $ac_link) 2>conftest.er1
22500 grep -v '^ *+' conftest.er1 >conftest.err
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } &&
22505 { ac_try='test -z "$ac_c_werror_flag"
22506 || test ! -s conftest.err'
22507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); }; } &&
22512 { ac_try='test -s conftest$ac_exeext'
22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514 (eval $ac_try) 2>&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); }; }; then
22518 ol_cv_pthread_threads=yes
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 ol_cv_pthread_threads=no
22525 rm -f conftest.err conftest.$ac_objext \
22526 conftest$ac_exeext conftest.$ac_ext
22528 cat >conftest.$ac_ext <<_ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22535 /* pthread test headers */
22536 #include <pthread.h>
22537 #if HAVE_PTHREADS < 7
22541 #define NULL (void*)0
22544 static void *task(p)
22547 return (void *) (p == NULL);
22551 int main(argc, argv)
22556 /* pthread test function */
22557 #ifndef PTHREAD_CREATE_DETACHED
22558 #define PTHREAD_CREATE_DETACHED 1
22562 int detach = PTHREAD_CREATE_DETACHED;
22564 #if HAVE_PTHREADS > 4
22565 /* Final pthreads */
22566 pthread_attr_t attr;
22568 status = pthread_attr_init(&attr);
22569 if( status ) return status;
22571 #if HAVE_PTHREADS < 7
22572 status = pthread_attr_setdetachstate(&attr, &detach);
22573 if( status < 0 ) status = errno;
22575 status = pthread_attr_setdetachstate(&attr, detach);
22577 if( status ) return status;
22578 status = pthread_create( &t, &attr, task, NULL );
22579 #if HAVE_PTHREADS < 7
22580 if( status < 0 ) status = errno;
22582 if( status ) return status;
22584 /* Draft 4 pthreads */
22585 status = pthread_create( &t, pthread_attr_default, task, NULL );
22586 if( status ) return errno;
22588 /* give thread a chance to complete */
22589 /* it should remain joinable and hence detachable */
22592 status = pthread_detach( &t );
22593 if( status ) return errno;
22596 #ifdef HAVE_LINUX_THREADS
22597 pthread_kill_other_threads_np();
22605 rm -f conftest$ac_exeext
22606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22607 (eval $ac_link) 2>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; }; then
22616 ol_cv_pthread_threads=yes
22618 echo "$as_me: program exited with status $ac_status" >&5
22619 echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22622 ( exit $ac_status )
22623 ol_cv_pthread_threads=no
22625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22632 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22633 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22635 if test $ol_cv_pthread_threads = yes ; then
22636 ol_link_pthreads="-threads"
22637 ol_link_threads=posix
22642 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22643 if test "$ol_link_threads" = no ; then
22644 # try -lpthreads -lmach -lexc -lc_r
22645 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22646 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22647 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22653 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22655 if test "$cross_compiling" = yes; then
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22663 /* pthread test headers */
22664 #include <pthread.h>
22665 #if HAVE_PTHREADS < 7
22669 #define NULL (void*)0
22672 static void *task(p)
22675 return (void *) (p == NULL);
22682 /* pthread test function */
22683 #ifndef PTHREAD_CREATE_DETACHED
22684 #define PTHREAD_CREATE_DETACHED 1
22688 int detach = PTHREAD_CREATE_DETACHED;
22690 #if HAVE_PTHREADS > 4
22691 /* Final pthreads */
22692 pthread_attr_t attr;
22694 status = pthread_attr_init(&attr);
22695 if( status ) return status;
22697 #if HAVE_PTHREADS < 7
22698 status = pthread_attr_setdetachstate(&attr, &detach);
22699 if( status < 0 ) status = errno;
22701 status = pthread_attr_setdetachstate(&attr, detach);
22703 if( status ) return status;
22704 status = pthread_create( &t, &attr, task, NULL );
22705 #if HAVE_PTHREADS < 7
22706 if( status < 0 ) status = errno;
22708 if( status ) return status;
22710 /* Draft 4 pthreads */
22711 status = pthread_create( &t, pthread_attr_default, task, NULL );
22712 if( status ) return errno;
22714 /* give thread a chance to complete */
22715 /* it should remain joinable and hence detachable */
22718 status = pthread_detach( &t );
22719 if( status ) return errno;
22722 #ifdef HAVE_LINUX_THREADS
22723 pthread_kill_other_threads_np();
22732 rm -f conftest.$ac_objext conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734 (eval $ac_link) 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } &&
22741 { ac_try='test -z "$ac_c_werror_flag"
22742 || test ! -s conftest.err'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; } &&
22748 { ac_try='test -s conftest$ac_exeext'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; }; then
22754 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22761 rm -f conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
22764 cat >conftest.$ac_ext <<_ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22771 /* pthread test headers */
22772 #include <pthread.h>
22773 #if HAVE_PTHREADS < 7
22777 #define NULL (void*)0
22780 static void *task(p)
22783 return (void *) (p == NULL);
22787 int main(argc, argv)
22792 /* pthread test function */
22793 #ifndef PTHREAD_CREATE_DETACHED
22794 #define PTHREAD_CREATE_DETACHED 1
22798 int detach = PTHREAD_CREATE_DETACHED;
22800 #if HAVE_PTHREADS > 4
22801 /* Final pthreads */
22802 pthread_attr_t attr;
22804 status = pthread_attr_init(&attr);
22805 if( status ) return status;
22807 #if HAVE_PTHREADS < 7
22808 status = pthread_attr_setdetachstate(&attr, &detach);
22809 if( status < 0 ) status = errno;
22811 status = pthread_attr_setdetachstate(&attr, detach);
22813 if( status ) return status;
22814 status = pthread_create( &t, &attr, task, NULL );
22815 #if HAVE_PTHREADS < 7
22816 if( status < 0 ) status = errno;
22818 if( status ) return status;
22820 /* Draft 4 pthreads */
22821 status = pthread_create( &t, pthread_attr_default, task, NULL );
22822 if( status ) return errno;
22824 /* give thread a chance to complete */
22825 /* it should remain joinable and hence detachable */
22828 status = pthread_detach( &t );
22829 if( status ) return errno;
22832 #ifdef HAVE_LINUX_THREADS
22833 pthread_kill_other_threads_np();
22841 rm -f conftest$ac_exeext
22842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22843 (eval $ac_link) 2>&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848 (eval $ac_try) 2>&5
22850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); }; }; then
22852 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22854 echo "$as_me: program exited with status $ac_status" >&5
22855 echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 ( exit $ac_status )
22859 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22868 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22869 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22871 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22872 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22873 ol_link_threads=posix
22877 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22878 if test "$ol_link_threads" = no ; then
22879 # try -lpthreads -lmach -lexc
22880 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22881 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22882 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 LIBS="-lpthreads -lmach -lexc $LIBS"
22890 if test "$cross_compiling" = yes; then
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22898 /* pthread test headers */
22899 #include <pthread.h>
22900 #if HAVE_PTHREADS < 7
22904 #define NULL (void*)0
22907 static void *task(p)
22910 return (void *) (p == NULL);
22917 /* pthread test function */
22918 #ifndef PTHREAD_CREATE_DETACHED
22919 #define PTHREAD_CREATE_DETACHED 1
22923 int detach = PTHREAD_CREATE_DETACHED;
22925 #if HAVE_PTHREADS > 4
22926 /* Final pthreads */
22927 pthread_attr_t attr;
22929 status = pthread_attr_init(&attr);
22930 if( status ) return status;
22932 #if HAVE_PTHREADS < 7
22933 status = pthread_attr_setdetachstate(&attr, &detach);
22934 if( status < 0 ) status = errno;
22936 status = pthread_attr_setdetachstate(&attr, detach);
22938 if( status ) return status;
22939 status = pthread_create( &t, &attr, task, NULL );
22940 #if HAVE_PTHREADS < 7
22941 if( status < 0 ) status = errno;
22943 if( status ) return status;
22945 /* Draft 4 pthreads */
22946 status = pthread_create( &t, pthread_attr_default, task, NULL );
22947 if( status ) return errno;
22949 /* give thread a chance to complete */
22950 /* it should remain joinable and hence detachable */
22953 status = pthread_detach( &t );
22954 if( status ) return errno;
22957 #ifdef HAVE_LINUX_THREADS
22958 pthread_kill_other_threads_np();
22967 rm -f conftest.$ac_objext conftest$ac_exeext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22969 (eval $ac_link) 2>conftest.er1
22971 grep -v '^ *+' conftest.er1 >conftest.err
22973 cat conftest.err >&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } &&
22976 { ac_try='test -z "$ac_c_werror_flag"
22977 || test ! -s conftest.err'
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; } &&
22983 { ac_try='test -s conftest$ac_exeext'
22984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985 (eval $ac_try) 2>&5
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; }; then
22989 ol_cv_pthread_lpthreads_lmach_lexc=yes
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 ol_cv_pthread_lpthreads_lmach_lexc=no
22996 rm -f conftest.err conftest.$ac_objext \
22997 conftest$ac_exeext conftest.$ac_ext
22999 cat >conftest.$ac_ext <<_ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23006 /* pthread test headers */
23007 #include <pthread.h>
23008 #if HAVE_PTHREADS < 7
23012 #define NULL (void*)0
23015 static void *task(p)
23018 return (void *) (p == NULL);
23022 int main(argc, argv)
23027 /* pthread test function */
23028 #ifndef PTHREAD_CREATE_DETACHED
23029 #define PTHREAD_CREATE_DETACHED 1
23033 int detach = PTHREAD_CREATE_DETACHED;
23035 #if HAVE_PTHREADS > 4
23036 /* Final pthreads */
23037 pthread_attr_t attr;
23039 status = pthread_attr_init(&attr);
23040 if( status ) return status;
23042 #if HAVE_PTHREADS < 7
23043 status = pthread_attr_setdetachstate(&attr, &detach);
23044 if( status < 0 ) status = errno;
23046 status = pthread_attr_setdetachstate(&attr, detach);
23048 if( status ) return status;
23049 status = pthread_create( &t, &attr, task, NULL );
23050 #if HAVE_PTHREADS < 7
23051 if( status < 0 ) status = errno;
23053 if( status ) return status;
23055 /* Draft 4 pthreads */
23056 status = pthread_create( &t, pthread_attr_default, task, NULL );
23057 if( status ) return errno;
23059 /* give thread a chance to complete */
23060 /* it should remain joinable and hence detachable */
23063 status = pthread_detach( &t );
23064 if( status ) return errno;
23067 #ifdef HAVE_LINUX_THREADS
23068 pthread_kill_other_threads_np();
23076 rm -f conftest$ac_exeext
23077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23078 (eval $ac_link) 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 ol_cv_pthread_lpthreads_lmach_lexc=yes
23089 echo "$as_me: program exited with status $ac_status" >&5
23090 echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23093 ( exit $ac_status )
23094 ol_cv_pthread_lpthreads_lmach_lexc=no
23096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23103 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23104 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23106 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23107 ol_link_pthreads="-lpthreads -lmach -lexc"
23108 ol_link_threads=posix
23112 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23113 if test "$ol_link_threads" = no ; then
23114 # try -lpthreads -lexc
23115 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23116 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23117 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23123 LIBS="-lpthreads -lexc $LIBS"
23125 if test "$cross_compiling" = yes; then
23126 cat >conftest.$ac_ext <<_ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23133 /* pthread test headers */
23134 #include <pthread.h>
23135 #if HAVE_PTHREADS < 7
23139 #define NULL (void*)0
23142 static void *task(p)
23145 return (void *) (p == NULL);
23152 /* pthread test function */
23153 #ifndef PTHREAD_CREATE_DETACHED
23154 #define PTHREAD_CREATE_DETACHED 1
23158 int detach = PTHREAD_CREATE_DETACHED;
23160 #if HAVE_PTHREADS > 4
23161 /* Final pthreads */
23162 pthread_attr_t attr;
23164 status = pthread_attr_init(&attr);
23165 if( status ) return status;
23167 #if HAVE_PTHREADS < 7
23168 status = pthread_attr_setdetachstate(&attr, &detach);
23169 if( status < 0 ) status = errno;
23171 status = pthread_attr_setdetachstate(&attr, detach);
23173 if( status ) return status;
23174 status = pthread_create( &t, &attr, task, NULL );
23175 #if HAVE_PTHREADS < 7
23176 if( status < 0 ) status = errno;
23178 if( status ) return status;
23180 /* Draft 4 pthreads */
23181 status = pthread_create( &t, pthread_attr_default, task, NULL );
23182 if( status ) return errno;
23184 /* give thread a chance to complete */
23185 /* it should remain joinable and hence detachable */
23188 status = pthread_detach( &t );
23189 if( status ) return errno;
23192 #ifdef HAVE_LINUX_THREADS
23193 pthread_kill_other_threads_np();
23202 rm -f conftest.$ac_objext conftest$ac_exeext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23204 (eval $ac_link) 2>conftest.er1
23206 grep -v '^ *+' conftest.er1 >conftest.err
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } &&
23211 { ac_try='test -z "$ac_c_werror_flag"
23212 || test ! -s conftest.err'
23213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23214 (eval $ac_try) 2>&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; } &&
23218 { ac_try='test -s conftest$ac_exeext'
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; }; then
23224 ol_cv_pthread_lpthreads_lexc=yes
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23229 ol_cv_pthread_lpthreads_lexc=no
23231 rm -f conftest.err conftest.$ac_objext \
23232 conftest$ac_exeext conftest.$ac_ext
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23241 /* pthread test headers */
23242 #include <pthread.h>
23243 #if HAVE_PTHREADS < 7
23247 #define NULL (void*)0
23250 static void *task(p)
23253 return (void *) (p == NULL);
23257 int main(argc, argv)
23262 /* pthread test function */
23263 #ifndef PTHREAD_CREATE_DETACHED
23264 #define PTHREAD_CREATE_DETACHED 1
23268 int detach = PTHREAD_CREATE_DETACHED;
23270 #if HAVE_PTHREADS > 4
23271 /* Final pthreads */
23272 pthread_attr_t attr;
23274 status = pthread_attr_init(&attr);
23275 if( status ) return status;
23277 #if HAVE_PTHREADS < 7
23278 status = pthread_attr_setdetachstate(&attr, &detach);
23279 if( status < 0 ) status = errno;
23281 status = pthread_attr_setdetachstate(&attr, detach);
23283 if( status ) return status;
23284 status = pthread_create( &t, &attr, task, NULL );
23285 #if HAVE_PTHREADS < 7
23286 if( status < 0 ) status = errno;
23288 if( status ) return status;
23290 /* Draft 4 pthreads */
23291 status = pthread_create( &t, pthread_attr_default, task, NULL );
23292 if( status ) return errno;
23294 /* give thread a chance to complete */
23295 /* it should remain joinable and hence detachable */
23298 status = pthread_detach( &t );
23299 if( status ) return errno;
23302 #ifdef HAVE_LINUX_THREADS
23303 pthread_kill_other_threads_np();
23311 rm -f conftest$ac_exeext
23312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23313 (eval $ac_link) 2>&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318 (eval $ac_try) 2>&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; }; then
23322 ol_cv_pthread_lpthreads_lexc=yes
23324 echo "$as_me: program exited with status $ac_status" >&5
23325 echo "$as_me: failed program was:" >&5
23326 sed 's/^/| /' conftest.$ac_ext >&5
23328 ( exit $ac_status )
23329 ol_cv_pthread_lpthreads_lexc=no
23331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23338 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23339 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23341 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23342 ol_link_pthreads="-lpthreads -lexc"
23343 ol_link_threads=posix
23348 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23349 if test "$ol_link_threads" = no ; then
23351 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23352 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23353 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23354 echo $ECHO_N "(cached) $ECHO_C" >&6
23359 LIBS="-lpthreads $LIBS"
23361 if test "$cross_compiling" = yes; then
23362 cat >conftest.$ac_ext <<_ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23369 /* pthread test headers */
23370 #include <pthread.h>
23371 #if HAVE_PTHREADS < 7
23375 #define NULL (void*)0
23378 static void *task(p)
23381 return (void *) (p == NULL);
23388 /* pthread test function */
23389 #ifndef PTHREAD_CREATE_DETACHED
23390 #define PTHREAD_CREATE_DETACHED 1
23394 int detach = PTHREAD_CREATE_DETACHED;
23396 #if HAVE_PTHREADS > 4
23397 /* Final pthreads */
23398 pthread_attr_t attr;
23400 status = pthread_attr_init(&attr);
23401 if( status ) return status;
23403 #if HAVE_PTHREADS < 7
23404 status = pthread_attr_setdetachstate(&attr, &detach);
23405 if( status < 0 ) status = errno;
23407 status = pthread_attr_setdetachstate(&attr, detach);
23409 if( status ) return status;
23410 status = pthread_create( &t, &attr, task, NULL );
23411 #if HAVE_PTHREADS < 7
23412 if( status < 0 ) status = errno;
23414 if( status ) return status;
23416 /* Draft 4 pthreads */
23417 status = pthread_create( &t, pthread_attr_default, task, NULL );
23418 if( status ) return errno;
23420 /* give thread a chance to complete */
23421 /* it should remain joinable and hence detachable */
23424 status = pthread_detach( &t );
23425 if( status ) return errno;
23428 #ifdef HAVE_LINUX_THREADS
23429 pthread_kill_other_threads_np();
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440 (eval $ac_link) 2>conftest.er1
23442 grep -v '^ *+' conftest.er1 >conftest.err
23444 cat conftest.err >&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
23447 { ac_try='test -z "$ac_c_werror_flag"
23448 || test ! -s conftest.err'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; } &&
23454 { ac_try='test -s conftest$ac_exeext'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; }; then
23460 ol_cv_pthread_lib_lpthreads=yes
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 ol_cv_pthread_lib_lpthreads=no
23467 rm -f conftest.err conftest.$ac_objext \
23468 conftest$ac_exeext conftest.$ac_ext
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23477 /* pthread test headers */
23478 #include <pthread.h>
23479 #if HAVE_PTHREADS < 7
23483 #define NULL (void*)0
23486 static void *task(p)
23489 return (void *) (p == NULL);
23493 int main(argc, argv)
23498 /* pthread test function */
23499 #ifndef PTHREAD_CREATE_DETACHED
23500 #define PTHREAD_CREATE_DETACHED 1
23504 int detach = PTHREAD_CREATE_DETACHED;
23506 #if HAVE_PTHREADS > 4
23507 /* Final pthreads */
23508 pthread_attr_t attr;
23510 status = pthread_attr_init(&attr);
23511 if( status ) return status;
23513 #if HAVE_PTHREADS < 7
23514 status = pthread_attr_setdetachstate(&attr, &detach);
23515 if( status < 0 ) status = errno;
23517 status = pthread_attr_setdetachstate(&attr, detach);
23519 if( status ) return status;
23520 status = pthread_create( &t, &attr, task, NULL );
23521 #if HAVE_PTHREADS < 7
23522 if( status < 0 ) status = errno;
23524 if( status ) return status;
23526 /* Draft 4 pthreads */
23527 status = pthread_create( &t, pthread_attr_default, task, NULL );
23528 if( status ) return errno;
23530 /* give thread a chance to complete */
23531 /* it should remain joinable and hence detachable */
23534 status = pthread_detach( &t );
23535 if( status ) return errno;
23538 #ifdef HAVE_LINUX_THREADS
23539 pthread_kill_other_threads_np();
23547 rm -f conftest$ac_exeext
23548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23549 (eval $ac_link) 2>&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554 (eval $ac_try) 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; }; then
23558 ol_cv_pthread_lib_lpthreads=yes
23560 echo "$as_me: program exited with status $ac_status" >&5
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ( exit $ac_status )
23565 ol_cv_pthread_lib_lpthreads=no
23567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23574 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23575 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23577 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23578 ol_link_pthreads="-lpthreads"
23579 ol_link_threads=posix
23584 if test $ol_link_threads != no ; then
23585 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23587 save_CPPFLAGS="$CPPFLAGS"
23589 LIBS="$LTHREAD_LIBS $LIBS"
23594 for ac_func in sched_yield pthread_yield thr_yield
23596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23597 echo "$as_me:$LINENO: checking for $ac_func" >&5
23598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23599 if eval "test \"\${$as_ac_var+set}\" = set"; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
23602 cat >conftest.$ac_ext <<_ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23610 #define $ac_func innocuous_$ac_func
23612 /* System header to define __stub macros and hopefully few prototypes,
23613 which can conflict with char $ac_func (); below.
23614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23615 <limits.h> exists even on freestanding compilers. */
23618 # include <limits.h>
23620 # include <assert.h>
23625 /* Override any gcc2 internal prototype to avoid an error. */
23630 /* We use char because int might match the return type of a gcc2
23631 builtin and then its argument prototype would still apply. */
23633 /* The GNU C library defines this for functions which it implements
23634 to always fail with ENOSYS. Some functions are actually named
23635 something starting with __ and the normal name is an alias. */
23636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23639 char (*f) () = $ac_func;
23648 return f != $ac_func;
23653 rm -f conftest.$ac_objext conftest$ac_exeext
23654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23655 (eval $ac_link) 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } &&
23662 { ac_try='test -z "$ac_c_werror_flag"
23663 || test ! -s conftest.err'
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; } &&
23669 { ac_try='test -s conftest$ac_exeext'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; }; then
23675 eval "$as_ac_var=yes"
23677 echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23680 eval "$as_ac_var=no"
23682 rm -f conftest.err conftest.$ac_objext \
23683 conftest$ac_exeext conftest.$ac_ext
23685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23687 if test `eval echo '${'$as_ac_var'}'` = yes; then
23688 cat >>confdefs.h <<_ACEOF
23689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23696 if test $ac_cv_func_sched_yield = no &&
23697 test $ac_cv_func_pthread_yield = no &&
23698 test $ac_cv_func_thr_yield = no ; then
23699 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23700 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23701 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23704 ac_check_lib_save_LIBS=$LIBS
23706 cat >conftest.$ac_ext <<_ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23713 /* Override any gcc2 internal prototype to avoid an error. */
23717 /* We use char because int might match the return type of a gcc2
23718 builtin and then its argument prototype would still apply. */
23719 char sched_yield ();
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23730 (eval $ac_link) 2>conftest.er1
23732 grep -v '^ *+' conftest.er1 >conftest.err
23734 cat conftest.err >&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } &&
23737 { ac_try='test -z "$ac_c_werror_flag"
23738 || test ! -s conftest.err'
23739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740 (eval $ac_try) 2>&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); }; } &&
23744 { ac_try='test -s conftest$ac_exeext'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; }; then
23750 ac_cv_lib_rt_sched_yield=yes
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 ac_cv_lib_rt_sched_yield=no
23757 rm -f conftest.err conftest.$ac_objext \
23758 conftest$ac_exeext conftest.$ac_ext
23759 LIBS=$ac_check_lib_save_LIBS
23761 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23762 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23763 if test $ac_cv_lib_rt_sched_yield = yes; then
23764 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23766 cat >>confdefs.h <<\_ACEOF
23767 #define HAVE_SCHED_YIELD 1
23770 ac_cv_func_sched_yield=yes
23772 ac_cv_func_sched_yield=no
23776 if test $ac_cv_func_sched_yield = no &&
23777 test $ac_cv_func_pthread_yield = no &&
23778 test "$ac_cv_func_thr_yield" = no ; then
23779 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23780 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23784 for ac_func in pthread_kill
23786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23787 echo "$as_me:$LINENO: checking for $ac_func" >&5
23788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23789 if eval "test \"\${$as_ac_var+set}\" = set"; then
23790 echo $ECHO_N "(cached) $ECHO_C" >&6
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23800 #define $ac_func innocuous_$ac_func
23802 /* System header to define __stub macros and hopefully few prototypes,
23803 which can conflict with char $ac_func (); below.
23804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23805 <limits.h> exists even on freestanding compilers. */
23808 # include <limits.h>
23810 # include <assert.h>
23815 /* Override any gcc2 internal prototype to avoid an error. */
23820 /* We use char because int might match the return type of a gcc2
23821 builtin and then its argument prototype would still apply. */
23823 /* The GNU C library defines this for functions which it implements
23824 to always fail with ENOSYS. Some functions are actually named
23825 something starting with __ and the normal name is an alias. */
23826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23829 char (*f) () = $ac_func;
23838 return f != $ac_func;
23843 rm -f conftest.$ac_objext conftest$ac_exeext
23844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23845 (eval $ac_link) 2>conftest.er1
23847 grep -v '^ *+' conftest.er1 >conftest.err
23849 cat conftest.err >&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } &&
23852 { ac_try='test -z "$ac_c_werror_flag"
23853 || test ! -s conftest.err'
23854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23855 (eval $ac_try) 2>&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); }; } &&
23859 { ac_try='test -s conftest$ac_exeext'
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; }; then
23865 eval "$as_ac_var=yes"
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23870 eval "$as_ac_var=no"
23872 rm -f conftest.err conftest.$ac_objext \
23873 conftest$ac_exeext conftest.$ac_ext
23875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23877 if test `eval echo '${'$as_ac_var'}'` = yes; then
23878 cat >>confdefs.h <<_ACEOF
23879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23886 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23887 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23888 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23889 echo $ECHO_N "(cached) $ECHO_C" >&6
23892 cat >conftest.$ac_ext <<_ACEOF
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h. */
23899 #include <pthread.h>
23900 pthread_rwlock_t rwlock;
23905 pthread_rwlock_destroy(&rwlock);
23910 rm -f conftest.$ac_objext conftest$ac_exeext
23911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23912 (eval $ac_link) 2>conftest.er1
23914 grep -v '^ *+' conftest.er1 >conftest.err
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } &&
23919 { ac_try='test -z "$ac_c_werror_flag"
23920 || test ! -s conftest.err'
23921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922 (eval $ac_try) 2>&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; } &&
23926 { ac_try='test -s conftest$ac_exeext'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; }; then
23932 ol_cv_func_pthread_rwlock_destroy=yes
23934 echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23937 ol_cv_func_pthread_rwlock_destroy=no
23939 rm -f conftest.err conftest.$ac_objext \
23940 conftest$ac_exeext conftest.$ac_ext
23943 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23944 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23945 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23953 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23954 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23955 if test "${ol_cv_func_pthread_detach+set}" = set; then
23956 echo $ECHO_N "(cached) $ECHO_C" >&6
23959 cat >conftest.$ac_ext <<_ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23966 #include <pthread.h>
23968 #define NULL (void*)0
23974 pthread_detach(NULL);
23979 rm -f conftest.$ac_objext conftest$ac_exeext
23980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23981 (eval $ac_link) 2>conftest.er1
23983 grep -v '^ *+' conftest.er1 >conftest.err
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } &&
23988 { ac_try='test -z "$ac_c_werror_flag"
23989 || test ! -s conftest.err'
23990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23991 (eval $ac_try) 2>&5
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; } &&
23995 { ac_try='test -s conftest$ac_exeext'
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; }; then
24001 ol_cv_func_pthread_detach=yes
24003 echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24006 ol_cv_func_pthread_detach=no
24008 rm -f conftest.err conftest.$ac_objext \
24009 conftest$ac_exeext conftest.$ac_ext
24012 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24013 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24015 if test $ol_cv_func_pthread_detach = no ; then
24016 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24017 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24018 { (exit 1); exit 1; }; }
24022 cat >>confdefs.h <<\_ACEOF
24023 #define HAVE_PTHREAD_DETACH 1
24032 pthread_setconcurrency \
24033 pthread_getconcurrency \
24034 thr_setconcurrency \
24035 thr_getconcurrency \
24038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24039 echo "$as_me:$LINENO: checking for $ac_func" >&5
24040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24041 if eval "test \"\${$as_ac_var+set}\" = set"; then
24042 echo $ECHO_N "(cached) $ECHO_C" >&6
24044 cat >conftest.$ac_ext <<_ACEOF
24047 cat confdefs.h >>conftest.$ac_ext
24048 cat >>conftest.$ac_ext <<_ACEOF
24049 /* end confdefs.h. */
24050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24052 #define $ac_func innocuous_$ac_func
24054 /* System header to define __stub macros and hopefully few prototypes,
24055 which can conflict with char $ac_func (); below.
24056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24057 <limits.h> exists even on freestanding compilers. */
24060 # include <limits.h>
24062 # include <assert.h>
24067 /* Override any gcc2 internal prototype to avoid an error. */
24072 /* We use char because int might match the return type of a gcc2
24073 builtin and then its argument prototype would still apply. */
24075 /* The GNU C library defines this for functions which it implements
24076 to always fail with ENOSYS. Some functions are actually named
24077 something starting with __ and the normal name is an alias. */
24078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24081 char (*f) () = $ac_func;
24090 return f != $ac_func;
24095 rm -f conftest.$ac_objext conftest$ac_exeext
24096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24097 (eval $ac_link) 2>conftest.er1
24099 grep -v '^ *+' conftest.er1 >conftest.err
24101 cat conftest.err >&5
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); } &&
24104 { ac_try='test -z "$ac_c_werror_flag"
24105 || test ! -s conftest.err'
24106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107 (eval $ac_try) 2>&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); }; } &&
24111 { ac_try='test -s conftest$ac_exeext'
24112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113 (eval $ac_try) 2>&5
24115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116 (exit $ac_status); }; }; then
24117 eval "$as_ac_var=yes"
24119 echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24122 eval "$as_ac_var=no"
24124 rm -f conftest.err conftest.$ac_objext \
24125 conftest$ac_exeext conftest.$ac_ext
24127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24129 if test `eval echo '${'$as_ac_var'}'` = yes; then
24130 cat >>confdefs.h <<_ACEOF
24131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24140 for ac_func in pthread_kill_other_threads_np
24142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24143 echo "$as_me:$LINENO: checking for $ac_func" >&5
24144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24145 if eval "test \"\${$as_ac_var+set}\" = set"; then
24146 echo $ECHO_N "(cached) $ECHO_C" >&6
24148 cat >conftest.$ac_ext <<_ACEOF
24151 cat confdefs.h >>conftest.$ac_ext
24152 cat >>conftest.$ac_ext <<_ACEOF
24153 /* end confdefs.h. */
24154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24156 #define $ac_func innocuous_$ac_func
24158 /* System header to define __stub macros and hopefully few prototypes,
24159 which can conflict with char $ac_func (); below.
24160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24161 <limits.h> exists even on freestanding compilers. */
24164 # include <limits.h>
24166 # include <assert.h>
24171 /* Override any gcc2 internal prototype to avoid an error. */
24176 /* We use char because int might match the return type of a gcc2
24177 builtin and then its argument prototype would still apply. */
24179 /* The GNU C library defines this for functions which it implements
24180 to always fail with ENOSYS. Some functions are actually named
24181 something starting with __ and the normal name is an alias. */
24182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24185 char (*f) () = $ac_func;
24194 return f != $ac_func;
24199 rm -f conftest.$ac_objext conftest$ac_exeext
24200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24201 (eval $ac_link) 2>conftest.er1
24203 grep -v '^ *+' conftest.er1 >conftest.err
24205 cat conftest.err >&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } &&
24208 { ac_try='test -z "$ac_c_werror_flag"
24209 || test ! -s conftest.err'
24210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211 (eval $ac_try) 2>&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; } &&
24215 { ac_try='test -s conftest$ac_exeext'
24216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217 (eval $ac_try) 2>&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; }; then
24221 eval "$as_ac_var=yes"
24223 echo "$as_me: failed program was:" >&5
24224 sed 's/^/| /' conftest.$ac_ext >&5
24226 eval "$as_ac_var=no"
24228 rm -f conftest.err conftest.$ac_objext \
24229 conftest$ac_exeext conftest.$ac_ext
24231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24233 if test `eval echo '${'$as_ac_var'}'` = yes; then
24234 cat >>confdefs.h <<_ACEOF
24235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24241 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24242 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24243 if test "${ol_cv_sys_linux_threads+set}" = set; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24246 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24248 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24249 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24254 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24255 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24256 if test "${ol_cv_linux_threads+set}" = set; then
24257 echo $ECHO_N "(cached) $ECHO_C" >&6
24260 if test $ol_cv_header_linux_threads = yes &&
24261 test $ol_cv_sys_linux_threads = yes; then
24262 ol_cv_linux_threads=yes
24263 elif test $ol_cv_header_linux_threads = no &&
24264 test $ol_cv_sys_linux_threads = no; then
24265 ol_cv_linux_threads=no
24267 ol_cv_linux_threads=error
24271 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24272 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24275 if test $ol_cv_linux_threads = error; then
24276 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24277 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24278 { (exit 1); exit 1; }; };
24281 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24282 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24283 if test "${ol_cv_pthread_create_works+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24287 if test "$cross_compiling" = yes; then
24288 ol_cv_pthread_create_works=yes
24290 cat >conftest.$ac_ext <<_ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h. */
24297 /* pthread test headers */
24298 #include <pthread.h>
24299 #if HAVE_PTHREADS < 7
24303 #define NULL (void*)0
24306 static void *task(p)
24309 return (void *) (p == NULL);
24313 int main(argc, argv)
24318 /* pthread test function */
24319 #ifndef PTHREAD_CREATE_DETACHED
24320 #define PTHREAD_CREATE_DETACHED 1
24324 int detach = PTHREAD_CREATE_DETACHED;
24326 #if HAVE_PTHREADS > 4
24327 /* Final pthreads */
24328 pthread_attr_t attr;
24330 status = pthread_attr_init(&attr);
24331 if( status ) return status;
24333 #if HAVE_PTHREADS < 7
24334 status = pthread_attr_setdetachstate(&attr, &detach);
24335 if( status < 0 ) status = errno;
24337 status = pthread_attr_setdetachstate(&attr, detach);
24339 if( status ) return status;
24340 status = pthread_create( &t, &attr, task, NULL );
24341 #if HAVE_PTHREADS < 7
24342 if( status < 0 ) status = errno;
24344 if( status ) return status;
24346 /* Draft 4 pthreads */
24347 status = pthread_create( &t, pthread_attr_default, task, NULL );
24348 if( status ) return errno;
24350 /* give thread a chance to complete */
24351 /* it should remain joinable and hence detachable */
24354 status = pthread_detach( &t );
24355 if( status ) return errno;
24358 #ifdef HAVE_LINUX_THREADS
24359 pthread_kill_other_threads_np();
24367 rm -f conftest$ac_exeext
24368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24369 (eval $ac_link) 2>&5
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; }; then
24378 ol_cv_pthread_create_works=yes
24380 echo "$as_me: program exited with status $ac_status" >&5
24381 echo "$as_me: failed program was:" >&5
24382 sed 's/^/| /' conftest.$ac_ext >&5
24384 ( exit $ac_status )
24385 ol_cv_pthread_create_works=no
24387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24390 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24391 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24393 if test $ol_cv_pthread_create_works = no ; then
24394 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24395 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24396 { (exit 1); exit 1; }; }
24399 ol_replace_broken_yield=no
24401 if test $ol_replace_broken_yield = yes ; then
24403 cat >>confdefs.h <<\_ACEOF
24404 #define REPLACE_BROKEN_YIELD 1
24409 if test $ol_with_yielding_select = auto ; then
24410 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24411 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24412 if test "${ol_cv_pthread_select_yields+set}" = set; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 if test "$cross_compiling" = yes; then
24417 ol_cv_pthread_select_yields=cross
24419 cat >conftest.$ac_ext <<_ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h. */
24426 #include <sys/types.h>
24427 #include <sys/time.h>
24428 #include <unistd.h>
24429 #include <pthread.h>
24431 #define NULL (void*) 0
24434 static int fildes[2];
24436 static void *task(p)
24448 FD_SET(fildes[0], &rfds);
24450 /* we're not interested in any fds */
24451 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24458 exit(0); /* if we exit here, the select blocked the whole process */
24461 int main(argc, argv)
24467 /* create a pipe to select */
24468 if(pipe(&fildes[0])) {
24473 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24474 (void) pthread_setconcurrency(2);
24476 #ifdef HAVE_THR_SETCONCURRENCY
24477 /* Set Solaris LWP concurrency to 2 */
24478 thr_setconcurrency(2);
24482 #if HAVE_PTHREADS < 6
24483 pthread_create(&t, pthread_attr_default, task, NULL);
24485 pthread_create(&t, NULL, task, NULL);
24488 /* make sure task runs first */
24489 #ifdef HAVE_THR_YIELD
24491 #elif defined( HAVE_SCHED_YIELD )
24493 #elif defined( HAVE_PTHREAD_YIELD )
24500 rm -f conftest$ac_exeext
24501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24502 (eval $ac_link) 2>&5
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24507 (eval $ac_try) 2>&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); }; }; then
24511 ol_cv_pthread_select_yields=no
24513 echo "$as_me: program exited with status $ac_status" >&5
24514 echo "$as_me: failed program was:" >&5
24515 sed 's/^/| /' conftest.$ac_ext >&5
24517 ( exit $ac_status )
24518 ol_cv_pthread_select_yields=yes
24520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24523 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24524 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24526 if test $ol_cv_pthread_select_yields = cross ; then
24527 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24528 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24529 { (exit 1); exit 1; }; }
24532 if test $ol_cv_pthread_select_yields = yes ; then
24533 ol_with_yielding_select=yes
24537 CPPFLAGS="$save_CPPFLAGS"
24540 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24541 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24542 { (exit 1); exit 1; }; }
24546 if test $ol_with_threads = posix ; then
24547 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24548 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24549 { (exit 1); exit 1; }; }
24554 case $ol_with_threads in auto | yes | mach)
24558 for ac_header in mach/cthreads.h cthreads.h
24560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24562 echo "$as_me:$LINENO: checking for $ac_header" >&5
24563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24565 echo $ECHO_N "(cached) $ECHO_C" >&6
24567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24570 # Is the header compilable?
24571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24573 cat >conftest.$ac_ext <<_ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h. */
24579 $ac_includes_default
24580 #include <$ac_header>
24582 rm -f conftest.$ac_objext
24583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24584 (eval $ac_compile) 2>conftest.er1
24586 grep -v '^ *+' conftest.er1 >conftest.err
24588 cat conftest.err >&5
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); } &&
24591 { ac_try='test -z "$ac_c_werror_flag"
24592 || test ! -s conftest.err'
24593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24594 (eval $ac_try) 2>&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); }; } &&
24598 { ac_try='test -s conftest.$ac_objext'
24599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600 (eval $ac_try) 2>&5
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); }; }; then
24604 ac_header_compiler=yes
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_header_compiler=no
24611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24613 echo "${ECHO_T}$ac_header_compiler" >&6
24615 # Is the header present?
24616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24618 cat >conftest.$ac_ext <<_ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h. */
24624 #include <$ac_header>
24626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24629 grep -v '^ *+' conftest.er1 >conftest.err
24631 cat conftest.err >&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); } >/dev/null; then
24634 if test -s conftest.err; then
24635 ac_cpp_err=$ac_c_preproc_warn_flag
24636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24643 if test -z "$ac_cpp_err"; then
24644 ac_header_preproc=yes
24646 echo "$as_me: failed program was:" >&5
24647 sed 's/^/| /' conftest.$ac_ext >&5
24649 ac_header_preproc=no
24651 rm -f conftest.err conftest.$ac_ext
24652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24653 echo "${ECHO_T}$ac_header_preproc" >&6
24655 # So? What about this header?
24656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24662 ac_header_preproc=yes
24665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24679 ## --------------------------------------------- ##
24680 ## Report this to <http://www.openldap.org/its/> ##
24681 ## --------------------------------------------- ##
24684 sed "s/^/$as_me: WARNING: /" >&2
24687 echo "$as_me:$LINENO: checking for $ac_header" >&5
24688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 eval "$as_ac_Header=\$ac_header_preproc"
24694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24699 cat >>confdefs.h <<_ACEOF
24700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24707 if test $ac_cv_header_mach_cthreads_h = yes ; then
24708 ol_with_threads=found
24710 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24711 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24712 if test "${ac_cv_func_cthread_fork+set}" = set; then
24713 echo $ECHO_N "(cached) $ECHO_C" >&6
24715 cat >conftest.$ac_ext <<_ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h. */
24721 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24723 #define cthread_fork innocuous_cthread_fork
24725 /* System header to define __stub macros and hopefully few prototypes,
24726 which can conflict with char cthread_fork (); below.
24727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24728 <limits.h> exists even on freestanding compilers. */
24731 # include <limits.h>
24733 # include <assert.h>
24736 #undef cthread_fork
24738 /* Override any gcc2 internal prototype to avoid an error. */
24743 /* We use char because int might match the return type of a gcc2
24744 builtin and then its argument prototype would still apply. */
24745 char cthread_fork ();
24746 /* The GNU C library defines this for functions which it implements
24747 to always fail with ENOSYS. Some functions are actually named
24748 something starting with __ and the normal name is an alias. */
24749 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24752 char (*f) () = cthread_fork;
24761 return f != cthread_fork;
24766 rm -f conftest.$ac_objext conftest$ac_exeext
24767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24768 (eval $ac_link) 2>conftest.er1
24770 grep -v '^ *+' conftest.er1 >conftest.err
24772 cat conftest.err >&5
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } &&
24775 { ac_try='test -z "$ac_c_werror_flag"
24776 || test ! -s conftest.err'
24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778 (eval $ac_try) 2>&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; } &&
24782 { ac_try='test -s conftest$ac_exeext'
24783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784 (eval $ac_try) 2>&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); }; }; then
24788 ac_cv_func_cthread_fork=yes
24790 echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24793 ac_cv_func_cthread_fork=no
24795 rm -f conftest.err conftest.$ac_objext \
24796 conftest$ac_exeext conftest.$ac_ext
24798 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24799 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24800 if test $ac_cv_func_cthread_fork = yes; then
24801 ol_link_threads=yes
24805 if test $ol_link_threads = no ; then
24806 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24807 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24808 if test "${ol_cv_cthread_all_load+set}" = set; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24813 LIBS="-all_load $LIBS"
24814 cat >conftest.$ac_ext <<_ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24820 #include <mach/cthreads.h>
24825 cthread_fork((void *)0, (void *)0);
24831 rm -f conftest.$ac_objext conftest$ac_exeext
24832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24833 (eval $ac_link) 2>conftest.er1
24835 grep -v '^ *+' conftest.er1 >conftest.err
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } &&
24840 { ac_try='test -z "$ac_c_werror_flag"
24841 || test ! -s conftest.err'
24842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843 (eval $ac_try) 2>&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; } &&
24847 { ac_try='test -s conftest$ac_exeext'
24848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849 (eval $ac_try) 2>&5
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); }; }; then
24853 ol_cv_cthread_all_load=yes
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24858 ol_cv_cthread_all_load=no
24860 rm -f conftest.err conftest.$ac_objext \
24861 conftest$ac_exeext conftest.$ac_ext
24865 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24866 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24868 if test $ol_cv_cthread_all_load = yes ; then
24869 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24870 ol_link_threads=mach
24871 ol_with_threads=found
24875 elif test $ac_cv_header_cthreads_h = yes ; then
24877 ol_with_threads=found
24880 LIBS="$LIBS -lthreads"
24881 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24882 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24883 if test "${ac_cv_func_cthread_fork+set}" = set; then
24884 echo $ECHO_N "(cached) $ECHO_C" >&6
24886 cat >conftest.$ac_ext <<_ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24894 #define cthread_fork innocuous_cthread_fork
24896 /* System header to define __stub macros and hopefully few prototypes,
24897 which can conflict with char cthread_fork (); below.
24898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24899 <limits.h> exists even on freestanding compilers. */
24902 # include <limits.h>
24904 # include <assert.h>
24907 #undef cthread_fork
24909 /* Override any gcc2 internal prototype to avoid an error. */
24914 /* We use char because int might match the return type of a gcc2
24915 builtin and then its argument prototype would still apply. */
24916 char cthread_fork ();
24917 /* The GNU C library defines this for functions which it implements
24918 to always fail with ENOSYS. Some functions are actually named
24919 something starting with __ and the normal name is an alias. */
24920 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24923 char (*f) () = cthread_fork;
24932 return f != cthread_fork;
24937 rm -f conftest.$ac_objext conftest$ac_exeext
24938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24939 (eval $ac_link) 2>conftest.er1
24941 grep -v '^ *+' conftest.er1 >conftest.err
24943 cat conftest.err >&5
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); } &&
24946 { ac_try='test -z "$ac_c_werror_flag"
24947 || test ! -s conftest.err'
24948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24949 (eval $ac_try) 2>&5
24951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); }; } &&
24953 { ac_try='test -s conftest$ac_exeext'
24954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24955 (eval $ac_try) 2>&5
24957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); }; }; then
24959 ac_cv_func_cthread_fork=yes
24961 echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.$ac_ext >&5
24964 ac_cv_func_cthread_fork=no
24966 rm -f conftest.err conftest.$ac_objext \
24967 conftest$ac_exeext conftest.$ac_ext
24969 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24970 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24971 if test $ac_cv_func_cthread_fork = yes; then
24972 ol_link_threads=yes
24977 if test $ol_link_threads = yes ; then
24978 LTHREAD_LIBS="-lthreads"
24979 ol_link_threads=mach
24980 ol_with_threads=found
24982 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24983 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24984 { (exit 1); exit 1; }; }
24987 elif test $ol_with_threads = mach ; then
24988 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24989 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24990 { (exit 1); exit 1; }; }
24993 if test $ol_link_threads = mach ; then
24995 cat >>confdefs.h <<\_ACEOF
24996 #define HAVE_MACH_CTHREADS 1
24999 elif test $ol_with_threads = found ; then
25000 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25001 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25002 { (exit 1); exit 1; }; }
25007 case $ol_with_threads in auto | yes | pth)
25010 for ac_header in pth.h
25012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25014 echo "$as_me:$LINENO: checking for $ac_header" >&5
25015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25022 # Is the header compilable?
25023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25025 cat >conftest.$ac_ext <<_ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 $ac_includes_default
25032 #include <$ac_header>
25034 rm -f conftest.$ac_objext
25035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25036 (eval $ac_compile) 2>conftest.er1
25038 grep -v '^ *+' conftest.er1 >conftest.err
25040 cat conftest.err >&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); } &&
25043 { ac_try='test -z "$ac_c_werror_flag"
25044 || test ! -s conftest.err'
25045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25046 (eval $ac_try) 2>&5
25048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049 (exit $ac_status); }; } &&
25050 { ac_try='test -s conftest.$ac_objext'
25051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052 (eval $ac_try) 2>&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); }; }; then
25056 ac_header_compiler=yes
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25061 ac_header_compiler=no
25063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25065 echo "${ECHO_T}$ac_header_compiler" >&6
25067 # Is the header present?
25068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25070 cat >conftest.$ac_ext <<_ACEOF
25073 cat confdefs.h >>conftest.$ac_ext
25074 cat >>conftest.$ac_ext <<_ACEOF
25075 /* end confdefs.h. */
25076 #include <$ac_header>
25078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25081 grep -v '^ *+' conftest.er1 >conftest.err
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } >/dev/null; then
25086 if test -s conftest.err; then
25087 ac_cpp_err=$ac_c_preproc_warn_flag
25088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25095 if test -z "$ac_cpp_err"; then
25096 ac_header_preproc=yes
25098 echo "$as_me: failed program was:" >&5
25099 sed 's/^/| /' conftest.$ac_ext >&5
25101 ac_header_preproc=no
25103 rm -f conftest.err conftest.$ac_ext
25104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25105 echo "${ECHO_T}$ac_header_preproc" >&6
25107 # So? What about this header?
25108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25114 ac_header_preproc=yes
25117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25131 ## --------------------------------------------- ##
25132 ## Report this to <http://www.openldap.org/its/> ##
25133 ## --------------------------------------------- ##
25136 sed "s/^/$as_me: WARNING: /" >&2
25139 echo "$as_me:$LINENO: checking for $ac_header" >&5
25140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25142 echo $ECHO_N "(cached) $ECHO_C" >&6
25144 eval "$as_ac_Header=\$ac_header_preproc"
25146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25151 cat >>confdefs.h <<_ACEOF
25152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25160 if test $ac_cv_header_pth_h = yes ; then
25161 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25162 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25163 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25164 echo $ECHO_N "(cached) $ECHO_C" >&6
25166 ac_check_lib_save_LIBS=$LIBS
25168 cat >conftest.$ac_ext <<_ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25175 /* Override any gcc2 internal prototype to avoid an error. */
25179 /* We use char because int might match the return type of a gcc2
25180 builtin and then its argument prototype would still apply. */
25181 char pth_version ();
25190 rm -f conftest.$ac_objext conftest$ac_exeext
25191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25192 (eval $ac_link) 2>conftest.er1
25194 grep -v '^ *+' conftest.er1 >conftest.err
25196 cat conftest.err >&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } &&
25199 { ac_try='test -z "$ac_c_werror_flag"
25200 || test ! -s conftest.err'
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; } &&
25206 { ac_try='test -s conftest$ac_exeext'
25207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25208 (eval $ac_try) 2>&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); }; }; then
25212 ac_cv_lib_pth_pth_version=yes
25214 echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25217 ac_cv_lib_pth_pth_version=no
25219 rm -f conftest.err conftest.$ac_objext \
25220 conftest$ac_exeext conftest.$ac_ext
25221 LIBS=$ac_check_lib_save_LIBS
25223 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25224 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25225 if test $ac_cv_lib_pth_pth_version = yes; then
25232 if test $have_pth = yes ; then
25234 cat >>confdefs.h <<\_ACEOF
25235 #define HAVE_GNU_PTH 1
25238 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25239 ol_link_threads=pth
25240 ol_with_threads=found
25242 if test $ol_with_yielding_select = auto ; then
25243 ol_with_yielding_select=yes
25250 case $ol_with_threads in auto | yes | lwp)
25254 for ac_header in thread.h synch.h
25256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25258 echo "$as_me:$LINENO: checking for $ac_header" >&5
25259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25261 echo $ECHO_N "(cached) $ECHO_C" >&6
25263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25266 # Is the header compilable?
25267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25269 cat >conftest.$ac_ext <<_ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 $ac_includes_default
25276 #include <$ac_header>
25278 rm -f conftest.$ac_objext
25279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25280 (eval $ac_compile) 2>conftest.er1
25282 grep -v '^ *+' conftest.er1 >conftest.err
25284 cat conftest.err >&5
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } &&
25287 { ac_try='test -z "$ac_c_werror_flag"
25288 || test ! -s conftest.err'
25289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; } &&
25294 { ac_try='test -s conftest.$ac_objext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25300 ac_header_compiler=yes
25302 echo "$as_me: failed program was:" >&5
25303 sed 's/^/| /' conftest.$ac_ext >&5
25305 ac_header_compiler=no
25307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25309 echo "${ECHO_T}$ac_header_compiler" >&6
25311 # Is the header present?
25312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25314 cat >conftest.$ac_ext <<_ACEOF
25317 cat confdefs.h >>conftest.$ac_ext
25318 cat >>conftest.$ac_ext <<_ACEOF
25319 /* end confdefs.h. */
25320 #include <$ac_header>
25322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25325 grep -v '^ *+' conftest.er1 >conftest.err
25327 cat conftest.err >&5
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); } >/dev/null; then
25330 if test -s conftest.err; then
25331 ac_cpp_err=$ac_c_preproc_warn_flag
25332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25339 if test -z "$ac_cpp_err"; then
25340 ac_header_preproc=yes
25342 echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25345 ac_header_preproc=no
25347 rm -f conftest.err conftest.$ac_ext
25348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25349 echo "${ECHO_T}$ac_header_preproc" >&6
25351 # So? What about this header?
25352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25358 ac_header_preproc=yes
25361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25375 ## --------------------------------------------- ##
25376 ## Report this to <http://www.openldap.org/its/> ##
25377 ## --------------------------------------------- ##
25380 sed "s/^/$as_me: WARNING: /" >&2
25383 echo "$as_me:$LINENO: checking for $ac_header" >&5
25384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25386 echo $ECHO_N "(cached) $ECHO_C" >&6
25388 eval "$as_ac_Header=\$ac_header_preproc"
25390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25395 cat >>confdefs.h <<_ACEOF
25396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25403 if test $ac_cv_header_thread_h = yes &&
25404 test $ac_cv_header_synch_h = yes ; then
25405 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25406 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25407 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25408 echo $ECHO_N "(cached) $ECHO_C" >&6
25410 ac_check_lib_save_LIBS=$LIBS
25411 LIBS="-lthread $LIBS"
25412 cat >conftest.$ac_ext <<_ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h. */
25419 /* Override any gcc2 internal prototype to avoid an error. */
25423 /* We use char because int might match the return type of a gcc2
25424 builtin and then its argument prototype would still apply. */
25425 char thr_create ();
25434 rm -f conftest.$ac_objext conftest$ac_exeext
25435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25436 (eval $ac_link) 2>conftest.er1
25438 grep -v '^ *+' conftest.er1 >conftest.err
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } &&
25443 { ac_try='test -z "$ac_c_werror_flag"
25444 || test ! -s conftest.err'
25445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25446 (eval $ac_try) 2>&5
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); }; } &&
25450 { ac_try='test -s conftest$ac_exeext'
25451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25452 (eval $ac_try) 2>&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); }; }; then
25456 ac_cv_lib_thread_thr_create=yes
25458 echo "$as_me: failed program was:" >&5
25459 sed 's/^/| /' conftest.$ac_ext >&5
25461 ac_cv_lib_thread_thr_create=no
25463 rm -f conftest.err conftest.$ac_objext \
25464 conftest$ac_exeext conftest.$ac_ext
25465 LIBS=$ac_check_lib_save_LIBS
25467 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25468 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25469 if test $ac_cv_lib_thread_thr_create = yes; then
25476 if test $have_thr = yes ; then
25478 cat >>confdefs.h <<\_ACEOF
25482 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25483 ol_link_threads=thr
25485 if test $ol_with_yielding_select = auto ; then
25486 ol_with_yielding_select=yes
25492 thr_setconcurrency \
25493 thr_getconcurrency \
25496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25497 echo "$as_me:$LINENO: checking for $ac_func" >&5
25498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25499 if eval "test \"\${$as_ac_var+set}\" = set"; then
25500 echo $ECHO_N "(cached) $ECHO_C" >&6
25502 cat >conftest.$ac_ext <<_ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25510 #define $ac_func innocuous_$ac_func
25512 /* System header to define __stub macros and hopefully few prototypes,
25513 which can conflict with char $ac_func (); below.
25514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25515 <limits.h> exists even on freestanding compilers. */
25518 # include <limits.h>
25520 # include <assert.h>
25525 /* Override any gcc2 internal prototype to avoid an error. */
25530 /* We use char because int might match the return type of a gcc2
25531 builtin and then its argument prototype would still apply. */
25533 /* The GNU C library defines this for functions which it implements
25534 to always fail with ENOSYS. Some functions are actually named
25535 something starting with __ and the normal name is an alias. */
25536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25539 char (*f) () = $ac_func;
25548 return f != $ac_func;
25553 rm -f conftest.$ac_objext conftest$ac_exeext
25554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25555 (eval $ac_link) 2>conftest.er1
25557 grep -v '^ *+' conftest.er1 >conftest.err
25559 cat conftest.err >&5
25560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561 (exit $ac_status); } &&
25562 { ac_try='test -z "$ac_c_werror_flag"
25563 || test ! -s conftest.err'
25564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25565 (eval $ac_try) 2>&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); }; } &&
25569 { ac_try='test -s conftest$ac_exeext'
25570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 (eval $ac_try) 2>&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); }; }; then
25575 eval "$as_ac_var=yes"
25577 echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25580 eval "$as_ac_var=no"
25582 rm -f conftest.err conftest.$ac_objext \
25583 conftest$ac_exeext conftest.$ac_ext
25585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25587 if test `eval echo '${'$as_ac_var'}'` = yes; then
25588 cat >>confdefs.h <<_ACEOF
25589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25599 for ac_header in lwp/lwp.h
25601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25603 echo "$as_me:$LINENO: checking for $ac_header" >&5
25604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25611 # Is the header compilable?
25612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25614 cat >conftest.$ac_ext <<_ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25620 $ac_includes_default
25621 #include <$ac_header>
25623 rm -f conftest.$ac_objext
25624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25625 (eval $ac_compile) 2>conftest.er1
25627 grep -v '^ *+' conftest.er1 >conftest.err
25629 cat conftest.err >&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } &&
25632 { ac_try='test -z "$ac_c_werror_flag"
25633 || test ! -s conftest.err'
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; } &&
25639 { ac_try='test -s conftest.$ac_objext'
25640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641 (eval $ac_try) 2>&5
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); }; }; then
25645 ac_header_compiler=yes
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 ac_header_compiler=no
25652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25654 echo "${ECHO_T}$ac_header_compiler" >&6
25656 # Is the header present?
25657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25658 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
25667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25670 grep -v '^ *+' conftest.er1 >conftest.err
25672 cat conftest.err >&5
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } >/dev/null; then
25675 if test -s conftest.err; then
25676 ac_cpp_err=$ac_c_preproc_warn_flag
25677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25684 if test -z "$ac_cpp_err"; then
25685 ac_header_preproc=yes
25687 echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.$ac_ext >&5
25690 ac_header_preproc=no
25692 rm -f conftest.err conftest.$ac_ext
25693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25694 echo "${ECHO_T}$ac_header_preproc" >&6
25696 # So? What about this header?
25697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25703 ac_header_preproc=yes
25706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25720 ## --------------------------------------------- ##
25721 ## Report this to <http://www.openldap.org/its/> ##
25722 ## --------------------------------------------- ##
25725 sed "s/^/$as_me: WARNING: /" >&2
25728 echo "$as_me:$LINENO: checking for $ac_header" >&5
25729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
25733 eval "$as_ac_Header=\$ac_header_preproc"
25735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25740 cat >>confdefs.h <<_ACEOF
25741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25748 if test $ac_cv_header_lwp_lwp_h = yes ; then
25749 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25750 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25751 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25752 echo $ECHO_N "(cached) $ECHO_C" >&6
25754 ac_check_lib_save_LIBS=$LIBS
25756 cat >conftest.$ac_ext <<_ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h. */
25763 /* Override any gcc2 internal prototype to avoid an error. */
25767 /* We use char because int might match the return type of a gcc2
25768 builtin and then its argument prototype would still apply. */
25769 char lwp_create ();
25778 rm -f conftest.$ac_objext conftest$ac_exeext
25779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25780 (eval $ac_link) 2>conftest.er1
25782 grep -v '^ *+' conftest.er1 >conftest.err
25784 cat conftest.err >&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); } &&
25787 { ac_try='test -z "$ac_c_werror_flag"
25788 || test ! -s conftest.err'
25789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790 (eval $ac_try) 2>&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); }; } &&
25794 { ac_try='test -s conftest$ac_exeext'
25795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25796 (eval $ac_try) 2>&5
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); }; }; then
25800 ac_cv_lib_lwp_lwp_create=yes
25802 echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25805 ac_cv_lib_lwp_lwp_create=no
25807 rm -f conftest.err conftest.$ac_objext \
25808 conftest$ac_exeext conftest.$ac_ext
25809 LIBS=$ac_check_lib_save_LIBS
25811 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25812 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25813 if test $ac_cv_lib_lwp_lwp_create = yes; then
25820 if test $have_lwp = yes ; then
25822 cat >>confdefs.h <<\_ACEOF
25826 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25827 ol_link_threads=lwp
25829 if test $ol_with_yielding_select = auto ; then
25830 ol_with_yielding_select=no
25837 if test $ol_with_yielding_select = yes ; then
25839 cat >>confdefs.h <<\_ACEOF
25840 #define HAVE_YIELDING_SELECT 1
25845 if test $ol_with_threads = manual ; then
25846 ol_link_threads=yes
25848 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25849 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25853 for ac_header in pthread.h sched.h
25855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25857 echo "$as_me:$LINENO: checking for $ac_header" >&5
25858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25860 echo $ECHO_N "(cached) $ECHO_C" >&6
25862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25865 # Is the header compilable?
25866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25868 cat >conftest.$ac_ext <<_ACEOF
25871 cat confdefs.h >>conftest.$ac_ext
25872 cat >>conftest.$ac_ext <<_ACEOF
25873 /* end confdefs.h. */
25874 $ac_includes_default
25875 #include <$ac_header>
25877 rm -f conftest.$ac_objext
25878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25879 (eval $ac_compile) 2>conftest.er1
25881 grep -v '^ *+' conftest.er1 >conftest.err
25883 cat conftest.err >&5
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); } &&
25886 { ac_try='test -z "$ac_c_werror_flag"
25887 || test ! -s conftest.err'
25888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25889 (eval $ac_try) 2>&5
25891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 (exit $ac_status); }; } &&
25893 { ac_try='test -s conftest.$ac_objext'
25894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25895 (eval $ac_try) 2>&5
25897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898 (exit $ac_status); }; }; then
25899 ac_header_compiler=yes
25901 echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25904 ac_header_compiler=no
25906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25908 echo "${ECHO_T}$ac_header_compiler" >&6
25910 # Is the header present?
25911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25913 cat >conftest.$ac_ext <<_ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h. */
25919 #include <$ac_header>
25921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25924 grep -v '^ *+' conftest.er1 >conftest.err
25926 cat conftest.err >&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } >/dev/null; then
25929 if test -s conftest.err; then
25930 ac_cpp_err=$ac_c_preproc_warn_flag
25931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25938 if test -z "$ac_cpp_err"; then
25939 ac_header_preproc=yes
25941 echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25944 ac_header_preproc=no
25946 rm -f conftest.err conftest.$ac_ext
25947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25948 echo "${ECHO_T}$ac_header_preproc" >&6
25950 # So? What about this header?
25951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25957 ac_header_preproc=yes
25960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25974 ## --------------------------------------------- ##
25975 ## Report this to <http://www.openldap.org/its/> ##
25976 ## --------------------------------------------- ##
25979 sed "s/^/$as_me: WARNING: /" >&2
25982 echo "$as_me:$LINENO: checking for $ac_header" >&5
25983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25987 eval "$as_ac_Header=\$ac_header_preproc"
25989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25994 cat >>confdefs.h <<_ACEOF
25995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26004 for ac_func in sched_yield pthread_yield
26006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26007 echo "$as_me:$LINENO: checking for $ac_func" >&5
26008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_var+set}\" = set"; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26012 cat >conftest.$ac_ext <<_ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26020 #define $ac_func innocuous_$ac_func
26022 /* System header to define __stub macros and hopefully few prototypes,
26023 which can conflict with char $ac_func (); below.
26024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26025 <limits.h> exists even on freestanding compilers. */
26028 # include <limits.h>
26030 # include <assert.h>
26035 /* Override any gcc2 internal prototype to avoid an error. */
26040 /* We use char because int might match the return type of a gcc2
26041 builtin and then its argument prototype would still apply. */
26043 /* The GNU C library defines this for functions which it implements
26044 to always fail with ENOSYS. Some functions are actually named
26045 something starting with __ and the normal name is an alias. */
26046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26049 char (*f) () = $ac_func;
26058 return f != $ac_func;
26063 rm -f conftest.$ac_objext conftest$ac_exeext
26064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26065 (eval $ac_link) 2>conftest.er1
26067 grep -v '^ *+' conftest.er1 >conftest.err
26069 cat conftest.err >&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); } &&
26072 { ac_try='test -z "$ac_c_werror_flag"
26073 || test ! -s conftest.err'
26074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075 (eval $ac_try) 2>&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); }; } &&
26079 { ac_try='test -s conftest$ac_exeext'
26080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081 (eval $ac_try) 2>&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); }; }; then
26085 eval "$as_ac_var=yes"
26087 echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 eval "$as_ac_var=no"
26092 rm -f conftest.err conftest.$ac_objext \
26093 conftest$ac_exeext conftest.$ac_ext
26095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26097 if test `eval echo '${'$as_ac_var'}'` = yes; then
26098 cat >>confdefs.h <<_ACEOF
26099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26106 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26107 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26108 if test "${ol_cv_header_linux_threads+set}" = set; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 cat >conftest.$ac_ext <<_ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h. */
26117 #include <pthread.h>
26119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26120 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26121 ol_cv_header_linux_threads=yes
26123 ol_cv_header_linux_threads=no
26129 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26130 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26131 if test $ol_cv_header_linux_threads = yes; then
26133 cat >>confdefs.h <<\_ACEOF
26134 #define HAVE_LINUX_THREADS 1
26141 for ac_header in mach/cthreads.h
26143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26145 echo "$as_me:$LINENO: checking for $ac_header" >&5
26146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26153 # Is the header compilable?
26154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26156 cat >conftest.$ac_ext <<_ACEOF
26159 cat confdefs.h >>conftest.$ac_ext
26160 cat >>conftest.$ac_ext <<_ACEOF
26161 /* end confdefs.h. */
26162 $ac_includes_default
26163 #include <$ac_header>
26165 rm -f conftest.$ac_objext
26166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26167 (eval $ac_compile) 2>conftest.er1
26169 grep -v '^ *+' conftest.er1 >conftest.err
26171 cat conftest.err >&5
26172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); } &&
26174 { ac_try='test -z "$ac_c_werror_flag"
26175 || test ! -s conftest.err'
26176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26177 (eval $ac_try) 2>&5
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); }; } &&
26181 { ac_try='test -s conftest.$ac_objext'
26182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26183 (eval $ac_try) 2>&5
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); }; }; then
26187 ac_header_compiler=yes
26189 echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26192 ac_header_compiler=no
26194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26196 echo "${ECHO_T}$ac_header_compiler" >&6
26198 # Is the header present?
26199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26201 cat >conftest.$ac_ext <<_ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h. */
26207 #include <$ac_header>
26209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26212 grep -v '^ *+' conftest.er1 >conftest.err
26214 cat conftest.err >&5
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); } >/dev/null; then
26217 if test -s conftest.err; then
26218 ac_cpp_err=$ac_c_preproc_warn_flag
26219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26226 if test -z "$ac_cpp_err"; then
26227 ac_header_preproc=yes
26229 echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26232 ac_header_preproc=no
26234 rm -f conftest.err conftest.$ac_ext
26235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26236 echo "${ECHO_T}$ac_header_preproc" >&6
26238 # So? What about this header?
26239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26245 ac_header_preproc=yes
26248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26262 ## --------------------------------------------- ##
26263 ## Report this to <http://www.openldap.org/its/> ##
26264 ## --------------------------------------------- ##
26267 sed "s/^/$as_me: WARNING: /" >&2
26270 echo "$as_me:$LINENO: checking for $ac_header" >&5
26271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 eval "$as_ac_Header=\$ac_header_preproc"
26277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26282 cat >>confdefs.h <<_ACEOF
26283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26291 for ac_header in lwp/lwp.h
26293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26295 echo "$as_me:$LINENO: checking for $ac_header" >&5
26296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26303 # Is the header compilable?
26304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26306 cat >conftest.$ac_ext <<_ACEOF
26309 cat confdefs.h >>conftest.$ac_ext
26310 cat >>conftest.$ac_ext <<_ACEOF
26311 /* end confdefs.h. */
26312 $ac_includes_default
26313 #include <$ac_header>
26315 rm -f conftest.$ac_objext
26316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26317 (eval $ac_compile) 2>conftest.er1
26319 grep -v '^ *+' conftest.er1 >conftest.err
26321 cat conftest.err >&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); } &&
26324 { ac_try='test -z "$ac_c_werror_flag"
26325 || test ! -s conftest.err'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; } &&
26331 { ac_try='test -s conftest.$ac_objext'
26332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26333 (eval $ac_try) 2>&5
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); }; }; then
26337 ac_header_compiler=yes
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ac_header_compiler=no
26344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26346 echo "${ECHO_T}$ac_header_compiler" >&6
26348 # Is the header present?
26349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26351 cat >conftest.$ac_ext <<_ACEOF
26354 cat confdefs.h >>conftest.$ac_ext
26355 cat >>conftest.$ac_ext <<_ACEOF
26356 /* end confdefs.h. */
26357 #include <$ac_header>
26359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26362 grep -v '^ *+' conftest.er1 >conftest.err
26364 cat conftest.err >&5
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); } >/dev/null; then
26367 if test -s conftest.err; then
26368 ac_cpp_err=$ac_c_preproc_warn_flag
26369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26376 if test -z "$ac_cpp_err"; then
26377 ac_header_preproc=yes
26379 echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26382 ac_header_preproc=no
26384 rm -f conftest.err conftest.$ac_ext
26385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26386 echo "${ECHO_T}$ac_header_preproc" >&6
26388 # So? What about this header?
26389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26395 ac_header_preproc=yes
26398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26412 ## --------------------------------------------- ##
26413 ## Report this to <http://www.openldap.org/its/> ##
26414 ## --------------------------------------------- ##
26417 sed "s/^/$as_me: WARNING: /" >&2
26420 echo "$as_me:$LINENO: checking for $ac_header" >&5
26421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26423 echo $ECHO_N "(cached) $ECHO_C" >&6
26425 eval "$as_ac_Header=\$ac_header_preproc"
26427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26432 cat >>confdefs.h <<_ACEOF
26433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26442 for ac_header in thread.h synch.h
26444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26446 echo "$as_me:$LINENO: checking for $ac_header" >&5
26447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26449 echo $ECHO_N "(cached) $ECHO_C" >&6
26451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26454 # Is the header compilable?
26455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26457 cat >conftest.$ac_ext <<_ACEOF
26460 cat confdefs.h >>conftest.$ac_ext
26461 cat >>conftest.$ac_ext <<_ACEOF
26462 /* end confdefs.h. */
26463 $ac_includes_default
26464 #include <$ac_header>
26466 rm -f conftest.$ac_objext
26467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26468 (eval $ac_compile) 2>conftest.er1
26470 grep -v '^ *+' conftest.er1 >conftest.err
26472 cat conftest.err >&5
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); } &&
26475 { ac_try='test -z "$ac_c_werror_flag"
26476 || test ! -s conftest.err'
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; } &&
26482 { ac_try='test -s conftest.$ac_objext'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; }; then
26488 ac_header_compiler=yes
26490 echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26493 ac_header_compiler=no
26495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26497 echo "${ECHO_T}$ac_header_compiler" >&6
26499 # Is the header present?
26500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 #include <$ac_header>
26510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26513 grep -v '^ *+' conftest.er1 >conftest.err
26515 cat conftest.err >&5
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); } >/dev/null; then
26518 if test -s conftest.err; then
26519 ac_cpp_err=$ac_c_preproc_warn_flag
26520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26527 if test -z "$ac_cpp_err"; then
26528 ac_header_preproc=yes
26530 echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26533 ac_header_preproc=no
26535 rm -f conftest.err conftest.$ac_ext
26536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26537 echo "${ECHO_T}$ac_header_preproc" >&6
26539 # So? What about this header?
26540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26546 ac_header_preproc=yes
26549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26563 ## --------------------------------------------- ##
26564 ## Report this to <http://www.openldap.org/its/> ##
26565 ## --------------------------------------------- ##
26568 sed "s/^/$as_me: WARNING: /" >&2
26571 echo "$as_me:$LINENO: checking for $ac_header" >&5
26572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26574 echo $ECHO_N "(cached) $ECHO_C" >&6
26576 eval "$as_ac_Header=\$ac_header_preproc"
26578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26583 cat >>confdefs.h <<_ACEOF
26584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26593 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26594 cat >>confdefs.h <<\_ACEOF
26595 #define REENTRANT 1
26598 cat >>confdefs.h <<\_ACEOF
26599 #define _REENTRANT 1
26602 cat >>confdefs.h <<\_ACEOF
26603 #define THREAD_SAFE 1
26606 cat >>confdefs.h <<\_ACEOF
26607 #define _THREAD_SAFE 1
26610 cat >>confdefs.h <<\_ACEOF
26611 #define THREADSAFE 1
26614 cat >>confdefs.h <<\_ACEOF
26615 #define _THREADSAFE 1
26618 cat >>confdefs.h <<\_ACEOF
26619 #define _SGI_MP_SOURCE 1
26623 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26624 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26625 if test "${ol_cv_errno_thread_specific+set}" = set; then
26626 echo $ECHO_N "(cached) $ECHO_C" >&6
26629 cat >conftest.$ac_ext <<_ACEOF
26632 cat confdefs.h >>conftest.$ac_ext
26633 cat >>conftest.$ac_ext <<_ACEOF
26634 /* end confdefs.h. */
26644 rm -f conftest.$ac_objext conftest$ac_exeext
26645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26646 (eval $ac_link) 2>conftest.er1
26648 grep -v '^ *+' conftest.er1 >conftest.err
26650 cat conftest.err >&5
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } &&
26653 { ac_try='test -z "$ac_c_werror_flag"
26654 || test ! -s conftest.err'
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; } &&
26660 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26666 ol_cv_errno_thread_specific=yes
26668 echo "$as_me: failed program was:" >&5
26669 sed 's/^/| /' conftest.$ac_ext >&5
26671 ol_cv_errno_thread_specific=no
26673 rm -f conftest.err conftest.$ac_objext \
26674 conftest$ac_exeext conftest.$ac_ext
26677 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26678 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26680 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26681 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26682 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26683 echo $ECHO_N "(cached) $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. */
26701 rm -f conftest.$ac_objext conftest$ac_exeext
26702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26703 (eval $ac_link) 2>conftest.er1
26705 grep -v '^ *+' conftest.er1 >conftest.err
26707 cat conftest.err >&5
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); } &&
26710 { ac_try='test -z "$ac_c_werror_flag"
26711 || test ! -s conftest.err'
26712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713 (eval $ac_try) 2>&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); }; } &&
26717 { ac_try='test -s conftest$ac_exeext'
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; }; then
26723 ol_cv_h_errno_thread_specific=yes
26725 echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26728 ol_cv_h_errno_thread_specific=no
26730 rm -f conftest.err conftest.$ac_objext \
26731 conftest$ac_exeext conftest.$ac_ext
26734 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26735 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26737 if test $ol_cv_errno_thread_specific != yes ||
26738 test $ol_cv_h_errno_thread_specific != yes ; then
26739 LIBS="$LTHREAD_LIBS $LIBS"
26745 if test $ol_link_threads = no ; then
26746 if test $ol_with_threads = yes ; then
26747 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26748 echo "$as_me: error: no suitable thread support" >&2;}
26749 { (exit 1); exit 1; }; }
26752 if test $ol_with_threads = auto ; then
26753 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26754 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26759 cat >>confdefs.h <<\_ACEOF
26760 #define NO_THREADS 1
26769 if test $ol_link_threads != no ; then
26771 cat >>confdefs.h <<\_ACEOF
26772 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26782 gethostbyname_r gethostbyaddr_r \
26785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26786 echo "$as_me:$LINENO: checking for $ac_func" >&5
26787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26788 if eval "test \"\${$as_ac_var+set}\" = set"; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26791 cat >conftest.$ac_ext <<_ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26799 #define $ac_func innocuous_$ac_func
26801 /* System header to define __stub macros and hopefully few prototypes,
26802 which can conflict with char $ac_func (); below.
26803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26804 <limits.h> exists even on freestanding compilers. */
26807 # include <limits.h>
26809 # include <assert.h>
26814 /* Override any gcc2 internal prototype to avoid an error. */
26819 /* We use char because int might match the return type of a gcc2
26820 builtin and then its argument prototype would still apply. */
26822 /* The GNU C library defines this for functions which it implements
26823 to always fail with ENOSYS. Some functions are actually named
26824 something starting with __ and the normal name is an alias. */
26825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26828 char (*f) () = $ac_func;
26837 return f != $ac_func;
26842 rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26844 (eval $ac_link) 2>conftest.er1
26846 grep -v '^ *+' conftest.er1 >conftest.err
26848 cat conftest.err >&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } &&
26851 { ac_try='test -z "$ac_c_werror_flag"
26852 || test ! -s conftest.err'
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); }; } &&
26858 { ac_try='test -s conftest$ac_exeext'
26859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860 (eval $ac_try) 2>&5
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); }; }; then
26864 eval "$as_ac_var=yes"
26866 echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26869 eval "$as_ac_var=no"
26871 rm -f conftest.err conftest.$ac_objext \
26872 conftest$ac_exeext conftest.$ac_ext
26874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26876 if test `eval echo '${'$as_ac_var'}'` = yes; then
26877 cat >>confdefs.h <<_ACEOF
26878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26885 if test "$ac_cv_func_ctime_r" = no ; then
26886 ol_cv_func_ctime_r_nargs=0
26888 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26889 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26890 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26903 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26908 rm -f conftest.$ac_objext
26909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26910 (eval $ac_compile) 2>conftest.er1
26912 grep -v '^ *+' conftest.er1 >conftest.err
26914 cat conftest.err >&5
26915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916 (exit $ac_status); } &&
26917 { ac_try='test -z "$ac_c_werror_flag"
26918 || test ! -s conftest.err'
26919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920 (eval $ac_try) 2>&5
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); }; } &&
26924 { ac_try='test -s conftest.$ac_objext'
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; }; then
26930 ol_cv_func_ctime_r_nargs3=yes
26932 echo "$as_me: failed program was:" >&5
26933 sed 's/^/| /' conftest.$ac_ext >&5
26935 ol_cv_func_ctime_r_nargs3=no
26937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26939 cat >conftest.$ac_ext <<_ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h. */
26949 time_t ti; char *buffer; ctime_r(&ti,buffer);
26954 rm -f conftest.$ac_objext
26955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26956 (eval $ac_compile) 2>conftest.er1
26958 grep -v '^ *+' conftest.er1 >conftest.err
26960 cat conftest.err >&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); } &&
26963 { ac_try='test -z "$ac_c_werror_flag"
26964 || test ! -s conftest.err'
26965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966 (eval $ac_try) 2>&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; } &&
26970 { ac_try='test -s conftest.$ac_objext'
26971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26972 (eval $ac_try) 2>&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); }; }; then
26976 ol_cv_func_ctime_r_nargs2=yes
26978 echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26981 ol_cv_func_ctime_r_nargs2=no
26983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26985 if test $ol_cv_func_ctime_r_nargs3 = yes &&
26986 test $ol_cv_func_ctime_r_nargs2 = no ; then
26988 ol_cv_func_ctime_r_nargs=3
26990 elif test $ol_cv_func_ctime_r_nargs3 = no &&
26991 test $ol_cv_func_ctime_r_nargs2 = yes ; then
26993 ol_cv_func_ctime_r_nargs=2
26996 ol_cv_func_ctime_r_nargs=0
27000 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27001 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27003 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27005 cat >>confdefs.h <<_ACEOF
27006 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27013 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27014 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27015 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27016 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27019 cat >conftest.$ac_ext <<_ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27025 #include <sys/types.h>
27026 #include <sys/socket.h>
27027 #include <netinet/in.h>
27029 #define BUFSIZE (sizeof(struct hostent)+10)
27033 struct hostent hent; char buffer[BUFSIZE];
27034 int bufsize=BUFSIZE;int h_errno;
27035 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27036 buffer, bufsize, &h_errno);
27041 rm -f conftest.$ac_objext
27042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27043 (eval $ac_compile) 2>conftest.er1
27045 grep -v '^ *+' conftest.er1 >conftest.err
27047 cat conftest.err >&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } &&
27050 { ac_try='test -z "$ac_c_werror_flag"
27051 || test ! -s conftest.err'
27052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053 (eval $ac_try) 2>&5
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); }; } &&
27057 { ac_try='test -s conftest.$ac_objext'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 ol_cv_func_gethostbyname_r_nargs5=yes
27065 echo "$as_me: failed program was:" >&5
27066 sed 's/^/| /' conftest.$ac_ext >&5
27068 ol_cv_func_gethostbyname_r_nargs5=no
27070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27072 cat >conftest.$ac_ext <<_ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h. */
27078 #include <sys/types.h>
27079 #include <sys/socket.h>
27080 #include <netinet/in.h>
27082 #define BUFSIZE (sizeof(struct hostent)+10)
27086 struct hostent hent;struct hostent *rhent;
27087 char buffer[BUFSIZE];
27088 int bufsize=BUFSIZE;int h_errno;
27089 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27095 rm -f conftest.$ac_objext
27096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27097 (eval $ac_compile) 2>conftest.er1
27099 grep -v '^ *+' conftest.er1 >conftest.err
27101 cat conftest.err >&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); } &&
27104 { ac_try='test -z "$ac_c_werror_flag"
27105 || test ! -s conftest.err'
27106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107 (eval $ac_try) 2>&5
27109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110 (exit $ac_status); }; } &&
27111 { ac_try='test -s conftest.$ac_objext'
27112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113 (eval $ac_try) 2>&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); }; }; then
27117 ol_cv_func_gethostbyname_r_nargs6=yes
27119 echo "$as_me: failed program was:" >&5
27120 sed 's/^/| /' conftest.$ac_ext >&5
27122 ol_cv_func_gethostbyname_r_nargs6=no
27124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27126 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27127 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27129 ol_cv_func_gethostbyname_r_nargs=5
27131 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27132 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27134 ol_cv_func_gethostbyname_r_nargs=6
27137 ol_cv_func_gethostbyname_r_nargs=0
27141 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27142 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27143 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27145 cat >>confdefs.h <<_ACEOF
27146 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27152 ol_cv_func_gethostbyname_r_nargs=0
27155 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27156 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27157 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27158 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27159 echo $ECHO_N "(cached) $ECHO_C" >&6
27161 cat >conftest.$ac_ext <<_ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h. */
27167 #include <sys/types.h>
27168 #include <sys/socket.h>
27169 #include <netinet/in.h>
27171 #define BUFSIZE (sizeof(struct hostent)+10)
27175 struct hostent hent; char buffer[BUFSIZE];
27176 struct in_addr add;
27177 size_t alen=sizeof(struct in_addr);
27178 int bufsize=BUFSIZE;int h_errno;
27179 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27180 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27185 rm -f conftest.$ac_objext
27186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27187 (eval $ac_compile) 2>conftest.er1
27189 grep -v '^ *+' conftest.er1 >conftest.err
27191 cat conftest.err >&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); } &&
27194 { ac_try='test -z "$ac_c_werror_flag"
27195 || test ! -s conftest.err'
27196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197 (eval $ac_try) 2>&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); }; } &&
27201 { ac_try='test -s conftest.$ac_objext'
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; }; then
27207 ol_cv_func_gethostbyaddr_r_nargs7=yes
27209 echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27212 ol_cv_func_gethostbyaddr_r_nargs7=no
27214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27216 cat >conftest.$ac_ext <<_ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h. */
27222 #include <sys/types.h>
27223 #include <sys/socket.h>
27224 #include <netinet/in.h>
27226 #define BUFSIZE (sizeof(struct hostent)+10)
27230 struct hostent hent;
27231 struct hostent *rhent; char buffer[BUFSIZE];
27232 struct in_addr add;
27233 size_t alen=sizeof(struct in_addr);
27234 int bufsize=BUFSIZE;int h_errno;
27235 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27236 alen, AF_INET, &hent, buffer, bufsize,
27242 rm -f conftest.$ac_objext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27244 (eval $ac_compile) 2>conftest.er1
27246 grep -v '^ *+' conftest.er1 >conftest.err
27248 cat conftest.err >&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } &&
27251 { ac_try='test -z "$ac_c_werror_flag"
27252 || test ! -s conftest.err'
27253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254 (eval $ac_try) 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; } &&
27258 { ac_try='test -s conftest.$ac_objext'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 ol_cv_func_gethostbyaddr_r_nargs8=yes
27266 echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27269 ol_cv_func_gethostbyaddr_r_nargs8=no
27271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27273 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27274 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27276 ol_cv_func_gethostbyaddr_r_nargs=7
27278 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27279 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27281 ol_cv_func_gethostbyaddr_r_nargs=8
27284 ol_cv_func_gethostbyaddr_r_nargs=0
27288 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27289 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27290 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27292 cat >>confdefs.h <<_ACEOF
27293 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27299 ol_cv_func_gethostbyaddr_r_nargs=0
27304 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27305 ol_cv_berkeley_db=no
27307 for ac_header in db.h
27309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27311 echo "$as_me:$LINENO: checking for $ac_header" >&5
27312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27319 # Is the header compilable?
27320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27322 cat >conftest.$ac_ext <<_ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27328 $ac_includes_default
27329 #include <$ac_header>
27331 rm -f conftest.$ac_objext
27332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27333 (eval $ac_compile) 2>conftest.er1
27335 grep -v '^ *+' conftest.er1 >conftest.err
27337 cat conftest.err >&5
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); } &&
27340 { ac_try='test -z "$ac_c_werror_flag"
27341 || test ! -s conftest.err'
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; } &&
27347 { ac_try='test -s conftest.$ac_objext'
27348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; }; then
27353 ac_header_compiler=yes
27355 echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27358 ac_header_compiler=no
27360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27362 echo "${ECHO_T}$ac_header_compiler" >&6
27364 # Is the header present?
27365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27367 cat >conftest.$ac_ext <<_ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27373 #include <$ac_header>
27375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27378 grep -v '^ *+' conftest.er1 >conftest.err
27380 cat conftest.err >&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } >/dev/null; then
27383 if test -s conftest.err; then
27384 ac_cpp_err=$ac_c_preproc_warn_flag
27385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27392 if test -z "$ac_cpp_err"; then
27393 ac_header_preproc=yes
27395 echo "$as_me: failed program was:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27398 ac_header_preproc=no
27400 rm -f conftest.err conftest.$ac_ext
27401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27402 echo "${ECHO_T}$ac_header_preproc" >&6
27404 # So? What about this header?
27405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27411 ac_header_preproc=yes
27414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27428 ## --------------------------------------------- ##
27429 ## Report this to <http://www.openldap.org/its/> ##
27430 ## --------------------------------------------- ##
27433 sed "s/^/$as_me: WARNING: /" >&2
27436 echo "$as_me:$LINENO: checking for $ac_header" >&5
27437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27439 echo $ECHO_N "(cached) $ECHO_C" >&6
27441 eval "$as_ac_Header=\$ac_header_preproc"
27443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27448 cat >>confdefs.h <<_ACEOF
27449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27456 if test $ac_cv_header_db_h = yes; then
27457 echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
27458 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
27459 if test "${ol_cv_bdb_major+set}" = set; then
27460 echo $ECHO_N "(cached) $ECHO_C" >&6
27463 cat >conftest.$ac_ext <<_ACEOF
27466 #ifndef DB_VERSION_MAJOR
27467 # define DB_VERSION_MAJOR 1
27469 __db_version DB_VERSION_MAJOR
27472 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
27473 ol_cv_bdb_major=${3}
27476 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27477 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27478 case $ol_cv_bdb_major in [1-9]*) : ;; *)
27479 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
27480 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
27481 { (exit 1); exit 1; }; } ;;
27484 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
27485 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
27486 if test "${ol_cv_bdb_minor+set}" = set; then
27487 echo $ECHO_N "(cached) $ECHO_C" >&6
27490 cat >conftest.$ac_ext <<_ACEOF
27493 #ifndef DB_VERSION_MINOR
27494 # define DB_VERSION_MINOR 0
27496 __db_version DB_VERSION_MINOR
27499 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
27500 ol_cv_bdb_minor=${3}
27503 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27504 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27505 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
27506 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
27507 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
27508 { (exit 1); exit 1; }; } ;;
27511 echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
27512 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
27513 if test "${ol_cv_bdb_compat+set}" = set; then
27514 echo $ECHO_N "(cached) $ECHO_C" >&6
27517 cat >conftest.$ac_ext <<_ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27526 /* this check could be improved */
27527 #ifndef DB_VERSION_MAJOR
27528 # define DB_VERSION_MAJOR 1
27530 #ifndef DB_VERSION_MINOR
27531 # define DB_VERSION_MINOR 0
27534 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
27536 /* require 4.4 or later */
27537 #if DB_VERSION_MM >= 0x0404
27538 __db_version_compat
27542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27543 $EGREP "__db_version_compat" >/dev/null 2>&1; then
27544 ol_cv_bdb_compat=yes
27546 ol_cv_bdb_compat=no
27551 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
27552 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
27555 if test $ol_cv_bdb_compat != yes ; then
27556 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
27557 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
27558 { (exit 1); exit 1; }; }
27563 if test $ol_cv_bdb_major = 4 ; then
27564 if test $ol_cv_lib_db = no ; then
27565 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
27566 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
27567 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
27568 echo $ECHO_N "(cached) $ECHO_C" >&6
27571 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
27573 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27575 cat >conftest.$ac_ext <<_ACEOF
27578 cat confdefs.h >>conftest.$ac_ext
27579 cat >>conftest.$ac_ext <<_ACEOF
27580 /* end confdefs.h. */
27582 #ifdef HAVE_DB_185_H
27583 # include <db_185.h>
27588 #ifndef DB_VERSION_MAJOR
27589 # define DB_VERSION_MAJOR 1
27593 #define NULL ((void*)0)
27600 #if DB_VERSION_MAJOR > 2
27601 db_env_create( NULL, 0 );
27602 #elif DB_VERSION_MAJOR > 1
27603 db_appexit( NULL );
27605 (void) dbopen( NULL, 0, 0, 0, NULL);
27612 rm -f conftest.$ac_objext conftest$ac_exeext
27613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27614 (eval $ac_link) 2>conftest.er1
27616 grep -v '^ *+' conftest.er1 >conftest.err
27618 cat conftest.err >&5
27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); } &&
27621 { ac_try='test -z "$ac_c_werror_flag"
27622 || test ! -s conftest.err'
27623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624 (eval $ac_try) 2>&5
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); }; } &&
27628 { ac_try='test -s conftest$ac_exeext'
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; }; then
27634 ol_cv_db_db_4_dot_m=yes
27636 echo "$as_me: failed program was:" >&5
27637 sed 's/^/| /' conftest.$ac_ext >&5
27639 ol_cv_db_db_4_dot_m=no
27641 rm -f conftest.err conftest.$ac_objext \
27642 conftest$ac_exeext conftest.$ac_ext
27647 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
27648 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
27650 if test $ol_cv_db_db_4_dot_m = yes ; then
27651 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
27655 if test $ol_cv_lib_db = no ; then
27656 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
27657 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
27658 if test "${ol_cv_db_db4m+set}" = set; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27662 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
27664 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27666 cat >conftest.$ac_ext <<_ACEOF
27669 cat confdefs.h >>conftest.$ac_ext
27670 cat >>conftest.$ac_ext <<_ACEOF
27671 /* end confdefs.h. */
27673 #ifdef HAVE_DB_185_H
27674 # include <db_185.h>
27679 #ifndef DB_VERSION_MAJOR
27680 # define DB_VERSION_MAJOR 1
27684 #define NULL ((void*)0)
27691 #if DB_VERSION_MAJOR > 2
27692 db_env_create( NULL, 0 );
27693 #elif DB_VERSION_MAJOR > 1
27694 db_appexit( NULL );
27696 (void) dbopen( NULL, 0, 0, 0, NULL);
27703 rm -f conftest.$ac_objext conftest$ac_exeext
27704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27705 (eval $ac_link) 2>conftest.er1
27707 grep -v '^ *+' conftest.er1 >conftest.err
27709 cat conftest.err >&5
27710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711 (exit $ac_status); } &&
27712 { ac_try='test -z "$ac_c_werror_flag"
27713 || test ! -s conftest.err'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; } &&
27719 { ac_try='test -s conftest$ac_exeext'
27720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721 (eval $ac_try) 2>&5
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); }; }; then
27727 echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27732 rm -f conftest.err conftest.$ac_objext \
27733 conftest$ac_exeext conftest.$ac_ext
27738 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
27739 echo "${ECHO_T}$ol_cv_db_db4m" >&6
27741 if test $ol_cv_db_db4m = yes ; then
27742 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
27746 if test $ol_cv_lib_db = no ; then
27747 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
27748 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
27749 if test "${ol_cv_db_db_4m+set}" = set; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
27753 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
27755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27757 cat >conftest.$ac_ext <<_ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h. */
27764 #ifdef HAVE_DB_185_H
27765 # include <db_185.h>
27770 #ifndef DB_VERSION_MAJOR
27771 # define DB_VERSION_MAJOR 1
27775 #define NULL ((void*)0)
27782 #if DB_VERSION_MAJOR > 2
27783 db_env_create( NULL, 0 );
27784 #elif DB_VERSION_MAJOR > 1
27785 db_appexit( NULL );
27787 (void) dbopen( NULL, 0, 0, 0, NULL);
27794 rm -f conftest.$ac_objext conftest$ac_exeext
27795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27796 (eval $ac_link) 2>conftest.er1
27798 grep -v '^ *+' conftest.er1 >conftest.err
27800 cat conftest.err >&5
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); } &&
27803 { ac_try='test -z "$ac_c_werror_flag"
27804 || test ! -s conftest.err'
27805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27806 (eval $ac_try) 2>&5
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); }; } &&
27810 { ac_try='test -s conftest$ac_exeext'
27811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812 (eval $ac_try) 2>&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; }; then
27818 echo "$as_me: failed program was:" >&5
27819 sed 's/^/| /' conftest.$ac_ext >&5
27823 rm -f conftest.err conftest.$ac_objext \
27824 conftest$ac_exeext conftest.$ac_ext
27829 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
27830 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
27832 if test $ol_cv_db_db_4m = yes ; then
27833 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
27837 if test $ol_cv_lib_db = no ; then
27838 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
27839 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
27840 if test "${ol_cv_db_db_4_m+set}" = set; then
27841 echo $ECHO_N "(cached) $ECHO_C" >&6
27844 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
27846 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27848 cat >conftest.$ac_ext <<_ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h. */
27855 #ifdef HAVE_DB_185_H
27856 # include <db_185.h>
27861 #ifndef DB_VERSION_MAJOR
27862 # define DB_VERSION_MAJOR 1
27866 #define NULL ((void*)0)
27873 #if DB_VERSION_MAJOR > 2
27874 db_env_create( NULL, 0 );
27875 #elif DB_VERSION_MAJOR > 1
27876 db_appexit( NULL );
27878 (void) dbopen( NULL, 0, 0, 0, NULL);
27885 rm -f conftest.$ac_objext conftest$ac_exeext
27886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27887 (eval $ac_link) 2>conftest.er1
27889 grep -v '^ *+' conftest.er1 >conftest.err
27891 cat conftest.err >&5
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); } &&
27894 { ac_try='test -z "$ac_c_werror_flag"
27895 || test ! -s conftest.err'
27896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27897 (eval $ac_try) 2>&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); }; } &&
27901 { ac_try='test -s conftest$ac_exeext'
27902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903 (eval $ac_try) 2>&5
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; }; then
27907 ol_cv_db_db_4_m=yes
27909 echo "$as_me: failed program was:" >&5
27910 sed 's/^/| /' conftest.$ac_ext >&5
27914 rm -f conftest.err conftest.$ac_objext \
27915 conftest$ac_exeext conftest.$ac_ext
27920 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
27921 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
27923 if test $ol_cv_db_db_4_m = yes ; then
27924 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
27928 if test $ol_cv_lib_db = no ; then
27929 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
27930 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
27931 if test "${ol_cv_db_db_4+set}" = set; then
27932 echo $ECHO_N "(cached) $ECHO_C" >&6
27937 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27939 cat >conftest.$ac_ext <<_ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h. */
27946 #ifdef HAVE_DB_185_H
27947 # include <db_185.h>
27952 #ifndef DB_VERSION_MAJOR
27953 # define DB_VERSION_MAJOR 1
27957 #define NULL ((void*)0)
27964 #if DB_VERSION_MAJOR > 2
27965 db_env_create( NULL, 0 );
27966 #elif DB_VERSION_MAJOR > 1
27967 db_appexit( NULL );
27969 (void) dbopen( NULL, 0, 0, 0, NULL);
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978 (eval $ac_link) 2>conftest.er1
27980 grep -v '^ *+' conftest.er1 >conftest.err
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag"
27986 || test ! -s conftest.err'
27987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988 (eval $ac_try) 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest$ac_exeext'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; }; then
28000 echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28005 rm -f conftest.err conftest.$ac_objext \
28006 conftest$ac_exeext conftest.$ac_ext
28011 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28012 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28014 if test $ol_cv_db_db_4 = yes ; then
28015 ol_cv_lib_db=-ldb-4
28019 if test $ol_cv_lib_db = no ; then
28020 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28021 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28022 if test "${ol_cv_db_db4+set}" = set; then
28023 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28030 cat >conftest.$ac_ext <<_ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h. */
28037 #ifdef HAVE_DB_185_H
28038 # include <db_185.h>
28043 #ifndef DB_VERSION_MAJOR
28044 # define DB_VERSION_MAJOR 1
28048 #define NULL ((void*)0)
28055 #if DB_VERSION_MAJOR > 2
28056 db_env_create( NULL, 0 );
28057 #elif DB_VERSION_MAJOR > 1
28058 db_appexit( NULL );
28060 (void) dbopen( NULL, 0, 0, 0, NULL);
28067 rm -f conftest.$ac_objext conftest$ac_exeext
28068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28069 (eval $ac_link) 2>conftest.er1
28071 grep -v '^ *+' conftest.er1 >conftest.err
28073 cat conftest.err >&5
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); } &&
28076 { ac_try='test -z "$ac_c_werror_flag"
28077 || test ! -s conftest.err'
28078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28079 (eval $ac_try) 2>&5
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); }; } &&
28083 { ac_try='test -s conftest$ac_exeext'
28084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28085 (eval $ac_try) 2>&5
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; }; then
28091 echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28096 rm -f conftest.err conftest.$ac_objext \
28097 conftest$ac_exeext conftest.$ac_ext
28102 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28103 echo "${ECHO_T}$ol_cv_db_db4" >&6
28105 if test $ol_cv_db_db4 = yes ; then
28110 if test $ol_cv_lib_db = no ; then
28111 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28112 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28113 if test "${ol_cv_db_db+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28119 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28121 cat >conftest.$ac_ext <<_ACEOF
28124 cat confdefs.h >>conftest.$ac_ext
28125 cat >>conftest.$ac_ext <<_ACEOF
28126 /* end confdefs.h. */
28128 #ifdef HAVE_DB_185_H
28129 # include <db_185.h>
28134 #ifndef DB_VERSION_MAJOR
28135 # define DB_VERSION_MAJOR 1
28139 #define NULL ((void*)0)
28146 #if DB_VERSION_MAJOR > 2
28147 db_env_create( NULL, 0 );
28148 #elif DB_VERSION_MAJOR > 1
28149 db_appexit( NULL );
28151 (void) dbopen( NULL, 0, 0, 0, NULL);
28158 rm -f conftest.$ac_objext conftest$ac_exeext
28159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28160 (eval $ac_link) 2>conftest.er1
28162 grep -v '^ *+' conftest.er1 >conftest.err
28164 cat conftest.err >&5
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); } &&
28167 { ac_try='test -z "$ac_c_werror_flag"
28168 || test ! -s conftest.err'
28169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28170 (eval $ac_try) 2>&5
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); }; } &&
28174 { ac_try='test -s conftest$ac_exeext'
28175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28176 (eval $ac_try) 2>&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); }; }; then
28182 echo "$as_me: failed program was:" >&5
28183 sed 's/^/| /' conftest.$ac_ext >&5
28187 rm -f conftest.err conftest.$ac_objext \
28188 conftest$ac_exeext conftest.$ac_ext
28193 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28194 echo "${ECHO_T}$ol_cv_db_db" >&6
28196 if test $ol_cv_db_db = yes ; then
28202 if test $ol_cv_lib_db = no ; then
28203 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28204 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
28205 if test "${ol_cv_db_none+set}" = set; then
28206 echo $ECHO_N "(cached) $ECHO_C" >&6
28211 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28213 cat >conftest.$ac_ext <<_ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h. */
28220 #ifdef HAVE_DB_185_H
28221 # include <db_185.h>
28226 #ifndef DB_VERSION_MAJOR
28227 # define DB_VERSION_MAJOR 1
28231 #define NULL ((void*)0)
28238 #if DB_VERSION_MAJOR > 2
28239 db_env_create( NULL, 0 );
28240 #elif DB_VERSION_MAJOR > 1
28241 db_appexit( NULL );
28243 (void) dbopen( NULL, 0, 0, 0, NULL);
28250 rm -f conftest.$ac_objext conftest$ac_exeext
28251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28252 (eval $ac_link) 2>conftest.er1
28254 grep -v '^ *+' conftest.er1 >conftest.err
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } &&
28259 { ac_try='test -z "$ac_c_werror_flag"
28260 || test ! -s conftest.err'
28261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262 (eval $ac_try) 2>&5
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; } &&
28266 { ac_try='test -s conftest$ac_exeext'
28267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268 (eval $ac_try) 2>&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); }; }; then
28274 echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28279 rm -f conftest.err conftest.$ac_objext \
28280 conftest$ac_exeext conftest.$ac_ext
28285 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28286 echo "${ECHO_T}$ol_cv_db_none" >&6
28288 if test $ol_cv_db_none = yes ; then
28294 if test "$ol_cv_lib_db" != no ; then
28295 ol_cv_berkeley_db=yes
28296 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28297 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
28298 if test "${ol_cv_berkeley_db_version+set}" = set; then
28299 echo $ECHO_N "(cached) $ECHO_C" >&6
28303 LIBS="$LTHREAD_LIBS $LIBS"
28304 if test $ol_cv_lib_db != yes ; then
28305 LIBS="$ol_cv_lib_db $LIBS"
28308 if test "$cross_compiling" = yes; then
28309 ol_cv_berkeley_db_version=cross
28311 cat >conftest.$ac_ext <<_ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h. */
28318 #ifdef HAVE_DB_185_H
28323 #ifndef DB_VERSION_MAJOR
28324 # define DB_VERSION_MAJOR 1
28327 #define NULL ((void *)0)
28331 #if DB_VERSION_MAJOR > 1
28333 int major, minor, patch;
28335 version = db_version( &major, &minor, &patch );
28337 if( major != DB_VERSION_MAJOR ||
28338 minor != DB_VERSION_MINOR ||
28339 patch != DB_VERSION_PATCH )
28341 printf("Berkeley DB version mismatch\n"
28342 "\theader: %s\n\tlibrary: %s\n",
28343 DB_VERSION_STRING, version);
28351 rm -f conftest$ac_exeext
28352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28353 (eval $ac_link) 2>&5
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
28362 ol_cv_berkeley_db_version=yes
28364 echo "$as_me: program exited with status $ac_status" >&5
28365 echo "$as_me: failed program was:" >&5
28366 sed 's/^/| /' conftest.$ac_ext >&5
28368 ( exit $ac_status )
28369 ol_cv_berkeley_db_version=no
28371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28377 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28378 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
28380 if test $ol_cv_berkeley_db_version = no ; then
28381 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28382 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28383 { (exit 1); exit 1; }; }
28386 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28387 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
28388 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28389 echo $ECHO_N "(cached) $ECHO_C" >&6
28393 LIBS="$LTHREAD_LIBS $LIBS"
28394 if test $ol_cv_lib_db != yes ; then
28395 LIBS="$ol_cv_lib_db $LIBS"
28398 if test "$cross_compiling" = yes; then
28399 ol_cv_berkeley_db_thread=cross
28401 cat >conftest.$ac_ext <<_ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h. */
28408 #ifdef HAVE_DB_185_H
28414 #define NULL ((void *)0)
28419 u_int32_t flags = DB_CREATE |
28425 #if DB_VERSION_MAJOR > 2
28426 DB_ENV *env = NULL;
28428 rc = db_env_create( &env, 0 );
28430 flags |= DB_INIT_MPOOL;
28431 #ifdef DB_MPOOL_PRIVATE
28432 flags |= DB_MPOOL_PRIVATE;
28436 printf("BerkeleyDB: %s\n", db_strerror(rc) );
28440 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
28441 rc = (env->open)( env, NULL, flags, 0 );
28443 rc = (env->open)( env, NULL, NULL, flags, 0 );
28447 rc = env->close( env, 0 );
28451 printf("BerkeleyDB: %s\n", db_strerror(rc) );
28457 memset( &env, '\0', sizeof(env) );
28459 rc = db_appinit( NULL, NULL, &env, flags );
28462 db_appexit( &env );
28465 unlink("__db_mpool.share");
28466 unlink("__db_lock.share");
28472 rm -f conftest$ac_exeext
28473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28474 (eval $ac_link) 2>&5
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; }; then
28483 ol_cv_berkeley_db_thread=yes
28485 echo "$as_me: program exited with status $ac_status" >&5
28486 echo "$as_me: failed program was:" >&5
28487 sed 's/^/| /' conftest.$ac_ext >&5
28489 ( exit $ac_status )
28490 ol_cv_berkeley_db_thread=no
28492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28498 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
28499 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
28501 if test $ol_cv_berkeley_db_thread != no ; then
28503 cat >>confdefs.h <<\_ACEOF
28504 #define HAVE_BERKELEY_DB_THREAD 1
28513 if test $ol_cv_berkeley_db = no ; then
28514 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
28515 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
28516 { (exit 1); exit 1; }; }
28520 cat >>confdefs.h <<\_ACEOF
28521 #define HAVE_BERKELEY_DB 1
28525 if test $ol_cv_lib_db != yes ; then
28526 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
28529 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
28535 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
28536 BUILD_LIBS_DYNAMIC=shared
28538 cat >>confdefs.h <<\_ACEOF
28539 #define LDAP_LIBS_DYNAMIC 1
28544 BUILD_LIBS_DYNAMIC=static
28548 if test $ol_enable_wrappers != no ; then
28550 for ac_header in tcpd.h
28552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28554 echo "$as_me:$LINENO: checking for $ac_header" >&5
28555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28557 echo $ECHO_N "(cached) $ECHO_C" >&6
28559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28562 # Is the header compilable?
28563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28565 cat >conftest.$ac_ext <<_ACEOF
28568 cat confdefs.h >>conftest.$ac_ext
28569 cat >>conftest.$ac_ext <<_ACEOF
28570 /* end confdefs.h. */
28571 $ac_includes_default
28572 #include <$ac_header>
28574 rm -f conftest.$ac_objext
28575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28576 (eval $ac_compile) 2>conftest.er1
28578 grep -v '^ *+' conftest.er1 >conftest.err
28580 cat conftest.err >&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); } &&
28583 { ac_try='test -z "$ac_c_werror_flag"
28584 || test ! -s conftest.err'
28585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586 (eval $ac_try) 2>&5
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; } &&
28590 { ac_try='test -s conftest.$ac_objext'
28591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28592 (eval $ac_try) 2>&5
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; }; then
28596 ac_header_compiler=yes
28598 echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28601 ac_header_compiler=no
28603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28605 echo "${ECHO_T}$ac_header_compiler" >&6
28607 # Is the header present?
28608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28610 cat >conftest.$ac_ext <<_ACEOF
28613 cat confdefs.h >>conftest.$ac_ext
28614 cat >>conftest.$ac_ext <<_ACEOF
28615 /* end confdefs.h. */
28616 #include <$ac_header>
28618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28621 grep -v '^ *+' conftest.er1 >conftest.err
28623 cat conftest.err >&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); } >/dev/null; then
28626 if test -s conftest.err; then
28627 ac_cpp_err=$ac_c_preproc_warn_flag
28628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28635 if test -z "$ac_cpp_err"; then
28636 ac_header_preproc=yes
28638 echo "$as_me: failed program was:" >&5
28639 sed 's/^/| /' conftest.$ac_ext >&5
28641 ac_header_preproc=no
28643 rm -f conftest.err conftest.$ac_ext
28644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28645 echo "${ECHO_T}$ac_header_preproc" >&6
28647 # So? What about this header?
28648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28654 ac_header_preproc=yes
28657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28671 ## --------------------------------------------- ##
28672 ## Report this to <http://www.openldap.org/its/> ##
28673 ## --------------------------------------------- ##
28676 sed "s/^/$as_me: WARNING: /" >&2
28679 echo "$as_me:$LINENO: checking for $ac_header" >&5
28680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28682 echo $ECHO_N "(cached) $ECHO_C" >&6
28684 eval "$as_ac_Header=\$ac_header_preproc"
28686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28691 cat >>confdefs.h <<_ACEOF
28692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28695 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
28696 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
28698 LIBS="$LIBS -lwrap"
28699 cat >conftest.$ac_ext <<_ACEOF
28702 cat confdefs.h >>conftest.$ac_ext
28703 cat >>conftest.$ac_ext <<_ACEOF
28704 /* end confdefs.h. */
28707 int allow_severity = 0;
28708 int deny_severity = 0;
28710 struct request_info *req;
28722 rm -f conftest.$ac_objext conftest$ac_exeext
28723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28724 (eval $ac_link) 2>conftest.er1
28726 grep -v '^ *+' conftest.er1 >conftest.err
28728 cat conftest.err >&5
28729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730 (exit $ac_status); } &&
28731 { ac_try='test -z "$ac_c_werror_flag"
28732 || test ! -s conftest.err'
28733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734 (eval $ac_try) 2>&5
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; } &&
28738 { ac_try='test -s conftest$ac_exeext'
28739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740 (eval $ac_try) 2>&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; }; then
28744 echo "$as_me:$LINENO: result: -lwrap" >&5
28745 echo "${ECHO_T}-lwrap" >&6
28749 echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28754 cat >conftest.$ac_ext <<_ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h. */
28762 int allow_severity = 0;
28763 int deny_severity = 0;
28765 struct request_info *req;
28777 rm -f conftest.$ac_objext conftest$ac_exeext
28778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28779 (eval $ac_link) 2>conftest.er1
28781 grep -v '^ *+' conftest.er1 >conftest.err
28783 cat conftest.err >&5
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); } &&
28786 { ac_try='test -z "$ac_c_werror_flag"
28787 || test ! -s conftest.err'
28788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789 (eval $ac_try) 2>&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); }; } &&
28793 { ac_try='test -s conftest$ac_exeext'
28794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28795 (eval $ac_try) 2>&5
28797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798 (exit $ac_status); }; }; then
28799 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
28800 echo "${ECHO_T}-lwrap -lnsl" >&6
28802 LIBS="$save_LIBS -lnsl"
28804 echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28808 echo "$as_me:$LINENO: result: no" >&5
28809 echo "${ECHO_T}no" >&6
28813 rm -f conftest.err conftest.$ac_objext \
28814 conftest$ac_exeext conftest.$ac_ext
28816 rm -f conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
28825 if test $have_wrappers = yes ; then
28827 cat >>confdefs.h <<\_ACEOF
28828 #define HAVE_TCPD 1
28832 elif test $ol_enable_wrappers = yes ; then
28833 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
28834 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
28835 { (exit 1); exit 1; }; }
28837 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
28838 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
28843 if test $ol_enable_syslog != no ; then
28844 echo "$as_me:$LINENO: checking for openlog" >&5
28845 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
28846 if test "${ac_cv_func_openlog+set}" = set; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28849 cat >conftest.$ac_ext <<_ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h. */
28855 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
28856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28857 #define openlog innocuous_openlog
28859 /* System header to define __stub macros and hopefully few prototypes,
28860 which can conflict with char openlog (); below.
28861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28862 <limits.h> exists even on freestanding compilers. */
28865 # include <limits.h>
28867 # include <assert.h>
28872 /* Override any gcc2 internal prototype to avoid an error. */
28877 /* We use char because int might match the return type of a gcc2
28878 builtin and then its argument prototype would still apply. */
28880 /* The GNU C library defines this for functions which it implements
28881 to always fail with ENOSYS. Some functions are actually named
28882 something starting with __ and the normal name is an alias. */
28883 #if defined (__stub_openlog) || defined (__stub___openlog)
28886 char (*f) () = openlog;
28895 return f != openlog;
28900 rm -f conftest.$ac_objext conftest$ac_exeext
28901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28902 (eval $ac_link) 2>conftest.er1
28904 grep -v '^ *+' conftest.er1 >conftest.err
28906 cat conftest.err >&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); } &&
28909 { ac_try='test -z "$ac_c_werror_flag"
28910 || test ! -s conftest.err'
28911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; } &&
28916 { ac_try='test -s conftest$ac_exeext'
28917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 (eval $ac_try) 2>&5
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; }; then
28922 ac_cv_func_openlog=yes
28924 echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28927 ac_cv_func_openlog=no
28929 rm -f conftest.err conftest.$ac_objext \
28930 conftest$ac_exeext conftest.$ac_ext
28932 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
28933 echo "${ECHO_T}$ac_cv_func_openlog" >&6
28935 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
28936 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
28937 echo "$as_me: error: could not find syslog" >&2;}
28938 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
28940 ol_enable_syslog=$ac_cv_func_openlog
28944 if test $ol_enable_sql != no ; then
28947 for ac_header in sql.h sqlext.h
28949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28951 echo "$as_me:$LINENO: checking for $ac_header" >&5
28952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28954 echo $ECHO_N "(cached) $ECHO_C" >&6
28956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28959 # Is the header compilable?
28960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28962 cat >conftest.$ac_ext <<_ACEOF
28965 cat confdefs.h >>conftest.$ac_ext
28966 cat >>conftest.$ac_ext <<_ACEOF
28967 /* end confdefs.h. */
28968 $ac_includes_default
28969 #include <$ac_header>
28971 rm -f conftest.$ac_objext
28972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28973 (eval $ac_compile) 2>conftest.er1
28975 grep -v '^ *+' conftest.er1 >conftest.err
28977 cat conftest.err >&5
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); } &&
28980 { ac_try='test -z "$ac_c_werror_flag"
28981 || test ! -s conftest.err'
28982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983 (eval $ac_try) 2>&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); }; } &&
28987 { ac_try='test -s conftest.$ac_objext'
28988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 (eval $ac_try) 2>&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); }; }; then
28993 ac_header_compiler=yes
28995 echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28998 ac_header_compiler=no
29000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29002 echo "${ECHO_T}$ac_header_compiler" >&6
29004 # Is the header present?
29005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29007 cat >conftest.$ac_ext <<_ACEOF
29010 cat confdefs.h >>conftest.$ac_ext
29011 cat >>conftest.$ac_ext <<_ACEOF
29012 /* end confdefs.h. */
29013 #include <$ac_header>
29015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29018 grep -v '^ *+' conftest.er1 >conftest.err
29020 cat conftest.err >&5
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); } >/dev/null; then
29023 if test -s conftest.err; then
29024 ac_cpp_err=$ac_c_preproc_warn_flag
29025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29032 if test -z "$ac_cpp_err"; then
29033 ac_header_preproc=yes
29035 echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29038 ac_header_preproc=no
29040 rm -f conftest.err conftest.$ac_ext
29041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29042 echo "${ECHO_T}$ac_header_preproc" >&6
29044 # So? What about this header?
29045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29051 ac_header_preproc=yes
29054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29068 ## --------------------------------------------- ##
29069 ## Report this to <http://www.openldap.org/its/> ##
29070 ## --------------------------------------------- ##
29073 sed "s/^/$as_me: WARNING: /" >&2
29076 echo "$as_me:$LINENO: checking for $ac_header" >&5
29077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29079 echo $ECHO_N "(cached) $ECHO_C" >&6
29081 eval "$as_ac_Header=\$ac_header_preproc"
29083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29088 cat >>confdefs.h <<_ACEOF
29089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29094 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29095 echo "$as_me: error: could not locate SQL headers" >&2;}
29096 { (exit 1); exit 1; }; }
29104 LIBS="$LTHREAD_LIBS"
29106 if test $ol_with_odbc = auto ; then
29107 ol_with_odbc="iodbc unixodbc odbc32"
29110 for odbc in $ol_with_odbc ; do
29111 if test $ol_link_sql = no ; then
29114 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29115 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
29116 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29117 echo $ECHO_N "(cached) $ECHO_C" >&6
29119 ac_check_lib_save_LIBS=$LIBS
29120 LIBS="-liodbc $LIBS"
29121 cat >conftest.$ac_ext <<_ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29128 /* Override any gcc2 internal prototype to avoid an error. */
29132 /* We use char because int might match the return type of a gcc2
29133 builtin and then its argument prototype would still apply. */
29134 char SQLDriverConnect ();
29138 SQLDriverConnect ();
29143 rm -f conftest.$ac_objext conftest$ac_exeext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29145 (eval $ac_link) 2>conftest.er1
29147 grep -v '^ *+' conftest.er1 >conftest.err
29149 cat conftest.err >&5
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); } &&
29152 { ac_try='test -z "$ac_c_werror_flag"
29153 || test ! -s conftest.err'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; } &&
29159 { ac_try='test -s conftest$ac_exeext'
29160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161 (eval $ac_try) 2>&5
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; }; then
29165 ac_cv_lib_iodbc_SQLDriverConnect=yes
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29170 ac_cv_lib_iodbc_SQLDriverConnect=no
29172 rm -f conftest.err conftest.$ac_objext \
29173 conftest$ac_exeext conftest.$ac_ext
29174 LIBS=$ac_check_lib_save_LIBS
29176 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29177 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
29178 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29184 if test $have_iodbc = yes ; then
29185 ol_link_sql="-liodbc"
29190 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29191 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
29192 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29193 echo $ECHO_N "(cached) $ECHO_C" >&6
29195 ac_check_lib_save_LIBS=$LIBS
29196 LIBS="-lodbc $LIBS"
29197 cat >conftest.$ac_ext <<_ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29204 /* Override any gcc2 internal prototype to avoid an error. */
29208 /* We use char because int might match the return type of a gcc2
29209 builtin and then its argument prototype would still apply. */
29210 char SQLDriverConnect ();
29214 SQLDriverConnect ();
29219 rm -f conftest.$ac_objext conftest$ac_exeext
29220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29221 (eval $ac_link) 2>conftest.er1
29223 grep -v '^ *+' conftest.er1 >conftest.err
29225 cat conftest.err >&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
29228 { ac_try='test -z "$ac_c_werror_flag"
29229 || test ! -s conftest.err'
29230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; } &&
29235 { ac_try='test -s conftest$ac_exeext'
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; }; then
29241 ac_cv_lib_odbc_SQLDriverConnect=yes
29243 echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29246 ac_cv_lib_odbc_SQLDriverConnect=no
29248 rm -f conftest.err conftest.$ac_objext \
29249 conftest$ac_exeext conftest.$ac_ext
29250 LIBS=$ac_check_lib_save_LIBS
29252 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29253 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
29254 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29260 if test $have_odbc = yes ; then
29261 ol_link_sql="-lodbc"
29266 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29267 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
29268 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29269 echo $ECHO_N "(cached) $ECHO_C" >&6
29271 ac_check_lib_save_LIBS=$LIBS
29272 LIBS="-lodbc32 $LIBS"
29273 cat >conftest.$ac_ext <<_ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29280 /* Override any gcc2 internal prototype to avoid an error. */
29284 /* We use char because int might match the return type of a gcc2
29285 builtin and then its argument prototype would still apply. */
29286 char SQLDriverConnect ();
29290 SQLDriverConnect ();
29295 rm -f conftest.$ac_objext conftest$ac_exeext
29296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29297 (eval $ac_link) 2>conftest.er1
29299 grep -v '^ *+' conftest.er1 >conftest.err
29301 cat conftest.err >&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } &&
29304 { ac_try='test -z "$ac_c_werror_flag"
29305 || test ! -s conftest.err'
29306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; } &&
29311 { ac_try='test -s conftest$ac_exeext'
29312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313 (eval $ac_try) 2>&5
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; }; then
29317 ac_cv_lib_odbc32_SQLDriverConnect=yes
29319 echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29322 ac_cv_lib_odbc32_SQLDriverConnect=no
29324 rm -f conftest.err conftest.$ac_objext \
29325 conftest$ac_exeext conftest.$ac_ext
29326 LIBS=$ac_check_lib_save_LIBS
29328 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29329 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
29330 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29336 if test $have_odbc32 = yes ; then
29337 ol_link_sql="-lodbc32"
29342 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29343 echo "$as_me: error: unknown ODBC library" >&2;}
29344 { (exit 1); exit 1; }; }
29352 if test $ol_link_sql != no ; then
29353 SLAPD_SQL_LIBS="$ol_link_sql"
29355 elif test $ol_enable_sql != auto ; then
29356 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29357 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29358 { (exit 1); exit 1; }; }
29363 if test $ol_enable_ndb != no ; then
29364 # Extract the first word of "mysql_config", so it can be a program name with args.
29365 set dummy mysql_config; ac_word=$2
29366 echo "$as_me:$LINENO: checking for $ac_word" >&5
29367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29368 if test "${ac_cv_prog_MYSQL+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29371 if test -n "$MYSQL"; then
29372 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29375 for as_dir in $PATH
29378 test -z "$as_dir" && as_dir=.
29379 for ac_exec_ext in '' $ac_executable_extensions; do
29380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29381 ac_cv_prog_MYSQL="yes"
29382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29390 MYSQL=$ac_cv_prog_MYSQL
29391 if test -n "$MYSQL"; then
29392 echo "$as_me:$LINENO: result: $MYSQL" >&5
29393 echo "${ECHO_T}$MYSQL" >&6
29395 echo "$as_me:$LINENO: result: no" >&5
29396 echo "${ECHO_T}no" >&6
29399 if test "$MYSQL" != yes ; then
29400 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29401 echo "$as_me: error: could not locate mysql_config" >&2;}
29402 { (exit 1); exit 1; }; }
29405 SQL_INC=`mysql_config --include`
29406 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29408 save_CPPFLAGS="$CPPFLAGS"
29409 CPPFLAGS="$SLAPD_NDB_INCS"
29410 echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29411 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
29412 cat >conftest.$ac_ext <<_ACEOF
29415 cat confdefs.h >>conftest.$ac_ext
29416 cat >>conftest.$ac_ext <<_ACEOF
29417 /* end confdefs.h. */
29418 #include <NdbApi.hpp>
29420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29423 grep -v '^ *+' conftest.er1 >conftest.err
29425 cat conftest.err >&5
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); } >/dev/null; then
29428 if test -s conftest.err; then
29429 ac_cpp_err=$ac_c_preproc_warn_flag
29430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29437 if test -z "$ac_cpp_err"; then
29438 echo "$as_me:$LINENO: result: yes" >&5
29439 echo "${ECHO_T}yes" >&6
29441 echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29444 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
29445 echo "$as_me: error: could not locate NdbApi headers" >&2;}
29446 { (exit 1); exit 1; }; }
29449 rm -f conftest.err conftest.$ac_ext
29450 CPPFLAGS="$save_CPPFLAGS"
29452 SQL_LIB=`mysql_config --libs_r`
29453 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
29455 save_LDFLAGS="$LDFLAGS"
29458 echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
29459 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
29460 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
29461 echo $ECHO_N "(cached) $ECHO_C" >&6
29463 ac_check_lib_save_LIBS=$LIBS
29464 LIBS="-lndbclient -lstdc++ $LIBS"
29465 cat >conftest.$ac_ext <<_ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h. */
29472 /* Override any gcc2 internal prototype to avoid an error. */
29476 /* We use char because int might match the return type of a gcc2
29477 builtin and then its argument prototype would still apply. */
29487 rm -f conftest.$ac_objext conftest$ac_exeext
29488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29489 (eval $ac_link) 2>conftest.er1
29491 grep -v '^ *+' conftest.er1 >conftest.err
29493 cat conftest.err >&5
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } &&
29496 { ac_try='test -z "$ac_c_werror_flag"
29497 || test ! -s conftest.err'
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; } &&
29503 { ac_try='test -s conftest$ac_exeext'
29504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29505 (eval $ac_try) 2>&5
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); }; }; then
29509 ac_cv_lib_ndbclient_ndb_init=yes
29511 echo "$as_me: failed program was:" >&5
29512 sed 's/^/| /' conftest.$ac_ext >&5
29514 ac_cv_lib_ndbclient_ndb_init=no
29516 rm -f conftest.err conftest.$ac_objext \
29517 conftest$ac_exeext conftest.$ac_ext
29518 LIBS=$ac_check_lib_save_LIBS
29520 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
29521 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
29522 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
29526 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
29527 echo "$as_me: error: could not locate ndbclient library" >&2;}
29528 { (exit 1); exit 1; }; }
29533 LDFLAGS="$save_LDFLAGS"
29535 if test "$ol_enable_ndb" = yes ; then
29536 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
29542 for ac_header in unicode/utypes.h
29544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29546 echo "$as_me:$LINENO: checking for $ac_header" >&5
29547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29554 # Is the header compilable?
29555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29557 cat >conftest.$ac_ext <<_ACEOF
29560 cat confdefs.h >>conftest.$ac_ext
29561 cat >>conftest.$ac_ext <<_ACEOF
29562 /* end confdefs.h. */
29563 $ac_includes_default
29564 #include <$ac_header>
29566 rm -f conftest.$ac_objext
29567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29568 (eval $ac_compile) 2>conftest.er1
29570 grep -v '^ *+' conftest.er1 >conftest.err
29572 cat conftest.err >&5
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); } &&
29575 { ac_try='test -z "$ac_c_werror_flag"
29576 || test ! -s conftest.err'
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; } &&
29582 { ac_try='test -s conftest.$ac_objext'
29583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29584 (eval $ac_try) 2>&5
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); }; }; then
29588 ac_header_compiler=yes
29590 echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29593 ac_header_compiler=no
29595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29597 echo "${ECHO_T}$ac_header_compiler" >&6
29599 # Is the header present?
29600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29602 cat >conftest.$ac_ext <<_ACEOF
29605 cat confdefs.h >>conftest.$ac_ext
29606 cat >>conftest.$ac_ext <<_ACEOF
29607 /* end confdefs.h. */
29608 #include <$ac_header>
29610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29613 grep -v '^ *+' conftest.er1 >conftest.err
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } >/dev/null; then
29618 if test -s conftest.err; then
29619 ac_cpp_err=$ac_c_preproc_warn_flag
29620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29627 if test -z "$ac_cpp_err"; then
29628 ac_header_preproc=yes
29630 echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29633 ac_header_preproc=no
29635 rm -f conftest.err conftest.$ac_ext
29636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29637 echo "${ECHO_T}$ac_header_preproc" >&6
29639 # So? What about this header?
29640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29646 ac_header_preproc=yes
29649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29663 ## --------------------------------------------- ##
29664 ## Report this to <http://www.openldap.org/its/> ##
29665 ## --------------------------------------------- ##
29668 sed "s/^/$as_me: WARNING: /" >&2
29671 echo "$as_me:$LINENO: checking for $ac_header" >&5
29672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29674 echo $ECHO_N "(cached) $ECHO_C" >&6
29676 eval "$as_ac_Header=\$ac_header_preproc"
29678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29683 cat >>confdefs.h <<_ACEOF
29684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29691 if test $ac_cv_header_unicode_utypes_h = yes ; then
29692 OL_ICULIBS="-licuuc -licudata"
29694 echo "$as_me:$LINENO: checking for ICU libraries" >&5
29695 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
29696 if test "${ol_cv_lib_icu+set}" = set; then
29697 echo $ECHO_N "(cached) $ECHO_C" >&6
29701 LIBS="$OL_ICULIBS $LIBS"
29702 cat >conftest.$ac_ext <<_ACEOF
29705 cat confdefs.h >>conftest.$ac_ext
29706 cat >>conftest.$ac_ext <<_ACEOF
29707 /* end confdefs.h. */
29709 #include <unicode/utypes.h>
29715 (void) u_errorName(0);
29721 rm -f conftest.$ac_objext conftest$ac_exeext
29722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29723 (eval $ac_link) 2>conftest.er1
29725 grep -v '^ *+' conftest.er1 >conftest.err
29727 cat conftest.err >&5
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); } &&
29730 { ac_try='test -z "$ac_c_werror_flag"
29731 || test ! -s conftest.err'
29732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733 (eval $ac_try) 2>&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; } &&
29737 { ac_try='test -s conftest$ac_exeext'
29738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739 (eval $ac_try) 2>&5
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); }; }; then
29745 echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29750 rm -f conftest.err conftest.$ac_objext \
29751 conftest$ac_exeext conftest.$ac_ext
29755 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
29756 echo "${ECHO_T}$ol_cv_lib_icu" >&6
29758 if test $ol_cv_lib_icu != no ; then
29759 ol_icu="$OL_ICULIBS"
29761 cat >>confdefs.h <<\_ACEOF
29768 if test "$ol_icu" = no ; then
29769 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
29770 echo "$as_me: WARNING: ICU not available" >&2;}
29777 if test $ol_with_cyrus_sasl != no ; then
29780 for ac_header in sasl/sasl.h sasl.h
29782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29784 echo "$as_me:$LINENO: checking for $ac_header" >&5
29785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29792 # Is the header compilable?
29793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29795 cat >conftest.$ac_ext <<_ACEOF
29798 cat confdefs.h >>conftest.$ac_ext
29799 cat >>conftest.$ac_ext <<_ACEOF
29800 /* end confdefs.h. */
29801 $ac_includes_default
29802 #include <$ac_header>
29804 rm -f conftest.$ac_objext
29805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29806 (eval $ac_compile) 2>conftest.er1
29808 grep -v '^ *+' conftest.er1 >conftest.err
29810 cat conftest.err >&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } &&
29813 { ac_try='test -z "$ac_c_werror_flag"
29814 || test ! -s conftest.err'
29815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29816 (eval $ac_try) 2>&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); }; } &&
29820 { ac_try='test -s conftest.$ac_objext'
29821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29822 (eval $ac_try) 2>&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); }; }; then
29826 ac_header_compiler=yes
29828 echo "$as_me: failed program was:" >&5
29829 sed 's/^/| /' conftest.$ac_ext >&5
29831 ac_header_compiler=no
29833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29835 echo "${ECHO_T}$ac_header_compiler" >&6
29837 # Is the header present?
29838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29840 cat >conftest.$ac_ext <<_ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h. */
29846 #include <$ac_header>
29848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29851 grep -v '^ *+' conftest.er1 >conftest.err
29853 cat conftest.err >&5
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); } >/dev/null; then
29856 if test -s conftest.err; then
29857 ac_cpp_err=$ac_c_preproc_warn_flag
29858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29865 if test -z "$ac_cpp_err"; then
29866 ac_header_preproc=yes
29868 echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871 ac_header_preproc=no
29873 rm -f conftest.err conftest.$ac_ext
29874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29875 echo "${ECHO_T}$ac_header_preproc" >&6
29877 # So? What about this header?
29878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29884 ac_header_preproc=yes
29887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29901 ## --------------------------------------------- ##
29902 ## Report this to <http://www.openldap.org/its/> ##
29903 ## --------------------------------------------- ##
29906 sed "s/^/$as_me: WARNING: /" >&2
29909 echo "$as_me:$LINENO: checking for $ac_header" >&5
29910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29912 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 eval "$as_ac_Header=\$ac_header_preproc"
29916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29921 cat >>confdefs.h <<_ACEOF
29922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29930 if test $ac_cv_header_sasl_sasl_h = yes ||
29931 test $ac_cv_header_sasl_h = yes; then
29932 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
29933 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
29934 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
29935 echo $ECHO_N "(cached) $ECHO_C" >&6
29937 ac_check_lib_save_LIBS=$LIBS
29938 LIBS="-lsasl2 $LIBS"
29939 cat >conftest.$ac_ext <<_ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h. */
29946 /* Override any gcc2 internal prototype to avoid an error. */
29950 /* We use char because int might match the return type of a gcc2
29951 builtin and then its argument prototype would still apply. */
29952 char sasl_client_init ();
29956 sasl_client_init ();
29961 rm -f conftest.$ac_objext conftest$ac_exeext
29962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29963 (eval $ac_link) 2>conftest.er1
29965 grep -v '^ *+' conftest.er1 >conftest.err
29967 cat conftest.err >&5
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); } &&
29970 { ac_try='test -z "$ac_c_werror_flag"
29971 || test ! -s conftest.err'
29972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29973 (eval $ac_try) 2>&5
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); }; } &&
29977 { ac_try='test -s conftest$ac_exeext'
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; }; then
29983 ac_cv_lib_sasl2_sasl_client_init=yes
29985 echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29988 ac_cv_lib_sasl2_sasl_client_init=no
29990 rm -f conftest.err conftest.$ac_objext \
29991 conftest$ac_exeext conftest.$ac_ext
29992 LIBS=$ac_check_lib_save_LIBS
29994 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
29995 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
29996 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
29997 ol_link_sasl="-lsasl2"
29999 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30000 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
30001 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30002 echo $ECHO_N "(cached) $ECHO_C" >&6
30004 ac_check_lib_save_LIBS=$LIBS
30005 LIBS="-lsasl $LIBS"
30006 cat >conftest.$ac_ext <<_ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h. */
30013 /* Override any gcc2 internal prototype to avoid an error. */
30017 /* We use char because int might match the return type of a gcc2
30018 builtin and then its argument prototype would still apply. */
30019 char sasl_client_init ();
30023 sasl_client_init ();
30028 rm -f conftest.$ac_objext conftest$ac_exeext
30029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30030 (eval $ac_link) 2>conftest.er1
30032 grep -v '^ *+' conftest.er1 >conftest.err
30034 cat conftest.err >&5
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); } &&
30037 { ac_try='test -z "$ac_c_werror_flag"
30038 || test ! -s conftest.err'
30039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30040 (eval $ac_try) 2>&5
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); }; } &&
30044 { ac_try='test -s conftest$ac_exeext'
30045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30046 (eval $ac_try) 2>&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); }; }; then
30050 ac_cv_lib_sasl_sasl_client_init=yes
30052 echo "$as_me: failed program was:" >&5
30053 sed 's/^/| /' conftest.$ac_ext >&5
30055 ac_cv_lib_sasl_sasl_client_init=no
30057 rm -f conftest.err conftest.$ac_objext \
30058 conftest$ac_exeext conftest.$ac_ext
30059 LIBS=$ac_check_lib_save_LIBS
30061 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30062 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
30063 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30064 ol_link_sasl="-lsasl"
30071 if test $ol_link_sasl = no ; then
30072 if test $ol_with_cyrus_sasl != auto ; then
30073 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30074 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30075 { (exit 1); exit 1; }; }
30077 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30078 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30079 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30080 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30081 if test $ol_link_tls = no ; then
30082 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30083 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30087 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30088 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
30089 if test "${ol_cv_sasl_compat+set}" = set; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30093 cat >conftest.$ac_ext <<_ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h. */
30100 #ifdef HAVE_SASL_SASL_H
30101 #include <sasl/sasl.h>
30106 /* Require 2.1.15+ */
30107 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30108 char *__sasl_compat = "2.2+ or better okay (we guess)";
30109 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30110 && SASL_VERSION_STEP >=15
30111 char *__sasl_compat = "2.1.15+ or better okay";
30115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30116 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30117 ol_cv_sasl_compat=yes
30119 ol_cv_sasl_compat=no
30124 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30125 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
30127 if test $ol_cv_sasl_compat = no ; then
30129 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30130 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30131 { (exit 1); exit 1; }; }
30135 cat >>confdefs.h <<\_ACEOF
30136 #define HAVE_CYRUS_SASL 1
30139 SASL_LIBS="$ol_link_sasl"
30140 if test $ol_enable_spasswd != no ; then
30141 ol_link_spasswd=yes
30144 ac_save_LIBS="$LIBS"
30145 LIBS="$LIBS $ol_link_sasl"
30146 echo "$as_me:$LINENO: checking for sasl_version" >&5
30147 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
30148 if test "${ac_cv_func_sasl_version+set}" = set; then
30149 echo $ECHO_N "(cached) $ECHO_C" >&6
30151 cat >conftest.$ac_ext <<_ACEOF
30154 cat confdefs.h >>conftest.$ac_ext
30155 cat >>conftest.$ac_ext <<_ACEOF
30156 /* end confdefs.h. */
30157 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30159 #define sasl_version innocuous_sasl_version
30161 /* System header to define __stub macros and hopefully few prototypes,
30162 which can conflict with char sasl_version (); below.
30163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30164 <limits.h> exists even on freestanding compilers. */
30167 # include <limits.h>
30169 # include <assert.h>
30172 #undef sasl_version
30174 /* Override any gcc2 internal prototype to avoid an error. */
30179 /* We use char because int might match the return type of a gcc2
30180 builtin and then its argument prototype would still apply. */
30181 char sasl_version ();
30182 /* The GNU C library defines this for functions which it implements
30183 to always fail with ENOSYS. Some functions are actually named
30184 something starting with __ and the normal name is an alias. */
30185 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
30188 char (*f) () = sasl_version;
30197 return f != sasl_version;
30202 rm -f conftest.$ac_objext conftest$ac_exeext
30203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30204 (eval $ac_link) 2>conftest.er1
30206 grep -v '^ *+' conftest.er1 >conftest.err
30208 cat conftest.err >&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } &&
30211 { ac_try='test -z "$ac_c_werror_flag"
30212 || test ! -s conftest.err'
30213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30214 (eval $ac_try) 2>&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); }; } &&
30218 { ac_try='test -s conftest$ac_exeext'
30219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220 (eval $ac_try) 2>&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; }; then
30224 ac_cv_func_sasl_version=yes
30226 echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30229 ac_cv_func_sasl_version=no
30231 rm -f conftest.err conftest.$ac_objext \
30232 conftest$ac_exeext conftest.$ac_ext
30234 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30235 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
30236 if test $ac_cv_func_sasl_version = yes; then
30238 cat >>confdefs.h <<\_ACEOF
30239 #define HAVE_SASL_VERSION 1
30244 LIBS="$ac_save_LIBS"
30250 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30251 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30252 if test $ol_link_tls = no ; then
30253 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30254 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30258 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30260 if test -r /dev/urandom ; then
30261 dev="/dev/urandom";
30262 elif test -r /idev/urandom ; then
30263 dev="/idev/urandom";
30264 elif test -r /dev/srandom ; then
30265 dev="/dev/srandom";
30266 elif test -r /dev/random ; then
30268 elif test -r /idev/random ; then
30269 dev="/idev/random";
30272 if test $dev != no ; then
30274 cat >>confdefs.h <<_ACEOF
30275 #define URANDOM_DEVICE "$dev"
30282 if test $ol_with_fetch != no ; then
30284 LIBS="-lfetch -lcom_err $LIBS"
30285 echo "$as_me:$LINENO: checking fetch(3) library" >&5
30286 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
30287 if test "${ol_cv_lib_fetch+set}" = set; then
30288 echo $ECHO_N "(cached) $ECHO_C" >&6
30291 cat >conftest.$ac_ext <<_ACEOF
30294 cat confdefs.h >>conftest.$ac_ext
30295 cat >>conftest.$ac_ext <<_ACEOF
30296 /* end confdefs.h. */
30298 #include <sys/param.h>
30304 struct url *u = fetchParseURL("file:///");
30309 rm -f conftest.$ac_objext conftest$ac_exeext
30310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30311 (eval $ac_link) 2>conftest.er1
30313 grep -v '^ *+' conftest.er1 >conftest.err
30315 cat conftest.err >&5
30316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317 (exit $ac_status); } &&
30318 { ac_try='test -z "$ac_c_werror_flag"
30319 || test ! -s conftest.err'
30320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30321 (eval $ac_try) 2>&5
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); }; } &&
30325 { ac_try='test -s conftest$ac_exeext'
30326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327 (eval $ac_try) 2>&5
30329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330 (exit $ac_status); }; }; then
30331 ol_cv_lib_fetch=yes
30333 echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30338 rm -f conftest.err conftest.$ac_objext \
30339 conftest$ac_exeext conftest.$ac_ext
30341 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30342 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
30344 if test $ol_cv_lib_fetch != no ; then
30345 ol_link_fetch="-lfetch -lcom_err"
30347 cat >>confdefs.h <<\_ACEOF
30348 #define HAVE_FETCH 1
30354 if test $ol_cv_lib_fetch != no ; then
30355 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30356 ol_link_fetch=freebsd
30358 elif test $ol_with_fetch != auto ; then
30359 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30360 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30361 { (exit 1); exit 1; }; }
30365 if test $ol_enable_crypt != no ; then
30367 LIBS="$TLS_LIBS $LIBS"
30369 echo "$as_me:$LINENO: checking for crypt" >&5
30370 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
30371 if test "${ac_cv_func_crypt+set}" = set; then
30372 echo $ECHO_N "(cached) $ECHO_C" >&6
30374 cat >conftest.$ac_ext <<_ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30380 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30382 #define crypt innocuous_crypt
30384 /* System header to define __stub macros and hopefully few prototypes,
30385 which can conflict with char crypt (); below.
30386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30387 <limits.h> exists even on freestanding compilers. */
30390 # include <limits.h>
30392 # include <assert.h>
30397 /* Override any gcc2 internal prototype to avoid an error. */
30402 /* We use char because int might match the return type of a gcc2
30403 builtin and then its argument prototype would still apply. */
30405 /* The GNU C library defines this for functions which it implements
30406 to always fail with ENOSYS. Some functions are actually named
30407 something starting with __ and the normal name is an alias. */
30408 #if defined (__stub_crypt) || defined (__stub___crypt)
30411 char (*f) () = crypt;
30425 rm -f conftest.$ac_objext conftest$ac_exeext
30426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30427 (eval $ac_link) 2>conftest.er1
30429 grep -v '^ *+' conftest.er1 >conftest.err
30431 cat conftest.err >&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); } &&
30434 { ac_try='test -z "$ac_c_werror_flag"
30435 || test ! -s conftest.err'
30436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30437 (eval $ac_try) 2>&5
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); }; } &&
30441 { ac_try='test -s conftest$ac_exeext'
30442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30443 (eval $ac_try) 2>&5
30445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446 (exit $ac_status); }; }; then
30447 ac_cv_func_crypt=yes
30449 echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30452 ac_cv_func_crypt=no
30454 rm -f conftest.err conftest.$ac_objext \
30455 conftest$ac_exeext conftest.$ac_ext
30457 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30458 echo "${ECHO_T}$ac_cv_func_crypt" >&6
30459 if test $ac_cv_func_crypt = yes; then
30464 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30465 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
30466 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30467 echo $ECHO_N "(cached) $ECHO_C" >&6
30469 ac_check_lib_save_LIBS=$LIBS
30470 LIBS="-lcrypt $LIBS"
30471 cat >conftest.$ac_ext <<_ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h. */
30478 /* Override any gcc2 internal prototype to avoid an error. */
30482 /* We use char because int might match the return type of a gcc2
30483 builtin and then its argument prototype would still apply. */
30493 rm -f conftest.$ac_objext conftest$ac_exeext
30494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30495 (eval $ac_link) 2>conftest.er1
30497 grep -v '^ *+' conftest.er1 >conftest.err
30499 cat conftest.err >&5
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); } &&
30502 { ac_try='test -z "$ac_c_werror_flag"
30503 || test ! -s conftest.err'
30504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 (eval $ac_try) 2>&5
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; } &&
30509 { ac_try='test -s conftest$ac_exeext'
30510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30511 (eval $ac_try) 2>&5
30513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 (exit $ac_status); }; }; then
30515 ac_cv_lib_crypt_crypt=yes
30517 echo "$as_me: failed program was:" >&5
30518 sed 's/^/| /' conftest.$ac_ext >&5
30520 ac_cv_lib_crypt_crypt=no
30522 rm -f conftest.err conftest.$ac_objext \
30523 conftest$ac_exeext conftest.$ac_ext
30524 LIBS=$ac_check_lib_save_LIBS
30526 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
30527 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
30528 if test $ac_cv_lib_crypt_crypt = yes; then
30529 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
30540 if test $have_crypt = yes ; then
30542 cat >>confdefs.h <<\_ACEOF
30543 #define HAVE_CRYPT 1
30547 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
30548 echo "$as_me: WARNING: could not find crypt" >&2;}
30549 if test $ol_enable_crypt = yes ; then
30550 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
30551 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
30552 { (exit 1); exit 1; }; }
30555 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
30556 echo "$as_me: WARNING: disabling crypt support" >&2;}
30561 if test $ol_enable_proctitle != no ; then
30562 echo "$as_me:$LINENO: checking for setproctitle" >&5
30563 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
30564 if test "${ac_cv_func_setproctitle+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30567 cat >conftest.$ac_ext <<_ACEOF
30570 cat confdefs.h >>conftest.$ac_ext
30571 cat >>conftest.$ac_ext <<_ACEOF
30572 /* end confdefs.h. */
30573 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
30574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30575 #define setproctitle innocuous_setproctitle
30577 /* System header to define __stub macros and hopefully few prototypes,
30578 which can conflict with char setproctitle (); below.
30579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30580 <limits.h> exists even on freestanding compilers. */
30583 # include <limits.h>
30585 # include <assert.h>
30588 #undef setproctitle
30590 /* Override any gcc2 internal prototype to avoid an error. */
30595 /* We use char because int might match the return type of a gcc2
30596 builtin and then its argument prototype would still apply. */
30597 char setproctitle ();
30598 /* The GNU C library defines this for functions which it implements
30599 to always fail with ENOSYS. Some functions are actually named
30600 something starting with __ and the normal name is an alias. */
30601 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
30604 char (*f) () = setproctitle;
30613 return f != setproctitle;
30618 rm -f conftest.$ac_objext conftest$ac_exeext
30619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30620 (eval $ac_link) 2>conftest.er1
30622 grep -v '^ *+' conftest.er1 >conftest.err
30624 cat conftest.err >&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); } &&
30627 { ac_try='test -z "$ac_c_werror_flag"
30628 || test ! -s conftest.err'
30629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630 (eval $ac_try) 2>&5
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); }; } &&
30634 { ac_try='test -s conftest$ac_exeext'
30635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30636 (eval $ac_try) 2>&5
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); }; }; then
30640 ac_cv_func_setproctitle=yes
30642 echo "$as_me: failed program was:" >&5
30643 sed 's/^/| /' conftest.$ac_ext >&5
30645 ac_cv_func_setproctitle=no
30647 rm -f conftest.err conftest.$ac_objext \
30648 conftest$ac_exeext conftest.$ac_ext
30650 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
30651 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
30652 if test $ac_cv_func_setproctitle = yes; then
30653 have_setproctitle=yes
30656 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
30657 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
30658 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
30659 echo $ECHO_N "(cached) $ECHO_C" >&6
30661 ac_check_lib_save_LIBS=$LIBS
30662 LIBS="-lutil $LIBS"
30663 cat >conftest.$ac_ext <<_ACEOF
30666 cat confdefs.h >>conftest.$ac_ext
30667 cat >>conftest.$ac_ext <<_ACEOF
30668 /* end confdefs.h. */
30670 /* Override any gcc2 internal prototype to avoid an error. */
30674 /* We use char because int might match the return type of a gcc2
30675 builtin and then its argument prototype would still apply. */
30676 char setproctitle ();
30685 rm -f conftest.$ac_objext conftest$ac_exeext
30686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30687 (eval $ac_link) 2>conftest.er1
30689 grep -v '^ *+' conftest.er1 >conftest.err
30691 cat conftest.err >&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } &&
30694 { ac_try='test -z "$ac_c_werror_flag"
30695 || test ! -s conftest.err'
30696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697 (eval $ac_try) 2>&5
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; } &&
30701 { ac_try='test -s conftest$ac_exeext'
30702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30703 (eval $ac_try) 2>&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; }; then
30707 ac_cv_lib_util_setproctitle=yes
30709 echo "$as_me: failed program was:" >&5
30710 sed 's/^/| /' conftest.$ac_ext >&5
30712 ac_cv_lib_util_setproctitle=no
30714 rm -f conftest.err conftest.$ac_objext \
30715 conftest$ac_exeext conftest.$ac_ext
30716 LIBS=$ac_check_lib_save_LIBS
30718 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
30719 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
30720 if test $ac_cv_lib_util_setproctitle = yes; then
30721 have_setproctitle=yes
30722 LUTIL_LIBS="$LUTIL_LIBS -lutil"
30724 have_setproctitle=no
30726 "setproctitle.$ac_objext" | \
30727 *" setproctitle.$ac_objext" | \
30728 "setproctitle.$ac_objext "* | \
30729 *" setproctitle.$ac_objext "* ) ;;
30730 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
30733 LIBSRCS="$LIBSRCS setproctitle.c"
30739 if test $have_setproctitle = yes ; then
30741 cat >>confdefs.h <<\_ACEOF
30742 #define HAVE_SETPROCTITLE 1
30748 if test $ol_enable_slp != no ; then
30750 for ac_header in slp.h
30752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30754 echo "$as_me:$LINENO: checking for $ac_header" >&5
30755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30757 echo $ECHO_N "(cached) $ECHO_C" >&6
30759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30762 # Is the header compilable?
30763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30765 cat >conftest.$ac_ext <<_ACEOF
30768 cat confdefs.h >>conftest.$ac_ext
30769 cat >>conftest.$ac_ext <<_ACEOF
30770 /* end confdefs.h. */
30771 $ac_includes_default
30772 #include <$ac_header>
30774 rm -f conftest.$ac_objext
30775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30776 (eval $ac_compile) 2>conftest.er1
30778 grep -v '^ *+' conftest.er1 >conftest.err
30780 cat conftest.err >&5
30781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782 (exit $ac_status); } &&
30783 { ac_try='test -z "$ac_c_werror_flag"
30784 || test ! -s conftest.err'
30785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30786 (eval $ac_try) 2>&5
30788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30789 (exit $ac_status); }; } &&
30790 { ac_try='test -s conftest.$ac_objext'
30791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30792 (eval $ac_try) 2>&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; }; then
30796 ac_header_compiler=yes
30798 echo "$as_me: failed program was:" >&5
30799 sed 's/^/| /' conftest.$ac_ext >&5
30801 ac_header_compiler=no
30803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30805 echo "${ECHO_T}$ac_header_compiler" >&6
30807 # Is the header present?
30808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30810 cat >conftest.$ac_ext <<_ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h. */
30816 #include <$ac_header>
30818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30821 grep -v '^ *+' conftest.er1 >conftest.err
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); } >/dev/null; then
30826 if test -s conftest.err; then
30827 ac_cpp_err=$ac_c_preproc_warn_flag
30828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30835 if test -z "$ac_cpp_err"; then
30836 ac_header_preproc=yes
30838 echo "$as_me: failed program was:" >&5
30839 sed 's/^/| /' conftest.$ac_ext >&5
30841 ac_header_preproc=no
30843 rm -f conftest.err conftest.$ac_ext
30844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30845 echo "${ECHO_T}$ac_header_preproc" >&6
30847 # So? What about this header?
30848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30854 ac_header_preproc=yes
30857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30871 ## --------------------------------------------- ##
30872 ## Report this to <http://www.openldap.org/its/> ##
30873 ## --------------------------------------------- ##
30876 sed "s/^/$as_me: WARNING: /" >&2
30879 echo "$as_me:$LINENO: checking for $ac_header" >&5
30880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30882 echo $ECHO_N "(cached) $ECHO_C" >&6
30884 eval "$as_ac_Header=\$ac_header_preproc"
30886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30891 cat >>confdefs.h <<_ACEOF
30892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30900 if test $ac_cv_header_slp_h = yes ; then
30901 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
30902 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
30903 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
30904 echo $ECHO_N "(cached) $ECHO_C" >&6
30906 ac_check_lib_save_LIBS=$LIBS
30908 cat >conftest.$ac_ext <<_ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h. */
30915 /* Override any gcc2 internal prototype to avoid an error. */
30919 /* We use char because int might match the return type of a gcc2
30920 builtin and then its argument prototype would still apply. */
30930 rm -f conftest.$ac_objext conftest$ac_exeext
30931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30932 (eval $ac_link) 2>conftest.er1
30934 grep -v '^ *+' conftest.er1 >conftest.err
30936 cat conftest.err >&5
30937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938 (exit $ac_status); } &&
30939 { ac_try='test -z "$ac_c_werror_flag"
30940 || test ! -s conftest.err'
30941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942 (eval $ac_try) 2>&5
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; } &&
30946 { ac_try='test -s conftest$ac_exeext'
30947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30948 (eval $ac_try) 2>&5
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); }; }; then
30952 ac_cv_lib_slp_SLPOpen=yes
30954 echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30957 ac_cv_lib_slp_SLPOpen=no
30959 rm -f conftest.err conftest.$ac_objext \
30960 conftest$ac_exeext conftest.$ac_ext
30961 LIBS=$ac_check_lib_save_LIBS
30963 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
30964 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
30965 if test $ac_cv_lib_slp_SLPOpen = yes; then
30971 if test $have_slp = yes ; then
30973 cat >>confdefs.h <<\_ACEOF
30977 SLAPD_SLP_LIBS=-lslp
30980 elif test $ol_enable_slp = yes ; then
30981 { { echo "$as_me:$LINENO: error: SLP not found" >&5
30982 echo "$as_me: error: SLP not found" >&2;}
30983 { (exit 1); exit 1; }; }
30988 echo "$as_me:$LINENO: checking for mode_t" >&5
30989 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30990 if test "${ac_cv_type_mode_t+set}" = set; then
30991 echo $ECHO_N "(cached) $ECHO_C" >&6
30993 cat >conftest.$ac_ext <<_ACEOF
30996 cat confdefs.h >>conftest.$ac_ext
30997 cat >>conftest.$ac_ext <<_ACEOF
30998 /* end confdefs.h. */
30999 $ac_includes_default
31005 if (sizeof (mode_t))
31011 rm -f conftest.$ac_objext
31012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31013 (eval $ac_compile) 2>conftest.er1
31015 grep -v '^ *+' conftest.er1 >conftest.err
31017 cat conftest.err >&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } &&
31020 { ac_try='test -z "$ac_c_werror_flag"
31021 || test ! -s conftest.err'
31022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31023 (eval $ac_try) 2>&5
31025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026 (exit $ac_status); }; } &&
31027 { ac_try='test -s conftest.$ac_objext'
31028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029 (eval $ac_try) 2>&5
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 ac_cv_type_mode_t=yes
31035 echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31038 ac_cv_type_mode_t=no
31040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31042 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31043 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31044 if test $ac_cv_type_mode_t = yes; then
31048 cat >>confdefs.h <<_ACEOF
31054 echo "$as_me:$LINENO: checking for off_t" >&5
31055 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31056 if test "${ac_cv_type_off_t+set}" = set; then
31057 echo $ECHO_N "(cached) $ECHO_C" >&6
31059 cat >conftest.$ac_ext <<_ACEOF
31062 cat confdefs.h >>conftest.$ac_ext
31063 cat >>conftest.$ac_ext <<_ACEOF
31064 /* end confdefs.h. */
31065 $ac_includes_default
31071 if (sizeof (off_t))
31077 rm -f conftest.$ac_objext
31078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31079 (eval $ac_compile) 2>conftest.er1
31081 grep -v '^ *+' conftest.er1 >conftest.err
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } &&
31086 { ac_try='test -z "$ac_c_werror_flag"
31087 || test ! -s conftest.err'
31088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089 (eval $ac_try) 2>&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; } &&
31093 { ac_try='test -s conftest.$ac_objext'
31094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095 (eval $ac_try) 2>&5
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; }; then
31099 ac_cv_type_off_t=yes
31101 echo "$as_me: failed program was:" >&5
31102 sed 's/^/| /' conftest.$ac_ext >&5
31104 ac_cv_type_off_t=no
31106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31108 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31109 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31110 if test $ac_cv_type_off_t = yes; then
31114 cat >>confdefs.h <<_ACEOF
31120 echo "$as_me:$LINENO: checking for pid_t" >&5
31121 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31122 if test "${ac_cv_type_pid_t+set}" = set; then
31123 echo $ECHO_N "(cached) $ECHO_C" >&6
31125 cat >conftest.$ac_ext <<_ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h. */
31131 $ac_includes_default
31137 if (sizeof (pid_t))
31143 rm -f conftest.$ac_objext
31144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31145 (eval $ac_compile) 2>conftest.er1
31147 grep -v '^ *+' conftest.er1 >conftest.err
31149 cat conftest.err >&5
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); } &&
31152 { ac_try='test -z "$ac_c_werror_flag"
31153 || test ! -s conftest.err'
31154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31155 (eval $ac_try) 2>&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); }; } &&
31159 { ac_try='test -s conftest.$ac_objext'
31160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31161 (eval $ac_try) 2>&5
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; }; then
31165 ac_cv_type_pid_t=yes
31167 echo "$as_me: failed program was:" >&5
31168 sed 's/^/| /' conftest.$ac_ext >&5
31170 ac_cv_type_pid_t=no
31172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31174 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31175 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31176 if test $ac_cv_type_pid_t = yes; then
31180 cat >>confdefs.h <<_ACEOF
31186 echo "$as_me:$LINENO: checking for ssize_t" >&5
31187 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31188 if test "${ac_cv_type_ssize_t+set}" = set; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31191 cat >conftest.$ac_ext <<_ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h. */
31197 $ac_includes_default
31203 if (sizeof (ssize_t))
31209 rm -f conftest.$ac_objext
31210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31211 (eval $ac_compile) 2>conftest.er1
31213 grep -v '^ *+' conftest.er1 >conftest.err
31215 cat conftest.err >&5
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); } &&
31218 { ac_try='test -z "$ac_c_werror_flag"
31219 || test ! -s conftest.err'
31220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221 (eval $ac_try) 2>&5
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; } &&
31225 { ac_try='test -s conftest.$ac_objext'
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; }; then
31231 ac_cv_type_ssize_t=yes
31233 echo "$as_me: failed program was:" >&5
31234 sed 's/^/| /' conftest.$ac_ext >&5
31236 ac_cv_type_ssize_t=no
31238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31240 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31241 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31242 if test $ac_cv_type_ssize_t = yes; then
31246 cat >>confdefs.h <<_ACEOF
31247 #define ssize_t signed int
31252 echo "$as_me:$LINENO: checking for caddr_t" >&5
31253 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
31254 if test "${ac_cv_type_caddr_t+set}" = set; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31257 cat >conftest.$ac_ext <<_ACEOF
31260 cat confdefs.h >>conftest.$ac_ext
31261 cat >>conftest.$ac_ext <<_ACEOF
31262 /* end confdefs.h. */
31263 $ac_includes_default
31269 if (sizeof (caddr_t))
31275 rm -f conftest.$ac_objext
31276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31277 (eval $ac_compile) 2>conftest.er1
31279 grep -v '^ *+' conftest.er1 >conftest.err
31281 cat conftest.err >&5
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); } &&
31284 { ac_try='test -z "$ac_c_werror_flag"
31285 || test ! -s conftest.err'
31286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31287 (eval $ac_try) 2>&5
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); }; } &&
31291 { ac_try='test -s conftest.$ac_objext'
31292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31293 (eval $ac_try) 2>&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; }; then
31297 ac_cv_type_caddr_t=yes
31299 echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.$ac_ext >&5
31302 ac_cv_type_caddr_t=no
31304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31306 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31307 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
31308 if test $ac_cv_type_caddr_t = yes; then
31312 cat >>confdefs.h <<_ACEOF
31313 #define caddr_t char *
31318 echo "$as_me:$LINENO: checking for size_t" >&5
31319 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31320 if test "${ac_cv_type_size_t+set}" = set; then
31321 echo $ECHO_N "(cached) $ECHO_C" >&6
31323 cat >conftest.$ac_ext <<_ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31329 $ac_includes_default
31335 if (sizeof (size_t))
31341 rm -f conftest.$ac_objext
31342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31343 (eval $ac_compile) 2>conftest.er1
31345 grep -v '^ *+' conftest.er1 >conftest.err
31347 cat conftest.err >&5
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); } &&
31350 { ac_try='test -z "$ac_c_werror_flag"
31351 || test ! -s conftest.err'
31352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31353 (eval $ac_try) 2>&5
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); }; } &&
31357 { ac_try='test -s conftest.$ac_objext'
31358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31359 (eval $ac_try) 2>&5
31361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31362 (exit $ac_status); }; }; then
31363 ac_cv_type_size_t=yes
31365 echo "$as_me: failed program was:" >&5
31366 sed 's/^/| /' conftest.$ac_ext >&5
31368 ac_cv_type_size_t=no
31370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31372 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31373 echo "${ECHO_T}$ac_cv_type_size_t" >&6
31374 if test $ac_cv_type_size_t = yes; then
31378 cat >>confdefs.h <<_ACEOF
31379 #define size_t unsigned
31385 echo "$as_me:$LINENO: checking for long long" >&5
31386 echo $ECHO_N "checking for long long... $ECHO_C" >&6
31387 if test "${ac_cv_type_long_long+set}" = set; then
31388 echo $ECHO_N "(cached) $ECHO_C" >&6
31390 cat >conftest.$ac_ext <<_ACEOF
31393 cat confdefs.h >>conftest.$ac_ext
31394 cat >>conftest.$ac_ext <<_ACEOF
31395 /* end confdefs.h. */
31396 $ac_includes_default
31400 if ((long long *) 0)
31402 if (sizeof (long long))
31408 rm -f conftest.$ac_objext
31409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31410 (eval $ac_compile) 2>conftest.er1
31412 grep -v '^ *+' conftest.er1 >conftest.err
31414 cat conftest.err >&5
31415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31416 (exit $ac_status); } &&
31417 { ac_try='test -z "$ac_c_werror_flag"
31418 || test ! -s conftest.err'
31419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31420 (eval $ac_try) 2>&5
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); }; } &&
31424 { ac_try='test -s conftest.$ac_objext'
31425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426 (eval $ac_try) 2>&5
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; }; then
31430 ac_cv_type_long_long=yes
31432 echo "$as_me: failed program was:" >&5
31433 sed 's/^/| /' conftest.$ac_ext >&5
31435 ac_cv_type_long_long=no
31437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31439 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31440 echo "${ECHO_T}$ac_cv_type_long_long" >&6
31441 if test $ac_cv_type_long_long = yes; then
31443 cat >>confdefs.h <<_ACEOF
31444 #define HAVE_LONG_LONG 1
31450 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31451 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
31452 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31453 echo $ECHO_N "(cached) $ECHO_C" >&6
31455 cat >conftest.$ac_ext <<_ACEOF
31458 cat confdefs.h >>conftest.$ac_ext
31459 cat >>conftest.$ac_ext <<_ACEOF
31460 /* end confdefs.h. */
31461 $ac_includes_default
31465 if ((ptrdiff_t *) 0)
31467 if (sizeof (ptrdiff_t))
31473 rm -f conftest.$ac_objext
31474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31475 (eval $ac_compile) 2>conftest.er1
31477 grep -v '^ *+' conftest.er1 >conftest.err
31479 cat conftest.err >&5
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } &&
31482 { ac_try='test -z "$ac_c_werror_flag"
31483 || test ! -s conftest.err'
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; } &&
31489 { ac_try='test -s conftest.$ac_objext'
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; }; then
31495 ac_cv_type_ptrdiff_t=yes
31497 echo "$as_me: failed program was:" >&5
31498 sed 's/^/| /' conftest.$ac_ext >&5
31500 ac_cv_type_ptrdiff_t=no
31502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31504 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31505 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
31506 if test $ac_cv_type_ptrdiff_t = yes; then
31508 cat >>confdefs.h <<_ACEOF
31509 #define HAVE_PTRDIFF_T 1
31517 echo "$as_me:$LINENO: checking for socklen_t" >&5
31518 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
31519 if test "${ac_cv_type_socklen_t+set}" = set; then
31520 echo $ECHO_N "(cached) $ECHO_C" >&6
31522 cat >conftest.$ac_ext <<_ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h. */
31528 $ac_includes_default
31529 #ifdef HAVE_SYS_SOCKET_H
31530 #include <sys/socket.h>
31536 if ((socklen_t *) 0)
31538 if (sizeof (socklen_t))
31544 rm -f conftest.$ac_objext
31545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31546 (eval $ac_compile) 2>conftest.er1
31548 grep -v '^ *+' conftest.er1 >conftest.err
31550 cat conftest.err >&5
31551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552 (exit $ac_status); } &&
31553 { ac_try='test -z "$ac_c_werror_flag"
31554 || test ! -s conftest.err'
31555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31556 (eval $ac_try) 2>&5
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); }; } &&
31560 { ac_try='test -s conftest.$ac_objext'
31561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562 (eval $ac_try) 2>&5
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; }; then
31566 ac_cv_type_socklen_t=yes
31568 echo "$as_me: failed program was:" >&5
31569 sed 's/^/| /' conftest.$ac_ext >&5
31571 ac_cv_type_socklen_t=no
31573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31575 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
31576 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
31579 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
31580 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
31581 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
31582 echo $ECHO_N "(cached) $ECHO_C" >&6
31585 set socklen_t int unsigned "unsigned long" long size_t
31586 test "$ac_cv_type_socklen_t" = yes || shift
31587 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
31588 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
31589 cat >conftest.$ac_ext <<_ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31595 $ac_includes_default
31596 #ifdef HAVE_SYS_SOCKET_H
31597 #include <sys/socket.h>
31599 extern int accept(int s, $addrtype *ap, $lentype *lp);
31605 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
31611 rm -f conftest.$ac_objext
31612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31613 (eval $ac_compile) 2>conftest.er1
31615 grep -v '^ *+' conftest.er1 >conftest.err
31617 cat conftest.err >&5
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); } &&
31620 { ac_try='test -z "$ac_c_werror_flag"
31621 || test ! -s conftest.err'
31622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31623 (eval $ac_try) 2>&5
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; } &&
31627 { ac_try='test -s conftest.$ac_objext'
31628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629 (eval $ac_try) 2>&5
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; }; then
31633 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
31635 echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31643 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
31644 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
31646 cat >>confdefs.h <<_ACEOF
31647 #define ber_socklen_t $ol_cv_type_ber_socklen_t
31651 if test "$ac_cv_type_socklen_t" != yes; then
31653 cat >>confdefs.h <<_ACEOF
31654 #define socklen_t $ol_cv_type_ber_socklen_t
31660 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31661 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
31662 if test "${ac_cv_type_signal+set}" = set; then
31663 echo $ECHO_N "(cached) $ECHO_C" >&6
31665 cat >conftest.$ac_ext <<_ACEOF
31668 cat confdefs.h >>conftest.$ac_ext
31669 cat >>conftest.$ac_ext <<_ACEOF
31670 /* end confdefs.h. */
31671 #include <sys/types.h>
31672 #include <signal.h>
31677 extern "C" void (*signal (int, void (*)(int)))(int);
31679 void (*signal ()) ();
31690 rm -f conftest.$ac_objext
31691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31692 (eval $ac_compile) 2>conftest.er1
31694 grep -v '^ *+' conftest.er1 >conftest.err
31696 cat conftest.err >&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } &&
31699 { ac_try='test -z "$ac_c_werror_flag"
31700 || test ! -s conftest.err'
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; } &&
31706 { ac_try='test -s conftest.$ac_objext'
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; }; then
31712 ac_cv_type_signal=void
31714 echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31717 ac_cv_type_signal=int
31719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31721 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31722 echo "${ECHO_T}$ac_cv_type_signal" >&6
31724 cat >>confdefs.h <<_ACEOF
31725 #define RETSIGTYPE $ac_cv_type_signal
31730 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
31731 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
31732 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
31733 echo $ECHO_N "(cached) $ECHO_C" >&6
31735 cat >conftest.$ac_ext <<_ACEOF
31738 cat confdefs.h >>conftest.$ac_ext
31739 cat >>conftest.$ac_ext <<_ACEOF
31740 /* end confdefs.h. */
31741 $ac_includes_default
31742 #include <signal.h>
31748 if ((sig_atomic_t *) 0)
31750 if (sizeof (sig_atomic_t))
31756 rm -f conftest.$ac_objext
31757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31758 (eval $ac_compile) 2>conftest.er1
31760 grep -v '^ *+' conftest.er1 >conftest.err
31762 cat conftest.err >&5
31763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764 (exit $ac_status); } &&
31765 { ac_try='test -z "$ac_c_werror_flag"
31766 || test ! -s conftest.err'
31767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31768 (eval $ac_try) 2>&5
31770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771 (exit $ac_status); }; } &&
31772 { ac_try='test -s conftest.$ac_objext'
31773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774 (eval $ac_try) 2>&5
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); }; }; then
31778 ac_cv_type_sig_atomic_t=yes
31780 echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31783 ac_cv_type_sig_atomic_t=no
31785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31787 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
31788 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
31789 if test $ac_cv_type_sig_atomic_t = yes; then
31793 cat >>confdefs.h <<_ACEOF
31794 #define sig_atomic_t int
31800 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31801 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31802 if test "${ac_cv_type_uid_t+set}" = set; then
31803 echo $ECHO_N "(cached) $ECHO_C" >&6
31805 cat >conftest.$ac_ext <<_ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h. */
31811 #include <sys/types.h>
31814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31815 $EGREP "uid_t" >/dev/null 2>&1; then
31816 ac_cv_type_uid_t=yes
31818 ac_cv_type_uid_t=no
31823 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31824 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31825 if test $ac_cv_type_uid_t = no; then
31827 cat >>confdefs.h <<\_ACEOF
31832 cat >>confdefs.h <<\_ACEOF
31839 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31840 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
31841 if test "${ac_cv_header_time+set}" = set; then
31842 echo $ECHO_N "(cached) $ECHO_C" >&6
31844 cat >conftest.$ac_ext <<_ACEOF
31847 cat confdefs.h >>conftest.$ac_ext
31848 cat >>conftest.$ac_ext <<_ACEOF
31849 /* end confdefs.h. */
31850 #include <sys/types.h>
31851 #include <sys/time.h>
31857 if ((struct tm *) 0)
31863 rm -f conftest.$ac_objext
31864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31865 (eval $ac_compile) 2>conftest.er1
31867 grep -v '^ *+' conftest.er1 >conftest.err
31869 cat conftest.err >&5
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); } &&
31872 { ac_try='test -z "$ac_c_werror_flag"
31873 || test ! -s conftest.err'
31874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31875 (eval $ac_try) 2>&5
31877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878 (exit $ac_status); }; } &&
31879 { ac_try='test -s conftest.$ac_objext'
31880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31881 (eval $ac_try) 2>&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); }; }; then
31885 ac_cv_header_time=yes
31887 echo "$as_me: failed program was:" >&5
31888 sed 's/^/| /' conftest.$ac_ext >&5
31890 ac_cv_header_time=no
31892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31894 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31895 echo "${ECHO_T}$ac_cv_header_time" >&6
31896 if test $ac_cv_header_time = yes; then
31898 cat >>confdefs.h <<\_ACEOF
31899 #define TIME_WITH_SYS_TIME 1
31904 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31905 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31906 if test "${ac_cv_struct_tm+set}" = set; then
31907 echo $ECHO_N "(cached) $ECHO_C" >&6
31909 cat >conftest.$ac_ext <<_ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h. */
31915 #include <sys/types.h>
31921 struct tm *tp; tp->tm_sec;
31926 rm -f conftest.$ac_objext
31927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31928 (eval $ac_compile) 2>conftest.er1
31930 grep -v '^ *+' conftest.er1 >conftest.err
31932 cat conftest.err >&5
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); } &&
31935 { ac_try='test -z "$ac_c_werror_flag"
31936 || test ! -s conftest.err'
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; } &&
31942 { ac_try='test -s conftest.$ac_objext'
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; }; then
31948 ac_cv_struct_tm=time.h
31950 echo "$as_me: failed program was:" >&5
31951 sed 's/^/| /' conftest.$ac_ext >&5
31953 ac_cv_struct_tm=sys/time.h
31955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31957 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31958 echo "${ECHO_T}$ac_cv_struct_tm" >&6
31959 if test $ac_cv_struct_tm = sys/time.h; then
31961 cat >>confdefs.h <<\_ACEOF
31962 #define TM_IN_SYS_TIME 1
31967 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31968 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
31969 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31972 cat >conftest.$ac_ext <<_ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h. */
31978 $ac_includes_default
31982 static struct stat ac_aggr;
31983 if (ac_aggr.st_blksize)
31989 rm -f conftest.$ac_objext
31990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31991 (eval $ac_compile) 2>conftest.er1
31993 grep -v '^ *+' conftest.er1 >conftest.err
31995 cat conftest.err >&5
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); } &&
31998 { ac_try='test -z "$ac_c_werror_flag"
31999 || test ! -s conftest.err'
32000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32001 (eval $ac_try) 2>&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; } &&
32005 { ac_try='test -s conftest.$ac_objext'
32006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32007 (eval $ac_try) 2>&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); }; }; then
32011 ac_cv_member_struct_stat_st_blksize=yes
32013 echo "$as_me: failed program was:" >&5
32014 sed 's/^/| /' conftest.$ac_ext >&5
32016 cat >conftest.$ac_ext <<_ACEOF
32019 cat confdefs.h >>conftest.$ac_ext
32020 cat >>conftest.$ac_ext <<_ACEOF
32021 /* end confdefs.h. */
32022 $ac_includes_default
32026 static struct stat ac_aggr;
32027 if (sizeof ac_aggr.st_blksize)
32033 rm -f conftest.$ac_objext
32034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32035 (eval $ac_compile) 2>conftest.er1
32037 grep -v '^ *+' conftest.er1 >conftest.err
32039 cat conftest.err >&5
32040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041 (exit $ac_status); } &&
32042 { ac_try='test -z "$ac_c_werror_flag"
32043 || test ! -s conftest.err'
32044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32045 (eval $ac_try) 2>&5
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); }; } &&
32049 { ac_try='test -s conftest.$ac_objext'
32050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051 (eval $ac_try) 2>&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); }; }; then
32055 ac_cv_member_struct_stat_st_blksize=yes
32057 echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.$ac_ext >&5
32060 ac_cv_member_struct_stat_st_blksize=no
32062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32066 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32067 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
32068 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32070 cat >>confdefs.h <<_ACEOF
32071 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32077 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32078 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
32079 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32080 echo $ECHO_N "(cached) $ECHO_C" >&6
32082 cat >conftest.$ac_ext <<_ACEOF
32085 cat confdefs.h >>conftest.$ac_ext
32086 cat >>conftest.$ac_ext <<_ACEOF
32087 /* end confdefs.h. */
32088 $ac_includes_default
32094 static struct passwd ac_aggr;
32095 if (ac_aggr.pw_gecos)
32101 rm -f conftest.$ac_objext
32102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32103 (eval $ac_compile) 2>conftest.er1
32105 grep -v '^ *+' conftest.er1 >conftest.err
32107 cat conftest.err >&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); } &&
32110 { ac_try='test -z "$ac_c_werror_flag"
32111 || test ! -s conftest.err'
32112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32113 (eval $ac_try) 2>&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); }; } &&
32117 { ac_try='test -s conftest.$ac_objext'
32118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32119 (eval $ac_try) 2>&5
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; }; then
32123 ac_cv_member_struct_passwd_pw_gecos=yes
32125 echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.$ac_ext >&5
32128 cat >conftest.$ac_ext <<_ACEOF
32131 cat confdefs.h >>conftest.$ac_ext
32132 cat >>conftest.$ac_ext <<_ACEOF
32133 /* end confdefs.h. */
32134 $ac_includes_default
32140 static struct passwd ac_aggr;
32141 if (sizeof ac_aggr.pw_gecos)
32147 rm -f conftest.$ac_objext
32148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32149 (eval $ac_compile) 2>conftest.er1
32151 grep -v '^ *+' conftest.er1 >conftest.err
32153 cat conftest.err >&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } &&
32156 { ac_try='test -z "$ac_c_werror_flag"
32157 || test ! -s conftest.err'
32158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159 (eval $ac_try) 2>&5
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest.$ac_objext'
32164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32165 (eval $ac_try) 2>&5
32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); }; }; then
32169 ac_cv_member_struct_passwd_pw_gecos=yes
32171 echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32174 ac_cv_member_struct_passwd_pw_gecos=no
32176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32181 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
32182 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32184 cat >>confdefs.h <<_ACEOF
32185 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32191 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32192 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
32193 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32194 echo $ECHO_N "(cached) $ECHO_C" >&6
32196 cat >conftest.$ac_ext <<_ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h. */
32202 $ac_includes_default
32208 static struct passwd ac_aggr;
32209 if (ac_aggr.pw_passwd)
32215 rm -f conftest.$ac_objext
32216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32217 (eval $ac_compile) 2>conftest.er1
32219 grep -v '^ *+' conftest.er1 >conftest.err
32221 cat conftest.err >&5
32222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223 (exit $ac_status); } &&
32224 { ac_try='test -z "$ac_c_werror_flag"
32225 || test ! -s conftest.err'
32226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32227 (eval $ac_try) 2>&5
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); }; } &&
32231 { ac_try='test -s conftest.$ac_objext'
32232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233 (eval $ac_try) 2>&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); }; }; then
32237 ac_cv_member_struct_passwd_pw_passwd=yes
32239 echo "$as_me: failed program was:" >&5
32240 sed 's/^/| /' conftest.$ac_ext >&5
32242 cat >conftest.$ac_ext <<_ACEOF
32245 cat confdefs.h >>conftest.$ac_ext
32246 cat >>conftest.$ac_ext <<_ACEOF
32247 /* end confdefs.h. */
32248 $ac_includes_default
32254 static struct passwd ac_aggr;
32255 if (sizeof ac_aggr.pw_passwd)
32261 rm -f conftest.$ac_objext
32262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32263 (eval $ac_compile) 2>conftest.er1
32265 grep -v '^ *+' conftest.er1 >conftest.err
32267 cat conftest.err >&5
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); } &&
32270 { ac_try='test -z "$ac_c_werror_flag"
32271 || test ! -s conftest.err'
32272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32273 (eval $ac_try) 2>&5
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); }; } &&
32277 { ac_try='test -s conftest.$ac_objext'
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; }; then
32283 ac_cv_member_struct_passwd_pw_passwd=yes
32285 echo "$as_me: failed program was:" >&5
32286 sed 's/^/| /' conftest.$ac_ext >&5
32288 ac_cv_member_struct_passwd_pw_passwd=no
32290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32294 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32295 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
32296 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32298 cat >>confdefs.h <<_ACEOF
32299 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32306 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32307 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
32308 if test "${ol_cv_c_upper_lower+set}" = set; then
32309 echo $ECHO_N "(cached) $ECHO_C" >&6
32312 if test "$cross_compiling" = yes; then
32313 ol_cv_c_upper_lower=safe
32315 cat >conftest.$ac_ext <<_ACEOF
32318 cat confdefs.h >>conftest.$ac_ext
32319 cat >>conftest.$ac_ext <<_ACEOF
32320 /* end confdefs.h. */
32325 if ('C' == toupper('C'))
32331 rm -f conftest$ac_exeext
32332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32333 (eval $ac_link) 2>&5
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338 (eval $ac_try) 2>&5
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ol_cv_c_upper_lower=no
32344 echo "$as_me: program exited with status $ac_status" >&5
32345 echo "$as_me: failed program was:" >&5
32346 sed 's/^/| /' conftest.$ac_ext >&5
32348 ( exit $ac_status )
32349 ol_cv_c_upper_lower=yes
32351 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32354 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32355 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
32356 if test $ol_cv_c_upper_lower != no ; then
32358 cat >>confdefs.h <<\_ACEOF
32359 #define C_UPPER_LOWER 1
32364 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32365 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
32366 if test "${ac_cv_c_const+set}" = set; then
32367 echo $ECHO_N "(cached) $ECHO_C" >&6
32369 cat >conftest.$ac_ext <<_ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32379 /* FIXME: Include the comments suggested by Paul. */
32380 #ifndef __cplusplus
32381 /* Ultrix mips cc rejects this. */
32382 typedef int charset[2];
32384 /* SunOS 4.1.1 cc rejects this. */
32385 char const *const *ccp;
32387 /* NEC SVR4.0.2 mips cc rejects this. */
32388 struct point {int x, y;};
32389 static struct point const zero = {0,0};
32390 /* AIX XL C 1.02.0.0 rejects this.
32391 It does not let you subtract one const X* pointer from another in
32392 an arm of an if-expression whose if-part is not a constant
32394 const char *g = "string";
32395 ccp = &g + (g ? g-g : 0);
32396 /* HPUX 7.0 cc rejects these. */
32399 ccp = (char const *const *) p;
32400 { /* SCO 3.2v4 cc rejects this. */
32402 char const *s = 0 ? (char *) 0 : (char const *) 0;
32406 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32407 int x[] = {25, 17};
32408 const int *foo = &x[0];
32411 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32412 typedef const int *iptr;
32416 { /* AIX XL C 1.02.0.0 rejects this saying
32417 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32418 struct s { int j; const int *ap[3]; };
32419 struct s *b; b->j = 5;
32421 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32422 const int foo = 10;
32430 rm -f conftest.$ac_objext
32431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32432 (eval $ac_compile) 2>conftest.er1
32434 grep -v '^ *+' conftest.er1 >conftest.err
32436 cat conftest.err >&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); } &&
32439 { ac_try='test -z "$ac_c_werror_flag"
32440 || test ! -s conftest.err'
32441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32442 (eval $ac_try) 2>&5
32444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32445 (exit $ac_status); }; } &&
32446 { ac_try='test -s conftest.$ac_objext'
32447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32448 (eval $ac_try) 2>&5
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; }; then
32454 echo "$as_me: failed program was:" >&5
32455 sed 's/^/| /' conftest.$ac_ext >&5
32459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32461 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32462 echo "${ECHO_T}$ac_cv_c_const" >&6
32463 if test $ac_cv_c_const = no; then
32465 cat >>confdefs.h <<\_ACEOF
32471 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32472 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
32473 if test "${ol_cv_c_volatile+set}" = set; then
32474 echo $ECHO_N "(cached) $ECHO_C" >&6
32476 cat >conftest.$ac_ext <<_ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h. */
32486 volatile int a; int * volatile b = x ? &y : &z;
32487 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32493 rm -f conftest.$ac_objext
32494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32495 (eval $ac_compile) 2>conftest.er1
32497 grep -v '^ *+' conftest.er1 >conftest.err
32499 cat conftest.err >&5
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); } &&
32502 { ac_try='test -z "$ac_c_werror_flag"
32503 || test ! -s conftest.err'
32504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505 (eval $ac_try) 2>&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; } &&
32509 { ac_try='test -s conftest.$ac_objext'
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
32515 ol_cv_c_volatile=yes
32517 echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32520 ol_cv_c_volatile=no
32522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32524 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32525 echo "${ECHO_T}$ol_cv_c_volatile" >&6
32526 if test $ol_cv_c_volatile = yes; then
32530 cat >>confdefs.h <<\_ACEOF
32537 if test $cross_compiling = yes ; then
32538 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32539 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32541 cat >>confdefs.h <<\_ACEOF
32542 #define CROSS_COMPILING 1
32546 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32547 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
32548 if test "${ac_cv_c_bigendian+set}" = set; then
32549 echo $ECHO_N "(cached) $ECHO_C" >&6
32551 # See if sys/param.h defines the BYTE_ORDER macro.
32552 cat >conftest.$ac_ext <<_ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h. */
32558 #include <sys/types.h>
32559 #include <sys/param.h>
32564 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
32565 bogus endian macros
32572 rm -f conftest.$ac_objext
32573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32574 (eval $ac_compile) 2>conftest.er1
32576 grep -v '^ *+' conftest.er1 >conftest.err
32578 cat conftest.err >&5
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); } &&
32581 { ac_try='test -z "$ac_c_werror_flag"
32582 || test ! -s conftest.err'
32583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32584 (eval $ac_try) 2>&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); }; } &&
32588 { ac_try='test -s conftest.$ac_objext'
32589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590 (eval $ac_try) 2>&5
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; }; then
32594 # It does; now see whether it defined to BIG_ENDIAN or not.
32595 cat >conftest.$ac_ext <<_ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h. */
32601 #include <sys/types.h>
32602 #include <sys/param.h>
32607 #if BYTE_ORDER != BIG_ENDIAN
32615 rm -f conftest.$ac_objext
32616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32617 (eval $ac_compile) 2>conftest.er1
32619 grep -v '^ *+' conftest.er1 >conftest.err
32621 cat conftest.err >&5
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } &&
32624 { ac_try='test -z "$ac_c_werror_flag"
32625 || test ! -s conftest.err'
32626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627 (eval $ac_try) 2>&5
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; } &&
32631 { ac_try='test -s conftest.$ac_objext'
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; }; then
32637 ac_cv_c_bigendian=yes
32639 echo "$as_me: failed program was:" >&5
32640 sed 's/^/| /' conftest.$ac_ext >&5
32642 ac_cv_c_bigendian=no
32644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32646 echo "$as_me: failed program was:" >&5
32647 sed 's/^/| /' conftest.$ac_ext >&5
32649 # It does not; compile a test program.
32650 if test "$cross_compiling" = yes; then
32651 # try to guess the endianness by grepping values into an object file
32652 ac_cv_c_bigendian=unknown
32653 cat >conftest.$ac_ext <<_ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h. */
32659 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
32660 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
32661 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
32662 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
32663 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
32664 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
32668 _ascii (); _ebcdic ();
32673 rm -f conftest.$ac_objext
32674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32675 (eval $ac_compile) 2>conftest.er1
32677 grep -v '^ *+' conftest.er1 >conftest.err
32679 cat conftest.err >&5
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); } &&
32682 { ac_try='test -z "$ac_c_werror_flag"
32683 || test ! -s conftest.err'
32684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32685 (eval $ac_try) 2>&5
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); }; } &&
32689 { ac_try='test -s conftest.$ac_objext'
32690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32691 (eval $ac_try) 2>&5
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; }; then
32695 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
32696 ac_cv_c_bigendian=yes
32698 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
32699 if test "$ac_cv_c_bigendian" = unknown; then
32700 ac_cv_c_bigendian=no
32702 # finding both strings is unlikely to happen, but who knows?
32703 ac_cv_c_bigendian=unknown
32707 echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32713 cat >conftest.$ac_ext <<_ACEOF
32716 cat confdefs.h >>conftest.$ac_ext
32717 cat >>conftest.$ac_ext <<_ACEOF
32718 /* end confdefs.h. */
32722 /* Are we little or big endian? From Harbison&Steele. */
32726 char c[sizeof (long)];
32729 exit (u.c[sizeof (long) - 1] == 1);
32732 rm -f conftest$ac_exeext
32733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32734 (eval $ac_link) 2>&5
32736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739 (eval $ac_try) 2>&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; }; then
32743 ac_cv_c_bigendian=no
32745 echo "$as_me: program exited with status $ac_status" >&5
32746 echo "$as_me: failed program was:" >&5
32747 sed 's/^/| /' conftest.$ac_ext >&5
32749 ( exit $ac_status )
32750 ac_cv_c_bigendian=yes
32752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32757 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
32758 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
32759 case $ac_cv_c_bigendian in
32762 cat >>confdefs.h <<\_ACEOF
32763 #define WORDS_BIGENDIAN 1
32769 { { echo "$as_me:$LINENO: error: unknown endianness
32770 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
32771 echo "$as_me: error: unknown endianness
32772 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
32773 { (exit 1); exit 1; }; } ;;
32778 echo "$as_me:$LINENO: checking for short" >&5
32779 echo $ECHO_N "checking for short... $ECHO_C" >&6
32780 if test "${ac_cv_type_short+set}" = set; then
32781 echo $ECHO_N "(cached) $ECHO_C" >&6
32783 cat >conftest.$ac_ext <<_ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h. */
32789 $ac_includes_default
32795 if (sizeof (short))
32801 rm -f conftest.$ac_objext
32802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32803 (eval $ac_compile) 2>conftest.er1
32805 grep -v '^ *+' conftest.er1 >conftest.err
32807 cat conftest.err >&5
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); } &&
32810 { ac_try='test -z "$ac_c_werror_flag"
32811 || test ! -s conftest.err'
32812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32813 (eval $ac_try) 2>&5
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; } &&
32817 { ac_try='test -s conftest.$ac_objext'
32818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819 (eval $ac_try) 2>&5
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); }; }; then
32823 ac_cv_type_short=yes
32825 echo "$as_me: failed program was:" >&5
32826 sed 's/^/| /' conftest.$ac_ext >&5
32828 ac_cv_type_short=no
32830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32832 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
32833 echo "${ECHO_T}$ac_cv_type_short" >&6
32835 echo "$as_me:$LINENO: checking size of short" >&5
32836 echo $ECHO_N "checking size of short... $ECHO_C" >&6
32837 if test "${ac_cv_sizeof_short+set}" = set; then
32838 echo $ECHO_N "(cached) $ECHO_C" >&6
32840 if test "$ac_cv_type_short" = yes; then
32841 # The cast to unsigned long works around a bug in the HP C Compiler
32842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32844 # This bug is HP SR number 8606223364.
32845 if test "$cross_compiling" = yes; then
32846 # Depending upon the size, compute the lo and hi bounds.
32847 cat >conftest.$ac_ext <<_ACEOF
32850 cat confdefs.h >>conftest.$ac_ext
32851 cat >>conftest.$ac_ext <<_ACEOF
32852 /* end confdefs.h. */
32853 $ac_includes_default
32857 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
32864 rm -f conftest.$ac_objext
32865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32866 (eval $ac_compile) 2>conftest.er1
32868 grep -v '^ *+' conftest.er1 >conftest.err
32870 cat conftest.err >&5
32871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32872 (exit $ac_status); } &&
32873 { ac_try='test -z "$ac_c_werror_flag"
32874 || test ! -s conftest.err'
32875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876 (eval $ac_try) 2>&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; } &&
32880 { ac_try='test -s conftest.$ac_objext'
32881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32882 (eval $ac_try) 2>&5
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); }; }; then
32888 cat >conftest.$ac_ext <<_ACEOF
32891 cat confdefs.h >>conftest.$ac_ext
32892 cat >>conftest.$ac_ext <<_ACEOF
32893 /* end confdefs.h. */
32894 $ac_includes_default
32898 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
32905 rm -f conftest.$ac_objext
32906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32907 (eval $ac_compile) 2>conftest.er1
32909 grep -v '^ *+' conftest.er1 >conftest.err
32911 cat conftest.err >&5
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); } &&
32914 { ac_try='test -z "$ac_c_werror_flag"
32915 || test ! -s conftest.err'
32916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917 (eval $ac_try) 2>&5
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); }; } &&
32921 { ac_try='test -s conftest.$ac_objext'
32922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923 (eval $ac_try) 2>&5
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); }; }; then
32927 ac_hi=$ac_mid; break
32929 echo "$as_me: failed program was:" >&5
32930 sed 's/^/| /' conftest.$ac_ext >&5
32932 ac_lo=`expr $ac_mid + 1`
32933 if test $ac_lo -le $ac_mid; then
32937 ac_mid=`expr 2 '*' $ac_mid + 1`
32939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32942 echo "$as_me: failed program was:" >&5
32943 sed 's/^/| /' conftest.$ac_ext >&5
32945 cat >conftest.$ac_ext <<_ACEOF
32948 cat confdefs.h >>conftest.$ac_ext
32949 cat >>conftest.$ac_ext <<_ACEOF
32950 /* end confdefs.h. */
32951 $ac_includes_default
32955 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
32962 rm -f conftest.$ac_objext
32963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32964 (eval $ac_compile) 2>conftest.er1
32966 grep -v '^ *+' conftest.er1 >conftest.err
32968 cat conftest.err >&5
32969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970 (exit $ac_status); } &&
32971 { ac_try='test -z "$ac_c_werror_flag"
32972 || test ! -s conftest.err'
32973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32974 (eval $ac_try) 2>&5
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); }; } &&
32978 { ac_try='test -s conftest.$ac_objext'
32979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32980 (eval $ac_try) 2>&5
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); }; }; then
32986 cat >conftest.$ac_ext <<_ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h. */
32992 $ac_includes_default
32996 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
33003 rm -f conftest.$ac_objext
33004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33005 (eval $ac_compile) 2>conftest.er1
33007 grep -v '^ *+' conftest.er1 >conftest.err
33009 cat conftest.err >&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } &&
33012 { ac_try='test -z "$ac_c_werror_flag"
33013 || test ! -s conftest.err'
33014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33015 (eval $ac_try) 2>&5
33017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33018 (exit $ac_status); }; } &&
33019 { ac_try='test -s conftest.$ac_objext'
33020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33021 (eval $ac_try) 2>&5
33023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024 (exit $ac_status); }; }; then
33025 ac_lo=$ac_mid; break
33027 echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33030 ac_hi=`expr '(' $ac_mid ')' - 1`
33031 if test $ac_mid -le $ac_hi; then
33035 ac_mid=`expr 2 '*' $ac_mid`
33037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33040 echo "$as_me: failed program was:" >&5
33041 sed 's/^/| /' conftest.$ac_ext >&5
33045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33048 # Binary search between lo and hi bounds.
33049 while test "x$ac_lo" != "x$ac_hi"; do
33050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33051 cat >conftest.$ac_ext <<_ACEOF
33054 cat confdefs.h >>conftest.$ac_ext
33055 cat >>conftest.$ac_ext <<_ACEOF
33056 /* end confdefs.h. */
33057 $ac_includes_default
33061 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33068 rm -f conftest.$ac_objext
33069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33070 (eval $ac_compile) 2>conftest.er1
33072 grep -v '^ *+' conftest.er1 >conftest.err
33074 cat conftest.err >&5
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); } &&
33077 { ac_try='test -z "$ac_c_werror_flag"
33078 || test ! -s conftest.err'
33079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33080 (eval $ac_try) 2>&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); }; } &&
33084 { ac_try='test -s conftest.$ac_objext'
33085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33086 (eval $ac_try) 2>&5
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; }; then
33092 echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33095 ac_lo=`expr '(' $ac_mid ')' + 1`
33097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33100 ?*) ac_cv_sizeof_short=$ac_lo;;
33101 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33102 See \`config.log' for more details." >&5
33103 echo "$as_me: error: cannot compute sizeof (short), 77
33104 See \`config.log' for more details." >&2;}
33105 { (exit 1); exit 1; }; } ;;
33108 if test "$cross_compiling" = yes; then
33109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33110 See \`config.log' for more details." >&5
33111 echo "$as_me: error: cannot run test program while cross compiling
33112 See \`config.log' for more details." >&2;}
33113 { (exit 1); exit 1; }; }
33115 cat >conftest.$ac_ext <<_ACEOF
33118 cat confdefs.h >>conftest.$ac_ext
33119 cat >>conftest.$ac_ext <<_ACEOF
33120 /* end confdefs.h. */
33121 $ac_includes_default
33122 long longval () { return (long) (sizeof (short)); }
33123 unsigned long ulongval () { return (long) (sizeof (short)); }
33125 #include <stdlib.h>
33130 FILE *f = fopen ("conftest.val", "w");
33133 if (((long) (sizeof (short))) < 0)
33135 long i = longval ();
33136 if (i != ((long) (sizeof (short))))
33138 fprintf (f, "%ld\n", i);
33142 unsigned long i = ulongval ();
33143 if (i != ((long) (sizeof (short))))
33145 fprintf (f, "%lu\n", i);
33147 exit (ferror (f) || fclose (f) != 0);
33153 rm -f conftest$ac_exeext
33154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33155 (eval $ac_link) 2>&5
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33160 (eval $ac_try) 2>&5
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); }; }; then
33164 ac_cv_sizeof_short=`cat conftest.val`
33166 echo "$as_me: program exited with status $ac_status" >&5
33167 echo "$as_me: failed program was:" >&5
33168 sed 's/^/| /' conftest.$ac_ext >&5
33170 ( exit $ac_status )
33171 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33172 See \`config.log' for more details." >&5
33173 echo "$as_me: error: cannot compute sizeof (short), 77
33174 See \`config.log' for more details." >&2;}
33175 { (exit 1); exit 1; }; }
33177 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33182 ac_cv_sizeof_short=0
33185 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33186 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33187 cat >>confdefs.h <<_ACEOF
33188 #define SIZEOF_SHORT $ac_cv_sizeof_short
33192 echo "$as_me:$LINENO: checking for int" >&5
33193 echo $ECHO_N "checking for int... $ECHO_C" >&6
33194 if test "${ac_cv_type_int+set}" = set; then
33195 echo $ECHO_N "(cached) $ECHO_C" >&6
33197 cat >conftest.$ac_ext <<_ACEOF
33200 cat confdefs.h >>conftest.$ac_ext
33201 cat >>conftest.$ac_ext <<_ACEOF
33202 /* end confdefs.h. */
33203 $ac_includes_default
33215 rm -f conftest.$ac_objext
33216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33217 (eval $ac_compile) 2>conftest.er1
33219 grep -v '^ *+' conftest.er1 >conftest.err
33221 cat conftest.err >&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); } &&
33224 { ac_try='test -z "$ac_c_werror_flag"
33225 || test ! -s conftest.err'
33226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227 (eval $ac_try) 2>&5
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); }; } &&
33231 { ac_try='test -s conftest.$ac_objext'
33232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33233 (eval $ac_try) 2>&5
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; }; then
33239 echo "$as_me: failed program was:" >&5
33240 sed 's/^/| /' conftest.$ac_ext >&5
33244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33246 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33247 echo "${ECHO_T}$ac_cv_type_int" >&6
33249 echo "$as_me:$LINENO: checking size of int" >&5
33250 echo $ECHO_N "checking size of int... $ECHO_C" >&6
33251 if test "${ac_cv_sizeof_int+set}" = set; then
33252 echo $ECHO_N "(cached) $ECHO_C" >&6
33254 if test "$ac_cv_type_int" = yes; then
33255 # The cast to unsigned long works around a bug in the HP C Compiler
33256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33258 # This bug is HP SR number 8606223364.
33259 if test "$cross_compiling" = yes; then
33260 # Depending upon the size, compute the lo and hi bounds.
33261 cat >conftest.$ac_ext <<_ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h. */
33267 $ac_includes_default
33271 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
33278 rm -f conftest.$ac_objext
33279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33280 (eval $ac_compile) 2>conftest.er1
33282 grep -v '^ *+' conftest.er1 >conftest.err
33284 cat conftest.err >&5
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); } &&
33287 { ac_try='test -z "$ac_c_werror_flag"
33288 || test ! -s conftest.err'
33289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290 (eval $ac_try) 2>&5
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; } &&
33294 { ac_try='test -s conftest.$ac_objext'
33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 (eval $ac_try) 2>&5
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
33302 cat >conftest.$ac_ext <<_ACEOF
33305 cat confdefs.h >>conftest.$ac_ext
33306 cat >>conftest.$ac_ext <<_ACEOF
33307 /* end confdefs.h. */
33308 $ac_includes_default
33312 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33319 rm -f conftest.$ac_objext
33320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33321 (eval $ac_compile) 2>conftest.er1
33323 grep -v '^ *+' conftest.er1 >conftest.err
33325 cat conftest.err >&5
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); } &&
33328 { ac_try='test -z "$ac_c_werror_flag"
33329 || test ! -s conftest.err'
33330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33331 (eval $ac_try) 2>&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); }; } &&
33335 { ac_try='test -s conftest.$ac_objext'
33336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337 (eval $ac_try) 2>&5
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); }; }; then
33341 ac_hi=$ac_mid; break
33343 echo "$as_me: failed program was:" >&5
33344 sed 's/^/| /' conftest.$ac_ext >&5
33346 ac_lo=`expr $ac_mid + 1`
33347 if test $ac_lo -le $ac_mid; then
33351 ac_mid=`expr 2 '*' $ac_mid + 1`
33353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33356 echo "$as_me: failed program was:" >&5
33357 sed 's/^/| /' conftest.$ac_ext >&5
33359 cat >conftest.$ac_ext <<_ACEOF
33362 cat confdefs.h >>conftest.$ac_ext
33363 cat >>conftest.$ac_ext <<_ACEOF
33364 /* end confdefs.h. */
33365 $ac_includes_default
33369 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
33376 rm -f conftest.$ac_objext
33377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33378 (eval $ac_compile) 2>conftest.er1
33380 grep -v '^ *+' conftest.er1 >conftest.err
33382 cat conftest.err >&5
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } &&
33385 { ac_try='test -z "$ac_c_werror_flag"
33386 || test ! -s conftest.err'
33387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33388 (eval $ac_try) 2>&5
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; } &&
33392 { ac_try='test -s conftest.$ac_objext'
33393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33394 (eval $ac_try) 2>&5
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); }; }; then
33400 cat >conftest.$ac_ext <<_ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h. */
33406 $ac_includes_default
33410 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
33417 rm -f conftest.$ac_objext
33418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33419 (eval $ac_compile) 2>conftest.er1
33421 grep -v '^ *+' conftest.er1 >conftest.err
33423 cat conftest.err >&5
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); } &&
33426 { ac_try='test -z "$ac_c_werror_flag"
33427 || test ! -s conftest.err'
33428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33429 (eval $ac_try) 2>&5
33431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432 (exit $ac_status); }; } &&
33433 { ac_try='test -s conftest.$ac_objext'
33434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33435 (eval $ac_try) 2>&5
33437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438 (exit $ac_status); }; }; then
33439 ac_lo=$ac_mid; break
33441 echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33444 ac_hi=`expr '(' $ac_mid ')' - 1`
33445 if test $ac_mid -le $ac_hi; then
33449 ac_mid=`expr 2 '*' $ac_mid`
33451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33454 echo "$as_me: failed program was:" >&5
33455 sed 's/^/| /' conftest.$ac_ext >&5
33459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33462 # Binary search between lo and hi bounds.
33463 while test "x$ac_lo" != "x$ac_hi"; do
33464 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33465 cat >conftest.$ac_ext <<_ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h. */
33471 $ac_includes_default
33475 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33482 rm -f conftest.$ac_objext
33483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33484 (eval $ac_compile) 2>conftest.er1
33486 grep -v '^ *+' conftest.er1 >conftest.err
33488 cat conftest.err >&5
33489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490 (exit $ac_status); } &&
33491 { ac_try='test -z "$ac_c_werror_flag"
33492 || test ! -s conftest.err'
33493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494 (eval $ac_try) 2>&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; } &&
33498 { ac_try='test -s conftest.$ac_objext'
33499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33500 (eval $ac_try) 2>&5
33502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503 (exit $ac_status); }; }; then
33506 echo "$as_me: failed program was:" >&5
33507 sed 's/^/| /' conftest.$ac_ext >&5
33509 ac_lo=`expr '(' $ac_mid ')' + 1`
33511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33514 ?*) ac_cv_sizeof_int=$ac_lo;;
33515 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
33516 See \`config.log' for more details." >&5
33517 echo "$as_me: error: cannot compute sizeof (int), 77
33518 See \`config.log' for more details." >&2;}
33519 { (exit 1); exit 1; }; } ;;
33522 if test "$cross_compiling" = yes; then
33523 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33524 See \`config.log' for more details." >&5
33525 echo "$as_me: error: cannot run test program while cross compiling
33526 See \`config.log' for more details." >&2;}
33527 { (exit 1); exit 1; }; }
33529 cat >conftest.$ac_ext <<_ACEOF
33532 cat confdefs.h >>conftest.$ac_ext
33533 cat >>conftest.$ac_ext <<_ACEOF
33534 /* end confdefs.h. */
33535 $ac_includes_default
33536 long longval () { return (long) (sizeof (int)); }
33537 unsigned long ulongval () { return (long) (sizeof (int)); }
33539 #include <stdlib.h>
33544 FILE *f = fopen ("conftest.val", "w");
33547 if (((long) (sizeof (int))) < 0)
33549 long i = longval ();
33550 if (i != ((long) (sizeof (int))))
33552 fprintf (f, "%ld\n", i);
33556 unsigned long i = ulongval ();
33557 if (i != ((long) (sizeof (int))))
33559 fprintf (f, "%lu\n", i);
33561 exit (ferror (f) || fclose (f) != 0);
33567 rm -f conftest$ac_exeext
33568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33569 (eval $ac_link) 2>&5
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33574 (eval $ac_try) 2>&5
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; }; then
33578 ac_cv_sizeof_int=`cat conftest.val`
33580 echo "$as_me: program exited with status $ac_status" >&5
33581 echo "$as_me: failed program was:" >&5
33582 sed 's/^/| /' conftest.$ac_ext >&5
33584 ( exit $ac_status )
33585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
33586 See \`config.log' for more details." >&5
33587 echo "$as_me: error: cannot compute sizeof (int), 77
33588 See \`config.log' for more details." >&2;}
33589 { (exit 1); exit 1; }; }
33591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
33600 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
33601 cat >>confdefs.h <<_ACEOF
33602 #define SIZEOF_INT $ac_cv_sizeof_int
33606 echo "$as_me:$LINENO: checking for long" >&5
33607 echo $ECHO_N "checking for long... $ECHO_C" >&6
33608 if test "${ac_cv_type_long+set}" = set; then
33609 echo $ECHO_N "(cached) $ECHO_C" >&6
33611 cat >conftest.$ac_ext <<_ACEOF
33614 cat confdefs.h >>conftest.$ac_ext
33615 cat >>conftest.$ac_ext <<_ACEOF
33616 /* end confdefs.h. */
33617 $ac_includes_default
33629 rm -f conftest.$ac_objext
33630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33631 (eval $ac_compile) 2>conftest.er1
33633 grep -v '^ *+' conftest.er1 >conftest.err
33635 cat conftest.err >&5
33636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637 (exit $ac_status); } &&
33638 { ac_try='test -z "$ac_c_werror_flag"
33639 || test ! -s conftest.err'
33640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33641 (eval $ac_try) 2>&5
33643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644 (exit $ac_status); }; } &&
33645 { ac_try='test -s conftest.$ac_objext'
33646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33647 (eval $ac_try) 2>&5
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); }; }; then
33651 ac_cv_type_long=yes
33653 echo "$as_me: failed program was:" >&5
33654 sed 's/^/| /' conftest.$ac_ext >&5
33658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33660 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
33661 echo "${ECHO_T}$ac_cv_type_long" >&6
33663 echo "$as_me:$LINENO: checking size of long" >&5
33664 echo $ECHO_N "checking size of long... $ECHO_C" >&6
33665 if test "${ac_cv_sizeof_long+set}" = set; then
33666 echo $ECHO_N "(cached) $ECHO_C" >&6
33668 if test "$ac_cv_type_long" = yes; then
33669 # The cast to unsigned long works around a bug in the HP C Compiler
33670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33672 # This bug is HP SR number 8606223364.
33673 if test "$cross_compiling" = yes; then
33674 # Depending upon the size, compute the lo and hi bounds.
33675 cat >conftest.$ac_ext <<_ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h. */
33681 $ac_includes_default
33685 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
33692 rm -f conftest.$ac_objext
33693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33694 (eval $ac_compile) 2>conftest.er1
33696 grep -v '^ *+' conftest.er1 >conftest.err
33698 cat conftest.err >&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); } &&
33701 { ac_try='test -z "$ac_c_werror_flag"
33702 || test ! -s conftest.err'
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; } &&
33708 { ac_try='test -s conftest.$ac_objext'
33709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710 (eval $ac_try) 2>&5
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); }; }; then
33716 cat >conftest.$ac_ext <<_ACEOF
33719 cat confdefs.h >>conftest.$ac_ext
33720 cat >>conftest.$ac_ext <<_ACEOF
33721 /* end confdefs.h. */
33722 $ac_includes_default
33726 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
33733 rm -f conftest.$ac_objext
33734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33735 (eval $ac_compile) 2>conftest.er1
33737 grep -v '^ *+' conftest.er1 >conftest.err
33739 cat conftest.err >&5
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); } &&
33742 { ac_try='test -z "$ac_c_werror_flag"
33743 || test ! -s conftest.err'
33744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745 (eval $ac_try) 2>&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; } &&
33749 { ac_try='test -s conftest.$ac_objext'
33750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33751 (eval $ac_try) 2>&5
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); }; }; then
33755 ac_hi=$ac_mid; break
33757 echo "$as_me: failed program was:" >&5
33758 sed 's/^/| /' conftest.$ac_ext >&5
33760 ac_lo=`expr $ac_mid + 1`
33761 if test $ac_lo -le $ac_mid; then
33765 ac_mid=`expr 2 '*' $ac_mid + 1`
33767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33770 echo "$as_me: failed program was:" >&5
33771 sed 's/^/| /' conftest.$ac_ext >&5
33773 cat >conftest.$ac_ext <<_ACEOF
33776 cat confdefs.h >>conftest.$ac_ext
33777 cat >>conftest.$ac_ext <<_ACEOF
33778 /* end confdefs.h. */
33779 $ac_includes_default
33783 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
33790 rm -f conftest.$ac_objext
33791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33792 (eval $ac_compile) 2>conftest.er1
33794 grep -v '^ *+' conftest.er1 >conftest.err
33796 cat conftest.err >&5
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); } &&
33799 { ac_try='test -z "$ac_c_werror_flag"
33800 || test ! -s conftest.err'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; } &&
33806 { ac_try='test -s conftest.$ac_objext'
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33814 cat >conftest.$ac_ext <<_ACEOF
33817 cat confdefs.h >>conftest.$ac_ext
33818 cat >>conftest.$ac_ext <<_ACEOF
33819 /* end confdefs.h. */
33820 $ac_includes_default
33824 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
33831 rm -f conftest.$ac_objext
33832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33833 (eval $ac_compile) 2>conftest.er1
33835 grep -v '^ *+' conftest.er1 >conftest.err
33837 cat conftest.err >&5
33838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839 (exit $ac_status); } &&
33840 { ac_try='test -z "$ac_c_werror_flag"
33841 || test ! -s conftest.err'
33842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33843 (eval $ac_try) 2>&5
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); }; } &&
33847 { ac_try='test -s conftest.$ac_objext'
33848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33849 (eval $ac_try) 2>&5
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); }; }; then
33853 ac_lo=$ac_mid; break
33855 echo "$as_me: failed program was:" >&5
33856 sed 's/^/| /' conftest.$ac_ext >&5
33858 ac_hi=`expr '(' $ac_mid ')' - 1`
33859 if test $ac_mid -le $ac_hi; then
33863 ac_mid=`expr 2 '*' $ac_mid`
33865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33868 echo "$as_me: failed program was:" >&5
33869 sed 's/^/| /' conftest.$ac_ext >&5
33873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33876 # Binary search between lo and hi bounds.
33877 while test "x$ac_lo" != "x$ac_hi"; do
33878 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33879 cat >conftest.$ac_ext <<_ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h. */
33885 $ac_includes_default
33889 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
33896 rm -f conftest.$ac_objext
33897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33898 (eval $ac_compile) 2>conftest.er1
33900 grep -v '^ *+' conftest.er1 >conftest.err
33902 cat conftest.err >&5
33903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904 (exit $ac_status); } &&
33905 { ac_try='test -z "$ac_c_werror_flag"
33906 || test ! -s conftest.err'
33907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908 (eval $ac_try) 2>&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); }; } &&
33912 { ac_try='test -s conftest.$ac_objext'
33913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914 (eval $ac_try) 2>&5
33916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917 (exit $ac_status); }; }; then
33920 echo "$as_me: failed program was:" >&5
33921 sed 's/^/| /' conftest.$ac_ext >&5
33923 ac_lo=`expr '(' $ac_mid ')' + 1`
33925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33928 ?*) ac_cv_sizeof_long=$ac_lo;;
33929 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
33930 See \`config.log' for more details." >&5
33931 echo "$as_me: error: cannot compute sizeof (long), 77
33932 See \`config.log' for more details." >&2;}
33933 { (exit 1); exit 1; }; } ;;
33936 if test "$cross_compiling" = yes; then
33937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33938 See \`config.log' for more details." >&5
33939 echo "$as_me: error: cannot run test program while cross compiling
33940 See \`config.log' for more details." >&2;}
33941 { (exit 1); exit 1; }; }
33943 cat >conftest.$ac_ext <<_ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h. */
33949 $ac_includes_default
33950 long longval () { return (long) (sizeof (long)); }
33951 unsigned long ulongval () { return (long) (sizeof (long)); }
33953 #include <stdlib.h>
33958 FILE *f = fopen ("conftest.val", "w");
33961 if (((long) (sizeof (long))) < 0)
33963 long i = longval ();
33964 if (i != ((long) (sizeof (long))))
33966 fprintf (f, "%ld\n", i);
33970 unsigned long i = ulongval ();
33971 if (i != ((long) (sizeof (long))))
33973 fprintf (f, "%lu\n", i);
33975 exit (ferror (f) || fclose (f) != 0);
33981 rm -f conftest$ac_exeext
33982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33983 (eval $ac_link) 2>&5
33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988 (eval $ac_try) 2>&5
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; }; then
33992 ac_cv_sizeof_long=`cat conftest.val`
33994 echo "$as_me: program exited with status $ac_status" >&5
33995 echo "$as_me: failed program was:" >&5
33996 sed 's/^/| /' conftest.$ac_ext >&5
33998 ( exit $ac_status )
33999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34000 See \`config.log' for more details." >&5
34001 echo "$as_me: error: cannot compute sizeof (long), 77
34002 See \`config.log' for more details." >&2;}
34003 { (exit 1); exit 1; }; }
34005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34010 ac_cv_sizeof_long=0
34013 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34014 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
34015 cat >>confdefs.h <<_ACEOF
34016 #define SIZEOF_LONG $ac_cv_sizeof_long
34020 echo "$as_me:$LINENO: checking for long long" >&5
34021 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34022 if test "${ac_cv_type_long_long+set}" = set; then
34023 echo $ECHO_N "(cached) $ECHO_C" >&6
34025 cat >conftest.$ac_ext <<_ACEOF
34028 cat confdefs.h >>conftest.$ac_ext
34029 cat >>conftest.$ac_ext <<_ACEOF
34030 /* end confdefs.h. */
34031 $ac_includes_default
34035 if ((long long *) 0)
34037 if (sizeof (long long))
34043 rm -f conftest.$ac_objext
34044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34045 (eval $ac_compile) 2>conftest.er1
34047 grep -v '^ *+' conftest.er1 >conftest.err
34049 cat conftest.err >&5
34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 (exit $ac_status); } &&
34052 { ac_try='test -z "$ac_c_werror_flag"
34053 || test ! -s conftest.err'
34054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34055 (eval $ac_try) 2>&5
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); }; } &&
34059 { ac_try='test -s conftest.$ac_objext'
34060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061 (eval $ac_try) 2>&5
34063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064 (exit $ac_status); }; }; then
34065 ac_cv_type_long_long=yes
34067 echo "$as_me: failed program was:" >&5
34068 sed 's/^/| /' conftest.$ac_ext >&5
34070 ac_cv_type_long_long=no
34072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34074 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34075 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34077 echo "$as_me:$LINENO: checking size of long long" >&5
34078 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
34079 if test "${ac_cv_sizeof_long_long+set}" = set; then
34080 echo $ECHO_N "(cached) $ECHO_C" >&6
34082 if test "$ac_cv_type_long_long" = yes; then
34083 # The cast to unsigned long works around a bug in the HP C Compiler
34084 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34085 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34086 # This bug is HP SR number 8606223364.
34087 if test "$cross_compiling" = yes; then
34088 # Depending upon the size, compute the lo and hi bounds.
34089 cat >conftest.$ac_ext <<_ACEOF
34092 cat confdefs.h >>conftest.$ac_ext
34093 cat >>conftest.$ac_ext <<_ACEOF
34094 /* end confdefs.h. */
34095 $ac_includes_default
34099 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
34106 rm -f conftest.$ac_objext
34107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34108 (eval $ac_compile) 2>conftest.er1
34110 grep -v '^ *+' conftest.er1 >conftest.err
34112 cat conftest.err >&5
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); } &&
34115 { ac_try='test -z "$ac_c_werror_flag"
34116 || test ! -s conftest.err'
34117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34118 (eval $ac_try) 2>&5
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); }; } &&
34122 { ac_try='test -s conftest.$ac_objext'
34123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34124 (eval $ac_try) 2>&5
34126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127 (exit $ac_status); }; }; then
34130 cat >conftest.$ac_ext <<_ACEOF
34133 cat confdefs.h >>conftest.$ac_ext
34134 cat >>conftest.$ac_ext <<_ACEOF
34135 /* end confdefs.h. */
34136 $ac_includes_default
34140 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34147 rm -f conftest.$ac_objext
34148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34149 (eval $ac_compile) 2>conftest.er1
34151 grep -v '^ *+' conftest.er1 >conftest.err
34153 cat conftest.err >&5
34154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155 (exit $ac_status); } &&
34156 { ac_try='test -z "$ac_c_werror_flag"
34157 || test ! -s conftest.err'
34158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159 (eval $ac_try) 2>&5
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); }; } &&
34163 { ac_try='test -s conftest.$ac_objext'
34164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34165 (eval $ac_try) 2>&5
34167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168 (exit $ac_status); }; }; then
34169 ac_hi=$ac_mid; break
34171 echo "$as_me: failed program was:" >&5
34172 sed 's/^/| /' conftest.$ac_ext >&5
34174 ac_lo=`expr $ac_mid + 1`
34175 if test $ac_lo -le $ac_mid; then
34179 ac_mid=`expr 2 '*' $ac_mid + 1`
34181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34184 echo "$as_me: failed program was:" >&5
34185 sed 's/^/| /' conftest.$ac_ext >&5
34187 cat >conftest.$ac_ext <<_ACEOF
34190 cat confdefs.h >>conftest.$ac_ext
34191 cat >>conftest.$ac_ext <<_ACEOF
34192 /* end confdefs.h. */
34193 $ac_includes_default
34197 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
34204 rm -f conftest.$ac_objext
34205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34206 (eval $ac_compile) 2>conftest.er1
34208 grep -v '^ *+' conftest.er1 >conftest.err
34210 cat conftest.err >&5
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); } &&
34213 { ac_try='test -z "$ac_c_werror_flag"
34214 || test ! -s conftest.err'
34215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216 (eval $ac_try) 2>&5
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); }; } &&
34220 { ac_try='test -s conftest.$ac_objext'
34221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222 (eval $ac_try) 2>&5
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; }; then
34228 cat >conftest.$ac_ext <<_ACEOF
34231 cat confdefs.h >>conftest.$ac_ext
34232 cat >>conftest.$ac_ext <<_ACEOF
34233 /* end confdefs.h. */
34234 $ac_includes_default
34238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
34245 rm -f conftest.$ac_objext
34246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34247 (eval $ac_compile) 2>conftest.er1
34249 grep -v '^ *+' conftest.er1 >conftest.err
34251 cat conftest.err >&5
34252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); } &&
34254 { ac_try='test -z "$ac_c_werror_flag"
34255 || test ! -s conftest.err'
34256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34257 (eval $ac_try) 2>&5
34259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260 (exit $ac_status); }; } &&
34261 { ac_try='test -s conftest.$ac_objext'
34262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34263 (eval $ac_try) 2>&5
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); }; }; then
34267 ac_lo=$ac_mid; break
34269 echo "$as_me: failed program was:" >&5
34270 sed 's/^/| /' conftest.$ac_ext >&5
34272 ac_hi=`expr '(' $ac_mid ')' - 1`
34273 if test $ac_mid -le $ac_hi; then
34277 ac_mid=`expr 2 '*' $ac_mid`
34279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34282 echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34290 # Binary search between lo and hi bounds.
34291 while test "x$ac_lo" != "x$ac_hi"; do
34292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34293 cat >conftest.$ac_ext <<_ACEOF
34296 cat confdefs.h >>conftest.$ac_ext
34297 cat >>conftest.$ac_ext <<_ACEOF
34298 /* end confdefs.h. */
34299 $ac_includes_default
34303 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34310 rm -f conftest.$ac_objext
34311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34312 (eval $ac_compile) 2>conftest.er1
34314 grep -v '^ *+' conftest.er1 >conftest.err
34316 cat conftest.err >&5
34317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318 (exit $ac_status); } &&
34319 { ac_try='test -z "$ac_c_werror_flag"
34320 || test ! -s conftest.err'
34321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322 (eval $ac_try) 2>&5
34324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325 (exit $ac_status); }; } &&
34326 { ac_try='test -s conftest.$ac_objext'
34327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34328 (eval $ac_try) 2>&5
34330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331 (exit $ac_status); }; }; then
34334 echo "$as_me: failed program was:" >&5
34335 sed 's/^/| /' conftest.$ac_ext >&5
34337 ac_lo=`expr '(' $ac_mid ')' + 1`
34339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34342 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34343 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
34344 See \`config.log' for more details." >&5
34345 echo "$as_me: error: cannot compute sizeof (long long), 77
34346 See \`config.log' for more details." >&2;}
34347 { (exit 1); exit 1; }; } ;;
34350 if test "$cross_compiling" = yes; then
34351 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34352 See \`config.log' for more details." >&5
34353 echo "$as_me: error: cannot run test program while cross compiling
34354 See \`config.log' for more details." >&2;}
34355 { (exit 1); exit 1; }; }
34357 cat >conftest.$ac_ext <<_ACEOF
34360 cat confdefs.h >>conftest.$ac_ext
34361 cat >>conftest.$ac_ext <<_ACEOF
34362 /* end confdefs.h. */
34363 $ac_includes_default
34364 long longval () { return (long) (sizeof (long long)); }
34365 unsigned long ulongval () { return (long) (sizeof (long long)); }
34367 #include <stdlib.h>
34372 FILE *f = fopen ("conftest.val", "w");
34375 if (((long) (sizeof (long long))) < 0)
34377 long i = longval ();
34378 if (i != ((long) (sizeof (long long))))
34380 fprintf (f, "%ld\n", i);
34384 unsigned long i = ulongval ();
34385 if (i != ((long) (sizeof (long long))))
34387 fprintf (f, "%lu\n", i);
34389 exit (ferror (f) || fclose (f) != 0);
34395 rm -f conftest$ac_exeext
34396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34397 (eval $ac_link) 2>&5
34399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34402 (eval $ac_try) 2>&5
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); }; }; then
34406 ac_cv_sizeof_long_long=`cat conftest.val`
34408 echo "$as_me: program exited with status $ac_status" >&5
34409 echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34412 ( exit $ac_status )
34413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
34414 See \`config.log' for more details." >&5
34415 echo "$as_me: error: cannot compute sizeof (long long), 77
34416 See \`config.log' for more details." >&2;}
34417 { (exit 1); exit 1; }; }
34419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34424 ac_cv_sizeof_long_long=0
34427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34428 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
34429 cat >>confdefs.h <<_ACEOF
34430 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34434 echo "$as_me:$LINENO: checking for wchar_t" >&5
34435 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
34436 if test "${ac_cv_type_wchar_t+set}" = set; then
34437 echo $ECHO_N "(cached) $ECHO_C" >&6
34439 cat >conftest.$ac_ext <<_ACEOF
34442 cat confdefs.h >>conftest.$ac_ext
34443 cat >>conftest.$ac_ext <<_ACEOF
34444 /* end confdefs.h. */
34445 $ac_includes_default
34451 if (sizeof (wchar_t))
34457 rm -f conftest.$ac_objext
34458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34459 (eval $ac_compile) 2>conftest.er1
34461 grep -v '^ *+' conftest.er1 >conftest.err
34463 cat conftest.err >&5
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); } &&
34466 { ac_try='test -z "$ac_c_werror_flag"
34467 || test ! -s conftest.err'
34468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34469 (eval $ac_try) 2>&5
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); }; } &&
34473 { ac_try='test -s conftest.$ac_objext'
34474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475 (eval $ac_try) 2>&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); }; }; then
34479 ac_cv_type_wchar_t=yes
34481 echo "$as_me: failed program was:" >&5
34482 sed 's/^/| /' conftest.$ac_ext >&5
34484 ac_cv_type_wchar_t=no
34486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34488 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34489 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
34491 echo "$as_me:$LINENO: checking size of wchar_t" >&5
34492 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
34493 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34494 echo $ECHO_N "(cached) $ECHO_C" >&6
34496 if test "$ac_cv_type_wchar_t" = yes; then
34497 # The cast to unsigned long works around a bug in the HP C Compiler
34498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34500 # This bug is HP SR number 8606223364.
34501 if test "$cross_compiling" = yes; then
34502 # Depending upon the size, compute the lo and hi bounds.
34503 cat >conftest.$ac_ext <<_ACEOF
34506 cat confdefs.h >>conftest.$ac_ext
34507 cat >>conftest.$ac_ext <<_ACEOF
34508 /* end confdefs.h. */
34509 $ac_includes_default
34513 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
34520 rm -f conftest.$ac_objext
34521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34522 (eval $ac_compile) 2>conftest.er1
34524 grep -v '^ *+' conftest.er1 >conftest.err
34526 cat conftest.err >&5
34527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34528 (exit $ac_status); } &&
34529 { ac_try='test -z "$ac_c_werror_flag"
34530 || test ! -s conftest.err'
34531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34532 (eval $ac_try) 2>&5
34534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535 (exit $ac_status); }; } &&
34536 { ac_try='test -s conftest.$ac_objext'
34537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34538 (eval $ac_try) 2>&5
34540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541 (exit $ac_status); }; }; then
34544 cat >conftest.$ac_ext <<_ACEOF
34547 cat confdefs.h >>conftest.$ac_ext
34548 cat >>conftest.$ac_ext <<_ACEOF
34549 /* end confdefs.h. */
34550 $ac_includes_default
34554 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
34561 rm -f conftest.$ac_objext
34562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34563 (eval $ac_compile) 2>conftest.er1
34565 grep -v '^ *+' conftest.er1 >conftest.err
34567 cat conftest.err >&5
34568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569 (exit $ac_status); } &&
34570 { ac_try='test -z "$ac_c_werror_flag"
34571 || test ! -s conftest.err'
34572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34573 (eval $ac_try) 2>&5
34575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576 (exit $ac_status); }; } &&
34577 { ac_try='test -s conftest.$ac_objext'
34578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34579 (eval $ac_try) 2>&5
34581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34582 (exit $ac_status); }; }; then
34583 ac_hi=$ac_mid; break
34585 echo "$as_me: failed program was:" >&5
34586 sed 's/^/| /' conftest.$ac_ext >&5
34588 ac_lo=`expr $ac_mid + 1`
34589 if test $ac_lo -le $ac_mid; then
34593 ac_mid=`expr 2 '*' $ac_mid + 1`
34595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34598 echo "$as_me: failed program was:" >&5
34599 sed 's/^/| /' conftest.$ac_ext >&5
34601 cat >conftest.$ac_ext <<_ACEOF
34604 cat confdefs.h >>conftest.$ac_ext
34605 cat >>conftest.$ac_ext <<_ACEOF
34606 /* end confdefs.h. */
34607 $ac_includes_default
34611 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
34618 rm -f conftest.$ac_objext
34619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34620 (eval $ac_compile) 2>conftest.er1
34622 grep -v '^ *+' conftest.er1 >conftest.err
34624 cat conftest.err >&5
34625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34626 (exit $ac_status); } &&
34627 { ac_try='test -z "$ac_c_werror_flag"
34628 || test ! -s conftest.err'
34629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630 (eval $ac_try) 2>&5
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); }; } &&
34634 { ac_try='test -s conftest.$ac_objext'
34635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34636 (eval $ac_try) 2>&5
34638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34639 (exit $ac_status); }; }; then
34642 cat >conftest.$ac_ext <<_ACEOF
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h. */
34648 $ac_includes_default
34652 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
34659 rm -f conftest.$ac_objext
34660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34661 (eval $ac_compile) 2>conftest.er1
34663 grep -v '^ *+' conftest.er1 >conftest.err
34665 cat conftest.err >&5
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); } &&
34668 { ac_try='test -z "$ac_c_werror_flag"
34669 || test ! -s conftest.err'
34670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671 (eval $ac_try) 2>&5
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; } &&
34675 { ac_try='test -s conftest.$ac_objext'
34676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34677 (eval $ac_try) 2>&5
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); }; }; then
34681 ac_lo=$ac_mid; break
34683 echo "$as_me: failed program was:" >&5
34684 sed 's/^/| /' conftest.$ac_ext >&5
34686 ac_hi=`expr '(' $ac_mid ')' - 1`
34687 if test $ac_mid -le $ac_hi; then
34691 ac_mid=`expr 2 '*' $ac_mid`
34693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34696 echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34704 # Binary search between lo and hi bounds.
34705 while test "x$ac_lo" != "x$ac_hi"; do
34706 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34707 cat >conftest.$ac_ext <<_ACEOF
34710 cat confdefs.h >>conftest.$ac_ext
34711 cat >>conftest.$ac_ext <<_ACEOF
34712 /* end confdefs.h. */
34713 $ac_includes_default
34717 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
34724 rm -f conftest.$ac_objext
34725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34726 (eval $ac_compile) 2>conftest.er1
34728 grep -v '^ *+' conftest.er1 >conftest.err
34730 cat conftest.err >&5
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); } &&
34733 { ac_try='test -z "$ac_c_werror_flag"
34734 || test ! -s conftest.err'
34735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736 (eval $ac_try) 2>&5
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; } &&
34740 { ac_try='test -s conftest.$ac_objext'
34741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742 (eval $ac_try) 2>&5
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); }; }; then
34748 echo "$as_me: failed program was:" >&5
34749 sed 's/^/| /' conftest.$ac_ext >&5
34751 ac_lo=`expr '(' $ac_mid ')' + 1`
34753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34756 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
34757 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
34758 See \`config.log' for more details." >&5
34759 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
34760 See \`config.log' for more details." >&2;}
34761 { (exit 1); exit 1; }; } ;;
34764 if test "$cross_compiling" = yes; then
34765 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34766 See \`config.log' for more details." >&5
34767 echo "$as_me: error: cannot run test program while cross compiling
34768 See \`config.log' for more details." >&2;}
34769 { (exit 1); exit 1; }; }
34771 cat >conftest.$ac_ext <<_ACEOF
34774 cat confdefs.h >>conftest.$ac_ext
34775 cat >>conftest.$ac_ext <<_ACEOF
34776 /* end confdefs.h. */
34777 $ac_includes_default
34778 long longval () { return (long) (sizeof (wchar_t)); }
34779 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
34781 #include <stdlib.h>
34786 FILE *f = fopen ("conftest.val", "w");
34789 if (((long) (sizeof (wchar_t))) < 0)
34791 long i = longval ();
34792 if (i != ((long) (sizeof (wchar_t))))
34794 fprintf (f, "%ld\n", i);
34798 unsigned long i = ulongval ();
34799 if (i != ((long) (sizeof (wchar_t))))
34801 fprintf (f, "%lu\n", i);
34803 exit (ferror (f) || fclose (f) != 0);
34809 rm -f conftest$ac_exeext
34810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34811 (eval $ac_link) 2>&5
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34816 (eval $ac_try) 2>&5
34818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819 (exit $ac_status); }; }; then
34820 ac_cv_sizeof_wchar_t=`cat conftest.val`
34822 echo "$as_me: program exited with status $ac_status" >&5
34823 echo "$as_me: failed program was:" >&5
34824 sed 's/^/| /' conftest.$ac_ext >&5
34826 ( exit $ac_status )
34827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
34828 See \`config.log' for more details." >&5
34829 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
34830 See \`config.log' for more details." >&2;}
34831 { (exit 1); exit 1; }; }
34833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34838 ac_cv_sizeof_wchar_t=0
34841 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
34842 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
34843 cat >>confdefs.h <<_ACEOF
34844 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
34849 if test "$ac_cv_sizeof_int" -lt 4 ; then
34850 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
34851 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
34854 cat >>confdefs.h <<\_ACEOF
34855 #define LBER_INT_T long
34860 cat >>confdefs.h <<\_ACEOF
34861 #define LBER_INT_T int
34867 cat >>confdefs.h <<\_ACEOF
34868 #define LBER_LEN_T long
34872 cat >>confdefs.h <<\_ACEOF
34873 #define LBER_SOCKET_T int
34877 cat >>confdefs.h <<\_ACEOF
34878 #define LBER_TAG_T long
34882 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
34883 if test $ac_cv_sizeof_long_long -gt 4 ; then
34884 ol_with_mp=longlong
34886 cat >>confdefs.h <<\_ACEOF
34887 #define USE_MP_LONG_LONG 1
34890 elif test $ol_with_mp = longlong ; then
34891 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
34892 echo "$as_me: error: long long unusable for multiple precision" >&2;}
34893 { (exit 1); exit 1; }; }
34896 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
34897 if test $ac_cv_sizeof_long -gt 4 ; then
34900 cat >>confdefs.h <<\_ACEOF
34901 #define USE_MP_LONG 1
34904 elif test $ol_with_mp = long ; then
34905 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
34906 echo "$as_me: error: long unusable for multiple precision" >&2;}
34907 { (exit 1); exit 1; }; }
34910 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
34912 for ac_header in openssl/bn.h
34914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34916 echo "$as_me:$LINENO: checking for $ac_header" >&5
34917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34919 echo $ECHO_N "(cached) $ECHO_C" >&6
34921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34924 # Is the header compilable?
34925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34927 cat >conftest.$ac_ext <<_ACEOF
34930 cat confdefs.h >>conftest.$ac_ext
34931 cat >>conftest.$ac_ext <<_ACEOF
34932 /* end confdefs.h. */
34933 $ac_includes_default
34934 #include <$ac_header>
34936 rm -f conftest.$ac_objext
34937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34938 (eval $ac_compile) 2>conftest.er1
34940 grep -v '^ *+' conftest.er1 >conftest.err
34942 cat conftest.err >&5
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); } &&
34945 { ac_try='test -z "$ac_c_werror_flag"
34946 || test ! -s conftest.err'
34947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948 (eval $ac_try) 2>&5
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); }; } &&
34952 { ac_try='test -s conftest.$ac_objext'
34953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954 (eval $ac_try) 2>&5
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); }; }; then
34958 ac_header_compiler=yes
34960 echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34963 ac_header_compiler=no
34965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34967 echo "${ECHO_T}$ac_header_compiler" >&6
34969 # Is the header present?
34970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34972 cat >conftest.$ac_ext <<_ACEOF
34975 cat confdefs.h >>conftest.$ac_ext
34976 cat >>conftest.$ac_ext <<_ACEOF
34977 /* end confdefs.h. */
34978 #include <$ac_header>
34980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34981 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
34988 if test -s conftest.err; then
34989 ac_cpp_err=$ac_c_preproc_warn_flag
34990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34997 if test -z "$ac_cpp_err"; then
34998 ac_header_preproc=yes
35000 echo "$as_me: failed program was:" >&5
35001 sed 's/^/| /' conftest.$ac_ext >&5
35003 ac_header_preproc=no
35005 rm -f conftest.err conftest.$ac_ext
35006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35007 echo "${ECHO_T}$ac_header_preproc" >&6
35009 # So? What about this header?
35010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35016 ac_header_preproc=yes
35019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35033 ## --------------------------------------------- ##
35034 ## Report this to <http://www.openldap.org/its/> ##
35035 ## --------------------------------------------- ##
35038 sed "s/^/$as_me: WARNING: /" >&2
35041 echo "$as_me:$LINENO: checking for $ac_header" >&5
35042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35044 echo $ECHO_N "(cached) $ECHO_C" >&6
35046 eval "$as_ac_Header=\$ac_header_preproc"
35048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35053 cat >>confdefs.h <<_ACEOF
35054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35062 for ac_header in openssl/crypto.h
35064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35066 echo "$as_me:$LINENO: checking for $ac_header" >&5
35067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35069 echo $ECHO_N "(cached) $ECHO_C" >&6
35071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35074 # Is the header compilable?
35075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35077 cat >conftest.$ac_ext <<_ACEOF
35080 cat confdefs.h >>conftest.$ac_ext
35081 cat >>conftest.$ac_ext <<_ACEOF
35082 /* end confdefs.h. */
35083 $ac_includes_default
35084 #include <$ac_header>
35086 rm -f conftest.$ac_objext
35087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35088 (eval $ac_compile) 2>conftest.er1
35090 grep -v '^ *+' conftest.er1 >conftest.err
35092 cat conftest.err >&5
35093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094 (exit $ac_status); } &&
35095 { ac_try='test -z "$ac_c_werror_flag"
35096 || test ! -s conftest.err'
35097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098 (eval $ac_try) 2>&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); }; } &&
35102 { ac_try='test -s conftest.$ac_objext'
35103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35104 (eval $ac_try) 2>&5
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); }; }; then
35108 ac_header_compiler=yes
35110 echo "$as_me: failed program was:" >&5
35111 sed 's/^/| /' conftest.$ac_ext >&5
35113 ac_header_compiler=no
35115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35117 echo "${ECHO_T}$ac_header_compiler" >&6
35119 # Is the header present?
35120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35122 cat >conftest.$ac_ext <<_ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h. */
35128 #include <$ac_header>
35130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35133 grep -v '^ *+' conftest.er1 >conftest.err
35135 cat conftest.err >&5
35136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137 (exit $ac_status); } >/dev/null; then
35138 if test -s conftest.err; then
35139 ac_cpp_err=$ac_c_preproc_warn_flag
35140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35147 if test -z "$ac_cpp_err"; then
35148 ac_header_preproc=yes
35150 echo "$as_me: failed program was:" >&5
35151 sed 's/^/| /' conftest.$ac_ext >&5
35153 ac_header_preproc=no
35155 rm -f conftest.err conftest.$ac_ext
35156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35157 echo "${ECHO_T}$ac_header_preproc" >&6
35159 # So? What about this header?
35160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35166 ac_header_preproc=yes
35169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35183 ## --------------------------------------------- ##
35184 ## Report this to <http://www.openldap.org/its/> ##
35185 ## --------------------------------------------- ##
35188 sed "s/^/$as_me: WARNING: /" >&2
35191 echo "$as_me:$LINENO: checking for $ac_header" >&5
35192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35194 echo $ECHO_N "(cached) $ECHO_C" >&6
35196 eval "$as_ac_Header=\$ac_header_preproc"
35198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35203 cat >>confdefs.h <<_ACEOF
35204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35211 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35212 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35213 test "$ol_with_tls" = "found" ; then
35216 cat >>confdefs.h <<\_ACEOF
35217 #define USE_MP_BIGNUM 1
35220 elif test $ol_with_mp = bignum ; then
35221 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35222 echo "$as_me: error: bignum not available" >&2;}
35223 { (exit 1); exit 1; }; }
35226 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35228 for ac_header in gmp.h
35230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35232 echo "$as_me:$LINENO: checking for $ac_header" >&5
35233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35235 echo $ECHO_N "(cached) $ECHO_C" >&6
35237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35240 # Is the header compilable?
35241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35243 cat >conftest.$ac_ext <<_ACEOF
35246 cat confdefs.h >>conftest.$ac_ext
35247 cat >>conftest.$ac_ext <<_ACEOF
35248 /* end confdefs.h. */
35249 $ac_includes_default
35250 #include <$ac_header>
35252 rm -f conftest.$ac_objext
35253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35254 (eval $ac_compile) 2>conftest.er1
35256 grep -v '^ *+' conftest.er1 >conftest.err
35258 cat conftest.err >&5
35259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260 (exit $ac_status); } &&
35261 { ac_try='test -z "$ac_c_werror_flag"
35262 || test ! -s conftest.err'
35263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35264 (eval $ac_try) 2>&5
35266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267 (exit $ac_status); }; } &&
35268 { ac_try='test -s conftest.$ac_objext'
35269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35270 (eval $ac_try) 2>&5
35272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 (exit $ac_status); }; }; then
35274 ac_header_compiler=yes
35276 echo "$as_me: failed program was:" >&5
35277 sed 's/^/| /' conftest.$ac_ext >&5
35279 ac_header_compiler=no
35281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35283 echo "${ECHO_T}$ac_header_compiler" >&6
35285 # Is the header present?
35286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35288 cat >conftest.$ac_ext <<_ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h. */
35294 #include <$ac_header>
35296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35297 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
35304 if test -s conftest.err; then
35305 ac_cpp_err=$ac_c_preproc_warn_flag
35306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35313 if test -z "$ac_cpp_err"; then
35314 ac_header_preproc=yes
35316 echo "$as_me: failed program was:" >&5
35317 sed 's/^/| /' conftest.$ac_ext >&5
35319 ac_header_preproc=no
35321 rm -f conftest.err conftest.$ac_ext
35322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35323 echo "${ECHO_T}$ac_header_preproc" >&6
35325 # So? What about this header?
35326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35332 ac_header_preproc=yes
35335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35349 ## --------------------------------------------- ##
35350 ## Report this to <http://www.openldap.org/its/> ##
35351 ## --------------------------------------------- ##
35354 sed "s/^/$as_me: WARNING: /" >&2
35357 echo "$as_me:$LINENO: checking for $ac_header" >&5
35358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35360 echo $ECHO_N "(cached) $ECHO_C" >&6
35362 eval "$as_ac_Header=\$ac_header_preproc"
35364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35369 cat >>confdefs.h <<_ACEOF
35370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35378 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35379 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
35380 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35381 echo $ECHO_N "(cached) $ECHO_C" >&6
35383 ac_check_lib_save_LIBS=$LIBS
35385 cat >conftest.$ac_ext <<_ACEOF
35388 cat confdefs.h >>conftest.$ac_ext
35389 cat >>conftest.$ac_ext <<_ACEOF
35390 /* end confdefs.h. */
35392 /* Override any gcc2 internal prototype to avoid an error. */
35396 /* We use char because int might match the return type of a gcc2
35397 builtin and then its argument prototype would still apply. */
35398 char __gmpz_add_ui ();
35407 rm -f conftest.$ac_objext conftest$ac_exeext
35408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35409 (eval $ac_link) 2>conftest.er1
35411 grep -v '^ *+' conftest.er1 >conftest.err
35413 cat conftest.err >&5
35414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415 (exit $ac_status); } &&
35416 { ac_try='test -z "$ac_c_werror_flag"
35417 || test ! -s conftest.err'
35418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35419 (eval $ac_try) 2>&5
35421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422 (exit $ac_status); }; } &&
35423 { ac_try='test -s conftest$ac_exeext'
35424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35425 (eval $ac_try) 2>&5
35427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35428 (exit $ac_status); }; }; then
35429 ac_cv_lib_gmp___gmpz_add_ui=yes
35431 echo "$as_me: failed program was:" >&5
35432 sed 's/^/| /' conftest.$ac_ext >&5
35434 ac_cv_lib_gmp___gmpz_add_ui=no
35436 rm -f conftest.err conftest.$ac_objext \
35437 conftest$ac_exeext conftest.$ac_ext
35438 LIBS=$ac_check_lib_save_LIBS
35440 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35441 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
35442 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35443 cat >>confdefs.h <<_ACEOF
35444 #define HAVE_LIBGMP 1
35451 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35453 cat >>confdefs.h <<\_ACEOF
35454 #define USE_MP_GMP 1
35458 elif test $ol_with_mp = gmp ; then
35459 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35460 echo "$as_me: error: gmp not available" >&2;}
35461 { (exit 1); exit 1; }; }
35464 if test $ol_with_mp = auto ; then
35468 echo "$as_me:$LINENO: checking for working memcmp" >&5
35469 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
35470 if test "${ac_cv_func_memcmp_working+set}" = set; then
35471 echo $ECHO_N "(cached) $ECHO_C" >&6
35473 if test "$cross_compiling" = yes; then
35474 ac_cv_func_memcmp_working=no
35476 cat >conftest.$ac_ext <<_ACEOF
35479 cat confdefs.h >>conftest.$ac_ext
35480 cat >>conftest.$ac_ext <<_ACEOF
35481 /* end confdefs.h. */
35482 $ac_includes_default
35487 /* Some versions of memcmp are not 8-bit clean. */
35488 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
35489 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35492 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35493 or more and with at least one buffer not starting on a 4-byte boundary.
35494 William Lewis provided this test program. */
35499 for (i = 0; i < 4; i++)
35503 strcpy (a, "--------01111111");
35504 strcpy (b, "--------10000000");
35505 if (memcmp (a, b, 16) >= 0)
35515 rm -f conftest$ac_exeext
35516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35517 (eval $ac_link) 2>&5
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35522 (eval $ac_try) 2>&5
35524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35525 (exit $ac_status); }; }; then
35526 ac_cv_func_memcmp_working=yes
35528 echo "$as_me: program exited with status $ac_status" >&5
35529 echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35532 ( exit $ac_status )
35533 ac_cv_func_memcmp_working=no
35535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35538 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35539 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
35540 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
35541 "memcmp.$ac_objext" | \
35542 *" memcmp.$ac_objext" | \
35543 "memcmp.$ac_objext "* | \
35544 *" memcmp.$ac_objext "* ) ;;
35545 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
35550 if test $ac_cv_func_memcmp_working = no ; then
35552 cat >>confdefs.h <<\_ACEOF
35553 #define NEED_MEMCMP_REPLACEMENT 1
35559 for ac_func in strftime
35561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35562 echo "$as_me:$LINENO: checking for $ac_func" >&5
35563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35564 if eval "test \"\${$as_ac_var+set}\" = set"; then
35565 echo $ECHO_N "(cached) $ECHO_C" >&6
35567 cat >conftest.$ac_ext <<_ACEOF
35570 cat confdefs.h >>conftest.$ac_ext
35571 cat >>conftest.$ac_ext <<_ACEOF
35572 /* end confdefs.h. */
35573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35575 #define $ac_func innocuous_$ac_func
35577 /* System header to define __stub macros and hopefully few prototypes,
35578 which can conflict with char $ac_func (); below.
35579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35580 <limits.h> exists even on freestanding compilers. */
35583 # include <limits.h>
35585 # include <assert.h>
35590 /* Override any gcc2 internal prototype to avoid an error. */
35595 /* We use char because int might match the return type of a gcc2
35596 builtin and then its argument prototype would still apply. */
35598 /* The GNU C library defines this for functions which it implements
35599 to always fail with ENOSYS. Some functions are actually named
35600 something starting with __ and the normal name is an alias. */
35601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35604 char (*f) () = $ac_func;
35613 return f != $ac_func;
35618 rm -f conftest.$ac_objext conftest$ac_exeext
35619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35620 (eval $ac_link) 2>conftest.er1
35622 grep -v '^ *+' conftest.er1 >conftest.err
35624 cat conftest.err >&5
35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626 (exit $ac_status); } &&
35627 { ac_try='test -z "$ac_c_werror_flag"
35628 || test ! -s conftest.err'
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; } &&
35634 { ac_try='test -s conftest$ac_exeext'
35635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636 (eval $ac_try) 2>&5
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); }; }; then
35640 eval "$as_ac_var=yes"
35642 echo "$as_me: failed program was:" >&5
35643 sed 's/^/| /' conftest.$ac_ext >&5
35645 eval "$as_ac_var=no"
35647 rm -f conftest.err conftest.$ac_objext \
35648 conftest$ac_exeext conftest.$ac_ext
35650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35652 if test `eval echo '${'$as_ac_var'}'` = yes; then
35653 cat >>confdefs.h <<_ACEOF
35654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35658 # strftime is in -lintl on SCO UNIX.
35659 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
35660 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
35661 if test "${ac_cv_lib_intl_strftime+set}" = set; then
35662 echo $ECHO_N "(cached) $ECHO_C" >&6
35664 ac_check_lib_save_LIBS=$LIBS
35665 LIBS="-lintl $LIBS"
35666 cat >conftest.$ac_ext <<_ACEOF
35669 cat confdefs.h >>conftest.$ac_ext
35670 cat >>conftest.$ac_ext <<_ACEOF
35671 /* end confdefs.h. */
35673 /* Override any gcc2 internal prototype to avoid an error. */
35677 /* We use char because int might match the return type of a gcc2
35678 builtin and then its argument prototype would still apply. */
35688 rm -f conftest.$ac_objext conftest$ac_exeext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35690 (eval $ac_link) 2>conftest.er1
35692 grep -v '^ *+' conftest.er1 >conftest.err
35694 cat conftest.err >&5
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); } &&
35697 { ac_try='test -z "$ac_c_werror_flag"
35698 || test ! -s conftest.err'
35699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700 (eval $ac_try) 2>&5
35702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703 (exit $ac_status); }; } &&
35704 { ac_try='test -s conftest$ac_exeext'
35705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706 (eval $ac_try) 2>&5
35708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); }; }; then
35710 ac_cv_lib_intl_strftime=yes
35712 echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35715 ac_cv_lib_intl_strftime=no
35717 rm -f conftest.err conftest.$ac_objext \
35718 conftest$ac_exeext conftest.$ac_ext
35719 LIBS=$ac_check_lib_save_LIBS
35721 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
35722 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
35723 if test $ac_cv_lib_intl_strftime = yes; then
35724 cat >>confdefs.h <<\_ACEOF
35725 #define HAVE_STRFTIME 1
35728 LIBS="-lintl $LIBS"
35735 echo "$as_me:$LINENO: checking for inet_aton()" >&5
35736 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
35737 if test "${ol_cv_func_inet_aton+set}" = set; then
35738 echo $ECHO_N "(cached) $ECHO_C" >&6
35740 cat >conftest.$ac_ext <<_ACEOF
35743 cat confdefs.h >>conftest.$ac_ext
35744 cat >>conftest.$ac_ext <<_ACEOF
35745 /* end confdefs.h. */
35747 #ifdef HAVE_SYS_TYPES_H
35748 # include <sys/types.h>
35750 #ifdef HAVE_SYS_SOCKET_H
35751 # include <sys/socket.h>
35752 # ifdef HAVE_SYS_SELECT_H
35753 # include <sys/select.h>
35755 # include <netinet/in.h>
35756 # ifdef HAVE_ARPA_INET_H
35757 # include <arpa/inet.h>
35765 int rc = inet_aton( "255.255.255.255", &in );
35770 rm -f conftest.$ac_objext conftest$ac_exeext
35771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35772 (eval $ac_link) 2>conftest.er1
35774 grep -v '^ *+' conftest.er1 >conftest.err
35776 cat conftest.err >&5
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); } &&
35779 { ac_try='test -z "$ac_c_werror_flag"
35780 || test ! -s conftest.err'
35781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35782 (eval $ac_try) 2>&5
35784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35785 (exit $ac_status); }; } &&
35786 { ac_try='test -s conftest$ac_exeext'
35787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35788 (eval $ac_try) 2>&5
35790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35791 (exit $ac_status); }; }; then
35792 ol_cv_func_inet_aton=yes
35794 echo "$as_me: failed program was:" >&5
35795 sed 's/^/| /' conftest.$ac_ext >&5
35797 ol_cv_func_inet_aton=no
35799 rm -f conftest.err conftest.$ac_objext \
35800 conftest$ac_exeext conftest.$ac_ext
35802 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
35803 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
35804 if test $ol_cv_func_inet_aton != no; then
35806 cat >>confdefs.h <<\_ACEOF
35807 #define HAVE_INET_ATON 1
35813 echo "$as_me:$LINENO: checking for _spawnlp" >&5
35814 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
35815 if test "${ac_cv_func__spawnlp+set}" = set; then
35816 echo $ECHO_N "(cached) $ECHO_C" >&6
35818 cat >conftest.$ac_ext <<_ACEOF
35821 cat confdefs.h >>conftest.$ac_ext
35822 cat >>conftest.$ac_ext <<_ACEOF
35823 /* end confdefs.h. */
35824 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
35825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35826 #define _spawnlp innocuous__spawnlp
35828 /* System header to define __stub macros and hopefully few prototypes,
35829 which can conflict with char _spawnlp (); below.
35830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35831 <limits.h> exists even on freestanding compilers. */
35834 # include <limits.h>
35836 # include <assert.h>
35841 /* Override any gcc2 internal prototype to avoid an error. */
35846 /* We use char because int might match the return type of a gcc2
35847 builtin and then its argument prototype would still apply. */
35849 /* The GNU C library defines this for functions which it implements
35850 to always fail with ENOSYS. Some functions are actually named
35851 something starting with __ and the normal name is an alias. */
35852 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
35855 char (*f) () = _spawnlp;
35864 return f != _spawnlp;
35869 rm -f conftest.$ac_objext conftest$ac_exeext
35870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35871 (eval $ac_link) 2>conftest.er1
35873 grep -v '^ *+' conftest.er1 >conftest.err
35875 cat conftest.err >&5
35876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35877 (exit $ac_status); } &&
35878 { ac_try='test -z "$ac_c_werror_flag"
35879 || test ! -s conftest.err'
35880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35881 (eval $ac_try) 2>&5
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); }; } &&
35885 { ac_try='test -s conftest$ac_exeext'
35886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887 (eval $ac_try) 2>&5
35889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890 (exit $ac_status); }; }; then
35891 ac_cv_func__spawnlp=yes
35893 echo "$as_me: failed program was:" >&5
35894 sed 's/^/| /' conftest.$ac_ext >&5
35896 ac_cv_func__spawnlp=no
35898 rm -f conftest.err conftest.$ac_objext \
35899 conftest$ac_exeext conftest.$ac_ext
35901 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
35902 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
35903 if test $ac_cv_func__spawnlp = yes; then
35905 cat >>confdefs.h <<\_ACEOF
35906 #define HAVE_SPAWNLP 1
35912 echo "$as_me:$LINENO: checking for _snprintf" >&5
35913 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
35914 if test "${ac_cv_func__snprintf+set}" = set; then
35915 echo $ECHO_N "(cached) $ECHO_C" >&6
35917 cat >conftest.$ac_ext <<_ACEOF
35920 cat confdefs.h >>conftest.$ac_ext
35921 cat >>conftest.$ac_ext <<_ACEOF
35922 /* end confdefs.h. */
35923 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
35924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35925 #define _snprintf innocuous__snprintf
35927 /* System header to define __stub macros and hopefully few prototypes,
35928 which can conflict with char _snprintf (); below.
35929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35930 <limits.h> exists even on freestanding compilers. */
35933 # include <limits.h>
35935 # include <assert.h>
35940 /* Override any gcc2 internal prototype to avoid an error. */
35945 /* We use char because int might match the return type of a gcc2
35946 builtin and then its argument prototype would still apply. */
35948 /* The GNU C library defines this for functions which it implements
35949 to always fail with ENOSYS. Some functions are actually named
35950 something starting with __ and the normal name is an alias. */
35951 #if defined (__stub__snprintf) || defined (__stub____snprintf)
35954 char (*f) () = _snprintf;
35963 return f != _snprintf;
35968 rm -f conftest.$ac_objext conftest$ac_exeext
35969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35970 (eval $ac_link) 2>conftest.er1
35972 grep -v '^ *+' conftest.er1 >conftest.err
35974 cat conftest.err >&5
35975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976 (exit $ac_status); } &&
35977 { ac_try='test -z "$ac_c_werror_flag"
35978 || test ! -s conftest.err'
35979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980 (eval $ac_try) 2>&5
35982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983 (exit $ac_status); }; } &&
35984 { ac_try='test -s conftest$ac_exeext'
35985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35986 (eval $ac_try) 2>&5
35988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35989 (exit $ac_status); }; }; then
35990 ac_cv_func__snprintf=yes
35992 echo "$as_me: failed program was:" >&5
35993 sed 's/^/| /' conftest.$ac_ext >&5
35995 ac_cv_func__snprintf=no
35997 rm -f conftest.err conftest.$ac_objext \
35998 conftest$ac_exeext conftest.$ac_ext
36000 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36001 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
36002 if test $ac_cv_func__snprintf = yes; then
36003 ac_cv_func_snprintf=yes
36005 cat >>confdefs.h <<\_ACEOF
36006 #define snprintf _snprintf
36013 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
36014 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
36015 if test "${ac_cv_func__vsnprintf+set}" = set; then
36016 echo $ECHO_N "(cached) $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 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
36025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36026 #define _vsnprintf innocuous__vsnprintf
36028 /* System header to define __stub macros and hopefully few prototypes,
36029 which can conflict with char _vsnprintf (); below.
36030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36031 <limits.h> exists even on freestanding compilers. */
36034 # include <limits.h>
36036 # include <assert.h>
36041 /* Override any gcc2 internal prototype to avoid an error. */
36046 /* We use char because int might match the return type of a gcc2
36047 builtin and then its argument prototype would still apply. */
36048 char _vsnprintf ();
36049 /* The GNU C library defines this for functions which it implements
36050 to always fail with ENOSYS. Some functions are actually named
36051 something starting with __ and the normal name is an alias. */
36052 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
36055 char (*f) () = _vsnprintf;
36064 return f != _vsnprintf;
36069 rm -f conftest.$ac_objext conftest$ac_exeext
36070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36071 (eval $ac_link) 2>conftest.er1
36073 grep -v '^ *+' conftest.er1 >conftest.err
36075 cat conftest.err >&5
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); } &&
36078 { ac_try='test -z "$ac_c_werror_flag"
36079 || test ! -s conftest.err'
36080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36081 (eval $ac_try) 2>&5
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); }; } &&
36085 { ac_try='test -s conftest$ac_exeext'
36086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36087 (eval $ac_try) 2>&5
36089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090 (exit $ac_status); }; }; then
36091 ac_cv_func__vsnprintf=yes
36093 echo "$as_me: failed program was:" >&5
36094 sed 's/^/| /' conftest.$ac_ext >&5
36096 ac_cv_func__vsnprintf=no
36098 rm -f conftest.err conftest.$ac_objext \
36099 conftest$ac_exeext conftest.$ac_ext
36101 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
36102 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
36103 if test $ac_cv_func__vsnprintf = yes; then
36104 ac_cv_func_vsnprintf=yes
36106 cat >>confdefs.h <<\_ACEOF
36107 #define vsnprintf _vsnprintf
36115 for ac_func in vprintf
36117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36118 echo "$as_me:$LINENO: checking for $ac_func" >&5
36119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36120 if eval "test \"\${$as_ac_var+set}\" = set"; then
36121 echo $ECHO_N "(cached) $ECHO_C" >&6
36123 cat >conftest.$ac_ext <<_ACEOF
36126 cat confdefs.h >>conftest.$ac_ext
36127 cat >>conftest.$ac_ext <<_ACEOF
36128 /* end confdefs.h. */
36129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36131 #define $ac_func innocuous_$ac_func
36133 /* System header to define __stub macros and hopefully few prototypes,
36134 which can conflict with char $ac_func (); below.
36135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36136 <limits.h> exists even on freestanding compilers. */
36139 # include <limits.h>
36141 # include <assert.h>
36146 /* Override any gcc2 internal prototype to avoid an error. */
36151 /* We use char because int might match the return type of a gcc2
36152 builtin and then its argument prototype would still apply. */
36154 /* The GNU C library defines this for functions which it implements
36155 to always fail with ENOSYS. Some functions are actually named
36156 something starting with __ and the normal name is an alias. */
36157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36160 char (*f) () = $ac_func;
36169 return f != $ac_func;
36174 rm -f conftest.$ac_objext conftest$ac_exeext
36175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36176 (eval $ac_link) 2>conftest.er1
36178 grep -v '^ *+' conftest.er1 >conftest.err
36180 cat conftest.err >&5
36181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182 (exit $ac_status); } &&
36183 { ac_try='test -z "$ac_c_werror_flag"
36184 || test ! -s conftest.err'
36185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36186 (eval $ac_try) 2>&5
36188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189 (exit $ac_status); }; } &&
36190 { ac_try='test -s conftest$ac_exeext'
36191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192 (eval $ac_try) 2>&5
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); }; }; then
36196 eval "$as_ac_var=yes"
36198 echo "$as_me: failed program was:" >&5
36199 sed 's/^/| /' conftest.$ac_ext >&5
36201 eval "$as_ac_var=no"
36203 rm -f conftest.err conftest.$ac_objext \
36204 conftest$ac_exeext conftest.$ac_ext
36206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36208 if test `eval echo '${'$as_ac_var'}'` = yes; then
36209 cat >>confdefs.h <<_ACEOF
36210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36213 echo "$as_me:$LINENO: checking for _doprnt" >&5
36214 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
36215 if test "${ac_cv_func__doprnt+set}" = set; then
36216 echo $ECHO_N "(cached) $ECHO_C" >&6
36218 cat >conftest.$ac_ext <<_ACEOF
36221 cat confdefs.h >>conftest.$ac_ext
36222 cat >>conftest.$ac_ext <<_ACEOF
36223 /* end confdefs.h. */
36224 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36226 #define _doprnt innocuous__doprnt
36228 /* System header to define __stub macros and hopefully few prototypes,
36229 which can conflict with char _doprnt (); below.
36230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36231 <limits.h> exists even on freestanding compilers. */
36234 # include <limits.h>
36236 # include <assert.h>
36241 /* Override any gcc2 internal prototype to avoid an error. */
36246 /* We use char because int might match the return type of a gcc2
36247 builtin and then its argument prototype would still apply. */
36249 /* The GNU C library defines this for functions which it implements
36250 to always fail with ENOSYS. Some functions are actually named
36251 something starting with __ and the normal name is an alias. */
36252 #if defined (__stub__doprnt) || defined (__stub____doprnt)
36255 char (*f) () = _doprnt;
36264 return f != _doprnt;
36269 rm -f conftest.$ac_objext conftest$ac_exeext
36270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36271 (eval $ac_link) 2>conftest.er1
36273 grep -v '^ *+' conftest.er1 >conftest.err
36275 cat conftest.err >&5
36276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36277 (exit $ac_status); } &&
36278 { ac_try='test -z "$ac_c_werror_flag"
36279 || test ! -s conftest.err'
36280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36281 (eval $ac_try) 2>&5
36283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36284 (exit $ac_status); }; } &&
36285 { ac_try='test -s conftest$ac_exeext'
36286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36287 (eval $ac_try) 2>&5
36289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290 (exit $ac_status); }; }; then
36291 ac_cv_func__doprnt=yes
36293 echo "$as_me: failed program was:" >&5
36294 sed 's/^/| /' conftest.$ac_ext >&5
36296 ac_cv_func__doprnt=no
36298 rm -f conftest.err conftest.$ac_objext \
36299 conftest$ac_exeext conftest.$ac_ext
36301 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36302 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
36303 if test $ac_cv_func__doprnt = yes; then
36305 cat >>confdefs.h <<\_ACEOF
36306 #define HAVE_DOPRNT 1
36316 if test $ac_cv_func_vprintf = yes ; then
36319 for ac_func in snprintf vsnprintf
36321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36322 echo "$as_me:$LINENO: checking for $ac_func" >&5
36323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36324 if eval "test \"\${$as_ac_var+set}\" = set"; then
36325 echo $ECHO_N "(cached) $ECHO_C" >&6
36327 cat >conftest.$ac_ext <<_ACEOF
36330 cat confdefs.h >>conftest.$ac_ext
36331 cat >>conftest.$ac_ext <<_ACEOF
36332 /* end confdefs.h. */
36333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36335 #define $ac_func innocuous_$ac_func
36337 /* System header to define __stub macros and hopefully few prototypes,
36338 which can conflict with char $ac_func (); below.
36339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36340 <limits.h> exists even on freestanding compilers. */
36343 # include <limits.h>
36345 # include <assert.h>
36350 /* Override any gcc2 internal prototype to avoid an error. */
36355 /* We use char because int might match the return type of a gcc2
36356 builtin and then its argument prototype would still apply. */
36358 /* The GNU C library defines this for functions which it implements
36359 to always fail with ENOSYS. Some functions are actually named
36360 something starting with __ and the normal name is an alias. */
36361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36364 char (*f) () = $ac_func;
36373 return f != $ac_func;
36378 rm -f conftest.$ac_objext conftest$ac_exeext
36379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36380 (eval $ac_link) 2>conftest.er1
36382 grep -v '^ *+' conftest.er1 >conftest.err
36384 cat conftest.err >&5
36385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386 (exit $ac_status); } &&
36387 { ac_try='test -z "$ac_c_werror_flag"
36388 || test ! -s conftest.err'
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; } &&
36394 { ac_try='test -s conftest$ac_exeext'
36395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36396 (eval $ac_try) 2>&5
36398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399 (exit $ac_status); }; }; then
36400 eval "$as_ac_var=yes"
36402 echo "$as_me: failed program was:" >&5
36403 sed 's/^/| /' conftest.$ac_ext >&5
36405 eval "$as_ac_var=no"
36407 rm -f conftest.err conftest.$ac_objext \
36408 conftest$ac_exeext conftest.$ac_ext
36410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36412 if test `eval echo '${'$as_ac_var'}'` = yes; then
36413 cat >>confdefs.h <<_ACEOF
36414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36536 echo "$as_me:$LINENO: checking for $ac_func" >&5
36537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36538 if eval "test \"\${$as_ac_var+set}\" = set"; then
36539 echo $ECHO_N "(cached) $ECHO_C" >&6
36541 cat >conftest.$ac_ext <<_ACEOF
36544 cat confdefs.h >>conftest.$ac_ext
36545 cat >>conftest.$ac_ext <<_ACEOF
36546 /* end confdefs.h. */
36547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36549 #define $ac_func innocuous_$ac_func
36551 /* System header to define __stub macros and hopefully few prototypes,
36552 which can conflict with char $ac_func (); below.
36553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36554 <limits.h> exists even on freestanding compilers. */
36557 # include <limits.h>
36559 # include <assert.h>
36564 /* Override any gcc2 internal prototype to avoid an error. */
36569 /* We use char because int might match the return type of a gcc2
36570 builtin and then its argument prototype would still apply. */
36572 /* The GNU C library defines this for functions which it implements
36573 to always fail with ENOSYS. Some functions are actually named
36574 something starting with __ and the normal name is an alias. */
36575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36578 char (*f) () = $ac_func;
36587 return f != $ac_func;
36592 rm -f conftest.$ac_objext conftest$ac_exeext
36593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36594 (eval $ac_link) 2>conftest.er1
36596 grep -v '^ *+' conftest.er1 >conftest.err
36598 cat conftest.err >&5
36599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600 (exit $ac_status); } &&
36601 { ac_try='test -z "$ac_c_werror_flag"
36602 || test ! -s conftest.err'
36603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36604 (eval $ac_try) 2>&5
36606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607 (exit $ac_status); }; } &&
36608 { ac_try='test -s conftest$ac_exeext'
36609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36610 (eval $ac_try) 2>&5
36612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613 (exit $ac_status); }; }; then
36614 eval "$as_ac_var=yes"
36616 echo "$as_me: failed program was:" >&5
36617 sed 's/^/| /' conftest.$ac_ext >&5
36619 eval "$as_ac_var=no"
36621 rm -f conftest.err conftest.$ac_objext \
36622 conftest$ac_exeext conftest.$ac_ext
36624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36626 if test `eval echo '${'$as_ac_var'}'` = yes; then
36627 cat >>confdefs.h <<_ACEOF
36628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36637 for ac_func in getopt getpeereid
36639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36640 echo "$as_me:$LINENO: checking for $ac_func" >&5
36641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36642 if eval "test \"\${$as_ac_var+set}\" = set"; then
36643 echo $ECHO_N "(cached) $ECHO_C" >&6
36645 cat >conftest.$ac_ext <<_ACEOF
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h. */
36651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36653 #define $ac_func innocuous_$ac_func
36655 /* System header to define __stub macros and hopefully few prototypes,
36656 which can conflict with char $ac_func (); below.
36657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36658 <limits.h> exists even on freestanding compilers. */
36661 # include <limits.h>
36663 # include <assert.h>
36668 /* Override any gcc2 internal prototype to avoid an error. */
36673 /* We use char because int might match the return type of a gcc2
36674 builtin and then its argument prototype would still apply. */
36676 /* The GNU C library defines this for functions which it implements
36677 to always fail with ENOSYS. Some functions are actually named
36678 something starting with __ and the normal name is an alias. */
36679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36682 char (*f) () = $ac_func;
36691 return f != $ac_func;
36696 rm -f conftest.$ac_objext conftest$ac_exeext
36697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36698 (eval $ac_link) 2>conftest.er1
36700 grep -v '^ *+' conftest.er1 >conftest.err
36702 cat conftest.err >&5
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); } &&
36705 { ac_try='test -z "$ac_c_werror_flag"
36706 || test ! -s conftest.err'
36707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36708 (eval $ac_try) 2>&5
36710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711 (exit $ac_status); }; } &&
36712 { ac_try='test -s conftest$ac_exeext'
36713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36714 (eval $ac_try) 2>&5
36716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36717 (exit $ac_status); }; }; then
36718 eval "$as_ac_var=yes"
36720 echo "$as_me: failed program was:" >&5
36721 sed 's/^/| /' conftest.$ac_ext >&5
36723 eval "$as_ac_var=no"
36725 rm -f conftest.err conftest.$ac_objext \
36726 conftest$ac_exeext conftest.$ac_ext
36728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36730 if test `eval echo '${'$as_ac_var'}'` = yes; then
36731 cat >>confdefs.h <<_ACEOF
36732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36737 "$ac_func.$ac_objext" | \
36738 *" $ac_func.$ac_objext" | \
36739 "$ac_func.$ac_objext "* | \
36740 *" $ac_func.$ac_objext "* ) ;;
36741 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
36749 if test "$ac_cv_func_getopt" != yes; then
36750 LIBSRCS="$LIBSRCS getopt.c"
36753 if test "$ac_cv_func_getpeereid" != yes; then
36755 for ac_func in getpeerucred
36757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36758 echo "$as_me:$LINENO: checking for $ac_func" >&5
36759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36760 if eval "test \"\${$as_ac_var+set}\" = set"; then
36761 echo $ECHO_N "(cached) $ECHO_C" >&6
36763 cat >conftest.$ac_ext <<_ACEOF
36766 cat confdefs.h >>conftest.$ac_ext
36767 cat >>conftest.$ac_ext <<_ACEOF
36768 /* end confdefs.h. */
36769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36771 #define $ac_func innocuous_$ac_func
36773 /* System header to define __stub macros and hopefully few prototypes,
36774 which can conflict with char $ac_func (); below.
36775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36776 <limits.h> exists even on freestanding compilers. */
36779 # include <limits.h>
36781 # include <assert.h>
36786 /* Override any gcc2 internal prototype to avoid an error. */
36791 /* We use char because int might match the return type of a gcc2
36792 builtin and then its argument prototype would still apply. */
36794 /* The GNU C library defines this for functions which it implements
36795 to always fail with ENOSYS. Some functions are actually named
36796 something starting with __ and the normal name is an alias. */
36797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36800 char (*f) () = $ac_func;
36809 return f != $ac_func;
36814 rm -f conftest.$ac_objext conftest$ac_exeext
36815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36816 (eval $ac_link) 2>conftest.er1
36818 grep -v '^ *+' conftest.er1 >conftest.err
36820 cat conftest.err >&5
36821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822 (exit $ac_status); } &&
36823 { ac_try='test -z "$ac_c_werror_flag"
36824 || test ! -s conftest.err'
36825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36826 (eval $ac_try) 2>&5
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); }; } &&
36830 { ac_try='test -s conftest$ac_exeext'
36831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36832 (eval $ac_try) 2>&5
36834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835 (exit $ac_status); }; }; then
36836 eval "$as_ac_var=yes"
36838 echo "$as_me: failed program was:" >&5
36839 sed 's/^/| /' conftest.$ac_ext >&5
36841 eval "$as_ac_var=no"
36843 rm -f conftest.err conftest.$ac_objext \
36844 conftest$ac_exeext conftest.$ac_ext
36846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36848 if test `eval echo '${'$as_ac_var'}'` = yes; then
36849 cat >>confdefs.h <<_ACEOF
36850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36856 if test "$ac_cv_func_getpeerucred" != yes ; then
36857 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
36858 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
36859 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
36860 echo $ECHO_N "(cached) $ECHO_C" >&6
36862 cat >conftest.$ac_ext <<_ACEOF
36865 cat confdefs.h >>conftest.$ac_ext
36866 cat >>conftest.$ac_ext <<_ACEOF
36867 /* end confdefs.h. */
36868 $ac_includes_default
36869 #ifdef HAVE_SYS_SOCKET_H
36870 #include <sys/socket.h>
36876 static struct msghdr ac_aggr;
36877 if (ac_aggr.msg_accrightslen)
36883 rm -f conftest.$ac_objext
36884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36885 (eval $ac_compile) 2>conftest.er1
36887 grep -v '^ *+' conftest.er1 >conftest.err
36889 cat conftest.err >&5
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); } &&
36892 { ac_try='test -z "$ac_c_werror_flag"
36893 || test ! -s conftest.err'
36894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36895 (eval $ac_try) 2>&5
36897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898 (exit $ac_status); }; } &&
36899 { ac_try='test -s conftest.$ac_objext'
36900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36901 (eval $ac_try) 2>&5
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); }; }; then
36905 ac_cv_member_struct_msghdr_msg_accrightslen=yes
36907 echo "$as_me: failed program was:" >&5
36908 sed 's/^/| /' conftest.$ac_ext >&5
36910 cat >conftest.$ac_ext <<_ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h. */
36916 $ac_includes_default
36917 #ifdef HAVE_SYS_SOCKET_H
36918 #include <sys/socket.h>
36924 static struct msghdr ac_aggr;
36925 if (sizeof ac_aggr.msg_accrightslen)
36931 rm -f conftest.$ac_objext
36932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36933 (eval $ac_compile) 2>conftest.er1
36935 grep -v '^ *+' conftest.er1 >conftest.err
36937 cat conftest.err >&5
36938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939 (exit $ac_status); } &&
36940 { ac_try='test -z "$ac_c_werror_flag"
36941 || test ! -s conftest.err'
36942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36943 (eval $ac_try) 2>&5
36945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946 (exit $ac_status); }; } &&
36947 { ac_try='test -s conftest.$ac_objext'
36948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36949 (eval $ac_try) 2>&5
36951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952 (exit $ac_status); }; }; then
36953 ac_cv_member_struct_msghdr_msg_accrightslen=yes
36955 echo "$as_me: failed program was:" >&5
36956 sed 's/^/| /' conftest.$ac_ext >&5
36958 ac_cv_member_struct_msghdr_msg_accrightslen=no
36960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36964 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
36965 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
36966 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
36968 cat >>confdefs.h <<_ACEOF
36969 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
36975 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
36976 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
36977 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
36978 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
36979 echo $ECHO_N "(cached) $ECHO_C" >&6
36981 cat >conftest.$ac_ext <<_ACEOF
36984 cat confdefs.h >>conftest.$ac_ext
36985 cat >>conftest.$ac_ext <<_ACEOF
36986 /* end confdefs.h. */
36987 $ac_includes_default
36988 #ifdef HAVE_SYS_SOCKET_H
36989 #include <sys/socket.h>
36995 static struct msghdr ac_aggr;
36996 if (ac_aggr.msg_control)
37002 rm -f conftest.$ac_objext
37003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37004 (eval $ac_compile) 2>conftest.er1
37006 grep -v '^ *+' conftest.er1 >conftest.err
37008 cat conftest.err >&5
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); } &&
37011 { ac_try='test -z "$ac_c_werror_flag"
37012 || test ! -s conftest.err'
37013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37014 (eval $ac_try) 2>&5
37016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017 (exit $ac_status); }; } &&
37018 { ac_try='test -s conftest.$ac_objext'
37019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37020 (eval $ac_try) 2>&5
37022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023 (exit $ac_status); }; }; then
37024 ac_cv_member_struct_msghdr_msg_control=yes
37026 echo "$as_me: failed program was:" >&5
37027 sed 's/^/| /' conftest.$ac_ext >&5
37029 cat >conftest.$ac_ext <<_ACEOF
37032 cat confdefs.h >>conftest.$ac_ext
37033 cat >>conftest.$ac_ext <<_ACEOF
37034 /* end confdefs.h. */
37035 $ac_includes_default
37036 #ifdef HAVE_SYS_SOCKET_H
37037 #include <sys/socket.h>
37043 static struct msghdr ac_aggr;
37044 if (sizeof ac_aggr.msg_control)
37050 rm -f conftest.$ac_objext
37051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37052 (eval $ac_compile) 2>conftest.er1
37054 grep -v '^ *+' conftest.er1 >conftest.err
37056 cat conftest.err >&5
37057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058 (exit $ac_status); } &&
37059 { ac_try='test -z "$ac_c_werror_flag"
37060 || test ! -s conftest.err'
37061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37062 (eval $ac_try) 2>&5
37064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37065 (exit $ac_status); }; } &&
37066 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37072 ac_cv_member_struct_msghdr_msg_control=yes
37074 echo "$as_me: failed program was:" >&5
37075 sed 's/^/| /' conftest.$ac_ext >&5
37077 ac_cv_member_struct_msghdr_msg_control=no
37079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37083 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37084 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
37085 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37087 cat >>confdefs.h <<_ACEOF
37088 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37095 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37096 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
37097 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37098 echo $ECHO_N "(cached) $ECHO_C" >&6
37100 cat >conftest.$ac_ext <<_ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h. */
37106 $ac_includes_default
37110 static struct stat ac_aggr;
37111 if (ac_aggr.st_fstype)
37117 rm -f conftest.$ac_objext
37118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37119 (eval $ac_compile) 2>conftest.er1
37121 grep -v '^ *+' conftest.er1 >conftest.err
37123 cat conftest.err >&5
37124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125 (exit $ac_status); } &&
37126 { ac_try='test -z "$ac_c_werror_flag"
37127 || test ! -s conftest.err'
37128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129 (eval $ac_try) 2>&5
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); }; } &&
37133 { ac_try='test -s conftest.$ac_objext'
37134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135 (eval $ac_try) 2>&5
37137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); }; }; then
37139 ac_cv_member_struct_stat_st_fstype=yes
37141 echo "$as_me: failed program was:" >&5
37142 sed 's/^/| /' conftest.$ac_ext >&5
37144 cat >conftest.$ac_ext <<_ACEOF
37147 cat confdefs.h >>conftest.$ac_ext
37148 cat >>conftest.$ac_ext <<_ACEOF
37149 /* end confdefs.h. */
37150 $ac_includes_default
37154 static struct stat ac_aggr;
37155 if (sizeof ac_aggr.st_fstype)
37161 rm -f conftest.$ac_objext
37162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37163 (eval $ac_compile) 2>conftest.er1
37165 grep -v '^ *+' conftest.er1 >conftest.err
37167 cat conftest.err >&5
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); } &&
37170 { ac_try='test -z "$ac_c_werror_flag"
37171 || test ! -s conftest.err'
37172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37173 (eval $ac_try) 2>&5
37175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176 (exit $ac_status); }; } &&
37177 { ac_try='test -s conftest.$ac_objext'
37178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37179 (eval $ac_try) 2>&5
37181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182 (exit $ac_status); }; }; then
37183 ac_cv_member_struct_stat_st_fstype=yes
37185 echo "$as_me: failed program was:" >&5
37186 sed 's/^/| /' conftest.$ac_ext >&5
37188 ac_cv_member_struct_stat_st_fstype=no
37190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37195 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
37196 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37198 cat >>confdefs.h <<_ACEOF
37199 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37204 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37205 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
37206 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37207 echo $ECHO_N "(cached) $ECHO_C" >&6
37209 cat >conftest.$ac_ext <<_ACEOF
37212 cat confdefs.h >>conftest.$ac_ext
37213 cat >>conftest.$ac_ext <<_ACEOF
37214 /* end confdefs.h. */
37215 $ac_includes_default
37219 static struct stat ac_aggr;
37220 if (ac_aggr.st_vfstype)
37226 rm -f conftest.$ac_objext
37227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37228 (eval $ac_compile) 2>conftest.er1
37230 grep -v '^ *+' conftest.er1 >conftest.err
37232 cat conftest.err >&5
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); } &&
37235 { ac_try='test -z "$ac_c_werror_flag"
37236 || test ! -s conftest.err'
37237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37238 (eval $ac_try) 2>&5
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); }; } &&
37242 { ac_try='test -s conftest.$ac_objext'
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; }; then
37248 ac_cv_member_struct_stat_st_vfstype=yes
37250 echo "$as_me: failed program was:" >&5
37251 sed 's/^/| /' conftest.$ac_ext >&5
37253 cat >conftest.$ac_ext <<_ACEOF
37256 cat confdefs.h >>conftest.$ac_ext
37257 cat >>conftest.$ac_ext <<_ACEOF
37258 /* end confdefs.h. */
37259 $ac_includes_default
37263 static struct stat ac_aggr;
37264 if (sizeof ac_aggr.st_vfstype)
37270 rm -f conftest.$ac_objext
37271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37272 (eval $ac_compile) 2>conftest.er1
37274 grep -v '^ *+' conftest.er1 >conftest.err
37276 cat conftest.err >&5
37277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278 (exit $ac_status); } &&
37279 { ac_try='test -z "$ac_c_werror_flag"
37280 || test ! -s conftest.err'
37281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37282 (eval $ac_try) 2>&5
37284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285 (exit $ac_status); }; } &&
37286 { ac_try='test -s conftest.$ac_objext'
37287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37288 (eval $ac_try) 2>&5
37290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 (exit $ac_status); }; }; then
37292 ac_cv_member_struct_stat_st_vfstype=yes
37294 echo "$as_me: failed program was:" >&5
37295 sed 's/^/| /' conftest.$ac_ext >&5
37297 ac_cv_member_struct_stat_st_vfstype=no
37299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37303 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37304 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
37305 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37307 cat >>confdefs.h <<_ACEOF
37308 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37314 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37315 cat >conftest.$ac_ext <<_ACEOF
37316 struct stat st; char *ptr=st.st_fstype;
37318 rm -f conftest.$ac_objext
37319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37320 (eval $ac_compile) 2>conftest.er1
37322 grep -v '^ *+' conftest.er1 >conftest.err
37324 cat conftest.err >&5
37325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); } &&
37327 { ac_try='test -z "$ac_c_werror_flag"
37328 || test ! -s conftest.err'
37329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330 (eval $ac_try) 2>&5
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); }; } &&
37334 { ac_try='test -s conftest.$ac_objext'
37335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336 (eval $ac_try) 2>&5
37338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); }; }; then
37341 cat >>confdefs.h <<\_ACEOF
37342 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37346 echo "$as_me: failed program was:" >&5
37347 sed 's/^/| /' conftest.$ac_ext >&5
37350 cat >>confdefs.h <<\_ACEOF
37351 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37358 LIBSRCS="$LIBSRCS getpeereid.c"
37361 if test "$ac_cv_func_snprintf" != yes ||
37362 test "$ac_cv_func_vsnprintf" != yes; then
37363 if test "$ac_cv_func_snprintf" != yes; then
37365 cat >>confdefs.h <<\_ACEOF
37366 #define snprintf ber_pvt_snprintf
37370 if test "$ac_cv_func_vsnprintf" != yes; then
37372 cat >>confdefs.h <<\_ACEOF
37373 #define vsnprintf ber_pvt_vsnprintf
37380 if test "$ol_enable_slapi" != no ; then
37382 for ac_header in ltdl.h
37384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37386 echo "$as_me:$LINENO: checking for $ac_header" >&5
37387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37389 echo $ECHO_N "(cached) $ECHO_C" >&6
37391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37394 # Is the header compilable?
37395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37397 cat >conftest.$ac_ext <<_ACEOF
37400 cat confdefs.h >>conftest.$ac_ext
37401 cat >>conftest.$ac_ext <<_ACEOF
37402 /* end confdefs.h. */
37403 $ac_includes_default
37404 #include <$ac_header>
37406 rm -f conftest.$ac_objext
37407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37408 (eval $ac_compile) 2>conftest.er1
37410 grep -v '^ *+' conftest.er1 >conftest.err
37412 cat conftest.err >&5
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); } &&
37415 { ac_try='test -z "$ac_c_werror_flag"
37416 || test ! -s conftest.err'
37417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37418 (eval $ac_try) 2>&5
37420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37421 (exit $ac_status); }; } &&
37422 { ac_try='test -s conftest.$ac_objext'
37423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37424 (eval $ac_try) 2>&5
37426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37427 (exit $ac_status); }; }; then
37428 ac_header_compiler=yes
37430 echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37433 ac_header_compiler=no
37435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37437 echo "${ECHO_T}$ac_header_compiler" >&6
37439 # Is the header present?
37440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37442 cat >conftest.$ac_ext <<_ACEOF
37445 cat confdefs.h >>conftest.$ac_ext
37446 cat >>conftest.$ac_ext <<_ACEOF
37447 /* end confdefs.h. */
37448 #include <$ac_header>
37450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37453 grep -v '^ *+' conftest.er1 >conftest.err
37455 cat conftest.err >&5
37456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37457 (exit $ac_status); } >/dev/null; then
37458 if test -s conftest.err; then
37459 ac_cpp_err=$ac_c_preproc_warn_flag
37460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37467 if test -z "$ac_cpp_err"; then
37468 ac_header_preproc=yes
37470 echo "$as_me: failed program was:" >&5
37471 sed 's/^/| /' conftest.$ac_ext >&5
37473 ac_header_preproc=no
37475 rm -f conftest.err conftest.$ac_ext
37476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37477 echo "${ECHO_T}$ac_header_preproc" >&6
37479 # So? What about this header?
37480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37486 ac_header_preproc=yes
37489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37503 ## --------------------------------------------- ##
37504 ## Report this to <http://www.openldap.org/its/> ##
37505 ## --------------------------------------------- ##
37508 sed "s/^/$as_me: WARNING: /" >&2
37511 echo "$as_me:$LINENO: checking for $ac_header" >&5
37512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37514 echo $ECHO_N "(cached) $ECHO_C" >&6
37516 eval "$as_ac_Header=\$ac_header_preproc"
37518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37523 cat >>confdefs.h <<_ACEOF
37524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37532 if test $ac_cv_header_ltdl_h != yes ; then
37533 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37534 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37535 { (exit 1); exit 1; }; }
37537 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
37538 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
37539 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
37540 echo $ECHO_N "(cached) $ECHO_C" >&6
37542 ac_check_lib_save_LIBS=$LIBS
37543 LIBS="-lltdl $LIBS"
37544 cat >conftest.$ac_ext <<_ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h. */
37551 /* Override any gcc2 internal prototype to avoid an error. */
37555 /* We use char because int might match the return type of a gcc2
37556 builtin and then its argument prototype would still apply. */
37566 rm -f conftest.$ac_objext conftest$ac_exeext
37567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37568 (eval $ac_link) 2>conftest.er1
37570 grep -v '^ *+' conftest.er1 >conftest.err
37572 cat conftest.err >&5
37573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574 (exit $ac_status); } &&
37575 { ac_try='test -z "$ac_c_werror_flag"
37576 || test ! -s conftest.err'
37577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37578 (eval $ac_try) 2>&5
37580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581 (exit $ac_status); }; } &&
37582 { ac_try='test -s conftest$ac_exeext'
37583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37584 (eval $ac_try) 2>&5
37586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); }; }; then
37588 ac_cv_lib_ltdl_lt_dlinit=yes
37590 echo "$as_me: failed program was:" >&5
37591 sed 's/^/| /' conftest.$ac_ext >&5
37593 ac_cv_lib_ltdl_lt_dlinit=no
37595 rm -f conftest.err conftest.$ac_objext \
37596 conftest$ac_exeext conftest.$ac_ext
37597 LIBS=$ac_check_lib_save_LIBS
37599 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
37600 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
37601 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
37604 LIBSLAPI=libslapi.a
37605 LIBSLAPITOOLS=../libslapi.a
37607 cat >>confdefs.h <<\_ACEOF
37608 #define HAVE_LIBLTDL 1
37613 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
37614 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
37615 { (exit 1); exit 1; }; }
37620 cat >>confdefs.h <<\_ACEOF
37621 #define LDAP_SLAPI 1
37626 if test "$ol_enable_debug" != no ; then
37627 if test "$ol_enable_debug" = traditional; then
37629 cat >>confdefs.h <<\_ACEOF
37630 #define OLD_DEBUG 1
37635 cat >>confdefs.h <<\_ACEOF
37636 #define LDAP_DEBUG 1
37640 if test "$ol_enable_syslog" = yes ; then
37642 cat >>confdefs.h <<\_ACEOF
37643 #define LDAP_SYSLOG 1
37647 if test "$ol_enable_proctitle" != no ; then
37649 cat >>confdefs.h <<\_ACEOF
37650 #define LDAP_PROCTITLE 1
37654 if test "$ol_enable_referrals" != no ; then
37656 cat >>confdefs.h <<\_ACEOF
37657 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
37661 if test "$ol_enable_local" != no; then
37663 cat >>confdefs.h <<\_ACEOF
37664 #define LDAP_PF_LOCAL 1
37668 if test "$ol_link_ipv6" != no; then
37670 cat >>confdefs.h <<\_ACEOF
37671 #define LDAP_PF_INET6 1
37675 if test "$ol_enable_cleartext" != no ; then
37677 cat >>confdefs.h <<\_ACEOF
37678 #define SLAPD_CLEARTEXT 1
37682 if test "$ol_enable_crypt" != no ; then
37684 cat >>confdefs.h <<\_ACEOF
37685 #define SLAPD_CRYPT 1
37689 if test "$ol_link_spasswd" != no ; then
37691 cat >>confdefs.h <<\_ACEOF
37692 #define SLAPD_SPASSWD 1
37696 if test "$ol_enable_rlookups" != no ; then
37698 cat >>confdefs.h <<\_ACEOF
37699 #define SLAPD_RLOOKUPS 1
37703 if test "$ol_enable_aci" != no ; then
37704 if test $ol_enable_dynacl = no ; then
37705 ol_enable_dynacl=yes
37706 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
37707 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
37709 if test "$ol_enable_aci" = mod ; then
37710 MFLAG=SLAPD_MOD_DYNAMIC
37711 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
37712 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
37713 { (exit 1); exit 1; }; }
37715 MFLAG=SLAPD_MOD_STATIC
37717 WITH_ACI_ENABLED=$ol_enable_aci
37719 cat >>confdefs.h <<_ACEOF
37720 #define SLAPD_ACI_ENABLED $MFLAG
37724 WITH_ACI_ENABLED=no
37726 if test "$ol_enable_dynacl" != no ; then
37728 cat >>confdefs.h <<\_ACEOF
37729 #define SLAP_DYNACL 1
37734 if test "$ol_link_modules" != no ; then
37736 cat >>confdefs.h <<\_ACEOF
37737 #define SLAPD_MODULES 1
37741 SLAPD_MODULES_LDFLAGS="-dlopen self"
37745 cat >>confdefs.h <<\_ACEOF
37746 #define SLAPD_MOD_STATIC 1
37750 cat >>confdefs.h <<\_ACEOF
37751 #define SLAPD_MOD_DYNAMIC 2
37755 if test "$ol_enable_monitor" != no ; then
37757 BUILD_MONITOR=$ol_enable_monitor
37758 if test "$ol_enable_monitor" = mod ; then
37759 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
37760 MFLAG=SLAPD_MOD_DYNAMIC
37762 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
37763 MFLAG=SLAPD_MOD_STATIC
37766 cat >>confdefs.h <<_ACEOF
37767 #define SLAPD_MONITOR $MFLAG
37772 if test "$ol_enable_bdb" != no ; then
37774 BUILD_BDB=$ol_enable_bdb
37775 if test "$ol_enable_bdb" = mod ; then
37776 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
37777 MFLAG=SLAPD_MOD_DYNAMIC
37779 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
37780 MFLAG=SLAPD_MOD_STATIC
37783 cat >>confdefs.h <<_ACEOF
37784 #define SLAPD_BDB $MFLAG
37789 if test "$ol_enable_dnssrv" != no ; then
37791 BUILD_DNSSRV=$ol_enable_dnssrv
37792 if test "$ol_enable_dnssrv" = mod ; then
37793 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
37794 MFLAG=SLAPD_MOD_DYNAMIC
37796 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
37797 MFLAG=SLAPD_MOD_STATIC
37800 cat >>confdefs.h <<_ACEOF
37801 #define SLAPD_DNSSRV $MFLAG
37806 if test "$ol_enable_hdb" != no ; then
37808 BUILD_HDB=$ol_enable_hdb
37809 if test "$ol_enable_hdb" = mod ; then
37810 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
37811 MFLAG=SLAPD_MOD_DYNAMIC
37813 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
37814 MFLAG=SLAPD_MOD_STATIC
37817 cat >>confdefs.h <<_ACEOF
37818 #define SLAPD_HDB $MFLAG
37823 if test "$ol_enable_ldap" != no ; then
37825 BUILD_LDAP=$ol_enable_ldap
37826 if test "$ol_enable_ldap" = mod ; then
37827 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
37828 MFLAG=SLAPD_MOD_DYNAMIC
37830 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
37831 MFLAG=SLAPD_MOD_STATIC
37834 cat >>confdefs.h <<_ACEOF
37835 #define SLAPD_LDAP $MFLAG
37840 if test "$ol_enable_meta" != no ; then
37842 BUILD_META=$ol_enable_meta
37844 if test "$ol_enable_meta" = mod ; then
37845 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
37846 MFLAG=SLAPD_MOD_DYNAMIC
37848 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
37849 MFLAG=SLAPD_MOD_STATIC
37852 cat >>confdefs.h <<_ACEOF
37853 #define SLAPD_META $MFLAG
37858 if test "$ol_enable_ndb" != no ; then
37860 BUILD_NDB=$ol_enable_ndb
37861 if test "$ol_enable_ndb" = mod ; then
37862 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
37863 MFLAG=SLAPD_MOD_DYNAMIC
37865 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
37866 MFLAG=SLAPD_MOD_STATIC
37869 cat >>confdefs.h <<_ACEOF
37870 #define SLAPD_NDB $MFLAG
37875 if test "$ol_enable_null" != no ; then
37877 BUILD_NULL=$ol_enable_null
37878 if test "$ol_enable_null" = mod ; then
37879 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
37880 MFLAG=SLAPD_MOD_DYNAMIC
37882 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
37883 MFLAG=SLAPD_MOD_STATIC
37886 cat >>confdefs.h <<_ACEOF
37887 #define SLAPD_NULL $MFLAG
37892 if test "$ol_enable_passwd" != no ; then
37894 BUILD_PASSWD=$ol_enable_passwd
37895 if test "$ol_enable_passwd" = mod ; then
37896 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
37897 MFLAG=SLAPD_MOD_DYNAMIC
37899 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
37900 MFLAG=SLAPD_MOD_STATIC
37903 cat >>confdefs.h <<_ACEOF
37904 #define SLAPD_PASSWD $MFLAG
37909 if test "$ol_link_perl" != no ; then
37911 BUILD_PERL=$ol_enable_perl
37912 if test "$ol_enable_perl" = mod ; then
37913 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
37914 MFLAG=SLAPD_MOD_DYNAMIC
37916 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
37917 MFLAG=SLAPD_MOD_STATIC
37920 cat >>confdefs.h <<_ACEOF
37921 #define SLAPD_PERL $MFLAG
37926 if test "$ol_enable_relay" != no ; then
37928 BUILD_RELAY=$ol_enable_relay
37929 if test "$ol_enable_relay" = mod ; then
37930 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
37931 MFLAG=SLAPD_MOD_DYNAMIC
37933 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
37934 MFLAG=SLAPD_MOD_STATIC
37937 cat >>confdefs.h <<_ACEOF
37938 #define SLAPD_RELAY $MFLAG
37943 if test "$ol_enable_shell" != no ; then
37944 if test "$ol_link_threads" != no ; then
37945 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
37946 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
37949 BUILD_SHELL=$ol_enable_shell
37950 if test "$ol_enable_shell" = mod ; then
37951 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
37952 MFLAG=SLAPD_MOD_DYNAMIC
37954 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
37955 MFLAG=SLAPD_MOD_STATIC
37958 cat >>confdefs.h <<_ACEOF
37959 #define SLAPD_SHELL $MFLAG
37964 if test "$ol_enable_sock" != no ; then
37966 BUILD_SOCK=$ol_enable_sock
37967 if test "$ol_enable_sock" = mod ; then
37968 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
37969 MFLAG=SLAPD_MOD_DYNAMIC
37971 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
37972 MFLAG=SLAPD_MOD_STATIC
37975 cat >>confdefs.h <<_ACEOF
37976 #define SLAPD_SOCK $MFLAG
37981 if test "$ol_link_sql" != no ; then
37983 BUILD_SQL=$ol_enable_sql
37984 if test "$ol_enable_sql" = mod; then
37985 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
37986 MFLAG=SLAPD_MOD_DYNAMIC
37988 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
37989 MFLAG=SLAPD_MOD_STATIC
37992 cat >>confdefs.h <<_ACEOF
37993 #define SLAPD_SQL $MFLAG
37998 if test "$ol_enable_accesslog" != no ; then
37999 BUILD_ACCESSLOG=$ol_enable_accesslog
38000 if test "$ol_enable_accesslog" = mod ; then
38001 MFLAG=SLAPD_MOD_DYNAMIC
38002 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38004 MFLAG=SLAPD_MOD_STATIC
38005 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38008 cat >>confdefs.h <<_ACEOF
38009 #define SLAPD_OVER_ACCESSLOG $MFLAG
38014 if test "$ol_enable_auditlog" != no ; then
38015 BUILD_AUDITLOG=$ol_enable_auditlog
38016 if test "$ol_enable_auditlog" = mod ; then
38017 MFLAG=SLAPD_MOD_DYNAMIC
38018 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38020 MFLAG=SLAPD_MOD_STATIC
38021 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38024 cat >>confdefs.h <<_ACEOF
38025 #define SLAPD_OVER_AUDITLOG $MFLAG
38030 if test "$ol_enable_collect" != no ; then
38031 BUILD_COLLECT=$ol_enable_collect
38032 if test "$ol_enable_collect" = mod ; then
38033 MFLAG=SLAPD_MOD_DYNAMIC
38034 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38036 MFLAG=SLAPD_MOD_STATIC
38037 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38040 cat >>confdefs.h <<_ACEOF
38041 #define SLAPD_OVER_COLLECT $MFLAG
38046 if test "$ol_enable_constraint" != no ; then
38047 BUILD_CONSTRAINT=$ol_enable_constraint
38048 if test "$ol_enable_constraint" = mod ; then
38049 MFLAG=SLAPD_MOD_DYNAMIC
38050 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38052 MFLAG=SLAPD_MOD_STATIC
38053 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38056 cat >>confdefs.h <<_ACEOF
38057 #define SLAPD_OVER_CONSTRAINT $MFLAG
38062 if test "$ol_enable_dds" != no ; then
38063 BUILD_DDS=$ol_enable_dds
38064 if test "$ol_enable_dds" = mod ; then
38065 MFLAG=SLAPD_MOD_DYNAMIC
38066 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38068 MFLAG=SLAPD_MOD_STATIC
38069 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38072 cat >>confdefs.h <<_ACEOF
38073 #define SLAPD_OVER_DDS $MFLAG
38078 if test "$ol_enable_dyngroup" != no ; then
38079 BUILD_DYNGROUP=$ol_enable_dyngroup
38080 if test "$ol_enable_dyngroup" = mod ; then
38081 MFLAG=SLAPD_MOD_DYNAMIC
38082 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38084 MFLAG=SLAPD_MOD_STATIC
38085 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38088 cat >>confdefs.h <<_ACEOF
38089 #define SLAPD_OVER_DYNGROUP $MFLAG
38094 if test "$ol_enable_dynlist" != no ; then
38095 BUILD_DYNLIST=$ol_enable_dynlist
38096 if test "$ol_enable_dynlist" = mod ; then
38097 MFLAG=SLAPD_MOD_DYNAMIC
38098 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38100 MFLAG=SLAPD_MOD_STATIC
38101 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38104 cat >>confdefs.h <<_ACEOF
38105 #define SLAPD_OVER_DYNLIST $MFLAG
38110 if test "$ol_enable_memberof" != no ; then
38111 BUILD_MEMBEROF=$ol_enable_memberof
38112 if test "$ol_enable_memberof" = mod ; then
38113 MFLAG=SLAPD_MOD_DYNAMIC
38114 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38116 MFLAG=SLAPD_MOD_STATIC
38117 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38120 cat >>confdefs.h <<_ACEOF
38121 #define SLAPD_OVER_MEMBEROF $MFLAG
38126 if test "$ol_enable_ppolicy" != no ; then
38127 BUILD_PPOLICY=$ol_enable_ppolicy
38128 if test "$ol_enable_ppolicy" = mod ; then
38129 MFLAG=SLAPD_MOD_DYNAMIC
38130 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38132 MFLAG=SLAPD_MOD_STATIC
38133 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38136 cat >>confdefs.h <<_ACEOF
38137 #define SLAPD_OVER_PPOLICY $MFLAG
38142 if test "$ol_enable_proxycache" != no ; then
38143 BUILD_PROXYCACHE=$ol_enable_proxycache
38144 if test "$ol_enable_proxycache" = mod ; then
38145 MFLAG=SLAPD_MOD_DYNAMIC
38146 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38148 MFLAG=SLAPD_MOD_STATIC
38149 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38152 cat >>confdefs.h <<_ACEOF
38153 #define SLAPD_OVER_PROXYCACHE $MFLAG
38158 if test "$ol_enable_refint" != no ; then
38159 BUILD_REFINT=$ol_enable_refint
38160 if test "$ol_enable_refint" = mod ; then
38161 MFLAG=SLAPD_MOD_DYNAMIC
38162 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38164 MFLAG=SLAPD_MOD_STATIC
38165 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38168 cat >>confdefs.h <<_ACEOF
38169 #define SLAPD_OVER_REFINT $MFLAG
38174 if test "$ol_enable_retcode" != no ; then
38175 BUILD_RETCODE=$ol_enable_retcode
38176 if test "$ol_enable_retcode" = mod ; then
38177 MFLAG=SLAPD_MOD_DYNAMIC
38178 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38180 MFLAG=SLAPD_MOD_STATIC
38181 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38184 cat >>confdefs.h <<_ACEOF
38185 #define SLAPD_OVER_RETCODE $MFLAG
38190 if test "$ol_enable_rwm" != no ; then
38192 BUILD_RWM=$ol_enable_rwm
38193 if test "$ol_enable_rwm" = mod ; then
38194 MFLAG=SLAPD_MOD_DYNAMIC
38195 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38197 MFLAG=SLAPD_MOD_STATIC
38198 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38201 cat >>confdefs.h <<_ACEOF
38202 #define SLAPD_OVER_RWM $MFLAG
38207 if test "$ol_enable_seqmod" != no ; then
38208 BUILD_SEQMOD=$ol_enable_seqmod
38209 if test "$ol_enable_seqmod" = mod ; then
38210 MFLAG=SLAPD_MOD_DYNAMIC
38211 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38213 MFLAG=SLAPD_MOD_STATIC
38214 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38217 cat >>confdefs.h <<_ACEOF
38218 #define SLAPD_OVER_SEQMOD $MFLAG
38223 if test "$ol_enable_syncprov" != no ; then
38224 BUILD_SYNCPROV=$ol_enable_syncprov
38225 if test "$ol_enable_syncprov" = mod ; then
38226 MFLAG=SLAPD_MOD_DYNAMIC
38227 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38229 MFLAG=SLAPD_MOD_STATIC
38230 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38233 cat >>confdefs.h <<_ACEOF
38234 #define SLAPD_OVER_SYNCPROV $MFLAG
38239 if test "$ol_enable_translucent" != no ; then
38240 BUILD_TRANSLUCENT=$ol_enable_translucent
38241 if test "$ol_enable_translucent" = mod ; then
38242 MFLAG=SLAPD_MOD_DYNAMIC
38243 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38245 MFLAG=SLAPD_MOD_STATIC
38246 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38249 cat >>confdefs.h <<_ACEOF
38250 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38255 if test "$ol_enable_unique" != no ; then
38256 BUILD_UNIQUE=$ol_enable_unique
38257 if test "$ol_enable_unique" = mod ; then
38258 MFLAG=SLAPD_MOD_DYNAMIC
38259 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38261 MFLAG=SLAPD_MOD_STATIC
38262 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38265 cat >>confdefs.h <<_ACEOF
38266 #define SLAPD_OVER_UNIQUE $MFLAG
38271 if test "$ol_enable_valsort" != no ; then
38272 BUILD_VALSORT=$ol_enable_valsort
38273 if test "$ol_enable_valsort" = mod ; then
38274 MFLAG=SLAPD_MOD_DYNAMIC
38275 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38277 MFLAG=SLAPD_MOD_STATIC
38278 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38281 cat >>confdefs.h <<_ACEOF
38282 #define SLAPD_OVER_VALSORT $MFLAG
38287 if test "$ol_enable_rewrite" != no ; then
38289 cat >>confdefs.h <<\_ACEOF
38290 #define ENABLE_REWRITE 1
38296 if test "$ol_enable_slapi" != no ; then
38298 cat >>confdefs.h <<\_ACEOF
38299 #define ENABLE_SLAPI 1
38303 SLAPD_SLAPI_DEPEND=libslapi.a
38308 if test "$ac_cv_mingw32" = yes ; then
38310 SLAPD_MODULES_LDFLAGS=
38403 # Check whether --with-xxinstall or --without-xxinstall was given.
38404 if test "${with_xxinstall+set}" = set; then
38405 withval="$with_xxinstall"
38410 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"
38413 ac_config_commands="$ac_config_commands default"
38417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38418 # Let make expand exec_prefix.
38419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
38422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38423 # trailing colons and then remove the whole line if VPATH becomes empty
38424 # (actually we leave an empty line to preserve line numbers).
38425 if test "x$srcdir" = x.; then
38426 ac_vpsub='/^[ ]*VPATH[ ]*=/{
38427 s/:*\$(srcdir):*/:/;
38428 s/:*\${srcdir}:*/:/;
38430 s/^\([^=]*=[ ]*\):*/\1/;
38436 DEFS=-DHAVE_CONFIG_H
38440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38441 # 1. Remove the extension, and $U if already installed.
38442 ac_i=`echo "$ac_i" |
38443 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
38445 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38446 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38448 LIBOBJS=$ac_libobjs
38450 LTLIBOBJS=$ac_ltlibobjs
38453 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38454 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38455 Usually this means the macro was only invoked conditionally." >&5
38456 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38457 Usually this means the macro was only invoked conditionally." >&2;}
38458 { (exit 1); exit 1; }; }
38460 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38461 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38462 Usually this means the macro was only invoked conditionally." >&5
38463 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38464 Usually this means the macro was only invoked conditionally." >&2;}
38465 { (exit 1); exit 1; }; }
38467 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38468 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38469 Usually this means the macro was only invoked conditionally." >&5
38470 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38471 Usually this means the macro was only invoked conditionally." >&2;}
38472 { (exit 1); exit 1; }; }
38475 : ${CONFIG_STATUS=./config.status}
38476 ac_clean_files_save=$ac_clean_files
38477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38478 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38479 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38480 cat >$CONFIG_STATUS <<_ACEOF
38482 # Generated by $as_me.
38483 # Run this file to recreate the current configuration.
38484 # Compiler output produced by configure, useful for debugging
38485 # configure, is in config.log if it exists.
38488 ac_cs_recheck=false
38490 SHELL=\${CONFIG_SHELL-$SHELL}
38493 cat >>$CONFIG_STATUS <<\_ACEOF
38494 ## --------------------- ##
38495 ## M4sh Initialization. ##
38496 ## --------------------- ##
38498 # Be Bourne compatible
38499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38503 # is contrary to our usage. Disable this feature.
38504 alias -g '${1+"$@"}'='"$@"'
38505 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38508 DUALCASE=1; export DUALCASE # for MKS sh
38510 # Support unset when possible.
38511 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38518 # Work around bugs in pre-3.0 UWIN ksh.
38519 $as_unset ENV MAIL MAILPATH
38526 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38527 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38528 LC_TELEPHONE LC_TIME
38530 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38531 eval $as_var=C; export $as_var
38537 # Required to use basename.
38538 if expr a : '\(a\)' >/dev/null 2>&1; then
38544 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38545 as_basename=basename
38551 # Name of the executable.
38552 as_me=`$as_basename "$0" ||
38553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38554 X"$0" : 'X\(//\)$' \| \
38555 X"$0" : 'X\(/\)$' \| \
38556 . : '\(.\)' 2>/dev/null ||
38558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38559 /^X\/\(\/\/\)$/{ s//\1/; q; }
38560 /^X\/\(\/\).*/{ s//\1/; q; }
38564 # PATH needs CR, and LINENO needs CR and PATH.
38565 # Avoid depending upon Character Ranges.
38566 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38567 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38568 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38569 as_cr_digits='0123456789'
38570 as_cr_alnum=$as_cr_Letters$as_cr_digits
38572 # The user is always right.
38573 if test "${PATH_SEPARATOR+set}" != set; then
38574 echo "#! /bin/sh" >conf$$.sh
38575 echo "exit 0" >>conf$$.sh
38577 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38586 as_lineno_1=$LINENO
38587 as_lineno_2=$LINENO
38588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38589 test "x$as_lineno_1" != "x$as_lineno_2" &&
38590 test "x$as_lineno_3" = "x$as_lineno_2" || {
38591 # Find who we are. Look in the path if we contain no path at all
38594 *[\\/]* ) as_myself=$0 ;;
38595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38596 for as_dir in $PATH
38599 test -z "$as_dir" && as_dir=.
38600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38605 # We did not find ourselves, most probably we were run as `sh COMMAND'
38606 # in which case we are not to be found in the path.
38607 if test "x$as_myself" = x; then
38610 if test ! -f "$as_myself"; then
38611 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
38612 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
38613 { (exit 1); exit 1; }; }
38615 case $CONFIG_SHELL in
38617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38618 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
38621 test -z "$as_dir" && as_dir=.
38622 for as_base in sh bash ksh sh5; do
38625 if ("$as_dir/$as_base" -c '
38626 as_lineno_1=$LINENO
38627 as_lineno_2=$LINENO
38628 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38629 test "x$as_lineno_1" != "x$as_lineno_2" &&
38630 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
38631 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
38632 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
38633 CONFIG_SHELL=$as_dir/$as_base
38634 export CONFIG_SHELL
38635 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
38643 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38644 # uniformly replaced by the line number. The first 'sed' inserts a
38645 # line-number line before each line; the second 'sed' does the real
38646 # work. The second script uses 'N' to pair each line-number line
38647 # with the numbered line, and appends trailing '-' during
38648 # substitution so that $LINENO is not a special case at line end.
38649 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38650 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
38651 sed '=' <$as_myself |
38656 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
38659 s,^['$as_cr_digits']*\n,,
38660 ' >$as_me.lineno &&
38661 chmod +x $as_me.lineno ||
38662 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
38663 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
38664 { (exit 1); exit 1; }; }
38666 # Don't try to exec as it changes $[0], causing all sort of problems
38667 # (the dirname of $[0] is not the place where we might find the
38668 # original and so on. Autoconf is especially sensible to this).
38670 # Exit status is that of the last command.
38675 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
38676 *c*,-n*) ECHO_N= ECHO_C='
38678 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
38679 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
38682 if expr a : '\(a\)' >/dev/null 2>&1; then
38688 rm -f conf$$ conf$$.exe conf$$.file
38690 if ln -s conf$$.file conf$$ 2>/dev/null; then
38691 # We could just check for DJGPP; but this test a) works b) is more generic
38692 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
38693 if test -f conf$$.exe; then
38694 # Don't use ln at all; we don't have any links
38699 elif ln conf$$.file conf$$ 2>/dev/null; then
38704 rm -f conf$$ conf$$.exe conf$$.file
38706 if mkdir -p . 2>/dev/null; then
38709 test -d ./-p && rmdir ./-p
38713 as_executable_p="test -f"
38715 # Sed expression to map a string onto a valid CPP name.
38716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38718 # Sed expression to map a string onto a valid variable name.
38719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38723 # We need space, tab and new line, in precisely that order.
38733 # Open the log real soon, to keep \$[0] and so on meaningful, and to
38734 # report actual input values of CONFIG_FILES etc. instead of their
38735 # values after options handling. Logging --version etc. is OK.
38739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38740 ## Running $as_me. ##
38745 This file was extended by $as_me, which was
38746 generated by GNU Autoconf 2.59. Invocation command line was
38748 CONFIG_FILES = $CONFIG_FILES
38749 CONFIG_HEADERS = $CONFIG_HEADERS
38750 CONFIG_LINKS = $CONFIG_LINKS
38751 CONFIG_COMMANDS = $CONFIG_COMMANDS
38755 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
38759 # Files that config.status was made for.
38760 if test -n "$ac_config_files"; then
38761 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
38764 if test -n "$ac_config_headers"; then
38765 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
38768 if test -n "$ac_config_links"; then
38769 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
38772 if test -n "$ac_config_commands"; then
38773 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
38776 cat >>$CONFIG_STATUS <<\_ACEOF
38779 \`$as_me' instantiates files from templates according to the
38780 current configuration.
38782 Usage: $0 [OPTIONS] [FILE]...
38784 -h, --help print this help, then exit
38785 -V, --version print version number, then exit
38786 -q, --quiet do not print progress messages
38787 -d, --debug don't remove temporary files
38788 --recheck update $as_me by reconfiguring in the same conditions
38789 --file=FILE[:TEMPLATE]
38790 instantiate the configuration file FILE
38791 --header=FILE[:TEMPLATE]
38792 instantiate the configuration header FILE
38794 Configuration files:
38797 Configuration headers:
38800 Configuration commands:
38803 Report bugs to <bug-autoconf@gnu.org>."
38806 cat >>$CONFIG_STATUS <<_ACEOF
38809 configured by $0, generated by GNU Autoconf 2.59,
38810 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
38812 Copyright (C) 2003 Free Software Foundation, Inc.
38813 This config.status script is free software; the Free Software Foundation
38814 gives unlimited permission to copy, distribute and modify it."
38819 cat >>$CONFIG_STATUS <<\_ACEOF
38820 # If no file are specified by the user, then we need to provide default
38821 # value. By we need to know if files were specified by the user.
38827 ac_option=`expr "x$1" : 'x\([^=]*\)='`
38828 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
38836 *) # This is not an option, so the user has probably given explicit
38839 ac_need_defaults=false;;
38843 # Handling of the options.
38845 cat >>$CONFIG_STATUS <<\_ACEOF
38846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38848 --version | --vers* | -V )
38849 echo "$ac_cs_version"; exit 0 ;;
38851 # Conflict between --help and --header
38852 { { echo "$as_me:$LINENO: error: ambiguous option: $1
38853 Try \`$0 --help' for more information." >&5
38854 echo "$as_me: error: ambiguous option: $1
38855 Try \`$0 --help' for more information." >&2;}
38856 { (exit 1); exit 1; }; };;
38857 --help | --hel | -h )
38858 echo "$ac_cs_usage"; exit 0 ;;
38859 --debug | --d* | -d )
38861 --file | --fil | --fi | --f )
38863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
38864 ac_need_defaults=false;;
38865 --header | --heade | --head | --hea )
38867 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
38868 ac_need_defaults=false;;
38869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
38873 # This is an error.
38874 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
38875 Try \`$0 --help' for more information." >&5
38876 echo "$as_me: error: unrecognized option: $1
38877 Try \`$0 --help' for more information." >&2;}
38878 { (exit 1); exit 1; }; } ;;
38880 *) ac_config_targets="$ac_config_targets $1" ;;
38886 ac_configure_extra_args=
38888 if $ac_cs_silent; then
38890 ac_configure_extra_args="$ac_configure_extra_args --silent"
38894 cat >>$CONFIG_STATUS <<_ACEOF
38895 if \$ac_cs_recheck; then
38896 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
38897 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38902 cat >>$CONFIG_STATUS <<_ACEOF
38904 # INIT-COMMANDS section.
38907 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38909 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
38910 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
38917 cat >>$CONFIG_STATUS <<\_ACEOF
38918 for ac_config_target in $ac_config_targets
38920 case "$ac_config_target" in
38921 # Handling of arguments.
38922 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
38923 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
38924 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
38925 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
38926 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
38927 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
38928 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
38929 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
38930 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
38931 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
38932 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
38933 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38934 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
38935 "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" ;;
38936 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38937 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38938 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
38939 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
38940 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
38941 "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" ;;
38942 "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" ;;
38943 "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" ;;
38944 "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" ;;
38945 "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" ;;
38946 "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" ;;
38947 "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" ;;
38948 "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" ;;
38949 "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" ;;
38950 "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" ;;
38951 "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" ;;
38952 "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" ;;
38953 "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" ;;
38954 "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" ;;
38955 "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" ;;
38956 "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" ;;
38957 "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" ;;
38958 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
38959 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
38960 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
38961 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
38962 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38963 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
38964 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
38965 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
38966 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
38967 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
38968 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
38969 { (exit 1); exit 1; }; };;
38973 # If the user did not use the arguments to specify the items to instantiate,
38974 # then the envvar interface is used. Set only those that are not.
38975 # We use the long form for the default assignment because of an extremely
38976 # bizarre bug on SunOS 4.1.3.
38977 if $ac_need_defaults; then
38978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38980 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38983 # Have a temporary directory for convenience. Make it in the build tree
38984 # simply because there is no reason to put it here, and in addition,
38985 # creating and moving files from /tmp can sometimes cause problems.
38986 # Create a temporary directory, and hook for its removal unless debugging.
38989 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
38990 trap '{ (exit 1); exit 1; }' 1 2 13 15
38993 # Create a (secure) tmp directory for tmp files.
38996 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
38997 test -n "$tmp" && test -d "$tmp"
39000 tmp=./confstat$$-$RANDOM
39001 (umask 077 && mkdir $tmp)
39004 echo "$me: cannot create a temporary directory in ." >&2
39005 { (exit 1); exit 1; }
39010 cat >>$CONFIG_STATUS <<_ACEOF
39013 # CONFIG_FILES section.
39016 # No need to generate the scripts if there are no CONFIG_FILES.
39017 # This happens for instance when ./config.status config.h
39018 if test -n "\$CONFIG_FILES"; then
39019 # Protect against being on the right side of a sed subst in config.status.
39020 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39021 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39022 s,@SHELL@,$SHELL,;t t
39023 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39024 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39025 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39026 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39027 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39028 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39029 s,@exec_prefix@,$exec_prefix,;t t
39030 s,@prefix@,$prefix,;t t
39031 s,@program_transform_name@,$program_transform_name,;t t
39032 s,@bindir@,$bindir,;t t
39033 s,@sbindir@,$sbindir,;t t
39034 s,@libexecdir@,$libexecdir,;t t
39035 s,@datadir@,$datadir,;t t
39036 s,@sysconfdir@,$sysconfdir,;t t
39037 s,@sharedstatedir@,$sharedstatedir,;t t
39038 s,@localstatedir@,$localstatedir,;t t
39039 s,@libdir@,$libdir,;t t
39040 s,@includedir@,$includedir,;t t
39041 s,@oldincludedir@,$oldincludedir,;t t
39042 s,@infodir@,$infodir,;t t
39043 s,@mandir@,$mandir,;t t
39044 s,@build_alias@,$build_alias,;t t
39045 s,@host_alias@,$host_alias,;t t
39046 s,@target_alias@,$target_alias,;t t
39047 s,@DEFS@,$DEFS,;t t
39048 s,@ECHO_C@,$ECHO_C,;t t
39049 s,@ECHO_N@,$ECHO_N,;t t
39050 s,@ECHO_T@,$ECHO_T,;t t
39051 s,@LIBS@,$LIBS,;t t
39052 s,@build@,$build,;t t
39053 s,@build_cpu@,$build_cpu,;t t
39054 s,@build_vendor@,$build_vendor,;t t
39055 s,@build_os@,$build_os,;t t
39056 s,@host@,$host,;t t
39057 s,@host_cpu@,$host_cpu,;t t
39058 s,@host_vendor@,$host_vendor,;t t
39059 s,@host_os@,$host_os,;t t
39060 s,@target@,$target,;t t
39061 s,@target_cpu@,$target_cpu,;t t
39062 s,@target_vendor@,$target_vendor,;t t
39063 s,@target_os@,$target_os,;t t
39064 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39065 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39066 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39067 s,@CYGPATH_W@,$CYGPATH_W,;t t
39068 s,@PACKAGE@,$PACKAGE,;t t
39069 s,@VERSION@,$VERSION,;t t
39070 s,@ACLOCAL@,$ACLOCAL,;t t
39071 s,@AUTOCONF@,$AUTOCONF,;t t
39072 s,@AUTOMAKE@,$AUTOMAKE,;t t
39073 s,@AUTOHEADER@,$AUTOHEADER,;t t
39074 s,@MAKEINFO@,$MAKEINFO,;t t
39075 s,@install_sh@,$install_sh,;t t
39076 s,@STRIP@,$STRIP,;t t
39077 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39078 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39079 s,@mkdir_p@,$mkdir_p,;t t
39081 s,@SET_MAKE@,$SET_MAKE,;t t
39082 s,@am__leading_dot@,$am__leading_dot,;t t
39083 s,@AMTAR@,$AMTAR,;t t
39084 s,@am__tar@,$am__tar,;t t
39085 s,@am__untar@,$am__untar,;t t
39086 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
39087 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
39088 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
39089 s,@top_builddir@,$top_builddir,;t t
39090 s,@ldap_subdir@,$ldap_subdir,;t t
39093 s,@CFLAGS@,$CFLAGS,;t t
39094 s,@LDFLAGS@,$LDFLAGS,;t t
39095 s,@CPPFLAGS@,$CPPFLAGS,;t t
39096 s,@ac_ct_CC@,$ac_ct_CC,;t t
39097 s,@EXEEXT@,$EXEEXT,;t t
39098 s,@OBJEXT@,$OBJEXT,;t t
39099 s,@DEPDIR@,$DEPDIR,;t t
39100 s,@am__include@,$am__include,;t t
39101 s,@am__quote@,$am__quote,;t t
39102 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39103 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39104 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39105 s,@CCDEPMODE@,$CCDEPMODE,;t t
39106 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39107 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39108 s,@EGREP@,$EGREP,;t t
39109 s,@LN_S@,$LN_S,;t t
39110 s,@ECHO@,$ECHO,;t t
39111 s,@ac_ct_AR@,$ac_ct_AR,;t t
39112 s,@RANLIB@,$RANLIB,;t t
39113 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39114 s,@DLLTOOL@,$DLLTOOL,;t t
39115 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
39117 s,@ac_ct_AS@,$ac_ct_AS,;t t
39118 s,@OBJDUMP@,$OBJDUMP,;t t
39119 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
39121 s,@LIBTOOL@,$LIBTOOL,;t t
39122 s,@PERLBIN@,$PERLBIN,;t t
39123 s,@OL_MKDEP@,$OL_MKDEP,;t t
39124 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
39125 s,@LTSTATIC@,$LTSTATIC,;t t
39126 s,@MYSQL@,$MYSQL,;t t
39127 s,@LIBOBJS@,$LIBOBJS,;t t
39128 s,@LIBSRCS@,$LIBSRCS,;t t
39129 s,@PLAT@,$PLAT,;t t
39130 s,@WITH_SASL@,$WITH_SASL,;t t
39131 s,@WITH_TLS@,$WITH_TLS,;t t
39132 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
39133 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
39134 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
39135 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
39136 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
39137 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
39138 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
39139 s,@BUILD_BDB@,$BUILD_BDB,;t t
39140 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
39141 s,@BUILD_HDB@,$BUILD_HDB,;t t
39142 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
39143 s,@BUILD_META@,$BUILD_META,;t t
39144 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
39145 s,@BUILD_NDB@,$BUILD_NDB,;t t
39146 s,@BUILD_NULL@,$BUILD_NULL,;t t
39147 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
39148 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
39149 s,@BUILD_PERL@,$BUILD_PERL,;t t
39150 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
39151 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
39152 s,@BUILD_SQL@,$BUILD_SQL,;t t
39153 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
39154 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
39155 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
39156 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
39157 s,@BUILD_DDS@,$BUILD_DDS,;t t
39158 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
39159 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
39160 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
39161 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
39162 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
39163 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
39164 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
39165 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
39166 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
39167 s,@BUILD_RWM@,$BUILD_RWM,;t t
39168 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
39169 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
39170 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
39171 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
39172 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
39173 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
39174 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
39175 s,@BDB_LIBS@,$BDB_LIBS,;t t
39176 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
39177 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
39178 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
39179 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
39180 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
39181 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
39182 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
39183 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
39184 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
39185 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
39186 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
39187 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
39188 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
39189 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
39190 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
39191 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
39192 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
39193 s,@SASL_LIBS@,$SASL_LIBS,;t t
39194 s,@TLS_LIBS@,$TLS_LIBS,;t t
39195 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
39196 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
39197 s,@LIBSLAPI@,$LIBSLAPI,;t t
39198 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
39199 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
39200 s,@ICU_LIBS@,$ICU_LIBS,;t t
39201 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
39202 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
39203 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
39204 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
39205 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
39206 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39211 cat >>$CONFIG_STATUS <<\_ACEOF
39212 # Split the substitutions into bite-sized pieces for seds with
39213 # small command number limits, like on Digital OSF/1 and HP-UX.
39214 ac_max_sed_lines=48
39215 ac_sed_frag=1 # Number of current file.
39216 ac_beg=1 # First line for current file.
39217 ac_end=$ac_max_sed_lines # Line after last line for current file.
39220 while $ac_more_lines; do
39221 if test $ac_beg -gt 1; then
39222 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39224 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39226 if test ! -s $tmp/subs.frag; then
39227 ac_more_lines=false
39229 # The purpose of the label and of the branching condition is to
39230 # speed up the sed processing (if there are no `@' at all, there
39231 # is no need to browse any of the substitutions).
39232 # These are the two extra sed commands mentioned above.
39234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39235 if test -z "$ac_sed_cmds"; then
39236 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39238 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39240 ac_sed_frag=`expr $ac_sed_frag + 1`
39242 ac_end=`expr $ac_end + $ac_max_sed_lines`
39245 if test -z "$ac_sed_cmds"; then
39248 fi # test -n "$CONFIG_FILES"
39251 cat >>$CONFIG_STATUS <<\_ACEOF
39252 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39253 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39255 - | *:- | *:-:* ) # input from stdin
39257 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39259 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39260 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39261 * ) ac_file_in=$ac_file.in ;;
39264 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39265 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39267 X"$ac_file" : 'X\(//\)[^/]' \| \
39268 X"$ac_file" : 'X\(//\)$' \| \
39269 X"$ac_file" : 'X\(/\)' \| \
39270 . : '\(.\)' 2>/dev/null ||
39272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39273 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39274 /^X\(\/\/\)$/{ s//\1/; q; }
39275 /^X\(\/\).*/{ s//\1/; q; }
39277 { if $as_mkdir_p; then
39282 while test ! -d "$as_dir"; do
39283 as_dirs="$as_dir $as_dirs"
39284 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39285 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39286 X"$as_dir" : 'X\(//\)[^/]' \| \
39287 X"$as_dir" : 'X\(//\)$' \| \
39288 X"$as_dir" : 'X\(/\)' \| \
39289 . : '\(.\)' 2>/dev/null ||
39291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39292 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39293 /^X\(\/\/\)$/{ s//\1/; q; }
39294 /^X\(\/\).*/{ s//\1/; q; }
39297 test ! -n "$as_dirs" || mkdir $as_dirs
39298 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39299 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39300 { (exit 1); exit 1; }; }; }
39304 if test "$ac_dir" != .; then
39305 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39306 # A "../" for each directory in $ac_dir_suffix.
39307 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39309 ac_dir_suffix= ac_top_builddir=
39313 .) # No --srcdir option. We are building in place.
39315 if test -z "$ac_top_builddir"; then
39318 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39320 [\\/]* | ?:[\\/]* ) # Absolute path.
39321 ac_srcdir=$srcdir$ac_dir_suffix;
39322 ac_top_srcdir=$srcdir ;;
39323 *) # Relative path.
39324 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39325 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39328 # Do not use `cd foo && pwd` to compute absolute paths, because
39329 # the directories may not exist.
39331 .) ac_abs_builddir="$ac_dir";;
39334 .) ac_abs_builddir=`pwd`;;
39335 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39336 *) ac_abs_builddir=`pwd`/"$ac_dir";;
39339 case $ac_abs_builddir in
39340 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39342 case ${ac_top_builddir}. in
39343 .) ac_abs_top_builddir=$ac_abs_builddir;;
39344 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39345 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39348 case $ac_abs_builddir in
39349 .) ac_abs_srcdir=$ac_srcdir;;
39352 .) ac_abs_srcdir=$ac_abs_builddir;;
39353 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39354 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39357 case $ac_abs_builddir in
39358 .) ac_abs_top_srcdir=$ac_top_srcdir;;
39360 case $ac_top_srcdir in
39361 .) ac_abs_top_srcdir=$ac_abs_builddir;;
39362 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39363 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39370 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
39373 if test x"$ac_file" != x-; then
39374 { echo "$as_me:$LINENO: creating $ac_file" >&5
39375 echo "$as_me: creating $ac_file" >&6;}
39378 # Let's still pretend it is `configure' which instantiates (i.e., don't
39379 # use $as_me), people would be surprised to read:
39380 # /* config.h. Generated by config.status. */
39381 if test x"$ac_file" = x-; then
39384 configure_input="$ac_file. "
39386 configure_input=$configure_input"Generated from `echo $ac_file_in |
39387 sed 's,.*/,,'` by configure."
39389 # First look for the input files in the build tree, otherwise in the
39391 ac_file_inputs=`IFS=:
39392 for f in $ac_file_in; do
39394 -) echo $tmp/stdin ;;
39396 # Absolute (can't be DOS-style, as IFS=:)
39397 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39398 echo "$as_me: error: cannot find input file: $f" >&2;}
39399 { (exit 1); exit 1; }; }
39402 if test -f "$f"; then
39405 elif test -f "$srcdir/$f"; then
39410 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39411 echo "$as_me: error: cannot find input file: $f" >&2;}
39412 { (exit 1); exit 1; }; }
39415 done` || { (exit 1); exit 1; }
39417 cat >>$CONFIG_STATUS <<_ACEOF
39421 cat >>$CONFIG_STATUS <<\_ACEOF
39423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39424 s,@configure_input@,$configure_input,;t t
39425 s,@srcdir@,$ac_srcdir,;t t
39426 s,@abs_srcdir@,$ac_abs_srcdir,;t t
39427 s,@top_srcdir@,$ac_top_srcdir,;t t
39428 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39429 s,@builddir@,$ac_builddir,;t t
39430 s,@abs_builddir@,$ac_abs_builddir,;t t
39431 s,@top_builddir@,$ac_top_builddir,;t t
39432 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39433 s,@INSTALL@,$ac_INSTALL,;t t
39434 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39436 if test x"$ac_file" != x-; then
39437 mv $tmp/out $ac_file
39445 cat >>$CONFIG_STATUS <<\_ACEOF
39448 # CONFIG_HEADER section.
39451 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39452 # NAME is the cpp macro being defined and VALUE is the value it is being given.
39454 # ac_d sets the value in "#define NAME VALUE" lines.
39455 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
39456 ac_dB='[ ].*$,\1#\2'
39459 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
39460 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
39461 ac_uB='$,\1#\2define\3'
39465 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
39466 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39468 - | *:- | *:-:* ) # input from stdin
39470 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39471 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39472 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39474 * ) ac_file_in=$ac_file.in ;;
39477 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
39478 echo "$as_me: creating $ac_file" >&6;}
39480 # First look for the input files in the build tree, otherwise in the
39482 ac_file_inputs=`IFS=:
39483 for f in $ac_file_in; do
39485 -) echo $tmp/stdin ;;
39487 # Absolute (can't be DOS-style, as IFS=:)
39488 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39489 echo "$as_me: error: cannot find input file: $f" >&2;}
39490 { (exit 1); exit 1; }; }
39491 # Do quote $f, to prevent DOS paths from being IFS'd.
39494 if test -f "$f"; then
39497 elif test -f "$srcdir/$f"; then
39502 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39503 echo "$as_me: error: cannot find input file: $f" >&2;}
39504 { (exit 1); exit 1; }; }
39507 done` || { (exit 1); exit 1; }
39508 # Remove the trailing spaces.
39509 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
39513 # Transform confdefs.h into two sed scripts, `conftest.defines' and
39514 # `conftest.undefs', that substitutes the proper values into
39515 # config.h.in to produce config.h. The first handles `#define'
39516 # templates, and the second `#undef' templates.
39517 # And first: Protect against being on the right side of a sed subst in
39518 # config.status. Protect against being in an unquoted here document
39519 # in config.status.
39520 rm -f conftest.defines conftest.undefs
39521 # Using a here document instead of a string reduces the quoting nightmare.
39522 # Putting comments in sed scripts is not portable.
39524 # `end' is used to avoid that the second main sed command (meant for
39525 # 0-ary CPP macros) applies to n-ary macro definitions.
39526 # See the Autoconf documentation for `clear'.
39527 cat >confdef2sed.sed <<\_ACEOF
39532 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
39534 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
39537 # If some macros were called several times there might be several times
39538 # the same #defines, which is useless. Nevertheless, we may not want to
39539 # sort them, since we want the *last* AC-DEFINE to be honored.
39540 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
39541 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
39542 rm -f confdef2sed.sed
39544 # This sed command replaces #undef with comments. This is necessary, for
39545 # example, in the case of _POSIX_SOURCE, which is predefined and required
39546 # on some systems where configure will not decide to define it.
39547 cat >>conftest.undefs <<\_ACEOF
39548 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
39551 # Break up conftest.defines because some shells have a limit on the size
39552 # of here documents, and old seds have small limits too (100 cmds).
39553 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
39554 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
39555 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
39556 echo ' :' >>$CONFIG_STATUS
39557 rm -f conftest.tail
39558 while grep . conftest.defines >/dev/null
39560 # Write a limited-size here document to $tmp/defines.sed.
39561 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
39562 # Speed up: don't consider the non `#define' lines.
39563 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
39564 # Work around the forget-to-reset-the-flag bug.
39565 echo 't clr' >>$CONFIG_STATUS
39566 echo ': clr' >>$CONFIG_STATUS
39567 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
39569 sed -f $tmp/defines.sed $tmp/in >$tmp/out
39571 mv $tmp/out $tmp/in
39573 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
39574 rm -f conftest.defines
39575 mv conftest.tail conftest.defines
39577 rm -f conftest.defines
39578 echo ' fi # grep' >>$CONFIG_STATUS
39579 echo >>$CONFIG_STATUS
39581 # Break up conftest.undefs because some shells have a limit on the size
39582 # of here documents, and old seds have small limits too (100 cmds).
39583 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
39584 rm -f conftest.tail
39585 while grep . conftest.undefs >/dev/null
39587 # Write a limited-size here document to $tmp/undefs.sed.
39588 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
39589 # Speed up: don't consider the non `#undef'
39590 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
39591 # Work around the forget-to-reset-the-flag bug.
39592 echo 't clr' >>$CONFIG_STATUS
39593 echo ': clr' >>$CONFIG_STATUS
39594 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
39596 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
39598 mv $tmp/out $tmp/in
39600 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
39601 rm -f conftest.undefs
39602 mv conftest.tail conftest.undefs
39604 rm -f conftest.undefs
39606 cat >>$CONFIG_STATUS <<\_ACEOF
39607 # Let's still pretend it is `configure' which instantiates (i.e., don't
39608 # use $as_me), people would be surprised to read:
39609 # /* config.h. Generated by config.status. */
39610 if test x"$ac_file" = x-; then
39611 echo "/* Generated by configure. */" >$tmp/config.h
39613 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
39615 cat $tmp/in >>$tmp/config.h
39617 if test x"$ac_file" != x-; then
39618 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
39619 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39620 echo "$as_me: $ac_file is unchanged" >&6;}
39622 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39624 X"$ac_file" : 'X\(//\)[^/]' \| \
39625 X"$ac_file" : 'X\(//\)$' \| \
39626 X"$ac_file" : 'X\(/\)' \| \
39627 . : '\(.\)' 2>/dev/null ||
39629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39631 /^X\(\/\/\)$/{ s//\1/; q; }
39632 /^X\(\/\).*/{ s//\1/; q; }
39634 { if $as_mkdir_p; then
39639 while test ! -d "$as_dir"; do
39640 as_dirs="$as_dir $as_dirs"
39641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39643 X"$as_dir" : 'X\(//\)[^/]' \| \
39644 X"$as_dir" : 'X\(//\)$' \| \
39645 X"$as_dir" : 'X\(/\)' \| \
39646 . : '\(.\)' 2>/dev/null ||
39648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39650 /^X\(\/\/\)$/{ s//\1/; q; }
39651 /^X\(\/\).*/{ s//\1/; q; }
39654 test ! -n "$as_dirs" || mkdir $as_dirs
39655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39656 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39657 { (exit 1); exit 1; }; }; }
39660 mv $tmp/config.h $ac_file
39664 rm -f $tmp/config.h
39666 # Compute $ac_file's index in $config_headers.
39668 for _am_header in $config_headers :; do
39669 case $_am_header in
39670 $ac_file | $ac_file:* )
39673 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39676 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
39677 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39678 X$ac_file : 'X\(//\)[^/]' \| \
39679 X$ac_file : 'X\(//\)$' \| \
39680 X$ac_file : 'X\(/\)' \| \
39681 . : '\(.\)' 2>/dev/null ||
39683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39685 /^X\(\/\/\)$/{ s//\1/; q; }
39686 /^X\(\/\).*/{ s//\1/; q; }
39687 s/.*/./; q'`/stamp-h$_am_stamp_count
39690 cat >>$CONFIG_STATUS <<\_ACEOF
39693 # CONFIG_COMMANDS section.
39695 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
39696 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
39697 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
39698 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
39699 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39700 X"$ac_dest" : 'X\(//\)[^/]' \| \
39701 X"$ac_dest" : 'X\(//\)$' \| \
39702 X"$ac_dest" : 'X\(/\)' \| \
39703 . : '\(.\)' 2>/dev/null ||
39705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39707 /^X\(\/\/\)$/{ s//\1/; q; }
39708 /^X\(\/\).*/{ s//\1/; q; }
39710 { if $as_mkdir_p; then
39715 while test ! -d "$as_dir"; do
39716 as_dirs="$as_dir $as_dirs"
39717 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39719 X"$as_dir" : 'X\(//\)[^/]' \| \
39720 X"$as_dir" : 'X\(//\)$' \| \
39721 X"$as_dir" : 'X\(/\)' \| \
39722 . : '\(.\)' 2>/dev/null ||
39724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39726 /^X\(\/\/\)$/{ s//\1/; q; }
39727 /^X\(\/\).*/{ s//\1/; q; }
39730 test ! -n "$as_dirs" || mkdir $as_dirs
39731 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39732 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39733 { (exit 1); exit 1; }; }; }
39737 if test "$ac_dir" != .; then
39738 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39739 # A "../" for each directory in $ac_dir_suffix.
39740 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39742 ac_dir_suffix= ac_top_builddir=
39746 .) # No --srcdir option. We are building in place.
39748 if test -z "$ac_top_builddir"; then
39751 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39753 [\\/]* | ?:[\\/]* ) # Absolute path.
39754 ac_srcdir=$srcdir$ac_dir_suffix;
39755 ac_top_srcdir=$srcdir ;;
39756 *) # Relative path.
39757 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39758 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39761 # Do not use `cd foo && pwd` to compute absolute paths, because
39762 # the directories may not exist.
39764 .) ac_abs_builddir="$ac_dir";;
39767 .) ac_abs_builddir=`pwd`;;
39768 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39769 *) ac_abs_builddir=`pwd`/"$ac_dir";;
39772 case $ac_abs_builddir in
39773 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39775 case ${ac_top_builddir}. in
39776 .) ac_abs_top_builddir=$ac_abs_builddir;;
39777 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39778 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39781 case $ac_abs_builddir in
39782 .) ac_abs_srcdir=$ac_srcdir;;
39785 .) ac_abs_srcdir=$ac_abs_builddir;;
39786 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39787 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39790 case $ac_abs_builddir in
39791 .) ac_abs_top_srcdir=$ac_top_srcdir;;
39793 case $ac_top_srcdir in
39794 .) ac_abs_top_srcdir=$ac_abs_builddir;;
39795 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39796 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39801 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
39802 echo "$as_me: executing $ac_dest commands" >&6;}
39804 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39805 # Strip MF so we end up with the name of the file.
39806 mf=`echo "$mf" | sed -e 's/:.*$//'`
39807 # Check whether this is an Automake generated Makefile or not.
39808 # We used to match only the files named `Makefile.in', but
39809 # some people rename them; so instead we look at the file content.
39810 # Grep'ing the first line is not enough: some people post-process
39811 # each Makefile.in and add a new line on top of each file to say so.
39812 # So let's grep whole file.
39813 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
39814 dirpart=`(dirname "$mf") 2>/dev/null ||
39815 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39816 X"$mf" : 'X\(//\)[^/]' \| \
39817 X"$mf" : 'X\(//\)$' \| \
39818 X"$mf" : 'X\(/\)' \| \
39819 . : '\(.\)' 2>/dev/null ||
39821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39823 /^X\(\/\/\)$/{ s//\1/; q; }
39824 /^X\(\/\).*/{ s//\1/; q; }
39829 # Extract the definition of DEPDIR, am__include, and am__quote
39830 # from the Makefile without running `make'.
39831 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39832 test -z "$DEPDIR" && continue
39833 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39834 test -z "am__include" && continue
39835 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39836 # When using ansi2knr, U may be empty or an underscore; expand it
39837 U=`sed -n 's/^U = //p' < "$mf"`
39838 # Find all dependency output files, they are included files with
39839 # $(DEPDIR) in their names. We invoke sed twice because it is the
39840 # simplest approach to changing $(DEPDIR) to its actual value in the
39842 for file in `sed -n "
39843 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39845 # Make sure the directory exists.
39846 test -f "$dirpart/$file" && continue
39847 fdir=`(dirname "$file") 2>/dev/null ||
39848 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39849 X"$file" : 'X\(//\)[^/]' \| \
39850 X"$file" : 'X\(//\)$' \| \
39851 X"$file" : 'X\(/\)' \| \
39852 . : '\(.\)' 2>/dev/null ||
39854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39856 /^X\(\/\/\)$/{ s//\1/; q; }
39857 /^X\(\/\).*/{ s//\1/; q; }
39859 { if $as_mkdir_p; then
39860 mkdir -p $dirpart/$fdir
39862 as_dir=$dirpart/$fdir
39864 while test ! -d "$as_dir"; do
39865 as_dirs="$as_dir $as_dirs"
39866 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39868 X"$as_dir" : 'X\(//\)[^/]' \| \
39869 X"$as_dir" : 'X\(//\)$' \| \
39870 X"$as_dir" : 'X\(/\)' \| \
39871 . : '\(.\)' 2>/dev/null ||
39873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39875 /^X\(\/\/\)$/{ s//\1/; q; }
39876 /^X\(\/\).*/{ s//\1/; q; }
39879 test ! -n "$as_dirs" || mkdir $as_dirs
39880 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
39881 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
39882 { (exit 1); exit 1; }; }; }
39884 # echo "creating $dirpart/$file"
39885 echo '# dummy' > "$dirpart/$file"
39892 BACKENDSC="servers/slapd/backends.c"
39893 echo "Making $BACKENDSC"
39895 cat > $BACKENDSC << ENDX
39896 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
39898 * Copyright 1998-2008 The OpenLDAP Foundation.
39899 * All rights reserved.
39901 * Redistribution and use in source and binary forms, with or without
39902 * modification, are permitted only as authorized by the OpenLDAP
39905 * A copy of this license is available in the file LICENSE in the
39906 * top-level directory of the distribution or, alternatively, at
39907 * <http://www.OpenLDAP.org/license.html>.
39909 /* This file is automatically generated by configure; please do not edit. */
39911 #include "portable.h"
39915 if test "${STATIC_BACKENDS}"; then
39916 for b in config ${STATIC_BACKENDS}; do
39917 bb=`echo "${b}" | sed -e 's/back-//'`
39918 cat >> $BACKENDSC << ENDX
39919 extern BI_init ${bb}_back_initialize;
39923 cat >> $BACKENDSC << ENDX
39925 BackendInfo slap_binfo[] = {
39928 for b in config ${STATIC_BACKENDS}; do
39929 bb=`echo "${b}" | sed -e 's/back-//'`
39930 echo " Add ${bb} ..."
39931 cat >> $BACKENDSC << ENDX
39932 { "${bb}", ${bb}_back_initialize },
39936 cat >> $BACKENDSC << ENDX
39940 /* end of generated file */
39943 OVERLAYSC="servers/slapd/overlays/statover.c"
39944 echo "Making $OVERLAYSC"
39946 cat > $OVERLAYSC << ENDX
39947 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
39949 * Copyright 1998-2008 The OpenLDAP Foundation.
39950 * All rights reserved.
39952 * Redistribution and use in source and binary forms, with or without
39953 * modification, are permitted only as authorized by the OpenLDAP
39956 * A copy of this license is available in the file LICENSE in the
39957 * top-level directory of the distribution or, alternatively, at
39958 * <http://www.OpenLDAP.org/license.html>.
39960 /* This file is automatically generated by configure; please do not edit. */
39962 #include "portable.h"
39966 if test "${STATIC_OVERLAYS}"; then
39967 for o in ${STATIC_OVERLAYS}; do
39968 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
39969 cat >> $OVERLAYSC << ENDX
39970 extern OV_init ${oo}_initialize;
39975 cat >> $OVERLAYSC << ENDX
39977 OverlayInit slap_oinfo[] = {
39980 if test "${STATIC_OVERLAYS}"; then
39981 for o in ${STATIC_OVERLAYS}; do
39982 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
39983 echo " Add ${oo} ..."
39984 cat >> $OVERLAYSC << ENDX
39985 { "${oo}", ${oo}_initialize },
39990 cat >> $OVERLAYSC << ENDX
39994 /* end of generated file */
39997 if test "${ol_cv_mkdep}" = no; then
39998 echo '(Do not "make depend"; we do not know how to build dependencies)'
40000 echo 'Please run "make depend" to build dependencies'
40007 cat >>$CONFIG_STATUS <<\_ACEOF
40009 { (exit 0); exit 0; }
40011 chmod +x $CONFIG_STATUS
40012 ac_clean_files=$ac_clean_files_save
40015 # configure is writing to config.log, and then calls config.status.
40016 # config.status does its own redirection, appending to config.log.
40017 # Unfortunately, on DOS this fails, as config.log is still kept open
40018 # by configure, so config.status won't be able to write to it; its
40019 # output is simply discarded. So we exec the FD to /dev/null,
40020 # effectively closing config.log, so it can be properly (re)opened and
40021 # appended to by config.status. When coming back to configure, we
40022 # need to make the FD available again.
40023 if test "$no_create" != yes; then
40025 ac_config_status_args=
40026 test "$silent" = yes &&
40027 ac_config_status_args="$ac_config_status_args --quiet"
40029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40032 # would make configure fail if this is the last instruction.
40033 $ac_cs_success || { (exit 1); exit 1; }