2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.657 2007/06/09 21:35:20 hallvard Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2007 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 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_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD 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 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-null enable null backend no|yes|mod [no]
1040 --enable-passwd enable passwd backend no|yes|mod [no]
1041 --enable-perl enable perl backend no|yes|mod [no]
1042 --enable-relay enable relay backend no|yes|mod [yes]
1043 --enable-shell enable shell backend no|yes|mod [no]
1044 --enable-sql enable sql backend no|yes|mod [no]
1046 SLAPD Overlay Options:
1047 --enable-overlays enable all available overlays no|yes|mod
1048 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1049 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1050 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1051 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1052 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1053 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1054 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1055 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1056 --enable-refint Referential Integrity overlay no|yes|mod [no]
1057 --enable-retcode Return Code testing overlay no|yes|mod [no]
1058 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1059 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1060 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1061 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1062 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1063 --enable-valsort Value Sorting overlay no|yes|mod [no]
1065 Library Generation & Linking Options
1066 --enable-static[=PKGS]
1067 build static libraries [default=yes]
1068 --enable-shared[=PKGS]
1069 build shared libraries [default=yes]
1070 --enable-fast-install[=PKGS]
1071 optimize for fast installation [default=yes]
1072 --disable-dependency-tracking speeds up one-time build
1073 --enable-dependency-tracking do not reject slow dependency extractors
1074 --disable-libtool-lock avoid locking (might break parallel builds)
1077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1079 --with-subdir=DIR change default subdirectory used for installs
1080 --with-cyrus-sasl with Cyrus SASL support [auto]
1081 --with-fetch with fetch(3) URL support [auto]
1082 --with-threads with threads [auto]
1083 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1084 --with-yielding-select with implicitly yielding select [auto]
1085 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1086 --with-odbc with specific ODBC support iodbc|unixodbc|auto [auto]
1087 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1088 --with-pic try to use only PIC/non-PIC objects [default=use
1091 include additional configurations [automatic]
1093 See INSTALL file for further details.
1095 Some influential environment variables:
1096 CC C compiler command
1097 CFLAGS C compiler flags
1098 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1099 nonstandard directory <lib dir>
1100 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1101 headers in a nonstandard directory <include dir>
1104 Use these variables to override the choices made by `configure' or to help
1105 it to find libraries and programs with nonstandard names/locations.
1110 if test "$ac_init_help" = "recursive"; then
1111 # If there are subdirs, report their specific --help.
1113 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114 test -d $ac_dir || continue
1117 if test "$ac_dir" != .; then
1118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119 # A "../" for each directory in $ac_dir_suffix.
1120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1122 ac_dir_suffix= ac_top_builddir=
1126 .) # No --srcdir option. We are building in place.
1128 if test -z "$ac_top_builddir"; then
1131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1133 [\\/]* | ?:[\\/]* ) # Absolute path.
1134 ac_srcdir=$srcdir$ac_dir_suffix;
1135 ac_top_srcdir=$srcdir ;;
1137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1141 # Do not use `cd foo && pwd` to compute absolute paths, because
1142 # the directories may not exist.
1144 .) ac_abs_builddir="$ac_dir";;
1147 .) ac_abs_builddir=`pwd`;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1155 case ${ac_top_builddir}. in
1156 .) ac_abs_top_builddir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1161 case $ac_abs_builddir in
1162 .) ac_abs_srcdir=$ac_srcdir;;
1165 .) ac_abs_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1170 case $ac_abs_builddir in
1171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1173 case $ac_top_srcdir in
1174 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181 # Check for guested configure; otherwise get Cygnus style configure.
1182 if test -f $ac_srcdir/configure.gnu; then
1184 $SHELL $ac_srcdir/configure.gnu --help=recursive
1185 elif test -f $ac_srcdir/configure; then
1187 $SHELL $ac_srcdir/configure --help=recursive
1188 elif test -f $ac_srcdir/configure.ac ||
1189 test -f $ac_srcdir/configure.in; then
1191 $ac_configure --help
1193 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199 test -n "$ac_init_help" && exit 0
1200 if $ac_init_version; then
1203 Copyright (C) 2003 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1207 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1208 Restrictions apply, see COPYRIGHT and LICENSE files.
1214 This file contains any messages produced by compilers while
1215 running configure, to aid debugging if configure makes a mistake.
1217 It was created by $as_me, which was
1218 generated by GNU Autoconf 2.59. Invocation command line was
1229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1238 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1239 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1242 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1243 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1244 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252 test -z "$as_dir" && as_dir=.
1253 echo "PATH: $as_dir"
1268 # Keep a trace of the command line.
1269 # Strip out --no-create and --no-recursion so they do not pile up.
1270 # Strip out --silent because we don't want to record it for future runs.
1271 # Also quote any args containing shell meta-characters.
1272 # Make two passes to allow for proper duplicate-argument suppression.
1277 ac_must_keep_next=false
1283 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1293 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294 if test $ac_must_keep_next = true; then
1295 ac_must_keep_next=false # Got value, back to normal.
1298 *=* | --config-cache | -C | -disable-* | --disable-* \
1299 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301 | -with-* | --with-* | -without-* | --without-* | --x)
1302 case "$ac_configure_args0 " in
1303 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1306 -* ) ac_must_keep_next=true ;;
1309 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310 # Get rid of the leading space.
1316 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1319 # When interrupted or exit'd, cleanup temporary files, and complete
1320 # config.log. We remove comments because anyway the quotes in there
1321 # would cause problems or look ugly.
1322 # WARNING: Be sure not to use single quotes in there, as some shells,
1323 # such as our DU 5.0 friend, will then `close' the trap.
1324 trap 'exit_status=$?
1325 # Save into config.log some information that might help in debugging.
1330 ## ---------------- ##
1331 ## Cache variables. ##
1332 ## ---------------- ##
1335 # The following way of writing the cache mishandles newlines in values,
1338 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1341 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1346 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1353 ## ----------------- ##
1354 ## Output variables. ##
1355 ## ----------------- ##
1358 for ac_var in $ac_subst_vars
1360 eval ac_val=$`echo $ac_var`
1361 echo "$ac_var='"'"'$ac_val'"'"'"
1365 if test -n "$ac_subst_files"; then
1372 for ac_var in $ac_subst_files
1374 eval ac_val=$`echo $ac_var`
1375 echo "$ac_var='"'"'$ac_val'"'"'"
1380 if test -s confdefs.h; then
1387 sed "/^$/d" confdefs.h | sort
1390 test "$ac_signal" != 0 &&
1391 echo "$as_me: caught signal $ac_signal"
1392 echo "$as_me: exit $exit_status"
1394 rm -f core *.core &&
1395 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1398 for ac_signal in 1 2 13 15; do
1399 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1404 rm -rf conftest* confdefs.h
1405 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1408 # Predefined preprocessor variables.
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_NAME "$PACKAGE_NAME"
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_STRING "$PACKAGE_STRING"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435 # Let the site file select an alternate cache file if it wants to.
1436 # Prefer explicitly selected file to automatically selected ones.
1437 if test -z "$CONFIG_SITE"; then
1438 if test "x$prefix" != xNONE; then
1439 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1441 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1444 for ac_site_file in $CONFIG_SITE; do
1445 if test -r "$ac_site_file"; then
1446 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447 echo "$as_me: loading site script $ac_site_file" >&6;}
1448 sed 's/^/| /' "$ac_site_file" >&5
1454 # Check that the precious variables saved in the cache have kept the same
1456 ac_cache_corrupted=false
1457 for ac_var in `(set) 2>&1 |
1458 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460 eval ac_new_set=\$ac_env_${ac_var}_set
1461 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462 eval ac_new_val="\$ac_env_${ac_var}_value"
1463 case $ac_old_set,$ac_new_set in
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1474 if test "x$ac_old_val" != "x$ac_new_val"; then
1475 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1478 echo "$as_me: former value: $ac_old_val" >&2;}
1479 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1480 echo "$as_me: current value: $ac_new_val" >&2;}
1481 ac_cache_corrupted=:
1484 # Pass precious variables to config.status.
1485 if test "$ac_new_set" = set; then
1487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 *) ac_arg=$ac_var=$ac_new_val ;;
1491 case " $ac_configure_args " in
1492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1493 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497 if $ac_cache_corrupted; then
1498 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502 { (exit 1); exit 1; }; }
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1554 for ac_dir in build $srcdir/build; do
1555 if test -f $ac_dir/install-sh; then
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 elif test -f $ac_dir/install.sh; then
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 elif test -f $ac_dir/shtool; then
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1569 if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1572 { (exit 1); exit 1; }; }
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578 eval `$ac_aux_dir/version.sh`
1579 if test -z "$OL_STRING"; then
1580 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1581 echo "$as_me: error: could not determine version" >&2;}
1582 { (exit 1); exit 1; }; }
1585 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1586 ac_cv_shtool="$ac_aux_dir/shtool"
1588 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1589 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1590 { (exit 1); exit 1; }; }
1593 SHTOOL="$ac_cv_shtool"
1597 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1598 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602 if test -d $ac_aux_dir/CVS; then
1603 OPENLDAP_CVS="(from CVS sources) "
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669 ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687 test "$program_prefix$program_suffix$program_transform_name" = \
1689 program_prefix=${target_alias}-
1691 am__api_version="1.9"
1692 # Find a good install program. We prefer a C program (faster),
1693 # so one script is as good as another. But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 # OSF1 and SCO ODT 3.0 have their own names for install.
1724 # Don't use installbsd from OSF since it installs stuff as root
1726 for ac_prog in ginstall scoinst install; do
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729 if test $ac_prog = install &&
1730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731 # AIX install. It has an incompatible calling convention.
1733 elif test $ac_prog = install &&
1734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # program-specific install script used by HP pwplus--don't use.
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 if test "${ac_cv_path_install+set}" = set; then
1751 INSTALL=$ac_cv_path_install
1753 # As a last resort, use the slow shell script. We don't cache a
1754 # path for INSTALL within a source directory, because that will
1755 # break other packages using the cache if that directory is
1756 # removed, or if the path is relative.
1757 INSTALL=$ac_install_sh
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments. Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1782 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783 if test "$*" = "X"; then
1785 set X `ls -t $srcdir/configure conftest.file`
1788 if test "$*" != "X $srcdir/configure conftest.file" \
1789 && test "$*" != "X conftest.file $srcdir/configure"; then
1791 # If neither matched, then we have a broken ls. This can happen
1792 # if, for instance, CONFIG_SHELL is bash and it inherits a
1793 # broken ls alias from the environment. This has actually
1794 # happened. Such a system could not be considered "sane".
1795 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&2;}
1799 { (exit 1); exit 1; }; }
1802 test "$2" = conftest.file
1808 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812 { (exit 1); exit 1; }; }
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $. echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835 am_missing_run="$MISSING --run "
1838 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843 # We used to keeping the `.' as first argument, in order to
1844 # allow $(mkdir_p) to be used without argument. As in
1845 # $(mkdir_p) $(somedir)
1846 # where $(somedir) is conditionally defined. However this is wrong
1848 # 1. if the package is installed by a user who cannot write `.'
1849 # make install will fail,
1850 # 2. the above comment should most certainly read
1851 # $(mkdir_p) $(DESTDIR)$(somedir)
1852 # so it does not work when $(somedir) is undefined and
1853 # $(DESTDIR) is not.
1854 # To support the latter case, we have to write
1855 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856 # so the `.' trick is pointless.
1857 mkdir_p='mkdir -p --'
1859 # On NextStep and OpenStep, the `mkdir' command does not
1860 # recognize any option. It will interpret all options as
1861 # directories to create, and then abort because `.' already
1863 for d in ./-p ./--version;
1865 test -d $d && rmdir $d
1867 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868 if test -f "$ac_aux_dir/mkinstalldirs"; then
1869 mkdir_p='$(mkinstalldirs)'
1871 mkdir_p='$(install_sh) -d'
1875 for ac_prog in gawk mawk nawk awk
1877 # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$AWK"; then
1885 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_AWK="$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$AWK"; then
1905 echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$AWK" && break
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.make <<\_ACEOF
1923 @echo 'ac_maketemp="$(MAKE)"'
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928 eval ac_cv_prog_make_${ac_make}_set=yes
1930 eval ac_cv_prog_make_${ac_make}_set=no
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935 echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 SET_MAKE="MAKE=${MAKE-make}"
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1951 rmdir .tst 2>/dev/null
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955 test -f $srcdir/config.status; then
1956 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963 if (cygpath --version) >/dev/null 2>/dev/null; then
1964 CYGPATH_W='cygpath -w'
1971 # Define the identity of the package.
1976 # Some tools Automake needs.
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'. However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$STRIP"; then
2008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028 echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$ac_cv_prog_STRIP"; then
2038 # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_STRIP"; then
2046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_STRIP="strip"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2076 STRIP="$ac_cv_prog_STRIP"
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082 # We need awk for the "check" target. The system "awk" is bad on
2084 # Always define AMTAR for backward compatibility.
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150 ldap_subdir="/openldap"
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155 withval="$with_subdir"
2162 ldap_subdir="$withval"
2165 ldap_subdir="/$withval"
2171 # OpenLDAP --enable-debug
2173 # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175 enableval="$enable_debug"
2178 for ol_val in no yes traditional ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186 { (exit 1); exit 1; }; }
2188 ol_enable_debug="$ol_arg"
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2196 # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198 enableval="$enable_dynamic"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209 { (exit 1); exit 1; }; }
2211 ol_enable_dynamic="$ol_arg"
2214 ol_enable_dynamic=no
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2219 # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221 enableval="$enable_syslog"
2224 for ol_val in auto yes no ; do
2225 if test "$enableval" = "$ol_val" ; then
2229 if test "$ol_arg" = "invalid" ; then
2230 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232 { (exit 1); exit 1; }; }
2234 ol_enable_syslog="$ol_arg"
2237 ol_enable_syslog=auto
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2242 # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244 enableval="$enable_proctitle"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255 { (exit 1); exit 1; }; }
2257 ol_enable_proctitle="$ol_arg"
2260 ol_enable_proctitle=yes
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 # OpenLDAP --enable-ipv6
2266 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2267 if test "${enable_ipv6+set}" = set; then
2268 enableval="$enable_ipv6"
2271 for ol_val in auto yes no ; do
2272 if test "$enableval" = "$ol_val" ; then
2276 if test "$ol_arg" = "invalid" ; then
2277 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2278 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2279 { (exit 1); exit 1; }; }
2281 ol_enable_ipv6="$ol_arg"
2287 # OpenLDAP --enable-local
2289 # Check whether --enable-local or --disable-local was given.
2290 if test "${enable_local+set}" = set; then
2291 enableval="$enable_local"
2294 for ol_val in auto yes no ; do
2295 if test "$enableval" = "$ol_val" ; then
2299 if test "$ol_arg" = "invalid" ; then
2300 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2301 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2302 { (exit 1); exit 1; }; }
2304 ol_enable_local="$ol_arg"
2307 ol_enable_local=auto
2309 # end --enable-local
2311 # OpenLDAP --with-cyrus_sasl
2313 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2314 if test "${with_cyrus_sasl+set}" = set; then
2315 withval="$with_cyrus_sasl"
2318 for ol_val in auto yes no ; do
2319 if test "$withval" = "$ol_val" ; then
2323 if test "$ol_arg" = "invalid" ; then
2324 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2325 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2326 { (exit 1); exit 1; }; }
2328 ol_with_cyrus_sasl="$ol_arg"
2331 ol_with_cyrus_sasl="auto"
2332 fi; # end --with-cyrus_sasl
2334 # OpenLDAP --with-fetch
2336 # Check whether --with-fetch or --without-fetch was given.
2337 if test "${with_fetch+set}" = set; then
2338 withval="$with_fetch"
2341 for ol_val in auto yes no ; do
2342 if test "$withval" = "$ol_val" ; then
2346 if test "$ol_arg" = "invalid" ; then
2347 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2348 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2349 { (exit 1); exit 1; }; }
2351 ol_with_fetch="$ol_arg"
2354 ol_with_fetch="auto"
2355 fi; # end --with-fetch
2357 # OpenLDAP --with-threads
2359 # Check whether --with-threads or --without-threads was given.
2360 if test "${with_threads+set}" = set; then
2361 withval="$with_threads"
2364 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2365 if test "$withval" = "$ol_val" ; then
2369 if test "$ol_arg" = "invalid" ; then
2370 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2371 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2372 { (exit 1); exit 1; }; }
2374 ol_with_threads="$ol_arg"
2377 ol_with_threads="auto"
2378 fi; # end --with-threads
2380 # OpenLDAP --with-tls
2382 # Check whether --with-tls or --without-tls was given.
2383 if test "${with_tls+set}" = set; then
2387 for ol_val in auto openssl gnutls yes no ; do
2388 if test "$withval" = "$ol_val" ; then
2392 if test "$ol_arg" = "invalid" ; then
2393 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2394 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2395 { (exit 1); exit 1; }; }
2397 ol_with_tls="$ol_arg"
2401 fi; # end --with-tls
2403 # OpenLDAP --with-yielding_select
2405 # Check whether --with-yielding_select or --without-yielding_select was given.
2406 if test "${with_yielding_select+set}" = set; then
2407 withval="$with_yielding_select"
2410 for ol_val in auto yes no manual ; do
2411 if test "$withval" = "$ol_val" ; then
2415 if test "$ol_arg" = "invalid" ; then
2416 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2417 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2418 { (exit 1); exit 1; }; }
2420 ol_with_yielding_select="$ol_arg"
2423 ol_with_yielding_select="auto"
2424 fi; # end --with-yielding_select
2426 # OpenLDAP --with-mp
2428 # Check whether --with-mp or --without-mp was given.
2429 if test "${with_mp+set}" = set; then
2433 for ol_val in auto longlong long bignum gmp yes no ; do
2434 if test "$withval" = "$ol_val" ; then
2438 if test "$ol_arg" = "invalid" ; then
2439 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2440 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2441 { (exit 1); exit 1; }; }
2443 ol_with_mp="$ol_arg"
2449 # OpenLDAP --with-odbc
2451 # Check whether --with-odbc or --without-odbc was given.
2452 if test "${with_odbc+set}" = set; then
2453 withval="$with_odbc"
2456 for ol_val in auto iodbc unixodbc ; do
2457 if test "$withval" = "$ol_val" ; then
2461 if test "$ol_arg" = "invalid" ; then
2462 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2463 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2464 { (exit 1); exit 1; }; }
2466 ol_with_odbc="$ol_arg"
2470 fi; # end --with-odbc
2474 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2475 if test "${enable_xxslapdoptions+set}" = set; then
2476 enableval="$enable_xxslapdoptions"
2479 # OpenLDAP --enable-slapd
2481 # Check whether --enable-slapd or --disable-slapd was given.
2482 if test "${enable_slapd+set}" = set; then
2483 enableval="$enable_slapd"
2486 for ol_val in auto yes no ; do
2487 if test "$enableval" = "$ol_val" ; then
2491 if test "$ol_arg" = "invalid" ; then
2492 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2493 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2494 { (exit 1); exit 1; }; }
2496 ol_enable_slapd="$ol_arg"
2501 # end --enable-slapd
2502 # OpenLDAP --enable-dynacl
2504 # Check whether --enable-dynacl or --disable-dynacl was given.
2505 if test "${enable_dynacl+set}" = set; then
2506 enableval="$enable_dynacl"
2509 for ol_val in auto yes no ; do
2510 if test "$enableval" = "$ol_val" ; then
2514 if test "$ol_arg" = "invalid" ; then
2515 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2516 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2517 { (exit 1); exit 1; }; }
2519 ol_enable_dynacl="$ol_arg"
2524 # end --enable-dynacl
2525 # OpenLDAP --enable-aci
2527 # Check whether --enable-aci or --disable-aci was given.
2528 if test "${enable_aci+set}" = set; then
2529 enableval="$enable_aci"
2532 for ol_val in no yes mod ; do
2533 if test "$enableval" = "$ol_val" ; then
2537 if test "$ol_arg" = "invalid" ; then
2538 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2539 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2540 { (exit 1); exit 1; }; }
2542 ol_enable_aci="$ol_arg"
2548 # OpenLDAP --enable-cleartext
2550 # Check whether --enable-cleartext or --disable-cleartext was given.
2551 if test "${enable_cleartext+set}" = set; then
2552 enableval="$enable_cleartext"
2555 for ol_val in auto yes no ; do
2556 if test "$enableval" = "$ol_val" ; then
2560 if test "$ol_arg" = "invalid" ; then
2561 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2562 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2563 { (exit 1); exit 1; }; }
2565 ol_enable_cleartext="$ol_arg"
2568 ol_enable_cleartext=yes
2570 # end --enable-cleartext
2571 # OpenLDAP --enable-crypt
2573 # Check whether --enable-crypt or --disable-crypt was given.
2574 if test "${enable_crypt+set}" = set; then
2575 enableval="$enable_crypt"
2578 for ol_val in auto yes no ; do
2579 if test "$enableval" = "$ol_val" ; then
2583 if test "$ol_arg" = "invalid" ; then
2584 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2586 { (exit 1); exit 1; }; }
2588 ol_enable_crypt="$ol_arg"
2593 # end --enable-crypt
2594 # OpenLDAP --enable-lmpasswd
2596 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2597 if test "${enable_lmpasswd+set}" = set; then
2598 enableval="$enable_lmpasswd"
2601 for ol_val in auto yes no ; do
2602 if test "$enableval" = "$ol_val" ; then
2606 if test "$ol_arg" = "invalid" ; then
2607 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2608 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2609 { (exit 1); exit 1; }; }
2611 ol_enable_lmpasswd="$ol_arg"
2614 ol_enable_lmpasswd=no
2616 # end --enable-lmpasswd
2617 # OpenLDAP --enable-spasswd
2619 # Check whether --enable-spasswd or --disable-spasswd was given.
2620 if test "${enable_spasswd+set}" = set; then
2621 enableval="$enable_spasswd"
2624 for ol_val in auto yes no ; do
2625 if test "$enableval" = "$ol_val" ; then
2629 if test "$ol_arg" = "invalid" ; then
2630 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2631 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2632 { (exit 1); exit 1; }; }
2634 ol_enable_spasswd="$ol_arg"
2637 ol_enable_spasswd=no
2639 # end --enable-spasswd
2640 # OpenLDAP --enable-modules
2642 # Check whether --enable-modules or --disable-modules was given.
2643 if test "${enable_modules+set}" = set; then
2644 enableval="$enable_modules"
2647 for ol_val in auto yes no ; do
2648 if test "$enableval" = "$ol_val" ; then
2652 if test "$ol_arg" = "invalid" ; then
2653 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2654 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2655 { (exit 1); exit 1; }; }
2657 ol_enable_modules="$ol_arg"
2660 ol_enable_modules=no
2662 # end --enable-modules
2663 # OpenLDAP --enable-rewrite
2665 # Check whether --enable-rewrite or --disable-rewrite was given.
2666 if test "${enable_rewrite+set}" = set; then
2667 enableval="$enable_rewrite"
2670 for ol_val in auto yes no ; do
2671 if test "$enableval" = "$ol_val" ; then
2675 if test "$ol_arg" = "invalid" ; then
2676 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2677 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2678 { (exit 1); exit 1; }; }
2680 ol_enable_rewrite="$ol_arg"
2683 ol_enable_rewrite=auto
2685 # end --enable-rewrite
2686 # OpenLDAP --enable-rlookups
2688 # Check whether --enable-rlookups or --disable-rlookups was given.
2689 if test "${enable_rlookups+set}" = set; then
2690 enableval="$enable_rlookups"
2693 for ol_val in auto yes no ; do
2694 if test "$enableval" = "$ol_val" ; then
2698 if test "$ol_arg" = "invalid" ; then
2699 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2700 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2701 { (exit 1); exit 1; }; }
2703 ol_enable_rlookups="$ol_arg"
2706 ol_enable_rlookups=no
2708 # end --enable-rlookups
2709 # OpenLDAP --enable-slapi
2711 # Check whether --enable-slapi or --disable-slapi was given.
2712 if test "${enable_slapi+set}" = set; then
2713 enableval="$enable_slapi"
2716 for ol_val in auto yes no ; do
2717 if test "$enableval" = "$ol_val" ; then
2721 if test "$ol_arg" = "invalid" ; then
2722 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2724 { (exit 1); exit 1; }; }
2726 ol_enable_slapi="$ol_arg"
2731 # end --enable-slapi
2732 # OpenLDAP --enable-slp
2734 # Check whether --enable-slp or --disable-slp was given.
2735 if test "${enable_slp+set}" = set; then
2736 enableval="$enable_slp"
2739 for ol_val in auto yes no ; do
2740 if test "$enableval" = "$ol_val" ; then
2744 if test "$ol_arg" = "invalid" ; then
2745 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2746 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2747 { (exit 1); exit 1; }; }
2749 ol_enable_slp="$ol_arg"
2755 # OpenLDAP --enable-wrappers
2757 # Check whether --enable-wrappers or --disable-wrappers was given.
2758 if test "${enable_wrappers+set}" = set; then
2759 enableval="$enable_wrappers"
2762 for ol_val in auto yes no ; do
2763 if test "$enableval" = "$ol_val" ; then
2767 if test "$ol_arg" = "invalid" ; then
2768 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2769 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2770 { (exit 1); exit 1; }; }
2772 ol_enable_wrappers="$ol_arg"
2775 ol_enable_wrappers=no
2777 # end --enable-wrappers
2792 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2793 if test "${enable_xxslapbackends+set}" = set; then
2794 enableval="$enable_xxslapbackends"
2798 # OpenLDAP --enable-backends
2800 # Check whether --enable-backends or --disable-backends was given.
2801 if test "${enable_backends+set}" = set; then
2802 enableval="$enable_backends"
2805 for ol_val in no yes mod ; do
2806 if test "$enableval" = "$ol_val" ; then
2810 if test "$ol_arg" = "invalid" ; then
2811 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2812 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2813 { (exit 1); exit 1; }; }
2815 ol_enable_backends="$ol_arg"
2818 # end --enable-backends
2819 # OpenLDAP --enable-bdb
2821 # Check whether --enable-bdb or --disable-bdb was given.
2822 if test "${enable_bdb+set}" = set; then
2823 enableval="$enable_bdb"
2826 for ol_val in no yes mod ; do
2827 if test "$enableval" = "$ol_val" ; then
2831 if test "$ol_arg" = "invalid" ; then
2832 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2833 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2834 { (exit 1); exit 1; }; }
2836 ol_enable_bdb="$ol_arg"
2839 ol_enable_bdb=${ol_enable_backends:-yes}
2842 # OpenLDAP --enable-dnssrv
2844 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2845 if test "${enable_dnssrv+set}" = set; then
2846 enableval="$enable_dnssrv"
2849 for ol_val in no yes mod ; do
2850 if test "$enableval" = "$ol_val" ; then
2854 if test "$ol_arg" = "invalid" ; then
2855 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2856 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2857 { (exit 1); exit 1; }; }
2859 ol_enable_dnssrv="$ol_arg"
2862 ol_enable_dnssrv=${ol_enable_backends:-no}
2864 # end --enable-dnssrv
2865 # OpenLDAP --enable-hdb
2867 # Check whether --enable-hdb or --disable-hdb was given.
2868 if test "${enable_hdb+set}" = set; then
2869 enableval="$enable_hdb"
2872 for ol_val in no yes mod ; do
2873 if test "$enableval" = "$ol_val" ; then
2877 if test "$ol_arg" = "invalid" ; then
2878 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2879 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2880 { (exit 1); exit 1; }; }
2882 ol_enable_hdb="$ol_arg"
2885 ol_enable_hdb=${ol_enable_backends:-yes}
2888 # OpenLDAP --enable-ldap
2890 # Check whether --enable-ldap or --disable-ldap was given.
2891 if test "${enable_ldap+set}" = set; then
2892 enableval="$enable_ldap"
2895 for ol_val in no yes mod ; do
2896 if test "$enableval" = "$ol_val" ; then
2900 if test "$ol_arg" = "invalid" ; then
2901 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2902 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2903 { (exit 1); exit 1; }; }
2905 ol_enable_ldap="$ol_arg"
2908 ol_enable_ldap=${ol_enable_backends:-no}
2911 # OpenLDAP --enable-meta
2913 # Check whether --enable-meta or --disable-meta was given.
2914 if test "${enable_meta+set}" = set; then
2915 enableval="$enable_meta"
2918 for ol_val in no yes mod ; do
2919 if test "$enableval" = "$ol_val" ; then
2923 if test "$ol_arg" = "invalid" ; then
2924 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2925 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2926 { (exit 1); exit 1; }; }
2928 ol_enable_meta="$ol_arg"
2931 ol_enable_meta=${ol_enable_backends:-no}
2934 # OpenLDAP --enable-monitor
2936 # Check whether --enable-monitor or --disable-monitor was given.
2937 if test "${enable_monitor+set}" = set; then
2938 enableval="$enable_monitor"
2941 for ol_val in no yes mod ; do
2942 if test "$enableval" = "$ol_val" ; then
2946 if test "$ol_arg" = "invalid" ; then
2947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2949 { (exit 1); exit 1; }; }
2951 ol_enable_monitor="$ol_arg"
2954 ol_enable_monitor=${ol_enable_backends:-yes}
2956 # end --enable-monitor
2957 # OpenLDAP --enable-null
2959 # Check whether --enable-null or --disable-null was given.
2960 if test "${enable_null+set}" = set; then
2961 enableval="$enable_null"
2964 for ol_val in no yes mod ; do
2965 if test "$enableval" = "$ol_val" ; then
2969 if test "$ol_arg" = "invalid" ; then
2970 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2971 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2972 { (exit 1); exit 1; }; }
2974 ol_enable_null="$ol_arg"
2977 ol_enable_null=${ol_enable_backends:-no}
2980 # OpenLDAP --enable-passwd
2982 # Check whether --enable-passwd or --disable-passwd was given.
2983 if test "${enable_passwd+set}" = set; then
2984 enableval="$enable_passwd"
2987 for ol_val in no yes mod ; do
2988 if test "$enableval" = "$ol_val" ; then
2992 if test "$ol_arg" = "invalid" ; then
2993 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2994 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2995 { (exit 1); exit 1; }; }
2997 ol_enable_passwd="$ol_arg"
3000 ol_enable_passwd=${ol_enable_backends:-no}
3002 # end --enable-passwd
3003 # OpenLDAP --enable-perl
3005 # Check whether --enable-perl or --disable-perl was given.
3006 if test "${enable_perl+set}" = set; then
3007 enableval="$enable_perl"
3010 for ol_val in no yes mod ; do
3011 if test "$enableval" = "$ol_val" ; then
3015 if test "$ol_arg" = "invalid" ; then
3016 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3018 { (exit 1); exit 1; }; }
3020 ol_enable_perl="$ol_arg"
3023 ol_enable_perl=${ol_enable_backends:-no}
3026 # OpenLDAP --enable-relay
3028 # Check whether --enable-relay or --disable-relay was given.
3029 if test "${enable_relay+set}" = set; then
3030 enableval="$enable_relay"
3033 for ol_val in no yes mod ; do
3034 if test "$enableval" = "$ol_val" ; then
3038 if test "$ol_arg" = "invalid" ; then
3039 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3041 { (exit 1); exit 1; }; }
3043 ol_enable_relay="$ol_arg"
3046 ol_enable_relay=${ol_enable_backends:-yes}
3048 # end --enable-relay
3049 # OpenLDAP --enable-shell
3051 # Check whether --enable-shell or --disable-shell was given.
3052 if test "${enable_shell+set}" = set; then
3053 enableval="$enable_shell"
3056 for ol_val in no yes mod ; do
3057 if test "$enableval" = "$ol_val" ; then
3061 if test "$ol_arg" = "invalid" ; then
3062 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3063 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3064 { (exit 1); exit 1; }; }
3066 ol_enable_shell="$ol_arg"
3069 ol_enable_shell=${ol_enable_backends:-no}
3071 # end --enable-shell
3072 # OpenLDAP --enable-sql
3074 # Check whether --enable-sql or --disable-sql was given.
3075 if test "${enable_sql+set}" = set; then
3076 enableval="$enable_sql"
3079 for ol_val in no yes mod ; do
3080 if test "$enableval" = "$ol_val" ; then
3084 if test "$ol_arg" = "invalid" ; then
3085 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3086 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3087 { (exit 1); exit 1; }; }
3089 ol_enable_sql="$ol_arg"
3092 ol_enable_sql=${ol_enable_backends:-no}
3096 Overlays="accesslog \
3113 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3114 if test "${enable_xxslapoverlays+set}" = set; then
3115 enableval="$enable_xxslapoverlays"
3119 # OpenLDAP --enable-overlays
3121 # Check whether --enable-overlays or --disable-overlays was given.
3122 if test "${enable_overlays+set}" = set; then
3123 enableval="$enable_overlays"
3126 for ol_val in no yes mod ; do
3127 if test "$enableval" = "$ol_val" ; then
3131 if test "$ol_arg" = "invalid" ; then
3132 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3134 { (exit 1); exit 1; }; }
3136 ol_enable_overlays="$ol_arg"
3139 # end --enable-overlays
3140 # OpenLDAP --enable-accesslog
3142 # Check whether --enable-accesslog or --disable-accesslog was given.
3143 if test "${enable_accesslog+set}" = set; then
3144 enableval="$enable_accesslog"
3147 for ol_val in no yes mod ; do
3148 if test "$enableval" = "$ol_val" ; then
3152 if test "$ol_arg" = "invalid" ; then
3153 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3154 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3155 { (exit 1); exit 1; }; }
3157 ol_enable_accesslog="$ol_arg"
3160 ol_enable_accesslog=${ol_enable_overlays:-no}
3162 # end --enable-accesslog
3164 # OpenLDAP --enable-auditlog
3166 # Check whether --enable-auditlog or --disable-auditlog was given.
3167 if test "${enable_auditlog+set}" = set; then
3168 enableval="$enable_auditlog"
3171 for ol_val in no yes mod ; do
3172 if test "$enableval" = "$ol_val" ; then
3176 if test "$ol_arg" = "invalid" ; then
3177 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3179 { (exit 1); exit 1; }; }
3181 ol_enable_auditlog="$ol_arg"
3184 ol_enable_auditlog=${ol_enable_overlays:-no}
3186 # end --enable-auditlog
3188 # OpenLDAP --enable-constraint
3190 # Check whether --enable-constraint or --disable-constraint was given.
3191 if test "${enable_constraint+set}" = set; then
3192 enableval="$enable_constraint"
3195 for ol_val in no yes mod ; do
3196 if test "$enableval" = "$ol_val" ; then
3200 if test "$ol_arg" = "invalid" ; then
3201 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3202 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3203 { (exit 1); exit 1; }; }
3205 ol_enable_constraint="$ol_arg"
3208 ol_enable_constraint=${ol_enable_overlays:-no}
3210 # end --enable-constraint
3212 # OpenLDAP --enable-dds
3214 # Check whether --enable-dds or --disable-dds was given.
3215 if test "${enable_dds+set}" = set; then
3216 enableval="$enable_dds"
3219 for ol_val in no yes mod ; do
3220 if test "$enableval" = "$ol_val" ; then
3224 if test "$ol_arg" = "invalid" ; then
3225 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3227 { (exit 1); exit 1; }; }
3229 ol_enable_dds="$ol_arg"
3232 ol_enable_dds=${ol_enable_overlays:-no}
3236 # OpenLDAP --enable-dyngroup
3238 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3239 if test "${enable_dyngroup+set}" = set; then
3240 enableval="$enable_dyngroup"
3243 for ol_val in no yes mod ; do
3244 if test "$enableval" = "$ol_val" ; then
3248 if test "$ol_arg" = "invalid" ; then
3249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3251 { (exit 1); exit 1; }; }
3253 ol_enable_dyngroup="$ol_arg"
3256 ol_enable_dyngroup=${ol_enable_overlays:-no}
3258 # end --enable-dyngroup
3260 # OpenLDAP --enable-dynlist
3262 # Check whether --enable-dynlist or --disable-dynlist was given.
3263 if test "${enable_dynlist+set}" = set; then
3264 enableval="$enable_dynlist"
3267 for ol_val in no yes mod ; do
3268 if test "$enableval" = "$ol_val" ; then
3272 if test "$ol_arg" = "invalid" ; then
3273 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3275 { (exit 1); exit 1; }; }
3277 ol_enable_dynlist="$ol_arg"
3280 ol_enable_dynlist=${ol_enable_overlays:-no}
3282 # end --enable-dynlist
3284 # OpenLDAP --enable-ppolicy
3286 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3287 if test "${enable_ppolicy+set}" = set; then
3288 enableval="$enable_ppolicy"
3291 for ol_val in no yes mod ; do
3292 if test "$enableval" = "$ol_val" ; then
3296 if test "$ol_arg" = "invalid" ; then
3297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3299 { (exit 1); exit 1; }; }
3301 ol_enable_ppolicy="$ol_arg"
3304 ol_enable_ppolicy=${ol_enable_overlays:-no}
3306 # end --enable-ppolicy
3308 # OpenLDAP --enable-proxycache
3310 # Check whether --enable-proxycache or --disable-proxycache was given.
3311 if test "${enable_proxycache+set}" = set; then
3312 enableval="$enable_proxycache"
3315 for ol_val in no yes mod ; do
3316 if test "$enableval" = "$ol_val" ; then
3320 if test "$ol_arg" = "invalid" ; then
3321 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3323 { (exit 1); exit 1; }; }
3325 ol_enable_proxycache="$ol_arg"
3328 ol_enable_proxycache=${ol_enable_overlays:-no}
3330 # end --enable-proxycache
3332 # OpenLDAP --enable-refint
3334 # Check whether --enable-refint or --disable-refint was given.
3335 if test "${enable_refint+set}" = set; then
3336 enableval="$enable_refint"
3339 for ol_val in no yes mod ; do
3340 if test "$enableval" = "$ol_val" ; then
3344 if test "$ol_arg" = "invalid" ; then
3345 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3347 { (exit 1); exit 1; }; }
3349 ol_enable_refint="$ol_arg"
3352 ol_enable_refint=${ol_enable_overlays:-no}
3354 # end --enable-refint
3356 # OpenLDAP --enable-retcode
3358 # Check whether --enable-retcode or --disable-retcode was given.
3359 if test "${enable_retcode+set}" = set; then
3360 enableval="$enable_retcode"
3363 for ol_val in no yes mod ; do
3364 if test "$enableval" = "$ol_val" ; then
3368 if test "$ol_arg" = "invalid" ; then
3369 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3371 { (exit 1); exit 1; }; }
3373 ol_enable_retcode="$ol_arg"
3376 ol_enable_retcode=${ol_enable_overlays:-no}
3378 # end --enable-retcode
3380 # OpenLDAP --enable-rwm
3382 # Check whether --enable-rwm or --disable-rwm was given.
3383 if test "${enable_rwm+set}" = set; then
3384 enableval="$enable_rwm"
3387 for ol_val in no yes mod ; do
3388 if test "$enableval" = "$ol_val" ; then
3392 if test "$ol_arg" = "invalid" ; then
3393 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3395 { (exit 1); exit 1; }; }
3397 ol_enable_rwm="$ol_arg"
3400 ol_enable_rwm=${ol_enable_overlays:-no}
3404 # OpenLDAP --enable-seqmod
3406 # Check whether --enable-seqmod or --disable-seqmod was given.
3407 if test "${enable_seqmod+set}" = set; then
3408 enableval="$enable_seqmod"
3411 for ol_val in no yes mod ; do
3412 if test "$enableval" = "$ol_val" ; then
3416 if test "$ol_arg" = "invalid" ; then
3417 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3419 { (exit 1); exit 1; }; }
3421 ol_enable_seqmod="$ol_arg"
3424 ol_enable_seqmod=${ol_enable_overlays:-yes}
3426 # end --enable-seqmod
3428 # OpenLDAP --enable-syncprov
3430 # Check whether --enable-syncprov or --disable-syncprov was given.
3431 if test "${enable_syncprov+set}" = set; then
3432 enableval="$enable_syncprov"
3435 for ol_val in no yes mod ; do
3436 if test "$enableval" = "$ol_val" ; then
3440 if test "$ol_arg" = "invalid" ; then
3441 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3443 { (exit 1); exit 1; }; }
3445 ol_enable_syncprov="$ol_arg"
3448 ol_enable_syncprov=${ol_enable_overlays:-yes}
3450 # end --enable-syncprov
3452 # OpenLDAP --enable-translucent
3454 # Check whether --enable-translucent or --disable-translucent was given.
3455 if test "${enable_translucent+set}" = set; then
3456 enableval="$enable_translucent"
3459 for ol_val in no yes mod ; do
3460 if test "$enableval" = "$ol_val" ; then
3464 if test "$ol_arg" = "invalid" ; then
3465 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3467 { (exit 1); exit 1; }; }
3469 ol_enable_translucent="$ol_arg"
3472 ol_enable_translucent=${ol_enable_overlays:-no}
3474 # end --enable-translucent
3476 # OpenLDAP --enable-unique
3478 # Check whether --enable-unique or --disable-unique was given.
3479 if test "${enable_unique+set}" = set; then
3480 enableval="$enable_unique"
3483 for ol_val in no yes mod ; do
3484 if test "$enableval" = "$ol_val" ; then
3488 if test "$ol_arg" = "invalid" ; then
3489 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3491 { (exit 1); exit 1; }; }
3493 ol_enable_unique="$ol_arg"
3496 ol_enable_unique=${ol_enable_overlays:-no}
3498 # end --enable-unique
3500 # OpenLDAP --enable-valsort
3502 # Check whether --enable-valsort or --disable-valsort was given.
3503 if test "${enable_valsort+set}" = set; then
3504 enableval="$enable_valsort"
3507 for ol_val in no yes mod ; do
3508 if test "$enableval" = "$ol_val" ; then
3512 if test "$ol_arg" = "invalid" ; then
3513 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3515 { (exit 1); exit 1; }; }
3517 ol_enable_valsort="$ol_arg"
3520 ol_enable_valsort=${ol_enable_overlays:-no}
3522 # end --enable-valsort
3525 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3526 if test "${enable_xxliboptions+set}" = set; then
3527 enableval="$enable_xxliboptions"
3530 # Check whether --enable-static or --disable-static was given.
3531 if test "${enable_static+set}" = set; then
3532 enableval="$enable_static"
3533 p=${PACKAGE-default}
3535 yes) enable_static=yes ;;
3536 no) enable_static=no ;;
3539 # Look at the argument we got. We use all the common list separators.
3540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3541 for pkg in $enableval; do
3543 if test "X$pkg" = "X$p"; then
3554 # Check whether --enable-shared or --disable-shared was given.
3555 if test "${enable_shared+set}" = set; then
3556 enableval="$enable_shared"
3557 p=${PACKAGE-default}
3559 yes) enable_shared=yes ;;
3560 no) enable_shared=no ;;
3563 # Look at the argument we got. We use all the common list separators.
3564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3565 for pkg in $enableval; do
3567 if test "X$pkg" = "X$p"; then
3581 if test $ol_enable_slapd = no ; then
3582 if test $ol_enable_slapi = yes ; then
3583 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3584 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3586 case "$ol_enable_backends" in yes | mod)
3587 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3588 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3590 for i in $Backends; do
3591 eval "ol_tmp=\$ol_enable_$i"
3592 if test $ol_tmp != no ; then
3593 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3594 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3595 eval "ol_enable_$i=no"
3598 if test $ol_enable_modules = yes ; then
3599 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3600 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3602 if test $ol_enable_wrappers = yes ; then
3603 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3604 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3606 if test $ol_enable_rlookups = yes ; then
3607 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3608 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3610 if test $ol_enable_dynacl = yes ; then
3611 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3612 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3614 if test $ol_enable_aci != no ; then
3615 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3616 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3618 if test $ol_enable_rewrite = yes ; then
3619 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3622 case "$ol_enable_overlays" in yes | mod)
3623 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3624 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3626 for i in $Overlays; do
3627 eval "ol_tmp=\$ol_enable_$i"
3628 if test $ol_tmp != no ; then
3629 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3631 eval "ol_enable_$i=no"
3635 # force settings to no
3640 ol_enable_modules=no
3641 ol_enable_rlookups=no
3644 ol_enable_wrappers=no
3646 ol_enable_rewrite=no
3648 elif test $ol_enable_modules != yes &&
3649 test $ol_enable_bdb = no &&
3650 test $ol_enable_dnssrv = no &&
3651 test $ol_enable_hdb = no &&
3652 test $ol_enable_ldap = no &&
3653 test $ol_enable_meta = no &&
3654 test $ol_enable_monitor = no &&
3655 test $ol_enable_null = no &&
3656 test $ol_enable_passwd = no &&
3657 test $ol_enable_perl = no &&
3658 test $ol_enable_relay = no &&
3659 test $ol_enable_shell = no &&
3660 test $ol_enable_sql = no ; then
3662 if test $ol_enable_slapd = yes ; then
3663 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3664 echo "$as_me: error: slapd requires a backend" >&2;}
3665 { (exit 1); exit 1; }; }
3667 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3668 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3673 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3674 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3675 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3676 { (exit 1); exit 1; }; }
3679 if test $ol_enable_lmpasswd = yes ; then
3680 if test $ol_with_tls = no ; then
3681 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3682 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3683 { (exit 1); exit 1; }; }
3687 if test $ol_enable_spasswd = yes ; then
3688 if test $ol_with_cyrus_sasl = no ; then
3689 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3690 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3691 { (exit 1); exit 1; }; }
3693 ol_with_cyrus_sasl=yes
3696 echo "$as_me:$LINENO: result: done" >&5
3697 echo "${ECHO_T}done" >&6
3741 BUILD_TRANSLUCENT=no
3745 SLAPD_STATIC_OVERLAYS=
3746 SLAPD_DYNAMIC_OVERLAYS=
3748 SLAPD_MODULES_LDFLAGS=
3749 SLAPD_MODULES_CPPFLAGS=
3751 SLAPD_STATIC_BACKENDS=back-ldif
3752 SLAPD_DYNAMIC_BACKENDS=
3778 cat >>confdefs.h <<\_ACEOF
3779 #define HAVE_MKVERSION 1
3787 *-*-aix*) if test -z "$CC" ; then
3788 case "$ol_with_threads" in
3789 auto | yes | posix) ol_aix_threads=yes ;;
3795 if test $ol_aix_threads = yes ; then
3796 if test -z "${CC}" ; then
3797 for ac_prog in cc_r xlc_r cc
3799 # Extract the first word of "$ac_prog", so it can be a program name with args.
3800 set dummy $ac_prog; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_CC+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 if test -n "$CC"; then
3807 ac_cv_prog_CC="$CC" # Let the user override the test.
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_CC="$ac_prog"
3817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 if test -n "$CC"; then
3827 echo "$as_me:$LINENO: result: $CC" >&5
3828 echo "${ECHO_T}$CC" >&6
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3834 test -n "$CC" && break
3838 if test "$CC" = cc ; then
3839 if test $ol_with_threads != auto ; then
3840 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3841 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3842 { (exit 1); exit 1; }; }
3844 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3845 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3851 case ${CC} in cc_r | xlc_r)
3852 ol_with_threads=posix
3853 ol_cv_pthread_create=yes
3858 if test -z "${CC}"; then
3859 for ac_prog in cc gcc
3861 # Extract the first word of "$ac_prog", so it can be a program name with args.
3862 set dummy $ac_prog; ac_word=$2
3863 echo "$as_me:$LINENO: checking for $ac_word" >&5
3864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3865 if test "${ac_cv_prog_CC+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 if test -n "$CC"; then
3869 ac_cv_prog_CC="$CC" # Let the user override the test.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_prog_CC="$ac_prog"
3879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 if test -n "$CC"; then
3889 echo "$as_me:$LINENO: result: $CC" >&5
3890 echo "${ECHO_T}$CC" >&6
3892 echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3896 test -n "$CC" && break
3898 test -n "$CC" || CC="missing"
3901 if test "${CC}" = "missing" ; then
3902 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3903 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3904 { (exit 1); exit 1; }; }
3908 if test -z "${AR}"; then
3909 for ac_prog in ar gar
3911 # Extract the first word of "$ac_prog", so it can be a program name with args.
3912 set dummy $ac_prog; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_AR+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 if test -n "$AR"; then
3919 ac_cv_prog_AR="$AR" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_AR="$ac_prog"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test -n "$AR"; then
3939 echo "$as_me:$LINENO: result: $AR" >&5
3940 echo "${ECHO_T}$AR" >&6
3942 echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3946 test -n "$AR" && break
3948 test -n "$AR" || AR="missing"
3951 if test "${AR}" = "missing" ; then
3952 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3953 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3954 { (exit 1); exit 1; }; }
3962 # Check whether --enable-fast-install or --disable-fast-install was given.
3963 if test "${enable_fast_install+set}" = set; then
3964 enableval="$enable_fast_install"
3965 p=${PACKAGE-default}
3967 yes) enable_fast_install=yes ;;
3968 no) enable_fast_install=no ;;
3970 enable_fast_install=no
3971 # Look at the argument we got. We use all the common list separators.
3972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3973 for pkg in $enableval; do
3975 if test "X$pkg" = "X$p"; then
3976 enable_fast_install=yes
3983 enable_fast_install=yes
3986 DEPDIR="${am__leading_dot}deps"
3988 ac_config_commands="$ac_config_commands depfiles"
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3997 # If we don't find an include directive, just comment out the code.
3998 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3999 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # We grep out `Entering directory' and `Leaving directory'
4006 # messages which can occur if `w' ends up in MAKEFLAGS.
4007 # In particular we don't look at `^make:' because GNU make might
4008 # be invoked under some other name (usually "gmake"), in which
4009 # case it prints its new name instead of `make'.
4010 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4015 # Now try BSD make style include.
4016 if test "$am__include" = "#"; then
4017 echo '.include "confinc"' > confmf
4018 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4019 am__include=.include
4026 echo "$as_me:$LINENO: result: $_am_result" >&5
4027 echo "${ECHO_T}$_am_result" >&6
4028 rm -f confinc confmf
4030 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then
4032 enableval="$enable_dependency_tracking"
4035 if test "x$enable_dependency_tracking" != xno; then
4036 am_depcomp="$ac_aux_dir/depcomp"
4041 if test "x$enable_dependency_tracking" != xno; then
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 if test -n "$ac_tool_prefix"; then
4057 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4058 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_prog_CC+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 if test -n "$CC"; then
4065 ac_cv_prog_CC="$CC" # Let the user override the test.
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 if test -n "$CC"; then
4085 echo "$as_me:$LINENO: result: $CC" >&5
4086 echo "${ECHO_T}$CC" >&6
4088 echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4093 if test -z "$ac_cv_prog_CC"; then
4095 # Extract the first word of "gcc", so it can be a program name with args.
4096 set dummy gcc; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 if test -n "$ac_ct_CC"; then
4103 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_ac_ct_CC="gcc"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4122 if test -n "$ac_ct_CC"; then
4123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4124 echo "${ECHO_T}$ac_ct_CC" >&6
4126 echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4135 if test -z "$CC"; then
4136 if test -n "$ac_tool_prefix"; then
4137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}cc; ac_word=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_prog_CC+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154 ac_cv_prog_CC="${ac_tool_prefix}cc"
4155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 if test -n "$CC"; then
4165 echo "$as_me:$LINENO: result: $CC" >&5
4166 echo "${ECHO_T}$CC" >&6
4168 echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6
4173 if test -z "$ac_cv_prog_CC"; then
4175 # Extract the first word of "cc", so it can be a program name with args.
4176 set dummy cc; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 if test -n "$ac_ct_CC"; then
4183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_ac_ct_CC="cc"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4204 echo "${ECHO_T}$ac_ct_CC" >&6
4206 echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4216 if test -z "$CC"; then
4217 # Extract the first word of "cc", so it can be a program name with args.
4218 set dummy cc; ac_word=$2
4219 echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_CC+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$CC"; then
4225 ac_cv_prog_CC="$CC" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4236 ac_prog_rejected=yes
4240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 if test $ac_prog_rejected = yes; then
4247 # We found a bogon in the path, so make sure we never use it.
4248 set dummy $ac_cv_prog_CC
4250 if test $# != 0; then
4251 # We chose a different compiler from the bogus one.
4252 # However, it has the same basename, so the bogon will be chosen
4253 # first if we set CC to just the basename; use the full file name.
4255 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4261 if test -n "$CC"; then
4262 echo "$as_me:$LINENO: result: $CC" >&5
4263 echo "${ECHO_T}$CC" >&6
4265 echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4270 if test -z "$CC"; then
4271 if test -n "$ac_tool_prefix"; then
4274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_CC+set}" = set; then
4279 echo $ECHO_N "(cached) $ECHO_C" >&6
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC="$CC" # Let the user override the test.
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 if test -n "$CC"; then
4302 echo "$as_me:$LINENO: result: $CC" >&5
4303 echo "${ECHO_T}$CC" >&6
4305 echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4309 test -n "$CC" && break
4312 if test -z "$CC"; then
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test -n "$ac_ct_CC"; then
4324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_CC="$ac_prog"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4343 if test -n "$ac_ct_CC"; then
4344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4345 echo "${ECHO_T}$ac_ct_CC" >&6
4347 echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4351 test -n "$ac_ct_CC" && break
4360 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4361 See \`config.log' for more details." >&5
4362 echo "$as_me: error: no acceptable C compiler found in \$PATH
4363 See \`config.log' for more details." >&2;}
4364 { (exit 1); exit 1; }; }
4366 # Provide some information about the compiler.
4367 echo "$as_me:$LINENO:" \
4368 "checking for C compiler version" >&5
4369 ac_compiler=`set X $ac_compile; echo $2`
4370 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4371 (eval $ac_compiler --version </dev/null >&5) 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }
4375 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4376 (eval $ac_compiler -v </dev/null >&5) 2>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }
4380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4381 (eval $ac_compiler -V </dev/null >&5) 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4401 ac_clean_files_save=$ac_clean_files
4402 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4403 # Try to create an executable without -o first, disregard a.out.
4404 # It will help us diagnose broken compilers, and finding out an intuition
4406 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4407 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4408 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4410 (eval $ac_link_default) 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; then
4414 # Find the output, starting from the most likely. This scheme is
4415 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4418 # Be careful to initialize this variable, since it used to be cached.
4419 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4421 # b.out is created by i960 compilers.
4422 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4424 test -f "$ac_file" || continue
4426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4429 # This is the source file.
4432 # We found the default executable, but exeext='' is most
4436 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4437 # FIXME: I believe we export ac_cv_exeext for Libtool,
4438 # but it would be cool to find out if it's true. Does anybody
4439 # maintain Libtool? --akim.
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4451 See \`config.log' for more details." >&5
4452 echo "$as_me: error: C compiler cannot create executables
4453 See \`config.log' for more details." >&2;}
4454 { (exit 77); exit 77; }; }
4457 ac_exeext=$ac_cv_exeext
4458 echo "$as_me:$LINENO: result: $ac_file" >&5
4459 echo "${ECHO_T}$ac_file" >&6
4461 # Check the compiler produces executables we can run. If not, either
4462 # the compiler is broken, or we cross compile.
4463 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4464 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4466 # If not cross compiling, check that we can run a simple program.
4467 if test "$cross_compiling" != yes; then
4468 if { ac_try='./$ac_file'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4476 if test "$cross_compiling" = maybe; then
4479 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4480 If you meant to cross compile, use \`--host'.
4481 See \`config.log' for more details." >&5
4482 echo "$as_me: error: cannot run C compiled programs.
4483 If you meant to cross compile, use \`--host'.
4484 See \`config.log' for more details." >&2;}
4485 { (exit 1); exit 1; }; }
4489 echo "$as_me:$LINENO: result: yes" >&5
4490 echo "${ECHO_T}yes" >&6
4492 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4493 ac_clean_files=$ac_clean_files_save
4494 # Check the compiler produces executables we can run. If not, either
4495 # the compiler is broken, or we cross compile.
4496 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4497 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4498 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4499 echo "${ECHO_T}$cross_compiling" >&6
4501 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4502 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504 (eval $ac_link) 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; then
4508 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4509 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4510 # work properly (i.e., refer to `conftest.exe'), while it won't with
4512 for ac_file in conftest.exe conftest conftest.*; do
4513 test -f "$ac_file" || continue
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4524 See \`config.log' for more details." >&5
4525 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4526 See \`config.log' for more details." >&2;}
4527 { (exit 1); exit 1; }; }
4530 rm -f conftest$ac_cv_exeext
4531 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4532 echo "${ECHO_T}$ac_cv_exeext" >&6
4534 rm -f conftest.$ac_ext
4535 EXEEXT=$ac_cv_exeext
4537 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4538 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4539 if test "${ac_cv_objext+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 cat >conftest.$ac_ext <<_ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4557 rm -f conftest.o conftest.obj
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559 (eval $ac_compile) 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; then
4563 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4575 See \`config.log' for more details." >&5
4576 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4577 See \`config.log' for more details." >&2;}
4578 { (exit 1); exit 1; }; }
4581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4583 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4584 echo "${ECHO_T}$ac_cv_objext" >&6
4585 OBJEXT=$ac_cv_objext
4587 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4588 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4589 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 cat >conftest.$ac_ext <<_ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612 (eval $ac_compile) 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -z "$ac_c_werror_flag"
4620 || test ! -s conftest.err'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; } &&
4626 { ac_try='test -s conftest.$ac_objext'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; }; then
4634 echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4643 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4644 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4645 GCC=`test $ac_compiler_gnu = yes && echo yes`
4646 ac_test_CFLAGS=${CFLAGS+set}
4647 ac_save_CFLAGS=$CFLAGS
4649 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4650 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4651 if test "${ac_cv_prog_cc_g+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 cat >conftest.$ac_ext <<_ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_c_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4701 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4702 if test "$ac_test_CFLAGS" = set; then
4703 CFLAGS=$ac_save_CFLAGS
4704 elif test $ac_cv_prog_cc_g = yes; then
4705 if test "$GCC" = yes; then
4711 if test "$GCC" = yes; then
4717 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4718 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4719 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 ac_cv_prog_cc_stdc=no
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4732 #include <sys/types.h>
4733 #include <sys/stat.h>
4734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4735 struct buf { int x; };
4736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4737 static char *e (p, i)
4743 static char *f (char * (*g) (char **, int), char **p, ...)
4748 s = g (p, va_arg (v,int));
4753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4754 function prototypes and stuff, but not '\xHH' hex character constants.
4755 These don't provoke an error unfortunately, instead are silently treated
4756 as 'x'. The following induces an error, until -std1 is added to get
4757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4758 array size at least. It's necessary to write '\x00'==0 to get something
4759 that's true only with -std1. */
4760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4762 int test (int i, double x);
4763 struct s1 {int (*f) (int a);};
4764 struct s2 {int (*f) (double a);};
4765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4776 # Don't try gcc -ansi; that turns off useful extensions and
4777 # breaks some systems' header files.
4778 # AIX -qlanglvl=ansi
4779 # Ultrix and OSF/1 -std1
4780 # HP-UX 10.20 and later -Ae
4781 # HP-UX older versions -Aa -D_HPUX_SOURCE
4782 # SVR4 -Xc -D__EXTENSIONS__
4783 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4785 CC="$ac_save_CC $ac_arg"
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } &&
4795 { ac_try='test -z "$ac_c_werror_flag"
4796 || test ! -s conftest.err'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_prog_cc_stdc=$ac_arg
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4815 rm -f conftest.err conftest.$ac_objext
4817 rm -f conftest.$ac_ext conftest.$ac_objext
4822 case "x$ac_cv_prog_cc_stdc" in
4824 echo "$as_me:$LINENO: result: none needed" >&5
4825 echo "${ECHO_T}none needed" >&6 ;;
4827 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4828 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4829 CC="$CC $ac_cv_prog_cc_stdc" ;;
4832 # Some people use a C++ compiler to compile C. Since we use `exit',
4833 # in C++ we need to declare it. In case someone uses the same compiler
4834 # for both compiling C and C++ we need to have the C++ compiler decide
4835 # the declaration of exit, since it's the most demanding environment.
4836 cat >conftest.$ac_ext <<_ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843 (eval $ac_compile) 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -z "$ac_c_werror_flag"
4851 || test ! -s conftest.err'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; } &&
4857 { ac_try='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 for ac_declaration in \
4865 'extern "C" void std::exit (int) throw (); using std::exit;' \
4866 'extern "C" void std::exit (int); using std::exit;' \
4867 'extern "C" void exit (int) throw ();' \
4868 'extern "C" void exit (int);' \
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4887 rm -f conftest.$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889 (eval $ac_compile) 2>conftest.er1
4891 grep -v '^ *+' conftest.er1 >conftest.err
4893 cat conftest.err >&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -z "$ac_c_werror_flag"
4897 || test ! -s conftest.err'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest.$ac_objext'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; }; then
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -z "$ac_c_werror_flag"
4942 || test ! -s conftest.err'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4956 echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 if test -n "$ac_declaration"; then
4964 echo '#ifdef __cplusplus' >>confdefs.h
4965 echo $ac_declaration >>confdefs.h
4966 echo '#endif' >>confdefs.h
4970 echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 depcc="$CC" am_compiler_list=
4983 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4984 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4985 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4989 # We make a subdir and do the tests there. Otherwise we can end up
4990 # making bogus files that we don't know about and never remove. For
4991 # instance it was reported that on HP-UX the gcc test will end up
4992 # making a dummy file named `D' -- because `-MD' means `put the output
4995 # Copy depcomp to subdir because otherwise we won't find it if we're
4996 # using a relative directory.
4997 cp "$am_depcomp" conftest.dir
4999 # We will build objects and dependencies in a subdirectory because
5000 # it helps to detect inapplicable dependency modes. For instance
5001 # both Tru64's cc and ICC support -MD to output dependencies as a
5002 # side effect of compilation, but ICC will put the dependencies in
5003 # the current directory while Tru64 will put them in the object
5007 am_cv_CC_dependencies_compiler_type=none
5008 if test "$am_compiler_list" = ""; then
5009 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5011 for depmode in $am_compiler_list; do
5012 # Setup a source with many dependencies, because some compilers
5013 # like to wrap large dependency lists on column 80 (with \), and
5014 # we should not choose a depcomp mode which is confused by this.
5016 # We need to recreate these files for each test, as the compiler may
5017 # overwrite some of them when testing with obscure command lines.
5018 # This happens at least with the AIX C compiler.
5020 for i in 1 2 3 4 5 6; do
5021 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5022 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5023 # Solaris 8's {/usr,}/bin/sh.
5024 touch sub/conftst$i.h
5026 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5030 # after this tag, mechanisms are not by side-effect, so they'll
5031 # only be used when explicitly requested
5032 if test "x$enable_dependency_tracking" = xyes; then
5040 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5041 # mode. It turns out that the SunPro C++ compiler does not properly
5042 # handle `-M -o', and we need to detect this.
5043 if depmode=$depmode \
5044 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5045 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5046 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5047 >/dev/null 2>conftest.err &&
5048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051 # icc doesn't choke on unknown options, it will just issue warnings
5052 # or remarks (even with -Werror). So we grep stderr for any message
5053 # that says an option was ignored or not supported.
5054 # When given -MP, icc 7.0 and 7.1 complain thusly:
5055 # icc: Command line warning: ignoring option '-M'; no argument required
5056 # The diagnosis changed in icc 8.0:
5057 # icc: Command line remark: option '-MP' not supported
5058 if (grep 'ignoring option' conftest.err ||
5059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060 am_cv_CC_dependencies_compiler_type=$depmode
5069 am_cv_CC_dependencies_compiler_type=none
5073 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5080 test "x$enable_dependency_tracking" != xno \
5081 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5083 am__fastdepCC_FALSE='#'
5085 am__fastdepCC_TRUE='#'
5086 am__fastdepCC_FALSE=
5090 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5091 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5092 if test "${lt_cv_path_SED+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 # Loop through the user's path and test for sed and gsed.
5096 # Then use that list of sed's as ones to test for truncation.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for lt_ac_prog in sed gsed; do
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5105 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5112 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5113 # along with /bin/sed that truncates output.
5114 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5115 test ! -f $lt_ac_sed && continue
5116 cat /dev/null > conftest.in
5118 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5119 # Check for GNU sed and select it if it is found.
5120 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5121 lt_cv_path_SED=$lt_ac_sed
5125 cat conftest.in conftest.in >conftest.tmp
5126 mv conftest.tmp conftest.in
5127 cp conftest.in conftest.nl
5129 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5130 cmp -s conftest.out conftest.nl || break
5131 # 10000 chars as input seems more than enough
5132 test $lt_ac_count -gt 10 && break
5133 lt_ac_count=`expr $lt_ac_count + 1`
5134 if test $lt_ac_count -gt $lt_ac_max; then
5135 lt_ac_max=$lt_ac_count
5136 lt_cv_path_SED=$lt_ac_sed
5144 echo "$as_me:$LINENO: result: $SED" >&5
5145 echo "${ECHO_T}$SED" >&6
5147 echo "$as_me:$LINENO: checking for egrep" >&5
5148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5149 if test "${ac_cv_prog_egrep+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5153 then ac_cv_prog_egrep='grep -E'
5154 else ac_cv_prog_egrep='egrep'
5157 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5158 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5159 EGREP=$ac_cv_prog_egrep
5163 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5164 if test "${with_gnu_ld+set}" = set; then
5165 withval="$with_gnu_ld"
5166 test "$withval" = no || with_gnu_ld=yes
5171 if test "$GCC" = yes; then
5172 # Check if gcc -print-prog-name=ld gives a path.
5173 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5174 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5177 # gcc leaves a trailing carriage return which upsets mingw
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5183 # Accept absolute paths.
5185 re_direlt='/[^/][^/]*/\.\./'
5186 # Canonicalize the pathname of ld
5187 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5188 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5189 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5191 test -z "$LD" && LD="$ac_prog"
5194 # If it fails, then pretend we aren't using GCC.
5198 # If it is relative, then search for the first ld in PATH.
5202 elif test "$with_gnu_ld" = yes; then
5203 echo "$as_me:$LINENO: checking for GNU ld" >&5
5204 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5206 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5207 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5209 if test "${lt_cv_path_LD+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 if test -z "$LD"; then
5213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5214 for ac_dir in $PATH; do
5216 test -z "$ac_dir" && ac_dir=.
5217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5218 lt_cv_path_LD="$ac_dir/$ac_prog"
5219 # Check to see if the program is GNU ld. I'd rather use --version,
5220 # but apparently some variants of GNU ld only accept -v.
5221 # Break only if it was the GNU/non-GNU ld that we prefer.
5222 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5223 *GNU* | *'with BFD'*)
5224 test "$with_gnu_ld" != no && break
5227 test "$with_gnu_ld" != yes && break
5234 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5239 if test -n "$LD"; then
5240 echo "$as_me:$LINENO: result: $LD" >&5
5241 echo "${ECHO_T}$LD" >&6
5243 echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6
5246 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5247 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5248 { (exit 1); exit 1; }; }
5249 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5250 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5251 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5255 case `$LD -v 2>&1 </dev/null` in
5256 *GNU* | *'with BFD'*)
5257 lt_cv_prog_gnu_ld=yes
5260 lt_cv_prog_gnu_ld=no
5264 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5265 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5266 with_gnu_ld=$lt_cv_prog_gnu_ld
5269 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5270 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5271 if test "${lt_cv_ld_reload_flag+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 lt_cv_ld_reload_flag='-r'
5276 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5277 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5278 reload_flag=$lt_cv_ld_reload_flag
5279 case $reload_flag in
5281 *) reload_flag=" $reload_flag" ;;
5283 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5286 if test "$GCC" = yes; then
5287 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5289 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5294 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5295 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5296 if test "${lt_cv_path_NM+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 if test -n "$NM"; then
5300 # Let the user override the test.
5303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5304 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5306 test -z "$ac_dir" && ac_dir=.
5307 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5308 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5309 # Check to see if the nm accepts a BSD-compat flag.
5310 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5311 # nm: unknown option "B" ignored
5312 # Tru64's nm complains that /dev/null is an invalid object file
5313 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5314 */dev/null* | *'Invalid file or object type'*)
5315 lt_cv_path_NM="$tmp_nm -B"
5319 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5321 lt_cv_path_NM="$tmp_nm -p"
5325 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5326 continue # so that we can try to find one that supports BSD flags
5333 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5336 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5337 echo "${ECHO_T}$lt_cv_path_NM" >&6
5340 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5341 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5343 if test "$LN_S" = "ln -s"; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345 echo "${ECHO_T}yes" >&6
5347 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5348 echo "${ECHO_T}no, using $LN_S" >&6
5351 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5352 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5353 if test "${lt_cv_deplibs_check_method+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 lt_cv_file_magic_cmd='$MAGIC_CMD'
5357 lt_cv_file_magic_test_file=
5358 lt_cv_deplibs_check_method='unknown'
5359 # Need to set the preceding variable on all platforms that support
5360 # interlibrary dependencies.
5361 # 'none' -- dependencies not supported.
5362 # `unknown' -- same as none, but documents that we really don't know.
5363 # 'pass_all' -- all dependencies passed with no checks.
5364 # 'test_compile' -- check by making test program.
5365 # 'file_magic [[regex]]' -- check by looking for files in library path
5366 # which responds to the $file_magic_cmd with a given extended regex.
5367 # If you have `file' or equivalent on your system and you're not sure
5368 # whether `pass_all' will *always* work, you probably want this one.
5372 lt_cv_deplibs_check_method=pass_all
5376 lt_cv_deplibs_check_method=pass_all
5380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5381 lt_cv_file_magic_cmd='/usr/bin/file -L'
5382 lt_cv_file_magic_test_file=/shlib/libc.so
5386 # func_win32_libid is a shell function defined in ltmain.sh
5387 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5388 lt_cv_file_magic_cmd='func_win32_libid'
5392 # Base MSYS/MinGW do not provide the 'file' command needed by
5393 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5394 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5395 lt_cv_file_magic_cmd='$OBJDUMP -f'
5398 darwin* | rhapsody*)
5399 lt_cv_deplibs_check_method=pass_all
5402 freebsd* | kfreebsd*-gnu | dragonfly*)
5403 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5406 # Not sure whether the presence of OpenBSD here was a mistake.
5407 # Let's accept both of them until this is cleared up.
5408 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5409 lt_cv_file_magic_cmd=/usr/bin/file
5410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5414 lt_cv_deplibs_check_method=pass_all
5419 lt_cv_deplibs_check_method=pass_all
5422 hpux10.20* | hpux11*)
5423 lt_cv_file_magic_cmd=/usr/bin/file
5426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5427 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5430 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]'
5431 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5434 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5435 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5440 irix5* | irix6* | nonstopux*)
5442 *-32|*"-32 ") libmagic=32-bit;;
5443 *-n32|*"-n32 ") libmagic=N32;;
5444 *-64|*"-64 ") libmagic=64-bit;;
5445 *) libmagic=never-match;;
5447 lt_cv_deplibs_check_method=pass_all
5450 # This must be Linux ELF.
5452 lt_cv_deplibs_check_method=pass_all
5456 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5465 lt_cv_file_magic_cmd=/usr/bin/file
5466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5470 lt_cv_deplibs_check_method=unknown
5474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5481 osf3* | osf4* | osf5*)
5482 lt_cv_deplibs_check_method=pass_all
5486 lt_cv_deplibs_check_method=pass_all
5490 lt_cv_deplibs_check_method=pass_all
5493 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5494 case $host_vendor in
5496 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]'
5497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5500 lt_cv_deplibs_check_method=pass_all
5503 lt_cv_file_magic_cmd='/bin/file'
5504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5507 lt_cv_file_magic_cmd='/bin/file'
5508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5509 lt_cv_file_magic_test_file=/lib/libc.so
5512 lt_cv_deplibs_check_method=pass_all
5517 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5518 lt_cv_deplibs_check_method=pass_all
5523 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5524 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5525 file_magic_cmd=$lt_cv_file_magic_cmd
5526 deplibs_check_method=$lt_cv_deplibs_check_method
5527 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5532 # If no C compiler was specified, use CC.
5535 # Allow CC to be a program name with arguments.
5539 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5540 if test "${enable_libtool_lock+set}" = set; then
5541 enableval="$enable_libtool_lock"
5544 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5546 # Some flags need to be propagated to the compiler or linker for good
5550 # Find out which ABI we are using.
5551 echo 'int i;' > conftest.$ac_ext
5552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553 (eval $ac_compile) 2>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; then
5557 case `/usr/bin/file conftest.$ac_objext` in
5569 # Find out which ABI we are using.
5570 echo '#line 5570 "configure"' > conftest.$ac_ext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572 (eval $ac_compile) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; then
5576 if test "$lt_cv_prog_gnu_ld" = yes; then
5577 case `/usr/bin/file conftest.$ac_objext` in
5579 LD="${LD-ld} -melf32bsmip"
5582 LD="${LD-ld} -melf32bmipn32"
5585 LD="${LD-ld} -melf64bmip"
5589 case `/usr/bin/file conftest.$ac_objext` in
5605 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5606 # Find out which ABI we are using.
5607 echo 'int i;' > conftest.$ac_ext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609 (eval $ac_compile) 2>&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; then
5613 case `/usr/bin/file conftest.o` in
5617 LD="${LD-ld} -m elf_i386"
5619 ppc64-*linux*|powerpc64-*linux*)
5620 LD="${LD-ld} -m elf32ppclinux"
5623 LD="${LD-ld} -m elf_s390"
5626 LD="${LD-ld} -m elf32_sparc"
5633 LD="${LD-ld} -m elf_x86_64"
5635 ppc*-*linux*|powerpc*-*linux*)
5636 LD="${LD-ld} -m elf64ppc"
5639 LD="${LD-ld} -m elf64_s390"
5642 LD="${LD-ld} -m elf64_sparc"
5652 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5653 SAVE_CFLAGS="$CFLAGS"
5654 CFLAGS="$CFLAGS -belf"
5655 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5656 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5657 if test "${lt_cv_cc_needs_belf+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5685 grep -v '^ *+' conftest.er1 >conftest.err
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 lt_cv_cc_needs_belf=yes
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5708 lt_cv_cc_needs_belf=no
5710 rm -f conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5713 ac_cpp='$CPP $CPPFLAGS'
5714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5719 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5720 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5721 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5722 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5723 CFLAGS="$SAVE_CFLAGS"
5726 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5727 if test -n "$ac_tool_prefix"; then
5728 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 if test -n "$DLLTOOL"; then
5736 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 DLLTOOL=$ac_cv_prog_DLLTOOL
5755 if test -n "$DLLTOOL"; then
5756 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5757 echo "${ECHO_T}$DLLTOOL" >&6
5759 echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5764 if test -z "$ac_cv_prog_DLLTOOL"; then
5765 ac_ct_DLLTOOL=$DLLTOOL
5766 # Extract the first word of "dlltool", so it can be a program name with args.
5767 set dummy dlltool; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 if test -n "$ac_ct_DLLTOOL"; then
5774 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5793 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5794 if test -n "$ac_ct_DLLTOOL"; then
5795 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5796 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5798 echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5802 DLLTOOL=$ac_ct_DLLTOOL
5804 DLLTOOL="$ac_cv_prog_DLLTOOL"
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}as; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_AS+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 if test -n "$AS"; then
5816 ac_cv_prog_AS="$AS" # Let the user override the test.
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_AS="${ac_tool_prefix}as"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 if test -n "$AS"; then
5836 echo "$as_me:$LINENO: result: $AS" >&5
5837 echo "${ECHO_T}$AS" >&6
5839 echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5844 if test -z "$ac_cv_prog_AS"; then
5846 # Extract the first word of "as", so it can be a program name with args.
5847 set dummy as; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 if test -n "$ac_ct_AS"; then
5854 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_ac_ct_AS="as"
5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5873 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5874 if test -n "$ac_ct_AS"; then
5875 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5876 echo "${ECHO_T}$ac_ct_AS" >&6
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5887 if test -n "$ac_tool_prefix"; then
5888 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 if test -n "$OBJDUMP"; then
5896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 OBJDUMP=$ac_cv_prog_OBJDUMP
5915 if test -n "$OBJDUMP"; then
5916 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5917 echo "${ECHO_T}$OBJDUMP" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5924 if test -z "$ac_cv_prog_OBJDUMP"; then
5925 ac_ct_OBJDUMP=$OBJDUMP
5926 # Extract the first word of "objdump", so it can be a program name with args.
5927 set dummy objdump; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 if test -n "$ac_ct_OBJDUMP"; then
5934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5954 if test -n "$ac_ct_OBJDUMP"; then
5955 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5956 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5962 OBJDUMP=$ac_ct_OBJDUMP
5964 OBJDUMP="$ac_cv_prog_OBJDUMP"
5971 need_locks="$enable_libtool_lock"
5975 ac_cpp='$CPP $CPPFLAGS'
5976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5981 # On Suns, sometimes $CPP names a directory.
5982 if test -n "$CPP" && test -d "$CPP"; then
5985 if test -z "$CPP"; then
5986 if test "${ac_cv_prog_CPP+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 # Double quotes because CPP needs to be expanded
5990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5993 for ac_c_preproc_warn_flag in '' yes
5995 # Use a header file that comes with gcc, so configuring glibc
5996 # with a fresh cross-compiler works.
5997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5998 # <limits.h> exists even on freestanding compilers.
5999 # On the NeXT, cc -E runs the code through the compiler's parser,
6000 # not just through cpp. "Syntax error" is here to catch this case.
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6008 # include <limits.h>
6010 # include <assert.h>
6014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } >/dev/null; then
6022 if test -s conftest.err; then
6023 ac_cpp_err=$ac_c_preproc_warn_flag
6024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6031 if test -z "$ac_cpp_err"; then
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 # Broken: fails on valid input.
6040 rm -f conftest.err conftest.$ac_ext
6042 # OK, works on sane cases. Now check whether non-existent headers
6043 # can be detected and how.
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #include <ac_nonexistent.h>
6052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } >/dev/null; then
6060 if test -s conftest.err; then
6061 ac_cpp_err=$ac_c_preproc_warn_flag
6062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6069 if test -z "$ac_cpp_err"; then
6070 # Broken: success on invalid input.
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 # Passes both tests.
6080 rm -f conftest.err conftest.$ac_ext
6083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6084 rm -f conftest.err conftest.$ac_ext
6085 if $ac_preproc_ok; then
6097 echo "$as_me:$LINENO: result: $CPP" >&5
6098 echo "${ECHO_T}$CPP" >&6
6100 for ac_c_preproc_warn_flag in '' yes
6102 # Use a header file that comes with gcc, so configuring glibc
6103 # with a fresh cross-compiler works.
6104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6105 # <limits.h> exists even on freestanding compilers.
6106 # On the NeXT, cc -E runs the code through the compiler's parser,
6107 # not just through cpp. "Syntax error" is here to catch this case.
6108 cat >conftest.$ac_ext <<_ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6115 # include <limits.h>
6117 # include <assert.h>
6121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } >/dev/null; then
6129 if test -s conftest.err; then
6130 ac_cpp_err=$ac_c_preproc_warn_flag
6131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6138 if test -z "$ac_cpp_err"; then
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 # Broken: fails on valid input.
6147 rm -f conftest.err conftest.$ac_ext
6149 # OK, works on sane cases. Now check whether non-existent headers
6150 # can be detected and how.
6151 cat >conftest.$ac_ext <<_ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #include <ac_nonexistent.h>
6159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6162 grep -v '^ *+' conftest.er1 >conftest.err
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } >/dev/null; then
6167 if test -s conftest.err; then
6168 ac_cpp_err=$ac_c_preproc_warn_flag
6169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6176 if test -z "$ac_cpp_err"; then
6177 # Broken: success on invalid input.
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 # Passes both tests.
6187 rm -f conftest.err conftest.$ac_ext
6190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6191 rm -f conftest.err conftest.$ac_ext
6192 if $ac_preproc_ok; then
6195 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6196 See \`config.log' for more details." >&5
6197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6198 See \`config.log' for more details." >&2;}
6199 { (exit 1); exit 1; }; }
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6211 if test "${ac_cv_header_stdc+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6233 rm -f conftest.$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235 (eval $ac_compile) 2>conftest.er1
6237 grep -v '^ *+' conftest.er1 >conftest.err
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try='test -z "$ac_c_werror_flag"
6243 || test ! -s conftest.err'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_header_stdc=yes
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_cv_header_stdc=no
6262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6264 if test $ac_cv_header_stdc = yes; then
6265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266 cat >conftest.$ac_ext <<_ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6276 $EGREP "memchr" >/dev/null 2>&1; then
6279 ac_cv_header_stdc=no
6285 if test $ac_cv_header_stdc = yes; then
6286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297 $EGREP "free" >/dev/null 2>&1; then
6300 ac_cv_header_stdc=no
6306 if test $ac_cv_header_stdc = yes; then
6307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6308 if test "$cross_compiling" = yes; then
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 #if ((' ' & 0x0FF) == 0x020)
6319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6322 # define ISLOWER(c) \
6323 (('a' <= (c) && (c) <= 'i') \
6324 || ('j' <= (c) && (c) <= 'r') \
6325 || ('s' <= (c) && (c) <= 'z'))
6326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6334 for (i = 0; i < 256; i++)
6335 if (XOR (islower (i), ISLOWER (i))
6336 || toupper (i) != TOUPPER (i))
6341 rm -f conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6354 echo "$as_me: program exited with status $ac_status" >&5
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_cv_header_stdc=no
6361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6367 if test $ac_cv_header_stdc = yes; then
6369 cat >>confdefs.h <<\_ACEOF
6370 #define STDC_HEADERS 1
6375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6386 inttypes.h stdint.h unistd.h
6388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389 echo "$as_me:$LINENO: checking for $ac_header" >&5
6390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 cat >conftest.$ac_ext <<_ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 $ac_includes_default
6402 #include <$ac_header>
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6408 grep -v '^ *+' conftest.er1 >conftest.err
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 eval "$as_ac_Header=yes"
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 eval "$as_ac_Header=no"
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438 cat >>confdefs.h <<_ACEOF
6439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6448 for ac_header in dlfcn.h
6450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452 echo "$as_me:$LINENO: checking for $ac_header" >&5
6453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6460 # Is the header compilable?
6461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6463 cat >conftest.$ac_ext <<_ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6470 #include <$ac_header>
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474 (eval $ac_compile) 2>conftest.er1
6476 grep -v '^ *+' conftest.er1 >conftest.err
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -z "$ac_c_werror_flag"
6482 || test ! -s conftest.err'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; } &&
6488 { ac_try='test -s conftest.$ac_objext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 ac_header_compiler=yes
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 ac_header_compiler=no
6501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6503 echo "${ECHO_T}$ac_header_compiler" >&6
6505 # Is the header present?
6506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6508 cat >conftest.$ac_ext <<_ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 #include <$ac_header>
6516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } >/dev/null; then
6524 if test -s conftest.err; then
6525 ac_cpp_err=$ac_c_preproc_warn_flag
6526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6533 if test -z "$ac_cpp_err"; then
6534 ac_header_preproc=yes
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 ac_header_preproc=no
6541 rm -f conftest.err conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6543 echo "${ECHO_T}$ac_header_preproc" >&6
6545 # So? What about this header?
6546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6552 ac_header_preproc=yes
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6569 ## --------------------------------------------- ##
6570 ## Report this to <http://www.openldap.org/its/> ##
6571 ## --------------------------------------------- ##
6574 sed "s/^/$as_me: WARNING: /" >&2
6577 echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 eval "$as_ac_Header=\$ac_header_preproc"
6584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h <<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6598 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6600 # find the maximum length of command line arguments
6601 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6602 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6603 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 # On DJGPP, this test can blow up pretty badly due to problems in libc
6612 # (any single argument exceeding 2000 bytes causes a buffer overrun
6613 # during glob expansion). Even if it were fixed, the result of this
6614 # check would be larger than it should be.
6615 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6619 # Under GNU Hurd, this test is not required because there is
6620 # no limit to the length of command line arguments.
6621 # Libtool will interpret -1 as no limit whatsoever
6622 lt_cv_sys_max_cmd_len=-1;
6626 # On Win9x/ME, this test blows up -- it succeeds, but takes
6627 # about 5 minutes as the teststring grows exponentially.
6628 # Worse, since 9x/ME are not pre-emptively multitasking,
6629 # you end up with a "frozen" computer, even though with patience
6630 # the test eventually succeeds (with a max line length of 256k).
6631 # Instead, let's just punt: use the minimum linelength reported by
6632 # all of the supported platforms: 8192 (on NT/2K/XP).
6633 lt_cv_sys_max_cmd_len=8192;
6637 # On AmigaOS with pdksh, this test takes hours, literally.
6638 # So we just punt and use a minimum line length of 8192.
6639 lt_cv_sys_max_cmd_len=8192;
6642 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6643 # This has been around since 386BSD, at least. Likely further.
6644 if test -x /sbin/sysctl; then
6645 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6646 elif test -x /usr/sbin/sysctl; then
6647 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6649 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6651 # And add a safety zone
6652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6656 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6657 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6658 # nice to cause kernel panics so lets avoid the loop below.
6659 # First set a reasonable default.
6660 lt_cv_sys_max_cmd_len=16384
6662 if test -x /sbin/sysconfig; then
6663 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6664 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6669 # If test is not a shell built-in, we'll probably end up computing a
6670 # maximum length that is only half of the actual maximum length, but
6672 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6673 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6674 = "XX$teststring") >/dev/null 2>&1 &&
6675 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6676 lt_cv_sys_max_cmd_len=$new_result &&
6677 test $i != 17 # 1/2 MB should be enough
6680 teststring=$teststring$teststring
6683 # Add a significant safety factor because C++ compilers can tack on massive
6684 # amounts of additional arguments before passing them to the linker.
6685 # It appears as though 1/2 is a usable value.
6686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6692 if test -n $lt_cv_sys_max_cmd_len ; then
6693 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6694 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6696 echo "$as_me:$LINENO: result: none" >&5
6697 echo "${ECHO_T}none" >&6
6703 # Check for command to grab the raw symbol name followed by C symbol from nm.
6704 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6705 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6706 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 # These are sane defaults that work on at least a few old systems.
6711 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6713 # Character class describing NM global symbol codes.
6714 symcode='[BCDEGRST]'
6716 # Regexp to match symbols that can be accessed directly from C.
6717 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6719 # Transform an extracted symbol line into a proper C declaration
6720 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6722 # Transform an extracted symbol line into symbol name and symbol address
6723 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'"
6725 # Define system-specific variables.
6730 cygwin* | mingw* | pw32*)
6731 symcode='[ABCDGISTW]'
6733 hpux*) # Its linker distinguishes data from code symbols
6734 if test "$host_cpu" = ia64; then
6735 symcode='[ABCDEGRST]'
6737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6738 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'"
6741 if test "$host_cpu" = ia64; then
6742 symcode='[ABCDGIRSTW]'
6743 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6744 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'"
6748 symcode='[BCDEGRST]'
6751 symcode='[BCDEGQRST]'
6761 # Handle CRLF in mingw tool chain
6765 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6769 # If we're using GNU nm, then use its standard symbol codes.
6770 case `$NM -V 2>&1` in
6771 *GNU* | *'with BFD'*)
6772 symcode='[ABCDGIRSTW]' ;;
6775 # Try without a prefix undercore, then with it.
6776 for ac_symprfx in "" "_"; do
6778 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6779 symxfrm="\\1 $ac_symprfx\\2 \\2"
6781 # Write the raw and C identifiers.
6782 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6784 # Check to see that the pipe works correctly.
6788 cat > conftest.$ac_ext <<EOF
6793 void nm_test_func(){}
6797 int main(){nm_test_var='a';nm_test_func();return(0);}
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 (eval $ac_compile) 2>&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; then
6805 # Now try to grab the symbols.
6807 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6808 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && test -s "$nlist"; then
6812 # Try sorting and uniquifying the output.
6813 if sort "$nlist" | uniq > "$nlist"T; then
6814 mv -f "$nlist"T "$nlist"
6819 # Make sure that we snagged all the symbols we need.
6820 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6821 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6822 cat <<EOF > conftest.$ac_ext
6828 # Now generate the symbol file.
6829 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6831 cat <<EOF >> conftest.$ac_ext
6832 #if defined (__STDC__) && __STDC__
6833 # define lt_ptr_t void *
6835 # define lt_ptr_t char *
6839 /* The mapping between symbol names and symbols. */
6844 lt_preloaded_symbols[] =
6847 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6848 cat <<\EOF >> conftest.$ac_ext
6856 # Now try linking the two files.
6857 mv conftest.$ac_objext conftstm.$ac_objext
6858 lt_save_LIBS="$LIBS"
6859 lt_save_CFLAGS="$CFLAGS"
6860 LIBS="conftstm.$ac_objext"
6861 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6863 (eval $ac_link) 2>&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6869 LIBS="$lt_save_LIBS"
6870 CFLAGS="$lt_save_CFLAGS"
6872 echo "cannot find nm_test_func in $nlist" >&5
6875 echo "cannot find nm_test_var in $nlist" >&5
6878 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6881 echo "$progname: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 rm -f conftest* conftst*
6886 # Do not use the global_symbol_pipe unless it works.
6887 if test "$pipe_works" = yes; then
6890 lt_cv_sys_global_symbol_pipe=
6896 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6897 lt_cv_sys_global_symbol_to_cdecl=
6899 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6900 echo "$as_me:$LINENO: result: failed" >&5
6901 echo "${ECHO_T}failed" >&6
6903 echo "$as_me:$LINENO: result: ok" >&5
6904 echo "${ECHO_T}ok" >&6
6907 echo "$as_me:$LINENO: checking for objdir" >&5
6908 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6909 if test "${lt_cv_objdir+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 rm -f .libs 2>/dev/null
6913 mkdir .libs 2>/dev/null
6914 if test -d .libs; then
6917 # MS-DOS does not allow filenames that begin with a dot.
6920 rmdir .libs 2>/dev/null
6922 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6923 echo "${ECHO_T}$lt_cv_objdir" >&6
6924 objdir=$lt_cv_objdir
6932 # AIX sometimes has problems with the GCC collect2 program. For some
6933 # reason, if we set the COLLECT_NAMES environment variable, the problems
6934 # vanish in a puff of smoke.
6935 if test "X${COLLECT_NAMES+set}" != Xset; then
6937 export COLLECT_NAMES
6942 # Sed substitution that helps us do robust quoting. It backslashifies
6943 # metacharacters that are still active within double-quoted strings.
6944 Xsed='sed -e 1s/^X//'
6945 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6947 # Same as above, but do not quote variable references.
6948 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6950 # Sed substitution to delay expansion of an escaped shell variable in a
6951 # double_quote_subst'ed string.
6952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6954 # Sed substitution to avoid accidental globbing in evaled expressions
6955 no_glob_subst='s/\*/\\\*/g'
6961 default_ofile=libtool
6962 can_build_shared=yes
6964 # All known linkers require a `.a' archive for static linking (except MSVC,
6965 # which needs '.lib').
6967 ltmain="$ac_aux_dir/ltmain.sh"
6968 ofile="$default_ofile"
6969 with_gnu_ld="$lt_cv_prog_gnu_ld"
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}ar; ac_word=$2
6974 echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6976 if test "${ac_cv_prog_AR+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 if test -n "$AR"; then
6980 ac_cv_prog_AR="$AR" # Let the user override the test.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_AR="${ac_tool_prefix}ar"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 if test -n "$AR"; then
7000 echo "$as_me:$LINENO: result: $AR" >&5
7001 echo "${ECHO_T}$AR" >&6
7003 echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6
7008 if test -z "$ac_cv_prog_AR"; then
7010 # Extract the first word of "ar", so it can be a program name with args.
7011 set dummy ar; ac_word=$2
7012 echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 if test -n "$ac_ct_AR"; then
7018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_ac_ct_AR="ar"
7028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7038 if test -n "$ac_ct_AR"; then
7039 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7040 echo "${ECHO_T}$ac_ct_AR" >&6
7042 echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7054 echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7056 if test "${ac_cv_prog_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 if test -n "$RANLIB"; then
7060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 RANLIB=$ac_cv_prog_RANLIB
7079 if test -n "$RANLIB"; then
7080 echo "$as_me:$LINENO: result: $RANLIB" >&5
7081 echo "${ECHO_T}$RANLIB" >&6
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7088 if test -z "$ac_cv_prog_RANLIB"; then
7089 ac_ct_RANLIB=$RANLIB
7090 # Extract the first word of "ranlib", so it can be a program name with args.
7091 set dummy ranlib; ac_word=$2
7092 echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 if test -n "$ac_ct_RANLIB"; then
7098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_ac_ct_RANLIB="ranlib"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7117 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7118 if test -n "$ac_ct_RANLIB"; then
7119 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7120 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7126 RANLIB=$ac_ct_RANLIB
7128 RANLIB="$ac_cv_prog_RANLIB"
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}strip; ac_word=$2
7134 echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136 if test "${ac_cv_prog_STRIP+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 if test -n "$STRIP"; then
7140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 STRIP=$ac_cv_prog_STRIP
7159 if test -n "$STRIP"; then
7160 echo "$as_me:$LINENO: result: $STRIP" >&5
7161 echo "${ECHO_T}$STRIP" >&6
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7168 if test -z "$ac_cv_prog_STRIP"; then
7170 # Extract the first word of "strip", so it can be a program name with args.
7171 set dummy strip; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$ac_ct_STRIP"; then
7178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_ac_ct_STRIP="strip"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7198 if test -n "$ac_ct_STRIP"; then
7199 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7200 echo "${ECHO_T}$ac_ct_STRIP" >&6
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7208 STRIP="$ac_cv_prog_STRIP"
7213 old_CFLAGS="$CFLAGS"
7215 # Set sane defaults for various variables
7216 test -z "$AR" && AR=ar
7217 test -z "$AR_FLAGS" && AR_FLAGS=cru
7218 test -z "$AS" && AS=as
7219 test -z "$CC" && CC=cc
7220 test -z "$LTCC" && LTCC=$CC
7221 test -z "$DLLTOOL" && DLLTOOL=dlltool
7222 test -z "$LD" && LD=ld
7223 test -z "$LN_S" && LN_S="ln -s"
7224 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7225 test -z "$NM" && NM=nm
7226 test -z "$SED" && SED=sed
7227 test -z "$OBJDUMP" && OBJDUMP=objdump
7228 test -z "$RANLIB" && RANLIB=:
7229 test -z "$STRIP" && STRIP=:
7230 test -z "$ac_objext" && ac_objext=o
7232 # Determine commands to create old-style static archives.
7233 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7234 old_postinstall_cmds='chmod 644 $oldlib'
7235 old_postuninstall_cmds=
7237 if test -n "$RANLIB"; then
7240 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7243 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7246 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7249 for cc_temp in $compiler""; do
7251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7260 # Only perform the check for file, if the check method requires it
7261 case $deplibs_check_method in
7263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7264 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7265 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7266 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7274 lt_save_MAGIC_CMD="$MAGIC_CMD"
7275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7277 for ac_dir in $ac_dummy; do
7279 test -z "$ac_dir" && ac_dir=.
7280 if test -f $ac_dir/${ac_tool_prefix}file; then
7281 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7282 if test -n "$file_magic_test_file"; then
7283 case $deplibs_check_method in
7285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7288 $EGREP "$file_magic_regex" > /dev/null; then
7293 *** Warning: the command libtool uses to detect shared libraries,
7294 *** $file_magic_cmd, produces output that libtool cannot recognize.
7295 *** The result is that libtool may fail to recognize shared libraries
7296 *** as such. This will affect the creation of libtool libraries that
7297 *** depend on shared libraries, but programs linked with such libtool
7298 *** libraries will work regardless of this problem. Nevertheless, you
7299 *** may want to report the problem to your system manager and/or to
7300 *** bug-libtool@gnu.org
7310 MAGIC_CMD="$lt_save_MAGIC_CMD"
7315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316 if test -n "$MAGIC_CMD"; then
7317 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7318 echo "${ECHO_T}$MAGIC_CMD" >&6
7320 echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7324 if test -z "$lt_cv_path_MAGIC_CMD"; then
7325 if test -n "$ac_tool_prefix"; then
7326 echo "$as_me:$LINENO: checking for file" >&5
7327 echo $ECHO_N "checking for file... $ECHO_C" >&6
7328 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336 lt_save_MAGIC_CMD="$MAGIC_CMD"
7337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339 for ac_dir in $ac_dummy; do
7341 test -z "$ac_dir" && ac_dir=.
7342 if test -f $ac_dir/file; then
7343 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7344 if test -n "$file_magic_test_file"; then
7345 case $deplibs_check_method in
7347 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350 $EGREP "$file_magic_regex" > /dev/null; then
7355 *** Warning: the command libtool uses to detect shared libraries,
7356 *** $file_magic_cmd, produces output that libtool cannot recognize.
7357 *** The result is that libtool may fail to recognize shared libraries
7358 *** as such. This will affect the creation of libtool libraries that
7359 *** depend on shared libraries, but programs linked with such libtool
7360 *** libraries will work regardless of this problem. Nevertheless, you
7361 *** may want to report the problem to your system manager and/or to
7362 *** bug-libtool@gnu.org
7372 MAGIC_CMD="$lt_save_MAGIC_CMD"
7377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378 if test -n "$MAGIC_CMD"; then
7379 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380 echo "${ECHO_T}$MAGIC_CMD" >&6
7382 echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7396 enable_win32_dll=yes
7398 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7399 if test "${enable_libtool_lock+set}" = set; then
7400 enableval="$enable_libtool_lock"
7403 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7406 # Check whether --with-pic or --without-pic was given.
7407 if test "${with_pic+set}" = set; then
7413 test -z "$pic_mode" && pic_mode=default
7415 # Use C for the default configuration in the libtool script
7419 ac_cpp='$CPP $CPPFLAGS'
7420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425 # Source file extension for C test sources.
7428 # Object file extension for compiled C test sources.
7432 # Code to be used in simple compile tests
7433 lt_simple_compile_test_code="int some_variable = 0;\n"
7435 # Code to be used in simple link tests
7436 lt_simple_link_test_code='int main(){return(0);}\n'
7439 # If no C compiler was specified, use CC.
7442 # Allow CC to be a program name with arguments.
7446 # save warnings/boilerplate of simple test code
7447 ac_outfile=conftest.$ac_objext
7448 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7450 _lt_compiler_boilerplate=`cat conftest.err`
7453 ac_outfile=conftest.$ac_objext
7454 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7456 _lt_linker_boilerplate=`cat conftest.err`
7461 # Check for any special shared library compilation flags.
7464 if test "$GCC" = no; then
7467 lt_prog_cc_shlib='-belf'
7471 if test -n "$lt_prog_cc_shlib"; then
7472 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7473 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7474 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7476 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7477 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7478 lt_cv_prog_cc_can_build_shared=no
7484 # Check to make sure the static flag actually works.
7486 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7487 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7488 if test "${lt_prog_compiler_static_works+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 lt_prog_compiler_static_works=no
7492 save_LDFLAGS="$LDFLAGS"
7493 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7494 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7496 # The linker can only warn and ignore the option if not recognized
7497 # So say no if there are warnings
7498 if test -s conftest.err; then
7499 # Append any errors to the config.log.
7500 cat conftest.err 1>&5
7501 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7502 $SED '/^$/d' conftest.err >conftest.er2
7503 if diff conftest.exp conftest.er2 >/dev/null; then
7504 lt_prog_compiler_static_works=yes
7507 lt_prog_compiler_static_works=yes
7511 LDFLAGS="$save_LDFLAGS"
7514 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7515 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7517 if test x"$lt_prog_compiler_static_works" = xyes; then
7520 lt_prog_compiler_static=
7526 lt_prog_compiler_no_builtin_flag=
7528 if test "$GCC" = yes; then
7529 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7532 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7533 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7534 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 lt_cv_prog_compiler_rtti_exceptions=no
7538 ac_outfile=conftest.$ac_objext
7539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7540 lt_compiler_flag="-fno-rtti -fno-exceptions"
7541 # Insert the option either (1) after the last *FLAGS variable, or
7542 # (2) before a word containing "conftest.", or (3) at the end.
7543 # Note that $ac_compile itself does not contain backslashes and begins
7544 # with a dollar sign (not a hyphen), so the echo should work correctly.
7545 # The option is referenced via a variable to avoid confusing sed.
7546 lt_compile=`echo "$ac_compile" | $SED \
7547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7549 -e 's:$: $lt_compiler_flag:'`
7550 (eval echo "\"\$as_me:7550: $lt_compile\"" >&5)
7551 (eval "$lt_compile" 2>conftest.err)
7553 cat conftest.err >&5
7554 echo "$as_me:7554: \$? = $ac_status" >&5
7555 if (exit $ac_status) && test -s "$ac_outfile"; then
7556 # The compiler can only warn and ignore the option if not recognized
7557 # So say no if there are warnings other than the usual output.
7558 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7559 $SED '/^$/d' conftest.err >conftest.er2
7560 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7561 lt_cv_prog_compiler_rtti_exceptions=yes
7567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7568 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7570 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7571 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7578 lt_prog_compiler_wl=
7579 lt_prog_compiler_pic=
7580 lt_prog_compiler_static=
7582 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7583 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7585 if test "$GCC" = yes; then
7586 lt_prog_compiler_wl='-Wl,'
7587 lt_prog_compiler_static='-static'
7591 # All AIX code is PIC.
7592 if test "$host_cpu" = ia64; then
7593 # AIX 5 now supports IA64 processor
7594 lt_prog_compiler_static='-Bstatic'
7599 # FIXME: we need at least 68020 code to build shared libraries, but
7600 # adding the `-m68020' flag to GCC prevents building anything better,
7602 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7605 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7606 # PIC is the default for these OSes.
7609 mingw* | pw32* | os2*)
7610 # This hack is so that the source file can tell whether it is being
7611 # built for inclusion in a dll (and should export symbols for example).
7612 lt_prog_compiler_pic='-DDLL_EXPORT'
7615 darwin* | rhapsody*)
7616 # PIC is the default on this platform
7617 # Common symbols not allowed in MH_DYLIB files
7618 lt_prog_compiler_pic='-fno-common'
7622 # Just because we use GCC doesn't mean we suddenly get shared libraries
7623 # on systems that don't support them.
7624 lt_prog_compiler_can_build_shared=no
7629 if test -d /usr/nec; then
7630 lt_prog_compiler_pic=-Kconform_pic
7635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7642 lt_prog_compiler_pic='-fPIC'
7648 lt_prog_compiler_pic='-fPIC'
7652 # PORTME Check for flag to pass linker flags through the system compiler.
7655 lt_prog_compiler_wl='-Wl,'
7656 if test "$host_cpu" = ia64; then
7657 # AIX 5 now supports IA64 processor
7658 lt_prog_compiler_static='-Bstatic'
7660 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7664 # PIC is the default on this platform
7665 # Common symbols not allowed in MH_DYLIB files
7666 case $cc_basename in
7668 lt_prog_compiler_pic='-qnocommon'
7669 lt_prog_compiler_wl='-Wl,'
7674 mingw* | pw32* | os2*)
7675 # This hack is so that the source file can tell whether it is being
7676 # built for inclusion in a dll (and should export symbols for example).
7677 lt_prog_compiler_pic='-DDLL_EXPORT'
7680 hpux9* | hpux10* | hpux11*)
7681 lt_prog_compiler_wl='-Wl,'
7682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7689 lt_prog_compiler_pic='+Z'
7692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7693 lt_prog_compiler_static='${wl}-a ${wl}archive'
7696 irix5* | irix6* | nonstopux*)
7697 lt_prog_compiler_wl='-Wl,'
7698 # PIC (with -KPIC) is the default.
7699 lt_prog_compiler_static='-non_shared'
7703 lt_prog_compiler_pic='-KPIC'
7704 lt_prog_compiler_static='-Bstatic'
7708 case $cc_basename in
7710 lt_prog_compiler_wl='-Wl,'
7711 lt_prog_compiler_pic='-KPIC'
7712 lt_prog_compiler_static='-static'
7714 pgcc* | pgf77* | pgf90* | pgf95*)
7715 # Portland Group compilers (*not* the Pentium gcc compiler,
7716 # which looks to be a dead project)
7717 lt_prog_compiler_wl='-Wl,'
7718 lt_prog_compiler_pic='-fpic'
7719 lt_prog_compiler_static='-Bstatic'
7722 lt_prog_compiler_wl='-Wl,'
7723 # All Alpha code is PIC.
7724 lt_prog_compiler_static='-non_shared'
7729 osf3* | osf4* | osf5*)
7730 lt_prog_compiler_wl='-Wl,'
7731 # All OSF/1 code is PIC.
7732 lt_prog_compiler_static='-non_shared'
7736 lt_prog_compiler_pic='-Kpic'
7737 lt_prog_compiler_static='-dn'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-Bstatic'
7743 case $cc_basename in
7745 lt_prog_compiler_wl='-Qoption ld ';;
7747 lt_prog_compiler_wl='-Wl,';;
7752 lt_prog_compiler_wl='-Qoption ld '
7753 lt_prog_compiler_pic='-PIC'
7754 lt_prog_compiler_static='-Bstatic'
7757 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7758 lt_prog_compiler_wl='-Wl,'
7759 lt_prog_compiler_pic='-KPIC'
7760 lt_prog_compiler_static='-Bstatic'
7764 if test -d /usr/nec ;then
7765 lt_prog_compiler_pic='-Kconform_pic'
7766 lt_prog_compiler_static='-Bstatic'
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_can_build_shared=no
7776 lt_prog_compiler_pic='-pic'
7777 lt_prog_compiler_static='-Bstatic'
7781 lt_prog_compiler_can_build_shared=no
7786 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7787 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7790 # Check to make sure the PIC flag actually works.
7792 if test -n "$lt_prog_compiler_pic"; then
7794 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7796 if test "${lt_prog_compiler_pic_works+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 lt_prog_compiler_pic_works=no
7800 ac_outfile=conftest.$ac_objext
7801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7802 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7803 # Insert the option either (1) after the last *FLAGS variable, or
7804 # (2) before a word containing "conftest.", or (3) at the end.
7805 # Note that $ac_compile itself does not contain backslashes and begins
7806 # with a dollar sign (not a hyphen), so the echo should work correctly.
7807 # The option is referenced via a variable to avoid confusing sed.
7808 lt_compile=`echo "$ac_compile" | $SED \
7809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811 -e 's:$: $lt_compiler_flag:'`
7812 (eval echo "\"\$as_me:7812: $lt_compile\"" >&5)
7813 (eval "$lt_compile" 2>conftest.err)
7815 cat conftest.err >&5
7816 echo "$as_me:7816: \$? = $ac_status" >&5
7817 if (exit $ac_status) && test -s "$ac_outfile"; then
7818 # The compiler can only warn and ignore the option if not recognized
7819 # So say no if there are warnings other than the usual output.
7820 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7821 $SED '/^$/d' conftest.err >conftest.er2
7822 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7823 lt_prog_compiler_pic_works=yes
7829 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7830 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7832 if test x"$lt_prog_compiler_pic_works" = xyes; then
7833 case $lt_prog_compiler_pic in
7835 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7838 lt_prog_compiler_pic=
7839 lt_prog_compiler_can_build_shared=no
7844 # For platforms which do not support PIC, -DPIC is meaningless:
7846 lt_prog_compiler_pic=
7849 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7853 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7854 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7855 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7858 lt_cv_prog_compiler_c_o=no
7859 $rm -r conftest 2>/dev/null
7863 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7865 lt_compiler_flag="-o out/conftest2.$ac_objext"
7866 # Insert the option either (1) after the last *FLAGS variable, or
7867 # (2) before a word containing "conftest.", or (3) at the end.
7868 # Note that $ac_compile itself does not contain backslashes and begins
7869 # with a dollar sign (not a hyphen), so the echo should work correctly.
7870 lt_compile=`echo "$ac_compile" | $SED \
7871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7873 -e 's:$: $lt_compiler_flag:'`
7874 (eval echo "\"\$as_me:7874: $lt_compile\"" >&5)
7875 (eval "$lt_compile" 2>out/conftest.err)
7877 cat out/conftest.err >&5
7878 echo "$as_me:7878: \$? = $ac_status" >&5
7879 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7881 # The compiler can only warn and ignore the option if not recognized
7882 # So say no if there are warnings
7883 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7884 $SED '/^$/d' out/conftest.err >out/conftest.er2
7885 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7886 lt_cv_prog_compiler_c_o=yes
7891 # SGI C++ compiler will create directory out/ii_files/ for
7892 # template instantiation
7893 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7894 $rm out/* && rmdir out
7900 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7901 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7904 hard_links="nottested"
7905 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7906 # do not overwrite the value of need_locks provided by the user
7907 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7908 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7913 ln conftest.a conftest.b 2>&5 || hard_links=no
7914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7915 echo "$as_me:$LINENO: result: $hard_links" >&5
7916 echo "${ECHO_T}$hard_links" >&6
7917 if test "$hard_links" = no; then
7918 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7919 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7926 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7927 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7930 allow_undefined_flag=
7931 enable_shared_with_static_runtimes=no
7933 archive_expsym_cmds=
7934 old_archive_From_new_cmds=
7935 old_archive_from_expsyms_cmds=
7936 export_dynamic_flag_spec=
7937 whole_archive_flag_spec=
7938 thread_safe_flag_spec=
7939 hardcode_libdir_flag_spec=
7940 hardcode_libdir_flag_spec_ld=
7941 hardcode_libdir_separator=
7944 hardcode_shlibpath_var=unsupported
7945 link_all_deplibs=unknown
7946 hardcode_automatic=no
7949 always_export_symbols=no
7950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7951 # include_expsyms should be a list of space-separated symbols to be *always*
7952 # included in the symbol list
7954 # exclude_expsyms can be an extended regexp of symbols to exclude
7955 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7956 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7957 # as well as any symbol that contains `d'.
7958 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7959 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7960 # platforms (ab)use it in PIC code, but their linkers get confused if
7961 # the symbol is explicitly referenced. Since portable code cannot
7962 # rely on this symbol name, it's probably fine to never include it in
7963 # preloaded symbol tables.
7964 extract_expsyms_cmds=
7965 # Just being paranoid about ensuring that cc_basename is set.
7966 for cc_temp in $compiler""; do
7968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7974 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7977 cygwin* | mingw* | pw32*)
7978 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7979 # When not using gcc, we currently assume that we are using
7980 # Microsoft Visual C++.
7981 if test "$GCC" != yes; then
7991 if test "$with_gnu_ld" = yes; then
7992 # If archive_cmds runs LD, not CC, wlarc should be empty
7995 # Set some defaults for GNU ld with shared library support. These
7996 # are reset later if shared libraries are not supported. Putting them
7997 # here allows them to be overridden if necessary.
7998 runpath_var=LD_RUN_PATH
7999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8000 export_dynamic_flag_spec='${wl}--export-dynamic'
8001 # ancient GNU ld didn't support --whole-archive et. al.
8002 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8003 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8005 whole_archive_flag_spec=
8007 supports_anon_versioning=no
8008 case `$LD -v 2>/dev/null` in
8009 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8010 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8011 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8012 *\ 2.11.*) ;; # other 2.11 versions
8013 *) supports_anon_versioning=yes ;;
8016 # See if GNU ld supports shared libraries.
8018 aix3* | aix4* | aix5*)
8019 # On AIX/PPC, the GNU linker is very broken
8020 if test "$host_cpu" != ia64; then
8024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8025 *** to be unable to reliably create shared libraries on AIX.
8026 *** Therefore, libtool is disabling shared libraries support. If you
8027 *** really care for shared libraries, you may want to modify your PATH
8028 *** so that a non-GNU linker is found, and then restart.
8035 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)'
8036 hardcode_libdir_flag_spec='-L$libdir'
8037 hardcode_minus_L=yes
8039 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8040 # that the semantics of dynamic libraries on AmigaOS, at least up
8041 # to version 4, is to share data among multiple programs linked
8042 # with the same dynamic library. Since this doesn't match the
8043 # behavior of shared libraries on other platforms, we can't use
8049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050 allow_undefined_flag=unsupported
8051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8052 # support --undefined. This deserves some investigation. FIXME
8053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8059 cygwin* | mingw* | pw32*)
8060 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8061 # as there is no search path for DLLs.
8062 hardcode_libdir_flag_spec='-L$libdir'
8063 allow_undefined_flag=unsupported
8064 always_export_symbols=no
8065 enable_shared_with_static_runtimes=yes
8066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8070 # If the export-symbols file already is a .def file (1st line
8071 # is EXPORTS), use it as is; otherwise, prepend...
8072 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8073 cp $export_symbols $output_objdir/$soname.def;
8075 echo EXPORTS > $output_objdir/$soname.def;
8076 cat $export_symbols >> $output_objdir/$soname.def;
8078 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8087 case $cc_basename,$host_cpu in
8088 pgcc*) # Portland Group C compiler
8089 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'
8090 tmp_addflag=' $pic_flag'
8092 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8093 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'
8094 tmp_addflag=' $pic_flag -Mnomain' ;;
8095 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8096 tmp_addflag=' -i_dynamic' ;;
8097 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8098 tmp_addflag=' -i_dynamic -nofor_main' ;;
8099 ifc* | ifort*) # Intel Fortran compiler
8100 tmp_addflag=' -nofor_main' ;;
8102 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8104 if test $supports_anon_versioning = yes; then
8105 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8107 $echo "local: *; };" >> $output_objdir/$libname.ver~
8108 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8117 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8126 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8131 *** create shared libraries on Solaris systems. Therefore, libtool
8132 *** is disabling shared libraries support. We urge you to upgrade GNU
8133 *** binutils to release 2.9.1 or newer. Another option is to modify
8134 *** your PATH or compiler configuration so that the native linker is
8135 *** used, and then restart.
8138 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8147 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8150 hardcode_shlibpath_var=no
8154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8163 if test "$ld_shlibs" = no; then
8165 hardcode_libdir_flag_spec=
8166 export_dynamic_flag_spec=
8167 whole_archive_flag_spec=
8170 # PORTME fill in a description of your system's linker (not GNU ld)
8173 allow_undefined_flag=unsupported
8174 always_export_symbols=yes
8175 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'
8176 # Note: this linker hardcodes the directories in LIBPATH if there
8177 # are no directories specified by -L.
8178 hardcode_minus_L=yes
8179 if test "$GCC" = yes && test -z "$link_static_flag"; then
8180 # Neither direct hardcoding nor static linking is supported with a
8182 hardcode_direct=unsupported
8187 if test "$host_cpu" = ia64; then
8188 # On IA64, the linker does run time linking by default, so we don't
8189 # have to do anything special.
8190 aix_use_runtimelinking=no
8191 exp_sym_flag='-Bexport'
8194 # If we're using GNU nm, then we don't want the "-C" option.
8195 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8196 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8197 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'
8199 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'
8201 aix_use_runtimelinking=no
8203 # Test if we are trying to use run time linking or normal
8204 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8205 # need to do runtime linking.
8206 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8207 for ld_flag in $LDFLAGS; do
8208 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8209 aix_use_runtimelinking=yes
8215 exp_sym_flag='-bexport'
8216 no_entry_flag='-bnoentry'
8219 # When large executables or shared objects are built, AIX ld can
8220 # have problems creating the table of contents. If linking a library
8221 # or program results in "error TOC overflow" add -mminimal-toc to
8222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8227 hardcode_libdir_separator=':'
8228 link_all_deplibs=yes
8230 if test "$GCC" = yes; then
8231 case $host_os in aix4.[012]|aix4.[012].*)
8232 # We only want to do this on AIX 4.2 and lower, the check
8233 # below for broken collect2 doesn't work under 4.3+
8234 collect2name=`${CC} -print-prog-name=collect2`
8235 if test -f "$collect2name" && \
8236 strings "$collect2name" | grep resolve_lib_name >/dev/null
8238 # We have reworked collect2
8241 # We have old collect2
8242 hardcode_direct=unsupported
8243 # It fails to find uninstalled libraries when the uninstalled
8244 # path is not listed in the libpath. Setting hardcode_minus_L
8245 # to unsupported forces relinking
8246 hardcode_minus_L=yes
8247 hardcode_libdir_flag_spec='-L$libdir'
8248 hardcode_libdir_separator=
8251 shared_flag='-shared'
8252 if test "$aix_use_runtimelinking" = yes; then
8253 shared_flag="$shared_flag "'${wl}-G'
8257 if test "$host_cpu" = ia64; then
8258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8259 # chokes on -Wl,-G. The following line is correct:
8262 if test "$aix_use_runtimelinking" = yes; then
8263 shared_flag='${wl}-G'
8265 shared_flag='${wl}-bM:SRE'
8270 # It seems that -bexpall does not export symbols beginning with
8271 # underscore (_), so it is better to generate a list of symbols to export.
8272 always_export_symbols=yes
8273 if test "$aix_use_runtimelinking" = yes; then
8274 # Warning - without using the other runtime loading flags (-brtl),
8275 # -berok will link without error, but may produce a broken library.
8276 allow_undefined_flag='-berok'
8277 # Determine the default libpath from the value encoded in an empty executable.
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295 (eval $ac_link) 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag"
8303 || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8318 # Check for a 64-bit object if we didn't find anything.
8319 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; }
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8326 rm -f conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8331 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"
8333 if test "$host_cpu" = ia64; then
8334 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8335 allow_undefined_flag="-z nodefs"
8336 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"
8338 # Determine the default libpath from the value encoded in an empty executable.
8339 cat >conftest.$ac_ext <<_ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag"
8364 || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8377 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8379 # Check for a 64-bit object if we didn't find anything.
8380 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; }
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8387 rm -f conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
8389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8392 # Warning - without using the other run time loading flags,
8393 # -berok will link without error, but may produce a broken library.
8394 no_undefined_flag=' ${wl}-bernotok'
8395 allow_undefined_flag=' ${wl}-berok'
8396 # -bexpall does not export symbols beginning with underscore (_)
8397 always_export_symbols=yes
8398 # Exported symbols can be pulled into shared objects from archives
8399 whole_archive_flag_spec=' '
8400 archive_cmds_need_lc=yes
8401 # This is similar to how AIX traditionally builds its shared libraries.
8402 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'
8408 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)'
8409 hardcode_libdir_flag_spec='-L$libdir'
8410 hardcode_minus_L=yes
8411 # see comment about different semantics on the GNU ld section
8416 export_dynamic_flag_spec=-rdynamic
8419 cygwin* | mingw* | pw32*)
8420 # When not using gcc, we currently assume that we are using
8421 # Microsoft Visual C++.
8422 # hardcode_libdir_flag_spec is actually meaningless, as there is
8423 # no search path for DLLs.
8424 hardcode_libdir_flag_spec=' '
8425 allow_undefined_flag=unsupported
8426 # Tell ltmain to make .lib files, not .a files.
8428 # Tell ltmain to make .dll files, not .so files.
8430 # FIXME: Setting linknames here is a bad hack.
8431 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8432 # The linker will automatically build a .lib file if we build a DLL.
8433 old_archive_From_new_cmds='true'
8434 # FIXME: Should let the user specify the lib program.
8435 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8436 fix_srcfile_path='`cygpath -w "$srcfile"`'
8437 enable_shared_with_static_runtimes=yes
8440 darwin* | rhapsody*)
8442 rhapsody* | darwin1.[012])
8443 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8446 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8447 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8449 case ${MACOSX_DEPLOYMENT_TARGET} in
8451 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8454 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8460 archive_cmds_need_lc=no
8462 hardcode_automatic=yes
8463 hardcode_shlibpath_var=unsupported
8464 whole_archive_flag_spec=''
8465 link_all_deplibs=yes
8466 if test "$GCC" = yes ; then
8467 output_verbose_link_cmd='echo'
8468 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8469 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8470 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8471 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}'
8472 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}'
8474 case $cc_basename in
8476 output_verbose_link_cmd='echo'
8477 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8478 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8479 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8480 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}'
8481 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}'
8491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8492 hardcode_libdir_flag_spec='-L$libdir'
8493 hardcode_shlibpath_var=no
8500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8501 # support. Future versions do this automatically, but an explicit c++rt0.o
8502 # does not break anything, and helps significantly (at the cost of a little
8505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8506 hardcode_libdir_flag_spec='-R$libdir'
8508 hardcode_shlibpath_var=no
8511 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_minus_L=yes
8516 hardcode_shlibpath_var=no
8519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8520 freebsd* | kfreebsd*-gnu | dragonfly*)
8521 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8522 hardcode_libdir_flag_spec='-R$libdir'
8524 hardcode_shlibpath_var=no
8528 if test "$GCC" = yes; then
8529 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'
8531 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'
8533 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8534 hardcode_libdir_separator=:
8537 # hardcode_minus_L: Not really in the search PATH,
8538 # but as the default location of the library.
8539 hardcode_minus_L=yes
8540 export_dynamic_flag_spec='${wl}-E'
8544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8556 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8559 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8563 if test "$with_gnu_ld" = no; then
8566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567 hardcode_libdir_flag_spec_ld='+b $libdir'
8568 hardcode_libdir_separator=:
8570 hardcode_shlibpath_var=no
8573 hardcode_libdir_flag_spec='-L$libdir'
8575 hardcode_shlibpath_var=no
8577 # hardcode_minus_L: Not really in the search PATH,
8578 # but as the default location of the library.
8579 hardcode_minus_L=yes
8582 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8583 hardcode_libdir_separator=:
8585 export_dynamic_flag_spec='${wl}-E'
8587 # hardcode_minus_L: Not really in the search PATH,
8588 # but as the default location of the library.
8589 hardcode_minus_L=yes
8595 irix5* | irix6* | nonstopux*)
8596 if test "$GCC" = yes; then
8597 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'
8599 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'
8600 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603 hardcode_libdir_separator=:
8604 link_all_deplibs=yes
8608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8611 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8613 hardcode_libdir_flag_spec='-R$libdir'
8615 hardcode_shlibpath_var=no
8619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8622 hardcode_libdir_separator=:
8623 hardcode_shlibpath_var=no
8628 hardcode_shlibpath_var=no
8629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8631 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633 export_dynamic_flag_spec='${wl}-E'
8636 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8638 hardcode_libdir_flag_spec='-R$libdir'
8641 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_minus_L=yes
8651 allow_undefined_flag=unsupported
8652 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'
8653 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8657 if test "$GCC" = yes; then
8658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8659 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'
8661 allow_undefined_flag=' -expect_unresolved \*'
8662 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'
8664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8665 hardcode_libdir_separator=:
8668 osf4* | osf5*) # as osf3* with the addition of -msym flag
8669 if test "$GCC" = yes; then
8670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8671 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'
8672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8674 allow_undefined_flag=' -expect_unresolved \*'
8675 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'
8676 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8677 $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'
8679 # Both c and cxx compiler support -rpath directly
8680 hardcode_libdir_flag_spec='-rpath $libdir'
8682 hardcode_libdir_separator=:
8686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687 hardcode_shlibpath_var=no
8688 export_dynamic_flag_spec='${wl}-Bexport'
8689 runpath_var=LD_RUN_PATH
8690 hardcode_runpath_var=yes
8694 no_undefined_flag=' -z text'
8695 if test "$GCC" = yes; then
8697 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8699 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8702 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8704 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8706 hardcode_libdir_flag_spec='-R$libdir'
8707 hardcode_shlibpath_var=no
8709 solaris2.[0-5] | solaris2.[0-5].*) ;;
8711 # The compiler driver will combine linker options so we
8712 # cannot just pass the convience library names through
8713 # without $wl, iff we do not link with $LD.
8714 # Luckily, gcc supports the same syntax we need for Sun Studio.
8715 # Supported since Solaris 2.6 (maybe 2.5.1?)
8718 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8720 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' ;;
8723 link_all_deplibs=yes
8727 if test "x$host_vendor" = xsequent; then
8728 # Use $CC to link under sequent, because it throws in some extra .o
8729 # files that make .init and .fini sections work.
8730 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8732 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8734 hardcode_libdir_flag_spec='-L$libdir'
8736 hardcode_minus_L=yes
8737 hardcode_shlibpath_var=no
8741 case $host_vendor in
8743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744 hardcode_direct=yes # is this really true???
8747 ## LD is ld it makes a PLAMLIB
8748 ## CC just makes a GrossModule.
8749 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8750 reload_cmds='$CC -r -o $output$reload_objs'
8754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8758 runpath_var='LD_RUN_PATH'
8759 hardcode_shlibpath_var=no
8763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764 hardcode_shlibpath_var=no
8765 export_dynamic_flag_spec='-Bexport'
8769 if test -d /usr/nec; then
8770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771 hardcode_shlibpath_var=no
8772 runpath_var=LD_RUN_PATH
8773 hardcode_runpath_var=yes
8779 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_shlibpath_var=no
8783 hardcode_runpath_var=yes
8784 runpath_var=LD_RUN_PATH
8787 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8788 no_undefined_flag='${wl}-z ${wl}text'
8789 if test "$GCC" = yes; then
8790 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8792 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8794 runpath_var='LD_RUN_PATH'
8795 hardcode_shlibpath_var=no
8799 no_undefined_flag=' -z text'
8800 # $CC -shared without GNU ld will not create a library from C++
8801 # object files and a static libstdc++, better avoid it by now
8802 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8804 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8805 hardcode_libdir_flag_spec=
8806 hardcode_shlibpath_var=no
8807 runpath_var='LD_RUN_PATH'
8811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_libdir_flag_spec='-L$libdir'
8813 hardcode_shlibpath_var=no
8822 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8823 echo "${ECHO_T}$ld_shlibs" >&6
8824 test "$ld_shlibs" = no && can_build_shared=no
8826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8827 if test "$GCC" = yes; then
8828 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8832 # Do we need to explicitly link libc?
8834 case "x$archive_cmds_need_lc" in
8836 # Assume -lc should be added
8837 archive_cmds_need_lc=yes
8839 if test "$enable_shared" = yes && test "$GCC" = yes; then
8840 case $archive_cmds in
8842 # FIXME: we may have to deal with multi-command sequences.
8845 # Test whether the compiler implicitly links with -lc since on some
8846 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8847 # to ld, don't add -lc before -lgcc.
8848 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8849 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854 (eval $ac_compile) 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } 2>conftest.err; then
8860 libobjs=conftest.$ac_objext
8862 wl=$lt_prog_compiler_wl
8868 lt_save_allow_undefined_flag=$allow_undefined_flag
8869 allow_undefined_flag=
8870 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8871 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }
8876 archive_cmds_need_lc=no
8878 archive_cmds_need_lc=yes
8880 allow_undefined_flag=$lt_save_allow_undefined_flag
8882 cat conftest.err 1>&5
8885 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8886 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8893 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8894 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8896 libname_spec='lib$name'
8904 shlibpath_overrides_runpath=unknown
8906 dynamic_linker="$host_os ld.so"
8907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8908 if test "$GCC" = yes; then
8909 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8910 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8911 # if the path contains ";" then we assume it to be the separator
8912 # otherwise default to the standard path separator (i.e. ":") - it is
8913 # assumed that no part of a normal pathname contains ";" but that should
8914 # okay in the real world where ";" in dirpaths is itself problematic.
8915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8920 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8922 need_lib_prefix=unknown
8923 hardcode_into_libs=no
8925 # when you set need_version to no, make sure it does not cause -set_version
8926 # flags to be left without arguments
8927 need_version=unknown
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8933 shlibpath_var=LIBPATH
8935 # AIX 3 has no versioning support, so we append a major version to the name.
8936 soname_spec='${libname}${release}${shared_ext}$major'
8943 hardcode_into_libs=yes
8944 if test "$host_cpu" = ia64; then
8945 # AIX 5 supports IA64
8946 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8947 shlibpath_var=LD_LIBRARY_PATH
8949 # With GCC up to 2.95.x, collect2 would create an import file
8950 # for dependence libraries. The import file would start with
8951 # the line `#! .'. This would cause the generated library to
8952 # depend on `.', always an invalid library. This was fixed in
8953 # development snapshots of GCC prior to 3.0.
8955 aix4 | aix4.[01] | aix4.[01].*)
8956 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8958 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8965 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8966 # soname into executable. Probably we can add versioning support to
8967 # collect2, so additional links can be useful in future.
8968 if test "$aix_use_runtimelinking" = yes; then
8969 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8970 # instead of lib<name>.a to let people know that these are not
8971 # typical AIX shared libraries.
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 # We preserve .a as extension for shared libraries through AIX4.2
8975 # and later when we are not doing run time linking.
8976 library_names_spec='${libname}${release}.a $libname.a'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8979 shlibpath_var=LIBPATH
8984 library_names_spec='$libname.ixlibrary $libname.a'
8985 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8986 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'
8990 library_names_spec='${libname}${shared_ext}'
8991 dynamic_linker="$host_os ld.so"
8992 shlibpath_var=LIBRARY_PATH
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999 soname_spec='${libname}${release}${shared_ext}$major'
9000 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9003 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9004 # the default ld.so.conf also contains /usr/contrib/lib and
9005 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9006 # libtool to hard-code these into programs
9009 cygwin* | mingw* | pw32*)
9010 version_type=windows
9015 case $GCC,$host_os in
9016 yes,cygwin* | yes,mingw* | yes,pw32*)
9017 library_names_spec='$libname.dll.a'
9018 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9019 postinstall_cmds='base_file=`basename \${file}`~
9020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9021 dldir=$destdir/`dirname \$dlpath`~
9022 test -d \$dldir || mkdir -p \$dldir~
9023 $install_prog $dir/$dlname \$dldir/$dlname~
9024 chmod a+x \$dldir/$dlname'
9025 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9026 dlpath=$dir/\$dldll~
9028 shlibpath_overrides_runpath=yes
9032 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9033 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9034 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9037 # MinGW DLLs use traditional 'lib' prefix
9038 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9039 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9040 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9041 # It is most probably a Windows format PATH printed by
9042 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9043 # path with ; separators, and with drive letters. We can handle the
9044 # drive letters (cygwin fileutils understands them), so leave them,
9045 # especially as we might pass files found there to a mingw objdump,
9046 # which wouldn't understand a cygwinified path. Ahh.
9047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9053 # pw32 DLLs use 'pw' prefix rather than 'lib'
9054 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9060 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9063 dynamic_linker='Win32 ld.exe'
9064 # FIXME: first we should search . and the directory the executable is in
9068 darwin* | rhapsody*)
9069 dynamic_linker="$host_os dyld"
9073 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9074 soname_spec='${libname}${release}${major}$shared_ext'
9075 shlibpath_overrides_runpath=yes
9076 shlibpath_var=DYLD_LIBRARY_PATH
9077 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9078 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9079 if test "$GCC" = yes; then
9080 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"`
9082 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=no
9108 hardcode_into_libs=yes
9109 dynamic_linker='GNU ld.so'
9112 freebsd* | dragonfly*)
9113 # DragonFly does not have aout. When/if they implement a new
9114 # versioning mechanism, adjust this.
9115 if test -x /usr/bin/objformat; then
9116 objformat=`/usr/bin/objformat`
9119 freebsd[123]*) objformat=aout ;;
9123 version_type=freebsd-$objformat
9124 case $version_type in
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9135 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9140 freebsd3.[01]* | freebsdelf3.[01]*)
9141 shlibpath_overrides_runpath=yes
9142 hardcode_into_libs=yes
9145 shlibpath_overrides_runpath=no
9146 hardcode_into_libs=yes
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 hardcode_into_libs=yes
9161 hpux9* | hpux10* | hpux11*)
9162 # Give a soname corresponding to the major version so that dld.sl refuses to
9163 # link against other versions.
9170 hardcode_into_libs=yes
9171 dynamic_linker="$host_os dld.so"
9172 shlibpath_var=LD_LIBRARY_PATH
9173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 if test "X$HPUX_IA64_MODE" = X32; then
9177 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9185 hardcode_into_libs=yes
9186 dynamic_linker="$host_os dld.sl"
9187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9196 dynamic_linker="$host_os dld.sl"
9197 shlibpath_var=SHLIB_PATH
9198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200 soname_spec='${libname}${release}${shared_ext}$major'
9203 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9204 postinstall_cmds='chmod 555 $lib'
9207 irix5* | irix6* | nonstopux*)
9209 nonstopux*) version_type=nonstopux ;;
9211 if test "$lt_cv_prog_gnu_ld" = yes; then
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9222 irix5* | nonstopux*)
9226 case $LD in # libtool.m4 will add one of these switches to LD
9227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9228 libsuff= shlibsuff= libmagic=32-bit;;
9229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9230 libsuff=32 shlibsuff=N32 libmagic=N32;;
9231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9233 *) libsuff= shlibsuff= libmagic=never-match;;
9237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9238 shlibpath_overrides_runpath=no
9239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9241 hardcode_into_libs=yes
9244 # No shared lib support for Linux oldld, aout, or coff.
9245 linux*oldld* | linux*aout* | linux*coff*)
9249 # This must be Linux ELF.
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=no
9259 # This implies no fast_install, which is unacceptable.
9260 # Some rework will be needed to allow for fast_install
9261 # before this can be enabled.
9262 hardcode_into_libs=yes
9264 # Append ld.so.conf contents to the search path
9265 if test -f /etc/ld.so.conf; then
9266 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' ' '`
9267 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9270 # We used to test for /lib/ld.so.1 and disable shared libraries on
9271 # powerpc, because MkLinux only supported shared libraries with the
9272 # GNU dynamic linker. Since this was broken with cross compilers,
9273 # most powerpc-linux boxes support dynamic linking these days and
9274 # people can always --disable-shared, the test was removed, and we
9275 # assume the GNU/Linux dynamic linker is in use.
9276 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=no
9287 hardcode_into_libs=yes
9288 dynamic_linker='GNU ld.so'
9295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298 dynamic_linker='NetBSD (a.out) ld.so'
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 dynamic_linker='NetBSD ld.elf_so'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes
9329 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9331 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9332 *) need_version=no ;;
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9339 openbsd2.[89] | openbsd2.[89].*)
9340 shlibpath_overrides_runpath=no
9343 shlibpath_overrides_runpath=yes
9347 shlibpath_overrides_runpath=yes
9352 libname_spec='$name'
9355 library_names_spec='$libname${shared_ext} $libname.a'
9356 dynamic_linker='OS/2 ld.exe'
9357 shlibpath_var=LIBPATH
9360 osf3* | osf4* | osf5*)
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9368 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 shlibpath_var=LD_LIBRARY_PATH
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=yes
9386 hardcode_into_libs=yes
9387 # ldd complains unless libraries are executable
9388 postinstall_cmds='chmod +x $lib'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9395 shlibpath_var=LD_LIBRARY_PATH
9396 shlibpath_overrides_runpath=yes
9397 if test "$with_gnu_ld" = yes; then
9403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406 soname_spec='${libname}${release}${shared_ext}$major'
9407 shlibpath_var=LD_LIBRARY_PATH
9408 case $host_vendor in
9410 shlibpath_overrides_runpath=no
9412 export_dynamic_flag_spec='${wl}-Blargedynsym'
9413 runpath_var=LD_RUN_PATH
9421 shlibpath_overrides_runpath=no
9422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9428 if test -d /usr/nec ;then
9430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9431 soname_spec='$libname${shared_ext}.$major'
9432 shlibpath_var=LD_LIBRARY_PATH
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9440 shlibpath_var=LD_LIBRARY_PATH
9447 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9448 echo "${ECHO_T}$dynamic_linker" >&6
9449 test "$dynamic_linker" = no && can_build_shared=no
9451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9454 if test -n "$hardcode_libdir_flag_spec" || \
9455 test -n "$runpath_var" || \
9456 test "X$hardcode_automatic" = "Xyes" ; then
9458 # We can hardcode non-existant directories.
9459 if test "$hardcode_direct" != no &&
9460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9461 # have to relink, otherwise we might link with an installed library
9462 # when we should be linking with a yet-to-be-installed one
9463 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9464 test "$hardcode_minus_L" != no; then
9465 # Linking always hardcodes the temporary library directory.
9466 hardcode_action=relink
9468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9469 hardcode_action=immediate
9472 # We cannot hardcode anything, or else we can only hardcode existing
9474 hardcode_action=unsupported
9476 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9477 echo "${ECHO_T}$hardcode_action" >&6
9479 if test "$hardcode_action" = relink; then
9480 # Fast installation is not supported
9481 enable_fast_install=no
9482 elif test "$shlibpath_overrides_runpath" = yes ||
9483 test "$enable_shared" = no; then
9484 # Fast installation is not necessary
9485 enable_fast_install=needless
9490 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9491 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9492 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9493 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9494 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9495 echo "$as_me:$LINENO: result: yes" >&5
9496 echo "${ECHO_T}yes" >&6
9498 # FIXME - insert some real tests, host_os isn't really good enough
9501 if test -n "$STRIP" ; then
9502 striplib="$STRIP -x"
9503 echo "$as_me:$LINENO: result: yes" >&5
9504 echo "${ECHO_T}yes" >&6
9506 echo "$as_me:$LINENO: result: no" >&5
9507 echo "${ECHO_T}no" >&6
9511 echo "$as_me:$LINENO: result: no" >&5
9512 echo "${ECHO_T}no" >&6
9517 if test "x$enable_dlopen" != xyes; then
9518 enable_dlopen=unknown
9519 enable_dlopen_self=unknown
9520 enable_dlopen_self_static=unknown
9527 lt_cv_dlopen="load_add_on"
9529 lt_cv_dlopen_self=yes
9533 lt_cv_dlopen="LoadLibrary"
9538 lt_cv_dlopen="dlopen"
9543 # if libdl is installed we need to link against it
9544 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9545 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 ac_check_lib_save_LIBS=$LIBS
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9558 /* Override any gcc2 internal prototype to avoid an error. */
9562 /* We use char because int might match the return type of a gcc2
9563 builtin and then its argument prototype would still apply. */
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -z "$ac_c_werror_flag"
9583 || test ! -s conftest.err'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; } &&
9589 { ac_try='test -s conftest$ac_exeext'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_cv_lib_dl_dlopen=yes
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_cv_lib_dl_dlopen=no
9602 rm -f conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9606 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9607 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9608 if test $ac_cv_lib_dl_dlopen = yes; then
9609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9614 lt_cv_dlopen_self=yes
9621 echo "$as_me:$LINENO: checking for shl_load" >&5
9622 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9623 if test "${ac_cv_func_shl_load+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9634 #define shl_load innocuous_shl_load
9636 /* System header to define __stub macros and hopefully few prototypes,
9637 which can conflict with char shl_load (); below.
9638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9639 <limits.h> exists even on freestanding compilers. */
9642 # include <limits.h>
9644 # include <assert.h>
9649 /* Override any gcc2 internal prototype to avoid an error. */
9654 /* We use char because int might match the return type of a gcc2
9655 builtin and then its argument prototype would still apply. */
9657 /* The GNU C library defines this for functions which it implements
9658 to always fail with ENOSYS. Some functions are actually named
9659 something starting with __ and the normal name is an alias. */
9660 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9663 char (*f) () = shl_load;
9672 return f != shl_load;
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag"
9687 || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_func_shl_load=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_func_shl_load=no
9706 rm -f conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9709 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9710 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9711 if test $ac_cv_func_shl_load = yes; then
9712 lt_cv_dlopen="shl_load"
9714 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9715 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9716 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 ac_check_lib_save_LIBS=$LIBS
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9728 /* Override any gcc2 internal prototype to avoid an error. */
9732 /* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_lib_dld_shl_load=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_lib_dld_shl_load=no
9772 rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9776 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9777 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9778 if test $ac_cv_lib_dld_shl_load = yes; then
9779 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9781 echo "$as_me:$LINENO: checking for dlopen" >&5
9782 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9783 if test "${ac_cv_func_dlopen+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794 #define dlopen innocuous_dlopen
9796 /* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char dlopen (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9802 # include <limits.h>
9804 # include <assert.h>
9809 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9823 char (*f) () = dlopen;
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_cv_func_dlopen=yes
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_cv_func_dlopen=no
9866 rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9870 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9871 if test $ac_cv_func_dlopen = yes; then
9872 lt_cv_dlopen="dlopen"
9874 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 ac_check_lib_save_LIBS=$LIBS
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any gcc2 internal prototype to avoid an error. */
9892 /* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>conftest.er1
9907 grep -v '^ *+' conftest.er1 >conftest.err
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag"
9913 || test ! -s conftest.err'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_lib_dl_dlopen=yes
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 ac_cv_lib_dl_dlopen=no
9932 rm -f conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9936 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9938 if test $ac_cv_lib_dl_dlopen = yes; then
9939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9941 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9942 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9943 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 ac_check_lib_save_LIBS=$LIBS
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9955 /* Override any gcc2 internal prototype to avoid an error. */
9959 /* We use char because int might match the return type of a gcc2
9960 builtin and then its argument prototype would still apply. */
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972 (eval $ac_link) 2>conftest.er1
9974 grep -v '^ *+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag"
9980 || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest$ac_exeext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_lib_svld_dlopen=yes
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_cv_lib_svld_dlopen=no
9999 rm -f conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10003 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10004 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10005 if test $ac_cv_lib_svld_dlopen = yes; then
10006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10008 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10009 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10010 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 ac_check_lib_save_LIBS=$LIBS
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10022 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039 (eval $ac_link) 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag"
10047 || test ! -s conftest.err'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_lib_dld_dld_link=yes
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_cv_lib_dld_dld_link=no
10066 rm -f conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10070 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10071 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10072 if test $ac_cv_lib_dld_dld_link = yes; then
10073 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10094 if test "x$lt_cv_dlopen" != xno; then
10100 case $lt_cv_dlopen in
10102 save_CPPFLAGS="$CPPFLAGS"
10103 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10105 save_LDFLAGS="$LDFLAGS"
10106 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10109 LIBS="$lt_cv_dlopen_libs $LIBS"
10111 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10112 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10113 if test "${lt_cv_dlopen_self+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 if test "$cross_compiling" = yes; then :
10117 lt_cv_dlopen_self=cross
10119 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10120 lt_status=$lt_dlunknown
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10122 "configure"
10123 #include "confdefs.h"
10132 # define LT_DLGLOBAL RTLD_GLOBAL
10135 # define LT_DLGLOBAL DL_GLOBAL
10137 # define LT_DLGLOBAL 0
10141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10142 find out it does not work in some platform. */
10143 #ifndef LT_DLLAZY_OR_NOW
10145 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10148 # define LT_DLLAZY_OR_NOW DL_LAZY
10151 # define LT_DLLAZY_OR_NOW RTLD_NOW
10154 # define LT_DLLAZY_OR_NOW DL_NOW
10156 # define LT_DLLAZY_OR_NOW 0
10164 extern "C" void exit (int);
10167 void fnord() { int i=42;}
10170 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10171 int status = $lt_dlunknown;
10175 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10176 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10177 /* dlclose (self); */
10183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184 (eval $ac_link) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10188 (./conftest; exit; ) >&5 2>/dev/null
10190 case x$lt_status in
10191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10193 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10196 # compilation failed
10197 lt_cv_dlopen_self=no
10204 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10205 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10207 if test "x$lt_cv_dlopen_self" = xyes; then
10208 LDFLAGS="$LDFLAGS $link_static_flag"
10209 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10210 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10211 if test "${lt_cv_dlopen_self_static+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 if test "$cross_compiling" = yes; then :
10215 lt_cv_dlopen_self_static=cross
10217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218 lt_status=$lt_dlunknown
10219 cat > conftest.$ac_ext <<EOF
10220 #line 10220 "configure"
10221 #include "confdefs.h"
10230 # define LT_DLGLOBAL RTLD_GLOBAL
10233 # define LT_DLGLOBAL DL_GLOBAL
10235 # define LT_DLGLOBAL 0
10239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240 find out it does not work in some platform. */
10241 #ifndef LT_DLLAZY_OR_NOW
10243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10246 # define LT_DLLAZY_OR_NOW DL_LAZY
10249 # define LT_DLLAZY_OR_NOW RTLD_NOW
10252 # define LT_DLLAZY_OR_NOW DL_NOW
10254 # define LT_DLLAZY_OR_NOW 0
10262 extern "C" void exit (int);
10265 void fnord() { int i=42;}
10268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10269 int status = $lt_dlunknown;
10273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10274 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10275 /* dlclose (self); */
10281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282 (eval $ac_link) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10286 (./conftest; exit; ) >&5 2>/dev/null
10288 case x$lt_status in
10289 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10290 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10291 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10294 # compilation failed
10295 lt_cv_dlopen_self_static=no
10302 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10303 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10306 CPPFLAGS="$save_CPPFLAGS"
10307 LDFLAGS="$save_LDFLAGS"
10312 case $lt_cv_dlopen_self in
10313 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10314 *) enable_dlopen_self=unknown ;;
10317 case $lt_cv_dlopen_self_static in
10318 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10319 *) enable_dlopen_self_static=unknown ;;
10324 # Report which librarie types wil actually be built
10325 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10326 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10327 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10328 echo "${ECHO_T}$can_build_shared" >&6
10330 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10331 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10332 test "$can_build_shared" = "no" && enable_shared=no
10334 # On AIX, shared libraries and static libraries use the same namespace, and
10335 # are all built from PIC.
10338 test "$enable_shared" = yes && enable_static=no
10339 if test -n "$RANLIB"; then
10340 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10341 postinstall_cmds='$RANLIB $lib'
10346 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10347 test "$enable_shared" = yes && enable_static=no
10351 echo "$as_me:$LINENO: result: $enable_shared" >&5
10352 echo "${ECHO_T}$enable_shared" >&6
10354 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10355 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10356 # Make sure either enable_shared or enable_static is yes.
10357 test "$enable_shared" = yes || enable_static=yes
10358 echo "$as_me:$LINENO: result: $enable_static" >&5
10359 echo "${ECHO_T}$enable_static" >&6
10361 # The else clause should only fire when bootstrapping the
10362 # libtool distribution, otherwise you forgot to ship ltmain.sh
10363 # with your package, and you will get complaints that there are
10364 # no rules to generate ltmain.sh.
10365 if test -f "$ltmain"; then
10366 # See if we are running on zsh, and set the options which allow our commands through
10367 # without removal of \ escapes.
10368 if test -n "${ZSH_VERSION+set}" ; then
10369 setopt NO_GLOB_SUBST
10371 # Now quote all the things that may contain metacharacters while being
10372 # careful not to overquote the AC_SUBSTed values. We take copies of the
10373 # variables and quote the copies for generation of the libtool script.
10374 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10376 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10377 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10378 deplibs_check_method reload_flag reload_cmds need_locks \
10379 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10380 lt_cv_sys_global_symbol_to_c_name_address \
10381 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10382 old_postinstall_cmds old_postuninstall_cmds \
10386 lt_prog_compiler_wl \
10387 lt_prog_compiler_pic \
10388 lt_prog_compiler_static \
10389 lt_prog_compiler_no_builtin_flag \
10390 export_dynamic_flag_spec \
10391 thread_safe_flag_spec \
10392 whole_archive_flag_spec \
10393 enable_shared_with_static_runtimes \
10395 old_archive_from_new_cmds \
10400 compiler_lib_search_path \
10402 archive_expsym_cmds \
10404 postuninstall_cmds \
10405 old_archive_from_expsyms_cmds \
10406 allow_undefined_flag \
10407 no_undefined_flag \
10408 export_symbols_cmds \
10409 hardcode_libdir_flag_spec \
10410 hardcode_libdir_flag_spec_ld \
10411 hardcode_libdir_separator \
10412 hardcode_automatic \
10414 module_expsym_cmds \
10415 lt_cv_prog_compiler_c_o \
10417 include_expsyms; do
10420 old_archive_cmds | \
10421 old_archive_from_new_cmds | \
10423 archive_expsym_cmds | \
10425 module_expsym_cmds | \
10426 old_archive_from_expsyms_cmds | \
10427 export_symbols_cmds | \
10428 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10429 postinstall_cmds | postuninstall_cmds | \
10430 old_postinstall_cmds | old_postuninstall_cmds | \
10431 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10432 # Double-quote double-evaled strings.
10433 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10442 *'\$0 --fallback-echo"')
10443 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10447 cfgfile="${ofile}T"
10448 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10450 { echo "$as_me:$LINENO: creating $ofile" >&5
10451 echo "$as_me: creating $ofile" >&6;}
10453 cat <<__EOF__ >> "$cfgfile"
10456 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10457 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10458 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10460 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10461 # Free Software Foundation, Inc.
10463 # This file is part of GNU Libtool:
10464 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10466 # This program is free software; you can redistribute it and/or modify
10467 # it under the terms of the GNU General Public License as published by
10468 # the Free Software Foundation; either version 2 of the License, or
10469 # (at your option) any later version.
10471 # This program is distributed in the hope that it will be useful, but
10472 # WITHOUT ANY WARRANTY; without even the implied warranty of
10473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10474 # General Public License for more details.
10476 # You should have received a copy of the GNU General Public License
10477 # along with this program; if not, write to the Free Software
10478 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10480 # As a special exception to the GNU General Public License, if you
10481 # distribute this file as part of a program that contains a
10482 # configuration script generated by Autoconf, you may include it under
10483 # the same distribution terms that you use for the rest of that program.
10485 # A sed program that does not truncate output.
10488 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10489 Xsed="$SED -e 1s/^X//"
10491 # The HP-UX ksh and POSIX shell print the target directory to stdout
10492 # if CDPATH is set.
10493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10495 # The names of the tagged configurations supported by this script.
10498 # ### BEGIN LIBTOOL CONFIG
10500 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10502 # Shell to use when invoking shell scripts.
10505 # Whether or not to build shared libraries.
10506 build_libtool_libs=$enable_shared
10508 # Whether or not to build static libraries.
10509 build_old_libs=$enable_static
10511 # Whether or not to add -lc for building shared libraries.
10512 build_libtool_need_lc=$archive_cmds_need_lc
10514 # Whether or not to disallow shared libs when runtime libs are static
10515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10517 # Whether or not to optimize for fast installation.
10518 fast_install=$enable_fast_install
10521 host_alias=$host_alias
10525 # The build system.
10526 build_alias=$build_alias
10530 # An echo program that does not interpret backslashes.
10535 AR_FLAGS=$lt_AR_FLAGS
10540 # A language-specific compiler.
10543 # Is the compiler the GNU C compiler?
10549 # The linker used to build libraries.
10552 # Whether we need hard or soft links.
10555 # A BSD-compatible nm program.
10558 # A symbol stripping program
10561 # Used to examine libraries when file_magic_cmd begins "file"
10562 MAGIC_CMD=$MAGIC_CMD
10564 # Used on cygwin: DLL creation program.
10567 # Used on cygwin: object dumper.
10570 # Used on cygwin: assembler.
10573 # The name of the directory that contains temporary libtool files.
10576 # How to create reloadable object files.
10577 reload_flag=$lt_reload_flag
10578 reload_cmds=$lt_reload_cmds
10580 # How to pass a linker flag through the compiler.
10581 wl=$lt_lt_prog_compiler_wl
10583 # Object file suffix (normally "o").
10584 objext="$ac_objext"
10586 # Old archive suffix (normally "a").
10589 # Shared library suffix (normally ".so").
10590 shrext_cmds='$shrext_cmds'
10592 # Executable file suffix (normally "").
10595 # Additional compiler flags for building library objects.
10596 pic_flag=$lt_lt_prog_compiler_pic
10599 # What is the maximum length of a command?
10600 max_cmd_len=$lt_cv_sys_max_cmd_len
10602 # Does compiler simultaneously support -c and -o options?
10603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10605 # Must we lock files when doing compilation?
10606 need_locks=$lt_need_locks
10608 # Do we need the lib prefix for modules?
10609 need_lib_prefix=$need_lib_prefix
10611 # Do we need a version for libraries?
10612 need_version=$need_version
10614 # Whether dlopen is supported.
10615 dlopen_support=$enable_dlopen
10617 # Whether dlopen of programs is supported.
10618 dlopen_self=$enable_dlopen_self
10620 # Whether dlopen of statically linked programs is supported.
10621 dlopen_self_static=$enable_dlopen_self_static
10623 # Compiler flag to prevent dynamic linking.
10624 link_static_flag=$lt_lt_prog_compiler_static
10626 # Compiler flag to turn off builtin functions.
10627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10629 # Compiler flag to allow reflexive dlopens.
10630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10632 # Compiler flag to generate shared objects directly from archives.
10633 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10635 # Compiler flag to generate thread-safe objects.
10636 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10638 # Library versioning type.
10639 version_type=$version_type
10641 # Format of library name prefix.
10642 libname_spec=$lt_libname_spec
10644 # List of archive names. First name is the real one, the rest are links.
10645 # The last name is the one that the linker finds with -lNAME.
10646 library_names_spec=$lt_library_names_spec
10648 # The coded name of the library, if different from the real name.
10649 soname_spec=$lt_soname_spec
10651 # Commands used to build and install an old-style archive.
10653 old_archive_cmds=$lt_old_archive_cmds
10654 old_postinstall_cmds=$lt_old_postinstall_cmds
10655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10657 # Create an old-style archive from a shared archive.
10658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10660 # Create a temporary old-style archive to link instead of a shared archive.
10661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10663 # Commands used to build and install a shared archive.
10664 archive_cmds=$lt_archive_cmds
10665 archive_expsym_cmds=$lt_archive_expsym_cmds
10666 postinstall_cmds=$lt_postinstall_cmds
10667 postuninstall_cmds=$lt_postuninstall_cmds
10669 # Commands used to build a loadable module (assumed same as above if empty)
10670 module_cmds=$lt_module_cmds
10671 module_expsym_cmds=$lt_module_expsym_cmds
10673 # Commands to strip libraries.
10674 old_striplib=$lt_old_striplib
10675 striplib=$lt_striplib
10677 # Dependencies to place before the objects being linked to create a
10679 predep_objects=$lt_predep_objects
10681 # Dependencies to place after the objects being linked to create a
10683 postdep_objects=$lt_postdep_objects
10685 # Dependencies to place before the objects being linked to create a
10687 predeps=$lt_predeps
10689 # Dependencies to place after the objects being linked to create a
10691 postdeps=$lt_postdeps
10693 # The library search path used internally by the compiler when linking
10694 # a shared library.
10695 compiler_lib_search_path=$lt_compiler_lib_search_path
10697 # Method to check whether dependent libraries are shared objects.
10698 deplibs_check_method=$lt_deplibs_check_method
10700 # Command to use when deplibs_check_method == file_magic.
10701 file_magic_cmd=$lt_file_magic_cmd
10703 # Flag that allows shared libraries with undefined symbols to be built.
10704 allow_undefined_flag=$lt_allow_undefined_flag
10706 # Flag that forces no undefined symbols.
10707 no_undefined_flag=$lt_no_undefined_flag
10709 # Commands used to finish a libtool library installation in a directory.
10710 finish_cmds=$lt_finish_cmds
10712 # Same as above, but a single script fragment to be evaled but not shown.
10713 finish_eval=$lt_finish_eval
10715 # Take the output of nm and produce a listing of raw symbols and C names.
10716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10718 # Transform the output of nm in a proper C declaration
10719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10721 # Transform the output of nm in a C name address pair
10722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10724 # This is the shared library runtime path variable.
10725 runpath_var=$runpath_var
10727 # This is the shared library path variable.
10728 shlibpath_var=$shlibpath_var
10730 # Is shlibpath searched before the hard-coded library search path?
10731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10733 # How to hardcode a shared library path into an executable.
10734 hardcode_action=$hardcode_action
10736 # Whether we should hardcode library paths into libraries.
10737 hardcode_into_libs=$hardcode_into_libs
10739 # Flag to hardcode \$libdir into a binary during linking.
10740 # This must work even if \$libdir does not exist.
10741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10743 # If ld is used when linking, flag to hardcode \$libdir into
10744 # a binary during linking. This must work even if \$libdir does
10746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10748 # Whether we need a single -rpath flag with a separated argument.
10749 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10752 # resulting binary.
10753 hardcode_direct=$hardcode_direct
10755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10756 # resulting binary.
10757 hardcode_minus_L=$hardcode_minus_L
10759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10760 # the resulting binary.
10761 hardcode_shlibpath_var=$hardcode_shlibpath_var
10763 # Set to yes if building a shared library automatically hardcodes DIR into the library
10764 # and all subsequent libraries and executables linked against it.
10765 hardcode_automatic=$hardcode_automatic
10767 # Variables whose values should be saved in libtool wrapper scripts and
10768 # restored at relink time.
10769 variables_saved_for_relink="$variables_saved_for_relink"
10771 # Whether libtool must link a program against all its dependency libraries.
10772 link_all_deplibs=$link_all_deplibs
10774 # Compile-time system search path for libraries
10775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10777 # Run-time system search path for libraries
10778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10780 # Fix the shell variable \$srcfile for the compiler.
10781 fix_srcfile_path="$fix_srcfile_path"
10783 # Set to yes if exported symbols are required.
10784 always_export_symbols=$always_export_symbols
10786 # The commands to list exported symbols.
10787 export_symbols_cmds=$lt_export_symbols_cmds
10789 # The commands to extract the exported symbol list from a shared archive.
10790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10792 # Symbols that should not be listed in the preloaded symbols.
10793 exclude_expsyms=$lt_exclude_expsyms
10795 # Symbols that must always be exported.
10796 include_expsyms=$lt_include_expsyms
10798 # ### END LIBTOOL CONFIG
10805 cat <<\EOF >> "$cfgfile"
10807 # AIX sometimes has problems with the GCC collect2 program. For some
10808 # reason, if we set the COLLECT_NAMES environment variable, the problems
10809 # vanish in a puff of smoke.
10810 if test "X${COLLECT_NAMES+set}" != Xset; then
10812 export COLLECT_NAMES
10818 # We use sed instead of cat because bash on DJGPP gets confused if
10819 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10820 # text mode, it properly converts lines to CR/LF. This bash problem
10821 # is reportedly fixed, but why not run on old versions too?
10822 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10824 mv -f "$cfgfile" "$ofile" || \
10825 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10829 # If there is no Makefile yet, we rely on a make rule to execute
10830 # `config.status --recheck' to rerun these tests and create the
10831 # libtool script then.
10832 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10833 if test -f "$ltmain_in"; then
10834 test -f Makefile && make "$ltmain"
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10848 # Check whether --with-tags or --without-tags was given.
10849 if test "${with_tags+set}" = set; then
10850 withval="$with_tags"
10851 tagnames="$withval"
10854 if test -f "$ltmain" && test -n "$tagnames"; then
10855 if test ! -f "${ofile}"; then
10856 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10857 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10860 if test -z "$LTCC"; then
10861 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10862 if test -z "$LTCC"; then
10863 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10864 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10867 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10871 # Extract list of available tagged configurations in $ofile.
10872 # Note that this assumes the entire list is on one line.
10873 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10875 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10876 for tagname in $tagnames; do
10878 # Check whether tagname contains only valid characters
10879 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10881 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10882 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10883 { (exit 1); exit 1; }; }
10887 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10889 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10890 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10891 { (exit 1); exit 1; }; }
10894 # Update the list of available tags.
10895 if test -n "$tagname"; then
10896 echo appending configuration tag \"$tagname\" to $ofile
10900 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10901 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10902 (test "X$CXX" != "Xg++"))) ; then
10910 if test -n "$F77" && test "X$F77" != "Xno"; then
10918 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10929 # Source file extension for RC test sources.
10932 # Object file extension for compiled RC test sources.
10936 # Code to be used in simple compile tests
10937 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10939 # Code to be used in simple link tests
10940 lt_simple_link_test_code="$lt_simple_compile_test_code"
10942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10944 # If no C compiler was specified, use CC.
10947 # Allow CC to be a program name with arguments.
10951 # save warnings/boilerplate of simple test code
10952 ac_outfile=conftest.$ac_objext
10953 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10955 _lt_compiler_boilerplate=`cat conftest.err`
10958 ac_outfile=conftest.$ac_objext
10959 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10961 _lt_linker_boilerplate=`cat conftest.err`
10965 # Allow CC to be a program name with arguments.
10970 for cc_temp in $compiler""; do
10972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10980 lt_cv_prog_compiler_c_o_RC=yes
10982 # The else clause should only fire when bootstrapping the
10983 # libtool distribution, otherwise you forgot to ship ltmain.sh
10984 # with your package, and you will get complaints that there are
10985 # no rules to generate ltmain.sh.
10986 if test -f "$ltmain"; then
10987 # See if we are running on zsh, and set the options which allow our commands through
10988 # without removal of \ escapes.
10989 if test -n "${ZSH_VERSION+set}" ; then
10990 setopt NO_GLOB_SUBST
10992 # Now quote all the things that may contain metacharacters while being
10993 # careful not to overquote the AC_SUBSTed values. We take copies of the
10994 # variables and quote the copies for generation of the libtool script.
10995 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10997 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10998 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10999 deplibs_check_method reload_flag reload_cmds need_locks \
11000 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11001 lt_cv_sys_global_symbol_to_c_name_address \
11002 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11003 old_postinstall_cmds old_postuninstall_cmds \
11007 lt_prog_compiler_wl_RC \
11008 lt_prog_compiler_pic_RC \
11009 lt_prog_compiler_static_RC \
11010 lt_prog_compiler_no_builtin_flag_RC \
11011 export_dynamic_flag_spec_RC \
11012 thread_safe_flag_spec_RC \
11013 whole_archive_flag_spec_RC \
11014 enable_shared_with_static_runtimes_RC \
11015 old_archive_cmds_RC \
11016 old_archive_from_new_cmds_RC \
11017 predep_objects_RC \
11018 postdep_objects_RC \
11021 compiler_lib_search_path_RC \
11023 archive_expsym_cmds_RC \
11024 postinstall_cmds_RC \
11025 postuninstall_cmds_RC \
11026 old_archive_from_expsyms_cmds_RC \
11027 allow_undefined_flag_RC \
11028 no_undefined_flag_RC \
11029 export_symbols_cmds_RC \
11030 hardcode_libdir_flag_spec_RC \
11031 hardcode_libdir_flag_spec_ld_RC \
11032 hardcode_libdir_separator_RC \
11033 hardcode_automatic_RC \
11035 module_expsym_cmds_RC \
11036 lt_cv_prog_compiler_c_o_RC \
11037 exclude_expsyms_RC \
11038 include_expsyms_RC; do
11041 old_archive_cmds_RC | \
11042 old_archive_from_new_cmds_RC | \
11043 archive_cmds_RC | \
11044 archive_expsym_cmds_RC | \
11046 module_expsym_cmds_RC | \
11047 old_archive_from_expsyms_cmds_RC | \
11048 export_symbols_cmds_RC | \
11049 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11050 postinstall_cmds | postuninstall_cmds | \
11051 old_postinstall_cmds | old_postuninstall_cmds | \
11052 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11053 # Double-quote double-evaled strings.
11054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11063 *'\$0 --fallback-echo"')
11064 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11070 cat <<__EOF__ >> "$cfgfile"
11071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11075 # Shell to use when invoking shell scripts.
11078 # Whether or not to build shared libraries.
11079 build_libtool_libs=$enable_shared
11081 # Whether or not to build static libraries.
11082 build_old_libs=$enable_static
11084 # Whether or not to add -lc for building shared libraries.
11085 build_libtool_need_lc=$archive_cmds_need_lc_RC
11087 # Whether or not to disallow shared libs when runtime libs are static
11088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11090 # Whether or not to optimize for fast installation.
11091 fast_install=$enable_fast_install
11094 host_alias=$host_alias
11098 # The build system.
11099 build_alias=$build_alias
11103 # An echo program that does not interpret backslashes.
11108 AR_FLAGS=$lt_AR_FLAGS
11113 # A language-specific compiler.
11116 # Is the compiler the GNU C compiler?
11122 # The linker used to build libraries.
11125 # Whether we need hard or soft links.
11128 # A BSD-compatible nm program.
11131 # A symbol stripping program
11134 # Used to examine libraries when file_magic_cmd begins "file"
11135 MAGIC_CMD=$MAGIC_CMD
11137 # Used on cygwin: DLL creation program.
11140 # Used on cygwin: object dumper.
11143 # Used on cygwin: assembler.
11146 # The name of the directory that contains temporary libtool files.
11149 # How to create reloadable object files.
11150 reload_flag=$lt_reload_flag
11151 reload_cmds=$lt_reload_cmds
11153 # How to pass a linker flag through the compiler.
11154 wl=$lt_lt_prog_compiler_wl_RC
11156 # Object file suffix (normally "o").
11157 objext="$ac_objext"
11159 # Old archive suffix (normally "a").
11162 # Shared library suffix (normally ".so").
11163 shrext_cmds='$shrext_cmds'
11165 # Executable file suffix (normally "").
11168 # Additional compiler flags for building library objects.
11169 pic_flag=$lt_lt_prog_compiler_pic_RC
11172 # What is the maximum length of a command?
11173 max_cmd_len=$lt_cv_sys_max_cmd_len
11175 # Does compiler simultaneously support -c and -o options?
11176 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11178 # Must we lock files when doing compilation?
11179 need_locks=$lt_need_locks
11181 # Do we need the lib prefix for modules?
11182 need_lib_prefix=$need_lib_prefix
11184 # Do we need a version for libraries?
11185 need_version=$need_version
11187 # Whether dlopen is supported.
11188 dlopen_support=$enable_dlopen
11190 # Whether dlopen of programs is supported.
11191 dlopen_self=$enable_dlopen_self
11193 # Whether dlopen of statically linked programs is supported.
11194 dlopen_self_static=$enable_dlopen_self_static
11196 # Compiler flag to prevent dynamic linking.
11197 link_static_flag=$lt_lt_prog_compiler_static_RC
11199 # Compiler flag to turn off builtin functions.
11200 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11202 # Compiler flag to allow reflexive dlopens.
11203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11205 # Compiler flag to generate shared objects directly from archives.
11206 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11208 # Compiler flag to generate thread-safe objects.
11209 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11211 # Library versioning type.
11212 version_type=$version_type
11214 # Format of library name prefix.
11215 libname_spec=$lt_libname_spec
11217 # List of archive names. First name is the real one, the rest are links.
11218 # The last name is the one that the linker finds with -lNAME.
11219 library_names_spec=$lt_library_names_spec
11221 # The coded name of the library, if different from the real name.
11222 soname_spec=$lt_soname_spec
11224 # Commands used to build and install an old-style archive.
11226 old_archive_cmds=$lt_old_archive_cmds_RC
11227 old_postinstall_cmds=$lt_old_postinstall_cmds
11228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11230 # Create an old-style archive from a shared archive.
11231 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11233 # Create a temporary old-style archive to link instead of a shared archive.
11234 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11236 # Commands used to build and install a shared archive.
11237 archive_cmds=$lt_archive_cmds_RC
11238 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11239 postinstall_cmds=$lt_postinstall_cmds
11240 postuninstall_cmds=$lt_postuninstall_cmds
11242 # Commands used to build a loadable module (assumed same as above if empty)
11243 module_cmds=$lt_module_cmds_RC
11244 module_expsym_cmds=$lt_module_expsym_cmds_RC
11246 # Commands to strip libraries.
11247 old_striplib=$lt_old_striplib
11248 striplib=$lt_striplib
11250 # Dependencies to place before the objects being linked to create a
11252 predep_objects=$lt_predep_objects_RC
11254 # Dependencies to place after the objects being linked to create a
11256 postdep_objects=$lt_postdep_objects_RC
11258 # Dependencies to place before the objects being linked to create a
11260 predeps=$lt_predeps_RC
11262 # Dependencies to place after the objects being linked to create a
11264 postdeps=$lt_postdeps_RC
11266 # The library search path used internally by the compiler when linking
11267 # a shared library.
11268 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11270 # Method to check whether dependent libraries are shared objects.
11271 deplibs_check_method=$lt_deplibs_check_method
11273 # Command to use when deplibs_check_method == file_magic.
11274 file_magic_cmd=$lt_file_magic_cmd
11276 # Flag that allows shared libraries with undefined symbols to be built.
11277 allow_undefined_flag=$lt_allow_undefined_flag_RC
11279 # Flag that forces no undefined symbols.
11280 no_undefined_flag=$lt_no_undefined_flag_RC
11282 # Commands used to finish a libtool library installation in a directory.
11283 finish_cmds=$lt_finish_cmds
11285 # Same as above, but a single script fragment to be evaled but not shown.
11286 finish_eval=$lt_finish_eval
11288 # Take the output of nm and produce a listing of raw symbols and C names.
11289 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11291 # Transform the output of nm in a proper C declaration
11292 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11294 # Transform the output of nm in a C name address pair
11295 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11297 # This is the shared library runtime path variable.
11298 runpath_var=$runpath_var
11300 # This is the shared library path variable.
11301 shlibpath_var=$shlibpath_var
11303 # Is shlibpath searched before the hard-coded library search path?
11304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11306 # How to hardcode a shared library path into an executable.
11307 hardcode_action=$hardcode_action_RC
11309 # Whether we should hardcode library paths into libraries.
11310 hardcode_into_libs=$hardcode_into_libs
11312 # Flag to hardcode \$libdir into a binary during linking.
11313 # This must work even if \$libdir does not exist.
11314 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11316 # If ld is used when linking, flag to hardcode \$libdir into
11317 # a binary during linking. This must work even if \$libdir does
11319 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11321 # Whether we need a single -rpath flag with a separated argument.
11322 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11324 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11325 # resulting binary.
11326 hardcode_direct=$hardcode_direct_RC
11328 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11329 # resulting binary.
11330 hardcode_minus_L=$hardcode_minus_L_RC
11332 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11333 # the resulting binary.
11334 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11336 # Set to yes if building a shared library automatically hardcodes DIR into the library
11337 # and all subsequent libraries and executables linked against it.
11338 hardcode_automatic=$hardcode_automatic_RC
11340 # Variables whose values should be saved in libtool wrapper scripts and
11341 # restored at relink time.
11342 variables_saved_for_relink="$variables_saved_for_relink"
11344 # Whether libtool must link a program against all its dependency libraries.
11345 link_all_deplibs=$link_all_deplibs_RC
11347 # Compile-time system search path for libraries
11348 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11350 # Run-time system search path for libraries
11351 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11353 # Fix the shell variable \$srcfile for the compiler.
11354 fix_srcfile_path="$fix_srcfile_path_RC"
11356 # Set to yes if exported symbols are required.
11357 always_export_symbols=$always_export_symbols_RC
11359 # The commands to list exported symbols.
11360 export_symbols_cmds=$lt_export_symbols_cmds_RC
11362 # The commands to extract the exported symbol list from a shared archive.
11363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11365 # Symbols that should not be listed in the preloaded symbols.
11366 exclude_expsyms=$lt_exclude_expsyms_RC
11368 # Symbols that must always be exported.
11369 include_expsyms=$lt_include_expsyms_RC
11371 # ### END LIBTOOL TAG CONFIG: $tagname
11377 # If there is no Makefile yet, we rely on a make rule to execute
11378 # `config.status --recheck' to rerun these tests and create the
11379 # libtool script then.
11380 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11381 if test -f "$ltmain_in"; then
11382 test -f Makefile && make "$ltmain"
11388 ac_cpp='$CPP $CPPFLAGS'
11389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11398 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11399 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11400 { (exit 1); exit 1; }; }
11404 # Append the new tag name to the list of available tags.
11405 if test -n "$tagname" ; then
11406 available_tags="$available_tags $tagname"
11412 # Now substitute the updated list of available tags.
11413 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11414 mv "${ofile}T" "$ofile"
11418 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11419 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11420 { (exit 1); exit 1; }; }
11426 # This can be used to rebuild libtool when needed
11427 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11429 # Always use our own libtool.
11430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11432 # Prevent multiple expansion
11444 if test $ol_enable_perl != no ; then
11445 # Extract the first word of "perl", so it can be a program name with args.
11446 set dummy perl; ac_word=$2
11447 echo "$as_me:$LINENO: checking for $ac_word" >&5
11448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11449 if test "${ac_cv_path_PERLBIN+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11475 PERLBIN=$ac_cv_path_PERLBIN
11477 if test -n "$PERLBIN"; then
11478 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11479 echo "${ECHO_T}$PERLBIN" >&6
11481 echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6
11486 if test "no$PERLBIN" = "no" ; then
11487 if test $ol_enable_perl = yes ; then
11488 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11489 echo "$as_me: error: could not locate perl" >&2;}
11490 { (exit 1); exit 1; }; }
11494 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11495 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11497 if test x"$ol_enable_perl" = "xyes" ; then
11498 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11500 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11512 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11513 # On Suns, sometimes $CPP names a directory.
11514 if test -n "$CPP" && test -d "$CPP"; then
11517 if test -z "$CPP"; then
11518 if test "${ac_cv_prog_CPP+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 # Double quotes because CPP needs to be expanded
11522 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11524 ac_preproc_ok=false
11525 for ac_c_preproc_warn_flag in '' yes
11527 # Use a header file that comes with gcc, so configuring glibc
11528 # with a fresh cross-compiler works.
11529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530 # <limits.h> exists even on freestanding compilers.
11531 # On the NeXT, cc -E runs the code through the compiler's parser,
11532 # not just through cpp. "Syntax error" is here to catch this case.
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11540 # include <limits.h>
11542 # include <assert.h>
11546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11549 grep -v '^ *+' conftest.er1 >conftest.err
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } >/dev/null; then
11554 if test -s conftest.err; then
11555 ac_cpp_err=$ac_c_preproc_warn_flag
11556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11563 if test -z "$ac_cpp_err"; then
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 # Broken: fails on valid input.
11572 rm -f conftest.err conftest.$ac_ext
11574 # OK, works on sane cases. Now check whether non-existent headers
11575 # can be detected and how.
11576 cat >conftest.$ac_ext <<_ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <ac_nonexistent.h>
11584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } >/dev/null; then
11592 if test -s conftest.err; then
11593 ac_cpp_err=$ac_c_preproc_warn_flag
11594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11601 if test -z "$ac_cpp_err"; then
11602 # Broken: success on invalid input.
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 # Passes both tests.
11612 rm -f conftest.err conftest.$ac_ext
11615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11616 rm -f conftest.err conftest.$ac_ext
11617 if $ac_preproc_ok; then
11622 ac_cv_prog_CPP=$CPP
11625 CPP=$ac_cv_prog_CPP
11627 ac_cv_prog_CPP=$CPP
11629 echo "$as_me:$LINENO: result: $CPP" >&5
11630 echo "${ECHO_T}$CPP" >&6
11631 ac_preproc_ok=false
11632 for ac_c_preproc_warn_flag in '' yes
11634 # Use a header file that comes with gcc, so configuring glibc
11635 # with a fresh cross-compiler works.
11636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11637 # <limits.h> exists even on freestanding compilers.
11638 # On the NeXT, cc -E runs the code through the compiler's parser,
11639 # not just through cpp. "Syntax error" is here to catch this case.
11640 cat >conftest.$ac_ext <<_ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11647 # include <limits.h>
11649 # include <assert.h>
11653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11656 grep -v '^ *+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } >/dev/null; then
11661 if test -s conftest.err; then
11662 ac_cpp_err=$ac_c_preproc_warn_flag
11663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670 if test -z "$ac_cpp_err"; then
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 # Broken: fails on valid input.
11679 rm -f conftest.err conftest.$ac_ext
11681 # OK, works on sane cases. Now check whether non-existent headers
11682 # can be detected and how.
11683 cat >conftest.$ac_ext <<_ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #include <ac_nonexistent.h>
11691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11694 grep -v '^ *+' conftest.er1 >conftest.err
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } >/dev/null; then
11699 if test -s conftest.err; then
11700 ac_cpp_err=$ac_c_preproc_warn_flag
11701 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11708 if test -z "$ac_cpp_err"; then
11709 # Broken: success on invalid input.
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 # Passes both tests.
11719 rm -f conftest.err conftest.$ac_ext
11722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11723 rm -f conftest.err conftest.$ac_ext
11724 if $ac_preproc_ok; then
11727 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11728 See \`config.log' for more details." >&5
11729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11730 See \`config.log' for more details." >&2;}
11731 { (exit 1); exit 1; }; }
11735 ac_cpp='$CPP $CPPFLAGS'
11736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11742 *mingw32* ) ac_cv_mingw32=yes ;;
11743 *cygwin* ) ac_cv_cygwin=yes ;;
11749 cat >>confdefs.h <<_ACEOF
11750 #define EXEEXT "${EXEEXT}"
11754 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11755 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11756 if test "${ac_cv_lib_be_be_app+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-lbe -lroot -lnet $LIBS"
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11768 /* Override any gcc2 internal prototype to avoid an error. */
11772 /* We use char because int might match the return type of a gcc2
11773 builtin and then its argument prototype would still apply. */
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11785 (eval $ac_link) 2>conftest.er1
11787 grep -v '^ *+' conftest.er1 >conftest.err
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try='test -z "$ac_c_werror_flag"
11793 || test ! -s conftest.err'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest$ac_exeext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_lib_be_be_app=yes
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_cv_lib_be_be_app=no
11812 rm -f conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11816 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11817 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11818 if test $ac_cv_lib_be_be_app = yes; then
11819 LIBS="$LIBS -lbe -lroot -lnet"
11826 ac_cpp='$CPP $CPPFLAGS'
11827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11830 if test -n "$ac_tool_prefix"; then
11831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11833 echo "$as_me:$LINENO: checking for $ac_word" >&5
11834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11835 if test "${ac_cv_prog_CC+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 if test -n "$CC"; then
11839 ac_cv_prog_CC="$CC" # Let the user override the test.
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 if test -n "$CC"; then
11859 echo "$as_me:$LINENO: result: $CC" >&5
11860 echo "${ECHO_T}$CC" >&6
11862 echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6
11867 if test -z "$ac_cv_prog_CC"; then
11869 # Extract the first word of "gcc", so it can be a program name with args.
11870 set dummy gcc; ac_word=$2
11871 echo "$as_me:$LINENO: checking for $ac_word" >&5
11872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 if test -n "$ac_ct_CC"; then
11877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886 ac_cv_prog_ac_ct_CC="gcc"
11887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11896 if test -n "$ac_ct_CC"; then
11897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11898 echo "${ECHO_T}$ac_ct_CC" >&6
11900 echo "$as_me:$LINENO: result: no" >&5
11901 echo "${ECHO_T}no" >&6
11906 CC="$ac_cv_prog_CC"
11909 if test -z "$CC"; then
11910 if test -n "$ac_tool_prefix"; then
11911 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11912 set dummy ${ac_tool_prefix}cc; ac_word=$2
11913 echo "$as_me:$LINENO: checking for $ac_word" >&5
11914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11915 if test "${ac_cv_prog_CC+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 if test -n "$CC"; then
11919 ac_cv_prog_CC="$CC" # Let the user override the test.
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928 ac_cv_prog_CC="${ac_tool_prefix}cc"
11929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 if test -n "$CC"; then
11939 echo "$as_me:$LINENO: result: $CC" >&5
11940 echo "${ECHO_T}$CC" >&6
11942 echo "$as_me:$LINENO: result: no" >&5
11943 echo "${ECHO_T}no" >&6
11947 if test -z "$ac_cv_prog_CC"; then
11949 # Extract the first word of "cc", so it can be a program name with args.
11950 set dummy cc; ac_word=$2
11951 echo "$as_me:$LINENO: checking for $ac_word" >&5
11952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 if test -n "$ac_ct_CC"; then
11957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11966 ac_cv_prog_ac_ct_CC="cc"
11967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11976 if test -n "$ac_ct_CC"; then
11977 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11978 echo "${ECHO_T}$ac_ct_CC" >&6
11980 echo "$as_me:$LINENO: result: no" >&5
11981 echo "${ECHO_T}no" >&6
11986 CC="$ac_cv_prog_CC"
11990 if test -z "$CC"; then
11991 # Extract the first word of "cc", so it can be a program name with args.
11992 set dummy cc; ac_word=$2
11993 echo "$as_me:$LINENO: checking for $ac_word" >&5
11994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11995 if test "${ac_cv_prog_CC+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 if test -n "$CC"; then
11999 ac_cv_prog_CC="$CC" # Let the user override the test.
12001 ac_prog_rejected=no
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12010 ac_prog_rejected=yes
12014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 if test $ac_prog_rejected = yes; then
12021 # We found a bogon in the path, so make sure we never use it.
12022 set dummy $ac_cv_prog_CC
12024 if test $# != 0; then
12025 # We chose a different compiler from the bogus one.
12026 # However, it has the same basename, so the bogon will be chosen
12027 # first if we set CC to just the basename; use the full file name.
12029 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12035 if test -n "$CC"; then
12036 echo "$as_me:$LINENO: result: $CC" >&5
12037 echo "${ECHO_T}$CC" >&6
12039 echo "$as_me:$LINENO: result: no" >&5
12040 echo "${ECHO_T}no" >&6
12044 if test -z "$CC"; then
12045 if test -n "$ac_tool_prefix"; then
12048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12050 echo "$as_me:$LINENO: checking for $ac_word" >&5
12051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12052 if test "${ac_cv_prog_CC+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 if test -n "$CC"; then
12056 ac_cv_prog_CC="$CC" # Let the user override the test.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 if test -n "$CC"; then
12076 echo "$as_me:$LINENO: result: $CC" >&5
12077 echo "${ECHO_T}$CC" >&6
12079 echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6
12083 test -n "$CC" && break
12086 if test -z "$CC"; then
12090 # Extract the first word of "$ac_prog", so it can be a program name with args.
12091 set dummy $ac_prog; ac_word=$2
12092 echo "$as_me:$LINENO: checking for $ac_word" >&5
12093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 if test -n "$ac_ct_CC"; then
12098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107 ac_cv_prog_ac_ct_CC="$ac_prog"
12108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12117 if test -n "$ac_ct_CC"; then
12118 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12119 echo "${ECHO_T}$ac_ct_CC" >&6
12121 echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12125 test -n "$ac_ct_CC" && break
12134 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12135 See \`config.log' for more details." >&5
12136 echo "$as_me: error: no acceptable C compiler found in \$PATH
12137 See \`config.log' for more details." >&2;}
12138 { (exit 1); exit 1; }; }
12140 # Provide some information about the compiler.
12141 echo "$as_me:$LINENO:" \
12142 "checking for C compiler version" >&5
12143 ac_compiler=`set X $ac_compile; echo $2`
12144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12145 (eval $ac_compiler --version </dev/null >&5) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }
12149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12150 (eval $ac_compiler -v </dev/null >&5) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }
12154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12155 (eval $ac_compiler -V </dev/null >&5) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }
12160 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12161 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12162 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185 (eval $ac_compile) 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag"
12193 || test ! -s conftest.err'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_compiler_gnu=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12216 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12217 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12218 GCC=`test $ac_compiler_gnu = yes && echo yes`
12219 ac_test_CFLAGS=${CFLAGS+set}
12220 ac_save_CFLAGS=$CFLAGS
12222 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12224 if test "${ac_cv_prog_cc_g+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 cat >conftest.$ac_ext <<_ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244 (eval $ac_compile) 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest.$ac_objext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_cv_prog_cc_g=yes
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12273 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12274 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12275 if test "$ac_test_CFLAGS" = set; then
12276 CFLAGS=$ac_save_CFLAGS
12277 elif test $ac_cv_prog_cc_g = yes; then
12278 if test "$GCC" = yes; then
12284 if test "$GCC" = yes; then
12290 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12291 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12292 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 ac_cv_prog_cc_stdc=no
12297 cat >conftest.$ac_ext <<_ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #include <stdarg.h>
12305 #include <sys/types.h>
12306 #include <sys/stat.h>
12307 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12308 struct buf { int x; };
12309 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12310 static char *e (p, i)
12316 static char *f (char * (*g) (char **, int), char **p, ...)
12321 s = g (p, va_arg (v,int));
12326 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12327 function prototypes and stuff, but not '\xHH' hex character constants.
12328 These don't provoke an error unfortunately, instead are silently treated
12329 as 'x'. The following induces an error, until -std1 is added to get
12330 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12331 array size at least. It's necessary to write '\x00'==0 to get something
12332 that's true only with -std1. */
12333 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12335 int test (int i, double x);
12336 struct s1 {int (*f) (int a);};
12337 struct s2 {int (*f) (double a);};
12338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12344 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12349 # Don't try gcc -ansi; that turns off useful extensions and
12350 # breaks some systems' header files.
12351 # AIX -qlanglvl=ansi
12352 # Ultrix and OSF/1 -std1
12353 # HP-UX 10.20 and later -Ae
12354 # HP-UX older versions -Aa -D_HPUX_SOURCE
12355 # SVR4 -Xc -D__EXTENSIONS__
12356 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12358 CC="$ac_save_CC $ac_arg"
12359 rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361 (eval $ac_compile) 2>conftest.er1
12363 grep -v '^ *+' conftest.er1 >conftest.err
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_prog_cc_stdc=$ac_arg
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12388 rm -f conftest.err conftest.$ac_objext
12390 rm -f conftest.$ac_ext conftest.$ac_objext
12395 case "x$ac_cv_prog_cc_stdc" in
12397 echo "$as_me:$LINENO: result: none needed" >&5
12398 echo "${ECHO_T}none needed" >&6 ;;
12400 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12401 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12402 CC="$CC $ac_cv_prog_cc_stdc" ;;
12405 # Some people use a C++ compiler to compile C. Since we use `exit',
12406 # in C++ we need to declare it. In case someone uses the same compiler
12407 # for both compiling C and C++ we need to have the C++ compiler decide
12408 # the declaration of exit, since it's the most demanding environment.
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #ifndef __cplusplus
12414 rm -f conftest.$ac_objext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416 (eval $ac_compile) 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -z "$ac_c_werror_flag"
12424 || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest.$ac_objext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 for ac_declaration in \
12438 'extern "C" void std::exit (int) throw (); using std::exit;' \
12439 'extern "C" void std::exit (int); using std::exit;' \
12440 'extern "C" void exit (int) throw ();' \
12441 'extern "C" void exit (int);' \
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 #include <stdlib.h>
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12505 rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507 (eval $ac_compile) 2>conftest.er1
12509 grep -v '^ *+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag"
12515 || test ! -s conftest.err'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } &&
12521 { ac_try='test -s conftest.$ac_objext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12536 if test -n "$ac_declaration"; then
12537 echo '#ifdef __cplusplus' >>confdefs.h
12538 echo $ac_declaration >>confdefs.h
12539 echo '#endif' >>confdefs.h
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12549 ac_cpp='$CPP $CPPFLAGS'
12550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12554 depcc="$CC" am_compiler_list=
12556 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12557 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12562 # We make a subdir and do the tests there. Otherwise we can end up
12563 # making bogus files that we don't know about and never remove. For
12564 # instance it was reported that on HP-UX the gcc test will end up
12565 # making a dummy file named `D' -- because `-MD' means `put the output
12568 # Copy depcomp to subdir because otherwise we won't find it if we're
12569 # using a relative directory.
12570 cp "$am_depcomp" conftest.dir
12572 # We will build objects and dependencies in a subdirectory because
12573 # it helps to detect inapplicable dependency modes. For instance
12574 # both Tru64's cc and ICC support -MD to output dependencies as a
12575 # side effect of compilation, but ICC will put the dependencies in
12576 # the current directory while Tru64 will put them in the object
12580 am_cv_CC_dependencies_compiler_type=none
12581 if test "$am_compiler_list" = ""; then
12582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12584 for depmode in $am_compiler_list; do
12585 # Setup a source with many dependencies, because some compilers
12586 # like to wrap large dependency lists on column 80 (with \), and
12587 # we should not choose a depcomp mode which is confused by this.
12589 # We need to recreate these files for each test, as the compiler may
12590 # overwrite some of them when testing with obscure command lines.
12591 # This happens at least with the AIX C compiler.
12593 for i in 1 2 3 4 5 6; do
12594 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12595 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12596 # Solaris 8's {/usr,}/bin/sh.
12597 touch sub/conftst$i.h
12599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12603 # after this tag, mechanisms are not by side-effect, so they'll
12604 # only be used when explicitly requested
12605 if test "x$enable_dependency_tracking" = xyes; then
12613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12614 # mode. It turns out that the SunPro C++ compiler does not properly
12615 # handle `-M -o', and we need to detect this.
12616 if depmode=$depmode \
12617 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12619 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12620 >/dev/null 2>conftest.err &&
12621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12624 # icc doesn't choke on unknown options, it will just issue warnings
12625 # or remarks (even with -Werror). So we grep stderr for any message
12626 # that says an option was ignored or not supported.
12627 # When given -MP, icc 7.0 and 7.1 complain thusly:
12628 # icc: Command line warning: ignoring option '-M'; no argument required
12629 # The diagnosis changed in icc 8.0:
12630 # icc: Command line remark: option '-MP' not supported
12631 if (grep 'ignoring option' conftest.err ||
12632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12633 am_cv_CC_dependencies_compiler_type=$depmode
12640 rm -rf conftest.dir
12642 am_cv_CC_dependencies_compiler_type=none
12646 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12647 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12648 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12653 test "x$enable_dependency_tracking" != xno \
12654 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12655 am__fastdepCC_TRUE=
12656 am__fastdepCC_FALSE='#'
12658 am__fastdepCC_TRUE='#'
12659 am__fastdepCC_FALSE=
12663 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12664 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12665 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12666 { (exit 1); exit 1; }; }
12669 # test for make depend flag
12672 if test -z "${MKDEP}"; then
12673 OL_MKDEP="${CC-cc}"
12674 if test -z "${MKDEP_FLAGS}"; then
12675 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12676 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12677 if test "${ol_cv_mkdep+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 for flag in "-M" "-xM"; do
12683 cat > conftest.c <<EOF
12686 if { ac_try='$OL_MKDEP $flag conftest.c'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; } \
12692 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12694 if test ! -f conftest."${ac_object}" ; then
12696 OL_MKDEP_FLAGS="$flag"
12704 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12705 echo "${ECHO_T}$ol_cv_mkdep" >&6
12708 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12712 OL_MKDEP="${MKDEP}"
12713 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12718 if test "${ol_cv_mkdep}" = no ; then
12719 # this will soon become an error
12720 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12721 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12724 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12725 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12726 if test "${ac_cv_lib_s_afopen+set}" = set; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 ac_check_lib_save_LIBS=$LIBS
12731 cat >conftest.$ac_ext <<_ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12738 /* Override any gcc2 internal prototype to avoid an error. */
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12753 rm -f conftest.$ac_objext conftest$ac_exeext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12755 (eval $ac_link) 2>conftest.er1
12757 grep -v '^ *+' conftest.er1 >conftest.err
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_lib_s_afopen=yes
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_cv_lib_s_afopen=no
12782 rm -f conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_check_lib_save_LIBS
12786 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12787 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12788 if test $ac_cv_lib_s_afopen = yes; then
12792 cat >>confdefs.h <<\_ACEOF
12793 #define HAVE_AIX_SECURITY 1
12802 ac_cv_func_getopt=no
12804 cat >>confdefs.h <<\_ACEOF
12805 #define BOTH_STRINGS_H 1
12812 WITH_MODULES_ENABLED=no
12813 if test $ol_enable_modules != no ; then
12815 for ac_header in ltdl.h
12817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12819 echo "$as_me:$LINENO: checking for $ac_header" >&5
12820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12827 # Is the header compilable?
12828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12830 cat >conftest.$ac_ext <<_ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12836 $ac_includes_default
12837 #include <$ac_header>
12839 rm -f conftest.$ac_objext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12841 (eval $ac_compile) 2>conftest.er1
12843 grep -v '^ *+' conftest.er1 >conftest.err
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -z "$ac_c_werror_flag"
12849 || test ! -s conftest.err'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; } &&
12855 { ac_try='test -s conftest.$ac_objext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12861 ac_header_compiler=yes
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_header_compiler=no
12868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870 echo "${ECHO_T}$ac_header_compiler" >&6
12872 # Is the header present?
12873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 #include <$ac_header>
12883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } >/dev/null; then
12891 if test -s conftest.err; then
12892 ac_cpp_err=$ac_c_preproc_warn_flag
12893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12900 if test -z "$ac_cpp_err"; then
12901 ac_header_preproc=yes
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_header_preproc=no
12908 rm -f conftest.err conftest.$ac_ext
12909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12910 echo "${ECHO_T}$ac_header_preproc" >&6
12912 # So? What about this header?
12913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12919 ac_header_preproc=yes
12922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12936 ## --------------------------------------------- ##
12937 ## Report this to <http://www.openldap.org/its/> ##
12938 ## --------------------------------------------- ##
12941 sed "s/^/$as_me: WARNING: /" >&2
12944 echo "$as_me:$LINENO: checking for $ac_header" >&5
12945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 eval "$as_ac_Header=\$ac_header_preproc"
12951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12956 cat >>confdefs.h <<_ACEOF
12957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12965 if test $ac_cv_header_ltdl_h = no ; then
12966 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
12967 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
12968 { (exit 1); exit 1; }; }
12971 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
12972 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
12973 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 ac_check_lib_save_LIBS=$LIBS
12977 LIBS="-lltdl $LIBS"
12978 cat >conftest.$ac_ext <<_ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12985 /* Override any gcc2 internal prototype to avoid an error. */
12989 /* We use char because int might match the return type of a gcc2
12990 builtin and then its argument prototype would still apply. */
13000 rm -f conftest.$ac_objext conftest$ac_exeext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13002 (eval $ac_link) 2>conftest.er1
13004 grep -v '^ *+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag"
13010 || test ! -s conftest.err'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest$ac_exeext'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13022 ac_cv_lib_ltdl_lt_dlinit=yes
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13027 ac_cv_lib_ltdl_lt_dlinit=no
13029 rm -f conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 LIBS=$ac_check_lib_save_LIBS
13033 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13034 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13035 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13037 MODULES_LIBS=-lltdl
13039 cat >>confdefs.h <<\_ACEOF
13040 #define HAVE_LIBLTDL 1
13047 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13048 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13049 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13050 { (exit 1); exit 1; }; }
13052 ol_link_modules=yes
13053 WITH_MODULES_ENABLED=yes
13056 for i in $Backends; do
13057 eval "ol_tmp=\$ol_enable_$i"
13058 if test $ol_tmp = mod ; then
13059 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13060 echo "$as_me: WARNING: building static $i backend" >&2;}
13061 eval "ol_enable_$i=yes"
13064 for i in $Overlays; do
13065 eval "ol_tmp=\$ol_enable_$i"
13066 if test $ol_tmp = mod ; then
13067 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13068 echo "$as_me: WARNING: building static $i overlay" >&2;}
13069 eval "ol_enable_$i=yes"
13075 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13076 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13077 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 cat >conftest.$ac_ext <<_ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13089 #include <__ASCII__/generate_error.h>
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } >/dev/null; then
13101 if test -s conftest.err; then
13102 ac_cpp_err=$ac_c_preproc_warn_flag
13103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13110 if test -z "$ac_cpp_err"; then
13111 ol_cv_cpp_ebcdic=yes
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13116 ol_cv_cpp_ebcdic=no
13118 rm -f conftest.err conftest.$ac_ext
13120 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13121 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13122 if test $ol_cv_cpp_ebcdic = yes ; then
13124 cat >>confdefs.h <<\_ACEOF
13125 #define HAVE_EBCDIC 1
13130 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13131 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13132 if test "${ol_cv_header_stdc+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #include <stdlib.h>
13142 #include <stdarg.h>
13143 #include <string.h>
13146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13149 grep -v '^ *+' conftest.er1 >conftest.err
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } >/dev/null; then
13154 if test -s conftest.err; then
13155 ac_cpp_err=$ac_c_preproc_warn_flag
13156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13163 if test -z "$ac_cpp_err"; then
13164 ol_cv_header_stdc=yes
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ol_cv_header_stdc=no
13171 rm -f conftest.err conftest.$ac_ext
13173 if test $ol_cv_header_stdc = yes; then
13174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13175 cat >conftest.$ac_ext <<_ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 #include <string.h>
13184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13185 $EGREP "memchr" >/dev/null 2>&1; then
13188 ol_cv_header_stdc=no
13194 if test $ol_cv_header_stdc = yes; then
13195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13196 cat >conftest.$ac_ext <<_ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 #include <stdlib.h>
13205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13206 $EGREP "free" >/dev/null 2>&1; then
13209 ol_cv_header_stdc=no
13215 if test $ol_cv_header_stdc = yes; then
13216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13217 if test "$cross_compiling" = yes; then
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13227 #ifndef HAVE_EBCDIC
13228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13231 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13232 || ('j' <= (c) && (c) <= 'r') \
13233 || ('s' <= (c) && (c) <= 'z'))
13234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13237 int main () { int i; for (i = 0; i < 256; i++)
13238 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13242 rm -f conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244 (eval $ac_link) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13255 echo "$as_me: program exited with status $ac_status" >&5
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ( exit $ac_status )
13260 ol_cv_header_stdc=no
13262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13266 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13267 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13268 if test $ol_cv_header_stdc = yes; then
13269 cat >>confdefs.h <<\_ACEOF
13270 #define STDC_HEADERS 1
13274 ac_cv_header_stdc=disable
13277 if test $ol_cv_header_stdc != yes; then
13278 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13279 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13287 ac_header_dirent=no
13288 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13289 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13290 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13291 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 cat >conftest.$ac_ext <<_ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 #include <sys/types.h>
13313 rm -f conftest.$ac_objext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13315 (eval $ac_compile) 2>conftest.er1
13317 grep -v '^ *+' conftest.er1 >conftest.err
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_c_werror_flag"
13323 || test ! -s conftest.err'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 eval "$as_ac_Header=yes"
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 eval "$as_ac_Header=no"
13342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13347 cat >>confdefs.h <<_ACEOF
13348 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13351 ac_header_dirent=$ac_hdr; break
13355 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13356 if test $ac_header_dirent = dirent.h; then
13357 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13358 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13359 if test "${ac_cv_search_opendir+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13362 ac_func_search_save_LIBS=$LIBS
13363 ac_cv_search_opendir=no
13364 cat >conftest.$ac_ext <<_ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13371 /* Override any gcc2 internal prototype to avoid an error. */
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>conftest.er1
13390 grep -v '^ *+' conftest.er1 >conftest.err
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -z "$ac_c_werror_flag"
13396 || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_search_opendir="none required"
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13414 rm -f conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13416 if test "$ac_cv_search_opendir" = no; then
13417 for ac_lib in dir; do
13418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13419 cat >conftest.$ac_ext <<_ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h. */
13426 /* Override any gcc2 internal prototype to avoid an error. */
13430 /* We use char because int might match the return type of a gcc2
13431 builtin and then its argument prototype would still apply. */
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443 (eval $ac_link) 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -z "$ac_c_werror_flag"
13451 || test ! -s conftest.err'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest$ac_exeext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_cv_search_opendir="-l$ac_lib"
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13470 rm -f conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13474 LIBS=$ac_func_search_save_LIBS
13476 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13477 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13478 if test "$ac_cv_search_opendir" != no; then
13479 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13484 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13485 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13486 if test "${ac_cv_search_opendir+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 ac_func_search_save_LIBS=$LIBS
13490 ac_cv_search_opendir=no
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13498 /* Override any gcc2 internal prototype to avoid an error. */
13502 /* We use char because int might match the return type of a gcc2
13503 builtin and then its argument prototype would still apply. */
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13515 (eval $ac_link) 2>conftest.er1
13517 grep -v '^ *+' conftest.er1 >conftest.err
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try='test -z "$ac_c_werror_flag"
13523 || test ! -s conftest.err'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; } &&
13529 { ac_try='test -s conftest$ac_exeext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_cv_search_opendir="none required"
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13541 rm -f conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13543 if test "$ac_cv_search_opendir" = no; then
13544 for ac_lib in x; do
13545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any gcc2 internal prototype to avoid an error. */
13557 /* We use char because int might match the return type of a gcc2
13558 builtin and then its argument prototype would still apply. */
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13570 (eval $ac_link) 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest$ac_exeext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_cv_search_opendir="-l$ac_lib"
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13597 rm -f conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13601 LIBS=$ac_func_search_save_LIBS
13603 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13604 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13605 if test "$ac_cv_search_opendir" != no; then
13606 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13612 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13613 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13614 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 #include <sys/types.h>
13624 #include <sys/wait.h>
13625 #ifndef WEXITSTATUS
13626 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13642 rm -f conftest.$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_header_sys_wait_h=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_cv_header_sys_wait_h=no
13671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13673 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13674 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13675 if test $ac_cv_header_sys_wait_h = yes; then
13677 cat >>confdefs.h <<\_ACEOF
13678 #define HAVE_SYS_WAIT_H 1
13683 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13684 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13685 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 cat >conftest.$ac_ext <<_ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13694 #include <sys/types.h>
13695 #include <termios.h>
13701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13702 $EGREP "yes" >/dev/null 2>&1; then
13703 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13705 ac_cv_sys_tiocgwinsz_in_termios_h=no
13710 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13711 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13713 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13714 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13715 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13716 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 cat >conftest.$ac_ext <<_ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 #include <sys/types.h>
13726 #include <sys/ioctl.h>
13732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13733 $EGREP "yes" >/dev/null 2>&1; then
13734 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13736 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13741 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13742 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13744 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13746 cat >>confdefs.h <<\_ACEOF
13747 #define GWINSZ_IN_SYS_IOCTL 1
13851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13853 echo "$as_me:$LINENO: checking for $ac_header" >&5
13854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13861 # Is the header compilable?
13862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13871 #include <$ac_header>
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875 (eval $ac_compile) 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag"
13883 || test ! -s conftest.err'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; } &&
13889 { ac_try='test -s conftest.$ac_objext'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_header_compiler=yes
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_header_compiler=no
13902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13904 echo "${ECHO_T}$ac_header_compiler" >&6
13906 # Is the header present?
13907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13909 cat >conftest.$ac_ext <<_ACEOF
13912 cat confdefs.h >>conftest.$ac_ext
13913 cat >>conftest.$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 #include <$ac_header>
13917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13920 grep -v '^ *+' conftest.er1 >conftest.err
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } >/dev/null; then
13925 if test -s conftest.err; then
13926 ac_cpp_err=$ac_c_preproc_warn_flag
13927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13934 if test -z "$ac_cpp_err"; then
13935 ac_header_preproc=yes
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 ac_header_preproc=no
13942 rm -f conftest.err conftest.$ac_ext
13943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13944 echo "${ECHO_T}$ac_header_preproc" >&6
13946 # So? What about this header?
13947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13953 ac_header_preproc=yes
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13970 ## --------------------------------------------- ##
13971 ## Report this to <http://www.openldap.org/its/> ##
13972 ## --------------------------------------------- ##
13975 sed "s/^/$as_me: WARNING: /" >&2
13978 echo "$as_me:$LINENO: checking for $ac_header" >&5
13979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 eval "$as_ac_Header=\$ac_header_preproc"
13985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13990 cat >>confdefs.h <<_ACEOF
13991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13999 if test "$ac_cv_mingw32" = yes ; then
14002 for ac_header in winsock.h winsock2.h
14004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006 echo "$as_me:$LINENO: checking for $ac_header" >&5
14007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14014 # Is the header compilable?
14015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 $ac_includes_default
14024 #include <$ac_header>
14026 rm -f conftest.$ac_objext
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028 (eval $ac_compile) 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); } &&
14035 { ac_try='test -z "$ac_c_werror_flag"
14036 || test ! -s conftest.err'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } &&
14042 { ac_try='test -s conftest.$ac_objext'
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048 ac_header_compiler=yes
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_header_compiler=no
14055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14057 echo "${ECHO_T}$ac_header_compiler" >&6
14059 # Is the header present?
14060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 #include <$ac_header>
14070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14073 grep -v '^ *+' conftest.er1 >conftest.err
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } >/dev/null; then
14078 if test -s conftest.err; then
14079 ac_cpp_err=$ac_c_preproc_warn_flag
14080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14087 if test -z "$ac_cpp_err"; then
14088 ac_header_preproc=yes
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ac_header_preproc=no
14095 rm -f conftest.err conftest.$ac_ext
14096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14097 echo "${ECHO_T}$ac_header_preproc" >&6
14099 # So? What about this header?
14100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14106 ac_header_preproc=yes
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14123 ## --------------------------------------------- ##
14124 ## Report this to <http://www.openldap.org/its/> ##
14125 ## --------------------------------------------- ##
14128 sed "s/^/$as_me: WARNING: /" >&2
14131 echo "$as_me:$LINENO: checking for $ac_header" >&5
14132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 eval "$as_ac_Header=\$ac_header_preproc"
14138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14143 cat >>confdefs.h <<_ACEOF
14144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14154 for ac_header in resolv.h
14156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14157 echo "$as_me:$LINENO: checking for $ac_header" >&5
14158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 cat >conftest.$ac_ext <<_ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 $ac_includes_default
14169 #include <netinet/in.h>
14172 #include <$ac_header>
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 eval "$as_ac_Header=yes"
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 eval "$as_ac_Header=no"
14203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14208 cat >>confdefs.h <<_ACEOF
14209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14218 for ac_header in netinet/tcp.h
14220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14221 echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14233 #include <netinet/in.h>
14236 #include <$ac_header>
14238 rm -f conftest.$ac_objext
14239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14240 (eval $ac_compile) 2>conftest.er1
14242 grep -v '^ *+' conftest.er1 >conftest.err
14244 cat conftest.err >&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } &&
14247 { ac_try='test -z "$ac_c_werror_flag"
14248 || test ! -s conftest.err'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; } &&
14254 { ac_try='test -s conftest.$ac_objext'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260 eval "$as_ac_Header=yes"
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14265 eval "$as_ac_Header=no"
14267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14272 cat >>confdefs.h <<_ACEOF
14273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14282 for ac_header in sys/ucred.h
14284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14285 echo "$as_me:$LINENO: checking for $ac_header" >&5
14286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 $ac_includes_default
14297 #ifdef HAVE_SYS_PARAM_H
14298 #include <sys/param.h>
14302 #include <$ac_header>
14304 rm -f conftest.$ac_objext
14305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } &&
14313 { ac_try='test -z "$ac_c_werror_flag"
14314 || test ! -s conftest.err'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 eval "$as_ac_Header=yes"
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 eval "$as_ac_Header=no"
14333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14338 cat >>confdefs.h <<_ACEOF
14339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14350 for ac_func in sigaction sigset
14352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14353 echo "$as_me:$LINENO: checking for $ac_func" >&5
14354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14355 if eval "test \"\${$as_ac_var+set}\" = set"; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14366 #define $ac_func innocuous_$ac_func
14368 /* System header to define __stub macros and hopefully few prototypes,
14369 which can conflict with char $ac_func (); below.
14370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14371 <limits.h> exists even on freestanding compilers. */
14374 # include <limits.h>
14376 # include <assert.h>
14381 /* Override any gcc2 internal prototype to avoid an error. */
14386 /* We use char because int might match the return type of a gcc2
14387 builtin and then its argument prototype would still apply. */
14389 /* The GNU C library defines this for functions which it implements
14390 to always fail with ENOSYS. Some functions are actually named
14391 something starting with __ and the normal name is an alias. */
14392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14395 char (*f) () = $ac_func;
14404 return f != $ac_func;
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411 (eval $ac_link) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest$ac_exeext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 eval "$as_ac_var=yes"
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 eval "$as_ac_var=no"
14438 rm -f conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14443 if test `eval echo '${'$as_ac_var'}'` = yes; then
14444 cat >>confdefs.h <<_ACEOF
14445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14452 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14454 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14455 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14456 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 ac_check_lib_save_LIBS=$LIBS
14461 cat >conftest.$ac_ext <<_ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14468 /* Override any gcc2 internal prototype to avoid an error. */
14472 /* We use char because int might match the return type of a gcc2
14473 builtin and then its argument prototype would still apply. */
14483 rm -f conftest.$ac_objext conftest$ac_exeext
14484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14485 (eval $ac_link) 2>conftest.er1
14487 grep -v '^ *+' conftest.er1 >conftest.err
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -z "$ac_c_werror_flag"
14493 || test ! -s conftest.err'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; } &&
14499 { ac_try='test -s conftest$ac_exeext'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14505 ac_cv_lib_V3_sigset=yes
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14510 ac_cv_lib_V3_sigset=no
14512 rm -f conftest.err conftest.$ac_objext \
14513 conftest$ac_exeext conftest.$ac_ext
14514 LIBS=$ac_check_lib_save_LIBS
14516 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14517 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14518 if test $ac_cv_lib_V3_sigset = yes; then
14519 cat >>confdefs.h <<_ACEOF
14520 #define HAVE_LIBV3 1
14529 if test "$ac_cv_header_winsock_h" = yes; then
14530 echo "$as_me:$LINENO: checking for winsock" >&5
14531 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14532 if test "${ol_cv_winsock+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 for curlib in ws2_32 wsock32; do
14537 LIBS="$LIBS -l$curlib"
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #include <winsock.h>
14551 select(0,NULL,NULL,NULL,NULL);
14553 gethostname(NULL,0);
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14588 rm -f conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14591 if test $ol_cv_winsock = yes; then
14593 cat >>confdefs.h <<\_ACEOF
14594 #define HAVE_WINSOCK 1
14597 ac_cv_func_socket=yes
14598 ac_cv_func_select=yes
14599 ac_cv_func_closesocket=yes
14600 ac_cv_func_gethostname=yes
14601 if test $curlib = ws2_32; then
14602 ol_cv_winsock=winsock2
14604 cat >>confdefs.h <<\_ACEOF
14605 #define HAVE_WINSOCK2 1
14614 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14615 echo "${ECHO_T}$ol_cv_winsock" >&6
14619 echo "$as_me:$LINENO: checking for socket" >&5
14620 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14621 if test "${ac_cv_func_socket+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 cat >conftest.$ac_ext <<_ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14632 #define socket innocuous_socket
14634 /* System header to define __stub macros and hopefully few prototypes,
14635 which can conflict with char socket (); below.
14636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14637 <limits.h> exists even on freestanding compilers. */
14640 # include <limits.h>
14642 # include <assert.h>
14647 /* Override any gcc2 internal prototype to avoid an error. */
14652 /* We use char because int might match the return type of a gcc2
14653 builtin and then its argument prototype would still apply. */
14655 /* The GNU C library defines this for functions which it implements
14656 to always fail with ENOSYS. Some functions are actually named
14657 something starting with __ and the normal name is an alias. */
14658 #if defined (__stub_socket) || defined (__stub___socket)
14661 char (*f) () = socket;
14670 return f != socket;
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14677 (eval $ac_link) 2>conftest.er1
14679 grep -v '^ *+' conftest.er1 >conftest.err
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -z "$ac_c_werror_flag"
14685 || test ! -s conftest.err'
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); }; } &&
14691 { ac_try='test -s conftest$ac_exeext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_cv_func_socket=yes
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 ac_cv_func_socket=no
14704 rm -f conftest.err conftest.$ac_objext \
14705 conftest$ac_exeext conftest.$ac_ext
14707 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14708 echo "${ECHO_T}$ac_cv_func_socket" >&6
14709 if test $ac_cv_func_socket = yes; then
14714 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14715 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14716 if test "${ac_cv_lib_socket_main+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 ac_check_lib_save_LIBS=$LIBS
14720 LIBS="-lsocket $LIBS"
14721 cat >conftest.$ac_ext <<_ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739 (eval $ac_link) 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag"
14747 || test ! -s conftest.err'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; } &&
14753 { ac_try='test -s conftest$ac_exeext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_lib_socket_main=yes
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 ac_cv_lib_socket_main=no
14766 rm -f conftest.err conftest.$ac_objext \
14767 conftest$ac_exeext conftest.$ac_ext
14768 LIBS=$ac_check_lib_save_LIBS
14770 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14771 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14772 if test $ac_cv_lib_socket_main = yes; then
14773 cat >>confdefs.h <<_ACEOF
14774 #define HAVE_LIBSOCKET 1
14777 LIBS="-lsocket $LIBS"
14782 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14783 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14784 if test "${ac_cv_lib_net_main+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 ac_check_lib_save_LIBS=$LIBS
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>conftest.er1
14809 grep -v '^ *+' conftest.er1 >conftest.err
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest$ac_exeext'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_cv_lib_net_main=yes
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_lib_net_main=no
14834 rm -f conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
14836 LIBS=$ac_check_lib_save_LIBS
14838 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14839 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14840 if test $ac_cv_lib_net_main = yes; then
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_LIBNET 1
14850 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14851 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14852 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-lnsl_s $LIBS"
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14873 rm -f conftest.$ac_objext conftest$ac_exeext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14875 (eval $ac_link) 2>conftest.er1
14877 grep -v '^ *+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
14882 { ac_try='test -z "$ac_c_werror_flag"
14883 || test ! -s conftest.err'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest$ac_exeext'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_cv_lib_nsl_s_main=yes
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 ac_cv_lib_nsl_s_main=no
14902 rm -f conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14904 LIBS=$ac_check_lib_save_LIBS
14906 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14907 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14908 if test $ac_cv_lib_nsl_s_main = yes; then
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_LIBNSL_S 1
14913 LIBS="-lnsl_s $LIBS"
14918 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14919 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14920 if test "${ac_cv_lib_nsl_main+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 ac_check_lib_save_LIBS=$LIBS
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14943 (eval $ac_link) 2>conftest.er1
14945 grep -v '^ *+' conftest.er1 >conftest.err
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -z "$ac_c_werror_flag"
14951 || test ! -s conftest.err'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; } &&
14957 { ac_try='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 ac_cv_lib_nsl_main=yes
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ac_cv_lib_nsl_main=no
14970 rm -f conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14972 LIBS=$ac_check_lib_save_LIBS
14974 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14975 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14976 if test $ac_cv_lib_nsl_main = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_LIBNSL 1
14986 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14987 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14988 if test "${ac_cv_lib_inet_socket+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 ac_check_lib_save_LIBS=$LIBS
14992 LIBS="-linet $LIBS"
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 /* Override any gcc2 internal prototype to avoid an error. */
15004 /* We use char because int might match the return type of a gcc2
15005 builtin and then its argument prototype would still apply. */
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15017 (eval $ac_link) 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } &&
15024 { ac_try='test -z "$ac_c_werror_flag"
15025 || test ! -s conftest.err'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; } &&
15031 { ac_try='test -s conftest$ac_exeext'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 ac_cv_lib_inet_socket=yes
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_cv_lib_inet_socket=no
15044 rm -f conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15046 LIBS=$ac_check_lib_save_LIBS
15048 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15049 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15050 if test $ac_cv_lib_inet_socket = yes; then
15051 cat >>confdefs.h <<_ACEOF
15052 #define HAVE_LIBINET 1
15055 LIBS="-linet $LIBS"
15060 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15061 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15062 if test "${ac_cv_lib_gen_main+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 ac_check_lib_save_LIBS=$LIBS
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15085 (eval $ac_link) 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag"
15093 || test ! -s conftest.err'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_lib_gen_main=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_cv_lib_gen_main=no
15112 rm -f conftest.err conftest.$ac_objext \
15113 conftest$ac_exeext conftest.$ac_ext
15114 LIBS=$ac_check_lib_save_LIBS
15116 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15117 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15118 if test $ac_cv_lib_gen_main = yes; then
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_LIBGEN 1
15131 echo "$as_me:$LINENO: checking for select" >&5
15132 echo $ECHO_N "checking for select... $ECHO_C" >&6
15133 if test "${ac_cv_func_select+set}" = set; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 cat >conftest.$ac_ext <<_ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15142 /* Define select to an innocuous variant, in case <limits.h> declares select.
15143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15144 #define select innocuous_select
15146 /* System header to define __stub macros and hopefully few prototypes,
15147 which can conflict with char select (); below.
15148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15149 <limits.h> exists even on freestanding compilers. */
15152 # include <limits.h>
15154 # include <assert.h>
15159 /* Override any gcc2 internal prototype to avoid an error. */
15164 /* We use char because int might match the return type of a gcc2
15165 builtin and then its argument prototype would still apply. */
15167 /* The GNU C library defines this for functions which it implements
15168 to always fail with ENOSYS. Some functions are actually named
15169 something starting with __ and the normal name is an alias. */
15170 #if defined (__stub_select) || defined (__stub___select)
15173 char (*f) () = select;
15182 return f != select;
15187 rm -f conftest.$ac_objext conftest$ac_exeext
15188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15189 (eval $ac_link) 2>conftest.er1
15191 grep -v '^ *+' conftest.er1 >conftest.err
15193 cat conftest.err >&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -z "$ac_c_werror_flag"
15197 || test ! -s conftest.err'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; } &&
15203 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15209 ac_cv_func_select=yes
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 ac_cv_func_select=no
15216 rm -f conftest.err conftest.$ac_objext \
15217 conftest$ac_exeext conftest.$ac_ext
15219 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15220 echo "${ECHO_T}$ac_cv_func_select" >&6
15221 if test $ac_cv_func_select = yes; then
15224 { { echo "$as_me:$LINENO: error: select() required." >&5
15225 echo "$as_me: error: select() required." >&2;}
15226 { (exit 1); exit 1; }; }
15230 if test "${ac_cv_header_winsock_h}" != yes; then
15233 for ac_header in sys/select.h sys/socket.h
15235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15237 echo "$as_me:$LINENO: checking for $ac_header" >&5
15238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15245 # Is the header compilable?
15246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 $ac_includes_default
15255 #include <$ac_header>
15257 rm -f conftest.$ac_objext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259 (eval $ac_compile) 2>conftest.er1
15261 grep -v '^ *+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try='test -z "$ac_c_werror_flag"
15267 || test ! -s conftest.err'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest.$ac_objext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_header_compiler=yes
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 ac_header_compiler=no
15286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15288 echo "${ECHO_T}$ac_header_compiler" >&6
15290 # Is the header present?
15291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 #include <$ac_header>
15301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15304 grep -v '^ *+' conftest.er1 >conftest.err
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } >/dev/null; then
15309 if test -s conftest.err; then
15310 ac_cpp_err=$ac_c_preproc_warn_flag
15311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15318 if test -z "$ac_cpp_err"; then
15319 ac_header_preproc=yes
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_header_preproc=no
15326 rm -f conftest.err conftest.$ac_ext
15327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15328 echo "${ECHO_T}$ac_header_preproc" >&6
15330 # So? What about this header?
15331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15337 ac_header_preproc=yes
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354 ## --------------------------------------------- ##
15355 ## Report this to <http://www.openldap.org/its/> ##
15356 ## --------------------------------------------- ##
15359 sed "s/^/$as_me: WARNING: /" >&2
15362 echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 eval "$as_ac_Header=\$ac_header_preproc"
15369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15374 cat >>confdefs.h <<_ACEOF
15375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15382 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15383 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15384 if test "${ac_cv_func_select_args+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15387 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15388 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15389 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15396 $ac_includes_default
15397 #if HAVE_SYS_SELECT_H
15398 # include <sys/select.h>
15400 #if HAVE_SYS_SOCKET_H
15401 # include <sys/socket.h>
15407 extern int select ($ac_arg1,
15408 $ac_arg234, $ac_arg234, $ac_arg234,
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416 (eval $ac_compile) 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag"
15424 || test ! -s conftest.err'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15436 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15446 # Provide a safe default value.
15447 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15450 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15451 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15452 ac_save_IFS=$IFS; IFS=','
15453 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15457 cat >>confdefs.h <<_ACEOF
15458 #define SELECT_TYPE_ARG1 $1
15462 cat >>confdefs.h <<_ACEOF
15463 #define SELECT_TYPE_ARG234 ($2)
15467 cat >>confdefs.h <<_ACEOF
15468 #define SELECT_TYPE_ARG5 ($3)
15477 for ac_func in poll
15479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15480 echo "$as_me:$LINENO: checking for $ac_func" >&5
15481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15482 if eval "test \"\${$as_ac_var+set}\" = set"; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 cat >conftest.$ac_ext <<_ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15493 #define $ac_func innocuous_$ac_func
15495 /* System header to define __stub macros and hopefully few prototypes,
15496 which can conflict with char $ac_func (); below.
15497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15498 <limits.h> exists even on freestanding compilers. */
15501 # include <limits.h>
15503 # include <assert.h>
15508 /* Override any gcc2 internal prototype to avoid an error. */
15513 /* We use char because int might match the return type of a gcc2
15514 builtin and then its argument prototype would still apply. */
15516 /* The GNU C library defines this for functions which it implements
15517 to always fail with ENOSYS. Some functions are actually named
15518 something starting with __ and the normal name is an alias. */
15519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15522 char (*f) () = $ac_func;
15531 return f != $ac_func;
15536 rm -f conftest.$ac_objext conftest$ac_exeext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15538 (eval $ac_link) 2>conftest.er1
15540 grep -v '^ *+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try='test -s conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 eval "$as_ac_var=yes"
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 eval "$as_ac_var=no"
15565 rm -f conftest.err conftest.$ac_objext \
15566 conftest$ac_exeext conftest.$ac_ext
15568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15570 if test `eval echo '${'$as_ac_var'}'` = yes; then
15571 cat >>confdefs.h <<_ACEOF
15572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15578 if test $ac_cv_func_poll = yes; then
15581 for ac_header in poll.h sys/poll.h
15583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15593 # Is the header compilable?
15594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 $ac_includes_default
15603 #include <$ac_header>
15605 rm -f conftest.$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_header_compiler=yes
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 ac_header_compiler=no
15634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15636 echo "${ECHO_T}$ac_header_compiler" >&6
15638 # Is the header present?
15639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15641 cat >conftest.$ac_ext <<_ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15647 #include <$ac_header>
15649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } >/dev/null; then
15657 if test -s conftest.err; then
15658 ac_cpp_err=$ac_c_preproc_warn_flag
15659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15666 if test -z "$ac_cpp_err"; then
15667 ac_header_preproc=yes
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_header_preproc=no
15674 rm -f conftest.err conftest.$ac_ext
15675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15676 echo "${ECHO_T}$ac_header_preproc" >&6
15678 # So? What about this header?
15679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15685 ac_header_preproc=yes
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15702 ## --------------------------------------------- ##
15703 ## Report this to <http://www.openldap.org/its/> ##
15704 ## --------------------------------------------- ##
15707 sed "s/^/$as_me: WARNING: /" >&2
15710 echo "$as_me:$LINENO: checking for $ac_header" >&5
15711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 eval "$as_ac_Header=\$ac_header_preproc"
15717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15722 cat >>confdefs.h <<_ACEOF
15723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15733 for ac_header in sys/epoll.h
15735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15737 echo "$as_me:$LINENO: checking for $ac_header" >&5
15738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15745 # Is the header compilable?
15746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15748 cat >conftest.$ac_ext <<_ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 $ac_includes_default
15755 #include <$ac_header>
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag"
15767 || test ! -s conftest.err'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_header_compiler=yes
15781 echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_header_compiler=no
15786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 echo "${ECHO_T}$ac_header_compiler" >&6
15790 # Is the header present?
15791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 #include <$ac_header>
15801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15804 grep -v '^ *+' conftest.er1 >conftest.err
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev/null; then
15809 if test -s conftest.err; then
15810 ac_cpp_err=$ac_c_preproc_warn_flag
15811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15818 if test -z "$ac_cpp_err"; then
15819 ac_header_preproc=yes
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_header_preproc=no
15826 rm -f conftest.err conftest.$ac_ext
15827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15828 echo "${ECHO_T}$ac_header_preproc" >&6
15830 # So? What about this header?
15831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15837 ac_header_preproc=yes
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15854 ## --------------------------------------------- ##
15855 ## Report this to <http://www.openldap.org/its/> ##
15856 ## --------------------------------------------- ##
15859 sed "s/^/$as_me: WARNING: /" >&2
15862 echo "$as_me:$LINENO: checking for $ac_header" >&5
15863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 eval "$as_ac_Header=\$ac_header_preproc"
15869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15874 cat >>confdefs.h <<_ACEOF
15875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15882 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15883 echo "$as_me:$LINENO: checking for epoll system call" >&5
15884 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15885 if test "$cross_compiling" = yes; then
15886 echo "$as_me:$LINENO: result: no" >&5
15887 echo "${ECHO_T}no" >&6
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 int main(int argc, char **argv)
15897 int epfd = epoll_create(256);
15898 exit (epfd == -1 ? 1 : 0);
15901 rm -f conftest$ac_exeext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15903 (eval $ac_link) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 echo "$as_me:$LINENO: result: yes" >&5
15913 echo "${ECHO_T}yes" >&6
15915 cat >>confdefs.h <<\_ACEOF
15916 #define HAVE_EPOLL 1
15920 echo "$as_me: program exited with status $ac_status" >&5
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ( exit $ac_status )
15925 echo "$as_me:$LINENO: result: no" >&5
15926 echo "${ECHO_T}no" >&6
15928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15933 for ac_header in sys/devpoll.h
15935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15937 echo "$as_me:$LINENO: checking for $ac_header" >&5
15938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15945 # Is the header compilable?
15946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15948 cat >conftest.$ac_ext <<_ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 $ac_includes_default
15955 #include <$ac_header>
15957 rm -f conftest.$ac_objext
15958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>conftest.er1
15961 grep -v '^ *+' conftest.er1 >conftest.err
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
15966 { ac_try='test -z "$ac_c_werror_flag"
15967 || test ! -s conftest.err'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; } &&
15973 { ac_try='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 ac_header_compiler=yes
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15984 ac_header_compiler=no
15986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15988 echo "${ECHO_T}$ac_header_compiler" >&6
15990 # Is the header present?
15991 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15993 cat >conftest.$ac_ext <<_ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 #include <$ac_header>
16001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16004 grep -v '^ *+' conftest.er1 >conftest.err
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } >/dev/null; then
16009 if test -s conftest.err; then
16010 ac_cpp_err=$ac_c_preproc_warn_flag
16011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16018 if test -z "$ac_cpp_err"; then
16019 ac_header_preproc=yes
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ac_header_preproc=no
16026 rm -f conftest.err conftest.$ac_ext
16027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16028 echo "${ECHO_T}$ac_header_preproc" >&6
16030 # So? What about this header?
16031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16037 ac_header_preproc=yes
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16043 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16047 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16054 ## --------------------------------------------- ##
16055 ## Report this to <http://www.openldap.org/its/> ##
16056 ## --------------------------------------------- ##
16059 sed "s/^/$as_me: WARNING: /" >&2
16062 echo "$as_me:$LINENO: checking for $ac_header" >&5
16063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16067 eval "$as_ac_Header=\$ac_header_preproc"
16069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16082 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16083 -a "${ac_cv_header_poll_h}" = yes ; \
16085 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16086 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16087 if test "$cross_compiling" = yes; then
16088 echo "$as_me:$LINENO: result: no" >&5
16089 echo "${ECHO_T}no" >&6
16091 cat >conftest.$ac_ext <<_ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 int main(int argc, char **argv)
16099 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16100 exit (devpollfd == -1 ? 1 : 0);
16103 rm -f conftest$ac_exeext
16104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16105 (eval $ac_link) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 echo "$as_me:$LINENO: result: yes" >&5
16115 echo "${ECHO_T}yes" >&6
16117 cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_DEVPOLL 1
16122 echo "$as_me: program exited with status $ac_status" >&5
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 ( exit $ac_status )
16127 echo "$as_me:$LINENO: result: no" >&5
16128 echo "${ECHO_T}no" >&6
16130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16135 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16136 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16137 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16138 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 cat >conftest.$ac_ext <<_ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16149 #include <sys/types.h>
16152 #include <stdlib.h>
16157 char *c = (char *) *sys_errlist
16162 rm -f conftest.$ac_objext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164 (eval $ac_compile) 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag"
16172 || test ! -s conftest.err'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest.$ac_objext'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; }; then
16184 ol_cv_dcl_sys_errlist=yes
16185 ol_cv_have_sys_errlist=yes
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ol_cv_dcl_sys_errlist=no
16192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16194 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16195 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16197 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16198 if test $ol_cv_dcl_sys_errlist = no ; then
16200 cat >>confdefs.h <<\_ACEOF
16201 #define DECL_SYS_ERRLIST 1
16205 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16206 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16207 if test "${ol_cv_have_sys_errlist+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 cat >conftest.$ac_ext <<_ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16221 char *c = (char *) *sys_errlist
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228 (eval $ac_link) 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -z "$ac_c_werror_flag"
16236 || test ! -s conftest.err'
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest$ac_exeext'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ol_cv_have_sys_errlist=yes
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ol_cv_have_sys_errlist=no
16255 rm -f conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16258 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16259 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16261 if test $ol_cv_have_sys_errlist = yes ; then
16263 cat >>confdefs.h <<\_ACEOF
16264 #define HAVE_SYS_ERRLIST 1
16270 for ac_func in strerror strerror_r
16272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16273 echo "$as_me:$LINENO: checking for $ac_func" >&5
16274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16275 if eval "test \"\${$as_ac_var+set}\" = set"; then
16276 echo $ECHO_N "(cached) $ECHO_C" >&6
16278 cat >conftest.$ac_ext <<_ACEOF
16281 cat confdefs.h >>conftest.$ac_ext
16282 cat >>conftest.$ac_ext <<_ACEOF
16283 /* end confdefs.h. */
16284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16286 #define $ac_func innocuous_$ac_func
16288 /* System header to define __stub macros and hopefully few prototypes,
16289 which can conflict with char $ac_func (); below.
16290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16291 <limits.h> exists even on freestanding compilers. */
16294 # include <limits.h>
16296 # include <assert.h>
16301 /* Override any gcc2 internal prototype to avoid an error. */
16306 /* We use char because int might match the return type of a gcc2
16307 builtin and then its argument prototype would still apply. */
16309 /* The GNU C library defines this for functions which it implements
16310 to always fail with ENOSYS. Some functions are actually named
16311 something starting with __ and the normal name is an alias. */
16312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16315 char (*f) () = $ac_func;
16324 return f != $ac_func;
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331 (eval $ac_link) 2>conftest.er1
16333 grep -v '^ *+' conftest.er1 >conftest.err
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } &&
16338 { ac_try='test -z "$ac_c_werror_flag"
16339 || test ! -s conftest.err'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 eval "$as_ac_var=yes"
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 eval "$as_ac_var=no"
16358 rm -f conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16363 if test `eval echo '${'$as_ac_var'}'` = yes; then
16364 cat >>confdefs.h <<_ACEOF
16365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16371 ol_cv_func_strerror_r=no
16372 if test "${ac_cv_func_strerror_r}" = yes ; then
16373 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16374 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16375 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 cat >conftest.$ac_ext <<_ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 #include <string.h>
16387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16388 $EGREP "strerror_r" >/dev/null 2>&1; then
16389 ol_decl_strerror_r=yes
16391 ol_decl_strerror_r=no
16395 if test $ol_decl_strerror_r = yes ; then
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 #include <string.h>
16406 /* from autoconf 2.59 */
16408 char x = *strerror_r (0, buf, sizeof buf);
16409 char *p = strerror_r (0, buf, sizeof buf);
16415 rm -f conftest.$ac_objext
16416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16417 (eval $ac_compile) 2>conftest.er1
16419 grep -v '^ *+' conftest.er1 >conftest.err
16421 cat conftest.err >&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try='test -z "$ac_c_werror_flag"
16425 || test ! -s conftest.err'
16426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; } &&
16431 { ac_try='test -s conftest.$ac_objext'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ol_cv_nonposix_strerror_r=yes
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 ol_cv_nonposix_strerror_r=no
16444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446 if test "$cross_compiling" = yes; then
16447 ol_cv_nonposix_strerror=no
16449 cat >conftest.$ac_ext <<_ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16459 strerror_r( 1, buf, sizeof buf );
16460 exit( buf[0] == 0 );
16464 rm -f conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466 (eval $ac_link) 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ol_cv_nonposix_strerror_r=yes
16477 echo "$as_me: program exited with status $ac_status" >&5
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 ( exit $ac_status )
16482 ol_cv_nonposix_strerror=no
16484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16489 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16490 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16491 if test $ol_cv_nonposix_strerror_r = yes ; then
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_NONPOSIX_STRERROR_R 1
16499 elif test "${ac_cv_func_strerror}" = no ; then
16500 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16501 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16502 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16506 cat >conftest.$ac_ext <<_ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16514 #include <sys/types.h>
16517 #include <stdlib.h>
16522 char *c = (char *) *sys_errlist
16527 rm -f conftest.$ac_objext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16529 (eval $ac_compile) 2>conftest.er1
16531 grep -v '^ *+' conftest.er1 >conftest.err
16533 cat conftest.err >&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -z "$ac_c_werror_flag"
16537 || test ! -s conftest.err'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest.$ac_objext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ol_cv_dcl_sys_errlist=yes
16550 ol_cv_have_sys_errlist=yes
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ol_cv_dcl_sys_errlist=no
16557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16559 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16560 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16562 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16563 if test $ol_cv_dcl_sys_errlist = no ; then
16565 cat >>confdefs.h <<\_ACEOF
16566 #define DECL_SYS_ERRLIST 1
16570 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16571 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16572 if test "${ol_cv_have_sys_errlist+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16576 cat >conftest.$ac_ext <<_ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16586 char *c = (char *) *sys_errlist
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593 (eval $ac_link) 2>conftest.er1
16595 grep -v '^ *+' conftest.er1 >conftest.err
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -z "$ac_c_werror_flag"
16601 || test ! -s conftest.err'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 ol_cv_have_sys_errlist=yes
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ol_cv_have_sys_errlist=no
16620 rm -f conftest.err conftest.$ac_objext \
16621 conftest$ac_exeext conftest.$ac_ext
16623 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16624 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16626 if test $ol_cv_have_sys_errlist = yes ; then
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_SYS_ERRLIST 1
16638 for ac_header in regex.h
16640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16641 echo "$as_me:$LINENO: checking for $ac_header" >&5
16642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 cat >conftest.$ac_ext <<_ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 $ac_includes_default
16653 #ifdef HAVE_SYS_TYPES_H
16654 #include <sys/types.h>
16658 #include <$ac_header>
16660 rm -f conftest.$ac_objext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16662 (eval $ac_compile) 2>conftest.er1
16664 grep -v '^ *+' conftest.er1 >conftest.err
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -z "$ac_c_werror_flag"
16670 || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest.$ac_objext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 eval "$as_ac_Header=yes"
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 eval "$as_ac_Header=no"
16689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16694 cat >>confdefs.h <<_ACEOF
16695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16703 if test "$ac_cv_header_regex_h" != yes ; then
16704 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16705 echo "$as_me: error: POSIX regex.h required." >&2;}
16706 { (exit 1); exit 1; }; }
16708 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16709 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16710 if test "${ac_cv_search_regfree+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 ac_func_search_save_LIBS=$LIBS
16714 ac_cv_search_regfree=no
16715 cat >conftest.$ac_ext <<_ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16722 /* Override any gcc2 internal prototype to avoid an error. */
16726 /* We use char because int might match the return type of a gcc2
16727 builtin and then its argument prototype would still apply. */
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16739 (eval $ac_link) 2>conftest.er1
16741 grep -v '^ *+' conftest.er1 >conftest.err
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag"
16747 || test ! -s conftest.err'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest$ac_exeext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ac_cv_search_regfree="none required"
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16765 rm -f conftest.err conftest.$ac_objext \
16766 conftest$ac_exeext conftest.$ac_ext
16767 if test "$ac_cv_search_regfree" = no; then
16768 for ac_lib in regex gnuregex; do
16769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 /* Override any gcc2 internal prototype to avoid an error. */
16781 /* We use char because int might match the return type of a gcc2
16782 builtin and then its argument prototype would still apply. */
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794 (eval $ac_link) 2>conftest.er1
16796 grep -v '^ *+' conftest.er1 >conftest.err
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try='test -z "$ac_c_werror_flag"
16802 || test ! -s conftest.err'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; } &&
16808 { ac_try='test -s conftest$ac_exeext'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_search_regfree="-l$ac_lib"
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16821 rm -f conftest.err conftest.$ac_objext \
16822 conftest$ac_exeext conftest.$ac_ext
16825 LIBS=$ac_func_search_save_LIBS
16827 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16828 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16829 if test "$ac_cv_search_regfree" != no; then
16830 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16833 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16834 echo "$as_me: error: POSIX regex required." >&2;}
16835 { (exit 1); exit 1; }; }
16840 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16841 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16842 if test "${ol_cv_c_posix_regex+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 if test "$cross_compiling" = yes; then
16847 ol_cv_c_posix_regex=cross
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16856 #include <sys/types.h>
16858 static char *pattern, *string;
16866 if(regcomp(&re, pattern, 0)) {
16870 string = "ALL MATCH";
16872 rc = regexec(&re, string, 0, (void*)0, 0);
16879 rm -f conftest$ac_exeext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16881 (eval $ac_link) 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ol_cv_c_posix_regex=yes
16892 echo "$as_me: program exited with status $ac_status" >&5
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16896 ( exit $ac_status )
16897 ol_cv_c_posix_regex=no
16899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16902 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16903 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16905 if test "$ol_cv_c_posix_regex" = no ; then
16906 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16907 echo "$as_me: error: broken POSIX regex!" >&2;}
16908 { (exit 1); exit 1; }; }
16914 for ac_header in sys/uuid.h
16916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16918 echo "$as_me:$LINENO: checking for $ac_header" >&5
16919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16926 # Is the header compilable?
16927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16929 cat >conftest.$ac_ext <<_ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16935 $ac_includes_default
16936 #include <$ac_header>
16938 rm -f conftest.$ac_objext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16940 (eval $ac_compile) 2>conftest.er1
16942 grep -v '^ *+' conftest.er1 >conftest.err
16944 cat conftest.err >&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
16947 { ac_try='test -z "$ac_c_werror_flag"
16948 || test ! -s conftest.err'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest.$ac_objext'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_header_compiler=yes
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_header_compiler=no
16967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16969 echo "${ECHO_T}$ac_header_compiler" >&6
16971 # Is the header present?
16972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16974 cat >conftest.$ac_ext <<_ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16980 #include <$ac_header>
16982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16985 grep -v '^ *+' conftest.er1 >conftest.err
16987 cat conftest.err >&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } >/dev/null; then
16990 if test -s conftest.err; then
16991 ac_cpp_err=$ac_c_preproc_warn_flag
16992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16999 if test -z "$ac_cpp_err"; then
17000 ac_header_preproc=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ac_header_preproc=no
17007 rm -f conftest.err conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17009 echo "${ECHO_T}$ac_header_preproc" >&6
17011 # So? What about this header?
17012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17018 ac_header_preproc=yes
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17035 ## --------------------------------------------- ##
17036 ## Report this to <http://www.openldap.org/its/> ##
17037 ## --------------------------------------------- ##
17040 sed "s/^/$as_me: WARNING: /" >&2
17043 echo "$as_me:$LINENO: checking for $ac_header" >&5
17044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 eval "$as_ac_Header=\$ac_header_preproc"
17050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17063 if test $ac_cv_header_sys_uuid_h = yes ; then
17065 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17066 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17067 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 ac_func_search_save_LIBS=$LIBS
17071 ac_cv_search_uuid_to_str=no
17072 cat >conftest.$ac_ext <<_ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17079 /* Override any gcc2 internal prototype to avoid an error. */
17083 /* We use char because int might match the return type of a gcc2
17084 builtin and then its argument prototype would still apply. */
17085 char uuid_to_str ();
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17096 (eval $ac_link) 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -z "$ac_c_werror_flag"
17104 || test ! -s conftest.err'
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest$ac_exeext'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; }; then
17116 ac_cv_search_uuid_to_str="none required"
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17122 rm -f conftest.err conftest.$ac_objext \
17123 conftest$ac_exeext conftest.$ac_ext
17124 if test "$ac_cv_search_uuid_to_str" = no; then
17125 for ac_lib in uuid; do
17126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17127 cat >conftest.$ac_ext <<_ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17134 /* Override any gcc2 internal prototype to avoid an error. */
17138 /* We use char because int might match the return type of a gcc2
17139 builtin and then its argument prototype would still apply. */
17140 char uuid_to_str ();
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151 (eval $ac_link) 2>conftest.er1
17153 grep -v '^ *+' conftest.er1 >conftest.err
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag"
17159 || test ! -s conftest.err'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_search_uuid_to_str="-l$ac_lib"
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17178 rm -f conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17182 LIBS=$ac_func_search_save_LIBS
17184 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17185 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17186 if test "$ac_cv_search_uuid_to_str" != no; then
17187 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17195 if test have_uuid = yes ; then
17197 cat >>confdefs.h <<\_ACEOF
17198 #define HAVE_UUID_TO_STR 1
17202 test "$ac_cv_search_uuid_to_str" = "none required" || \
17203 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17207 if test $have_uuid = no ; then
17209 for ac_header in uuid/uuid.h
17211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17213 echo "$as_me:$LINENO: checking for $ac_header" >&5
17214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17221 # Is the header compilable?
17222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17224 cat >conftest.$ac_ext <<_ACEOF
17227 cat confdefs.h >>conftest.$ac_ext
17228 cat >>conftest.$ac_ext <<_ACEOF
17229 /* end confdefs.h. */
17230 $ac_includes_default
17231 #include <$ac_header>
17233 rm -f conftest.$ac_objext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17235 (eval $ac_compile) 2>conftest.er1
17237 grep -v '^ *+' conftest.er1 >conftest.err
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } &&
17242 { ac_try='test -z "$ac_c_werror_flag"
17243 || test ! -s conftest.err'
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try='test -s conftest.$ac_objext'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_header_compiler=yes
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.$ac_ext >&5
17260 ac_header_compiler=no
17262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17264 echo "${ECHO_T}$ac_header_compiler" >&6
17266 # Is the header present?
17267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 #include <$ac_header>
17277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17280 grep -v '^ *+' conftest.er1 >conftest.err
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } >/dev/null; then
17285 if test -s conftest.err; then
17286 ac_cpp_err=$ac_c_preproc_warn_flag
17287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17294 if test -z "$ac_cpp_err"; then
17295 ac_header_preproc=yes
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 ac_header_preproc=no
17302 rm -f conftest.err conftest.$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17304 echo "${ECHO_T}$ac_header_preproc" >&6
17306 # So? What about this header?
17307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17313 ac_header_preproc=yes
17316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17330 ## --------------------------------------------- ##
17331 ## Report this to <http://www.openldap.org/its/> ##
17332 ## --------------------------------------------- ##
17335 sed "s/^/$as_me: WARNING: /" >&2
17338 echo "$as_me:$LINENO: checking for $ac_header" >&5
17339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 eval "$as_ac_Header=\$ac_header_preproc"
17345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17358 if test $ac_cv_header_uuid_uuid_h = yes ; then
17360 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17361 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17362 if test "${ac_cv_search_uuid_generate+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 ac_func_search_save_LIBS=$LIBS
17366 ac_cv_search_uuid_generate=no
17367 cat >conftest.$ac_ext <<_ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17374 /* Override any gcc2 internal prototype to avoid an error. */
17378 /* We use char because int might match the return type of a gcc2
17379 builtin and then its argument prototype would still apply. */
17380 char uuid_generate ();
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17391 (eval $ac_link) 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag"
17399 || test ! -s conftest.err'
17400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17401 (eval $ac_try) 2>&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; } &&
17405 { ac_try='test -s conftest$ac_exeext'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; }; then
17411 ac_cv_search_uuid_generate="none required"
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17417 rm -f conftest.err conftest.$ac_objext \
17418 conftest$ac_exeext conftest.$ac_ext
17419 if test "$ac_cv_search_uuid_generate" = no; then
17420 for ac_lib in uuid; do
17421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17429 /* Override any gcc2 internal prototype to avoid an error. */
17433 /* We use char because int might match the return type of a gcc2
17434 builtin and then its argument prototype would still apply. */
17435 char uuid_generate ();
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446 (eval $ac_link) 2>conftest.er1
17448 grep -v '^ *+' conftest.er1 >conftest.err
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_search_uuid_generate="-l$ac_lib"
17469 echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17473 rm -f conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17477 LIBS=$ac_func_search_save_LIBS
17479 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17480 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17481 if test "$ac_cv_search_uuid_generate" != no; then
17482 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17490 if test have_uuid = yes ; then
17492 cat >>confdefs.h <<\_ACEOF
17493 #define HAVE_UUID_GENERATE 1
17497 test "$ac_cv_search_uuid_generate" = "none required" || \
17498 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17503 if test $have_uuid = no ; then
17504 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17505 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17507 LIBS="$LIBS -lrpcrt4"
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17515 int __stdcall UuidCreate(void *);
17516 int __stdcall UuidToStringA(void *,void **);
17523 UuidToStringA(0,0);
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17531 (eval $ac_link) 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } &&
17538 { ac_try='test -z "$ac_c_werror_flag"
17539 || test ! -s conftest.err'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest$ac_exeext'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17558 rm -f conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17560 if test $need_rpcrt = yes; then
17561 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17564 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17565 echo "${ECHO_T}$need_rpcrt" >&6
17568 ol_cv_lib_resolver=no
17569 if test $ol_cv_lib_resolver = no ; then
17570 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17571 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17572 if test "${ol_cv_resolver_none+set}" = set; then
17573 echo $ECHO_N "(cached) $ECHO_C" >&6
17578 LIBS="$ol_RESOLVER_LIB $LIBS"
17580 cat >conftest.$ac_ext <<_ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17587 #ifdef HAVE_SYS_TYPES_H
17588 # include <sys/types.h>
17590 #include <netinet/in.h>
17591 #ifdef HAVE_ARPA_NAMESER_H
17592 # include <arpa/nameser.h>
17594 #ifdef HAVE_RESOLV_H
17595 # include <resolv.h>
17603 char *request = NULL;
17604 unsigned char reply[64*1024];
17605 unsigned char host[64*1024];
17609 /* Bind 8/9 interface */
17610 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17612 /* Bind 4 interface */
17616 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17620 /* Bind 8/9 interface */
17622 #elif defined(HFIXEDSZ)
17623 /* Bind 4 interface w/ HFIXEDSZ */
17626 /* Bind 4 interface w/o HFIXEDSZ */
17627 p += sizeof(HEADER);
17629 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17635 rm -f conftest.$ac_objext conftest$ac_exeext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17637 (eval $ac_link) 2>conftest.er1
17639 grep -v '^ *+' conftest.er1 >conftest.err
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } &&
17644 { ac_try='test -z "$ac_c_werror_flag"
17645 || test ! -s conftest.err'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; } &&
17651 { ac_try='test -s conftest$ac_exeext'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657 ol_cv_resolver_none=yes
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ol_cv_resolver_none=no
17664 rm -f conftest.err conftest.$ac_objext \
17665 conftest$ac_exeext conftest.$ac_ext
17670 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17671 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17673 if test $ol_cv_resolver_none = yes ; then
17674 ol_cv_lib_resolver=yes
17678 if test $ol_cv_lib_resolver = no ; then
17679 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17680 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17681 if test "${ol_cv_resolver_resolv+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 ol_RESOLVER_LIB=-lresolv
17687 LIBS="$ol_RESOLVER_LIB $LIBS"
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17696 #ifdef HAVE_SYS_TYPES_H
17697 # include <sys/types.h>
17699 #include <netinet/in.h>
17700 #ifdef HAVE_ARPA_NAMESER_H
17701 # include <arpa/nameser.h>
17703 #ifdef HAVE_RESOLV_H
17704 # include <resolv.h>
17712 char *request = NULL;
17713 unsigned char reply[64*1024];
17714 unsigned char host[64*1024];
17718 /* Bind 8/9 interface */
17719 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17721 /* Bind 4 interface */
17725 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17729 /* Bind 8/9 interface */
17731 #elif defined(HFIXEDSZ)
17732 /* Bind 4 interface w/ HFIXEDSZ */
17735 /* Bind 4 interface w/o HFIXEDSZ */
17736 p += sizeof(HEADER);
17738 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746 (eval $ac_link) 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag"
17754 || test ! -s conftest.err'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest$ac_exeext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ol_cv_resolver_resolv=yes
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ol_cv_resolver_resolv=no
17773 rm -f conftest.err conftest.$ac_objext \
17774 conftest$ac_exeext conftest.$ac_ext
17779 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17780 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17782 if test $ol_cv_resolver_resolv = yes ; then
17783 ol_cv_lib_resolver=-lresolv
17787 if test $ol_cv_lib_resolver = no ; then
17788 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17789 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17790 if test "${ol_cv_resolver_bind+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 ol_RESOLVER_LIB=-lbind
17796 LIBS="$ol_RESOLVER_LIB $LIBS"
17798 cat >conftest.$ac_ext <<_ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17805 #ifdef HAVE_SYS_TYPES_H
17806 # include <sys/types.h>
17808 #include <netinet/in.h>
17809 #ifdef HAVE_ARPA_NAMESER_H
17810 # include <arpa/nameser.h>
17812 #ifdef HAVE_RESOLV_H
17813 # include <resolv.h>
17821 char *request = NULL;
17822 unsigned char reply[64*1024];
17823 unsigned char host[64*1024];
17827 /* Bind 8/9 interface */
17828 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17830 /* Bind 4 interface */
17834 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17838 /* Bind 8/9 interface */
17840 #elif defined(HFIXEDSZ)
17841 /* Bind 4 interface w/ HFIXEDSZ */
17844 /* Bind 4 interface w/o HFIXEDSZ */
17845 p += sizeof(HEADER);
17847 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17853 rm -f conftest.$ac_objext conftest$ac_exeext
17854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17855 (eval $ac_link) 2>conftest.er1
17857 grep -v '^ *+' conftest.er1 >conftest.err
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -z "$ac_c_werror_flag"
17863 || test ! -s conftest.err'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest$ac_exeext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ol_cv_resolver_bind=yes
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 ol_cv_resolver_bind=no
17882 rm -f conftest.err conftest.$ac_objext \
17883 conftest$ac_exeext conftest.$ac_ext
17888 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17889 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17891 if test $ol_cv_resolver_bind = yes ; then
17892 ol_cv_lib_resolver=-lbind
17899 if test "$ol_cv_lib_resolver" != no ; then
17901 cat >>confdefs.h <<\_ACEOF
17902 #define HAVE_RES_QUERY 1
17906 if test "$ol_enable_dnssrv" != no ; then
17910 if test "$ol_cv_lib_resolver" != yes ; then
17911 LIBS="$ol_cv_lib_resolver $LIBS"
17915 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17916 if test "$ol_link_dnssrv" = no ; then
17917 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17918 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17919 { (exit 1); exit 1; }; }
17922 ol_enable_dnssrv=no
17926 for ac_func in hstrerror
17928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17929 echo "$as_me:$LINENO: checking for $ac_func" >&5
17930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17931 if eval "test \"\${$as_ac_var+set}\" = set"; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 cat >conftest.$ac_ext <<_ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17942 #define $ac_func innocuous_$ac_func
17944 /* System header to define __stub macros and hopefully few prototypes,
17945 which can conflict with char $ac_func (); below.
17946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17947 <limits.h> exists even on freestanding compilers. */
17950 # include <limits.h>
17952 # include <assert.h>
17957 /* Override any gcc2 internal prototype to avoid an error. */
17962 /* We use char because int might match the return type of a gcc2
17963 builtin and then its argument prototype would still apply. */
17965 /* The GNU C library defines this for functions which it implements
17966 to always fail with ENOSYS. Some functions are actually named
17967 something starting with __ and the normal name is an alias. */
17968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17971 char (*f) () = $ac_func;
17980 return f != $ac_func;
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987 (eval $ac_link) 2>conftest.er1
17989 grep -v '^ *+' conftest.er1 >conftest.err
17991 cat conftest.err >&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } &&
17994 { ac_try='test -z "$ac_c_werror_flag"
17995 || test ! -s conftest.err'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest$ac_exeext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 eval "$as_ac_var=yes"
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 eval "$as_ac_var=no"
18014 rm -f conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18019 if test `eval echo '${'$as_ac_var'}'` = yes; then
18020 cat >>confdefs.h <<_ACEOF
18021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18032 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18037 if eval "test \"\${$as_ac_var+set}\" = set"; then
18038 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18048 #define $ac_func innocuous_$ac_func
18050 /* System header to define __stub macros and hopefully few prototypes,
18051 which can conflict with char $ac_func (); below.
18052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053 <limits.h> exists even on freestanding compilers. */
18056 # include <limits.h>
18058 # include <assert.h>
18063 /* Override any gcc2 internal prototype to avoid an error. */
18068 /* We use char because int might match the return type of a gcc2
18069 builtin and then its argument prototype would still apply. */
18071 /* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18077 char (*f) () = $ac_func;
18086 return f != $ac_func;
18091 rm -f conftest.$ac_objext conftest$ac_exeext
18092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag"
18101 || test ! -s conftest.err'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 eval "$as_ac_var=yes"
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 eval "$as_ac_var=no"
18120 rm -f conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18125 if test `eval echo '${'$as_ac_var'}'` = yes; then
18126 cat >>confdefs.h <<_ACEOF
18127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18135 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18136 if test $ol_enable_ipv6 = yes ; then
18137 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18138 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18139 { (exit 1); exit 1; }; }
18141 elif test $ol_enable_ipv6 != no ; then
18142 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18143 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18144 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18155 # include <netinet/in.h>
18156 # ifdef INET6_ADDRSTRLEN
18157 __has_inet6_addrstrlen__;
18161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18162 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18163 ol_cv_inet6_addrstrlen=yes
18165 ol_cv_inet6_addrstrlen=no
18170 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18171 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18174 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18175 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18176 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 cat >conftest.$ac_ext <<_ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18187 #include <sys/types.h>
18188 #include <sys/socket.h>
18194 struct sockaddr_storage ss;
18200 rm -f conftest.$ac_objext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18202 (eval $ac_compile) 2>conftest.er1
18204 grep -v '^ *+' conftest.er1 >conftest.err
18206 cat conftest.err >&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } &&
18209 { ac_try='test -z "$ac_c_werror_flag"
18210 || test ! -s conftest.err'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest.$ac_objext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ol_cv_struct_sockaddr_storage=yes
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 ol_cv_struct_sockaddr_storage=no
18229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18231 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18232 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18234 if test $ol_cv_inet6_addrstrlen = yes &&
18235 test $ol_cv_struct_sockaddr_storage = yes ; then
18237 elif test $ol_enable_ipv6 = yes &&
18238 test $ol_cv_inet6_addrstrlen = no ; then
18239 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18240 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18241 { (exit 1); exit 1; }; }
18242 elif test $ol_enable_ipv6 = yes &&
18243 test $ol_cv_struct_sockaddr_storage = no ; then
18244 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18245 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18246 { (exit 1); exit 1; }; }
18250 if test $ol_enable_local != no ; then
18252 for ac_header in sys/un.h
18254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18256 echo "$as_me:$LINENO: checking for $ac_header" >&5
18257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18264 # Is the header compilable?
18265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18267 cat >conftest.$ac_ext <<_ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18273 $ac_includes_default
18274 #include <$ac_header>
18276 rm -f conftest.$ac_objext
18277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18278 (eval $ac_compile) 2>conftest.er1
18280 grep -v '^ *+' conftest.er1 >conftest.err
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } &&
18285 { ac_try='test -z "$ac_c_werror_flag"
18286 || test ! -s conftest.err'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest.$ac_objext'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 ac_header_compiler=yes
18300 echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18303 ac_header_compiler=no
18305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18307 echo "${ECHO_T}$ac_header_compiler" >&6
18309 # Is the header present?
18310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 #include <$ac_header>
18320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18323 grep -v '^ *+' conftest.er1 >conftest.err
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } >/dev/null; then
18328 if test -s conftest.err; then
18329 ac_cpp_err=$ac_c_preproc_warn_flag
18330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18337 if test -z "$ac_cpp_err"; then
18338 ac_header_preproc=yes
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 ac_header_preproc=no
18345 rm -f conftest.err conftest.$ac_ext
18346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18347 echo "${ECHO_T}$ac_header_preproc" >&6
18349 # So? What about this header?
18350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18356 ac_header_preproc=yes
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18373 ## --------------------------------------------- ##
18374 ## Report this to <http://www.openldap.org/its/> ##
18375 ## --------------------------------------------- ##
18378 sed "s/^/$as_me: WARNING: /" >&2
18381 echo "$as_me:$LINENO: checking for $ac_header" >&5
18382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 eval "$as_ac_Header=\$ac_header_preproc"
18388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18393 cat >>confdefs.h <<_ACEOF
18394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18402 if test $ol_enable_local = auto ; then
18403 ol_enable_local=$ac_cv_header_sys_un_h
18404 elif test $ac_cv_header_sys_un_h = no ; then
18405 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18406 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18407 { (exit 1); exit 1; }; }
18412 if test $ol_with_tls = yes ; then
18417 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18419 for ac_header in openssl/ssl.h
18421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18423 echo "$as_me:$LINENO: checking for $ac_header" >&5
18424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18431 # Is the header compilable?
18432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 $ac_includes_default
18441 #include <$ac_header>
18443 rm -f conftest.$ac_objext
18444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18445 (eval $ac_compile) 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_c_werror_flag"
18453 || test ! -s conftest.err'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest.$ac_objext'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 ac_header_compiler=yes
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 ac_header_compiler=no
18472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18474 echo "${ECHO_T}$ac_header_compiler" >&6
18476 # Is the header present?
18477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18485 #include <$ac_header>
18487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18490 grep -v '^ *+' conftest.er1 >conftest.err
18492 cat conftest.err >&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } >/dev/null; then
18495 if test -s conftest.err; then
18496 ac_cpp_err=$ac_c_preproc_warn_flag
18497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18504 if test -z "$ac_cpp_err"; then
18505 ac_header_preproc=yes
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18510 ac_header_preproc=no
18512 rm -f conftest.err conftest.$ac_ext
18513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18514 echo "${ECHO_T}$ac_header_preproc" >&6
18516 # So? What about this header?
18517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18523 ac_header_preproc=yes
18526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18540 ## --------------------------------------------- ##
18541 ## Report this to <http://www.openldap.org/its/> ##
18542 ## --------------------------------------------- ##
18545 sed "s/^/$as_me: WARNING: /" >&2
18548 echo "$as_me:$LINENO: checking for $ac_header" >&5
18549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18551 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 eval "$as_ac_Header=\$ac_header_preproc"
18555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18560 cat >>confdefs.h <<_ACEOF
18561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18569 if test $ac_cv_header_openssl_ssl_h = yes ; then
18570 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18571 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18572 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 ac_check_lib_save_LIBS=$LIBS
18576 LIBS="-lssl -lcrypto $LIBS"
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18584 /* Override any gcc2 internal prototype to avoid an error. */
18588 /* We use char because int might match the return type of a gcc2
18589 builtin and then its argument prototype would still apply. */
18590 char SSL_library_init ();
18594 SSL_library_init ();
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18601 (eval $ac_link) 2>conftest.er1
18603 grep -v '^ *+' conftest.er1 >conftest.err
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } &&
18608 { ac_try='test -z "$ac_c_werror_flag"
18609 || test ! -s conftest.err'
18610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611 (eval $ac_try) 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; } &&
18615 { ac_try='test -s conftest$ac_exeext'
18616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
18621 ac_cv_lib_ssl_SSL_library_init=yes
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18626 ac_cv_lib_ssl_SSL_library_init=no
18628 rm -f conftest.err conftest.$ac_objext \
18629 conftest$ac_exeext conftest.$ac_ext
18630 LIBS=$ac_check_lib_save_LIBS
18632 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18633 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18634 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18642 if test $have_openssl = no ; then
18643 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18644 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18645 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 ac_check_lib_save_LIBS=$LIBS
18649 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18650 cat >conftest.$ac_ext <<_ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18657 /* Override any gcc2 internal prototype to avoid an error. */
18661 /* We use char because int might match the return type of a gcc2
18662 builtin and then its argument prototype would still apply. */
18663 char ssl3_accept ();
18672 rm -f conftest.$ac_objext conftest$ac_exeext
18673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674 (eval $ac_link) 2>conftest.er1
18676 grep -v '^ *+' conftest.er1 >conftest.err
18678 cat conftest.err >&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try='test -z "$ac_c_werror_flag"
18682 || test ! -s conftest.err'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_lib_ssl_ssl3_accept=yes
18696 echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18699 ac_cv_lib_ssl_ssl3_accept=no
18701 rm -f conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18705 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18706 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18707 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18716 if test $have_openssl = yes ; then
18717 ol_with_tls=openssl
18721 cat >>confdefs.h <<\_ACEOF
18722 #define HAVE_OPENSSL 1
18726 if test $need_rsaref = yes; then
18728 cat >>confdefs.h <<\_ACEOF
18729 #define HAVE_RSAREF 1
18733 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18735 TLS_LIBS="-lssl -lcrypto"
18738 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18739 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18740 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18751 #ifdef HAVE_OPENSSL_SSL_H
18752 #include <openssl/ssl.h>
18755 /* Require 0.9.7d+ */
18756 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18757 char *__ssl_compat = "0.9.7d";
18761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18762 $EGREP "__ssl_compat" >/dev/null 2>&1; then
18763 ol_cv_ssl_crl_compat=yes
18765 ol_cv_ssl_crl_compat=no
18770 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18771 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18773 if test $ol_cv_ssl_crl_compat = yes ; then
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE_OPENSSL_CRL 1
18784 if test $ol_link_tls = no ; then
18785 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18787 for ac_header in gnutls/gnutls.h
18789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18791 echo "$as_me:$LINENO: checking for $ac_header" >&5
18792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18799 # Is the header compilable?
18800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18802 cat >conftest.$ac_ext <<_ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h. */
18808 $ac_includes_default
18809 #include <$ac_header>
18811 rm -f conftest.$ac_objext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18813 (eval $ac_compile) 2>conftest.er1
18815 grep -v '^ *+' conftest.er1 >conftest.err
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag"
18821 || test ! -s conftest.err'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_header_compiler=yes
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 ac_header_compiler=no
18840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18842 echo "${ECHO_T}$ac_header_compiler" >&6
18844 # Is the header present?
18845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 #include <$ac_header>
18855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18858 grep -v '^ *+' conftest.er1 >conftest.err
18860 cat conftest.err >&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } >/dev/null; then
18863 if test -s conftest.err; then
18864 ac_cpp_err=$ac_c_preproc_warn_flag
18865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18872 if test -z "$ac_cpp_err"; then
18873 ac_header_preproc=yes
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 ac_header_preproc=no
18880 rm -f conftest.err conftest.$ac_ext
18881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18882 echo "${ECHO_T}$ac_header_preproc" >&6
18884 # So? What about this header?
18885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18891 ac_header_preproc=yes
18894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18908 ## --------------------------------------------- ##
18909 ## Report this to <http://www.openldap.org/its/> ##
18910 ## --------------------------------------------- ##
18913 sed "s/^/$as_me: WARNING: /" >&2
18916 echo "$as_me:$LINENO: checking for $ac_header" >&5
18917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 eval "$as_ac_Header=\$ac_header_preproc"
18923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18928 cat >>confdefs.h <<_ACEOF
18929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18937 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
18938 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
18939 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
18940 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lgnutls $LIBS"
18945 cat >conftest.$ac_ext <<_ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18952 /* Override any gcc2 internal prototype to avoid an error. */
18956 /* We use char because int might match the return type of a gcc2
18957 builtin and then its argument prototype would still apply. */
18958 char gnutls_init ();
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969 (eval $ac_link) 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } &&
18976 { ac_try='test -z "$ac_c_werror_flag"
18977 || test ! -s conftest.err'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; } &&
18983 { ac_try='test -s conftest$ac_exeext'
18984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985 (eval $ac_try) 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_cv_lib_gnutls_gnutls_init=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_lib_gnutls_gnutls_init=no
18996 rm -f conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
19000 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19001 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19002 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19009 if test $have_gnutls = yes ; then
19013 TLS_LIBS="-lgnutls"
19016 cat >>confdefs.h <<\_ACEOF
19017 #define HAVE_GNUTLS 1
19026 if test $ol_link_tls = yes ; then
19028 cat >>confdefs.h <<\_ACEOF
19033 elif test $ol_with_tls = auto ; then
19034 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19035 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19036 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19037 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19038 elif test $ol_with_tls != no ; then
19039 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19040 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19041 { (exit 1); exit 1; }; }
19043 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19044 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19047 if test $ol_enable_lmpasswd != no; then
19048 if test $ol_link_tls != yes ; then
19049 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19050 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19051 { (exit 1); exit 1; }; }
19055 cat >>confdefs.h <<\_ACEOF
19056 #define SLAPD_LMHASH 1
19063 case $ol_with_threads in auto | yes | nt)
19066 echo "$as_me:$LINENO: checking for _beginthread" >&5
19067 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19068 if test "${ac_cv_func__beginthread+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 cat >conftest.$ac_ext <<_ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19079 #define _beginthread innocuous__beginthread
19081 /* System header to define __stub macros and hopefully few prototypes,
19082 which can conflict with char _beginthread (); below.
19083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19084 <limits.h> exists even on freestanding compilers. */
19087 # include <limits.h>
19089 # include <assert.h>
19092 #undef _beginthread
19094 /* Override any gcc2 internal prototype to avoid an error. */
19099 /* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19101 char _beginthread ();
19102 /* The GNU C library defines this for functions which it implements
19103 to always fail with ENOSYS. Some functions are actually named
19104 something starting with __ and the normal name is an alias. */
19105 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19108 char (*f) () = _beginthread;
19117 return f != _beginthread;
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19124 (eval $ac_link) 2>conftest.er1
19126 grep -v '^ *+' conftest.er1 >conftest.err
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } &&
19131 { ac_try='test -z "$ac_c_werror_flag"
19132 || test ! -s conftest.err'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; } &&
19138 { ac_try='test -s conftest$ac_exeext'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19144 ac_cv_func__beginthread=yes
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19149 ac_cv_func__beginthread=no
19151 rm -f conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19154 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19155 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19158 if test $ac_cv_func__beginthread = yes ; then
19160 cat >>confdefs.h <<\_ACEOF
19161 #define HAVE_NT_THREADS 1
19164 ol_cv_nt_threads=yes
19168 if test "$ol_cv_nt_threads" = yes ; then
19170 ol_with_threads=found
19171 ol_with_yielding_select=yes
19174 cat >>confdefs.h <<\_ACEOF
19175 #define HAVE_NT_SERVICE_MANAGER 1
19179 cat >>confdefs.h <<\_ACEOF
19180 #define HAVE_NT_EVENT_LOG 1
19185 if test $ol_with_threads = nt ; then
19186 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19187 echo "$as_me: error: could not locate NT Threads" >&2;}
19188 { (exit 1); exit 1; }; }
19193 case $ol_with_threads in auto | yes | posix)
19196 for ac_header in pthread.h
19198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19200 echo "$as_me:$LINENO: checking for $ac_header" >&5
19201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19208 # Is the header compilable?
19209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19211 cat >conftest.$ac_ext <<_ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h. */
19217 $ac_includes_default
19218 #include <$ac_header>
19220 rm -f conftest.$ac_objext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19222 (eval $ac_compile) 2>conftest.er1
19224 grep -v '^ *+' conftest.er1 >conftest.err
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_header_compiler=yes
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_header_compiler=no
19249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19251 echo "${ECHO_T}$ac_header_compiler" >&6
19253 # Is the header present?
19254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <$ac_header>
19264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } >/dev/null; then
19272 if test -s conftest.err; then
19273 ac_cpp_err=$ac_c_preproc_warn_flag
19274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19281 if test -z "$ac_cpp_err"; then
19282 ac_header_preproc=yes
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 ac_header_preproc=no
19289 rm -f conftest.err conftest.$ac_ext
19290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291 echo "${ECHO_T}$ac_header_preproc" >&6
19293 # So? What about this header?
19294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19300 ac_header_preproc=yes
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19317 ## --------------------------------------------- ##
19318 ## Report this to <http://www.openldap.org/its/> ##
19319 ## --------------------------------------------- ##
19322 sed "s/^/$as_me: WARNING: /" >&2
19325 echo "$as_me:$LINENO: checking for $ac_header" >&5
19326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
19330 eval "$as_ac_Header=\$ac_header_preproc"
19332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19337 cat >>confdefs.h <<_ACEOF
19338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19346 if test $ac_cv_header_pthread_h = yes ; then
19347 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19348 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19349 if test "${ol_cv_pthread_version+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19353 cat >conftest.$ac_ext <<_ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19360 # include <pthread.h>
19366 int i = PTHREAD_CREATE_JOINABLE;
19372 rm -f conftest.$ac_objext
19373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19374 (eval $ac_compile) 2>conftest.er1
19376 grep -v '^ *+' conftest.er1 >conftest.err
19378 cat conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } &&
19381 { ac_try='test -z "$ac_c_werror_flag"
19382 || test ! -s conftest.err'
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; } &&
19388 { ac_try='test -s conftest.$ac_objext'
19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390 (eval $ac_try) 2>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; }; then
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 #include <pthread.h>
19404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19405 $EGREP "pthread_detach" >/dev/null 2>&1; then
19406 ol_cv_pthread_version=10
19408 ol_cv_pthread_version=8
19413 echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19417 cat >conftest.$ac_ext <<_ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19424 # include <pthread.h>
19425 # ifdef PTHREAD_CREATE_UNDETACHED
19430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19431 $EGREP "draft7" >/dev/null 2>&1; then
19432 ol_cv_pthread_version=7
19435 cat >conftest.$ac_ext <<_ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h. */
19441 #include <pthread.h>
19444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19445 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19446 ol_cv_pthread_version=6
19449 cat >conftest.$ac_ext <<_ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19456 # include <pthread.h>
19457 #ifdef PTHREAD_MUTEX_INITIALIZER
19462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19463 $EGREP "draft5" >/dev/null 2>&1; then
19464 ol_cv_pthread_version=5
19466 ol_cv_pthread_version=4
19477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19480 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19481 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19484 if test $ol_cv_pthread_version != 0 ; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define HAVE_PTHREADS $ol_cv_pthread_version
19491 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19492 echo "$as_me: error: unknown pthread version" >&2;}
19493 { (exit 1); exit 1; }; }
19496 # consider threads found
19497 ol_with_threads=found
19500 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19501 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19502 if test "${ol_cv_header_linux_threads+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
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>
19513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19514 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19515 ol_cv_header_linux_threads=yes
19517 ol_cv_header_linux_threads=no
19523 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19524 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19525 if test $ol_cv_header_linux_threads = yes; then
19527 cat >>confdefs.h <<\_ACEOF
19528 #define HAVE_LINUX_THREADS 1
19534 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19535 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19536 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 #include <pthread.h>
19546 #ifdef _POSIX_THREAD_IS_GNU_PTH
19551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19552 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19553 ol_cv_header_gnu_pth_pthread_h=yes
19555 ol_cv_header_gnu_pth_pthread_h=no
19561 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19562 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19565 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19567 for ac_header in sched.h
19569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19571 echo "$as_me:$LINENO: checking for $ac_header" >&5
19572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19579 # Is the header compilable?
19580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 $ac_includes_default
19589 #include <$ac_header>
19591 rm -f conftest.$ac_objext
19592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19593 (eval $ac_compile) 2>conftest.er1
19595 grep -v '^ *+' conftest.er1 >conftest.err
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
19600 { ac_try='test -z "$ac_c_werror_flag"
19601 || test ! -s conftest.err'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest.$ac_objext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_header_compiler=yes
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_header_compiler=no
19620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19622 echo "${ECHO_T}$ac_header_compiler" >&6
19624 # Is the header present?
19625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 #include <$ac_header>
19635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null; then
19643 if test -s conftest.err; then
19644 ac_cpp_err=$ac_c_preproc_warn_flag
19645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19652 if test -z "$ac_cpp_err"; then
19653 ac_header_preproc=yes
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_header_preproc=no
19660 rm -f conftest.err conftest.$ac_ext
19661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19662 echo "${ECHO_T}$ac_header_preproc" >&6
19664 # So? What about this header?
19665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19671 ac_header_preproc=yes
19674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19688 ## --------------------------------------------- ##
19689 ## Report this to <http://www.openldap.org/its/> ##
19690 ## --------------------------------------------- ##
19693 sed "s/^/$as_me: WARNING: /" >&2
19696 echo "$as_me:$LINENO: checking for $ac_header" >&5
19697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 eval "$as_ac_Header=\$ac_header_preproc"
19703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19708 cat >>confdefs.h <<_ACEOF
19709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19719 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19720 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19721 if test "${ol_cv_pthread_create+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19725 if test "$cross_compiling" = yes; then
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19733 /* pthread test headers */
19734 #include <pthread.h>
19735 #if HAVE_PTHREADS < 7
19739 #define NULL (void*)0
19742 static void *task(p)
19745 return (void *) (p == NULL);
19752 /* pthread test function */
19753 #ifndef PTHREAD_CREATE_DETACHED
19754 #define PTHREAD_CREATE_DETACHED 1
19758 int detach = PTHREAD_CREATE_DETACHED;
19760 #if HAVE_PTHREADS > 4
19761 /* Final pthreads */
19762 pthread_attr_t attr;
19764 status = pthread_attr_init(&attr);
19765 if( status ) return status;
19767 #if HAVE_PTHREADS < 7
19768 status = pthread_attr_setdetachstate(&attr, &detach);
19769 if( status < 0 ) status = errno;
19771 status = pthread_attr_setdetachstate(&attr, detach);
19773 if( status ) return status;
19774 status = pthread_create( &t, &attr, task, NULL );
19775 #if HAVE_PTHREADS < 7
19776 if( status < 0 ) status = errno;
19778 if( status ) return status;
19780 /* Draft 4 pthreads */
19781 status = pthread_create( &t, pthread_attr_default, task, NULL );
19782 if( status ) return errno;
19784 /* give thread a chance to complete */
19785 /* it should remain joinable and hence detachable */
19788 status = pthread_detach( &t );
19789 if( status ) return errno;
19792 #ifdef HAVE_LINUX_THREADS
19793 pthread_kill_other_threads_np();
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19804 (eval $ac_link) 2>conftest.er1
19806 grep -v '^ *+' conftest.er1 >conftest.err
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } &&
19811 { ac_try='test -z "$ac_c_werror_flag"
19812 || test ! -s conftest.err'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest$ac_exeext'
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ol_cv_pthread_create=yes
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ol_cv_pthread_create=no
19831 rm -f conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19841 /* pthread test headers */
19842 #include <pthread.h>
19843 #if HAVE_PTHREADS < 7
19847 #define NULL (void*)0
19850 static void *task(p)
19853 return (void *) (p == NULL);
19857 int main(argc, argv)
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();
19911 rm -f conftest$ac_exeext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913 (eval $ac_link) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ol_cv_pthread_create=yes
19924 echo "$as_me: program exited with status $ac_status" >&5
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ( exit $ac_status )
19929 ol_cv_pthread_create=no
19931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19934 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19935 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19937 if test $ol_cv_pthread_create != no ; then
19938 ol_link_threads=posix
19939 ol_link_pthreads=""
19942 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19943 if test "$ol_link_threads" = no ; then
19945 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19946 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19947 if test "${ol_cv_pthread_kthread+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 LIBS="-kthread $LIBS"
19955 if test "$cross_compiling" = yes; then
19956 cat >conftest.$ac_ext <<_ACEOF
19959 cat confdefs.h >>conftest.$ac_ext
19960 cat >>conftest.$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19963 /* pthread test headers */
19964 #include <pthread.h>
19965 #if HAVE_PTHREADS < 7
19969 #define NULL (void*)0
19972 static void *task(p)
19975 return (void *) (p == NULL);
19982 /* pthread test function */
19983 #ifndef PTHREAD_CREATE_DETACHED
19984 #define PTHREAD_CREATE_DETACHED 1
19988 int detach = PTHREAD_CREATE_DETACHED;
19990 #if HAVE_PTHREADS > 4
19991 /* Final pthreads */
19992 pthread_attr_t attr;
19994 status = pthread_attr_init(&attr);
19995 if( status ) return status;
19997 #if HAVE_PTHREADS < 7
19998 status = pthread_attr_setdetachstate(&attr, &detach);
19999 if( status < 0 ) status = errno;
20001 status = pthread_attr_setdetachstate(&attr, detach);
20003 if( status ) return status;
20004 status = pthread_create( &t, &attr, task, NULL );
20005 #if HAVE_PTHREADS < 7
20006 if( status < 0 ) status = errno;
20008 if( status ) return status;
20010 /* Draft 4 pthreads */
20011 status = pthread_create( &t, pthread_attr_default, task, NULL );
20012 if( status ) return errno;
20014 /* give thread a chance to complete */
20015 /* it should remain joinable and hence detachable */
20018 status = pthread_detach( &t );
20019 if( status ) return errno;
20022 #ifdef HAVE_LINUX_THREADS
20023 pthread_kill_other_threads_np();
20032 rm -f conftest.$ac_objext conftest$ac_exeext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20034 (eval $ac_link) 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest$ac_exeext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ol_cv_pthread_kthread=yes
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20059 ol_cv_pthread_kthread=no
20061 rm -f conftest.err conftest.$ac_objext \
20062 conftest$ac_exeext conftest.$ac_ext
20064 cat >conftest.$ac_ext <<_ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20071 /* pthread test headers */
20072 #include <pthread.h>
20073 #if HAVE_PTHREADS < 7
20077 #define NULL (void*)0
20080 static void *task(p)
20083 return (void *) (p == NULL);
20087 int main(argc, argv)
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();
20141 rm -f conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143 (eval $ac_link) 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20152 ol_cv_pthread_kthread=yes
20154 echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ( exit $ac_status )
20159 ol_cv_pthread_kthread=no
20161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20168 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20169 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20171 if test $ol_cv_pthread_kthread = yes ; then
20172 ol_link_pthreads="-kthread"
20173 ol_link_threads=posix
20177 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20178 if test "$ol_link_threads" = no ; then
20180 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20181 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20182 if test "${ol_cv_pthread_pthread+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 LIBS="-pthread $LIBS"
20190 if test "$cross_compiling" = yes; then
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 /* pthread test headers */
20199 #include <pthread.h>
20200 #if HAVE_PTHREADS < 7
20204 #define NULL (void*)0
20207 static void *task(p)
20210 return (void *) (p == NULL);
20217 /* pthread test function */
20218 #ifndef PTHREAD_CREATE_DETACHED
20219 #define PTHREAD_CREATE_DETACHED 1
20223 int detach = PTHREAD_CREATE_DETACHED;
20225 #if HAVE_PTHREADS > 4
20226 /* Final pthreads */
20227 pthread_attr_t attr;
20229 status = pthread_attr_init(&attr);
20230 if( status ) return status;
20232 #if HAVE_PTHREADS < 7
20233 status = pthread_attr_setdetachstate(&attr, &detach);
20234 if( status < 0 ) status = errno;
20236 status = pthread_attr_setdetachstate(&attr, detach);
20238 if( status ) return status;
20239 status = pthread_create( &t, &attr, task, NULL );
20240 #if HAVE_PTHREADS < 7
20241 if( status < 0 ) status = errno;
20243 if( status ) return status;
20245 /* Draft 4 pthreads */
20246 status = pthread_create( &t, pthread_attr_default, task, NULL );
20247 if( status ) return errno;
20249 /* give thread a chance to complete */
20250 /* it should remain joinable and hence detachable */
20253 status = pthread_detach( &t );
20254 if( status ) return errno;
20257 #ifdef HAVE_LINUX_THREADS
20258 pthread_kill_other_threads_np();
20267 rm -f conftest.$ac_objext conftest$ac_exeext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20269 (eval $ac_link) 2>conftest.er1
20271 grep -v '^ *+' conftest.er1 >conftest.err
20273 cat conftest.err >&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
20276 { ac_try='test -z "$ac_c_werror_flag"
20277 || test ! -s conftest.err'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; } &&
20283 { ac_try='test -s conftest$ac_exeext'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 ol_cv_pthread_pthread=yes
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 ol_cv_pthread_pthread=no
20296 rm -f conftest.err conftest.$ac_objext \
20297 conftest$ac_exeext conftest.$ac_ext
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20306 /* pthread test headers */
20307 #include <pthread.h>
20308 #if HAVE_PTHREADS < 7
20312 #define NULL (void*)0
20315 static void *task(p)
20318 return (void *) (p == NULL);
20322 int main(argc, argv)
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();
20376 rm -f conftest$ac_exeext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20378 (eval $ac_link) 2>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20387 ol_cv_pthread_pthread=yes
20389 echo "$as_me: program exited with status $ac_status" >&5
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20393 ( exit $ac_status )
20394 ol_cv_pthread_pthread=no
20396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20403 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20404 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20406 if test $ol_cv_pthread_pthread = yes ; then
20407 ol_link_pthreads="-pthread"
20408 ol_link_threads=posix
20412 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20413 if test "$ol_link_threads" = no ; then
20415 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20416 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20417 if test "${ol_cv_pthread_pthreads+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 LIBS="-pthreads $LIBS"
20425 if test "$cross_compiling" = yes; then
20426 cat >conftest.$ac_ext <<_ACEOF
20429 cat confdefs.h >>conftest.$ac_ext
20430 cat >>conftest.$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20433 /* pthread test headers */
20434 #include <pthread.h>
20435 #if HAVE_PTHREADS < 7
20439 #define NULL (void*)0
20442 static void *task(p)
20445 return (void *) (p == NULL);
20452 /* pthread test function */
20453 #ifndef PTHREAD_CREATE_DETACHED
20454 #define PTHREAD_CREATE_DETACHED 1
20458 int detach = PTHREAD_CREATE_DETACHED;
20460 #if HAVE_PTHREADS > 4
20461 /* Final pthreads */
20462 pthread_attr_t attr;
20464 status = pthread_attr_init(&attr);
20465 if( status ) return status;
20467 #if HAVE_PTHREADS < 7
20468 status = pthread_attr_setdetachstate(&attr, &detach);
20469 if( status < 0 ) status = errno;
20471 status = pthread_attr_setdetachstate(&attr, detach);
20473 if( status ) return status;
20474 status = pthread_create( &t, &attr, task, NULL );
20475 #if HAVE_PTHREADS < 7
20476 if( status < 0 ) status = errno;
20478 if( status ) return status;
20480 /* Draft 4 pthreads */
20481 status = pthread_create( &t, pthread_attr_default, task, NULL );
20482 if( status ) return errno;
20484 /* give thread a chance to complete */
20485 /* it should remain joinable and hence detachable */
20488 status = pthread_detach( &t );
20489 if( status ) return errno;
20492 #ifdef HAVE_LINUX_THREADS
20493 pthread_kill_other_threads_np();
20502 rm -f conftest.$ac_objext conftest$ac_exeext
20503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20504 (eval $ac_link) 2>conftest.er1
20506 grep -v '^ *+' conftest.er1 >conftest.err
20508 cat conftest.err >&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } &&
20511 { ac_try='test -z "$ac_c_werror_flag"
20512 || test ! -s conftest.err'
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; } &&
20518 { ac_try='test -s conftest$ac_exeext'
20519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20520 (eval $ac_try) 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 ol_cv_pthread_pthreads=yes
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 ol_cv_pthread_pthreads=no
20531 rm -f conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20541 /* pthread test headers */
20542 #include <pthread.h>
20543 #if HAVE_PTHREADS < 7
20547 #define NULL (void*)0
20550 static void *task(p)
20553 return (void *) (p == NULL);
20557 int main(argc, argv)
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();
20611 rm -f conftest$ac_exeext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20613 (eval $ac_link) 2>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ol_cv_pthread_pthreads=yes
20624 echo "$as_me: program exited with status $ac_status" >&5
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ( exit $ac_status )
20629 ol_cv_pthread_pthreads=no
20631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20638 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20639 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20641 if test $ol_cv_pthread_pthreads = yes ; then
20642 ol_link_pthreads="-pthreads"
20643 ol_link_threads=posix
20647 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20648 if test "$ol_link_threads" = no ; then
20650 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20651 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20652 if test "${ol_cv_pthread_mthreads+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 LIBS="-mthreads $LIBS"
20660 if test "$cross_compiling" = yes; then
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20668 /* pthread test headers */
20669 #include <pthread.h>
20670 #if HAVE_PTHREADS < 7
20674 #define NULL (void*)0
20677 static void *task(p)
20680 return (void *) (p == NULL);
20687 /* pthread test function */
20688 #ifndef PTHREAD_CREATE_DETACHED
20689 #define PTHREAD_CREATE_DETACHED 1
20693 int detach = PTHREAD_CREATE_DETACHED;
20695 #if HAVE_PTHREADS > 4
20696 /* Final pthreads */
20697 pthread_attr_t attr;
20699 status = pthread_attr_init(&attr);
20700 if( status ) return status;
20702 #if HAVE_PTHREADS < 7
20703 status = pthread_attr_setdetachstate(&attr, &detach);
20704 if( status < 0 ) status = errno;
20706 status = pthread_attr_setdetachstate(&attr, detach);
20708 if( status ) return status;
20709 status = pthread_create( &t, &attr, task, NULL );
20710 #if HAVE_PTHREADS < 7
20711 if( status < 0 ) status = errno;
20713 if( status ) return status;
20715 /* Draft 4 pthreads */
20716 status = pthread_create( &t, pthread_attr_default, task, NULL );
20717 if( status ) return errno;
20719 /* give thread a chance to complete */
20720 /* it should remain joinable and hence detachable */
20723 status = pthread_detach( &t );
20724 if( status ) return errno;
20727 #ifdef HAVE_LINUX_THREADS
20728 pthread_kill_other_threads_np();
20737 rm -f conftest.$ac_objext conftest$ac_exeext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20739 (eval $ac_link) 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest$ac_exeext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ol_cv_pthread_mthreads=yes
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 ol_cv_pthread_mthreads=no
20766 rm -f conftest.err conftest.$ac_objext \
20767 conftest$ac_exeext conftest.$ac_ext
20769 cat >conftest.$ac_ext <<_ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20776 /* pthread test headers */
20777 #include <pthread.h>
20778 #if HAVE_PTHREADS < 7
20782 #define NULL (void*)0
20785 static void *task(p)
20788 return (void *) (p == NULL);
20792 int main(argc, argv)
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();
20846 rm -f conftest$ac_exeext
20847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848 (eval $ac_link) 2>&5
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ol_cv_pthread_mthreads=yes
20859 echo "$as_me: program exited with status $ac_status" >&5
20860 echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20863 ( exit $ac_status )
20864 ol_cv_pthread_mthreads=no
20866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20873 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20874 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20876 if test $ol_cv_pthread_mthreads = yes ; then
20877 ol_link_pthreads="-mthreads"
20878 ol_link_threads=posix
20882 # Pthread try link: -thread (ol_cv_pthread_thread)
20883 if test "$ol_link_threads" = no ; then
20885 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20886 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20887 if test "${ol_cv_pthread_thread+set}" = set; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 LIBS="-thread $LIBS"
20895 if test "$cross_compiling" = yes; then
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20903 /* pthread test headers */
20904 #include <pthread.h>
20905 #if HAVE_PTHREADS < 7
20909 #define NULL (void*)0
20912 static void *task(p)
20915 return (void *) (p == NULL);
20922 /* pthread test function */
20923 #ifndef PTHREAD_CREATE_DETACHED
20924 #define PTHREAD_CREATE_DETACHED 1
20928 int detach = PTHREAD_CREATE_DETACHED;
20930 #if HAVE_PTHREADS > 4
20931 /* Final pthreads */
20932 pthread_attr_t attr;
20934 status = pthread_attr_init(&attr);
20935 if( status ) return status;
20937 #if HAVE_PTHREADS < 7
20938 status = pthread_attr_setdetachstate(&attr, &detach);
20939 if( status < 0 ) status = errno;
20941 status = pthread_attr_setdetachstate(&attr, detach);
20943 if( status ) return status;
20944 status = pthread_create( &t, &attr, task, NULL );
20945 #if HAVE_PTHREADS < 7
20946 if( status < 0 ) status = errno;
20948 if( status ) return status;
20950 /* Draft 4 pthreads */
20951 status = pthread_create( &t, pthread_attr_default, task, NULL );
20952 if( status ) return errno;
20954 /* give thread a chance to complete */
20955 /* it should remain joinable and hence detachable */
20958 status = pthread_detach( &t );
20959 if( status ) return errno;
20962 #ifdef HAVE_LINUX_THREADS
20963 pthread_kill_other_threads_np();
20972 rm -f conftest.$ac_objext conftest$ac_exeext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20974 (eval $ac_link) 2>conftest.er1
20976 grep -v '^ *+' conftest.er1 >conftest.err
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } &&
20981 { ac_try='test -z "$ac_c_werror_flag"
20982 || test ! -s conftest.err'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try='test -s conftest$ac_exeext'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ol_cv_pthread_thread=yes
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ol_cv_pthread_thread=no
21001 rm -f conftest.err conftest.$ac_objext \
21002 conftest$ac_exeext conftest.$ac_ext
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21011 /* pthread test headers */
21012 #include <pthread.h>
21013 #if HAVE_PTHREADS < 7
21017 #define NULL (void*)0
21020 static void *task(p)
21023 return (void *) (p == NULL);
21027 int main(argc, argv)
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();
21081 rm -f conftest$ac_exeext
21082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21083 (eval $ac_link) 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 ol_cv_pthread_thread=yes
21094 echo "$as_me: program exited with status $ac_status" >&5
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ( exit $ac_status )
21099 ol_cv_pthread_thread=no
21101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21108 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21109 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21111 if test $ol_cv_pthread_thread = yes ; then
21112 ol_link_pthreads="-thread"
21113 ol_link_threads=posix
21118 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21119 if test "$ol_link_threads" = no ; then
21120 # try -lpthread -lmach -lexc -lc_r
21121 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21122 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21123 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21129 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21131 if test "$cross_compiling" = yes; then
21132 cat >conftest.$ac_ext <<_ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21139 /* pthread test headers */
21140 #include <pthread.h>
21141 #if HAVE_PTHREADS < 7
21145 #define NULL (void*)0
21148 static void *task(p)
21151 return (void *) (p == NULL);
21158 /* pthread test function */
21159 #ifndef PTHREAD_CREATE_DETACHED
21160 #define PTHREAD_CREATE_DETACHED 1
21164 int detach = PTHREAD_CREATE_DETACHED;
21166 #if HAVE_PTHREADS > 4
21167 /* Final pthreads */
21168 pthread_attr_t attr;
21170 status = pthread_attr_init(&attr);
21171 if( status ) return status;
21173 #if HAVE_PTHREADS < 7
21174 status = pthread_attr_setdetachstate(&attr, &detach);
21175 if( status < 0 ) status = errno;
21177 status = pthread_attr_setdetachstate(&attr, detach);
21179 if( status ) return status;
21180 status = pthread_create( &t, &attr, task, NULL );
21181 #if HAVE_PTHREADS < 7
21182 if( status < 0 ) status = errno;
21184 if( status ) return status;
21186 /* Draft 4 pthreads */
21187 status = pthread_create( &t, pthread_attr_default, task, NULL );
21188 if( status ) return errno;
21190 /* give thread a chance to complete */
21191 /* it should remain joinable and hence detachable */
21194 status = pthread_detach( &t );
21195 if( status ) return errno;
21198 #ifdef HAVE_LINUX_THREADS
21199 pthread_kill_other_threads_np();
21208 rm -f conftest.$ac_objext conftest$ac_exeext
21209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21210 (eval $ac_link) 2>conftest.er1
21212 grep -v '^ *+' conftest.er1 >conftest.err
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try='test -z "$ac_c_werror_flag"
21218 || test ! -s conftest.err'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; } &&
21224 { ac_try='test -s conftest$ac_exeext'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21235 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21237 rm -f conftest.err conftest.$ac_objext \
21238 conftest$ac_exeext conftest.$ac_ext
21240 cat >conftest.$ac_ext <<_ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21247 /* pthread test headers */
21248 #include <pthread.h>
21249 #if HAVE_PTHREADS < 7
21253 #define NULL (void*)0
21256 static void *task(p)
21259 return (void *) (p == NULL);
21263 int main(argc, argv)
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();
21317 rm -f conftest$ac_exeext
21318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21319 (eval $ac_link) 2>&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; }; then
21328 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21330 echo "$as_me: program exited with status $ac_status" >&5
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ( exit $ac_status )
21335 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21344 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21345 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21347 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21348 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21349 ol_link_threads=posix
21353 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21354 if test "$ol_link_threads" = no ; then
21355 # try -lpthread -lmach -lexc
21356 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21357 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21358 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 LIBS="-lpthread -lmach -lexc $LIBS"
21366 if test "$cross_compiling" = yes; then
21367 cat >conftest.$ac_ext <<_ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21374 /* pthread test headers */
21375 #include <pthread.h>
21376 #if HAVE_PTHREADS < 7
21380 #define NULL (void*)0
21383 static void *task(p)
21386 return (void *) (p == NULL);
21393 /* pthread test function */
21394 #ifndef PTHREAD_CREATE_DETACHED
21395 #define PTHREAD_CREATE_DETACHED 1
21399 int detach = PTHREAD_CREATE_DETACHED;
21401 #if HAVE_PTHREADS > 4
21402 /* Final pthreads */
21403 pthread_attr_t attr;
21405 status = pthread_attr_init(&attr);
21406 if( status ) return status;
21408 #if HAVE_PTHREADS < 7
21409 status = pthread_attr_setdetachstate(&attr, &detach);
21410 if( status < 0 ) status = errno;
21412 status = pthread_attr_setdetachstate(&attr, detach);
21414 if( status ) return status;
21415 status = pthread_create( &t, &attr, task, NULL );
21416 #if HAVE_PTHREADS < 7
21417 if( status < 0 ) status = errno;
21419 if( status ) return status;
21421 /* Draft 4 pthreads */
21422 status = pthread_create( &t, pthread_attr_default, task, NULL );
21423 if( status ) return errno;
21425 /* give thread a chance to complete */
21426 /* it should remain joinable and hence detachable */
21429 status = pthread_detach( &t );
21430 if( status ) return errno;
21433 #ifdef HAVE_LINUX_THREADS
21434 pthread_kill_other_threads_np();
21443 rm -f conftest.$ac_objext conftest$ac_exeext
21444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445 (eval $ac_link) 2>conftest.er1
21447 grep -v '^ *+' conftest.er1 >conftest.err
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } &&
21452 { ac_try='test -z "$ac_c_werror_flag"
21453 || test ! -s conftest.err'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest$ac_exeext'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21465 ol_cv_pthread_lpthread_lmach_lexc=yes
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 ol_cv_pthread_lpthread_lmach_lexc=no
21472 rm -f conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21482 /* pthread test headers */
21483 #include <pthread.h>
21484 #if HAVE_PTHREADS < 7
21488 #define NULL (void*)0
21491 static void *task(p)
21494 return (void *) (p == NULL);
21498 int main(argc, argv)
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();
21552 rm -f conftest$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554 (eval $ac_link) 2>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ol_cv_pthread_lpthread_lmach_lexc=yes
21565 echo "$as_me: program exited with status $ac_status" >&5
21566 echo "$as_me: failed program was:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ( exit $ac_status )
21570 ol_cv_pthread_lpthread_lmach_lexc=no
21572 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21579 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21580 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21582 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21583 ol_link_pthreads="-lpthread -lmach -lexc"
21584 ol_link_threads=posix
21589 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21590 if test "$ol_link_threads" = no ; then
21591 # try -lpthread -Wl,-woff,85
21592 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21593 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21594 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21602 if test "$cross_compiling" = yes; then
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21610 /* pthread test headers */
21611 #include <pthread.h>
21612 #if HAVE_PTHREADS < 7
21616 #define NULL (void*)0
21619 static void *task(p)
21622 return (void *) (p == NULL);
21629 /* pthread test function */
21630 #ifndef PTHREAD_CREATE_DETACHED
21631 #define PTHREAD_CREATE_DETACHED 1
21635 int detach = PTHREAD_CREATE_DETACHED;
21637 #if HAVE_PTHREADS > 4
21638 /* Final pthreads */
21639 pthread_attr_t attr;
21641 status = pthread_attr_init(&attr);
21642 if( status ) return status;
21644 #if HAVE_PTHREADS < 7
21645 status = pthread_attr_setdetachstate(&attr, &detach);
21646 if( status < 0 ) status = errno;
21648 status = pthread_attr_setdetachstate(&attr, detach);
21650 if( status ) return status;
21651 status = pthread_create( &t, &attr, task, NULL );
21652 #if HAVE_PTHREADS < 7
21653 if( status < 0 ) status = errno;
21655 if( status ) return status;
21657 /* Draft 4 pthreads */
21658 status = pthread_create( &t, pthread_attr_default, task, NULL );
21659 if( status ) return errno;
21661 /* give thread a chance to complete */
21662 /* it should remain joinable and hence detachable */
21665 status = pthread_detach( &t );
21666 if( status ) return errno;
21669 #ifdef HAVE_LINUX_THREADS
21670 pthread_kill_other_threads_np();
21679 rm -f conftest.$ac_objext conftest$ac_exeext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21681 (eval $ac_link) 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } &&
21688 { ac_try='test -z "$ac_c_werror_flag"
21689 || test ! -s conftest.err'
21690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691 (eval $ac_try) 2>&5
21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); }; } &&
21695 { ac_try='test -s conftest$ac_exeext'
21696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697 (eval $ac_try) 2>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 ol_cv_pthread_lib_lpthread_woff=yes
21703 echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ol_cv_pthread_lib_lpthread_woff=no
21708 rm -f conftest.err conftest.$ac_objext \
21709 conftest$ac_exeext conftest.$ac_ext
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21718 /* pthread test headers */
21719 #include <pthread.h>
21720 #if HAVE_PTHREADS < 7
21724 #define NULL (void*)0
21727 static void *task(p)
21730 return (void *) (p == NULL);
21734 int main(argc, argv)
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();
21788 rm -f conftest$ac_exeext
21789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21790 (eval $ac_link) 2>&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ol_cv_pthread_lib_lpthread_woff=yes
21801 echo "$as_me: program exited with status $ac_status" >&5
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ( exit $ac_status )
21806 ol_cv_pthread_lib_lpthread_woff=no
21808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21815 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21816 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21818 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21819 ol_link_pthreads="-lpthread -Wl,-woff,85"
21820 ol_link_threads=posix
21825 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21826 if test "$ol_link_threads" = no ; then
21828 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21829 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21830 if test "${ol_cv_pthread_lpthread+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21836 LIBS="-lpthread $LIBS"
21838 if test "$cross_compiling" = yes; then
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21846 /* pthread test headers */
21847 #include <pthread.h>
21848 #if HAVE_PTHREADS < 7
21852 #define NULL (void*)0
21855 static void *task(p)
21858 return (void *) (p == NULL);
21865 /* pthread test function */
21866 #ifndef PTHREAD_CREATE_DETACHED
21867 #define PTHREAD_CREATE_DETACHED 1
21871 int detach = PTHREAD_CREATE_DETACHED;
21873 #if HAVE_PTHREADS > 4
21874 /* Final pthreads */
21875 pthread_attr_t attr;
21877 status = pthread_attr_init(&attr);
21878 if( status ) return status;
21880 #if HAVE_PTHREADS < 7
21881 status = pthread_attr_setdetachstate(&attr, &detach);
21882 if( status < 0 ) status = errno;
21884 status = pthread_attr_setdetachstate(&attr, detach);
21886 if( status ) return status;
21887 status = pthread_create( &t, &attr, task, NULL );
21888 #if HAVE_PTHREADS < 7
21889 if( status < 0 ) status = errno;
21891 if( status ) return status;
21893 /* Draft 4 pthreads */
21894 status = pthread_create( &t, pthread_attr_default, task, NULL );
21895 if( status ) return errno;
21897 /* give thread a chance to complete */
21898 /* it should remain joinable and hence detachable */
21901 status = pthread_detach( &t );
21902 if( status ) return errno;
21905 #ifdef HAVE_LINUX_THREADS
21906 pthread_kill_other_threads_np();
21915 rm -f conftest.$ac_objext conftest$ac_exeext
21916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21917 (eval $ac_link) 2>conftest.er1
21919 grep -v '^ *+' conftest.er1 >conftest.err
21921 cat conftest.err >&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } &&
21924 { ac_try='test -z "$ac_c_werror_flag"
21925 || test ! -s conftest.err'
21926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927 (eval $ac_try) 2>&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); }; } &&
21931 { ac_try='test -s conftest$ac_exeext'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; }; then
21937 ol_cv_pthread_lpthread=yes
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21942 ol_cv_pthread_lpthread=no
21944 rm -f conftest.err conftest.$ac_objext \
21945 conftest$ac_exeext conftest.$ac_ext
21947 cat >conftest.$ac_ext <<_ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21954 /* pthread test headers */
21955 #include <pthread.h>
21956 #if HAVE_PTHREADS < 7
21960 #define NULL (void*)0
21963 static void *task(p)
21966 return (void *) (p == NULL);
21970 int main(argc, argv)
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();
22024 rm -f conftest$ac_exeext
22025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22026 (eval $ac_link) 2>&5
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ol_cv_pthread_lpthread=yes
22037 echo "$as_me: program exited with status $ac_status" >&5
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22041 ( exit $ac_status )
22042 ol_cv_pthread_lpthread=no
22044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22051 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22052 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22054 if test $ol_cv_pthread_lpthread = yes ; then
22055 ol_link_pthreads="-lpthread"
22056 ol_link_threads=posix
22060 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22061 if test "$ol_link_threads" = no ; then
22063 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22064 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22065 if test "${ol_cv_pthread_lc_r+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22073 if test "$cross_compiling" = yes; then
22074 cat >conftest.$ac_ext <<_ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22081 /* pthread test headers */
22082 #include <pthread.h>
22083 #if HAVE_PTHREADS < 7
22087 #define NULL (void*)0
22090 static void *task(p)
22093 return (void *) (p == NULL);
22100 /* pthread test function */
22101 #ifndef PTHREAD_CREATE_DETACHED
22102 #define PTHREAD_CREATE_DETACHED 1
22106 int detach = PTHREAD_CREATE_DETACHED;
22108 #if HAVE_PTHREADS > 4
22109 /* Final pthreads */
22110 pthread_attr_t attr;
22112 status = pthread_attr_init(&attr);
22113 if( status ) return status;
22115 #if HAVE_PTHREADS < 7
22116 status = pthread_attr_setdetachstate(&attr, &detach);
22117 if( status < 0 ) status = errno;
22119 status = pthread_attr_setdetachstate(&attr, detach);
22121 if( status ) return status;
22122 status = pthread_create( &t, &attr, task, NULL );
22123 #if HAVE_PTHREADS < 7
22124 if( status < 0 ) status = errno;
22126 if( status ) return status;
22128 /* Draft 4 pthreads */
22129 status = pthread_create( &t, pthread_attr_default, task, NULL );
22130 if( status ) return errno;
22132 /* give thread a chance to complete */
22133 /* it should remain joinable and hence detachable */
22136 status = pthread_detach( &t );
22137 if( status ) return errno;
22140 #ifdef HAVE_LINUX_THREADS
22141 pthread_kill_other_threads_np();
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152 (eval $ac_link) 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } &&
22159 { ac_try='test -z "$ac_c_werror_flag"
22160 || test ! -s conftest.err'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try='test -s conftest$ac_exeext'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 ol_cv_pthread_lc_r=yes
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22177 ol_cv_pthread_lc_r=no
22179 rm -f conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22182 cat >conftest.$ac_ext <<_ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22189 /* pthread test headers */
22190 #include <pthread.h>
22191 #if HAVE_PTHREADS < 7
22195 #define NULL (void*)0
22198 static void *task(p)
22201 return (void *) (p == NULL);
22205 int main(argc, argv)
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();
22259 rm -f conftest$ac_exeext
22260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22261 (eval $ac_link) 2>&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266 (eval $ac_try) 2>&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); }; }; then
22270 ol_cv_pthread_lc_r=yes
22272 echo "$as_me: program exited with status $ac_status" >&5
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 ( exit $ac_status )
22277 ol_cv_pthread_lc_r=no
22279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22286 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22287 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22289 if test $ol_cv_pthread_lc_r = yes ; then
22290 ol_link_pthreads="-lc_r"
22291 ol_link_threads=posix
22296 # Pthread try link: -threads (ol_cv_pthread_threads)
22297 if test "$ol_link_threads" = no ; then
22299 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22300 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22301 if test "${ol_cv_pthread_threads+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22307 LIBS="-threads $LIBS"
22309 if test "$cross_compiling" = yes; then
22310 cat >conftest.$ac_ext <<_ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22317 /* pthread test headers */
22318 #include <pthread.h>
22319 #if HAVE_PTHREADS < 7
22323 #define NULL (void*)0
22326 static void *task(p)
22329 return (void *) (p == NULL);
22336 /* pthread test function */
22337 #ifndef PTHREAD_CREATE_DETACHED
22338 #define PTHREAD_CREATE_DETACHED 1
22342 int detach = PTHREAD_CREATE_DETACHED;
22344 #if HAVE_PTHREADS > 4
22345 /* Final pthreads */
22346 pthread_attr_t attr;
22348 status = pthread_attr_init(&attr);
22349 if( status ) return status;
22351 #if HAVE_PTHREADS < 7
22352 status = pthread_attr_setdetachstate(&attr, &detach);
22353 if( status < 0 ) status = errno;
22355 status = pthread_attr_setdetachstate(&attr, detach);
22357 if( status ) return status;
22358 status = pthread_create( &t, &attr, task, NULL );
22359 #if HAVE_PTHREADS < 7
22360 if( status < 0 ) status = errno;
22362 if( status ) return status;
22364 /* Draft 4 pthreads */
22365 status = pthread_create( &t, pthread_attr_default, task, NULL );
22366 if( status ) return errno;
22368 /* give thread a chance to complete */
22369 /* it should remain joinable and hence detachable */
22372 status = pthread_detach( &t );
22373 if( status ) return errno;
22376 #ifdef HAVE_LINUX_THREADS
22377 pthread_kill_other_threads_np();
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22388 (eval $ac_link) 2>conftest.er1
22390 grep -v '^ *+' conftest.er1 >conftest.err
22392 cat conftest.err >&5
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try='test -z "$ac_c_werror_flag"
22396 || test ! -s conftest.err'
22397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398 (eval $ac_try) 2>&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); }; } &&
22402 { ac_try='test -s conftest$ac_exeext'
22403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }; }; then
22408 ol_cv_pthread_threads=yes
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ol_cv_pthread_threads=no
22415 rm -f conftest.err conftest.$ac_objext \
22416 conftest$ac_exeext conftest.$ac_ext
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22425 /* pthread test headers */
22426 #include <pthread.h>
22427 #if HAVE_PTHREADS < 7
22431 #define NULL (void*)0
22434 static void *task(p)
22437 return (void *) (p == NULL);
22441 int main(argc, argv)
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();
22495 rm -f conftest$ac_exeext
22496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22497 (eval $ac_link) 2>&5
22499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502 (eval $ac_try) 2>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; }; then
22506 ol_cv_pthread_threads=yes
22508 echo "$as_me: program exited with status $ac_status" >&5
22509 echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22512 ( exit $ac_status )
22513 ol_cv_pthread_threads=no
22515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22522 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22523 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22525 if test $ol_cv_pthread_threads = yes ; then
22526 ol_link_pthreads="-threads"
22527 ol_link_threads=posix
22532 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22533 if test "$ol_link_threads" = no ; then
22534 # try -lpthreads -lmach -lexc -lc_r
22535 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22536 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22537 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22545 if test "$cross_compiling" = yes; then
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22553 /* pthread test headers */
22554 #include <pthread.h>
22555 #if HAVE_PTHREADS < 7
22559 #define NULL (void*)0
22562 static void *task(p)
22565 return (void *) (p == NULL);
22572 /* pthread test function */
22573 #ifndef PTHREAD_CREATE_DETACHED
22574 #define PTHREAD_CREATE_DETACHED 1
22578 int detach = PTHREAD_CREATE_DETACHED;
22580 #if HAVE_PTHREADS > 4
22581 /* Final pthreads */
22582 pthread_attr_t attr;
22584 status = pthread_attr_init(&attr);
22585 if( status ) return status;
22587 #if HAVE_PTHREADS < 7
22588 status = pthread_attr_setdetachstate(&attr, &detach);
22589 if( status < 0 ) status = errno;
22591 status = pthread_attr_setdetachstate(&attr, detach);
22593 if( status ) return status;
22594 status = pthread_create( &t, &attr, task, NULL );
22595 #if HAVE_PTHREADS < 7
22596 if( status < 0 ) status = errno;
22598 if( status ) return status;
22600 /* Draft 4 pthreads */
22601 status = pthread_create( &t, pthread_attr_default, task, NULL );
22602 if( status ) return errno;
22604 /* give thread a chance to complete */
22605 /* it should remain joinable and hence detachable */
22608 status = pthread_detach( &t );
22609 if( status ) return errno;
22612 #ifdef HAVE_LINUX_THREADS
22613 pthread_kill_other_threads_np();
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624 (eval $ac_link) 2>conftest.er1
22626 grep -v '^ *+' conftest.er1 >conftest.err
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } &&
22631 { ac_try='test -z "$ac_c_werror_flag"
22632 || test ! -s conftest.err'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; } &&
22638 { ac_try='test -s conftest$ac_exeext'
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22651 rm -f conftest.err conftest.$ac_objext \
22652 conftest$ac_exeext conftest.$ac_ext
22654 cat >conftest.$ac_ext <<_ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h. */
22661 /* pthread test headers */
22662 #include <pthread.h>
22663 #if HAVE_PTHREADS < 7
22667 #define NULL (void*)0
22670 static void *task(p)
22673 return (void *) (p == NULL);
22677 int main(argc, argv)
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();
22731 rm -f conftest$ac_exeext
22732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22733 (eval $ac_link) 2>&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738 (eval $ac_try) 2>&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; }; then
22742 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22744 echo "$as_me: program exited with status $ac_status" >&5
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 ( exit $ac_status )
22749 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22758 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22759 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22761 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22762 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22763 ol_link_threads=posix
22767 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22768 if test "$ol_link_threads" = no ; then
22769 # try -lpthreads -lmach -lexc
22770 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22771 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22772 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22773 echo $ECHO_N "(cached) $ECHO_C" >&6
22778 LIBS="-lpthreads -lmach -lexc $LIBS"
22780 if test "$cross_compiling" = yes; then
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22788 /* pthread test headers */
22789 #include <pthread.h>
22790 #if HAVE_PTHREADS < 7
22794 #define NULL (void*)0
22797 static void *task(p)
22800 return (void *) (p == NULL);
22807 /* pthread test function */
22808 #ifndef PTHREAD_CREATE_DETACHED
22809 #define PTHREAD_CREATE_DETACHED 1
22813 int detach = PTHREAD_CREATE_DETACHED;
22815 #if HAVE_PTHREADS > 4
22816 /* Final pthreads */
22817 pthread_attr_t attr;
22819 status = pthread_attr_init(&attr);
22820 if( status ) return status;
22822 #if HAVE_PTHREADS < 7
22823 status = pthread_attr_setdetachstate(&attr, &detach);
22824 if( status < 0 ) status = errno;
22826 status = pthread_attr_setdetachstate(&attr, detach);
22828 if( status ) return status;
22829 status = pthread_create( &t, &attr, task, NULL );
22830 #if HAVE_PTHREADS < 7
22831 if( status < 0 ) status = errno;
22833 if( status ) return status;
22835 /* Draft 4 pthreads */
22836 status = pthread_create( &t, pthread_attr_default, task, NULL );
22837 if( status ) return errno;
22839 /* give thread a chance to complete */
22840 /* it should remain joinable and hence detachable */
22843 status = pthread_detach( &t );
22844 if( status ) return errno;
22847 #ifdef HAVE_LINUX_THREADS
22848 pthread_kill_other_threads_np();
22857 rm -f conftest.$ac_objext conftest$ac_exeext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22859 (eval $ac_link) 2>conftest.er1
22861 grep -v '^ *+' conftest.er1 >conftest.err
22863 cat conftest.err >&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } &&
22866 { ac_try='test -z "$ac_c_werror_flag"
22867 || test ! -s conftest.err'
22868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869 (eval $ac_try) 2>&5
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); }; } &&
22873 { ac_try='test -s conftest$ac_exeext'
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; }; then
22879 ol_cv_pthread_lpthreads_lmach_lexc=yes
22881 echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 ol_cv_pthread_lpthreads_lmach_lexc=no
22886 rm -f conftest.err conftest.$ac_objext \
22887 conftest$ac_exeext conftest.$ac_ext
22889 cat >conftest.$ac_ext <<_ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22896 /* pthread test headers */
22897 #include <pthread.h>
22898 #if HAVE_PTHREADS < 7
22902 #define NULL (void*)0
22905 static void *task(p)
22908 return (void *) (p == NULL);
22912 int main(argc, argv)
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();
22966 rm -f conftest$ac_exeext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968 (eval $ac_link) 2>&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ol_cv_pthread_lpthreads_lmach_lexc=yes
22979 echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ( exit $ac_status )
22984 ol_cv_pthread_lpthreads_lmach_lexc=no
22986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22993 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22994 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22996 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22997 ol_link_pthreads="-lpthreads -lmach -lexc"
22998 ol_link_threads=posix
23002 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23003 if test "$ol_link_threads" = no ; then
23004 # try -lpthreads -lexc
23005 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23006 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23007 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23008 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 LIBS="-lpthreads -lexc $LIBS"
23015 if test "$cross_compiling" = yes; then
23016 cat >conftest.$ac_ext <<_ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h. */
23023 /* pthread test headers */
23024 #include <pthread.h>
23025 #if HAVE_PTHREADS < 7
23029 #define NULL (void*)0
23032 static void *task(p)
23035 return (void *) (p == NULL);
23042 /* pthread test function */
23043 #ifndef PTHREAD_CREATE_DETACHED
23044 #define PTHREAD_CREATE_DETACHED 1
23048 int detach = PTHREAD_CREATE_DETACHED;
23050 #if HAVE_PTHREADS > 4
23051 /* Final pthreads */
23052 pthread_attr_t attr;
23054 status = pthread_attr_init(&attr);
23055 if( status ) return status;
23057 #if HAVE_PTHREADS < 7
23058 status = pthread_attr_setdetachstate(&attr, &detach);
23059 if( status < 0 ) status = errno;
23061 status = pthread_attr_setdetachstate(&attr, detach);
23063 if( status ) return status;
23064 status = pthread_create( &t, &attr, task, NULL );
23065 #if HAVE_PTHREADS < 7
23066 if( status < 0 ) status = errno;
23068 if( status ) return status;
23070 /* Draft 4 pthreads */
23071 status = pthread_create( &t, pthread_attr_default, task, NULL );
23072 if( status ) return errno;
23074 /* give thread a chance to complete */
23075 /* it should remain joinable and hence detachable */
23078 status = pthread_detach( &t );
23079 if( status ) return errno;
23082 #ifdef HAVE_LINUX_THREADS
23083 pthread_kill_other_threads_np();
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23094 (eval $ac_link) 2>conftest.er1
23096 grep -v '^ *+' conftest.er1 >conftest.err
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } &&
23101 { ac_try='test -z "$ac_c_werror_flag"
23102 || test ! -s conftest.err'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; } &&
23108 { ac_try='test -s conftest$ac_exeext'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; }; then
23114 ol_cv_pthread_lpthreads_lexc=yes
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.$ac_ext >&5
23119 ol_cv_pthread_lpthreads_lexc=no
23121 rm -f conftest.err conftest.$ac_objext \
23122 conftest$ac_exeext conftest.$ac_ext
23124 cat >conftest.$ac_ext <<_ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23131 /* pthread test headers */
23132 #include <pthread.h>
23133 #if HAVE_PTHREADS < 7
23137 #define NULL (void*)0
23140 static void *task(p)
23143 return (void *) (p == NULL);
23147 int main(argc, argv)
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();
23201 rm -f conftest$ac_exeext
23202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23203 (eval $ac_link) 2>&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208 (eval $ac_try) 2>&5
23210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); }; }; then
23212 ol_cv_pthread_lpthreads_lexc=yes
23214 echo "$as_me: program exited with status $ac_status" >&5
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23218 ( exit $ac_status )
23219 ol_cv_pthread_lpthreads_lexc=no
23221 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23228 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23229 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23231 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23232 ol_link_pthreads="-lpthreads -lexc"
23233 ol_link_threads=posix
23238 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23239 if test "$ol_link_threads" = no ; then
23241 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23242 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23243 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23244 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 LIBS="-lpthreads $LIBS"
23251 if test "$cross_compiling" = yes; then
23252 cat >conftest.$ac_ext <<_ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23259 /* pthread test headers */
23260 #include <pthread.h>
23261 #if HAVE_PTHREADS < 7
23265 #define NULL (void*)0
23268 static void *task(p)
23271 return (void *) (p == NULL);
23278 /* pthread test function */
23279 #ifndef PTHREAD_CREATE_DETACHED
23280 #define PTHREAD_CREATE_DETACHED 1
23284 int detach = PTHREAD_CREATE_DETACHED;
23286 #if HAVE_PTHREADS > 4
23287 /* Final pthreads */
23288 pthread_attr_t attr;
23290 status = pthread_attr_init(&attr);
23291 if( status ) return status;
23293 #if HAVE_PTHREADS < 7
23294 status = pthread_attr_setdetachstate(&attr, &detach);
23295 if( status < 0 ) status = errno;
23297 status = pthread_attr_setdetachstate(&attr, detach);
23299 if( status ) return status;
23300 status = pthread_create( &t, &attr, task, NULL );
23301 #if HAVE_PTHREADS < 7
23302 if( status < 0 ) status = errno;
23304 if( status ) return status;
23306 /* Draft 4 pthreads */
23307 status = pthread_create( &t, pthread_attr_default, task, NULL );
23308 if( status ) return errno;
23310 /* give thread a chance to complete */
23311 /* it should remain joinable and hence detachable */
23314 status = pthread_detach( &t );
23315 if( status ) return errno;
23318 #ifdef HAVE_LINUX_THREADS
23319 pthread_kill_other_threads_np();
23328 rm -f conftest.$ac_objext conftest$ac_exeext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23330 (eval $ac_link) 2>conftest.er1
23332 grep -v '^ *+' conftest.er1 >conftest.err
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } &&
23337 { ac_try='test -z "$ac_c_werror_flag"
23338 || test ! -s conftest.err'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; } &&
23344 { ac_try='test -s conftest$ac_exeext'
23345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23346 (eval $ac_try) 2>&5
23348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349 (exit $ac_status); }; }; then
23350 ol_cv_pthread_lib_lpthreads=yes
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ol_cv_pthread_lib_lpthreads=no
23357 rm -f conftest.err conftest.$ac_objext \
23358 conftest$ac_exeext conftest.$ac_ext
23360 cat >conftest.$ac_ext <<_ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h. */
23367 /* pthread test headers */
23368 #include <pthread.h>
23369 #if HAVE_PTHREADS < 7
23373 #define NULL (void*)0
23376 static void *task(p)
23379 return (void *) (p == NULL);
23383 int main(argc, argv)
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();
23437 rm -f conftest$ac_exeext
23438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23439 (eval $ac_link) 2>&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23448 ol_cv_pthread_lib_lpthreads=yes
23450 echo "$as_me: program exited with status $ac_status" >&5
23451 echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23454 ( exit $ac_status )
23455 ol_cv_pthread_lib_lpthreads=no
23457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23464 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23465 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23467 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23468 ol_link_pthreads="-lpthreads"
23469 ol_link_threads=posix
23474 if test $ol_link_threads != no ; then
23475 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23477 save_CPPFLAGS="$CPPFLAGS"
23479 LIBS="$LTHREAD_LIBS $LIBS"
23484 for ac_func in sched_yield pthread_yield thr_yield
23486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23487 echo "$as_me:$LINENO: checking for $ac_func" >&5
23488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23489 if eval "test \"\${$as_ac_var+set}\" = set"; then
23490 echo $ECHO_N "(cached) $ECHO_C" >&6
23492 cat >conftest.$ac_ext <<_ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23500 #define $ac_func innocuous_$ac_func
23502 /* System header to define __stub macros and hopefully few prototypes,
23503 which can conflict with char $ac_func (); below.
23504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23505 <limits.h> exists even on freestanding compilers. */
23508 # include <limits.h>
23510 # include <assert.h>
23515 /* Override any gcc2 internal prototype to avoid an error. */
23520 /* We use char because int might match the return type of a gcc2
23521 builtin and then its argument prototype would still apply. */
23523 /* The GNU C library defines this for functions which it implements
23524 to always fail with ENOSYS. Some functions are actually named
23525 something starting with __ and the normal name is an alias. */
23526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23529 char (*f) () = $ac_func;
23538 return f != $ac_func;
23543 rm -f conftest.$ac_objext conftest$ac_exeext
23544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545 (eval $ac_link) 2>conftest.er1
23547 grep -v '^ *+' conftest.er1 >conftest.err
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } &&
23552 { ac_try='test -z "$ac_c_werror_flag"
23553 || test ! -s conftest.err'
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; } &&
23559 { ac_try='test -s conftest$ac_exeext'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; }; then
23565 eval "$as_ac_var=yes"
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 eval "$as_ac_var=no"
23572 rm -f conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23577 if test `eval echo '${'$as_ac_var'}'` = yes; then
23578 cat >>confdefs.h <<_ACEOF
23579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23586 if test $ac_cv_func_sched_yield = no &&
23587 test $ac_cv_func_pthread_yield = no &&
23588 test $ac_cv_func_thr_yield = no ; then
23589 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23590 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23591 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23592 echo $ECHO_N "(cached) $ECHO_C" >&6
23594 ac_check_lib_save_LIBS=$LIBS
23596 cat >conftest.$ac_ext <<_ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h. */
23603 /* Override any gcc2 internal prototype to avoid an error. */
23607 /* We use char because int might match the return type of a gcc2
23608 builtin and then its argument prototype would still apply. */
23609 char sched_yield ();
23618 rm -f conftest.$ac_objext conftest$ac_exeext
23619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23620 (eval $ac_link) 2>conftest.er1
23622 grep -v '^ *+' conftest.er1 >conftest.err
23624 cat conftest.err >&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } &&
23627 { ac_try='test -z "$ac_c_werror_flag"
23628 || test ! -s conftest.err'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; } &&
23634 { ac_try='test -s conftest$ac_exeext'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 ac_cv_lib_rt_sched_yield=yes
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ac_cv_lib_rt_sched_yield=no
23647 rm -f conftest.err conftest.$ac_objext \
23648 conftest$ac_exeext conftest.$ac_ext
23649 LIBS=$ac_check_lib_save_LIBS
23651 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23652 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23653 if test $ac_cv_lib_rt_sched_yield = yes; then
23654 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23656 cat >>confdefs.h <<\_ACEOF
23657 #define HAVE_SCHED_YIELD 1
23660 ac_cv_func_sched_yield=yes
23662 ac_cv_func_sched_yield=no
23666 if test $ac_cv_func_sched_yield = no &&
23667 test $ac_cv_func_pthread_yield = no &&
23668 test "$ac_cv_func_thr_yield" = no ; then
23669 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23670 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23674 for ac_func in pthread_kill
23676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23677 echo "$as_me:$LINENO: checking for $ac_func" >&5
23678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23679 if eval "test \"\${$as_ac_var+set}\" = set"; then
23680 echo $ECHO_N "(cached) $ECHO_C" >&6
23682 cat >conftest.$ac_ext <<_ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23690 #define $ac_func innocuous_$ac_func
23692 /* System header to define __stub macros and hopefully few prototypes,
23693 which can conflict with char $ac_func (); below.
23694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23695 <limits.h> exists even on freestanding compilers. */
23698 # include <limits.h>
23700 # include <assert.h>
23705 /* Override any gcc2 internal prototype to avoid an error. */
23710 /* We use char because int might match the return type of a gcc2
23711 builtin and then its argument prototype would still apply. */
23713 /* The GNU C library defines this for functions which it implements
23714 to always fail with ENOSYS. Some functions are actually named
23715 something starting with __ and the normal name is an alias. */
23716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23719 char (*f) () = $ac_func;
23728 return f != $ac_func;
23733 rm -f conftest.$ac_objext conftest$ac_exeext
23734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23735 (eval $ac_link) 2>conftest.er1
23737 grep -v '^ *+' conftest.er1 >conftest.err
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } &&
23742 { ac_try='test -z "$ac_c_werror_flag"
23743 || test ! -s conftest.err'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; } &&
23749 { ac_try='test -s conftest$ac_exeext'
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 eval "$as_ac_var=yes"
23757 echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23760 eval "$as_ac_var=no"
23762 rm -f conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
23765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23767 if test `eval echo '${'$as_ac_var'}'` = yes; then
23768 cat >>confdefs.h <<_ACEOF
23769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23776 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23777 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23778 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 cat >conftest.$ac_ext <<_ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h. */
23789 #include <pthread.h>
23790 pthread_rwlock_t rwlock;
23795 pthread_rwlock_destroy(&rwlock);
23800 rm -f conftest.$ac_objext conftest$ac_exeext
23801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23802 (eval $ac_link) 2>conftest.er1
23804 grep -v '^ *+' conftest.er1 >conftest.err
23806 cat conftest.err >&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); } &&
23809 { ac_try='test -z "$ac_c_werror_flag"
23810 || test ! -s conftest.err'
23811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23812 (eval $ac_try) 2>&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); }; } &&
23816 { ac_try='test -s conftest$ac_exeext'
23817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23818 (eval $ac_try) 2>&5
23820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821 (exit $ac_status); }; }; then
23822 ol_cv_func_pthread_rwlock_destroy=yes
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 ol_cv_func_pthread_rwlock_destroy=no
23829 rm -f conftest.err conftest.$ac_objext \
23830 conftest$ac_exeext conftest.$ac_ext
23833 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23834 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23835 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23843 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23844 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23845 if test "${ol_cv_func_pthread_detach+set}" = set; then
23846 echo $ECHO_N "(cached) $ECHO_C" >&6
23849 cat >conftest.$ac_ext <<_ACEOF
23852 cat confdefs.h >>conftest.$ac_ext
23853 cat >>conftest.$ac_ext <<_ACEOF
23854 /* end confdefs.h. */
23856 #include <pthread.h>
23858 #define NULL (void*)0
23864 pthread_detach(NULL);
23869 rm -f conftest.$ac_objext conftest$ac_exeext
23870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23871 (eval $ac_link) 2>conftest.er1
23873 grep -v '^ *+' conftest.er1 >conftest.err
23875 cat conftest.err >&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } &&
23878 { ac_try='test -z "$ac_c_werror_flag"
23879 || test ! -s conftest.err'
23880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881 (eval $ac_try) 2>&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; } &&
23885 { ac_try='test -s conftest$ac_exeext'
23886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887 (eval $ac_try) 2>&5
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); }; }; then
23891 ol_cv_func_pthread_detach=yes
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 ol_cv_func_pthread_detach=no
23898 rm -f conftest.err conftest.$ac_objext \
23899 conftest$ac_exeext conftest.$ac_ext
23902 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23903 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23905 if test $ol_cv_func_pthread_detach = no ; then
23906 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23907 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23908 { (exit 1); exit 1; }; }
23912 cat >>confdefs.h <<\_ACEOF
23913 #define HAVE_PTHREAD_DETACH 1
23922 pthread_setconcurrency \
23923 pthread_getconcurrency \
23924 thr_setconcurrency \
23925 thr_getconcurrency \
23928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23929 echo "$as_me:$LINENO: checking for $ac_func" >&5
23930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23931 if eval "test \"\${$as_ac_var+set}\" = set"; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23934 cat >conftest.$ac_ext <<_ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23942 #define $ac_func innocuous_$ac_func
23944 /* System header to define __stub macros and hopefully few prototypes,
23945 which can conflict with char $ac_func (); below.
23946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23947 <limits.h> exists even on freestanding compilers. */
23950 # include <limits.h>
23952 # include <assert.h>
23957 /* Override any gcc2 internal prototype to avoid an error. */
23962 /* We use char because int might match the return type of a gcc2
23963 builtin and then its argument prototype would still apply. */
23965 /* The GNU C library defines this for functions which it implements
23966 to always fail with ENOSYS. Some functions are actually named
23967 something starting with __ and the normal name is an alias. */
23968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23971 char (*f) () = $ac_func;
23980 return f != $ac_func;
23985 rm -f conftest.$ac_objext conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987 (eval $ac_link) 2>conftest.er1
23989 grep -v '^ *+' conftest.er1 >conftest.err
23991 cat conftest.err >&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } &&
23994 { ac_try='test -z "$ac_c_werror_flag"
23995 || test ! -s conftest.err'
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); }; } &&
24001 { ac_try='test -s conftest$ac_exeext'
24002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003 (eval $ac_try) 2>&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); }; }; then
24007 eval "$as_ac_var=yes"
24009 echo "$as_me: failed program was:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24012 eval "$as_ac_var=no"
24014 rm -f conftest.err conftest.$ac_objext \
24015 conftest$ac_exeext conftest.$ac_ext
24017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24019 if test `eval echo '${'$as_ac_var'}'` = yes; then
24020 cat >>confdefs.h <<_ACEOF
24021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24030 for ac_func in pthread_kill_other_threads_np
24032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24033 echo "$as_me:$LINENO: checking for $ac_func" >&5
24034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24035 if eval "test \"\${$as_ac_var+set}\" = set"; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24038 cat >conftest.$ac_ext <<_ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24046 #define $ac_func innocuous_$ac_func
24048 /* System header to define __stub macros and hopefully few prototypes,
24049 which can conflict with char $ac_func (); below.
24050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24051 <limits.h> exists even on freestanding compilers. */
24054 # include <limits.h>
24056 # include <assert.h>
24061 /* Override any gcc2 internal prototype to avoid an error. */
24066 /* We use char because int might match the return type of a gcc2
24067 builtin and then its argument prototype would still apply. */
24069 /* The GNU C library defines this for functions which it implements
24070 to always fail with ENOSYS. Some functions are actually named
24071 something starting with __ and the normal name is an alias. */
24072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24075 char (*f) () = $ac_func;
24084 return f != $ac_func;
24089 rm -f conftest.$ac_objext conftest$ac_exeext
24090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24091 (eval $ac_link) 2>conftest.er1
24093 grep -v '^ *+' conftest.er1 >conftest.err
24095 cat conftest.err >&5
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); } &&
24098 { ac_try='test -z "$ac_c_werror_flag"
24099 || test ! -s conftest.err'
24100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101 (eval $ac_try) 2>&5
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); }; } &&
24105 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
24111 eval "$as_ac_var=yes"
24113 echo "$as_me: failed program was:" >&5
24114 sed 's/^/| /' conftest.$ac_ext >&5
24116 eval "$as_ac_var=no"
24118 rm -f conftest.err conftest.$ac_objext \
24119 conftest$ac_exeext conftest.$ac_ext
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24123 if test `eval echo '${'$as_ac_var'}'` = yes; then
24124 cat >>confdefs.h <<_ACEOF
24125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24131 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24132 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24133 if test "${ol_cv_sys_linux_threads+set}" = set; then
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24136 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24138 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24139 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24144 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24145 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24146 if test "${ol_cv_linux_threads+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24150 if test $ol_cv_header_linux_threads = yes &&
24151 test $ol_cv_sys_linux_threads = yes; then
24152 ol_cv_linux_threads=yes
24153 elif test $ol_cv_header_linux_threads = no &&
24154 test $ol_cv_sys_linux_threads = no; then
24155 ol_cv_linux_threads=no
24157 ol_cv_linux_threads=error
24161 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24162 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24165 if test $ol_cv_linux_threads = error; then
24166 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24167 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24168 { (exit 1); exit 1; }; };
24171 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24172 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24173 if test "${ol_cv_pthread_create_works+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 if test "$cross_compiling" = yes; then
24178 ol_cv_pthread_create_works=yes
24180 cat >conftest.$ac_ext <<_ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h. */
24187 /* pthread test headers */
24188 #include <pthread.h>
24189 #if HAVE_PTHREADS < 7
24193 #define NULL (void*)0
24196 static void *task(p)
24199 return (void *) (p == NULL);
24203 int main(argc, argv)
24208 /* pthread test function */
24209 #ifndef PTHREAD_CREATE_DETACHED
24210 #define PTHREAD_CREATE_DETACHED 1
24214 int detach = PTHREAD_CREATE_DETACHED;
24216 #if HAVE_PTHREADS > 4
24217 /* Final pthreads */
24218 pthread_attr_t attr;
24220 status = pthread_attr_init(&attr);
24221 if( status ) return status;
24223 #if HAVE_PTHREADS < 7
24224 status = pthread_attr_setdetachstate(&attr, &detach);
24225 if( status < 0 ) status = errno;
24227 status = pthread_attr_setdetachstate(&attr, detach);
24229 if( status ) return status;
24230 status = pthread_create( &t, &attr, task, NULL );
24231 #if HAVE_PTHREADS < 7
24232 if( status < 0 ) status = errno;
24234 if( status ) return status;
24236 /* Draft 4 pthreads */
24237 status = pthread_create( &t, pthread_attr_default, task, NULL );
24238 if( status ) return errno;
24240 /* give thread a chance to complete */
24241 /* it should remain joinable and hence detachable */
24244 status = pthread_detach( &t );
24245 if( status ) return errno;
24248 #ifdef HAVE_LINUX_THREADS
24249 pthread_kill_other_threads_np();
24257 rm -f conftest$ac_exeext
24258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24259 (eval $ac_link) 2>&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; }; then
24268 ol_cv_pthread_create_works=yes
24270 echo "$as_me: program exited with status $ac_status" >&5
24271 echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.$ac_ext >&5
24274 ( exit $ac_status )
24275 ol_cv_pthread_create_works=no
24277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24280 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24281 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24283 if test $ol_cv_pthread_create_works = no ; then
24284 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24285 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24286 { (exit 1); exit 1; }; }
24289 ol_replace_broken_yield=no
24291 if test $ol_replace_broken_yield = yes ; then
24293 cat >>confdefs.h <<\_ACEOF
24294 #define REPLACE_BROKEN_YIELD 1
24299 if test $ol_with_yielding_select = auto ; then
24300 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24301 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24302 if test "${ol_cv_pthread_select_yields+set}" = set; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24306 if test "$cross_compiling" = yes; then
24307 ol_cv_pthread_select_yields=cross
24309 cat >conftest.$ac_ext <<_ACEOF
24312 cat confdefs.h >>conftest.$ac_ext
24313 cat >>conftest.$ac_ext <<_ACEOF
24314 /* end confdefs.h. */
24316 #include <sys/types.h>
24317 #include <sys/time.h>
24318 #include <unistd.h>
24319 #include <pthread.h>
24321 #define NULL (void*) 0
24324 static int fildes[2];
24326 static void *task(p)
24338 FD_SET(fildes[0], &rfds);
24340 /* we're not interested in any fds */
24341 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24348 exit(0); /* if we exit here, the select blocked the whole process */
24351 int main(argc, argv)
24357 /* create a pipe to select */
24358 if(pipe(&fildes[0])) {
24363 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24364 (void) pthread_setconcurrency(2);
24366 #ifdef HAVE_THR_SETCONCURRENCY
24367 /* Set Solaris LWP concurrency to 2 */
24368 thr_setconcurrency(2);
24372 #if HAVE_PTHREADS < 6
24373 pthread_create(&t, pthread_attr_default, task, NULL);
24375 pthread_create(&t, NULL, task, NULL);
24378 /* make sure task runs first */
24379 #ifdef HAVE_THR_YIELD
24381 #elif defined( HAVE_SCHED_YIELD )
24383 #elif defined( HAVE_PTHREAD_YIELD )
24390 rm -f conftest$ac_exeext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392 (eval $ac_link) 2>&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397 (eval $ac_try) 2>&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); }; }; then
24401 ol_cv_pthread_select_yields=no
24403 echo "$as_me: program exited with status $ac_status" >&5
24404 echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24407 ( exit $ac_status )
24408 ol_cv_pthread_select_yields=yes
24410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24413 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24414 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24416 if test $ol_cv_pthread_select_yields = cross ; then
24417 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24418 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24419 { (exit 1); exit 1; }; }
24422 if test $ol_cv_pthread_select_yields = yes ; then
24423 ol_with_yielding_select=yes
24427 CPPFLAGS="$save_CPPFLAGS"
24430 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24431 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24432 { (exit 1); exit 1; }; }
24436 if test $ol_with_threads = posix ; then
24437 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24438 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24439 { (exit 1); exit 1; }; }
24444 case $ol_with_threads in auto | yes | mach)
24448 for ac_header in mach/cthreads.h cthreads.h
24450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24452 echo "$as_me:$LINENO: checking for $ac_header" >&5
24453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24455 echo $ECHO_N "(cached) $ECHO_C" >&6
24457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24460 # Is the header compilable?
24461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24463 cat >conftest.$ac_ext <<_ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469 $ac_includes_default
24470 #include <$ac_header>
24472 rm -f conftest.$ac_objext
24473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24474 (eval $ac_compile) 2>conftest.er1
24476 grep -v '^ *+' conftest.er1 >conftest.err
24478 cat conftest.err >&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } &&
24481 { ac_try='test -z "$ac_c_werror_flag"
24482 || test ! -s conftest.err'
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; } &&
24488 { ac_try='test -s conftest.$ac_objext'
24489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490 (eval $ac_try) 2>&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); }; }; then
24494 ac_header_compiler=yes
24496 echo "$as_me: failed program was:" >&5
24497 sed 's/^/| /' conftest.$ac_ext >&5
24499 ac_header_compiler=no
24501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24503 echo "${ECHO_T}$ac_header_compiler" >&6
24505 # Is the header present?
24506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24508 cat >conftest.$ac_ext <<_ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514 #include <$ac_header>
24516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24519 grep -v '^ *+' conftest.er1 >conftest.err
24521 cat conftest.err >&5
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); } >/dev/null; then
24524 if test -s conftest.err; then
24525 ac_cpp_err=$ac_c_preproc_warn_flag
24526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24533 if test -z "$ac_cpp_err"; then
24534 ac_header_preproc=yes
24536 echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24539 ac_header_preproc=no
24541 rm -f conftest.err conftest.$ac_ext
24542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24543 echo "${ECHO_T}$ac_header_preproc" >&6
24545 # So? What about this header?
24546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24552 ac_header_preproc=yes
24555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24569 ## --------------------------------------------- ##
24570 ## Report this to <http://www.openldap.org/its/> ##
24571 ## --------------------------------------------- ##
24574 sed "s/^/$as_me: WARNING: /" >&2
24577 echo "$as_me:$LINENO: checking for $ac_header" >&5
24578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24580 echo $ECHO_N "(cached) $ECHO_C" >&6
24582 eval "$as_ac_Header=\$ac_header_preproc"
24584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24589 cat >>confdefs.h <<_ACEOF
24590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24597 if test $ac_cv_header_mach_cthreads_h = yes ; then
24598 ol_with_threads=found
24600 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24601 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24602 if test "${ac_cv_func_cthread_fork+set}" = set; then
24603 echo $ECHO_N "(cached) $ECHO_C" >&6
24605 cat >conftest.$ac_ext <<_ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h. */
24611 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24613 #define cthread_fork innocuous_cthread_fork
24615 /* System header to define __stub macros and hopefully few prototypes,
24616 which can conflict with char cthread_fork (); below.
24617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24618 <limits.h> exists even on freestanding compilers. */
24621 # include <limits.h>
24623 # include <assert.h>
24626 #undef cthread_fork
24628 /* Override any gcc2 internal prototype to avoid an error. */
24633 /* We use char because int might match the return type of a gcc2
24634 builtin and then its argument prototype would still apply. */
24635 char cthread_fork ();
24636 /* The GNU C library defines this for functions which it implements
24637 to always fail with ENOSYS. Some functions are actually named
24638 something starting with __ and the normal name is an alias. */
24639 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24642 char (*f) () = cthread_fork;
24651 return f != cthread_fork;
24656 rm -f conftest.$ac_objext conftest$ac_exeext
24657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24658 (eval $ac_link) 2>conftest.er1
24660 grep -v '^ *+' conftest.er1 >conftest.err
24662 cat conftest.err >&5
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); } &&
24665 { ac_try='test -z "$ac_c_werror_flag"
24666 || test ! -s conftest.err'
24667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668 (eval $ac_try) 2>&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; } &&
24672 { ac_try='test -s conftest$ac_exeext'
24673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674 (eval $ac_try) 2>&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24678 ac_cv_func_cthread_fork=yes
24680 echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24683 ac_cv_func_cthread_fork=no
24685 rm -f conftest.err conftest.$ac_objext \
24686 conftest$ac_exeext conftest.$ac_ext
24688 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24689 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24690 if test $ac_cv_func_cthread_fork = yes; then
24691 ol_link_threads=yes
24695 if test $ol_link_threads = no ; then
24696 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24697 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24698 if test "${ol_cv_cthread_all_load+set}" = set; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
24703 LIBS="-all_load $LIBS"
24704 cat >conftest.$ac_ext <<_ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24710 #include <mach/cthreads.h>
24715 cthread_fork((void *)0, (void *)0);
24721 rm -f conftest.$ac_objext conftest$ac_exeext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723 (eval $ac_link) 2>conftest.er1
24725 grep -v '^ *+' conftest.er1 >conftest.err
24727 cat conftest.err >&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } &&
24730 { ac_try='test -z "$ac_c_werror_flag"
24731 || test ! -s conftest.err'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest$ac_exeext'
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 ol_cv_cthread_all_load=yes
24745 echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24748 ol_cv_cthread_all_load=no
24750 rm -f conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
24755 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24756 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24758 if test $ol_cv_cthread_all_load = yes ; then
24759 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24760 ol_link_threads=mach
24761 ol_with_threads=found
24765 elif test $ac_cv_header_cthreads_h = yes ; then
24767 ol_with_threads=found
24770 LIBS="$LIBS -lthreads"
24771 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24772 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24773 if test "${ac_cv_func_cthread_fork+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 cat >conftest.$ac_ext <<_ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h. */
24782 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24784 #define cthread_fork innocuous_cthread_fork
24786 /* System header to define __stub macros and hopefully few prototypes,
24787 which can conflict with char cthread_fork (); below.
24788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24789 <limits.h> exists even on freestanding compilers. */
24792 # include <limits.h>
24794 # include <assert.h>
24797 #undef cthread_fork
24799 /* Override any gcc2 internal prototype to avoid an error. */
24804 /* We use char because int might match the return type of a gcc2
24805 builtin and then its argument prototype would still apply. */
24806 char cthread_fork ();
24807 /* The GNU C library defines this for functions which it implements
24808 to always fail with ENOSYS. Some functions are actually named
24809 something starting with __ and the normal name is an alias. */
24810 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24813 char (*f) () = cthread_fork;
24822 return f != cthread_fork;
24827 rm -f conftest.$ac_objext conftest$ac_exeext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24829 (eval $ac_link) 2>conftest.er1
24831 grep -v '^ *+' conftest.er1 >conftest.err
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } &&
24836 { ac_try='test -z "$ac_c_werror_flag"
24837 || test ! -s conftest.err'
24838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839 (eval $ac_try) 2>&5
24841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); }; } &&
24843 { ac_try='test -s conftest$ac_exeext'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; }; then
24849 ac_cv_func_cthread_fork=yes
24851 echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24854 ac_cv_func_cthread_fork=no
24856 rm -f conftest.err conftest.$ac_objext \
24857 conftest$ac_exeext conftest.$ac_ext
24859 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24860 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24861 if test $ac_cv_func_cthread_fork = yes; then
24862 ol_link_threads=yes
24867 if test $ol_link_threads = yes ; then
24868 LTHREAD_LIBS="-lthreads"
24869 ol_link_threads=mach
24870 ol_with_threads=found
24872 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24873 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24874 { (exit 1); exit 1; }; }
24877 elif test $ol_with_threads = mach ; then
24878 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24879 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24880 { (exit 1); exit 1; }; }
24883 if test $ol_link_threads = mach ; then
24885 cat >>confdefs.h <<\_ACEOF
24886 #define HAVE_MACH_CTHREADS 1
24889 elif test $ol_with_threads = found ; then
24890 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24891 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24892 { (exit 1); exit 1; }; }
24897 case $ol_with_threads in auto | yes | pth)
24900 for ac_header in pth.h
24902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24904 echo "$as_me:$LINENO: checking for $ac_header" >&5
24905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24907 echo $ECHO_N "(cached) $ECHO_C" >&6
24909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24912 # Is the header compilable?
24913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24915 cat >conftest.$ac_ext <<_ACEOF
24918 cat confdefs.h >>conftest.$ac_ext
24919 cat >>conftest.$ac_ext <<_ACEOF
24920 /* end confdefs.h. */
24921 $ac_includes_default
24922 #include <$ac_header>
24924 rm -f conftest.$ac_objext
24925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24926 (eval $ac_compile) 2>conftest.er1
24928 grep -v '^ *+' conftest.er1 >conftest.err
24930 cat conftest.err >&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } &&
24933 { ac_try='test -z "$ac_c_werror_flag"
24934 || test ! -s conftest.err'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest.$ac_objext'
24941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942 (eval $ac_try) 2>&5
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; }; then
24946 ac_header_compiler=yes
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 ac_header_compiler=no
24953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24955 echo "${ECHO_T}$ac_header_compiler" >&6
24957 # Is the header present?
24958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24960 cat >conftest.$ac_ext <<_ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 #include <$ac_header>
24968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24971 grep -v '^ *+' conftest.er1 >conftest.err
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } >/dev/null; then
24976 if test -s conftest.err; then
24977 ac_cpp_err=$ac_c_preproc_warn_flag
24978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24985 if test -z "$ac_cpp_err"; then
24986 ac_header_preproc=yes
24988 echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24991 ac_header_preproc=no
24993 rm -f conftest.err conftest.$ac_ext
24994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24995 echo "${ECHO_T}$ac_header_preproc" >&6
24997 # So? What about this header?
24998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25004 ac_header_preproc=yes
25007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25021 ## --------------------------------------------- ##
25022 ## Report this to <http://www.openldap.org/its/> ##
25023 ## --------------------------------------------- ##
25026 sed "s/^/$as_me: WARNING: /" >&2
25029 echo "$as_me:$LINENO: checking for $ac_header" >&5
25030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25034 eval "$as_ac_Header=\$ac_header_preproc"
25036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25041 cat >>confdefs.h <<_ACEOF
25042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25050 if test $ac_cv_header_pth_h = yes ; then
25051 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25052 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25053 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25054 echo $ECHO_N "(cached) $ECHO_C" >&6
25056 ac_check_lib_save_LIBS=$LIBS
25058 cat >conftest.$ac_ext <<_ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h. */
25065 /* Override any gcc2 internal prototype to avoid an error. */
25069 /* We use char because int might match the return type of a gcc2
25070 builtin and then its argument prototype would still apply. */
25071 char pth_version ();
25080 rm -f conftest.$ac_objext conftest$ac_exeext
25081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25082 (eval $ac_link) 2>conftest.er1
25084 grep -v '^ *+' conftest.er1 >conftest.err
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
25089 { ac_try='test -z "$ac_c_werror_flag"
25090 || test ! -s conftest.err'
25091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092 (eval $ac_try) 2>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; } &&
25096 { ac_try='test -s conftest$ac_exeext'
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; }; then
25102 ac_cv_lib_pth_pth_version=yes
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25107 ac_cv_lib_pth_pth_version=no
25109 rm -f conftest.err conftest.$ac_objext \
25110 conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25113 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25114 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25115 if test $ac_cv_lib_pth_pth_version = yes; then
25122 if test $have_pth = yes ; then
25124 cat >>confdefs.h <<\_ACEOF
25125 #define HAVE_GNU_PTH 1
25128 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25129 ol_link_threads=pth
25130 ol_with_threads=found
25132 if test $ol_with_yielding_select = auto ; then
25133 ol_with_yielding_select=yes
25140 case $ol_with_threads in auto | yes | lwp)
25144 for ac_header in thread.h synch.h
25146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25148 echo "$as_me:$LINENO: checking for $ac_header" >&5
25149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25156 # Is the header compilable?
25157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25159 cat >conftest.$ac_ext <<_ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h. */
25165 $ac_includes_default
25166 #include <$ac_header>
25168 rm -f conftest.$ac_objext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25170 (eval $ac_compile) 2>conftest.er1
25172 grep -v '^ *+' conftest.er1 >conftest.err
25174 cat conftest.err >&5
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); } &&
25177 { ac_try='test -z "$ac_c_werror_flag"
25178 || test ! -s conftest.err'
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; } &&
25184 { ac_try='test -s conftest.$ac_objext'
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; }; then
25190 ac_header_compiler=yes
25192 echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25195 ac_header_compiler=no
25197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25198 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25199 echo "${ECHO_T}$ac_header_compiler" >&6
25201 # Is the header present?
25202 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25204 cat >conftest.$ac_ext <<_ACEOF
25207 cat confdefs.h >>conftest.$ac_ext
25208 cat >>conftest.$ac_ext <<_ACEOF
25209 /* end confdefs.h. */
25210 #include <$ac_header>
25212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25215 grep -v '^ *+' conftest.er1 >conftest.err
25217 cat conftest.err >&5
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } >/dev/null; then
25220 if test -s conftest.err; then
25221 ac_cpp_err=$ac_c_preproc_warn_flag
25222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25229 if test -z "$ac_cpp_err"; then
25230 ac_header_preproc=yes
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25235 ac_header_preproc=no
25237 rm -f conftest.err conftest.$ac_ext
25238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25239 echo "${ECHO_T}$ac_header_preproc" >&6
25241 # So? What about this header?
25242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25248 ac_header_preproc=yes
25251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25265 ## --------------------------------------------- ##
25266 ## Report this to <http://www.openldap.org/its/> ##
25267 ## --------------------------------------------- ##
25270 sed "s/^/$as_me: WARNING: /" >&2
25273 echo "$as_me:$LINENO: checking for $ac_header" >&5
25274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25276 echo $ECHO_N "(cached) $ECHO_C" >&6
25278 eval "$as_ac_Header=\$ac_header_preproc"
25280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25285 cat >>confdefs.h <<_ACEOF
25286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25293 if test $ac_cv_header_thread_h = yes &&
25294 test $ac_cv_header_synch_h = yes ; then
25295 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25296 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25297 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25300 ac_check_lib_save_LIBS=$LIBS
25301 LIBS="-lthread $LIBS"
25302 cat >conftest.$ac_ext <<_ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25309 /* Override any gcc2 internal prototype to avoid an error. */
25313 /* We use char because int might match the return type of a gcc2
25314 builtin and then its argument prototype would still apply. */
25315 char thr_create ();
25324 rm -f conftest.$ac_objext conftest$ac_exeext
25325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25326 (eval $ac_link) 2>conftest.er1
25328 grep -v '^ *+' conftest.er1 >conftest.err
25330 cat conftest.err >&5
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } &&
25333 { ac_try='test -z "$ac_c_werror_flag"
25334 || test ! -s conftest.err'
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; } &&
25340 { ac_try='test -s conftest$ac_exeext'
25341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25342 (eval $ac_try) 2>&5
25344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345 (exit $ac_status); }; }; then
25346 ac_cv_lib_thread_thr_create=yes
25348 echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25351 ac_cv_lib_thread_thr_create=no
25353 rm -f conftest.err conftest.$ac_objext \
25354 conftest$ac_exeext conftest.$ac_ext
25355 LIBS=$ac_check_lib_save_LIBS
25357 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25358 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25359 if test $ac_cv_lib_thread_thr_create = yes; then
25366 if test $have_thr = yes ; then
25368 cat >>confdefs.h <<\_ACEOF
25372 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25373 ol_link_threads=thr
25375 if test $ol_with_yielding_select = auto ; then
25376 ol_with_yielding_select=yes
25382 thr_setconcurrency \
25383 thr_getconcurrency \
25386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25387 echo "$as_me:$LINENO: checking for $ac_func" >&5
25388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25389 if eval "test \"\${$as_ac_var+set}\" = set"; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25392 cat >conftest.$ac_ext <<_ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h. */
25398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25400 #define $ac_func innocuous_$ac_func
25402 /* System header to define __stub macros and hopefully few prototypes,
25403 which can conflict with char $ac_func (); below.
25404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25405 <limits.h> exists even on freestanding compilers. */
25408 # include <limits.h>
25410 # include <assert.h>
25415 /* Override any gcc2 internal prototype to avoid an error. */
25420 /* We use char because int might match the return type of a gcc2
25421 builtin and then its argument prototype would still apply. */
25423 /* The GNU C library defines this for functions which it implements
25424 to always fail with ENOSYS. Some functions are actually named
25425 something starting with __ and the normal name is an alias. */
25426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25429 char (*f) () = $ac_func;
25438 return f != $ac_func;
25443 rm -f conftest.$ac_objext conftest$ac_exeext
25444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25445 (eval $ac_link) 2>conftest.er1
25447 grep -v '^ *+' conftest.er1 >conftest.err
25449 cat conftest.err >&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); } &&
25452 { ac_try='test -z "$ac_c_werror_flag"
25453 || test ! -s conftest.err'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; } &&
25459 { ac_try='test -s conftest$ac_exeext'
25460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461 (eval $ac_try) 2>&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; }; then
25465 eval "$as_ac_var=yes"
25467 echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25470 eval "$as_ac_var=no"
25472 rm -f conftest.err conftest.$ac_objext \
25473 conftest$ac_exeext conftest.$ac_ext
25475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25477 if test `eval echo '${'$as_ac_var'}'` = yes; then
25478 cat >>confdefs.h <<_ACEOF
25479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25489 for ac_header in lwp/lwp.h
25491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25493 echo "$as_me:$LINENO: checking for $ac_header" >&5
25494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25496 echo $ECHO_N "(cached) $ECHO_C" >&6
25498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25501 # Is the header compilable?
25502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25504 cat >conftest.$ac_ext <<_ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h. */
25510 $ac_includes_default
25511 #include <$ac_header>
25513 rm -f conftest.$ac_objext
25514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25515 (eval $ac_compile) 2>conftest.er1
25517 grep -v '^ *+' conftest.er1 >conftest.err
25519 cat conftest.err >&5
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); } &&
25522 { ac_try='test -z "$ac_c_werror_flag"
25523 || test ! -s conftest.err'
25524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25525 (eval $ac_try) 2>&5
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); }; } &&
25529 { ac_try='test -s conftest.$ac_objext'
25530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25531 (eval $ac_try) 2>&5
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); }; }; then
25535 ac_header_compiler=yes
25537 echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ac_header_compiler=no
25542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25544 echo "${ECHO_T}$ac_header_compiler" >&6
25546 # Is the header present?
25547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25549 cat >conftest.$ac_ext <<_ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25555 #include <$ac_header>
25557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25560 grep -v '^ *+' conftest.er1 >conftest.err
25562 cat conftest.err >&5
25563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564 (exit $ac_status); } >/dev/null; then
25565 if test -s conftest.err; then
25566 ac_cpp_err=$ac_c_preproc_warn_flag
25567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25574 if test -z "$ac_cpp_err"; then
25575 ac_header_preproc=yes
25577 echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25580 ac_header_preproc=no
25582 rm -f conftest.err conftest.$ac_ext
25583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25584 echo "${ECHO_T}$ac_header_preproc" >&6
25586 # So? What about this header?
25587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25593 ac_header_preproc=yes
25596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25610 ## --------------------------------------------- ##
25611 ## Report this to <http://www.openldap.org/its/> ##
25612 ## --------------------------------------------- ##
25615 sed "s/^/$as_me: WARNING: /" >&2
25618 echo "$as_me:$LINENO: checking for $ac_header" >&5
25619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25621 echo $ECHO_N "(cached) $ECHO_C" >&6
25623 eval "$as_ac_Header=\$ac_header_preproc"
25625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25630 cat >>confdefs.h <<_ACEOF
25631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25638 if test $ac_cv_header_lwp_lwp_h = yes ; then
25639 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25640 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25641 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25642 echo $ECHO_N "(cached) $ECHO_C" >&6
25644 ac_check_lib_save_LIBS=$LIBS
25646 cat >conftest.$ac_ext <<_ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h. */
25653 /* Override any gcc2 internal prototype to avoid an error. */
25657 /* We use char because int might match the return type of a gcc2
25658 builtin and then its argument prototype would still apply. */
25659 char lwp_create ();
25668 rm -f conftest.$ac_objext conftest$ac_exeext
25669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25670 (eval $ac_link) 2>conftest.er1
25672 grep -v '^ *+' conftest.er1 >conftest.err
25674 cat conftest.err >&5
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); } &&
25677 { ac_try='test -z "$ac_c_werror_flag"
25678 || test ! -s conftest.err'
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; } &&
25684 { ac_try='test -s conftest$ac_exeext'
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_cv_lib_lwp_lwp_create=yes
25692 echo "$as_me: failed program was:" >&5
25693 sed 's/^/| /' conftest.$ac_ext >&5
25695 ac_cv_lib_lwp_lwp_create=no
25697 rm -f conftest.err conftest.$ac_objext \
25698 conftest$ac_exeext conftest.$ac_ext
25699 LIBS=$ac_check_lib_save_LIBS
25701 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25702 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25703 if test $ac_cv_lib_lwp_lwp_create = yes; then
25710 if test $have_lwp = yes ; then
25712 cat >>confdefs.h <<\_ACEOF
25716 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25717 ol_link_threads=lwp
25719 if test $ol_with_yielding_select = auto ; then
25720 ol_with_yielding_select=no
25727 if test $ol_with_yielding_select = yes ; then
25729 cat >>confdefs.h <<\_ACEOF
25730 #define HAVE_YIELDING_SELECT 1
25735 if test $ol_with_threads = manual ; then
25736 ol_link_threads=yes
25738 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25739 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25743 for ac_header in pthread.h sched.h
25745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25747 echo "$as_me:$LINENO: checking for $ac_header" >&5
25748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25750 echo $ECHO_N "(cached) $ECHO_C" >&6
25752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25755 # Is the header compilable?
25756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25758 cat >conftest.$ac_ext <<_ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h. */
25764 $ac_includes_default
25765 #include <$ac_header>
25767 rm -f conftest.$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769 (eval $ac_compile) 2>conftest.er1
25771 grep -v '^ *+' conftest.er1 >conftest.err
25773 cat conftest.err >&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } &&
25776 { ac_try='test -z "$ac_c_werror_flag"
25777 || test ! -s conftest.err'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; } &&
25783 { ac_try='test -s conftest.$ac_objext'
25784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785 (eval $ac_try) 2>&5
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); }; }; then
25789 ac_header_compiler=yes
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25794 ac_header_compiler=no
25796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25798 echo "${ECHO_T}$ac_header_compiler" >&6
25800 # Is the header present?
25801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25803 cat >conftest.$ac_ext <<_ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25809 #include <$ac_header>
25811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25814 grep -v '^ *+' conftest.er1 >conftest.err
25816 cat conftest.err >&5
25817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); } >/dev/null; then
25819 if test -s conftest.err; then
25820 ac_cpp_err=$ac_c_preproc_warn_flag
25821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25828 if test -z "$ac_cpp_err"; then
25829 ac_header_preproc=yes
25831 echo "$as_me: failed program was:" >&5
25832 sed 's/^/| /' conftest.$ac_ext >&5
25834 ac_header_preproc=no
25836 rm -f conftest.err conftest.$ac_ext
25837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25838 echo "${ECHO_T}$ac_header_preproc" >&6
25840 # So? What about this header?
25841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25847 ac_header_preproc=yes
25850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25864 ## --------------------------------------------- ##
25865 ## Report this to <http://www.openldap.org/its/> ##
25866 ## --------------------------------------------- ##
25869 sed "s/^/$as_me: WARNING: /" >&2
25872 echo "$as_me:$LINENO: checking for $ac_header" >&5
25873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25877 eval "$as_ac_Header=\$ac_header_preproc"
25879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25884 cat >>confdefs.h <<_ACEOF
25885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25894 for ac_func in sched_yield pthread_yield
25896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25897 echo "$as_me:$LINENO: checking for $ac_func" >&5
25898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25899 if eval "test \"\${$as_ac_var+set}\" = set"; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 cat >conftest.$ac_ext <<_ACEOF
25905 cat confdefs.h >>conftest.$ac_ext
25906 cat >>conftest.$ac_ext <<_ACEOF
25907 /* end confdefs.h. */
25908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25910 #define $ac_func innocuous_$ac_func
25912 /* System header to define __stub macros and hopefully few prototypes,
25913 which can conflict with char $ac_func (); below.
25914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25915 <limits.h> exists even on freestanding compilers. */
25918 # include <limits.h>
25920 # include <assert.h>
25925 /* Override any gcc2 internal prototype to avoid an error. */
25930 /* We use char because int might match the return type of a gcc2
25931 builtin and then its argument prototype would still apply. */
25933 /* The GNU C library defines this for functions which it implements
25934 to always fail with ENOSYS. Some functions are actually named
25935 something starting with __ and the normal name is an alias. */
25936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25939 char (*f) () = $ac_func;
25948 return f != $ac_func;
25953 rm -f conftest.$ac_objext conftest$ac_exeext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25955 (eval $ac_link) 2>conftest.er1
25957 grep -v '^ *+' conftest.er1 >conftest.err
25959 cat conftest.err >&5
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); } &&
25962 { ac_try='test -z "$ac_c_werror_flag"
25963 || test ! -s conftest.err'
25964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); }; } &&
25969 { ac_try='test -s conftest$ac_exeext'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 eval "$as_ac_var=yes"
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 eval "$as_ac_var=no"
25982 rm -f conftest.err conftest.$ac_objext \
25983 conftest$ac_exeext conftest.$ac_ext
25985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25987 if test `eval echo '${'$as_ac_var'}'` = yes; then
25988 cat >>confdefs.h <<_ACEOF
25989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25996 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25997 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25998 if test "${ol_cv_header_linux_threads+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26001 cat >conftest.$ac_ext <<_ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h. */
26007 #include <pthread.h>
26009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26010 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26011 ol_cv_header_linux_threads=yes
26013 ol_cv_header_linux_threads=no
26019 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26020 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26021 if test $ol_cv_header_linux_threads = yes; then
26023 cat >>confdefs.h <<\_ACEOF
26024 #define HAVE_LINUX_THREADS 1
26031 for ac_header in mach/cthreads.h
26033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26035 echo "$as_me:$LINENO: checking for $ac_header" >&5
26036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26038 echo $ECHO_N "(cached) $ECHO_C" >&6
26040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26043 # Is the header compilable?
26044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26046 cat >conftest.$ac_ext <<_ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h. */
26052 $ac_includes_default
26053 #include <$ac_header>
26055 rm -f conftest.$ac_objext
26056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26057 (eval $ac_compile) 2>conftest.er1
26059 grep -v '^ *+' conftest.er1 >conftest.err
26061 cat conftest.err >&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } &&
26064 { ac_try='test -z "$ac_c_werror_flag"
26065 || test ! -s conftest.err'
26066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067 (eval $ac_try) 2>&5
26069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070 (exit $ac_status); }; } &&
26071 { ac_try='test -s conftest.$ac_objext'
26072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26073 (eval $ac_try) 2>&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); }; }; then
26077 ac_header_compiler=yes
26079 echo "$as_me: failed program was:" >&5
26080 sed 's/^/| /' conftest.$ac_ext >&5
26082 ac_header_compiler=no
26084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26086 echo "${ECHO_T}$ac_header_compiler" >&6
26088 # Is the header present?
26089 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26091 cat >conftest.$ac_ext <<_ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 #include <$ac_header>
26099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26102 grep -v '^ *+' conftest.er1 >conftest.err
26104 cat conftest.err >&5
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); } >/dev/null; then
26107 if test -s conftest.err; then
26108 ac_cpp_err=$ac_c_preproc_warn_flag
26109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26116 if test -z "$ac_cpp_err"; then
26117 ac_header_preproc=yes
26119 echo "$as_me: failed program was:" >&5
26120 sed 's/^/| /' conftest.$ac_ext >&5
26122 ac_header_preproc=no
26124 rm -f conftest.err conftest.$ac_ext
26125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26126 echo "${ECHO_T}$ac_header_preproc" >&6
26128 # So? What about this header?
26129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26135 ac_header_preproc=yes
26138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26152 ## --------------------------------------------- ##
26153 ## Report this to <http://www.openldap.org/its/> ##
26154 ## --------------------------------------------- ##
26157 sed "s/^/$as_me: WARNING: /" >&2
26160 echo "$as_me:$LINENO: checking for $ac_header" >&5
26161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26163 echo $ECHO_N "(cached) $ECHO_C" >&6
26165 eval "$as_ac_Header=\$ac_header_preproc"
26167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26172 cat >>confdefs.h <<_ACEOF
26173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26181 for ac_header in lwp/lwp.h
26183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26185 echo "$as_me:$LINENO: checking for $ac_header" >&5
26186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26191 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26193 # Is the header compilable?
26194 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26196 cat >conftest.$ac_ext <<_ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h. */
26202 $ac_includes_default
26203 #include <$ac_header>
26205 rm -f conftest.$ac_objext
26206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26207 (eval $ac_compile) 2>conftest.er1
26209 grep -v '^ *+' conftest.er1 >conftest.err
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } &&
26214 { ac_try='test -z "$ac_c_werror_flag"
26215 || test ! -s conftest.err'
26216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217 (eval $ac_try) 2>&5
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; } &&
26221 { ac_try='test -s conftest.$ac_objext'
26222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223 (eval $ac_try) 2>&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; }; then
26227 ac_header_compiler=yes
26229 echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26232 ac_header_compiler=no
26234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26235 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26236 echo "${ECHO_T}$ac_header_compiler" >&6
26238 # Is the header present?
26239 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26241 cat >conftest.$ac_ext <<_ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26247 #include <$ac_header>
26249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26252 grep -v '^ *+' conftest.er1 >conftest.err
26254 cat conftest.err >&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); } >/dev/null; then
26257 if test -s conftest.err; then
26258 ac_cpp_err=$ac_c_preproc_warn_flag
26259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26266 if test -z "$ac_cpp_err"; then
26267 ac_header_preproc=yes
26269 echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26272 ac_header_preproc=no
26274 rm -f conftest.err conftest.$ac_ext
26275 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26276 echo "${ECHO_T}$ac_header_preproc" >&6
26278 # So? What about this header?
26279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26285 ac_header_preproc=yes
26288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26302 ## --------------------------------------------- ##
26303 ## Report this to <http://www.openldap.org/its/> ##
26304 ## --------------------------------------------- ##
26307 sed "s/^/$as_me: WARNING: /" >&2
26310 echo "$as_me:$LINENO: checking for $ac_header" >&5
26311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26313 echo $ECHO_N "(cached) $ECHO_C" >&6
26315 eval "$as_ac_Header=\$ac_header_preproc"
26317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26322 cat >>confdefs.h <<_ACEOF
26323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26332 for ac_header in thread.h synch.h
26334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26336 echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26344 # Is the header compilable?
26345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26347 cat >conftest.$ac_ext <<_ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h. */
26353 $ac_includes_default
26354 #include <$ac_header>
26356 rm -f conftest.$ac_objext
26357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26358 (eval $ac_compile) 2>conftest.er1
26360 grep -v '^ *+' conftest.er1 >conftest.err
26362 cat conftest.err >&5
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); } &&
26365 { ac_try='test -z "$ac_c_werror_flag"
26366 || test ! -s conftest.err'
26367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26368 (eval $ac_try) 2>&5
26370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); }; } &&
26372 { ac_try='test -s conftest.$ac_objext'
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; }; then
26378 ac_header_compiler=yes
26380 echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26383 ac_header_compiler=no
26385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26387 echo "${ECHO_T}$ac_header_compiler" >&6
26389 # Is the header present?
26390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26392 cat >conftest.$ac_ext <<_ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h. */
26398 #include <$ac_header>
26400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26403 grep -v '^ *+' conftest.er1 >conftest.err
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } >/dev/null; then
26408 if test -s conftest.err; then
26409 ac_cpp_err=$ac_c_preproc_warn_flag
26410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26417 if test -z "$ac_cpp_err"; then
26418 ac_header_preproc=yes
26420 echo "$as_me: failed program was:" >&5
26421 sed 's/^/| /' conftest.$ac_ext >&5
26423 ac_header_preproc=no
26425 rm -f conftest.err conftest.$ac_ext
26426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26427 echo "${ECHO_T}$ac_header_preproc" >&6
26429 # So? What about this header?
26430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26436 ac_header_preproc=yes
26439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26453 ## --------------------------------------------- ##
26454 ## Report this to <http://www.openldap.org/its/> ##
26455 ## --------------------------------------------- ##
26458 sed "s/^/$as_me: WARNING: /" >&2
26461 echo "$as_me:$LINENO: checking for $ac_header" >&5
26462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26464 echo $ECHO_N "(cached) $ECHO_C" >&6
26466 eval "$as_ac_Header=\$ac_header_preproc"
26468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26473 cat >>confdefs.h <<_ACEOF
26474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26483 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26484 cat >>confdefs.h <<\_ACEOF
26485 #define REENTRANT 1
26488 cat >>confdefs.h <<\_ACEOF
26489 #define _REENTRANT 1
26492 cat >>confdefs.h <<\_ACEOF
26493 #define THREAD_SAFE 1
26496 cat >>confdefs.h <<\_ACEOF
26497 #define _THREAD_SAFE 1
26500 cat >>confdefs.h <<\_ACEOF
26501 #define THREADSAFE 1
26504 cat >>confdefs.h <<\_ACEOF
26505 #define _THREADSAFE 1
26508 cat >>confdefs.h <<\_ACEOF
26509 #define _SGI_MP_SOURCE 1
26513 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26514 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26515 if test "${ol_cv_errno_thread_specific+set}" = set; then
26516 echo $ECHO_N "(cached) $ECHO_C" >&6
26519 cat >conftest.$ac_ext <<_ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26534 rm -f conftest.$ac_objext conftest$ac_exeext
26535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26536 (eval $ac_link) 2>conftest.er1
26538 grep -v '^ *+' conftest.er1 >conftest.err
26540 cat conftest.err >&5
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); } &&
26543 { ac_try='test -z "$ac_c_werror_flag"
26544 || test ! -s conftest.err'
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; } &&
26550 { ac_try='test -s conftest$ac_exeext'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; }; then
26556 ol_cv_errno_thread_specific=yes
26558 echo "$as_me: failed program was:" >&5
26559 sed 's/^/| /' conftest.$ac_ext >&5
26561 ol_cv_errno_thread_specific=no
26563 rm -f conftest.err conftest.$ac_objext \
26564 conftest$ac_exeext conftest.$ac_ext
26567 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26568 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26570 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26571 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26572 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26573 echo $ECHO_N "(cached) $ECHO_C" >&6
26576 cat >conftest.$ac_ext <<_ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h. */
26591 rm -f conftest.$ac_objext conftest$ac_exeext
26592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26593 (eval $ac_link) 2>conftest.er1
26595 grep -v '^ *+' conftest.er1 >conftest.err
26597 cat conftest.err >&5
26598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599 (exit $ac_status); } &&
26600 { ac_try='test -z "$ac_c_werror_flag"
26601 || test ! -s conftest.err'
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; } &&
26607 { ac_try='test -s conftest$ac_exeext'
26608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609 (eval $ac_try) 2>&5
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); }; }; then
26613 ol_cv_h_errno_thread_specific=yes
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 ol_cv_h_errno_thread_specific=no
26620 rm -f conftest.err conftest.$ac_objext \
26621 conftest$ac_exeext conftest.$ac_ext
26624 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26625 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26627 if test $ol_cv_errno_thread_specific != yes ||
26628 test $ol_cv_h_errno_thread_specific != yes ; then
26629 LIBS="$LTHREAD_LIBS $LIBS"
26635 if test $ol_link_threads = no ; then
26636 if test $ol_with_threads = yes ; then
26637 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26638 echo "$as_me: error: no suitable thread support" >&2;}
26639 { (exit 1); exit 1; }; }
26642 if test $ol_with_threads = auto ; then
26643 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26644 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26649 cat >>confdefs.h <<\_ACEOF
26650 #define NO_THREADS 1
26659 if test $ol_link_threads != no ; then
26661 cat >>confdefs.h <<\_ACEOF
26662 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26672 gethostbyname_r gethostbyaddr_r \
26675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26676 echo "$as_me:$LINENO: checking for $ac_func" >&5
26677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26678 if eval "test \"\${$as_ac_var+set}\" = set"; then
26679 echo $ECHO_N "(cached) $ECHO_C" >&6
26681 cat >conftest.$ac_ext <<_ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26689 #define $ac_func innocuous_$ac_func
26691 /* System header to define __stub macros and hopefully few prototypes,
26692 which can conflict with char $ac_func (); below.
26693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26694 <limits.h> exists even on freestanding compilers. */
26697 # include <limits.h>
26699 # include <assert.h>
26704 /* Override any gcc2 internal prototype to avoid an error. */
26709 /* We use char because int might match the return type of a gcc2
26710 builtin and then its argument prototype would still apply. */
26712 /* The GNU C library defines this for functions which it implements
26713 to always fail with ENOSYS. Some functions are actually named
26714 something starting with __ and the normal name is an alias. */
26715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26718 char (*f) () = $ac_func;
26727 return f != $ac_func;
26732 rm -f conftest.$ac_objext conftest$ac_exeext
26733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26734 (eval $ac_link) 2>conftest.er1
26736 grep -v '^ *+' conftest.er1 >conftest.err
26738 cat conftest.err >&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } &&
26741 { ac_try='test -z "$ac_c_werror_flag"
26742 || test ! -s conftest.err'
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; } &&
26748 { ac_try='test -s conftest$ac_exeext'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754 eval "$as_ac_var=yes"
26756 echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26759 eval "$as_ac_var=no"
26761 rm -f conftest.err conftest.$ac_objext \
26762 conftest$ac_exeext conftest.$ac_ext
26764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26766 if test `eval echo '${'$as_ac_var'}'` = yes; then
26767 cat >>confdefs.h <<_ACEOF
26768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26775 if test "$ac_cv_func_ctime_r" = no ; then
26776 ol_cv_func_ctime_r_nargs=0
26778 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26779 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26780 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26783 cat >conftest.$ac_ext <<_ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h. */
26793 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26798 rm -f conftest.$ac_objext
26799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26800 (eval $ac_compile) 2>conftest.er1
26802 grep -v '^ *+' conftest.er1 >conftest.err
26804 cat conftest.err >&5
26805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806 (exit $ac_status); } &&
26807 { ac_try='test -z "$ac_c_werror_flag"
26808 || test ! -s conftest.err'
26809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810 (eval $ac_try) 2>&5
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; } &&
26814 { ac_try='test -s conftest.$ac_objext'
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; }; then
26820 ol_cv_func_ctime_r_nargs3=yes
26822 echo "$as_me: failed program was:" >&5
26823 sed 's/^/| /' conftest.$ac_ext >&5
26825 ol_cv_func_ctime_r_nargs3=no
26827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26829 cat >conftest.$ac_ext <<_ACEOF
26832 cat confdefs.h >>conftest.$ac_ext
26833 cat >>conftest.$ac_ext <<_ACEOF
26834 /* end confdefs.h. */
26839 time_t ti; char *buffer; ctime_r(&ti,buffer);
26844 rm -f conftest.$ac_objext
26845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26846 (eval $ac_compile) 2>conftest.er1
26848 grep -v '^ *+' conftest.er1 >conftest.err
26850 cat conftest.err >&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); } &&
26853 { ac_try='test -z "$ac_c_werror_flag"
26854 || test ! -s conftest.err'
26855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26856 (eval $ac_try) 2>&5
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); }; } &&
26860 { ac_try='test -s conftest.$ac_objext'
26861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862 (eval $ac_try) 2>&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; }; then
26866 ol_cv_func_ctime_r_nargs2=yes
26868 echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26871 ol_cv_func_ctime_r_nargs2=no
26873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26875 if test $ol_cv_func_ctime_r_nargs3 = yes &&
26876 test $ol_cv_func_ctime_r_nargs2 = no ; then
26878 ol_cv_func_ctime_r_nargs=3
26880 elif test $ol_cv_func_ctime_r_nargs3 = no &&
26881 test $ol_cv_func_ctime_r_nargs2 = yes ; then
26883 ol_cv_func_ctime_r_nargs=2
26886 ol_cv_func_ctime_r_nargs=0
26890 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26891 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26893 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26895 cat >>confdefs.h <<_ACEOF
26896 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26903 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26904 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26905 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26906 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26907 echo $ECHO_N "(cached) $ECHO_C" >&6
26909 cat >conftest.$ac_ext <<_ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h. */
26915 #include <sys/types.h>
26916 #include <sys/socket.h>
26917 #include <netinet/in.h>
26919 #define BUFSIZE (sizeof(struct hostent)+10)
26923 struct hostent hent; char buffer[BUFSIZE];
26924 int bufsize=BUFSIZE;int h_errno;
26925 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26926 buffer, bufsize, &h_errno);
26931 rm -f conftest.$ac_objext
26932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26933 (eval $ac_compile) 2>conftest.er1
26935 grep -v '^ *+' conftest.er1 >conftest.err
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
26940 { ac_try='test -z "$ac_c_werror_flag"
26941 || test ! -s conftest.err'
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; } &&
26947 { ac_try='test -s conftest.$ac_objext'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }; then
26953 ol_cv_func_gethostbyname_r_nargs5=yes
26955 echo "$as_me: failed program was:" >&5
26956 sed 's/^/| /' conftest.$ac_ext >&5
26958 ol_cv_func_gethostbyname_r_nargs5=no
26960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26962 cat >conftest.$ac_ext <<_ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h. */
26968 #include <sys/types.h>
26969 #include <sys/socket.h>
26970 #include <netinet/in.h>
26972 #define BUFSIZE (sizeof(struct hostent)+10)
26976 struct hostent hent;struct hostent *rhent;
26977 char buffer[BUFSIZE];
26978 int bufsize=BUFSIZE;int h_errno;
26979 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26985 rm -f conftest.$ac_objext
26986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26987 (eval $ac_compile) 2>conftest.er1
26989 grep -v '^ *+' conftest.er1 >conftest.err
26991 cat conftest.err >&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } &&
26994 { ac_try='test -z "$ac_c_werror_flag"
26995 || test ! -s conftest.err'
26996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997 (eval $ac_try) 2>&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; } &&
27001 { ac_try='test -s conftest.$ac_objext'
27002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003 (eval $ac_try) 2>&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); }; }; then
27007 ol_cv_func_gethostbyname_r_nargs6=yes
27009 echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.$ac_ext >&5
27012 ol_cv_func_gethostbyname_r_nargs6=no
27014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27016 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27017 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27019 ol_cv_func_gethostbyname_r_nargs=5
27021 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27022 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27024 ol_cv_func_gethostbyname_r_nargs=6
27027 ol_cv_func_gethostbyname_r_nargs=0
27031 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27032 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27033 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27035 cat >>confdefs.h <<_ACEOF
27036 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27042 ol_cv_func_gethostbyname_r_nargs=0
27045 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27046 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27047 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27048 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27049 echo $ECHO_N "(cached) $ECHO_C" >&6
27051 cat >conftest.$ac_ext <<_ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h. */
27057 #include <sys/types.h>
27058 #include <sys/socket.h>
27059 #include <netinet/in.h>
27061 #define BUFSIZE (sizeof(struct hostent)+10)
27065 struct hostent hent; char buffer[BUFSIZE];
27066 struct in_addr add;
27067 size_t alen=sizeof(struct in_addr);
27068 int bufsize=BUFSIZE;int h_errno;
27069 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27070 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27075 rm -f conftest.$ac_objext
27076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27077 (eval $ac_compile) 2>conftest.er1
27079 grep -v '^ *+' conftest.er1 >conftest.err
27081 cat conftest.err >&5
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); } &&
27084 { ac_try='test -z "$ac_c_werror_flag"
27085 || test ! -s conftest.err'
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; } &&
27091 { ac_try='test -s conftest.$ac_objext'
27092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27093 (eval $ac_try) 2>&5
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; }; then
27097 ol_cv_func_gethostbyaddr_r_nargs7=yes
27099 echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27102 ol_cv_func_gethostbyaddr_r_nargs7=no
27104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27106 cat >conftest.$ac_ext <<_ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27112 #include <sys/types.h>
27113 #include <sys/socket.h>
27114 #include <netinet/in.h>
27116 #define BUFSIZE (sizeof(struct hostent)+10)
27120 struct hostent hent;
27121 struct hostent *rhent; char buffer[BUFSIZE];
27122 struct in_addr add;
27123 size_t alen=sizeof(struct in_addr);
27124 int bufsize=BUFSIZE;int h_errno;
27125 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27126 alen, AF_INET, &hent, buffer, bufsize,
27132 rm -f conftest.$ac_objext
27133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27134 (eval $ac_compile) 2>conftest.er1
27136 grep -v '^ *+' conftest.er1 >conftest.err
27138 cat conftest.err >&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); } &&
27141 { ac_try='test -z "$ac_c_werror_flag"
27142 || test ! -s conftest.err'
27143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144 (eval $ac_try) 2>&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; } &&
27148 { ac_try='test -s conftest.$ac_objext'
27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150 (eval $ac_try) 2>&5
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); }; }; then
27154 ol_cv_func_gethostbyaddr_r_nargs8=yes
27156 echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27159 ol_cv_func_gethostbyaddr_r_nargs8=no
27161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27163 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27164 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27166 ol_cv_func_gethostbyaddr_r_nargs=7
27168 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27169 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27171 ol_cv_func_gethostbyaddr_r_nargs=8
27174 ol_cv_func_gethostbyaddr_r_nargs=0
27178 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27179 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27180 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27182 cat >>confdefs.h <<_ACEOF
27183 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27189 ol_cv_func_gethostbyaddr_r_nargs=0
27194 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27195 ol_cv_berkeley_db=no
27197 for ac_header in db.h
27199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27201 echo "$as_me:$LINENO: checking for $ac_header" >&5
27202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27209 # Is the header compilable?
27210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27212 cat >conftest.$ac_ext <<_ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27218 $ac_includes_default
27219 #include <$ac_header>
27221 rm -f conftest.$ac_objext
27222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27223 (eval $ac_compile) 2>conftest.er1
27225 grep -v '^ *+' conftest.er1 >conftest.err
27227 cat conftest.err >&5
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); } &&
27230 { ac_try='test -z "$ac_c_werror_flag"
27231 || test ! -s conftest.err'
27232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233 (eval $ac_try) 2>&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; } &&
27237 { ac_try='test -s conftest.$ac_objext'
27238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239 (eval $ac_try) 2>&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; }; then
27243 ac_header_compiler=yes
27245 echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.$ac_ext >&5
27248 ac_header_compiler=no
27250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27252 echo "${ECHO_T}$ac_header_compiler" >&6
27254 # Is the header present?
27255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27257 cat >conftest.$ac_ext <<_ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h. */
27263 #include <$ac_header>
27265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27268 grep -v '^ *+' conftest.er1 >conftest.err
27270 cat conftest.err >&5
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); } >/dev/null; then
27273 if test -s conftest.err; then
27274 ac_cpp_err=$ac_c_preproc_warn_flag
27275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27282 if test -z "$ac_cpp_err"; then
27283 ac_header_preproc=yes
27285 echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27288 ac_header_preproc=no
27290 rm -f conftest.err conftest.$ac_ext
27291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27292 echo "${ECHO_T}$ac_header_preproc" >&6
27294 # So? What about this header?
27295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27301 ac_header_preproc=yes
27304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27318 ## --------------------------------------------- ##
27319 ## Report this to <http://www.openldap.org/its/> ##
27320 ## --------------------------------------------- ##
27323 sed "s/^/$as_me: WARNING: /" >&2
27326 echo "$as_me:$LINENO: checking for $ac_header" >&5
27327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27329 echo $ECHO_N "(cached) $ECHO_C" >&6
27331 eval "$as_ac_Header=\$ac_header_preproc"
27333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27338 cat >>confdefs.h <<_ACEOF
27339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27346 if test $ac_cv_header_db_h = yes; then
27349 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27350 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27351 if test "${ol_cv_bdb_major+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27356 if test $ol_cv_bdb_major = 0 ; then
27357 cat >conftest.$ac_ext <<_ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h. */
27365 #ifndef DB_VERSION_MAJOR
27366 # define DB_VERSION_MAJOR 1
27368 #if DB_VERSION_MAJOR == 4
27373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27374 $EGREP "__db_version" >/dev/null 2>&1; then
27382 if test $ol_cv_bdb_major = 0 ; then
27383 cat >conftest.$ac_ext <<_ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h. */
27391 #ifndef DB_VERSION_MAJOR
27392 # define DB_VERSION_MAJOR 1
27394 #if DB_VERSION_MAJOR == 3
27399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27400 $EGREP "__db_version" >/dev/null 2>&1; then
27408 if test $ol_cv_bdb_major = 0 ; then
27409 cat >conftest.$ac_ext <<_ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27417 #ifndef DB_VERSION_MAJOR
27418 # define DB_VERSION_MAJOR 1
27420 #if DB_VERSION_MAJOR == 2
27425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27426 $EGREP "__db_version" >/dev/null 2>&1; then
27434 if test $ol_cv_bdb_major = 0 ; then
27435 cat >conftest.$ac_ext <<_ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27443 #ifndef DB_VERSION_MAJOR
27444 # define DB_VERSION_MAJOR 1
27446 #if DB_VERSION_MAJOR == 1
27451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27452 $EGREP "__db_version" >/dev/null 2>&1; then
27461 if test $ol_cv_bdb_major = 0 ; then
27462 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27463 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27464 { (exit 1); exit 1; }; }
27468 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27469 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27471 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27472 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27473 if test "${ol_cv_bdb_minor+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27478 if test $ol_cv_bdb_minor = 0 ; then
27479 cat >conftest.$ac_ext <<_ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h. */
27487 #ifndef DB_VERSION_MINOR
27488 # define DB_VERSION_MINOR 0
27490 #if DB_VERSION_MINOR == 9
27495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27496 $EGREP "__db_version" >/dev/null 2>&1; then
27504 if test $ol_cv_bdb_minor = 0 ; then
27505 cat >conftest.$ac_ext <<_ACEOF
27508 cat confdefs.h >>conftest.$ac_ext
27509 cat >>conftest.$ac_ext <<_ACEOF
27510 /* end confdefs.h. */
27513 #ifndef DB_VERSION_MINOR
27514 # define DB_VERSION_MINOR 0
27516 #if DB_VERSION_MINOR == 8
27521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27522 $EGREP "__db_version" >/dev/null 2>&1; then
27530 if test $ol_cv_bdb_minor = 0 ; then
27531 cat >conftest.$ac_ext <<_ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27539 #ifndef DB_VERSION_MINOR
27540 # define DB_VERSION_MINOR 0
27542 #if DB_VERSION_MINOR == 7
27547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27548 $EGREP "__db_version" >/dev/null 2>&1; then
27556 if test $ol_cv_bdb_minor = 0 ; then
27557 cat >conftest.$ac_ext <<_ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h. */
27565 #ifndef DB_VERSION_MINOR
27566 # define DB_VERSION_MINOR 0
27568 #if DB_VERSION_MINOR == 6
27573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27574 $EGREP "__db_version" >/dev/null 2>&1; then
27582 if test $ol_cv_bdb_minor = 0 ; then
27583 cat >conftest.$ac_ext <<_ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h. */
27591 #ifndef DB_VERSION_MINOR
27592 # define DB_VERSION_MINOR 0
27594 #if DB_VERSION_MINOR == 5
27599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27600 $EGREP "__db_version" >/dev/null 2>&1; then
27608 if test $ol_cv_bdb_minor = 0 ; then
27609 cat >conftest.$ac_ext <<_ACEOF
27612 cat confdefs.h >>conftest.$ac_ext
27613 cat >>conftest.$ac_ext <<_ACEOF
27614 /* end confdefs.h. */
27617 #ifndef DB_VERSION_MINOR
27618 # define DB_VERSION_MINOR 0
27620 #if DB_VERSION_MINOR == 4
27625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27626 $EGREP "__db_version" >/dev/null 2>&1; then
27634 if test $ol_cv_bdb_minor = 0 ; then
27635 cat >conftest.$ac_ext <<_ACEOF
27638 cat confdefs.h >>conftest.$ac_ext
27639 cat >>conftest.$ac_ext <<_ACEOF
27640 /* end confdefs.h. */
27643 #ifndef DB_VERSION_MINOR
27644 # define DB_VERSION_MINOR 0
27646 #if DB_VERSION_MINOR == 3
27651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27652 $EGREP "__db_version" >/dev/null 2>&1; then
27660 if test $ol_cv_bdb_minor = 0 ; then
27661 cat >conftest.$ac_ext <<_ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h. */
27669 #ifndef DB_VERSION_MINOR
27670 # define DB_VERSION_MINOR 0
27672 #if DB_VERSION_MINOR == 2
27677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27678 $EGREP "__db_version" >/dev/null 2>&1; then
27686 if test $ol_cv_bdb_minor = 0 ; then
27687 cat >conftest.$ac_ext <<_ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h. */
27695 #ifndef DB_VERSION_MINOR
27696 # define DB_VERSION_MINOR 0
27698 #if DB_VERSION_MINOR == 1
27703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27704 $EGREP "__db_version" >/dev/null 2>&1; then
27714 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27715 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27717 if test $ol_cv_bdb_major = 4 ; then
27718 if test $ol_cv_bdb_minor = 5 ; then
27719 if test $ol_cv_lib_db = no ; then
27720 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
27721 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
27722 if test "${ol_cv_db_db45+set}" = set; then
27723 echo $ECHO_N "(cached) $ECHO_C" >&6
27728 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27730 cat >conftest.$ac_ext <<_ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h. */
27737 #ifdef HAVE_DB_185_H
27738 # include <db_185.h>
27743 #ifndef DB_VERSION_MAJOR
27744 # define DB_VERSION_MAJOR 1
27748 #define NULL ((void*)0)
27755 #if DB_VERSION_MAJOR > 1
27758 int major, minor, patch;
27760 version = db_version( &major, &minor, &patch );
27762 if( major != DB_VERSION_MAJOR ||
27763 minor < DB_VERSION_MINOR )
27765 printf("Berkeley DB version mismatch\n"
27766 "\theader: %s\n\tlibrary: %s\n",
27767 DB_VERSION_STRING, version);
27773 #if DB_VERSION_MAJOR > 2
27774 db_env_create( NULL, 0 );
27775 #elif DB_VERSION_MAJOR > 1
27776 db_appexit( NULL );
27778 (void) dbopen( NULL, 0, 0, 0, NULL);
27785 rm -f conftest.$ac_objext conftest$ac_exeext
27786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27787 (eval $ac_link) 2>conftest.er1
27789 grep -v '^ *+' conftest.er1 >conftest.err
27791 cat conftest.err >&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); } &&
27794 { ac_try='test -z "$ac_c_werror_flag"
27795 || test ! -s conftest.err'
27796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797 (eval $ac_try) 2>&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
27802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803 (eval $ac_try) 2>&5
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; }; then
27809 echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27814 rm -f conftest.err conftest.$ac_objext \
27815 conftest$ac_exeext conftest.$ac_ext
27820 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
27821 echo "${ECHO_T}$ol_cv_db_db45" >&6
27823 if test $ol_cv_db_db45 = yes ; then
27824 ol_cv_lib_db=-ldb45
27828 if test $ol_cv_lib_db = no ; then
27829 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
27830 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
27831 if test "${ol_cv_db_db_45+set}" = set; then
27832 echo $ECHO_N "(cached) $ECHO_C" >&6
27837 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27839 cat >conftest.$ac_ext <<_ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h. */
27846 #ifdef HAVE_DB_185_H
27847 # include <db_185.h>
27852 #ifndef DB_VERSION_MAJOR
27853 # define DB_VERSION_MAJOR 1
27857 #define NULL ((void*)0)
27864 #if DB_VERSION_MAJOR > 1
27867 int major, minor, patch;
27869 version = db_version( &major, &minor, &patch );
27871 if( major != DB_VERSION_MAJOR ||
27872 minor < DB_VERSION_MINOR )
27874 printf("Berkeley DB version mismatch\n"
27875 "\theader: %s\n\tlibrary: %s\n",
27876 DB_VERSION_STRING, version);
27882 #if DB_VERSION_MAJOR > 2
27883 db_env_create( NULL, 0 );
27884 #elif DB_VERSION_MAJOR > 1
27885 db_appexit( NULL );
27887 (void) dbopen( NULL, 0, 0, 0, NULL);
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27896 (eval $ac_link) 2>conftest.er1
27898 grep -v '^ *+' conftest.er1 >conftest.err
27900 cat conftest.err >&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } &&
27903 { ac_try='test -z "$ac_c_werror_flag"
27904 || test ! -s conftest.err'
27905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27906 (eval $ac_try) 2>&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); }; } &&
27910 { ac_try='test -s conftest$ac_exeext'
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; }; then
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27923 rm -f conftest.err conftest.$ac_objext \
27924 conftest$ac_exeext conftest.$ac_ext
27929 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
27930 echo "${ECHO_T}$ol_cv_db_db_45" >&6
27932 if test $ol_cv_db_db_45 = yes ; then
27933 ol_cv_lib_db=-ldb-45
27937 if test $ol_cv_lib_db = no ; then
27938 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
27939 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
27940 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
27941 echo $ECHO_N "(cached) $ECHO_C" >&6
27946 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27948 cat >conftest.$ac_ext <<_ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h. */
27955 #ifdef HAVE_DB_185_H
27956 # include <db_185.h>
27961 #ifndef DB_VERSION_MAJOR
27962 # define DB_VERSION_MAJOR 1
27966 #define NULL ((void*)0)
27973 #if DB_VERSION_MAJOR > 1
27976 int major, minor, patch;
27978 version = db_version( &major, &minor, &patch );
27980 if( major != DB_VERSION_MAJOR ||
27981 minor < DB_VERSION_MINOR )
27983 printf("Berkeley DB version mismatch\n"
27984 "\theader: %s\n\tlibrary: %s\n",
27985 DB_VERSION_STRING, version);
27991 #if DB_VERSION_MAJOR > 2
27992 db_env_create( NULL, 0 );
27993 #elif DB_VERSION_MAJOR > 1
27994 db_appexit( NULL );
27996 (void) dbopen( NULL, 0, 0, 0, NULL);
28003 rm -f conftest.$ac_objext conftest$ac_exeext
28004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28005 (eval $ac_link) 2>conftest.er1
28007 grep -v '^ *+' conftest.er1 >conftest.err
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } &&
28012 { ac_try='test -z "$ac_c_werror_flag"
28013 || test ! -s conftest.err'
28014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28015 (eval $ac_try) 2>&5
28017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018 (exit $ac_status); }; } &&
28019 { ac_try='test -s conftest$ac_exeext'
28020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021 (eval $ac_try) 2>&5
28023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024 (exit $ac_status); }; }; then
28025 ol_cv_db_db_4_dot_5=yes
28027 echo "$as_me: failed program was:" >&5
28028 sed 's/^/| /' conftest.$ac_ext >&5
28030 ol_cv_db_db_4_dot_5=no
28032 rm -f conftest.err conftest.$ac_objext \
28033 conftest$ac_exeext conftest.$ac_ext
28038 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
28039 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
28041 if test $ol_cv_db_db_4_dot_5 = yes ; then
28042 ol_cv_lib_db=-ldb-4.5
28046 if test $ol_cv_lib_db = no ; then
28047 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
28048 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
28049 if test "${ol_cv_db_db_4_5+set}" = set; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28055 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28057 cat >conftest.$ac_ext <<_ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28064 #ifdef HAVE_DB_185_H
28065 # include <db_185.h>
28070 #ifndef DB_VERSION_MAJOR
28071 # define DB_VERSION_MAJOR 1
28075 #define NULL ((void*)0)
28082 #if DB_VERSION_MAJOR > 1
28085 int major, minor, patch;
28087 version = db_version( &major, &minor, &patch );
28089 if( major != DB_VERSION_MAJOR ||
28090 minor < DB_VERSION_MINOR )
28092 printf("Berkeley DB version mismatch\n"
28093 "\theader: %s\n\tlibrary: %s\n",
28094 DB_VERSION_STRING, version);
28100 #if DB_VERSION_MAJOR > 2
28101 db_env_create( NULL, 0 );
28102 #elif DB_VERSION_MAJOR > 1
28103 db_appexit( NULL );
28105 (void) dbopen( NULL, 0, 0, 0, NULL);
28112 rm -f conftest.$ac_objext conftest$ac_exeext
28113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28114 (eval $ac_link) 2>conftest.er1
28116 grep -v '^ *+' conftest.er1 >conftest.err
28118 cat conftest.err >&5
28119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); } &&
28121 { ac_try='test -z "$ac_c_werror_flag"
28122 || test ! -s conftest.err'
28123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124 (eval $ac_try) 2>&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); }; } &&
28128 { ac_try='test -s conftest$ac_exeext'
28129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130 (eval $ac_try) 2>&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); }; }; then
28134 ol_cv_db_db_4_5=yes
28136 echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.$ac_ext >&5
28141 rm -f conftest.err conftest.$ac_objext \
28142 conftest$ac_exeext conftest.$ac_ext
28147 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
28148 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
28150 if test $ol_cv_db_db_4_5 = yes ; then
28151 ol_cv_lib_db=-ldb-4-5
28155 elif test $ol_cv_bdb_minor = 4 ; then
28156 if test $ol_cv_lib_db = no ; then
28157 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28158 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28159 if test "${ol_cv_db_db44+set}" = set; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28165 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28167 cat >conftest.$ac_ext <<_ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h. */
28174 #ifdef HAVE_DB_185_H
28175 # include <db_185.h>
28180 #ifndef DB_VERSION_MAJOR
28181 # define DB_VERSION_MAJOR 1
28185 #define NULL ((void*)0)
28192 #if DB_VERSION_MAJOR > 1
28195 int major, minor, patch;
28197 version = db_version( &major, &minor, &patch );
28199 if( major != DB_VERSION_MAJOR ||
28200 minor < DB_VERSION_MINOR )
28202 printf("Berkeley DB version mismatch\n"
28203 "\theader: %s\n\tlibrary: %s\n",
28204 DB_VERSION_STRING, version);
28210 #if DB_VERSION_MAJOR > 2
28211 db_env_create( NULL, 0 );
28212 #elif DB_VERSION_MAJOR > 1
28213 db_appexit( NULL );
28215 (void) dbopen( NULL, 0, 0, 0, NULL);
28222 rm -f conftest.$ac_objext conftest$ac_exeext
28223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28224 (eval $ac_link) 2>conftest.er1
28226 grep -v '^ *+' conftest.er1 >conftest.err
28228 cat conftest.err >&5
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); } &&
28231 { ac_try='test -z "$ac_c_werror_flag"
28232 || test ! -s conftest.err'
28233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234 (eval $ac_try) 2>&5
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; } &&
28238 { ac_try='test -s conftest$ac_exeext'
28239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240 (eval $ac_try) 2>&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; }; then
28246 echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28251 rm -f conftest.err conftest.$ac_objext \
28252 conftest$ac_exeext conftest.$ac_ext
28257 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28258 echo "${ECHO_T}$ol_cv_db_db44" >&6
28260 if test $ol_cv_db_db44 = yes ; then
28261 ol_cv_lib_db=-ldb44
28265 if test $ol_cv_lib_db = no ; then
28266 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28267 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28268 if test "${ol_cv_db_db_44+set}" = set; then
28269 echo $ECHO_N "(cached) $ECHO_C" >&6
28274 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28276 cat >conftest.$ac_ext <<_ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h. */
28283 #ifdef HAVE_DB_185_H
28284 # include <db_185.h>
28289 #ifndef DB_VERSION_MAJOR
28290 # define DB_VERSION_MAJOR 1
28294 #define NULL ((void*)0)
28301 #if DB_VERSION_MAJOR > 1
28304 int major, minor, patch;
28306 version = db_version( &major, &minor, &patch );
28308 if( major != DB_VERSION_MAJOR ||
28309 minor < DB_VERSION_MINOR )
28311 printf("Berkeley DB version mismatch\n"
28312 "\theader: %s\n\tlibrary: %s\n",
28313 DB_VERSION_STRING, version);
28319 #if DB_VERSION_MAJOR > 2
28320 db_env_create( NULL, 0 );
28321 #elif DB_VERSION_MAJOR > 1
28322 db_appexit( NULL );
28324 (void) dbopen( NULL, 0, 0, 0, NULL);
28331 rm -f conftest.$ac_objext conftest$ac_exeext
28332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28333 (eval $ac_link) 2>conftest.er1
28335 grep -v '^ *+' conftest.er1 >conftest.err
28337 cat conftest.err >&5
28338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); } &&
28340 { ac_try='test -z "$ac_c_werror_flag"
28341 || test ! -s conftest.err'
28342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28343 (eval $ac_try) 2>&5
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); }; } &&
28347 { ac_try='test -s conftest$ac_exeext'
28348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349 (eval $ac_try) 2>&5
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; }; then
28355 echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28360 rm -f conftest.err conftest.$ac_objext \
28361 conftest$ac_exeext conftest.$ac_ext
28366 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28367 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28369 if test $ol_cv_db_db_44 = yes ; then
28370 ol_cv_lib_db=-ldb-44
28374 if test $ol_cv_lib_db = no ; then
28375 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28376 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28377 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
28383 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28385 cat >conftest.$ac_ext <<_ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h. */
28392 #ifdef HAVE_DB_185_H
28393 # include <db_185.h>
28398 #ifndef DB_VERSION_MAJOR
28399 # define DB_VERSION_MAJOR 1
28403 #define NULL ((void*)0)
28410 #if DB_VERSION_MAJOR > 1
28413 int major, minor, patch;
28415 version = db_version( &major, &minor, &patch );
28417 if( major != DB_VERSION_MAJOR ||
28418 minor < DB_VERSION_MINOR )
28420 printf("Berkeley DB version mismatch\n"
28421 "\theader: %s\n\tlibrary: %s\n",
28422 DB_VERSION_STRING, version);
28428 #if DB_VERSION_MAJOR > 2
28429 db_env_create( NULL, 0 );
28430 #elif DB_VERSION_MAJOR > 1
28431 db_appexit( NULL );
28433 (void) dbopen( NULL, 0, 0, 0, NULL);
28440 rm -f conftest.$ac_objext conftest$ac_exeext
28441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28442 (eval $ac_link) 2>conftest.er1
28444 grep -v '^ *+' conftest.er1 >conftest.err
28446 cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } &&
28449 { ac_try='test -z "$ac_c_werror_flag"
28450 || test ! -s conftest.err'
28451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28452 (eval $ac_try) 2>&5
28454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28455 (exit $ac_status); }; } &&
28456 { ac_try='test -s conftest$ac_exeext'
28457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458 (eval $ac_try) 2>&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; }; then
28462 ol_cv_db_db_4_dot_4=yes
28464 echo "$as_me: failed program was:" >&5
28465 sed 's/^/| /' conftest.$ac_ext >&5
28467 ol_cv_db_db_4_dot_4=no
28469 rm -f conftest.err conftest.$ac_objext \
28470 conftest$ac_exeext conftest.$ac_ext
28475 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28476 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28478 if test $ol_cv_db_db_4_dot_4 = yes ; then
28479 ol_cv_lib_db=-ldb-4.4
28483 if test $ol_cv_lib_db = no ; then
28484 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28485 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28486 if test "${ol_cv_db_db_4_4+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28492 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28494 cat >conftest.$ac_ext <<_ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h. */
28501 #ifdef HAVE_DB_185_H
28502 # include <db_185.h>
28507 #ifndef DB_VERSION_MAJOR
28508 # define DB_VERSION_MAJOR 1
28512 #define NULL ((void*)0)
28519 #if DB_VERSION_MAJOR > 1
28522 int major, minor, patch;
28524 version = db_version( &major, &minor, &patch );
28526 if( major != DB_VERSION_MAJOR ||
28527 minor < DB_VERSION_MINOR )
28529 printf("Berkeley DB version mismatch\n"
28530 "\theader: %s\n\tlibrary: %s\n",
28531 DB_VERSION_STRING, version);
28537 #if DB_VERSION_MAJOR > 2
28538 db_env_create( NULL, 0 );
28539 #elif DB_VERSION_MAJOR > 1
28540 db_appexit( NULL );
28542 (void) dbopen( NULL, 0, 0, 0, NULL);
28549 rm -f conftest.$ac_objext conftest$ac_exeext
28550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28551 (eval $ac_link) 2>conftest.er1
28553 grep -v '^ *+' conftest.er1 >conftest.err
28555 cat conftest.err >&5
28556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557 (exit $ac_status); } &&
28558 { ac_try='test -z "$ac_c_werror_flag"
28559 || test ! -s conftest.err'
28560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28561 (eval $ac_try) 2>&5
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); }; } &&
28565 { ac_try='test -s conftest$ac_exeext'
28566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567 (eval $ac_try) 2>&5
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); }; }; then
28571 ol_cv_db_db_4_4=yes
28573 echo "$as_me: failed program was:" >&5
28574 sed 's/^/| /' conftest.$ac_ext >&5
28578 rm -f conftest.err conftest.$ac_objext \
28579 conftest$ac_exeext conftest.$ac_ext
28584 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28585 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28587 if test $ol_cv_db_db_4_4 = yes ; then
28588 ol_cv_lib_db=-ldb-4-4
28592 elif test $ol_cv_bdb_minor = 3 ; then
28593 if test $ol_cv_lib_db = no ; then
28594 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28595 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28596 if test "${ol_cv_db_db43+set}" = set; then
28597 echo $ECHO_N "(cached) $ECHO_C" >&6
28602 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28604 cat >conftest.$ac_ext <<_ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h. */
28611 #ifdef HAVE_DB_185_H
28612 # include <db_185.h>
28617 #ifndef DB_VERSION_MAJOR
28618 # define DB_VERSION_MAJOR 1
28622 #define NULL ((void*)0)
28629 #if DB_VERSION_MAJOR > 1
28632 int major, minor, patch;
28634 version = db_version( &major, &minor, &patch );
28636 if( major != DB_VERSION_MAJOR ||
28637 minor < DB_VERSION_MINOR )
28639 printf("Berkeley DB version mismatch\n"
28640 "\theader: %s\n\tlibrary: %s\n",
28641 DB_VERSION_STRING, version);
28647 #if DB_VERSION_MAJOR > 2
28648 db_env_create( NULL, 0 );
28649 #elif DB_VERSION_MAJOR > 1
28650 db_appexit( NULL );
28652 (void) dbopen( NULL, 0, 0, 0, NULL);
28659 rm -f conftest.$ac_objext conftest$ac_exeext
28660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28661 (eval $ac_link) 2>conftest.er1
28663 grep -v '^ *+' conftest.er1 >conftest.err
28665 cat conftest.err >&5
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); } &&
28668 { ac_try='test -z "$ac_c_werror_flag"
28669 || test ! -s conftest.err'
28670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28671 (eval $ac_try) 2>&5
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; } &&
28675 { ac_try='test -s conftest$ac_exeext'
28676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28677 (eval $ac_try) 2>&5
28679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28680 (exit $ac_status); }; }; then
28683 echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.$ac_ext >&5
28688 rm -f conftest.err conftest.$ac_objext \
28689 conftest$ac_exeext conftest.$ac_ext
28694 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28695 echo "${ECHO_T}$ol_cv_db_db43" >&6
28697 if test $ol_cv_db_db43 = yes ; then
28698 ol_cv_lib_db=-ldb43
28702 if test $ol_cv_lib_db = no ; then
28703 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28704 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28705 if test "${ol_cv_db_db_43+set}" = set; then
28706 echo $ECHO_N "(cached) $ECHO_C" >&6
28711 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28713 cat >conftest.$ac_ext <<_ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h. */
28720 #ifdef HAVE_DB_185_H
28721 # include <db_185.h>
28726 #ifndef DB_VERSION_MAJOR
28727 # define DB_VERSION_MAJOR 1
28731 #define NULL ((void*)0)
28738 #if DB_VERSION_MAJOR > 1
28741 int major, minor, patch;
28743 version = db_version( &major, &minor, &patch );
28745 if( major != DB_VERSION_MAJOR ||
28746 minor < DB_VERSION_MINOR )
28748 printf("Berkeley DB version mismatch\n"
28749 "\theader: %s\n\tlibrary: %s\n",
28750 DB_VERSION_STRING, version);
28756 #if DB_VERSION_MAJOR > 2
28757 db_env_create( NULL, 0 );
28758 #elif DB_VERSION_MAJOR > 1
28759 db_appexit( NULL );
28761 (void) dbopen( NULL, 0, 0, 0, NULL);
28768 rm -f conftest.$ac_objext conftest$ac_exeext
28769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28770 (eval $ac_link) 2>conftest.er1
28772 grep -v '^ *+' conftest.er1 >conftest.err
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } &&
28777 { ac_try='test -z "$ac_c_werror_flag"
28778 || test ! -s conftest.err'
28779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 (eval $ac_try) 2>&5
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; } &&
28784 { ac_try='test -s conftest$ac_exeext'
28785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786 (eval $ac_try) 2>&5
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; }; then
28792 echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28797 rm -f conftest.err conftest.$ac_objext \
28798 conftest$ac_exeext conftest.$ac_ext
28803 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28804 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28806 if test $ol_cv_db_db_43 = yes ; then
28807 ol_cv_lib_db=-ldb-43
28811 if test $ol_cv_lib_db = no ; then
28812 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28813 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28814 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28815 echo $ECHO_N "(cached) $ECHO_C" >&6
28820 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28822 cat >conftest.$ac_ext <<_ACEOF
28825 cat confdefs.h >>conftest.$ac_ext
28826 cat >>conftest.$ac_ext <<_ACEOF
28827 /* end confdefs.h. */
28829 #ifdef HAVE_DB_185_H
28830 # include <db_185.h>
28835 #ifndef DB_VERSION_MAJOR
28836 # define DB_VERSION_MAJOR 1
28840 #define NULL ((void*)0)
28847 #if DB_VERSION_MAJOR > 1
28850 int major, minor, patch;
28852 version = db_version( &major, &minor, &patch );
28854 if( major != DB_VERSION_MAJOR ||
28855 minor < DB_VERSION_MINOR )
28857 printf("Berkeley DB version mismatch\n"
28858 "\theader: %s\n\tlibrary: %s\n",
28859 DB_VERSION_STRING, version);
28865 #if DB_VERSION_MAJOR > 2
28866 db_env_create( NULL, 0 );
28867 #elif DB_VERSION_MAJOR > 1
28868 db_appexit( NULL );
28870 (void) dbopen( NULL, 0, 0, 0, NULL);
28877 rm -f conftest.$ac_objext conftest$ac_exeext
28878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28879 (eval $ac_link) 2>conftest.er1
28881 grep -v '^ *+' conftest.er1 >conftest.err
28883 cat conftest.err >&5
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); } &&
28886 { ac_try='test -z "$ac_c_werror_flag"
28887 || test ! -s conftest.err'
28888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28889 (eval $ac_try) 2>&5
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); }; } &&
28893 { ac_try='test -s conftest$ac_exeext'
28894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895 (eval $ac_try) 2>&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; }; then
28899 ol_cv_db_db_4_dot_3=yes
28901 echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28904 ol_cv_db_db_4_dot_3=no
28906 rm -f conftest.err conftest.$ac_objext \
28907 conftest$ac_exeext conftest.$ac_ext
28912 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28913 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28915 if test $ol_cv_db_db_4_dot_3 = yes ; then
28916 ol_cv_lib_db=-ldb-4.3
28920 if test $ol_cv_lib_db = no ; then
28921 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28922 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28923 if test "${ol_cv_db_db_4_3+set}" = set; then
28924 echo $ECHO_N "(cached) $ECHO_C" >&6
28929 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28931 cat >conftest.$ac_ext <<_ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28938 #ifdef HAVE_DB_185_H
28939 # include <db_185.h>
28944 #ifndef DB_VERSION_MAJOR
28945 # define DB_VERSION_MAJOR 1
28949 #define NULL ((void*)0)
28956 #if DB_VERSION_MAJOR > 1
28959 int major, minor, patch;
28961 version = db_version( &major, &minor, &patch );
28963 if( major != DB_VERSION_MAJOR ||
28964 minor < DB_VERSION_MINOR )
28966 printf("Berkeley DB version mismatch\n"
28967 "\theader: %s\n\tlibrary: %s\n",
28968 DB_VERSION_STRING, version);
28974 #if DB_VERSION_MAJOR > 2
28975 db_env_create( NULL, 0 );
28976 #elif DB_VERSION_MAJOR > 1
28977 db_appexit( NULL );
28979 (void) dbopen( NULL, 0, 0, 0, NULL);
28986 rm -f conftest.$ac_objext conftest$ac_exeext
28987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28988 (eval $ac_link) 2>conftest.er1
28990 grep -v '^ *+' conftest.er1 >conftest.err
28992 cat conftest.err >&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); } &&
28995 { ac_try='test -z "$ac_c_werror_flag"
28996 || test ! -s conftest.err'
28997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28998 (eval $ac_try) 2>&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); }; } &&
29002 { ac_try='test -s conftest$ac_exeext'
29003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29004 (eval $ac_try) 2>&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); }; }; then
29008 ol_cv_db_db_4_3=yes
29010 echo "$as_me: failed program was:" >&5
29011 sed 's/^/| /' conftest.$ac_ext >&5
29015 rm -f conftest.err conftest.$ac_objext \
29016 conftest$ac_exeext conftest.$ac_ext
29021 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29022 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29024 if test $ol_cv_db_db_4_3 = yes ; then
29025 ol_cv_lib_db=-ldb-4-3
29029 elif test $ol_cv_bdb_minor = 2 ; then
29030 if test $ol_cv_lib_db = no ; then
29031 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29032 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29033 if test "${ol_cv_db_db42+set}" = set; then
29034 echo $ECHO_N "(cached) $ECHO_C" >&6
29039 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29041 cat >conftest.$ac_ext <<_ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h. */
29048 #ifdef HAVE_DB_185_H
29049 # include <db_185.h>
29054 #ifndef DB_VERSION_MAJOR
29055 # define DB_VERSION_MAJOR 1
29059 #define NULL ((void*)0)
29066 #if DB_VERSION_MAJOR > 1
29069 int major, minor, patch;
29071 version = db_version( &major, &minor, &patch );
29073 if( major != DB_VERSION_MAJOR ||
29074 minor < DB_VERSION_MINOR )
29076 printf("Berkeley DB version mismatch\n"
29077 "\theader: %s\n\tlibrary: %s\n",
29078 DB_VERSION_STRING, version);
29084 #if DB_VERSION_MAJOR > 2
29085 db_env_create( NULL, 0 );
29086 #elif DB_VERSION_MAJOR > 1
29087 db_appexit( NULL );
29089 (void) dbopen( NULL, 0, 0, 0, NULL);
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098 (eval $ac_link) 2>conftest.er1
29100 grep -v '^ *+' conftest.er1 >conftest.err
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); } &&
29105 { ac_try='test -z "$ac_c_werror_flag"
29106 || test ! -s conftest.err'
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; } &&
29112 { ac_try='test -s conftest$ac_exeext'
29113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114 (eval $ac_try) 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; }; then
29120 echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29125 rm -f conftest.err conftest.$ac_objext \
29126 conftest$ac_exeext conftest.$ac_ext
29131 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29132 echo "${ECHO_T}$ol_cv_db_db42" >&6
29134 if test $ol_cv_db_db42 = yes ; then
29135 ol_cv_lib_db=-ldb42
29139 if test $ol_cv_lib_db = no ; then
29140 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29141 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29142 if test "${ol_cv_db_db_42+set}" = set; then
29143 echo $ECHO_N "(cached) $ECHO_C" >&6
29148 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29150 cat >conftest.$ac_ext <<_ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29157 #ifdef HAVE_DB_185_H
29158 # include <db_185.h>
29163 #ifndef DB_VERSION_MAJOR
29164 # define DB_VERSION_MAJOR 1
29168 #define NULL ((void*)0)
29175 #if DB_VERSION_MAJOR > 1
29178 int major, minor, patch;
29180 version = db_version( &major, &minor, &patch );
29182 if( major != DB_VERSION_MAJOR ||
29183 minor < DB_VERSION_MINOR )
29185 printf("Berkeley DB version mismatch\n"
29186 "\theader: %s\n\tlibrary: %s\n",
29187 DB_VERSION_STRING, version);
29193 #if DB_VERSION_MAJOR > 2
29194 db_env_create( NULL, 0 );
29195 #elif DB_VERSION_MAJOR > 1
29196 db_appexit( NULL );
29198 (void) dbopen( NULL, 0, 0, 0, NULL);
29205 rm -f conftest.$ac_objext conftest$ac_exeext
29206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29207 (eval $ac_link) 2>conftest.er1
29209 grep -v '^ *+' conftest.er1 >conftest.err
29211 cat conftest.err >&5
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); } &&
29214 { ac_try='test -z "$ac_c_werror_flag"
29215 || test ! -s conftest.err'
29216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217 (eval $ac_try) 2>&5
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; } &&
29221 { ac_try='test -s conftest$ac_exeext'
29222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223 (eval $ac_try) 2>&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); }; }; then
29229 echo "$as_me: failed program was:" >&5
29230 sed 's/^/| /' conftest.$ac_ext >&5
29234 rm -f conftest.err conftest.$ac_objext \
29235 conftest$ac_exeext conftest.$ac_ext
29240 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29241 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29243 if test $ol_cv_db_db_42 = yes ; then
29244 ol_cv_lib_db=-ldb-42
29248 if test $ol_cv_lib_db = no ; then
29249 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29250 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29251 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29252 echo $ECHO_N "(cached) $ECHO_C" >&6
29257 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29259 cat >conftest.$ac_ext <<_ACEOF
29262 cat confdefs.h >>conftest.$ac_ext
29263 cat >>conftest.$ac_ext <<_ACEOF
29264 /* end confdefs.h. */
29266 #ifdef HAVE_DB_185_H
29267 # include <db_185.h>
29272 #ifndef DB_VERSION_MAJOR
29273 # define DB_VERSION_MAJOR 1
29277 #define NULL ((void*)0)
29284 #if DB_VERSION_MAJOR > 1
29287 int major, minor, patch;
29289 version = db_version( &major, &minor, &patch );
29291 if( major != DB_VERSION_MAJOR ||
29292 minor < DB_VERSION_MINOR )
29294 printf("Berkeley DB version mismatch\n"
29295 "\theader: %s\n\tlibrary: %s\n",
29296 DB_VERSION_STRING, version);
29302 #if DB_VERSION_MAJOR > 2
29303 db_env_create( NULL, 0 );
29304 #elif DB_VERSION_MAJOR > 1
29305 db_appexit( NULL );
29307 (void) dbopen( NULL, 0, 0, 0, NULL);
29314 rm -f conftest.$ac_objext conftest$ac_exeext
29315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29316 (eval $ac_link) 2>conftest.er1
29318 grep -v '^ *+' conftest.er1 >conftest.err
29320 cat conftest.err >&5
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); } &&
29323 { ac_try='test -z "$ac_c_werror_flag"
29324 || test ! -s conftest.err'
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; } &&
29330 { ac_try='test -s conftest$ac_exeext'
29331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332 (eval $ac_try) 2>&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; }; then
29336 ol_cv_db_db_4_dot_2=yes
29338 echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29341 ol_cv_db_db_4_dot_2=no
29343 rm -f conftest.err conftest.$ac_objext \
29344 conftest$ac_exeext conftest.$ac_ext
29349 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29350 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29352 if test $ol_cv_db_db_4_dot_2 = yes ; then
29353 ol_cv_lib_db=-ldb-4.2
29357 if test $ol_cv_lib_db = no ; then
29358 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29359 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29360 if test "${ol_cv_db_db_4_2+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29368 cat >conftest.$ac_ext <<_ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h. */
29375 #ifdef HAVE_DB_185_H
29376 # include <db_185.h>
29381 #ifndef DB_VERSION_MAJOR
29382 # define DB_VERSION_MAJOR 1
29386 #define NULL ((void*)0)
29393 #if DB_VERSION_MAJOR > 1
29396 int major, minor, patch;
29398 version = db_version( &major, &minor, &patch );
29400 if( major != DB_VERSION_MAJOR ||
29401 minor < DB_VERSION_MINOR )
29403 printf("Berkeley DB version mismatch\n"
29404 "\theader: %s\n\tlibrary: %s\n",
29405 DB_VERSION_STRING, version);
29411 #if DB_VERSION_MAJOR > 2
29412 db_env_create( NULL, 0 );
29413 #elif DB_VERSION_MAJOR > 1
29414 db_appexit( NULL );
29416 (void) dbopen( NULL, 0, 0, 0, NULL);
29423 rm -f conftest.$ac_objext conftest$ac_exeext
29424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29425 (eval $ac_link) 2>conftest.er1
29427 grep -v '^ *+' conftest.er1 >conftest.err
29429 cat conftest.err >&5
29430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29431 (exit $ac_status); } &&
29432 { ac_try='test -z "$ac_c_werror_flag"
29433 || test ! -s conftest.err'
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; } &&
29439 { ac_try='test -s conftest$ac_exeext'
29440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441 (eval $ac_try) 2>&5
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; }; then
29445 ol_cv_db_db_4_2=yes
29447 echo "$as_me: failed program was:" >&5
29448 sed 's/^/| /' conftest.$ac_ext >&5
29452 rm -f conftest.err conftest.$ac_objext \
29453 conftest$ac_exeext conftest.$ac_ext
29458 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29459 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29461 if test $ol_cv_db_db_4_2 = yes ; then
29462 ol_cv_lib_db=-ldb-4-2
29466 elif test $ol_cv_bdb_minor = 1 ; then
29467 if test $ol_cv_lib_db = no ; then
29468 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29469 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29470 if test "${ol_cv_db_db41+set}" = set; then
29471 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29478 cat >conftest.$ac_ext <<_ACEOF
29481 cat confdefs.h >>conftest.$ac_ext
29482 cat >>conftest.$ac_ext <<_ACEOF
29483 /* end confdefs.h. */
29485 #ifdef HAVE_DB_185_H
29486 # include <db_185.h>
29491 #ifndef DB_VERSION_MAJOR
29492 # define DB_VERSION_MAJOR 1
29496 #define NULL ((void*)0)
29503 #if DB_VERSION_MAJOR > 1
29506 int major, minor, patch;
29508 version = db_version( &major, &minor, &patch );
29510 if( major != DB_VERSION_MAJOR ||
29511 minor < DB_VERSION_MINOR )
29513 printf("Berkeley DB version mismatch\n"
29514 "\theader: %s\n\tlibrary: %s\n",
29515 DB_VERSION_STRING, version);
29521 #if DB_VERSION_MAJOR > 2
29522 db_env_create( NULL, 0 );
29523 #elif DB_VERSION_MAJOR > 1
29524 db_appexit( NULL );
29526 (void) dbopen( NULL, 0, 0, 0, NULL);
29533 rm -f conftest.$ac_objext conftest$ac_exeext
29534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29535 (eval $ac_link) 2>conftest.er1
29537 grep -v '^ *+' conftest.er1 >conftest.err
29539 cat conftest.err >&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } &&
29542 { ac_try='test -z "$ac_c_werror_flag"
29543 || test ! -s conftest.err'
29544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545 (eval $ac_try) 2>&5
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; } &&
29549 { ac_try='test -s conftest$ac_exeext'
29550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29551 (eval $ac_try) 2>&5
29553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); }; }; then
29557 echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29562 rm -f conftest.err conftest.$ac_objext \
29563 conftest$ac_exeext conftest.$ac_ext
29568 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29569 echo "${ECHO_T}$ol_cv_db_db41" >&6
29571 if test $ol_cv_db_db41 = yes ; then
29572 ol_cv_lib_db=-ldb41
29576 if test $ol_cv_lib_db = no ; then
29577 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29578 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29579 if test "${ol_cv_db_db_41+set}" = set; then
29580 echo $ECHO_N "(cached) $ECHO_C" >&6
29585 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29587 cat >conftest.$ac_ext <<_ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h. */
29594 #ifdef HAVE_DB_185_H
29595 # include <db_185.h>
29600 #ifndef DB_VERSION_MAJOR
29601 # define DB_VERSION_MAJOR 1
29605 #define NULL ((void*)0)
29612 #if DB_VERSION_MAJOR > 1
29615 int major, minor, patch;
29617 version = db_version( &major, &minor, &patch );
29619 if( major != DB_VERSION_MAJOR ||
29620 minor < DB_VERSION_MINOR )
29622 printf("Berkeley DB version mismatch\n"
29623 "\theader: %s\n\tlibrary: %s\n",
29624 DB_VERSION_STRING, version);
29630 #if DB_VERSION_MAJOR > 2
29631 db_env_create( NULL, 0 );
29632 #elif DB_VERSION_MAJOR > 1
29633 db_appexit( NULL );
29635 (void) dbopen( NULL, 0, 0, 0, NULL);
29642 rm -f conftest.$ac_objext conftest$ac_exeext
29643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29644 (eval $ac_link) 2>conftest.er1
29646 grep -v '^ *+' conftest.er1 >conftest.err
29648 cat conftest.err >&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); } &&
29651 { ac_try='test -z "$ac_c_werror_flag"
29652 || test ! -s conftest.err'
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; } &&
29658 { ac_try='test -s conftest$ac_exeext'
29659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660 (eval $ac_try) 2>&5
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); }; }; then
29666 echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29671 rm -f conftest.err conftest.$ac_objext \
29672 conftest$ac_exeext conftest.$ac_ext
29677 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29678 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29680 if test $ol_cv_db_db_41 = yes ; then
29681 ol_cv_lib_db=-ldb-41
29685 if test $ol_cv_lib_db = no ; then
29686 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29687 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29688 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29689 echo $ECHO_N "(cached) $ECHO_C" >&6
29694 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29696 cat >conftest.$ac_ext <<_ACEOF
29699 cat confdefs.h >>conftest.$ac_ext
29700 cat >>conftest.$ac_ext <<_ACEOF
29701 /* end confdefs.h. */
29703 #ifdef HAVE_DB_185_H
29704 # include <db_185.h>
29709 #ifndef DB_VERSION_MAJOR
29710 # define DB_VERSION_MAJOR 1
29714 #define NULL ((void*)0)
29721 #if DB_VERSION_MAJOR > 1
29724 int major, minor, patch;
29726 version = db_version( &major, &minor, &patch );
29728 if( major != DB_VERSION_MAJOR ||
29729 minor < DB_VERSION_MINOR )
29731 printf("Berkeley DB version mismatch\n"
29732 "\theader: %s\n\tlibrary: %s\n",
29733 DB_VERSION_STRING, version);
29739 #if DB_VERSION_MAJOR > 2
29740 db_env_create( NULL, 0 );
29741 #elif DB_VERSION_MAJOR > 1
29742 db_appexit( NULL );
29744 (void) dbopen( NULL, 0, 0, 0, NULL);
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29753 (eval $ac_link) 2>conftest.er1
29755 grep -v '^ *+' conftest.er1 >conftest.err
29757 cat conftest.err >&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); } &&
29760 { ac_try='test -z "$ac_c_werror_flag"
29761 || test ! -s conftest.err'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; } &&
29767 { ac_try='test -s conftest$ac_exeext'
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; }; then
29773 ol_cv_db_db_4_dot_1=yes
29775 echo "$as_me: failed program was:" >&5
29776 sed 's/^/| /' conftest.$ac_ext >&5
29778 ol_cv_db_db_4_dot_1=no
29780 rm -f conftest.err conftest.$ac_objext \
29781 conftest$ac_exeext conftest.$ac_ext
29786 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29787 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29789 if test $ol_cv_db_db_4_dot_1 = yes ; then
29790 ol_cv_lib_db=-ldb-4.1
29794 if test $ol_cv_lib_db = no ; then
29795 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29796 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29797 if test "${ol_cv_db_db_4_1+set}" = set; then
29798 echo $ECHO_N "(cached) $ECHO_C" >&6
29803 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29805 cat >conftest.$ac_ext <<_ACEOF
29808 cat confdefs.h >>conftest.$ac_ext
29809 cat >>conftest.$ac_ext <<_ACEOF
29810 /* end confdefs.h. */
29812 #ifdef HAVE_DB_185_H
29813 # include <db_185.h>
29818 #ifndef DB_VERSION_MAJOR
29819 # define DB_VERSION_MAJOR 1
29823 #define NULL ((void*)0)
29830 #if DB_VERSION_MAJOR > 1
29833 int major, minor, patch;
29835 version = db_version( &major, &minor, &patch );
29837 if( major != DB_VERSION_MAJOR ||
29838 minor < DB_VERSION_MINOR )
29840 printf("Berkeley DB version mismatch\n"
29841 "\theader: %s\n\tlibrary: %s\n",
29842 DB_VERSION_STRING, version);
29848 #if DB_VERSION_MAJOR > 2
29849 db_env_create( NULL, 0 );
29850 #elif DB_VERSION_MAJOR > 1
29851 db_appexit( NULL );
29853 (void) dbopen( NULL, 0, 0, 0, NULL);
29860 rm -f conftest.$ac_objext conftest$ac_exeext
29861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29862 (eval $ac_link) 2>conftest.er1
29864 grep -v '^ *+' conftest.er1 >conftest.err
29866 cat conftest.err >&5
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); } &&
29869 { ac_try='test -z "$ac_c_werror_flag"
29870 || test ! -s conftest.err'
29871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872 (eval $ac_try) 2>&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; } &&
29876 { ac_try='test -s conftest$ac_exeext'
29877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; }; then
29882 ol_cv_db_db_4_1=yes
29884 echo "$as_me: failed program was:" >&5
29885 sed 's/^/| /' conftest.$ac_ext >&5
29889 rm -f conftest.err conftest.$ac_objext \
29890 conftest$ac_exeext conftest.$ac_ext
29895 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29896 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29898 if test $ol_cv_db_db_4_1 = yes ; then
29899 ol_cv_lib_db=-ldb-4-1
29904 if test $ol_cv_lib_db = no ; then
29905 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29906 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29907 if test "${ol_cv_db_db_4+set}" = set; then
29908 echo $ECHO_N "(cached) $ECHO_C" >&6
29913 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29915 cat >conftest.$ac_ext <<_ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h. */
29922 #ifdef HAVE_DB_185_H
29923 # include <db_185.h>
29928 #ifndef DB_VERSION_MAJOR
29929 # define DB_VERSION_MAJOR 1
29933 #define NULL ((void*)0)
29940 #if DB_VERSION_MAJOR > 1
29943 int major, minor, patch;
29945 version = db_version( &major, &minor, &patch );
29947 if( major != DB_VERSION_MAJOR ||
29948 minor < DB_VERSION_MINOR )
29950 printf("Berkeley DB version mismatch\n"
29951 "\theader: %s\n\tlibrary: %s\n",
29952 DB_VERSION_STRING, version);
29958 #if DB_VERSION_MAJOR > 2
29959 db_env_create( NULL, 0 );
29960 #elif DB_VERSION_MAJOR > 1
29961 db_appexit( NULL );
29963 (void) dbopen( NULL, 0, 0, 0, NULL);
29970 rm -f conftest.$ac_objext conftest$ac_exeext
29971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29972 (eval $ac_link) 2>conftest.er1
29974 grep -v '^ *+' conftest.er1 >conftest.err
29976 cat conftest.err >&5
29977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978 (exit $ac_status); } &&
29979 { ac_try='test -z "$ac_c_werror_flag"
29980 || test ! -s conftest.err'
29981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29982 (eval $ac_try) 2>&5
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); }; } &&
29986 { ac_try='test -s conftest$ac_exeext'
29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988 (eval $ac_try) 2>&5
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; }; then
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29999 rm -f conftest.err conftest.$ac_objext \
30000 conftest$ac_exeext conftest.$ac_ext
30005 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30006 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30008 if test $ol_cv_db_db_4 = yes ; then
30009 ol_cv_lib_db=-ldb-4
30013 if test $ol_cv_lib_db = no ; then
30014 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30015 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30016 if test "${ol_cv_db_db4+set}" = set; then
30017 echo $ECHO_N "(cached) $ECHO_C" >&6
30022 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30024 cat >conftest.$ac_ext <<_ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h. */
30031 #ifdef HAVE_DB_185_H
30032 # include <db_185.h>
30037 #ifndef DB_VERSION_MAJOR
30038 # define DB_VERSION_MAJOR 1
30042 #define NULL ((void*)0)
30049 #if DB_VERSION_MAJOR > 1
30052 int major, minor, patch;
30054 version = db_version( &major, &minor, &patch );
30056 if( major != DB_VERSION_MAJOR ||
30057 minor < DB_VERSION_MINOR )
30059 printf("Berkeley DB version mismatch\n"
30060 "\theader: %s\n\tlibrary: %s\n",
30061 DB_VERSION_STRING, version);
30067 #if DB_VERSION_MAJOR > 2
30068 db_env_create( NULL, 0 );
30069 #elif DB_VERSION_MAJOR > 1
30070 db_appexit( NULL );
30072 (void) dbopen( NULL, 0, 0, 0, NULL);
30079 rm -f conftest.$ac_objext conftest$ac_exeext
30080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30081 (eval $ac_link) 2>conftest.er1
30083 grep -v '^ *+' conftest.er1 >conftest.err
30085 cat conftest.err >&5
30086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087 (exit $ac_status); } &&
30088 { ac_try='test -z "$ac_c_werror_flag"
30089 || test ! -s conftest.err'
30090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30091 (eval $ac_try) 2>&5
30093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094 (exit $ac_status); }; } &&
30095 { ac_try='test -s conftest$ac_exeext'
30096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30097 (eval $ac_try) 2>&5
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); }; }; then
30103 echo "$as_me: failed program was:" >&5
30104 sed 's/^/| /' conftest.$ac_ext >&5
30108 rm -f conftest.err conftest.$ac_objext \
30109 conftest$ac_exeext conftest.$ac_ext
30114 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30115 echo "${ECHO_T}$ol_cv_db_db4" >&6
30117 if test $ol_cv_db_db4 = yes ; then
30122 if test $ol_cv_lib_db = no ; then
30123 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30124 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30125 if test "${ol_cv_db_db+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30131 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30133 cat >conftest.$ac_ext <<_ACEOF
30136 cat confdefs.h >>conftest.$ac_ext
30137 cat >>conftest.$ac_ext <<_ACEOF
30138 /* end confdefs.h. */
30140 #ifdef HAVE_DB_185_H
30141 # include <db_185.h>
30146 #ifndef DB_VERSION_MAJOR
30147 # define DB_VERSION_MAJOR 1
30151 #define NULL ((void*)0)
30158 #if DB_VERSION_MAJOR > 1
30161 int major, minor, patch;
30163 version = db_version( &major, &minor, &patch );
30165 if( major != DB_VERSION_MAJOR ||
30166 minor < DB_VERSION_MINOR )
30168 printf("Berkeley DB version mismatch\n"
30169 "\theader: %s\n\tlibrary: %s\n",
30170 DB_VERSION_STRING, version);
30176 #if DB_VERSION_MAJOR > 2
30177 db_env_create( NULL, 0 );
30178 #elif DB_VERSION_MAJOR > 1
30179 db_appexit( NULL );
30181 (void) dbopen( NULL, 0, 0, 0, NULL);
30188 rm -f conftest.$ac_objext conftest$ac_exeext
30189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30190 (eval $ac_link) 2>conftest.er1
30192 grep -v '^ *+' conftest.er1 >conftest.err
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); } &&
30197 { ac_try='test -z "$ac_c_werror_flag"
30198 || test ! -s conftest.err'
30199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200 (eval $ac_try) 2>&5
30202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203 (exit $ac_status); }; } &&
30204 { ac_try='test -s conftest$ac_exeext'
30205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206 (eval $ac_try) 2>&5
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; }; then
30212 echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30217 rm -f conftest.err conftest.$ac_objext \
30218 conftest$ac_exeext conftest.$ac_ext
30223 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30224 echo "${ECHO_T}$ol_cv_db_db" >&6
30226 if test $ol_cv_db_db = yes ; then
30232 elif test $ol_cv_bdb_major = 3 ; then
30233 if test $ol_cv_lib_db = no ; then
30234 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30235 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30236 if test "${ol_cv_db_db3+set}" = set; then
30237 echo $ECHO_N "(cached) $ECHO_C" >&6
30242 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30244 cat >conftest.$ac_ext <<_ACEOF
30247 cat confdefs.h >>conftest.$ac_ext
30248 cat >>conftest.$ac_ext <<_ACEOF
30249 /* end confdefs.h. */
30251 #ifdef HAVE_DB_185_H
30252 # include <db_185.h>
30257 #ifndef DB_VERSION_MAJOR
30258 # define DB_VERSION_MAJOR 1
30262 #define NULL ((void*)0)
30269 #if DB_VERSION_MAJOR > 1
30272 int major, minor, patch;
30274 version = db_version( &major, &minor, &patch );
30276 if( major != DB_VERSION_MAJOR ||
30277 minor < DB_VERSION_MINOR )
30279 printf("Berkeley DB version mismatch\n"
30280 "\theader: %s\n\tlibrary: %s\n",
30281 DB_VERSION_STRING, version);
30287 #if DB_VERSION_MAJOR > 2
30288 db_env_create( NULL, 0 );
30289 #elif DB_VERSION_MAJOR > 1
30290 db_appexit( NULL );
30292 (void) dbopen( NULL, 0, 0, 0, NULL);
30299 rm -f conftest.$ac_objext conftest$ac_exeext
30300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30301 (eval $ac_link) 2>conftest.er1
30303 grep -v '^ *+' conftest.er1 >conftest.err
30305 cat conftest.err >&5
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); } &&
30308 { ac_try='test -z "$ac_c_werror_flag"
30309 || test ! -s conftest.err'
30310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30311 (eval $ac_try) 2>&5
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; } &&
30315 { ac_try='test -s conftest$ac_exeext'
30316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30317 (eval $ac_try) 2>&5
30319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30320 (exit $ac_status); }; }; then
30323 echo "$as_me: failed program was:" >&5
30324 sed 's/^/| /' conftest.$ac_ext >&5
30328 rm -f conftest.err conftest.$ac_objext \
30329 conftest$ac_exeext conftest.$ac_ext
30334 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30335 echo "${ECHO_T}$ol_cv_db_db3" >&6
30337 if test $ol_cv_db_db3 = yes ; then
30342 if test $ol_cv_lib_db = no ; then
30343 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30344 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30345 if test "${ol_cv_db_db_3+set}" = set; then
30346 echo $ECHO_N "(cached) $ECHO_C" >&6
30351 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30353 cat >conftest.$ac_ext <<_ACEOF
30356 cat confdefs.h >>conftest.$ac_ext
30357 cat >>conftest.$ac_ext <<_ACEOF
30358 /* end confdefs.h. */
30360 #ifdef HAVE_DB_185_H
30361 # include <db_185.h>
30366 #ifndef DB_VERSION_MAJOR
30367 # define DB_VERSION_MAJOR 1
30371 #define NULL ((void*)0)
30378 #if DB_VERSION_MAJOR > 1
30381 int major, minor, patch;
30383 version = db_version( &major, &minor, &patch );
30385 if( major != DB_VERSION_MAJOR ||
30386 minor < DB_VERSION_MINOR )
30388 printf("Berkeley DB version mismatch\n"
30389 "\theader: %s\n\tlibrary: %s\n",
30390 DB_VERSION_STRING, version);
30396 #if DB_VERSION_MAJOR > 2
30397 db_env_create( NULL, 0 );
30398 #elif DB_VERSION_MAJOR > 1
30399 db_appexit( NULL );
30401 (void) dbopen( NULL, 0, 0, 0, NULL);
30408 rm -f conftest.$ac_objext conftest$ac_exeext
30409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30410 (eval $ac_link) 2>conftest.er1
30412 grep -v '^ *+' conftest.er1 >conftest.err
30414 cat conftest.err >&5
30415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416 (exit $ac_status); } &&
30417 { ac_try='test -z "$ac_c_werror_flag"
30418 || test ! -s conftest.err'
30419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30420 (eval $ac_try) 2>&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; } &&
30424 { ac_try='test -s conftest$ac_exeext'
30425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30426 (eval $ac_try) 2>&5
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; }; then
30432 echo "$as_me: failed program was:" >&5
30433 sed 's/^/| /' conftest.$ac_ext >&5
30437 rm -f conftest.err conftest.$ac_objext \
30438 conftest$ac_exeext conftest.$ac_ext
30443 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30444 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30446 if test $ol_cv_db_db_3 = yes ; then
30447 ol_cv_lib_db=-ldb-3
30452 elif test $ol_cv_bdb_major = 2 ; then
30453 if test $ol_cv_lib_db = no ; then
30454 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30455 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30456 if test "${ol_cv_db_db2+set}" = set; then
30457 echo $ECHO_N "(cached) $ECHO_C" >&6
30462 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30464 cat >conftest.$ac_ext <<_ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h. */
30471 #ifdef HAVE_DB_185_H
30472 # include <db_185.h>
30477 #ifndef DB_VERSION_MAJOR
30478 # define DB_VERSION_MAJOR 1
30482 #define NULL ((void*)0)
30489 #if DB_VERSION_MAJOR > 1
30492 int major, minor, patch;
30494 version = db_version( &major, &minor, &patch );
30496 if( major != DB_VERSION_MAJOR ||
30497 minor < DB_VERSION_MINOR )
30499 printf("Berkeley DB version mismatch\n"
30500 "\theader: %s\n\tlibrary: %s\n",
30501 DB_VERSION_STRING, version);
30507 #if DB_VERSION_MAJOR > 2
30508 db_env_create( NULL, 0 );
30509 #elif DB_VERSION_MAJOR > 1
30510 db_appexit( NULL );
30512 (void) dbopen( NULL, 0, 0, 0, NULL);
30519 rm -f conftest.$ac_objext conftest$ac_exeext
30520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30521 (eval $ac_link) 2>conftest.er1
30523 grep -v '^ *+' conftest.er1 >conftest.err
30525 cat conftest.err >&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } &&
30528 { ac_try='test -z "$ac_c_werror_flag"
30529 || test ! -s conftest.err'
30530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30531 (eval $ac_try) 2>&5
30533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); }; } &&
30535 { ac_try='test -s conftest$ac_exeext'
30536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30537 (eval $ac_try) 2>&5
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); }; }; then
30543 echo "$as_me: failed program was:" >&5
30544 sed 's/^/| /' conftest.$ac_ext >&5
30548 rm -f conftest.err conftest.$ac_objext \
30549 conftest$ac_exeext conftest.$ac_ext
30554 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30555 echo "${ECHO_T}$ol_cv_db_db2" >&6
30557 if test $ol_cv_db_db2 = yes ; then
30562 if test $ol_cv_lib_db = no ; then
30563 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30564 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30565 if test "${ol_cv_db_db_2+set}" = set; then
30566 echo $ECHO_N "(cached) $ECHO_C" >&6
30571 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30573 cat >conftest.$ac_ext <<_ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h. */
30580 #ifdef HAVE_DB_185_H
30581 # include <db_185.h>
30586 #ifndef DB_VERSION_MAJOR
30587 # define DB_VERSION_MAJOR 1
30591 #define NULL ((void*)0)
30598 #if DB_VERSION_MAJOR > 1
30601 int major, minor, patch;
30603 version = db_version( &major, &minor, &patch );
30605 if( major != DB_VERSION_MAJOR ||
30606 minor < DB_VERSION_MINOR )
30608 printf("Berkeley DB version mismatch\n"
30609 "\theader: %s\n\tlibrary: %s\n",
30610 DB_VERSION_STRING, version);
30616 #if DB_VERSION_MAJOR > 2
30617 db_env_create( NULL, 0 );
30618 #elif DB_VERSION_MAJOR > 1
30619 db_appexit( NULL );
30621 (void) dbopen( NULL, 0, 0, 0, NULL);
30628 rm -f conftest.$ac_objext conftest$ac_exeext
30629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30630 (eval $ac_link) 2>conftest.er1
30632 grep -v '^ *+' conftest.er1 >conftest.err
30634 cat conftest.err >&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); } &&
30637 { ac_try='test -z "$ac_c_werror_flag"
30638 || test ! -s conftest.err'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; } &&
30644 { ac_try='test -s conftest$ac_exeext'
30645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30646 (eval $ac_try) 2>&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); }; }; then
30652 echo "$as_me: failed program was:" >&5
30653 sed 's/^/| /' conftest.$ac_ext >&5
30657 rm -f conftest.err conftest.$ac_objext \
30658 conftest$ac_exeext conftest.$ac_ext
30663 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30664 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30666 if test $ol_cv_db_db_2 = yes ; then
30667 ol_cv_lib_db=-ldb-2
30672 elif test $ol_cv_bdb_major = 1 ; then
30673 if test $ol_cv_lib_db = no ; then
30674 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30675 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30676 if test "${ol_cv_db_db1+set}" = set; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30682 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30684 cat >conftest.$ac_ext <<_ACEOF
30687 cat confdefs.h >>conftest.$ac_ext
30688 cat >>conftest.$ac_ext <<_ACEOF
30689 /* end confdefs.h. */
30691 #ifdef HAVE_DB_185_H
30692 # include <db_185.h>
30697 #ifndef DB_VERSION_MAJOR
30698 # define DB_VERSION_MAJOR 1
30702 #define NULL ((void*)0)
30709 #if DB_VERSION_MAJOR > 1
30712 int major, minor, patch;
30714 version = db_version( &major, &minor, &patch );
30716 if( major != DB_VERSION_MAJOR ||
30717 minor < DB_VERSION_MINOR )
30719 printf("Berkeley DB version mismatch\n"
30720 "\theader: %s\n\tlibrary: %s\n",
30721 DB_VERSION_STRING, version);
30727 #if DB_VERSION_MAJOR > 2
30728 db_env_create( NULL, 0 );
30729 #elif DB_VERSION_MAJOR > 1
30730 db_appexit( NULL );
30732 (void) dbopen( NULL, 0, 0, 0, NULL);
30739 rm -f conftest.$ac_objext conftest$ac_exeext
30740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30741 (eval $ac_link) 2>conftest.er1
30743 grep -v '^ *+' conftest.er1 >conftest.err
30745 cat conftest.err >&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); } &&
30748 { ac_try='test -z "$ac_c_werror_flag"
30749 || test ! -s conftest.err'
30750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30751 (eval $ac_try) 2>&5
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); }; } &&
30755 { ac_try='test -s conftest$ac_exeext'
30756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30757 (eval $ac_try) 2>&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); }; }; then
30763 echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30768 rm -f conftest.err conftest.$ac_objext \
30769 conftest$ac_exeext conftest.$ac_ext
30774 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30775 echo "${ECHO_T}$ol_cv_db_db1" >&6
30777 if test $ol_cv_db_db1 = yes ; then
30782 if test $ol_cv_lib_db = no ; then
30783 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30784 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30785 if test "${ol_cv_db_db_1+set}" = set; then
30786 echo $ECHO_N "(cached) $ECHO_C" >&6
30791 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30793 cat >conftest.$ac_ext <<_ACEOF
30796 cat confdefs.h >>conftest.$ac_ext
30797 cat >>conftest.$ac_ext <<_ACEOF
30798 /* end confdefs.h. */
30800 #ifdef HAVE_DB_185_H
30801 # include <db_185.h>
30806 #ifndef DB_VERSION_MAJOR
30807 # define DB_VERSION_MAJOR 1
30811 #define NULL ((void*)0)
30818 #if DB_VERSION_MAJOR > 1
30821 int major, minor, patch;
30823 version = db_version( &major, &minor, &patch );
30825 if( major != DB_VERSION_MAJOR ||
30826 minor < DB_VERSION_MINOR )
30828 printf("Berkeley DB version mismatch\n"
30829 "\theader: %s\n\tlibrary: %s\n",
30830 DB_VERSION_STRING, version);
30836 #if DB_VERSION_MAJOR > 2
30837 db_env_create( NULL, 0 );
30838 #elif DB_VERSION_MAJOR > 1
30839 db_appexit( NULL );
30841 (void) dbopen( NULL, 0, 0, 0, NULL);
30848 rm -f conftest.$ac_objext conftest$ac_exeext
30849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30850 (eval $ac_link) 2>conftest.er1
30852 grep -v '^ *+' conftest.er1 >conftest.err
30854 cat conftest.err >&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); } &&
30857 { ac_try='test -z "$ac_c_werror_flag"
30858 || test ! -s conftest.err'
30859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30860 (eval $ac_try) 2>&5
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; } &&
30864 { ac_try='test -s conftest$ac_exeext'
30865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866 (eval $ac_try) 2>&5
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
30872 echo "$as_me: failed program was:" >&5
30873 sed 's/^/| /' conftest.$ac_ext >&5
30877 rm -f conftest.err conftest.$ac_objext \
30878 conftest$ac_exeext conftest.$ac_ext
30883 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30884 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30886 if test $ol_cv_db_db_1 = yes ; then
30887 ol_cv_lib_db=-ldb-1
30892 if test $ol_cv_lib_db = no ; then
30893 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30894 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30895 if test "${ol_cv_db_none+set}" = set; then
30896 echo $ECHO_N "(cached) $ECHO_C" >&6
30901 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30903 cat >conftest.$ac_ext <<_ACEOF
30906 cat confdefs.h >>conftest.$ac_ext
30907 cat >>conftest.$ac_ext <<_ACEOF
30908 /* end confdefs.h. */
30910 #ifdef HAVE_DB_185_H
30911 # include <db_185.h>
30916 #ifndef DB_VERSION_MAJOR
30917 # define DB_VERSION_MAJOR 1
30921 #define NULL ((void*)0)
30928 #if DB_VERSION_MAJOR > 1
30931 int major, minor, patch;
30933 version = db_version( &major, &minor, &patch );
30935 if( major != DB_VERSION_MAJOR ||
30936 minor < DB_VERSION_MINOR )
30938 printf("Berkeley DB version mismatch\n"
30939 "\theader: %s\n\tlibrary: %s\n",
30940 DB_VERSION_STRING, version);
30946 #if DB_VERSION_MAJOR > 2
30947 db_env_create( NULL, 0 );
30948 #elif DB_VERSION_MAJOR > 1
30949 db_appexit( NULL );
30951 (void) dbopen( NULL, 0, 0, 0, NULL);
30958 rm -f conftest.$ac_objext conftest$ac_exeext
30959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30960 (eval $ac_link) 2>conftest.er1
30962 grep -v '^ *+' conftest.er1 >conftest.err
30964 cat conftest.err >&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } &&
30967 { ac_try='test -z "$ac_c_werror_flag"
30968 || test ! -s conftest.err'
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; } &&
30974 { ac_try='test -s conftest$ac_exeext'
30975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30976 (eval $ac_try) 2>&5
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); }; }; then
30982 echo "$as_me: failed program was:" >&5
30983 sed 's/^/| /' conftest.$ac_ext >&5
30987 rm -f conftest.err conftest.$ac_objext \
30988 conftest$ac_exeext conftest.$ac_ext
30993 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30994 echo "${ECHO_T}$ol_cv_db_none" >&6
30996 if test $ol_cv_db_none = yes ; then
31002 if test "$ol_cv_lib_db" != no ; then
31003 ol_cv_berkeley_db=yes
31004 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31005 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31006 if test "${ol_cv_berkeley_db_version+set}" = set; then
31007 echo $ECHO_N "(cached) $ECHO_C" >&6
31011 LIBS="$LTHREAD_LIBS $LIBS"
31012 if test $ol_cv_lib_db != yes ; then
31013 LIBS="$ol_cv_lib_db $LIBS"
31016 if test "$cross_compiling" = yes; then
31017 ol_cv_berkeley_db_version=cross
31019 cat >conftest.$ac_ext <<_ACEOF
31022 cat confdefs.h >>conftest.$ac_ext
31023 cat >>conftest.$ac_ext <<_ACEOF
31024 /* end confdefs.h. */
31026 #ifdef HAVE_DB_185_H
31031 #ifndef DB_VERSION_MAJOR
31032 # define DB_VERSION_MAJOR 1
31035 #define NULL ((void *)0)
31039 #if DB_VERSION_MAJOR > 1
31041 int major, minor, patch;
31043 version = db_version( &major, &minor, &patch );
31045 if( major != DB_VERSION_MAJOR ||
31046 minor != DB_VERSION_MINOR ||
31047 patch != DB_VERSION_PATCH )
31049 printf("Berkeley DB version mismatch\n"
31050 "\theader: %s\n\tlibrary: %s\n",
31051 DB_VERSION_STRING, version);
31059 rm -f conftest$ac_exeext
31060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31061 (eval $ac_link) 2>&5
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31066 (eval $ac_try) 2>&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; }; then
31070 ol_cv_berkeley_db_version=yes
31072 echo "$as_me: program exited with status $ac_status" >&5
31073 echo "$as_me: failed program was:" >&5
31074 sed 's/^/| /' conftest.$ac_ext >&5
31076 ( exit $ac_status )
31077 ol_cv_berkeley_db_version=no
31079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31085 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31086 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31088 if test $ol_cv_berkeley_db_version = no ; then
31089 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31090 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31091 { (exit 1); exit 1; }; }
31094 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31095 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31096 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31097 echo $ECHO_N "(cached) $ECHO_C" >&6
31101 LIBS="$LTHREAD_LIBS $LIBS"
31102 if test $ol_cv_lib_db != yes ; then
31103 LIBS="$ol_cv_lib_db $LIBS"
31106 if test "$cross_compiling" = yes; then
31107 ol_cv_berkeley_db_thread=cross
31109 cat >conftest.$ac_ext <<_ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h. */
31116 #ifdef HAVE_DB_185_H
31122 #define NULL ((void *)0)
31127 u_int32_t flags = DB_CREATE |
31133 #if DB_VERSION_MAJOR > 2
31134 DB_ENV *env = NULL;
31136 rc = db_env_create( &env, 0 );
31138 flags |= DB_INIT_MPOOL;
31139 #ifdef DB_MPOOL_PRIVATE
31140 flags |= DB_MPOOL_PRIVATE;
31144 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31148 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31149 rc = env->open( env, NULL, flags, 0 );
31151 rc = env->open( env, NULL, NULL, flags, 0 );
31155 rc = env->close( env, 0 );
31159 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31165 memset( &env, '\0', sizeof(env) );
31167 rc = db_appinit( NULL, NULL, &env, flags );
31170 db_appexit( &env );
31173 unlink("__db_mpool.share");
31174 unlink("__db_lock.share");
31180 rm -f conftest$ac_exeext
31181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31182 (eval $ac_link) 2>&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31187 (eval $ac_try) 2>&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); }; }; then
31191 ol_cv_berkeley_db_thread=yes
31193 echo "$as_me: program exited with status $ac_status" >&5
31194 echo "$as_me: failed program was:" >&5
31195 sed 's/^/| /' conftest.$ac_ext >&5
31197 ( exit $ac_status )
31198 ol_cv_berkeley_db_thread=no
31200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31206 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31207 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31209 if test $ol_cv_berkeley_db_thread != no ; then
31211 cat >>confdefs.h <<\_ACEOF
31212 #define HAVE_BERKELEY_DB_THREAD 1
31221 if test $ol_cv_berkeley_db = no ; then
31222 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31223 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31224 { (exit 1); exit 1; }; }
31228 cat >>confdefs.h <<\_ACEOF
31229 #define HAVE_BERKELEY_DB 1
31233 if test $ol_cv_lib_db != yes ; then
31234 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31237 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31238 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31239 if test "${ol_cv_bdb_compat+set}" = set; then
31240 echo $ECHO_N "(cached) $ECHO_C" >&6
31243 cat >conftest.$ac_ext <<_ACEOF
31246 cat confdefs.h >>conftest.$ac_ext
31247 cat >>conftest.$ac_ext <<_ACEOF
31248 /* end confdefs.h. */
31252 /* this check could be improved */
31253 #ifndef DB_VERSION_MAJOR
31254 # define DB_VERSION_MAJOR 1
31256 #ifndef DB_VERSION_MINOR
31257 # define DB_VERSION_MINOR 0
31260 /* require 4.2 or later, but exclude 4.3 */
31261 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31262 __db_version_compat
31266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31267 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31268 ol_cv_bdb_compat=yes
31270 ol_cv_bdb_compat=no
31275 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31276 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31279 if test $ol_cv_bdb_compat != yes ; then
31280 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31281 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31282 { (exit 1); exit 1; }; }
31285 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31291 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31292 BUILD_LIBS_DYNAMIC=shared
31294 cat >>confdefs.h <<\_ACEOF
31295 #define LDAP_LIBS_DYNAMIC 1
31300 BUILD_LIBS_DYNAMIC=static
31304 if test $ol_enable_wrappers != no ; then
31306 for ac_header in tcpd.h
31308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31310 echo "$as_me:$LINENO: checking for $ac_header" >&5
31311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31313 echo $ECHO_N "(cached) $ECHO_C" >&6
31315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31318 # Is the header compilable?
31319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31321 cat >conftest.$ac_ext <<_ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h. */
31327 $ac_includes_default
31328 #include <$ac_header>
31330 rm -f conftest.$ac_objext
31331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31332 (eval $ac_compile) 2>conftest.er1
31334 grep -v '^ *+' conftest.er1 >conftest.err
31336 cat conftest.err >&5
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); } &&
31339 { ac_try='test -z "$ac_c_werror_flag"
31340 || test ! -s conftest.err'
31341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342 (eval $ac_try) 2>&5
31344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345 (exit $ac_status); }; } &&
31346 { ac_try='test -s conftest.$ac_objext'
31347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348 (eval $ac_try) 2>&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; }; then
31352 ac_header_compiler=yes
31354 echo "$as_me: failed program was:" >&5
31355 sed 's/^/| /' conftest.$ac_ext >&5
31357 ac_header_compiler=no
31359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31361 echo "${ECHO_T}$ac_header_compiler" >&6
31363 # Is the header present?
31364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31366 cat >conftest.$ac_ext <<_ACEOF
31369 cat confdefs.h >>conftest.$ac_ext
31370 cat >>conftest.$ac_ext <<_ACEOF
31371 /* end confdefs.h. */
31372 #include <$ac_header>
31374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31377 grep -v '^ *+' conftest.er1 >conftest.err
31379 cat conftest.err >&5
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } >/dev/null; then
31382 if test -s conftest.err; then
31383 ac_cpp_err=$ac_c_preproc_warn_flag
31384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31391 if test -z "$ac_cpp_err"; then
31392 ac_header_preproc=yes
31394 echo "$as_me: failed program was:" >&5
31395 sed 's/^/| /' conftest.$ac_ext >&5
31397 ac_header_preproc=no
31399 rm -f conftest.err conftest.$ac_ext
31400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31401 echo "${ECHO_T}$ac_header_preproc" >&6
31403 # So? What about this header?
31404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31410 ac_header_preproc=yes
31413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31427 ## --------------------------------------------- ##
31428 ## Report this to <http://www.openldap.org/its/> ##
31429 ## --------------------------------------------- ##
31432 sed "s/^/$as_me: WARNING: /" >&2
31435 echo "$as_me:$LINENO: checking for $ac_header" >&5
31436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31438 echo $ECHO_N "(cached) $ECHO_C" >&6
31440 eval "$as_ac_Header=\$ac_header_preproc"
31442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31447 cat >>confdefs.h <<_ACEOF
31448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31451 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31452 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31454 LIBS="$LIBS -lwrap"
31455 cat >conftest.$ac_ext <<_ACEOF
31458 cat confdefs.h >>conftest.$ac_ext
31459 cat >>conftest.$ac_ext <<_ACEOF
31460 /* end confdefs.h. */
31463 int allow_severity = 0;
31464 int deny_severity = 0;
31466 struct request_info *req;
31478 rm -f conftest.$ac_objext conftest$ac_exeext
31479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31480 (eval $ac_link) 2>conftest.er1
31482 grep -v '^ *+' conftest.er1 >conftest.err
31484 cat conftest.err >&5
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); } &&
31487 { ac_try='test -z "$ac_c_werror_flag"
31488 || test ! -s conftest.err'
31489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490 (eval $ac_try) 2>&5
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); }; } &&
31494 { ac_try='test -s conftest$ac_exeext'
31495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31496 (eval $ac_try) 2>&5
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); }; }; then
31500 echo "$as_me:$LINENO: result: -lwrap" >&5
31501 echo "${ECHO_T}-lwrap" >&6
31505 echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31510 cat >conftest.$ac_ext <<_ACEOF
31513 cat confdefs.h >>conftest.$ac_ext
31514 cat >>conftest.$ac_ext <<_ACEOF
31515 /* end confdefs.h. */
31518 int allow_severity = 0;
31519 int deny_severity = 0;
31521 struct request_info *req;
31533 rm -f conftest.$ac_objext conftest$ac_exeext
31534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31535 (eval $ac_link) 2>conftest.er1
31537 grep -v '^ *+' conftest.er1 >conftest.err
31539 cat conftest.err >&5
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); } &&
31542 { ac_try='test -z "$ac_c_werror_flag"
31543 || test ! -s conftest.err'
31544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31545 (eval $ac_try) 2>&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); }; } &&
31549 { ac_try='test -s conftest$ac_exeext'
31550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551 (eval $ac_try) 2>&5
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); }; }; then
31555 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31556 echo "${ECHO_T}-lwrap -lnsl" >&6
31558 LIBS="$save_LIBS -lnsl"
31560 echo "$as_me: failed program was:" >&5
31561 sed 's/^/| /' conftest.$ac_ext >&5
31564 echo "$as_me:$LINENO: result: no" >&5
31565 echo "${ECHO_T}no" >&6
31569 rm -f conftest.err conftest.$ac_objext \
31570 conftest$ac_exeext conftest.$ac_ext
31572 rm -f conftest.err conftest.$ac_objext \
31573 conftest$ac_exeext conftest.$ac_ext
31581 if test $have_wrappers = yes ; then
31583 cat >>confdefs.h <<\_ACEOF
31584 #define HAVE_TCPD 1
31588 elif test $ol_enable_wrappers = yes ; then
31589 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31590 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31591 { (exit 1); exit 1; }; }
31593 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31594 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31599 if test $ol_enable_syslog != no ; then
31600 echo "$as_me:$LINENO: checking for openlog" >&5
31601 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31602 if test "${ac_cv_func_openlog+set}" = set; then
31603 echo $ECHO_N "(cached) $ECHO_C" >&6
31605 cat >conftest.$ac_ext <<_ACEOF
31608 cat confdefs.h >>conftest.$ac_ext
31609 cat >>conftest.$ac_ext <<_ACEOF
31610 /* end confdefs.h. */
31611 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31613 #define openlog innocuous_openlog
31615 /* System header to define __stub macros and hopefully few prototypes,
31616 which can conflict with char openlog (); below.
31617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31618 <limits.h> exists even on freestanding compilers. */
31621 # include <limits.h>
31623 # include <assert.h>
31628 /* Override any gcc2 internal prototype to avoid an error. */
31633 /* We use char because int might match the return type of a gcc2
31634 builtin and then its argument prototype would still apply. */
31636 /* The GNU C library defines this for functions which it implements
31637 to always fail with ENOSYS. Some functions are actually named
31638 something starting with __ and the normal name is an alias. */
31639 #if defined (__stub_openlog) || defined (__stub___openlog)
31642 char (*f) () = openlog;
31651 return f != openlog;
31656 rm -f conftest.$ac_objext conftest$ac_exeext
31657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31658 (eval $ac_link) 2>conftest.er1
31660 grep -v '^ *+' conftest.er1 >conftest.err
31662 cat conftest.err >&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); } &&
31665 { ac_try='test -z "$ac_c_werror_flag"
31666 || test ! -s conftest.err'
31667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668 (eval $ac_try) 2>&5
31670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671 (exit $ac_status); }; } &&
31672 { ac_try='test -s conftest$ac_exeext'
31673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31674 (eval $ac_try) 2>&5
31676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31677 (exit $ac_status); }; }; then
31678 ac_cv_func_openlog=yes
31680 echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31683 ac_cv_func_openlog=no
31685 rm -f conftest.err conftest.$ac_objext \
31686 conftest$ac_exeext conftest.$ac_ext
31688 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31689 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31691 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31692 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31693 echo "$as_me: error: could not find syslog" >&2;}
31694 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31696 ol_enable_syslog=$ac_cv_func_openlog
31700 if test $ol_enable_sql != no ; then
31703 for ac_header in sql.h sqlext.h
31705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31707 echo "$as_me:$LINENO: checking for $ac_header" >&5
31708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31710 echo $ECHO_N "(cached) $ECHO_C" >&6
31712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31715 # Is the header compilable?
31716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31718 cat >conftest.$ac_ext <<_ACEOF
31721 cat confdefs.h >>conftest.$ac_ext
31722 cat >>conftest.$ac_ext <<_ACEOF
31723 /* end confdefs.h. */
31724 $ac_includes_default
31725 #include <$ac_header>
31727 rm -f conftest.$ac_objext
31728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31729 (eval $ac_compile) 2>conftest.er1
31731 grep -v '^ *+' conftest.er1 >conftest.err
31733 cat conftest.err >&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); } &&
31736 { ac_try='test -z "$ac_c_werror_flag"
31737 || test ! -s conftest.err'
31738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31739 (eval $ac_try) 2>&5
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); }; } &&
31743 { ac_try='test -s conftest.$ac_objext'
31744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31745 (eval $ac_try) 2>&5
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); }; }; then
31749 ac_header_compiler=yes
31751 echo "$as_me: failed program was:" >&5
31752 sed 's/^/| /' conftest.$ac_ext >&5
31754 ac_header_compiler=no
31756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31758 echo "${ECHO_T}$ac_header_compiler" >&6
31760 # Is the header present?
31761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31763 cat >conftest.$ac_ext <<_ACEOF
31766 cat confdefs.h >>conftest.$ac_ext
31767 cat >>conftest.$ac_ext <<_ACEOF
31768 /* end confdefs.h. */
31769 #include <$ac_header>
31771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31774 grep -v '^ *+' conftest.er1 >conftest.err
31776 cat conftest.err >&5
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); } >/dev/null; then
31779 if test -s conftest.err; then
31780 ac_cpp_err=$ac_c_preproc_warn_flag
31781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31788 if test -z "$ac_cpp_err"; then
31789 ac_header_preproc=yes
31791 echo "$as_me: failed program was:" >&5
31792 sed 's/^/| /' conftest.$ac_ext >&5
31794 ac_header_preproc=no
31796 rm -f conftest.err conftest.$ac_ext
31797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31798 echo "${ECHO_T}$ac_header_preproc" >&6
31800 # So? What about this header?
31801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31807 ac_header_preproc=yes
31810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31824 ## --------------------------------------------- ##
31825 ## Report this to <http://www.openldap.org/its/> ##
31826 ## --------------------------------------------- ##
31829 sed "s/^/$as_me: WARNING: /" >&2
31832 echo "$as_me:$LINENO: checking for $ac_header" >&5
31833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31835 echo $ECHO_N "(cached) $ECHO_C" >&6
31837 eval "$as_ac_Header=\$ac_header_preproc"
31839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31844 cat >>confdefs.h <<_ACEOF
31845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31850 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31851 echo "$as_me: error: could not locate SQL headers" >&2;}
31852 { (exit 1); exit 1; }; }
31860 LIBS="$LTHREAD_LIBS"
31862 if test $ol_with_odbc = auto ; then
31863 ol_with_odbc="iodbc unixodbc"
31866 for odbc in $ol_with_odbc ; do
31867 if test $ol_link_sql = no ; then
31870 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31871 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31872 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31873 echo $ECHO_N "(cached) $ECHO_C" >&6
31875 ac_check_lib_save_LIBS=$LIBS
31876 LIBS="-liodbc $LIBS"
31877 cat >conftest.$ac_ext <<_ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h. */
31884 /* Override any gcc2 internal prototype to avoid an error. */
31888 /* We use char because int might match the return type of a gcc2
31889 builtin and then its argument prototype would still apply. */
31890 char SQLDriverConnect ();
31894 SQLDriverConnect ();
31899 rm -f conftest.$ac_objext conftest$ac_exeext
31900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31901 (eval $ac_link) 2>conftest.er1
31903 grep -v '^ *+' conftest.er1 >conftest.err
31905 cat conftest.err >&5
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); } &&
31908 { ac_try='test -z "$ac_c_werror_flag"
31909 || test ! -s conftest.err'
31910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31911 (eval $ac_try) 2>&5
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; } &&
31915 { ac_try='test -s conftest$ac_exeext'
31916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31917 (eval $ac_try) 2>&5
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; }; then
31921 ac_cv_lib_iodbc_SQLDriverConnect=yes
31923 echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31926 ac_cv_lib_iodbc_SQLDriverConnect=no
31928 rm -f conftest.err conftest.$ac_objext \
31929 conftest$ac_exeext conftest.$ac_ext
31930 LIBS=$ac_check_lib_save_LIBS
31932 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31933 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31934 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31940 if test $have_iodbc = yes ; then
31941 ol_link_sql="-liodbc"
31946 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31947 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31948 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31949 echo $ECHO_N "(cached) $ECHO_C" >&6
31951 ac_check_lib_save_LIBS=$LIBS
31952 LIBS="-lodbc $LIBS"
31953 cat >conftest.$ac_ext <<_ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h. */
31960 /* Override any gcc2 internal prototype to avoid an error. */
31964 /* We use char because int might match the return type of a gcc2
31965 builtin and then its argument prototype would still apply. */
31966 char SQLDriverConnect ();
31970 SQLDriverConnect ();
31975 rm -f conftest.$ac_objext conftest$ac_exeext
31976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31977 (eval $ac_link) 2>conftest.er1
31979 grep -v '^ *+' conftest.er1 >conftest.err
31981 cat conftest.err >&5
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); } &&
31984 { ac_try='test -z "$ac_c_werror_flag"
31985 || test ! -s conftest.err'
31986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31987 (eval $ac_try) 2>&5
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; } &&
31991 { ac_try='test -s conftest$ac_exeext'
31992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31993 (eval $ac_try) 2>&5
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); }; }; then
31997 ac_cv_lib_odbc_SQLDriverConnect=yes
31999 echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32002 ac_cv_lib_odbc_SQLDriverConnect=no
32004 rm -f conftest.err conftest.$ac_objext \
32005 conftest$ac_exeext conftest.$ac_ext
32006 LIBS=$ac_check_lib_save_LIBS
32008 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32009 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32010 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32016 if test $have_odbc = yes ; then
32017 ol_link_sql="-lodbc"
32022 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32023 echo "$as_me: error: unknown ODBC library" >&2;}
32024 { (exit 1); exit 1; }; }
32032 if test $ol_link_sql != no ; then
32033 SLAPD_SQL_LIBS="$ol_link_sql"
32035 elif test $ol_enable_sql != auto ; then
32036 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32037 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32038 { (exit 1); exit 1; }; }
32044 for ac_header in unicode/utypes.h
32046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32048 echo "$as_me:$LINENO: checking for $ac_header" >&5
32049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32051 echo $ECHO_N "(cached) $ECHO_C" >&6
32053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32056 # Is the header compilable?
32057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32059 cat >conftest.$ac_ext <<_ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h. */
32065 $ac_includes_default
32066 #include <$ac_header>
32068 rm -f conftest.$ac_objext
32069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32070 (eval $ac_compile) 2>conftest.er1
32072 grep -v '^ *+' conftest.er1 >conftest.err
32074 cat conftest.err >&5
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); } &&
32077 { ac_try='test -z "$ac_c_werror_flag"
32078 || test ! -s conftest.err'
32079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080 (eval $ac_try) 2>&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; } &&
32084 { ac_try='test -s conftest.$ac_objext'
32085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32086 (eval $ac_try) 2>&5
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); }; }; then
32090 ac_header_compiler=yes
32092 echo "$as_me: failed program was:" >&5
32093 sed 's/^/| /' conftest.$ac_ext >&5
32095 ac_header_compiler=no
32097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32099 echo "${ECHO_T}$ac_header_compiler" >&6
32101 # Is the header present?
32102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32104 cat >conftest.$ac_ext <<_ACEOF
32107 cat confdefs.h >>conftest.$ac_ext
32108 cat >>conftest.$ac_ext <<_ACEOF
32109 /* end confdefs.h. */
32110 #include <$ac_header>
32112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32115 grep -v '^ *+' conftest.er1 >conftest.err
32117 cat conftest.err >&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } >/dev/null; then
32120 if test -s conftest.err; then
32121 ac_cpp_err=$ac_c_preproc_warn_flag
32122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32129 if test -z "$ac_cpp_err"; then
32130 ac_header_preproc=yes
32132 echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32135 ac_header_preproc=no
32137 rm -f conftest.err conftest.$ac_ext
32138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32139 echo "${ECHO_T}$ac_header_preproc" >&6
32141 # So? What about this header?
32142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32148 ac_header_preproc=yes
32151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32165 ## --------------------------------------------- ##
32166 ## Report this to <http://www.openldap.org/its/> ##
32167 ## --------------------------------------------- ##
32170 sed "s/^/$as_me: WARNING: /" >&2
32173 echo "$as_me:$LINENO: checking for $ac_header" >&5
32174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32176 echo $ECHO_N "(cached) $ECHO_C" >&6
32178 eval "$as_ac_Header=\$ac_header_preproc"
32180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32185 cat >>confdefs.h <<_ACEOF
32186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32193 if test $ac_cv_header_unicode_utypes_h = yes ; then
32194 OL_ICULIBS="-licuuc -licudata"
32196 echo "$as_me:$LINENO: checking for ICU libraries" >&5
32197 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32198 if test "${ol_cv_lib_icu+set}" = set; then
32199 echo $ECHO_N "(cached) $ECHO_C" >&6
32203 LIBS="$OL_ICULIBS $LIBS"
32204 cat >conftest.$ac_ext <<_ACEOF
32207 cat confdefs.h >>conftest.$ac_ext
32208 cat >>conftest.$ac_ext <<_ACEOF
32209 /* end confdefs.h. */
32211 #include <unicode/utypes.h>
32217 (void) u_errorName(0);
32223 rm -f conftest.$ac_objext conftest$ac_exeext
32224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32225 (eval $ac_link) 2>conftest.er1
32227 grep -v '^ *+' conftest.er1 >conftest.err
32229 cat conftest.err >&5
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); } &&
32232 { ac_try='test -z "$ac_c_werror_flag"
32233 || test ! -s conftest.err'
32234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32235 (eval $ac_try) 2>&5
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); }; } &&
32239 { ac_try='test -s conftest$ac_exeext'
32240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32241 (eval $ac_try) 2>&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; }; then
32247 echo "$as_me: failed program was:" >&5
32248 sed 's/^/| /' conftest.$ac_ext >&5
32252 rm -f conftest.err conftest.$ac_objext \
32253 conftest$ac_exeext conftest.$ac_ext
32257 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32258 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32260 if test $ol_cv_lib_icu != no ; then
32261 ol_icu="$OL_ICULIBS"
32263 cat >>confdefs.h <<\_ACEOF
32270 if test "$ol_icu" = no ; then
32271 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32272 echo "$as_me: WARNING: ICU not available" >&2;}
32279 if test $ol_with_cyrus_sasl != no ; then
32282 for ac_header in sasl/sasl.h sasl.h
32284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32286 echo "$as_me:$LINENO: checking for $ac_header" >&5
32287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32289 echo $ECHO_N "(cached) $ECHO_C" >&6
32291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32294 # Is the header compilable?
32295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32297 cat >conftest.$ac_ext <<_ACEOF
32300 cat confdefs.h >>conftest.$ac_ext
32301 cat >>conftest.$ac_ext <<_ACEOF
32302 /* end confdefs.h. */
32303 $ac_includes_default
32304 #include <$ac_header>
32306 rm -f conftest.$ac_objext
32307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32308 (eval $ac_compile) 2>conftest.er1
32310 grep -v '^ *+' conftest.er1 >conftest.err
32312 cat conftest.err >&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } &&
32315 { ac_try='test -z "$ac_c_werror_flag"
32316 || test ! -s conftest.err'
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; } &&
32322 { ac_try='test -s conftest.$ac_objext'
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; }; then
32328 ac_header_compiler=yes
32330 echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.$ac_ext >&5
32333 ac_header_compiler=no
32335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32337 echo "${ECHO_T}$ac_header_compiler" >&6
32339 # Is the header present?
32340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32342 cat >conftest.$ac_ext <<_ACEOF
32345 cat confdefs.h >>conftest.$ac_ext
32346 cat >>conftest.$ac_ext <<_ACEOF
32347 /* end confdefs.h. */
32348 #include <$ac_header>
32350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32353 grep -v '^ *+' conftest.er1 >conftest.err
32355 cat conftest.err >&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); } >/dev/null; then
32358 if test -s conftest.err; then
32359 ac_cpp_err=$ac_c_preproc_warn_flag
32360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32367 if test -z "$ac_cpp_err"; then
32368 ac_header_preproc=yes
32370 echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32373 ac_header_preproc=no
32375 rm -f conftest.err conftest.$ac_ext
32376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32377 echo "${ECHO_T}$ac_header_preproc" >&6
32379 # So? What about this header?
32380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32386 ac_header_preproc=yes
32389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32403 ## --------------------------------------------- ##
32404 ## Report this to <http://www.openldap.org/its/> ##
32405 ## --------------------------------------------- ##
32408 sed "s/^/$as_me: WARNING: /" >&2
32411 echo "$as_me:$LINENO: checking for $ac_header" >&5
32412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32416 eval "$as_ac_Header=\$ac_header_preproc"
32418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32423 cat >>confdefs.h <<_ACEOF
32424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32432 if test $ac_cv_header_sasl_sasl_h = yes ||
32433 test $ac_cv_header_sasl_h = yes; then
32434 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32435 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32436 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32437 echo $ECHO_N "(cached) $ECHO_C" >&6
32439 ac_check_lib_save_LIBS=$LIBS
32440 LIBS="-lsasl2 $LIBS"
32441 cat >conftest.$ac_ext <<_ACEOF
32444 cat confdefs.h >>conftest.$ac_ext
32445 cat >>conftest.$ac_ext <<_ACEOF
32446 /* end confdefs.h. */
32448 /* Override any gcc2 internal prototype to avoid an error. */
32452 /* We use char because int might match the return type of a gcc2
32453 builtin and then its argument prototype would still apply. */
32454 char sasl_client_init ();
32458 sasl_client_init ();
32463 rm -f conftest.$ac_objext conftest$ac_exeext
32464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32465 (eval $ac_link) 2>conftest.er1
32467 grep -v '^ *+' conftest.er1 >conftest.err
32469 cat conftest.err >&5
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); } &&
32472 { ac_try='test -z "$ac_c_werror_flag"
32473 || test ! -s conftest.err'
32474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32475 (eval $ac_try) 2>&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); }; } &&
32479 { ac_try='test -s conftest$ac_exeext'
32480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32481 (eval $ac_try) 2>&5
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; }; then
32485 ac_cv_lib_sasl2_sasl_client_init=yes
32487 echo "$as_me: failed program was:" >&5
32488 sed 's/^/| /' conftest.$ac_ext >&5
32490 ac_cv_lib_sasl2_sasl_client_init=no
32492 rm -f conftest.err conftest.$ac_objext \
32493 conftest$ac_exeext conftest.$ac_ext
32494 LIBS=$ac_check_lib_save_LIBS
32496 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32497 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32498 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32499 ol_link_sasl="-lsasl2"
32501 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32502 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32503 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32504 echo $ECHO_N "(cached) $ECHO_C" >&6
32506 ac_check_lib_save_LIBS=$LIBS
32507 LIBS="-lsasl $LIBS"
32508 cat >conftest.$ac_ext <<_ACEOF
32511 cat confdefs.h >>conftest.$ac_ext
32512 cat >>conftest.$ac_ext <<_ACEOF
32513 /* end confdefs.h. */
32515 /* Override any gcc2 internal prototype to avoid an error. */
32519 /* We use char because int might match the return type of a gcc2
32520 builtin and then its argument prototype would still apply. */
32521 char sasl_client_init ();
32525 sasl_client_init ();
32530 rm -f conftest.$ac_objext conftest$ac_exeext
32531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32532 (eval $ac_link) 2>conftest.er1
32534 grep -v '^ *+' conftest.er1 >conftest.err
32536 cat conftest.err >&5
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); } &&
32539 { ac_try='test -z "$ac_c_werror_flag"
32540 || test ! -s conftest.err'
32541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32542 (eval $ac_try) 2>&5
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); }; } &&
32546 { ac_try='test -s conftest$ac_exeext'
32547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548 (eval $ac_try) 2>&5
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; }; then
32552 ac_cv_lib_sasl_sasl_client_init=yes
32554 echo "$as_me: failed program was:" >&5
32555 sed 's/^/| /' conftest.$ac_ext >&5
32557 ac_cv_lib_sasl_sasl_client_init=no
32559 rm -f conftest.err conftest.$ac_objext \
32560 conftest$ac_exeext conftest.$ac_ext
32561 LIBS=$ac_check_lib_save_LIBS
32563 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32564 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32565 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32566 ol_link_sasl="-lsasl"
32573 if test $ol_link_sasl = no ; then
32574 if test $ol_with_cyrus_sasl != auto ; then
32575 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32576 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32577 { (exit 1); exit 1; }; }
32579 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32580 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32581 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32582 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32583 if test $ol_link_tls = no ; then
32584 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32585 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32589 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32590 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32591 if test "${ol_cv_sasl_compat+set}" = set; then
32592 echo $ECHO_N "(cached) $ECHO_C" >&6
32595 cat >conftest.$ac_ext <<_ACEOF
32598 cat confdefs.h >>conftest.$ac_ext
32599 cat >>conftest.$ac_ext <<_ACEOF
32600 /* end confdefs.h. */
32602 #ifdef HAVE_SASL_SASL_H
32603 #include <sasl/sasl.h>
32608 /* Require 2.1.15+ */
32609 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32610 char *__sasl_compat = "2.2+ or better okay (we guess)";
32611 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32612 && SASL_VERSION_STEP >=15
32613 char *__sasl_compat = "2.1.15+ or better okay";
32617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32618 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32619 ol_cv_sasl_compat=yes
32621 ol_cv_sasl_compat=no
32626 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32627 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32629 if test $ol_cv_sasl_compat = no ; then
32631 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32632 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32633 { (exit 1); exit 1; }; }
32637 cat >>confdefs.h <<\_ACEOF
32638 #define HAVE_CYRUS_SASL 1
32641 SASL_LIBS="$ol_link_sasl"
32642 if test $ol_enable_spasswd != no ; then
32643 ol_link_spasswd=yes
32646 ac_save_LIBS="$LIBS"
32647 LIBS="$LIBS $ol_link_sasl"
32648 echo "$as_me:$LINENO: checking for sasl_version" >&5
32649 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32650 if test "${ac_cv_func_sasl_version+set}" = set; then
32651 echo $ECHO_N "(cached) $ECHO_C" >&6
32653 cat >conftest.$ac_ext <<_ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h. */
32659 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32661 #define sasl_version innocuous_sasl_version
32663 /* System header to define __stub macros and hopefully few prototypes,
32664 which can conflict with char sasl_version (); below.
32665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32666 <limits.h> exists even on freestanding compilers. */
32669 # include <limits.h>
32671 # include <assert.h>
32674 #undef sasl_version
32676 /* Override any gcc2 internal prototype to avoid an error. */
32681 /* We use char because int might match the return type of a gcc2
32682 builtin and then its argument prototype would still apply. */
32683 char sasl_version ();
32684 /* The GNU C library defines this for functions which it implements
32685 to always fail with ENOSYS. Some functions are actually named
32686 something starting with __ and the normal name is an alias. */
32687 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32690 char (*f) () = sasl_version;
32699 return f != sasl_version;
32704 rm -f conftest.$ac_objext conftest$ac_exeext
32705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32706 (eval $ac_link) 2>conftest.er1
32708 grep -v '^ *+' conftest.er1 >conftest.err
32710 cat conftest.err >&5
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } &&
32713 { ac_try='test -z "$ac_c_werror_flag"
32714 || test ! -s conftest.err'
32715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32716 (eval $ac_try) 2>&5
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; } &&
32720 { ac_try='test -s conftest$ac_exeext'
32721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32722 (eval $ac_try) 2>&5
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); }; }; then
32726 ac_cv_func_sasl_version=yes
32728 echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32731 ac_cv_func_sasl_version=no
32733 rm -f conftest.err conftest.$ac_objext \
32734 conftest$ac_exeext conftest.$ac_ext
32736 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32737 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32738 if test $ac_cv_func_sasl_version = yes; then
32740 cat >>confdefs.h <<\_ACEOF
32741 #define HAVE_SASL_VERSION 1
32746 LIBS="$ac_save_LIBS"
32752 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32753 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32754 if test $ol_link_tls = no ; then
32755 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32756 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32760 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32762 if test -r /dev/urandom ; then
32763 dev="/dev/urandom";
32764 elif test -r /idev/urandom ; then
32765 dev="/idev/urandom";
32766 elif test -r /dev/srandom ; then
32767 dev="/dev/srandom";
32768 elif test -r /dev/random ; then
32770 elif test -r /idev/random ; then
32771 dev="/idev/random";
32774 if test $dev != no ; then
32776 cat >>confdefs.h <<_ACEOF
32777 #define URANDOM_DEVICE "$dev"
32784 if test $ol_with_fetch != no ; then
32786 LIBS="-lfetch -lcom_err $LIBS"
32787 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32788 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32789 if test "${ol_cv_lib_fetch+set}" = set; then
32790 echo $ECHO_N "(cached) $ECHO_C" >&6
32793 cat >conftest.$ac_ext <<_ACEOF
32796 cat confdefs.h >>conftest.$ac_ext
32797 cat >>conftest.$ac_ext <<_ACEOF
32798 /* end confdefs.h. */
32800 #include <sys/param.h>
32806 struct url *u = fetchParseURL("file:///");
32811 rm -f conftest.$ac_objext conftest$ac_exeext
32812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32813 (eval $ac_link) 2>conftest.er1
32815 grep -v '^ *+' conftest.er1 >conftest.err
32817 cat conftest.err >&5
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); } &&
32820 { ac_try='test -z "$ac_c_werror_flag"
32821 || test ! -s conftest.err'
32822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32823 (eval $ac_try) 2>&5
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); }; } &&
32827 { ac_try='test -s conftest$ac_exeext'
32828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32829 (eval $ac_try) 2>&5
32831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); }; }; then
32833 ol_cv_lib_fetch=yes
32835 echo "$as_me: failed program was:" >&5
32836 sed 's/^/| /' conftest.$ac_ext >&5
32840 rm -f conftest.err conftest.$ac_objext \
32841 conftest$ac_exeext conftest.$ac_ext
32843 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32844 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32846 if test $ol_cv_lib_fetch != no ; then
32847 ol_link_fetch="-lfetch -lcom_err"
32849 cat >>confdefs.h <<\_ACEOF
32850 #define HAVE_FETCH 1
32856 if test $ol_cv_lib_fetch != no ; then
32857 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32858 ol_link_fetch=freebsd
32860 elif test $ol_with_fetch != auto ; then
32861 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32862 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32863 { (exit 1); exit 1; }; }
32867 if test $ol_enable_crypt != no ; then
32869 LIBS="$TLS_LIBS $LIBS"
32871 echo "$as_me:$LINENO: checking for crypt" >&5
32872 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32873 if test "${ac_cv_func_crypt+set}" = set; then
32874 echo $ECHO_N "(cached) $ECHO_C" >&6
32876 cat >conftest.$ac_ext <<_ACEOF
32879 cat confdefs.h >>conftest.$ac_ext
32880 cat >>conftest.$ac_ext <<_ACEOF
32881 /* end confdefs.h. */
32882 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32884 #define crypt innocuous_crypt
32886 /* System header to define __stub macros and hopefully few prototypes,
32887 which can conflict with char crypt (); below.
32888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32889 <limits.h> exists even on freestanding compilers. */
32892 # include <limits.h>
32894 # include <assert.h>
32899 /* Override any gcc2 internal prototype to avoid an error. */
32904 /* We use char because int might match the return type of a gcc2
32905 builtin and then its argument prototype would still apply. */
32907 /* The GNU C library defines this for functions which it implements
32908 to always fail with ENOSYS. Some functions are actually named
32909 something starting with __ and the normal name is an alias. */
32910 #if defined (__stub_crypt) || defined (__stub___crypt)
32913 char (*f) () = crypt;
32927 rm -f conftest.$ac_objext conftest$ac_exeext
32928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32929 (eval $ac_link) 2>conftest.er1
32931 grep -v '^ *+' conftest.er1 >conftest.err
32933 cat conftest.err >&5
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); } &&
32936 { ac_try='test -z "$ac_c_werror_flag"
32937 || test ! -s conftest.err'
32938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32939 (eval $ac_try) 2>&5
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); }; } &&
32943 { ac_try='test -s conftest$ac_exeext'
32944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32945 (eval $ac_try) 2>&5
32947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); }; }; then
32949 ac_cv_func_crypt=yes
32951 echo "$as_me: failed program was:" >&5
32952 sed 's/^/| /' conftest.$ac_ext >&5
32954 ac_cv_func_crypt=no
32956 rm -f conftest.err conftest.$ac_objext \
32957 conftest$ac_exeext conftest.$ac_ext
32959 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32960 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32961 if test $ac_cv_func_crypt = yes; then
32966 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32967 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32968 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32969 echo $ECHO_N "(cached) $ECHO_C" >&6
32971 ac_check_lib_save_LIBS=$LIBS
32972 LIBS="-lcrypt $LIBS"
32973 cat >conftest.$ac_ext <<_ACEOF
32976 cat confdefs.h >>conftest.$ac_ext
32977 cat >>conftest.$ac_ext <<_ACEOF
32978 /* end confdefs.h. */
32980 /* Override any gcc2 internal prototype to avoid an error. */
32984 /* We use char because int might match the return type of a gcc2
32985 builtin and then its argument prototype would still apply. */
32995 rm -f conftest.$ac_objext conftest$ac_exeext
32996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32997 (eval $ac_link) 2>conftest.er1
32999 grep -v '^ *+' conftest.er1 >conftest.err
33001 cat conftest.err >&5
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); } &&
33004 { ac_try='test -z "$ac_c_werror_flag"
33005 || test ! -s conftest.err'
33006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007 (eval $ac_try) 2>&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); }; } &&
33011 { ac_try='test -s conftest$ac_exeext'
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; }; then
33017 ac_cv_lib_crypt_crypt=yes
33019 echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33022 ac_cv_lib_crypt_crypt=no
33024 rm -f conftest.err conftest.$ac_objext \
33025 conftest$ac_exeext conftest.$ac_ext
33026 LIBS=$ac_check_lib_save_LIBS
33028 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33029 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33030 if test $ac_cv_lib_crypt_crypt = yes; then
33031 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33042 if test $have_crypt = yes ; then
33044 cat >>confdefs.h <<\_ACEOF
33045 #define HAVE_CRYPT 1
33049 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33050 echo "$as_me: WARNING: could not find crypt" >&2;}
33051 if test $ol_enable_crypt = yes ; then
33052 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33053 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33054 { (exit 1); exit 1; }; }
33057 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33058 echo "$as_me: WARNING: disabling crypt support" >&2;}
33063 if test $ol_enable_proctitle != no ; then
33064 echo "$as_me:$LINENO: checking for setproctitle" >&5
33065 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33066 if test "${ac_cv_func_setproctitle+set}" = set; then
33067 echo $ECHO_N "(cached) $ECHO_C" >&6
33069 cat >conftest.$ac_ext <<_ACEOF
33072 cat confdefs.h >>conftest.$ac_ext
33073 cat >>conftest.$ac_ext <<_ACEOF
33074 /* end confdefs.h. */
33075 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33077 #define setproctitle innocuous_setproctitle
33079 /* System header to define __stub macros and hopefully few prototypes,
33080 which can conflict with char setproctitle (); below.
33081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33082 <limits.h> exists even on freestanding compilers. */
33085 # include <limits.h>
33087 # include <assert.h>
33090 #undef setproctitle
33092 /* Override any gcc2 internal prototype to avoid an error. */
33097 /* We use char because int might match the return type of a gcc2
33098 builtin and then its argument prototype would still apply. */
33099 char setproctitle ();
33100 /* The GNU C library defines this for functions which it implements
33101 to always fail with ENOSYS. Some functions are actually named
33102 something starting with __ and the normal name is an alias. */
33103 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33106 char (*f) () = setproctitle;
33115 return f != setproctitle;
33120 rm -f conftest.$ac_objext conftest$ac_exeext
33121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33122 (eval $ac_link) 2>conftest.er1
33124 grep -v '^ *+' conftest.er1 >conftest.err
33126 cat conftest.err >&5
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); } &&
33129 { ac_try='test -z "$ac_c_werror_flag"
33130 || test ! -s conftest.err'
33131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132 (eval $ac_try) 2>&5
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); }; } &&
33136 { ac_try='test -s conftest$ac_exeext'
33137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138 (eval $ac_try) 2>&5
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); }; }; then
33142 ac_cv_func_setproctitle=yes
33144 echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33147 ac_cv_func_setproctitle=no
33149 rm -f conftest.err conftest.$ac_objext \
33150 conftest$ac_exeext conftest.$ac_ext
33152 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33153 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33154 if test $ac_cv_func_setproctitle = yes; then
33155 have_setproctitle=yes
33158 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33159 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33160 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33161 echo $ECHO_N "(cached) $ECHO_C" >&6
33163 ac_check_lib_save_LIBS=$LIBS
33164 LIBS="-lutil $LIBS"
33165 cat >conftest.$ac_ext <<_ACEOF
33168 cat confdefs.h >>conftest.$ac_ext
33169 cat >>conftest.$ac_ext <<_ACEOF
33170 /* end confdefs.h. */
33172 /* Override any gcc2 internal prototype to avoid an error. */
33176 /* We use char because int might match the return type of a gcc2
33177 builtin and then its argument prototype would still apply. */
33178 char setproctitle ();
33187 rm -f conftest.$ac_objext conftest$ac_exeext
33188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33189 (eval $ac_link) 2>conftest.er1
33191 grep -v '^ *+' conftest.er1 >conftest.err
33193 cat conftest.err >&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); } &&
33196 { ac_try='test -z "$ac_c_werror_flag"
33197 || test ! -s conftest.err'
33198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33199 (eval $ac_try) 2>&5
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; } &&
33203 { ac_try='test -s conftest$ac_exeext'
33204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33205 (eval $ac_try) 2>&5
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); }; }; then
33209 ac_cv_lib_util_setproctitle=yes
33211 echo "$as_me: failed program was:" >&5
33212 sed 's/^/| /' conftest.$ac_ext >&5
33214 ac_cv_lib_util_setproctitle=no
33216 rm -f conftest.err conftest.$ac_objext \
33217 conftest$ac_exeext conftest.$ac_ext
33218 LIBS=$ac_check_lib_save_LIBS
33220 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33221 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33222 if test $ac_cv_lib_util_setproctitle = yes; then
33223 have_setproctitle=yes
33224 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33226 have_setproctitle=no
33228 "setproctitle.$ac_objext" | \
33229 *" setproctitle.$ac_objext" | \
33230 "setproctitle.$ac_objext "* | \
33231 *" setproctitle.$ac_objext "* ) ;;
33232 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33235 LIBSRCS="$LIBSRCS setproctitle.c"
33241 if test $have_setproctitle = yes ; then
33243 cat >>confdefs.h <<\_ACEOF
33244 #define HAVE_SETPROCTITLE 1
33250 if test $ol_enable_slp != no ; then
33252 for ac_header in slp.h
33254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33256 echo "$as_me:$LINENO: checking for $ac_header" >&5
33257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33259 echo $ECHO_N "(cached) $ECHO_C" >&6
33261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33264 # Is the header compilable?
33265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33267 cat >conftest.$ac_ext <<_ACEOF
33270 cat confdefs.h >>conftest.$ac_ext
33271 cat >>conftest.$ac_ext <<_ACEOF
33272 /* end confdefs.h. */
33273 $ac_includes_default
33274 #include <$ac_header>
33276 rm -f conftest.$ac_objext
33277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33278 (eval $ac_compile) 2>conftest.er1
33280 grep -v '^ *+' conftest.er1 >conftest.err
33282 cat conftest.err >&5
33283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284 (exit $ac_status); } &&
33285 { ac_try='test -z "$ac_c_werror_flag"
33286 || test ! -s conftest.err'
33287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288 (eval $ac_try) 2>&5
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; } &&
33292 { ac_try='test -s conftest.$ac_objext'
33293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33294 (eval $ac_try) 2>&5
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; }; then
33298 ac_header_compiler=yes
33300 echo "$as_me: failed program was:" >&5
33301 sed 's/^/| /' conftest.$ac_ext >&5
33303 ac_header_compiler=no
33305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33307 echo "${ECHO_T}$ac_header_compiler" >&6
33309 # Is the header present?
33310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33312 cat >conftest.$ac_ext <<_ACEOF
33315 cat confdefs.h >>conftest.$ac_ext
33316 cat >>conftest.$ac_ext <<_ACEOF
33317 /* end confdefs.h. */
33318 #include <$ac_header>
33320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33321 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
33328 if test -s conftest.err; then
33329 ac_cpp_err=$ac_c_preproc_warn_flag
33330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33337 if test -z "$ac_cpp_err"; then
33338 ac_header_preproc=yes
33340 echo "$as_me: failed program was:" >&5
33341 sed 's/^/| /' conftest.$ac_ext >&5
33343 ac_header_preproc=no
33345 rm -f conftest.err conftest.$ac_ext
33346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33347 echo "${ECHO_T}$ac_header_preproc" >&6
33349 # So? What about this header?
33350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33356 ac_header_preproc=yes
33359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33373 ## --------------------------------------------- ##
33374 ## Report this to <http://www.openldap.org/its/> ##
33375 ## --------------------------------------------- ##
33378 sed "s/^/$as_me: WARNING: /" >&2
33381 echo "$as_me:$LINENO: checking for $ac_header" >&5
33382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33384 echo $ECHO_N "(cached) $ECHO_C" >&6
33386 eval "$as_ac_Header=\$ac_header_preproc"
33388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33393 cat >>confdefs.h <<_ACEOF
33394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33402 if test $ac_cv_header_slp_h = yes ; then
33403 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33404 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33405 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33406 echo $ECHO_N "(cached) $ECHO_C" >&6
33408 ac_check_lib_save_LIBS=$LIBS
33410 cat >conftest.$ac_ext <<_ACEOF
33413 cat confdefs.h >>conftest.$ac_ext
33414 cat >>conftest.$ac_ext <<_ACEOF
33415 /* end confdefs.h. */
33417 /* Override any gcc2 internal prototype to avoid an error. */
33421 /* We use char because int might match the return type of a gcc2
33422 builtin and then its argument prototype would still apply. */
33432 rm -f conftest.$ac_objext conftest$ac_exeext
33433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33434 (eval $ac_link) 2>conftest.er1
33436 grep -v '^ *+' conftest.er1 >conftest.err
33438 cat conftest.err >&5
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); } &&
33441 { ac_try='test -z "$ac_c_werror_flag"
33442 || test ! -s conftest.err'
33443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33444 (eval $ac_try) 2>&5
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); }; } &&
33448 { ac_try='test -s conftest$ac_exeext'
33449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450 (eval $ac_try) 2>&5
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; }; then
33454 ac_cv_lib_slp_SLPOpen=yes
33456 echo "$as_me: failed program was:" >&5
33457 sed 's/^/| /' conftest.$ac_ext >&5
33459 ac_cv_lib_slp_SLPOpen=no
33461 rm -f conftest.err conftest.$ac_objext \
33462 conftest$ac_exeext conftest.$ac_ext
33463 LIBS=$ac_check_lib_save_LIBS
33465 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33466 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33467 if test $ac_cv_lib_slp_SLPOpen = yes; then
33473 if test $have_slp = yes ; then
33475 cat >>confdefs.h <<\_ACEOF
33479 SLAPD_SLP_LIBS=-lslp
33482 elif test $ol_enable_slp = yes ; then
33483 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33484 echo "$as_me: error: SLP not found" >&2;}
33485 { (exit 1); exit 1; }; }
33490 echo "$as_me:$LINENO: checking for mode_t" >&5
33491 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33492 if test "${ac_cv_type_mode_t+set}" = set; then
33493 echo $ECHO_N "(cached) $ECHO_C" >&6
33495 cat >conftest.$ac_ext <<_ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h. */
33501 $ac_includes_default
33507 if (sizeof (mode_t))
33513 rm -f conftest.$ac_objext
33514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33515 (eval $ac_compile) 2>conftest.er1
33517 grep -v '^ *+' conftest.er1 >conftest.err
33519 cat conftest.err >&5
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); } &&
33522 { ac_try='test -z "$ac_c_werror_flag"
33523 || test ! -s conftest.err'
33524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33525 (eval $ac_try) 2>&5
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); }; } &&
33529 { ac_try='test -s conftest.$ac_objext'
33530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33531 (eval $ac_try) 2>&5
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); }; }; then
33535 ac_cv_type_mode_t=yes
33537 echo "$as_me: failed program was:" >&5
33538 sed 's/^/| /' conftest.$ac_ext >&5
33540 ac_cv_type_mode_t=no
33542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33544 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33545 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33546 if test $ac_cv_type_mode_t = yes; then
33550 cat >>confdefs.h <<_ACEOF
33556 echo "$as_me:$LINENO: checking for off_t" >&5
33557 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33558 if test "${ac_cv_type_off_t+set}" = set; then
33559 echo $ECHO_N "(cached) $ECHO_C" >&6
33561 cat >conftest.$ac_ext <<_ACEOF
33564 cat confdefs.h >>conftest.$ac_ext
33565 cat >>conftest.$ac_ext <<_ACEOF
33566 /* end confdefs.h. */
33567 $ac_includes_default
33573 if (sizeof (off_t))
33579 rm -f conftest.$ac_objext
33580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33581 (eval $ac_compile) 2>conftest.er1
33583 grep -v '^ *+' conftest.er1 >conftest.err
33585 cat conftest.err >&5
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } &&
33588 { ac_try='test -z "$ac_c_werror_flag"
33589 || test ! -s conftest.err'
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; } &&
33595 { ac_try='test -s conftest.$ac_objext'
33596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33597 (eval $ac_try) 2>&5
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); }; }; then
33601 ac_cv_type_off_t=yes
33603 echo "$as_me: failed program was:" >&5
33604 sed 's/^/| /' conftest.$ac_ext >&5
33606 ac_cv_type_off_t=no
33608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33610 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33611 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33612 if test $ac_cv_type_off_t = yes; then
33616 cat >>confdefs.h <<_ACEOF
33622 echo "$as_me:$LINENO: checking for pid_t" >&5
33623 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33624 if test "${ac_cv_type_pid_t+set}" = set; then
33625 echo $ECHO_N "(cached) $ECHO_C" >&6
33627 cat >conftest.$ac_ext <<_ACEOF
33630 cat confdefs.h >>conftest.$ac_ext
33631 cat >>conftest.$ac_ext <<_ACEOF
33632 /* end confdefs.h. */
33633 $ac_includes_default
33639 if (sizeof (pid_t))
33645 rm -f conftest.$ac_objext
33646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33647 (eval $ac_compile) 2>conftest.er1
33649 grep -v '^ *+' conftest.er1 >conftest.err
33651 cat conftest.err >&5
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); } &&
33654 { ac_try='test -z "$ac_c_werror_flag"
33655 || test ! -s conftest.err'
33656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33657 (eval $ac_try) 2>&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); }; } &&
33661 { ac_try='test -s conftest.$ac_objext'
33662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33663 (eval $ac_try) 2>&5
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); }; }; then
33667 ac_cv_type_pid_t=yes
33669 echo "$as_me: failed program was:" >&5
33670 sed 's/^/| /' conftest.$ac_ext >&5
33672 ac_cv_type_pid_t=no
33674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33676 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33678 if test $ac_cv_type_pid_t = yes; then
33682 cat >>confdefs.h <<_ACEOF
33688 echo "$as_me:$LINENO: checking for ssize_t" >&5
33689 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33690 if test "${ac_cv_type_ssize_t+set}" = set; then
33691 echo $ECHO_N "(cached) $ECHO_C" >&6
33693 cat >conftest.$ac_ext <<_ACEOF
33696 cat confdefs.h >>conftest.$ac_ext
33697 cat >>conftest.$ac_ext <<_ACEOF
33698 /* end confdefs.h. */
33699 $ac_includes_default
33705 if (sizeof (ssize_t))
33711 rm -f conftest.$ac_objext
33712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33713 (eval $ac_compile) 2>conftest.er1
33715 grep -v '^ *+' conftest.er1 >conftest.err
33717 cat conftest.err >&5
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); } &&
33720 { ac_try='test -z "$ac_c_werror_flag"
33721 || test ! -s conftest.err'
33722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723 (eval $ac_try) 2>&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); }; } &&
33727 { ac_try='test -s conftest.$ac_objext'
33728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33729 (eval $ac_try) 2>&5
33731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732 (exit $ac_status); }; }; then
33733 ac_cv_type_ssize_t=yes
33735 echo "$as_me: failed program was:" >&5
33736 sed 's/^/| /' conftest.$ac_ext >&5
33738 ac_cv_type_ssize_t=no
33740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33742 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33743 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33744 if test $ac_cv_type_ssize_t = yes; then
33748 cat >>confdefs.h <<_ACEOF
33749 #define ssize_t signed int
33754 echo "$as_me:$LINENO: checking for caddr_t" >&5
33755 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33756 if test "${ac_cv_type_caddr_t+set}" = set; then
33757 echo $ECHO_N "(cached) $ECHO_C" >&6
33759 cat >conftest.$ac_ext <<_ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h. */
33765 $ac_includes_default
33771 if (sizeof (caddr_t))
33777 rm -f conftest.$ac_objext
33778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33779 (eval $ac_compile) 2>conftest.er1
33781 grep -v '^ *+' conftest.er1 >conftest.err
33783 cat conftest.err >&5
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); } &&
33786 { ac_try='test -z "$ac_c_werror_flag"
33787 || test ! -s conftest.err'
33788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789 (eval $ac_try) 2>&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; } &&
33793 { ac_try='test -s conftest.$ac_objext'
33794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795 (eval $ac_try) 2>&5
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; }; then
33799 ac_cv_type_caddr_t=yes
33801 echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33804 ac_cv_type_caddr_t=no
33806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33808 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33809 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33810 if test $ac_cv_type_caddr_t = yes; then
33814 cat >>confdefs.h <<_ACEOF
33815 #define caddr_t char *
33820 echo "$as_me:$LINENO: checking for size_t" >&5
33821 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33822 if test "${ac_cv_type_size_t+set}" = set; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33825 cat >conftest.$ac_ext <<_ACEOF
33828 cat confdefs.h >>conftest.$ac_ext
33829 cat >>conftest.$ac_ext <<_ACEOF
33830 /* end confdefs.h. */
33831 $ac_includes_default
33837 if (sizeof (size_t))
33843 rm -f conftest.$ac_objext
33844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33845 (eval $ac_compile) 2>conftest.er1
33847 grep -v '^ *+' conftest.er1 >conftest.err
33849 cat conftest.err >&5
33850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851 (exit $ac_status); } &&
33852 { ac_try='test -z "$ac_c_werror_flag"
33853 || test ! -s conftest.err'
33854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33855 (eval $ac_try) 2>&5
33857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858 (exit $ac_status); }; } &&
33859 { ac_try='test -s conftest.$ac_objext'
33860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33861 (eval $ac_try) 2>&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); }; }; then
33865 ac_cv_type_size_t=yes
33867 echo "$as_me: failed program was:" >&5
33868 sed 's/^/| /' conftest.$ac_ext >&5
33870 ac_cv_type_size_t=no
33872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33874 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33875 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33876 if test $ac_cv_type_size_t = yes; then
33880 cat >>confdefs.h <<_ACEOF
33881 #define size_t unsigned
33887 echo "$as_me:$LINENO: checking for long long" >&5
33888 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33889 if test "${ac_cv_type_long_long+set}" = set; then
33890 echo $ECHO_N "(cached) $ECHO_C" >&6
33892 cat >conftest.$ac_ext <<_ACEOF
33895 cat confdefs.h >>conftest.$ac_ext
33896 cat >>conftest.$ac_ext <<_ACEOF
33897 /* end confdefs.h. */
33898 $ac_includes_default
33902 if ((long long *) 0)
33904 if (sizeof (long long))
33910 rm -f conftest.$ac_objext
33911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33912 (eval $ac_compile) 2>conftest.er1
33914 grep -v '^ *+' conftest.er1 >conftest.err
33916 cat conftest.err >&5
33917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918 (exit $ac_status); } &&
33919 { ac_try='test -z "$ac_c_werror_flag"
33920 || test ! -s conftest.err'
33921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33922 (eval $ac_try) 2>&5
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925 (exit $ac_status); }; } &&
33926 { ac_try='test -s conftest.$ac_objext'
33927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33928 (eval $ac_try) 2>&5
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); }; }; then
33932 ac_cv_type_long_long=yes
33934 echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33937 ac_cv_type_long_long=no
33939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33941 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33942 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33943 if test $ac_cv_type_long_long = yes; then
33945 cat >>confdefs.h <<_ACEOF
33946 #define HAVE_LONG_LONG 1
33952 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33953 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33954 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33955 echo $ECHO_N "(cached) $ECHO_C" >&6
33957 cat >conftest.$ac_ext <<_ACEOF
33960 cat confdefs.h >>conftest.$ac_ext
33961 cat >>conftest.$ac_ext <<_ACEOF
33962 /* end confdefs.h. */
33963 $ac_includes_default
33967 if ((ptrdiff_t *) 0)
33969 if (sizeof (ptrdiff_t))
33975 rm -f conftest.$ac_objext
33976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33977 (eval $ac_compile) 2>conftest.er1
33979 grep -v '^ *+' conftest.er1 >conftest.err
33981 cat conftest.err >&5
33982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33983 (exit $ac_status); } &&
33984 { ac_try='test -z "$ac_c_werror_flag"
33985 || test ! -s conftest.err'
33986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33987 (eval $ac_try) 2>&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); }; } &&
33991 { ac_try='test -s conftest.$ac_objext'
33992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33993 (eval $ac_try) 2>&5
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; }; then
33997 ac_cv_type_ptrdiff_t=yes
33999 echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.$ac_ext >&5
34002 ac_cv_type_ptrdiff_t=no
34004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34006 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34007 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34008 if test $ac_cv_type_ptrdiff_t = yes; then
34010 cat >>confdefs.h <<_ACEOF
34011 #define HAVE_PTRDIFF_T 1
34019 echo "$as_me:$LINENO: checking for socklen_t" >&5
34020 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34021 if test "${ac_cv_type_socklen_t+set}" = set; then
34022 echo $ECHO_N "(cached) $ECHO_C" >&6
34024 cat >conftest.$ac_ext <<_ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h. */
34030 $ac_includes_default
34031 #ifdef HAVE_SYS_SOCKET_H
34032 #include <sys/socket.h>
34038 if ((socklen_t *) 0)
34040 if (sizeof (socklen_t))
34046 rm -f conftest.$ac_objext
34047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34048 (eval $ac_compile) 2>conftest.er1
34050 grep -v '^ *+' conftest.er1 >conftest.err
34052 cat conftest.err >&5
34053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054 (exit $ac_status); } &&
34055 { ac_try='test -z "$ac_c_werror_flag"
34056 || test ! -s conftest.err'
34057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34058 (eval $ac_try) 2>&5
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); }; } &&
34062 { ac_try='test -s conftest.$ac_objext'
34063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34064 (eval $ac_try) 2>&5
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); }; }; then
34068 ac_cv_type_socklen_t=yes
34070 echo "$as_me: failed program was:" >&5
34071 sed 's/^/| /' conftest.$ac_ext >&5
34073 ac_cv_type_socklen_t=no
34075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34077 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34078 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34081 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
34082 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
34083 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
34084 echo $ECHO_N "(cached) $ECHO_C" >&6
34087 set socklen_t int unsigned "unsigned long" long size_t
34088 test "$ac_cv_type_socklen_t" = yes || shift
34089 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
34090 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
34091 cat >conftest.$ac_ext <<_ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h. */
34097 $ac_includes_default
34098 #ifdef HAVE_SYS_SOCKET_H
34099 #include <sys/socket.h>
34101 extern int accept(int s, $addrtype *ap, $lentype *lp);
34107 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
34113 rm -f conftest.$ac_objext
34114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34115 (eval $ac_compile) 2>conftest.er1
34117 grep -v '^ *+' conftest.er1 >conftest.err
34119 cat conftest.err >&5
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); } &&
34122 { ac_try='test -z "$ac_c_werror_flag"
34123 || test ! -s conftest.err'
34124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34125 (eval $ac_try) 2>&5
34127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34128 (exit $ac_status); }; } &&
34129 { ac_try='test -s conftest.$ac_objext'
34130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 (eval $ac_try) 2>&5
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); }; }; then
34135 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
34137 echo "$as_me: failed program was:" >&5
34138 sed 's/^/| /' conftest.$ac_ext >&5
34141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34145 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
34146 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
34148 cat >>confdefs.h <<_ACEOF
34149 #define ber_socklen_t $ol_cv_type_ber_socklen_t
34153 if test "$ac_cv_type_socklen_t" != yes; then
34155 cat >>confdefs.h <<_ACEOF
34156 #define socklen_t $ol_cv_type_ber_socklen_t
34162 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34163 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34164 if test "${ac_cv_type_signal+set}" = set; then
34165 echo $ECHO_N "(cached) $ECHO_C" >&6
34167 cat >conftest.$ac_ext <<_ACEOF
34170 cat confdefs.h >>conftest.$ac_ext
34171 cat >>conftest.$ac_ext <<_ACEOF
34172 /* end confdefs.h. */
34173 #include <sys/types.h>
34174 #include <signal.h>
34179 extern "C" void (*signal (int, void (*)(int)))(int);
34181 void (*signal ()) ();
34192 rm -f conftest.$ac_objext
34193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34194 (eval $ac_compile) 2>conftest.er1
34196 grep -v '^ *+' conftest.er1 >conftest.err
34198 cat conftest.err >&5
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); } &&
34201 { ac_try='test -z "$ac_c_werror_flag"
34202 || test ! -s conftest.err'
34203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204 (eval $ac_try) 2>&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; } &&
34208 { ac_try='test -s conftest.$ac_objext'
34209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210 (eval $ac_try) 2>&5
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); }; }; then
34214 ac_cv_type_signal=void
34216 echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34219 ac_cv_type_signal=int
34221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34223 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34224 echo "${ECHO_T}$ac_cv_type_signal" >&6
34226 cat >>confdefs.h <<_ACEOF
34227 #define RETSIGTYPE $ac_cv_type_signal
34232 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34233 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34234 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34235 echo $ECHO_N "(cached) $ECHO_C" >&6
34237 cat >conftest.$ac_ext <<_ACEOF
34240 cat confdefs.h >>conftest.$ac_ext
34241 cat >>conftest.$ac_ext <<_ACEOF
34242 /* end confdefs.h. */
34243 $ac_includes_default
34244 #include <signal.h>
34250 if ((sig_atomic_t *) 0)
34252 if (sizeof (sig_atomic_t))
34258 rm -f conftest.$ac_objext
34259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34260 (eval $ac_compile) 2>conftest.er1
34262 grep -v '^ *+' conftest.er1 >conftest.err
34264 cat conftest.err >&5
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); } &&
34267 { ac_try='test -z "$ac_c_werror_flag"
34268 || test ! -s conftest.err'
34269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34270 (eval $ac_try) 2>&5
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); }; } &&
34274 { ac_try='test -s conftest.$ac_objext'
34275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34276 (eval $ac_try) 2>&5
34278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34279 (exit $ac_status); }; }; then
34280 ac_cv_type_sig_atomic_t=yes
34282 echo "$as_me: failed program was:" >&5
34283 sed 's/^/| /' conftest.$ac_ext >&5
34285 ac_cv_type_sig_atomic_t=no
34287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34289 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34290 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34291 if test $ac_cv_type_sig_atomic_t = yes; then
34295 cat >>confdefs.h <<_ACEOF
34296 #define sig_atomic_t int
34302 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34303 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34304 if test "${ac_cv_type_uid_t+set}" = set; then
34305 echo $ECHO_N "(cached) $ECHO_C" >&6
34307 cat >conftest.$ac_ext <<_ACEOF
34310 cat confdefs.h >>conftest.$ac_ext
34311 cat >>conftest.$ac_ext <<_ACEOF
34312 /* end confdefs.h. */
34313 #include <sys/types.h>
34316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34317 $EGREP "uid_t" >/dev/null 2>&1; then
34318 ac_cv_type_uid_t=yes
34320 ac_cv_type_uid_t=no
34325 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34326 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34327 if test $ac_cv_type_uid_t = no; then
34329 cat >>confdefs.h <<\_ACEOF
34334 cat >>confdefs.h <<\_ACEOF
34341 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34342 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34343 if test "${ac_cv_header_time+set}" = set; then
34344 echo $ECHO_N "(cached) $ECHO_C" >&6
34346 cat >conftest.$ac_ext <<_ACEOF
34349 cat confdefs.h >>conftest.$ac_ext
34350 cat >>conftest.$ac_ext <<_ACEOF
34351 /* end confdefs.h. */
34352 #include <sys/types.h>
34353 #include <sys/time.h>
34359 if ((struct tm *) 0)
34365 rm -f conftest.$ac_objext
34366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34367 (eval $ac_compile) 2>conftest.er1
34369 grep -v '^ *+' conftest.er1 >conftest.err
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } &&
34374 { ac_try='test -z "$ac_c_werror_flag"
34375 || test ! -s conftest.err'
34376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34377 (eval $ac_try) 2>&5
34379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380 (exit $ac_status); }; } &&
34381 { ac_try='test -s conftest.$ac_objext'
34382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34383 (eval $ac_try) 2>&5
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); }; }; then
34387 ac_cv_header_time=yes
34389 echo "$as_me: failed program was:" >&5
34390 sed 's/^/| /' conftest.$ac_ext >&5
34392 ac_cv_header_time=no
34394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34396 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34397 echo "${ECHO_T}$ac_cv_header_time" >&6
34398 if test $ac_cv_header_time = yes; then
34400 cat >>confdefs.h <<\_ACEOF
34401 #define TIME_WITH_SYS_TIME 1
34406 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34407 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34408 if test "${ac_cv_struct_tm+set}" = set; then
34409 echo $ECHO_N "(cached) $ECHO_C" >&6
34411 cat >conftest.$ac_ext <<_ACEOF
34414 cat confdefs.h >>conftest.$ac_ext
34415 cat >>conftest.$ac_ext <<_ACEOF
34416 /* end confdefs.h. */
34417 #include <sys/types.h>
34423 struct tm *tp; tp->tm_sec;
34428 rm -f conftest.$ac_objext
34429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34430 (eval $ac_compile) 2>conftest.er1
34432 grep -v '^ *+' conftest.er1 >conftest.err
34434 cat conftest.err >&5
34435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34436 (exit $ac_status); } &&
34437 { ac_try='test -z "$ac_c_werror_flag"
34438 || test ! -s conftest.err'
34439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34440 (eval $ac_try) 2>&5
34442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443 (exit $ac_status); }; } &&
34444 { ac_try='test -s conftest.$ac_objext'
34445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446 (eval $ac_try) 2>&5
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; }; then
34450 ac_cv_struct_tm=time.h
34452 echo "$as_me: failed program was:" >&5
34453 sed 's/^/| /' conftest.$ac_ext >&5
34455 ac_cv_struct_tm=sys/time.h
34457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34459 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34460 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34461 if test $ac_cv_struct_tm = sys/time.h; then
34463 cat >>confdefs.h <<\_ACEOF
34464 #define TM_IN_SYS_TIME 1
34469 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34470 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34471 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34472 echo $ECHO_N "(cached) $ECHO_C" >&6
34474 cat >conftest.$ac_ext <<_ACEOF
34477 cat confdefs.h >>conftest.$ac_ext
34478 cat >>conftest.$ac_ext <<_ACEOF
34479 /* end confdefs.h. */
34480 $ac_includes_default
34484 static struct stat ac_aggr;
34485 if (ac_aggr.st_blksize)
34491 rm -f conftest.$ac_objext
34492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34493 (eval $ac_compile) 2>conftest.er1
34495 grep -v '^ *+' conftest.er1 >conftest.err
34497 cat conftest.err >&5
34498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499 (exit $ac_status); } &&
34500 { ac_try='test -z "$ac_c_werror_flag"
34501 || test ! -s conftest.err'
34502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34503 (eval $ac_try) 2>&5
34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506 (exit $ac_status); }; } &&
34507 { ac_try='test -s conftest.$ac_objext'
34508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34509 (eval $ac_try) 2>&5
34511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512 (exit $ac_status); }; }; then
34513 ac_cv_member_struct_stat_st_blksize=yes
34515 echo "$as_me: failed program was:" >&5
34516 sed 's/^/| /' conftest.$ac_ext >&5
34518 cat >conftest.$ac_ext <<_ACEOF
34521 cat confdefs.h >>conftest.$ac_ext
34522 cat >>conftest.$ac_ext <<_ACEOF
34523 /* end confdefs.h. */
34524 $ac_includes_default
34528 static struct stat ac_aggr;
34529 if (sizeof ac_aggr.st_blksize)
34535 rm -f conftest.$ac_objext
34536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34537 (eval $ac_compile) 2>conftest.er1
34539 grep -v '^ *+' conftest.er1 >conftest.err
34541 cat conftest.err >&5
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); } &&
34544 { ac_try='test -z "$ac_c_werror_flag"
34545 || test ! -s conftest.err'
34546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547 (eval $ac_try) 2>&5
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); }; } &&
34551 { ac_try='test -s conftest.$ac_objext'
34552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553 (eval $ac_try) 2>&5
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; }; then
34557 ac_cv_member_struct_stat_st_blksize=yes
34559 echo "$as_me: failed program was:" >&5
34560 sed 's/^/| /' conftest.$ac_ext >&5
34562 ac_cv_member_struct_stat_st_blksize=no
34564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34568 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34569 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34570 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34572 cat >>confdefs.h <<_ACEOF
34573 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34579 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34580 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34581 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34582 echo $ECHO_N "(cached) $ECHO_C" >&6
34584 cat >conftest.$ac_ext <<_ACEOF
34587 cat confdefs.h >>conftest.$ac_ext
34588 cat >>conftest.$ac_ext <<_ACEOF
34589 /* end confdefs.h. */
34590 $ac_includes_default
34596 static struct passwd ac_aggr;
34597 if (ac_aggr.pw_gecos)
34603 rm -f conftest.$ac_objext
34604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34605 (eval $ac_compile) 2>conftest.er1
34607 grep -v '^ *+' conftest.er1 >conftest.err
34609 cat conftest.err >&5
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); } &&
34612 { ac_try='test -z "$ac_c_werror_flag"
34613 || test ! -s conftest.err'
34614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34615 (eval $ac_try) 2>&5
34617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618 (exit $ac_status); }; } &&
34619 { ac_try='test -s conftest.$ac_objext'
34620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34621 (eval $ac_try) 2>&5
34623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 (exit $ac_status); }; }; then
34625 ac_cv_member_struct_passwd_pw_gecos=yes
34627 echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34630 cat >conftest.$ac_ext <<_ACEOF
34633 cat confdefs.h >>conftest.$ac_ext
34634 cat >>conftest.$ac_ext <<_ACEOF
34635 /* end confdefs.h. */
34636 $ac_includes_default
34642 static struct passwd ac_aggr;
34643 if (sizeof ac_aggr.pw_gecos)
34649 rm -f conftest.$ac_objext
34650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34651 (eval $ac_compile) 2>conftest.er1
34653 grep -v '^ *+' conftest.er1 >conftest.err
34655 cat conftest.err >&5
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); } &&
34658 { ac_try='test -z "$ac_c_werror_flag"
34659 || test ! -s conftest.err'
34660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34661 (eval $ac_try) 2>&5
34663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664 (exit $ac_status); }; } &&
34665 { ac_try='test -s conftest.$ac_objext'
34666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34667 (eval $ac_try) 2>&5
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); }; }; then
34671 ac_cv_member_struct_passwd_pw_gecos=yes
34673 echo "$as_me: failed program was:" >&5
34674 sed 's/^/| /' conftest.$ac_ext >&5
34676 ac_cv_member_struct_passwd_pw_gecos=no
34678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34682 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34683 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34684 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34686 cat >>confdefs.h <<_ACEOF
34687 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34693 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34694 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34695 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34696 echo $ECHO_N "(cached) $ECHO_C" >&6
34698 cat >conftest.$ac_ext <<_ACEOF
34701 cat confdefs.h >>conftest.$ac_ext
34702 cat >>conftest.$ac_ext <<_ACEOF
34703 /* end confdefs.h. */
34704 $ac_includes_default
34710 static struct passwd ac_aggr;
34711 if (ac_aggr.pw_passwd)
34717 rm -f conftest.$ac_objext
34718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34719 (eval $ac_compile) 2>conftest.er1
34721 grep -v '^ *+' conftest.er1 >conftest.err
34723 cat conftest.err >&5
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); } &&
34726 { ac_try='test -z "$ac_c_werror_flag"
34727 || test ! -s conftest.err'
34728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34729 (eval $ac_try) 2>&5
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); }; } &&
34733 { ac_try='test -s conftest.$ac_objext'
34734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34735 (eval $ac_try) 2>&5
34737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738 (exit $ac_status); }; }; then
34739 ac_cv_member_struct_passwd_pw_passwd=yes
34741 echo "$as_me: failed program was:" >&5
34742 sed 's/^/| /' conftest.$ac_ext >&5
34744 cat >conftest.$ac_ext <<_ACEOF
34747 cat confdefs.h >>conftest.$ac_ext
34748 cat >>conftest.$ac_ext <<_ACEOF
34749 /* end confdefs.h. */
34750 $ac_includes_default
34756 static struct passwd ac_aggr;
34757 if (sizeof ac_aggr.pw_passwd)
34763 rm -f conftest.$ac_objext
34764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34765 (eval $ac_compile) 2>conftest.er1
34767 grep -v '^ *+' conftest.er1 >conftest.err
34769 cat conftest.err >&5
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); } &&
34772 { ac_try='test -z "$ac_c_werror_flag"
34773 || test ! -s conftest.err'
34774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34775 (eval $ac_try) 2>&5
34777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778 (exit $ac_status); }; } &&
34779 { ac_try='test -s conftest.$ac_objext'
34780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34781 (eval $ac_try) 2>&5
34783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784 (exit $ac_status); }; }; then
34785 ac_cv_member_struct_passwd_pw_passwd=yes
34787 echo "$as_me: failed program was:" >&5
34788 sed 's/^/| /' conftest.$ac_ext >&5
34790 ac_cv_member_struct_passwd_pw_passwd=no
34792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34796 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34797 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34798 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34800 cat >>confdefs.h <<_ACEOF
34801 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34808 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34809 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34810 if test "${ol_cv_c_upper_lower+set}" = set; then
34811 echo $ECHO_N "(cached) $ECHO_C" >&6
34814 if test "$cross_compiling" = yes; then
34815 ol_cv_c_upper_lower=safe
34817 cat >conftest.$ac_ext <<_ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h. */
34827 if ('C' == toupper('C'))
34833 rm -f conftest$ac_exeext
34834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34835 (eval $ac_link) 2>&5
34837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34840 (eval $ac_try) 2>&5
34842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34843 (exit $ac_status); }; }; then
34844 ol_cv_c_upper_lower=no
34846 echo "$as_me: program exited with status $ac_status" >&5
34847 echo "$as_me: failed program was:" >&5
34848 sed 's/^/| /' conftest.$ac_ext >&5
34850 ( exit $ac_status )
34851 ol_cv_c_upper_lower=yes
34853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34856 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34857 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34858 if test $ol_cv_c_upper_lower != no ; then
34860 cat >>confdefs.h <<\_ACEOF
34861 #define C_UPPER_LOWER 1
34866 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34867 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34868 if test "${ac_cv_c_const+set}" = set; then
34869 echo $ECHO_N "(cached) $ECHO_C" >&6
34871 cat >conftest.$ac_ext <<_ACEOF
34874 cat confdefs.h >>conftest.$ac_ext
34875 cat >>conftest.$ac_ext <<_ACEOF
34876 /* end confdefs.h. */
34881 /* FIXME: Include the comments suggested by Paul. */
34882 #ifndef __cplusplus
34883 /* Ultrix mips cc rejects this. */
34884 typedef int charset[2];
34886 /* SunOS 4.1.1 cc rejects this. */
34887 char const *const *ccp;
34889 /* NEC SVR4.0.2 mips cc rejects this. */
34890 struct point {int x, y;};
34891 static struct point const zero = {0,0};
34892 /* AIX XL C 1.02.0.0 rejects this.
34893 It does not let you subtract one const X* pointer from another in
34894 an arm of an if-expression whose if-part is not a constant
34896 const char *g = "string";
34897 ccp = &g + (g ? g-g : 0);
34898 /* HPUX 7.0 cc rejects these. */
34901 ccp = (char const *const *) p;
34902 { /* SCO 3.2v4 cc rejects this. */
34904 char const *s = 0 ? (char *) 0 : (char const *) 0;
34908 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34909 int x[] = {25, 17};
34910 const int *foo = &x[0];
34913 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34914 typedef const int *iptr;
34918 { /* AIX XL C 1.02.0.0 rejects this saying
34919 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34920 struct s { int j; const int *ap[3]; };
34921 struct s *b; b->j = 5;
34923 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34924 const int foo = 10;
34932 rm -f conftest.$ac_objext
34933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34934 (eval $ac_compile) 2>conftest.er1
34936 grep -v '^ *+' conftest.er1 >conftest.err
34938 cat conftest.err >&5
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); } &&
34941 { ac_try='test -z "$ac_c_werror_flag"
34942 || test ! -s conftest.err'
34943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34944 (eval $ac_try) 2>&5
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; } &&
34948 { ac_try='test -s conftest.$ac_objext'
34949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34950 (eval $ac_try) 2>&5
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); }; }; then
34956 echo "$as_me: failed program was:" >&5
34957 sed 's/^/| /' conftest.$ac_ext >&5
34961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34963 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34964 echo "${ECHO_T}$ac_cv_c_const" >&6
34965 if test $ac_cv_c_const = no; then
34967 cat >>confdefs.h <<\_ACEOF
34973 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34974 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34975 if test "${ol_cv_c_volatile+set}" = set; then
34976 echo $ECHO_N "(cached) $ECHO_C" >&6
34978 cat >conftest.$ac_ext <<_ACEOF
34981 cat confdefs.h >>conftest.$ac_ext
34982 cat >>conftest.$ac_ext <<_ACEOF
34983 /* end confdefs.h. */
34988 volatile int a; int * volatile b = x ? &y : &z;
34989 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34995 rm -f conftest.$ac_objext
34996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34997 (eval $ac_compile) 2>conftest.er1
34999 grep -v '^ *+' conftest.er1 >conftest.err
35001 cat conftest.err >&5
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); } &&
35004 { ac_try='test -z "$ac_c_werror_flag"
35005 || test ! -s conftest.err'
35006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35007 (eval $ac_try) 2>&5
35009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010 (exit $ac_status); }; } &&
35011 { ac_try='test -s conftest.$ac_objext'
35012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35013 (eval $ac_try) 2>&5
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); }; }; then
35017 ol_cv_c_volatile=yes
35019 echo "$as_me: failed program was:" >&5
35020 sed 's/^/| /' conftest.$ac_ext >&5
35022 ol_cv_c_volatile=no
35024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35026 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35027 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35028 if test $ol_cv_c_volatile = yes; then
35032 cat >>confdefs.h <<\_ACEOF
35039 if test $cross_compiling = yes ; then
35040 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35041 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35043 cat >>confdefs.h <<\_ACEOF
35044 #define CROSS_COMPILING 1
35048 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35049 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35050 if test "${ac_cv_c_bigendian+set}" = set; then
35051 echo $ECHO_N "(cached) $ECHO_C" >&6
35053 # See if sys/param.h defines the BYTE_ORDER macro.
35054 cat >conftest.$ac_ext <<_ACEOF
35057 cat confdefs.h >>conftest.$ac_ext
35058 cat >>conftest.$ac_ext <<_ACEOF
35059 /* end confdefs.h. */
35060 #include <sys/types.h>
35061 #include <sys/param.h>
35066 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35067 bogus endian macros
35074 rm -f conftest.$ac_objext
35075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35076 (eval $ac_compile) 2>conftest.er1
35078 grep -v '^ *+' conftest.er1 >conftest.err
35080 cat conftest.err >&5
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); } &&
35083 { ac_try='test -z "$ac_c_werror_flag"
35084 || test ! -s conftest.err'
35085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35086 (eval $ac_try) 2>&5
35088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35089 (exit $ac_status); }; } &&
35090 { ac_try='test -s conftest.$ac_objext'
35091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35092 (eval $ac_try) 2>&5
35094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); }; }; then
35096 # It does; now see whether it defined to BIG_ENDIAN or not.
35097 cat >conftest.$ac_ext <<_ACEOF
35100 cat confdefs.h >>conftest.$ac_ext
35101 cat >>conftest.$ac_ext <<_ACEOF
35102 /* end confdefs.h. */
35103 #include <sys/types.h>
35104 #include <sys/param.h>
35109 #if BYTE_ORDER != BIG_ENDIAN
35117 rm -f conftest.$ac_objext
35118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35119 (eval $ac_compile) 2>conftest.er1
35121 grep -v '^ *+' conftest.er1 >conftest.err
35123 cat conftest.err >&5
35124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125 (exit $ac_status); } &&
35126 { ac_try='test -z "$ac_c_werror_flag"
35127 || test ! -s conftest.err'
35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129 (eval $ac_try) 2>&5
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); }; } &&
35133 { ac_try='test -s conftest.$ac_objext'
35134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35135 (eval $ac_try) 2>&5
35137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138 (exit $ac_status); }; }; then
35139 ac_cv_c_bigendian=yes
35141 echo "$as_me: failed program was:" >&5
35142 sed 's/^/| /' conftest.$ac_ext >&5
35144 ac_cv_c_bigendian=no
35146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35148 echo "$as_me: failed program was:" >&5
35149 sed 's/^/| /' conftest.$ac_ext >&5
35151 # It does not; compile a test program.
35152 if test "$cross_compiling" = yes; then
35153 # try to guess the endianness by grepping values into an object file
35154 ac_cv_c_bigendian=unknown
35155 cat >conftest.$ac_ext <<_ACEOF
35158 cat confdefs.h >>conftest.$ac_ext
35159 cat >>conftest.$ac_ext <<_ACEOF
35160 /* end confdefs.h. */
35161 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35162 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35163 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35164 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35165 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35166 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35170 _ascii (); _ebcdic ();
35175 rm -f conftest.$ac_objext
35176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35177 (eval $ac_compile) 2>conftest.er1
35179 grep -v '^ *+' conftest.er1 >conftest.err
35181 cat conftest.err >&5
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); } &&
35184 { ac_try='test -z "$ac_c_werror_flag"
35185 || test ! -s conftest.err'
35186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35187 (eval $ac_try) 2>&5
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); }; } &&
35191 { ac_try='test -s conftest.$ac_objext'
35192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35193 (eval $ac_try) 2>&5
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); }; }; then
35197 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35198 ac_cv_c_bigendian=yes
35200 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35201 if test "$ac_cv_c_bigendian" = unknown; then
35202 ac_cv_c_bigendian=no
35204 # finding both strings is unlikely to happen, but who knows?
35205 ac_cv_c_bigendian=unknown
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35215 cat >conftest.$ac_ext <<_ACEOF
35218 cat confdefs.h >>conftest.$ac_ext
35219 cat >>conftest.$ac_ext <<_ACEOF
35220 /* end confdefs.h. */
35224 /* Are we little or big endian? From Harbison&Steele. */
35228 char c[sizeof (long)];
35231 exit (u.c[sizeof (long) - 1] == 1);
35234 rm -f conftest$ac_exeext
35235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35236 (eval $ac_link) 2>&5
35238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; }; then
35245 ac_cv_c_bigendian=no
35247 echo "$as_me: program exited with status $ac_status" >&5
35248 echo "$as_me: failed program was:" >&5
35249 sed 's/^/| /' conftest.$ac_ext >&5
35251 ( exit $ac_status )
35252 ac_cv_c_bigendian=yes
35254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35259 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35260 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35261 case $ac_cv_c_bigendian in
35264 cat >>confdefs.h <<\_ACEOF
35265 #define WORDS_BIGENDIAN 1
35271 { { echo "$as_me:$LINENO: error: unknown endianness
35272 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35273 echo "$as_me: error: unknown endianness
35274 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35275 { (exit 1); exit 1; }; } ;;
35280 echo "$as_me:$LINENO: checking for short" >&5
35281 echo $ECHO_N "checking for short... $ECHO_C" >&6
35282 if test "${ac_cv_type_short+set}" = set; then
35283 echo $ECHO_N "(cached) $ECHO_C" >&6
35285 cat >conftest.$ac_ext <<_ACEOF
35288 cat confdefs.h >>conftest.$ac_ext
35289 cat >>conftest.$ac_ext <<_ACEOF
35290 /* end confdefs.h. */
35291 $ac_includes_default
35297 if (sizeof (short))
35303 rm -f conftest.$ac_objext
35304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35305 (eval $ac_compile) 2>conftest.er1
35307 grep -v '^ *+' conftest.er1 >conftest.err
35309 cat conftest.err >&5
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); } &&
35312 { ac_try='test -z "$ac_c_werror_flag"
35313 || test ! -s conftest.err'
35314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35315 (eval $ac_try) 2>&5
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); }; } &&
35319 { ac_try='test -s conftest.$ac_objext'
35320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35321 (eval $ac_try) 2>&5
35323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35324 (exit $ac_status); }; }; then
35325 ac_cv_type_short=yes
35327 echo "$as_me: failed program was:" >&5
35328 sed 's/^/| /' conftest.$ac_ext >&5
35330 ac_cv_type_short=no
35332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35334 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35335 echo "${ECHO_T}$ac_cv_type_short" >&6
35337 echo "$as_me:$LINENO: checking size of short" >&5
35338 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35339 if test "${ac_cv_sizeof_short+set}" = set; then
35340 echo $ECHO_N "(cached) $ECHO_C" >&6
35342 if test "$ac_cv_type_short" = yes; then
35343 # The cast to unsigned long works around a bug in the HP C Compiler
35344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35346 # This bug is HP SR number 8606223364.
35347 if test "$cross_compiling" = yes; then
35348 # Depending upon the size, compute the lo and hi bounds.
35349 cat >conftest.$ac_ext <<_ACEOF
35352 cat confdefs.h >>conftest.$ac_ext
35353 cat >>conftest.$ac_ext <<_ACEOF
35354 /* end confdefs.h. */
35355 $ac_includes_default
35359 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35366 rm -f conftest.$ac_objext
35367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35368 (eval $ac_compile) 2>conftest.er1
35370 grep -v '^ *+' conftest.er1 >conftest.err
35372 cat conftest.err >&5
35373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374 (exit $ac_status); } &&
35375 { ac_try='test -z "$ac_c_werror_flag"
35376 || test ! -s conftest.err'
35377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35378 (eval $ac_try) 2>&5
35380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35381 (exit $ac_status); }; } &&
35382 { ac_try='test -s conftest.$ac_objext'
35383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35384 (eval $ac_try) 2>&5
35386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35387 (exit $ac_status); }; }; then
35390 cat >conftest.$ac_ext <<_ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h. */
35396 $ac_includes_default
35400 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35407 rm -f conftest.$ac_objext
35408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35409 (eval $ac_compile) 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_objext'
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_hi=$ac_mid; break
35431 echo "$as_me: failed program was:" >&5
35432 sed 's/^/| /' conftest.$ac_ext >&5
35434 ac_lo=`expr $ac_mid + 1`
35435 if test $ac_lo -le $ac_mid; then
35439 ac_mid=`expr 2 '*' $ac_mid + 1`
35441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35444 echo "$as_me: failed program was:" >&5
35445 sed 's/^/| /' conftest.$ac_ext >&5
35447 cat >conftest.$ac_ext <<_ACEOF
35450 cat confdefs.h >>conftest.$ac_ext
35451 cat >>conftest.$ac_ext <<_ACEOF
35452 /* end confdefs.h. */
35453 $ac_includes_default
35457 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35464 rm -f conftest.$ac_objext
35465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35466 (eval $ac_compile) 2>conftest.er1
35468 grep -v '^ *+' conftest.er1 >conftest.err
35470 cat conftest.err >&5
35471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472 (exit $ac_status); } &&
35473 { ac_try='test -z "$ac_c_werror_flag"
35474 || test ! -s conftest.err'
35475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35476 (eval $ac_try) 2>&5
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); }; } &&
35480 { ac_try='test -s conftest.$ac_objext'
35481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482 (eval $ac_try) 2>&5
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; }; then
35488 cat >conftest.$ac_ext <<_ACEOF
35491 cat confdefs.h >>conftest.$ac_ext
35492 cat >>conftest.$ac_ext <<_ACEOF
35493 /* end confdefs.h. */
35494 $ac_includes_default
35498 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35505 rm -f conftest.$ac_objext
35506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35507 (eval $ac_compile) 2>conftest.er1
35509 grep -v '^ *+' conftest.er1 >conftest.err
35511 cat conftest.err >&5
35512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513 (exit $ac_status); } &&
35514 { ac_try='test -z "$ac_c_werror_flag"
35515 || test ! -s conftest.err'
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; } &&
35521 { ac_try='test -s conftest.$ac_objext'
35522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523 (eval $ac_try) 2>&5
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); }; }; then
35527 ac_lo=$ac_mid; break
35529 echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35532 ac_hi=`expr '(' $ac_mid ')' - 1`
35533 if test $ac_mid -le $ac_hi; then
35537 ac_mid=`expr 2 '*' $ac_mid`
35539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35542 echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35550 # Binary search between lo and hi bounds.
35551 while test "x$ac_lo" != "x$ac_hi"; do
35552 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35553 cat >conftest.$ac_ext <<_ACEOF
35556 cat confdefs.h >>conftest.$ac_ext
35557 cat >>conftest.$ac_ext <<_ACEOF
35558 /* end confdefs.h. */
35559 $ac_includes_default
35563 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35570 rm -f conftest.$ac_objext
35571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35572 (eval $ac_compile) 2>conftest.er1
35574 grep -v '^ *+' conftest.er1 >conftest.err
35576 cat conftest.err >&5
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); } &&
35579 { ac_try='test -z "$ac_c_werror_flag"
35580 || test ! -s conftest.err'
35581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35582 (eval $ac_try) 2>&5
35584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35585 (exit $ac_status); }; } &&
35586 { ac_try='test -s conftest.$ac_objext'
35587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588 (eval $ac_try) 2>&5
35590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591 (exit $ac_status); }; }; then
35594 echo "$as_me: failed program was:" >&5
35595 sed 's/^/| /' conftest.$ac_ext >&5
35597 ac_lo=`expr '(' $ac_mid ')' + 1`
35599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35602 ?*) ac_cv_sizeof_short=$ac_lo;;
35603 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35604 See \`config.log' for more details." >&5
35605 echo "$as_me: error: cannot compute sizeof (short), 77
35606 See \`config.log' for more details." >&2;}
35607 { (exit 1); exit 1; }; } ;;
35610 if test "$cross_compiling" = yes; then
35611 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35612 See \`config.log' for more details." >&5
35613 echo "$as_me: error: cannot run test program while cross compiling
35614 See \`config.log' for more details." >&2;}
35615 { (exit 1); exit 1; }; }
35617 cat >conftest.$ac_ext <<_ACEOF
35620 cat confdefs.h >>conftest.$ac_ext
35621 cat >>conftest.$ac_ext <<_ACEOF
35622 /* end confdefs.h. */
35623 $ac_includes_default
35624 long longval () { return (long) (sizeof (short)); }
35625 unsigned long ulongval () { return (long) (sizeof (short)); }
35627 #include <stdlib.h>
35632 FILE *f = fopen ("conftest.val", "w");
35635 if (((long) (sizeof (short))) < 0)
35637 long i = longval ();
35638 if (i != ((long) (sizeof (short))))
35640 fprintf (f, "%ld\n", i);
35644 unsigned long i = ulongval ();
35645 if (i != ((long) (sizeof (short))))
35647 fprintf (f, "%lu\n", i);
35649 exit (ferror (f) || fclose (f) != 0);
35655 rm -f conftest$ac_exeext
35656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35657 (eval $ac_link) 2>&5
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35662 (eval $ac_try) 2>&5
35664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35665 (exit $ac_status); }; }; then
35666 ac_cv_sizeof_short=`cat conftest.val`
35668 echo "$as_me: program exited with status $ac_status" >&5
35669 echo "$as_me: failed program was:" >&5
35670 sed 's/^/| /' conftest.$ac_ext >&5
35672 ( exit $ac_status )
35673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35674 See \`config.log' for more details." >&5
35675 echo "$as_me: error: cannot compute sizeof (short), 77
35676 See \`config.log' for more details." >&2;}
35677 { (exit 1); exit 1; }; }
35679 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35684 ac_cv_sizeof_short=0
35687 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35688 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35689 cat >>confdefs.h <<_ACEOF
35690 #define SIZEOF_SHORT $ac_cv_sizeof_short
35694 echo "$as_me:$LINENO: checking for int" >&5
35695 echo $ECHO_N "checking for int... $ECHO_C" >&6
35696 if test "${ac_cv_type_int+set}" = set; then
35697 echo $ECHO_N "(cached) $ECHO_C" >&6
35699 cat >conftest.$ac_ext <<_ACEOF
35702 cat confdefs.h >>conftest.$ac_ext
35703 cat >>conftest.$ac_ext <<_ACEOF
35704 /* end confdefs.h. */
35705 $ac_includes_default
35717 rm -f conftest.$ac_objext
35718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35719 (eval $ac_compile) 2>conftest.er1
35721 grep -v '^ *+' conftest.er1 >conftest.err
35723 cat conftest.err >&5
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); } &&
35726 { ac_try='test -z "$ac_c_werror_flag"
35727 || test ! -s conftest.err'
35728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35729 (eval $ac_try) 2>&5
35731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732 (exit $ac_status); }; } &&
35733 { ac_try='test -s conftest.$ac_objext'
35734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35735 (eval $ac_try) 2>&5
35737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); }; }; then
35741 echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.$ac_ext >&5
35746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35748 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35749 echo "${ECHO_T}$ac_cv_type_int" >&6
35751 echo "$as_me:$LINENO: checking size of int" >&5
35752 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35753 if test "${ac_cv_sizeof_int+set}" = set; then
35754 echo $ECHO_N "(cached) $ECHO_C" >&6
35756 if test "$ac_cv_type_int" = yes; then
35757 # The cast to unsigned long works around a bug in the HP C Compiler
35758 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35759 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35760 # This bug is HP SR number 8606223364.
35761 if test "$cross_compiling" = yes; then
35762 # Depending upon the size, compute the lo and hi bounds.
35763 cat >conftest.$ac_ext <<_ACEOF
35766 cat confdefs.h >>conftest.$ac_ext
35767 cat >>conftest.$ac_ext <<_ACEOF
35768 /* end confdefs.h. */
35769 $ac_includes_default
35773 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35780 rm -f conftest.$ac_objext
35781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35782 (eval $ac_compile) 2>conftest.er1
35784 grep -v '^ *+' conftest.er1 >conftest.err
35786 cat conftest.err >&5
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); } &&
35789 { ac_try='test -z "$ac_c_werror_flag"
35790 || test ! -s conftest.err'
35791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35792 (eval $ac_try) 2>&5
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); }; } &&
35796 { ac_try='test -s conftest.$ac_objext'
35797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35798 (eval $ac_try) 2>&5
35800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801 (exit $ac_status); }; }; then
35804 cat >conftest.$ac_ext <<_ACEOF
35807 cat confdefs.h >>conftest.$ac_ext
35808 cat >>conftest.$ac_ext <<_ACEOF
35809 /* end confdefs.h. */
35810 $ac_includes_default
35814 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35821 rm -f conftest.$ac_objext
35822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35823 (eval $ac_compile) 2>conftest.er1
35825 grep -v '^ *+' conftest.er1 >conftest.err
35827 cat conftest.err >&5
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); } &&
35830 { ac_try='test -z "$ac_c_werror_flag"
35831 || test ! -s conftest.err'
35832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35833 (eval $ac_try) 2>&5
35835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836 (exit $ac_status); }; } &&
35837 { ac_try='test -s conftest.$ac_objext'
35838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35839 (eval $ac_try) 2>&5
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); }; }; then
35843 ac_hi=$ac_mid; break
35845 echo "$as_me: failed program was:" >&5
35846 sed 's/^/| /' conftest.$ac_ext >&5
35848 ac_lo=`expr $ac_mid + 1`
35849 if test $ac_lo -le $ac_mid; then
35853 ac_mid=`expr 2 '*' $ac_mid + 1`
35855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35858 echo "$as_me: failed program was:" >&5
35859 sed 's/^/| /' conftest.$ac_ext >&5
35861 cat >conftest.$ac_ext <<_ACEOF
35864 cat confdefs.h >>conftest.$ac_ext
35865 cat >>conftest.$ac_ext <<_ACEOF
35866 /* end confdefs.h. */
35867 $ac_includes_default
35871 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35878 rm -f conftest.$ac_objext
35879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35880 (eval $ac_compile) 2>conftest.er1
35882 grep -v '^ *+' conftest.er1 >conftest.err
35884 cat conftest.err >&5
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); } &&
35887 { ac_try='test -z "$ac_c_werror_flag"
35888 || test ! -s conftest.err'
35889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35890 (eval $ac_try) 2>&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); }; } &&
35894 { ac_try='test -s conftest.$ac_objext'
35895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35896 (eval $ac_try) 2>&5
35898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899 (exit $ac_status); }; }; then
35902 cat >conftest.$ac_ext <<_ACEOF
35905 cat confdefs.h >>conftest.$ac_ext
35906 cat >>conftest.$ac_ext <<_ACEOF
35907 /* end confdefs.h. */
35908 $ac_includes_default
35912 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35919 rm -f conftest.$ac_objext
35920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35921 (eval $ac_compile) 2>conftest.er1
35923 grep -v '^ *+' conftest.er1 >conftest.err
35925 cat conftest.err >&5
35926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927 (exit $ac_status); } &&
35928 { ac_try='test -z "$ac_c_werror_flag"
35929 || test ! -s conftest.err'
35930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35931 (eval $ac_try) 2>&5
35933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35934 (exit $ac_status); }; } &&
35935 { ac_try='test -s conftest.$ac_objext'
35936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35937 (eval $ac_try) 2>&5
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); }; }; then
35941 ac_lo=$ac_mid; break
35943 echo "$as_me: failed program was:" >&5
35944 sed 's/^/| /' conftest.$ac_ext >&5
35946 ac_hi=`expr '(' $ac_mid ')' - 1`
35947 if test $ac_mid -le $ac_hi; then
35951 ac_mid=`expr 2 '*' $ac_mid`
35953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35956 echo "$as_me: failed program was:" >&5
35957 sed 's/^/| /' conftest.$ac_ext >&5
35961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35964 # Binary search between lo and hi bounds.
35965 while test "x$ac_lo" != "x$ac_hi"; do
35966 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35967 cat >conftest.$ac_ext <<_ACEOF
35970 cat confdefs.h >>conftest.$ac_ext
35971 cat >>conftest.$ac_ext <<_ACEOF
35972 /* end confdefs.h. */
35973 $ac_includes_default
35977 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35984 rm -f conftest.$ac_objext
35985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35986 (eval $ac_compile) 2>conftest.er1
35988 grep -v '^ *+' conftest.er1 >conftest.err
35990 cat conftest.err >&5
35991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992 (exit $ac_status); } &&
35993 { ac_try='test -z "$ac_c_werror_flag"
35994 || test ! -s conftest.err'
35995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35996 (eval $ac_try) 2>&5
35998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 (exit $ac_status); }; } &&
36000 { ac_try='test -s conftest.$ac_objext'
36001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36002 (eval $ac_try) 2>&5
36004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005 (exit $ac_status); }; }; then
36008 echo "$as_me: failed program was:" >&5
36009 sed 's/^/| /' conftest.$ac_ext >&5
36011 ac_lo=`expr '(' $ac_mid ')' + 1`
36013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36016 ?*) ac_cv_sizeof_int=$ac_lo;;
36017 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36018 See \`config.log' for more details." >&5
36019 echo "$as_me: error: cannot compute sizeof (int), 77
36020 See \`config.log' for more details." >&2;}
36021 { (exit 1); exit 1; }; } ;;
36024 if test "$cross_compiling" = yes; then
36025 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36026 See \`config.log' for more details." >&5
36027 echo "$as_me: error: cannot run test program while cross compiling
36028 See \`config.log' for more details." >&2;}
36029 { (exit 1); exit 1; }; }
36031 cat >conftest.$ac_ext <<_ACEOF
36034 cat confdefs.h >>conftest.$ac_ext
36035 cat >>conftest.$ac_ext <<_ACEOF
36036 /* end confdefs.h. */
36037 $ac_includes_default
36038 long longval () { return (long) (sizeof (int)); }
36039 unsigned long ulongval () { return (long) (sizeof (int)); }
36041 #include <stdlib.h>
36046 FILE *f = fopen ("conftest.val", "w");
36049 if (((long) (sizeof (int))) < 0)
36051 long i = longval ();
36052 if (i != ((long) (sizeof (int))))
36054 fprintf (f, "%ld\n", i);
36058 unsigned long i = ulongval ();
36059 if (i != ((long) (sizeof (int))))
36061 fprintf (f, "%lu\n", i);
36063 exit (ferror (f) || fclose (f) != 0);
36069 rm -f conftest$ac_exeext
36070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36071 (eval $ac_link) 2>&5
36073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076 (eval $ac_try) 2>&5
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); }; }; then
36080 ac_cv_sizeof_int=`cat conftest.val`
36082 echo "$as_me: program exited with status $ac_status" >&5
36083 echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36086 ( exit $ac_status )
36087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36088 See \`config.log' for more details." >&5
36089 echo "$as_me: error: cannot compute sizeof (int), 77
36090 See \`config.log' for more details." >&2;}
36091 { (exit 1); exit 1; }; }
36093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36101 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36102 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36103 cat >>confdefs.h <<_ACEOF
36104 #define SIZEOF_INT $ac_cv_sizeof_int
36108 echo "$as_me:$LINENO: checking for long" >&5
36109 echo $ECHO_N "checking for long... $ECHO_C" >&6
36110 if test "${ac_cv_type_long+set}" = set; then
36111 echo $ECHO_N "(cached) $ECHO_C" >&6
36113 cat >conftest.$ac_ext <<_ACEOF
36116 cat confdefs.h >>conftest.$ac_ext
36117 cat >>conftest.$ac_ext <<_ACEOF
36118 /* end confdefs.h. */
36119 $ac_includes_default
36131 rm -f conftest.$ac_objext
36132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36133 (eval $ac_compile) 2>conftest.er1
36135 grep -v '^ *+' conftest.er1 >conftest.err
36137 cat conftest.err >&5
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); } &&
36140 { ac_try='test -z "$ac_c_werror_flag"
36141 || test ! -s conftest.err'
36142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36143 (eval $ac_try) 2>&5
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); }; } &&
36147 { ac_try='test -s conftest.$ac_objext'
36148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36149 (eval $ac_try) 2>&5
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); }; }; then
36153 ac_cv_type_long=yes
36155 echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36162 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36163 echo "${ECHO_T}$ac_cv_type_long" >&6
36165 echo "$as_me:$LINENO: checking size of long" >&5
36166 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36167 if test "${ac_cv_sizeof_long+set}" = set; then
36168 echo $ECHO_N "(cached) $ECHO_C" >&6
36170 if test "$ac_cv_type_long" = yes; then
36171 # The cast to unsigned long works around a bug in the HP C Compiler
36172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36174 # This bug is HP SR number 8606223364.
36175 if test "$cross_compiling" = yes; then
36176 # Depending upon the size, compute the lo and hi bounds.
36177 cat >conftest.$ac_ext <<_ACEOF
36180 cat confdefs.h >>conftest.$ac_ext
36181 cat >>conftest.$ac_ext <<_ACEOF
36182 /* end confdefs.h. */
36183 $ac_includes_default
36187 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36194 rm -f conftest.$ac_objext
36195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36196 (eval $ac_compile) 2>conftest.er1
36198 grep -v '^ *+' conftest.er1 >conftest.err
36200 cat conftest.err >&5
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); } &&
36203 { ac_try='test -z "$ac_c_werror_flag"
36204 || test ! -s conftest.err'
36205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36206 (eval $ac_try) 2>&5
36208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36209 (exit $ac_status); }; } &&
36210 { ac_try='test -s conftest.$ac_objext'
36211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36212 (eval $ac_try) 2>&5
36214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215 (exit $ac_status); }; }; then
36218 cat >conftest.$ac_ext <<_ACEOF
36221 cat confdefs.h >>conftest.$ac_ext
36222 cat >>conftest.$ac_ext <<_ACEOF
36223 /* end confdefs.h. */
36224 $ac_includes_default
36228 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36235 rm -f conftest.$ac_objext
36236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36237 (eval $ac_compile) 2>conftest.er1
36239 grep -v '^ *+' conftest.er1 >conftest.err
36241 cat conftest.err >&5
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); } &&
36244 { ac_try='test -z "$ac_c_werror_flag"
36245 || test ! -s conftest.err'
36246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247 (eval $ac_try) 2>&5
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; } &&
36251 { ac_try='test -s conftest.$ac_objext'
36252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36253 (eval $ac_try) 2>&5
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); }; }; then
36257 ac_hi=$ac_mid; break
36259 echo "$as_me: failed program was:" >&5
36260 sed 's/^/| /' conftest.$ac_ext >&5
36262 ac_lo=`expr $ac_mid + 1`
36263 if test $ac_lo -le $ac_mid; then
36267 ac_mid=`expr 2 '*' $ac_mid + 1`
36269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36272 echo "$as_me: failed program was:" >&5
36273 sed 's/^/| /' conftest.$ac_ext >&5
36275 cat >conftest.$ac_ext <<_ACEOF
36278 cat confdefs.h >>conftest.$ac_ext
36279 cat >>conftest.$ac_ext <<_ACEOF
36280 /* end confdefs.h. */
36281 $ac_includes_default
36285 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36292 rm -f conftest.$ac_objext
36293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36294 (eval $ac_compile) 2>conftest.er1
36296 grep -v '^ *+' conftest.er1 >conftest.err
36298 cat conftest.err >&5
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); } &&
36301 { ac_try='test -z "$ac_c_werror_flag"
36302 || test ! -s conftest.err'
36303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36304 (eval $ac_try) 2>&5
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); }; } &&
36308 { ac_try='test -s conftest.$ac_objext'
36309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36310 (eval $ac_try) 2>&5
36312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); }; }; then
36316 cat >conftest.$ac_ext <<_ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h. */
36322 $ac_includes_default
36326 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36333 rm -f conftest.$ac_objext
36334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36335 (eval $ac_compile) 2>conftest.er1
36337 grep -v '^ *+' conftest.er1 >conftest.err
36339 cat conftest.err >&5
36340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341 (exit $ac_status); } &&
36342 { ac_try='test -z "$ac_c_werror_flag"
36343 || test ! -s conftest.err'
36344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345 (eval $ac_try) 2>&5
36347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348 (exit $ac_status); }; } &&
36349 { ac_try='test -s conftest.$ac_objext'
36350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351 (eval $ac_try) 2>&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); }; }; then
36355 ac_lo=$ac_mid; break
36357 echo "$as_me: failed program was:" >&5
36358 sed 's/^/| /' conftest.$ac_ext >&5
36360 ac_hi=`expr '(' $ac_mid ')' - 1`
36361 if test $ac_mid -le $ac_hi; then
36365 ac_mid=`expr 2 '*' $ac_mid`
36367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36370 echo "$as_me: failed program was:" >&5
36371 sed 's/^/| /' conftest.$ac_ext >&5
36375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36378 # Binary search between lo and hi bounds.
36379 while test "x$ac_lo" != "x$ac_hi"; do
36380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36381 cat >conftest.$ac_ext <<_ACEOF
36384 cat confdefs.h >>conftest.$ac_ext
36385 cat >>conftest.$ac_ext <<_ACEOF
36386 /* end confdefs.h. */
36387 $ac_includes_default
36391 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36398 rm -f conftest.$ac_objext
36399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36400 (eval $ac_compile) 2>conftest.er1
36402 grep -v '^ *+' conftest.er1 >conftest.err
36404 cat conftest.err >&5
36405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36406 (exit $ac_status); } &&
36407 { ac_try='test -z "$ac_c_werror_flag"
36408 || test ! -s conftest.err'
36409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36410 (eval $ac_try) 2>&5
36412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); }; } &&
36414 { ac_try='test -s conftest.$ac_objext'
36415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36416 (eval $ac_try) 2>&5
36418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); }; }; then
36422 echo "$as_me: failed program was:" >&5
36423 sed 's/^/| /' conftest.$ac_ext >&5
36425 ac_lo=`expr '(' $ac_mid ')' + 1`
36427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36430 ?*) ac_cv_sizeof_long=$ac_lo;;
36431 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36432 See \`config.log' for more details." >&5
36433 echo "$as_me: error: cannot compute sizeof (long), 77
36434 See \`config.log' for more details." >&2;}
36435 { (exit 1); exit 1; }; } ;;
36438 if test "$cross_compiling" = yes; then
36439 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36440 See \`config.log' for more details." >&5
36441 echo "$as_me: error: cannot run test program while cross compiling
36442 See \`config.log' for more details." >&2;}
36443 { (exit 1); exit 1; }; }
36445 cat >conftest.$ac_ext <<_ACEOF
36448 cat confdefs.h >>conftest.$ac_ext
36449 cat >>conftest.$ac_ext <<_ACEOF
36450 /* end confdefs.h. */
36451 $ac_includes_default
36452 long longval () { return (long) (sizeof (long)); }
36453 unsigned long ulongval () { return (long) (sizeof (long)); }
36455 #include <stdlib.h>
36460 FILE *f = fopen ("conftest.val", "w");
36463 if (((long) (sizeof (long))) < 0)
36465 long i = longval ();
36466 if (i != ((long) (sizeof (long))))
36468 fprintf (f, "%ld\n", i);
36472 unsigned long i = ulongval ();
36473 if (i != ((long) (sizeof (long))))
36475 fprintf (f, "%lu\n", i);
36477 exit (ferror (f) || fclose (f) != 0);
36483 rm -f conftest$ac_exeext
36484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36485 (eval $ac_link) 2>&5
36487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36490 (eval $ac_try) 2>&5
36492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36493 (exit $ac_status); }; }; then
36494 ac_cv_sizeof_long=`cat conftest.val`
36496 echo "$as_me: program exited with status $ac_status" >&5
36497 echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36500 ( exit $ac_status )
36501 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36502 See \`config.log' for more details." >&5
36503 echo "$as_me: error: cannot compute sizeof (long), 77
36504 See \`config.log' for more details." >&2;}
36505 { (exit 1); exit 1; }; }
36507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36512 ac_cv_sizeof_long=0
36515 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36516 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36517 cat >>confdefs.h <<_ACEOF
36518 #define SIZEOF_LONG $ac_cv_sizeof_long
36522 echo "$as_me:$LINENO: checking for long long" >&5
36523 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36524 if test "${ac_cv_type_long_long+set}" = set; then
36525 echo $ECHO_N "(cached) $ECHO_C" >&6
36527 cat >conftest.$ac_ext <<_ACEOF
36530 cat confdefs.h >>conftest.$ac_ext
36531 cat >>conftest.$ac_ext <<_ACEOF
36532 /* end confdefs.h. */
36533 $ac_includes_default
36537 if ((long long *) 0)
36539 if (sizeof (long long))
36545 rm -f conftest.$ac_objext
36546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36547 (eval $ac_compile) 2>conftest.er1
36549 grep -v '^ *+' conftest.er1 >conftest.err
36551 cat conftest.err >&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); } &&
36554 { ac_try='test -z "$ac_c_werror_flag"
36555 || test ! -s conftest.err'
36556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36557 (eval $ac_try) 2>&5
36559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36560 (exit $ac_status); }; } &&
36561 { ac_try='test -s conftest.$ac_objext'
36562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36563 (eval $ac_try) 2>&5
36565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566 (exit $ac_status); }; }; then
36567 ac_cv_type_long_long=yes
36569 echo "$as_me: failed program was:" >&5
36570 sed 's/^/| /' conftest.$ac_ext >&5
36572 ac_cv_type_long_long=no
36574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36576 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36577 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36579 echo "$as_me:$LINENO: checking size of long long" >&5
36580 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36581 if test "${ac_cv_sizeof_long_long+set}" = set; then
36582 echo $ECHO_N "(cached) $ECHO_C" >&6
36584 if test "$ac_cv_type_long_long" = yes; then
36585 # The cast to unsigned long works around a bug in the HP C Compiler
36586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36588 # This bug is HP SR number 8606223364.
36589 if test "$cross_compiling" = yes; then
36590 # Depending upon the size, compute the lo and hi bounds.
36591 cat >conftest.$ac_ext <<_ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h. */
36597 $ac_includes_default
36601 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36608 rm -f conftest.$ac_objext
36609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36610 (eval $ac_compile) 2>conftest.er1
36612 grep -v '^ *+' conftest.er1 >conftest.err
36614 cat conftest.err >&5
36615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616 (exit $ac_status); } &&
36617 { ac_try='test -z "$ac_c_werror_flag"
36618 || test ! -s conftest.err'
36619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36620 (eval $ac_try) 2>&5
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); }; } &&
36624 { ac_try='test -s conftest.$ac_objext'
36625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36626 (eval $ac_try) 2>&5
36628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629 (exit $ac_status); }; }; then
36632 cat >conftest.$ac_ext <<_ACEOF
36635 cat confdefs.h >>conftest.$ac_ext
36636 cat >>conftest.$ac_ext <<_ACEOF
36637 /* end confdefs.h. */
36638 $ac_includes_default
36642 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36649 rm -f conftest.$ac_objext
36650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36651 (eval $ac_compile) 2>conftest.er1
36653 grep -v '^ *+' conftest.er1 >conftest.err
36655 cat conftest.err >&5
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); } &&
36658 { ac_try='test -z "$ac_c_werror_flag"
36659 || test ! -s conftest.err'
36660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36661 (eval $ac_try) 2>&5
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); }; } &&
36665 { ac_try='test -s conftest.$ac_objext'
36666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36667 (eval $ac_try) 2>&5
36669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670 (exit $ac_status); }; }; then
36671 ac_hi=$ac_mid; break
36673 echo "$as_me: failed program was:" >&5
36674 sed 's/^/| /' conftest.$ac_ext >&5
36676 ac_lo=`expr $ac_mid + 1`
36677 if test $ac_lo -le $ac_mid; then
36681 ac_mid=`expr 2 '*' $ac_mid + 1`
36683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36686 echo "$as_me: failed program was:" >&5
36687 sed 's/^/| /' conftest.$ac_ext >&5
36689 cat >conftest.$ac_ext <<_ACEOF
36692 cat confdefs.h >>conftest.$ac_ext
36693 cat >>conftest.$ac_ext <<_ACEOF
36694 /* end confdefs.h. */
36695 $ac_includes_default
36699 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36706 rm -f conftest.$ac_objext
36707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36708 (eval $ac_compile) 2>conftest.er1
36710 grep -v '^ *+' conftest.er1 >conftest.err
36712 cat conftest.err >&5
36713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714 (exit $ac_status); } &&
36715 { ac_try='test -z "$ac_c_werror_flag"
36716 || test ! -s conftest.err'
36717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36718 (eval $ac_try) 2>&5
36720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721 (exit $ac_status); }; } &&
36722 { ac_try='test -s conftest.$ac_objext'
36723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724 (eval $ac_try) 2>&5
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); }; }; then
36730 cat >conftest.$ac_ext <<_ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h. */
36736 $ac_includes_default
36740 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36747 rm -f conftest.$ac_objext
36748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749 (eval $ac_compile) 2>conftest.er1
36751 grep -v '^ *+' conftest.er1 >conftest.err
36753 cat conftest.err >&5
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); } &&
36756 { ac_try='test -z "$ac_c_werror_flag"
36757 || test ! -s conftest.err'
36758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36759 (eval $ac_try) 2>&5
36761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762 (exit $ac_status); }; } &&
36763 { ac_try='test -s conftest.$ac_objext'
36764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765 (eval $ac_try) 2>&5
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); }; }; then
36769 ac_lo=$ac_mid; break
36771 echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36774 ac_hi=`expr '(' $ac_mid ')' - 1`
36775 if test $ac_mid -le $ac_hi; then
36779 ac_mid=`expr 2 '*' $ac_mid`
36781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36784 echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36792 # Binary search between lo and hi bounds.
36793 while test "x$ac_lo" != "x$ac_hi"; do
36794 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36795 cat >conftest.$ac_ext <<_ACEOF
36798 cat confdefs.h >>conftest.$ac_ext
36799 cat >>conftest.$ac_ext <<_ACEOF
36800 /* end confdefs.h. */
36801 $ac_includes_default
36805 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36812 rm -f conftest.$ac_objext
36813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36814 (eval $ac_compile) 2>conftest.er1
36816 grep -v '^ *+' conftest.er1 >conftest.err
36818 cat conftest.err >&5
36819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36820 (exit $ac_status); } &&
36821 { ac_try='test -z "$ac_c_werror_flag"
36822 || test ! -s conftest.err'
36823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36824 (eval $ac_try) 2>&5
36826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827 (exit $ac_status); }; } &&
36828 { ac_try='test -s conftest.$ac_objext'
36829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36830 (eval $ac_try) 2>&5
36832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833 (exit $ac_status); }; }; then
36836 echo "$as_me: failed program was:" >&5
36837 sed 's/^/| /' conftest.$ac_ext >&5
36839 ac_lo=`expr '(' $ac_mid ')' + 1`
36841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36844 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36845 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36846 See \`config.log' for more details." >&5
36847 echo "$as_me: error: cannot compute sizeof (long long), 77
36848 See \`config.log' for more details." >&2;}
36849 { (exit 1); exit 1; }; } ;;
36852 if test "$cross_compiling" = yes; then
36853 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36854 See \`config.log' for more details." >&5
36855 echo "$as_me: error: cannot run test program while cross compiling
36856 See \`config.log' for more details." >&2;}
36857 { (exit 1); exit 1; }; }
36859 cat >conftest.$ac_ext <<_ACEOF
36862 cat confdefs.h >>conftest.$ac_ext
36863 cat >>conftest.$ac_ext <<_ACEOF
36864 /* end confdefs.h. */
36865 $ac_includes_default
36866 long longval () { return (long) (sizeof (long long)); }
36867 unsigned long ulongval () { return (long) (sizeof (long long)); }
36869 #include <stdlib.h>
36874 FILE *f = fopen ("conftest.val", "w");
36877 if (((long) (sizeof (long long))) < 0)
36879 long i = longval ();
36880 if (i != ((long) (sizeof (long long))))
36882 fprintf (f, "%ld\n", i);
36886 unsigned long i = ulongval ();
36887 if (i != ((long) (sizeof (long long))))
36889 fprintf (f, "%lu\n", i);
36891 exit (ferror (f) || fclose (f) != 0);
36897 rm -f conftest$ac_exeext
36898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36899 (eval $ac_link) 2>&5
36901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36904 (eval $ac_try) 2>&5
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); }; }; then
36908 ac_cv_sizeof_long_long=`cat conftest.val`
36910 echo "$as_me: program exited with status $ac_status" >&5
36911 echo "$as_me: failed program was:" >&5
36912 sed 's/^/| /' conftest.$ac_ext >&5
36914 ( exit $ac_status )
36915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36916 See \`config.log' for more details." >&5
36917 echo "$as_me: error: cannot compute sizeof (long long), 77
36918 See \`config.log' for more details." >&2;}
36919 { (exit 1); exit 1; }; }
36921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36926 ac_cv_sizeof_long_long=0
36929 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36930 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36931 cat >>confdefs.h <<_ACEOF
36932 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36936 echo "$as_me:$LINENO: checking for wchar_t" >&5
36937 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36938 if test "${ac_cv_type_wchar_t+set}" = set; then
36939 echo $ECHO_N "(cached) $ECHO_C" >&6
36941 cat >conftest.$ac_ext <<_ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h. */
36947 $ac_includes_default
36953 if (sizeof (wchar_t))
36959 rm -f conftest.$ac_objext
36960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36961 (eval $ac_compile) 2>conftest.er1
36963 grep -v '^ *+' conftest.er1 >conftest.err
36965 cat conftest.err >&5
36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967 (exit $ac_status); } &&
36968 { ac_try='test -z "$ac_c_werror_flag"
36969 || test ! -s conftest.err'
36970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36971 (eval $ac_try) 2>&5
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); }; } &&
36975 { ac_try='test -s conftest.$ac_objext'
36976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36977 (eval $ac_try) 2>&5
36979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); }; }; then
36981 ac_cv_type_wchar_t=yes
36983 echo "$as_me: failed program was:" >&5
36984 sed 's/^/| /' conftest.$ac_ext >&5
36986 ac_cv_type_wchar_t=no
36988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36990 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36991 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36993 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36994 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36995 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36996 echo $ECHO_N "(cached) $ECHO_C" >&6
36998 if test "$ac_cv_type_wchar_t" = yes; then
36999 # The cast to unsigned long works around a bug in the HP C Compiler
37000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37002 # This bug is HP SR number 8606223364.
37003 if test "$cross_compiling" = yes; then
37004 # Depending upon the size, compute the lo and hi bounds.
37005 cat >conftest.$ac_ext <<_ACEOF
37008 cat confdefs.h >>conftest.$ac_ext
37009 cat >>conftest.$ac_ext <<_ACEOF
37010 /* end confdefs.h. */
37011 $ac_includes_default
37015 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37022 rm -f conftest.$ac_objext
37023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37024 (eval $ac_compile) 2>conftest.er1
37026 grep -v '^ *+' conftest.er1 >conftest.err
37028 cat conftest.err >&5
37029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030 (exit $ac_status); } &&
37031 { ac_try='test -z "$ac_c_werror_flag"
37032 || test ! -s conftest.err'
37033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37034 (eval $ac_try) 2>&5
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); }; } &&
37038 { ac_try='test -s conftest.$ac_objext'
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; }; then
37046 cat >conftest.$ac_ext <<_ACEOF
37049 cat confdefs.h >>conftest.$ac_ext
37050 cat >>conftest.$ac_ext <<_ACEOF
37051 /* end confdefs.h. */
37052 $ac_includes_default
37056 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37063 rm -f conftest.$ac_objext
37064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37065 (eval $ac_compile) 2>conftest.er1
37067 grep -v '^ *+' conftest.er1 >conftest.err
37069 cat conftest.err >&5
37070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37071 (exit $ac_status); } &&
37072 { ac_try='test -z "$ac_c_werror_flag"
37073 || test ! -s conftest.err'
37074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37075 (eval $ac_try) 2>&5
37077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078 (exit $ac_status); }; } &&
37079 { ac_try='test -s conftest.$ac_objext'
37080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37081 (eval $ac_try) 2>&5
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); }; }; then
37085 ac_hi=$ac_mid; break
37087 echo "$as_me: failed program was:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37090 ac_lo=`expr $ac_mid + 1`
37091 if test $ac_lo -le $ac_mid; then
37095 ac_mid=`expr 2 '*' $ac_mid + 1`
37097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37100 echo "$as_me: failed program was:" >&5
37101 sed 's/^/| /' conftest.$ac_ext >&5
37103 cat >conftest.$ac_ext <<_ACEOF
37106 cat confdefs.h >>conftest.$ac_ext
37107 cat >>conftest.$ac_ext <<_ACEOF
37108 /* end confdefs.h. */
37109 $ac_includes_default
37113 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37120 rm -f conftest.$ac_objext
37121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37122 (eval $ac_compile) 2>conftest.er1
37124 grep -v '^ *+' conftest.er1 >conftest.err
37126 cat conftest.err >&5
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); } &&
37129 { ac_try='test -z "$ac_c_werror_flag"
37130 || test ! -s conftest.err'
37131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37132 (eval $ac_try) 2>&5
37134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135 (exit $ac_status); }; } &&
37136 { ac_try='test -s conftest.$ac_objext'
37137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138 (eval $ac_try) 2>&5
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; }; then
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 int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
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_lo=$ac_mid; break
37185 echo "$as_me: failed program was:" >&5
37186 sed 's/^/| /' conftest.$ac_ext >&5
37188 ac_hi=`expr '(' $ac_mid ')' - 1`
37189 if test $ac_mid -le $ac_hi; then
37193 ac_mid=`expr 2 '*' $ac_mid`
37195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37198 echo "$as_me: failed program was:" >&5
37199 sed 's/^/| /' conftest.$ac_ext >&5
37203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37206 # Binary search between lo and hi bounds.
37207 while test "x$ac_lo" != "x$ac_hi"; do
37208 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
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
37250 echo "$as_me: failed program was:" >&5
37251 sed 's/^/| /' conftest.$ac_ext >&5
37253 ac_lo=`expr '(' $ac_mid ')' + 1`
37255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37258 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37259 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37260 See \`config.log' for more details." >&5
37261 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37262 See \`config.log' for more details." >&2;}
37263 { (exit 1); exit 1; }; } ;;
37266 if test "$cross_compiling" = yes; then
37267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37268 See \`config.log' for more details." >&5
37269 echo "$as_me: error: cannot run test program while cross compiling
37270 See \`config.log' for more details." >&2;}
37271 { (exit 1); exit 1; }; }
37273 cat >conftest.$ac_ext <<_ACEOF
37276 cat confdefs.h >>conftest.$ac_ext
37277 cat >>conftest.$ac_ext <<_ACEOF
37278 /* end confdefs.h. */
37279 $ac_includes_default
37280 long longval () { return (long) (sizeof (wchar_t)); }
37281 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37283 #include <stdlib.h>
37288 FILE *f = fopen ("conftest.val", "w");
37291 if (((long) (sizeof (wchar_t))) < 0)
37293 long i = longval ();
37294 if (i != ((long) (sizeof (wchar_t))))
37296 fprintf (f, "%ld\n", i);
37300 unsigned long i = ulongval ();
37301 if (i != ((long) (sizeof (wchar_t))))
37303 fprintf (f, "%lu\n", i);
37305 exit (ferror (f) || fclose (f) != 0);
37311 rm -f conftest$ac_exeext
37312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37313 (eval $ac_link) 2>&5
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318 (eval $ac_try) 2>&5
37320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; }; then
37322 ac_cv_sizeof_wchar_t=`cat conftest.val`
37324 echo "$as_me: program exited with status $ac_status" >&5
37325 echo "$as_me: failed program was:" >&5
37326 sed 's/^/| /' conftest.$ac_ext >&5
37328 ( exit $ac_status )
37329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37330 See \`config.log' for more details." >&5
37331 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37332 See \`config.log' for more details." >&2;}
37333 { (exit 1); exit 1; }; }
37335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37340 ac_cv_sizeof_wchar_t=0
37343 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37344 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37345 cat >>confdefs.h <<_ACEOF
37346 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37351 if test "$ac_cv_sizeof_int" -lt 4 ; then
37352 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37353 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37356 cat >>confdefs.h <<\_ACEOF
37357 #define LBER_INT_T long
37362 cat >>confdefs.h <<\_ACEOF
37363 #define LBER_INT_T int
37369 cat >>confdefs.h <<\_ACEOF
37370 #define LBER_LEN_T long
37374 cat >>confdefs.h <<\_ACEOF
37375 #define LBER_SOCKET_T int
37379 cat >>confdefs.h <<\_ACEOF
37380 #define LBER_TAG_T long
37384 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37385 if test $ac_cv_sizeof_long_long -gt 4 ; then
37386 ol_with_mp=longlong
37388 cat >>confdefs.h <<\_ACEOF
37389 #define USE_MP_LONG_LONG 1
37392 elif test $ol_with_mp = longlong ; then
37393 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37394 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37395 { (exit 1); exit 1; }; }
37398 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37399 if test $ac_cv_sizeof_long -gt 4 ; then
37402 cat >>confdefs.h <<\_ACEOF
37403 #define USE_MP_LONG 1
37406 elif test $ol_with_mp = long ; then
37407 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37408 echo "$as_me: error: long unusable for multiple precision" >&2;}
37409 { (exit 1); exit 1; }; }
37412 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37414 for ac_header in openssl/bn.h
37416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37418 echo "$as_me:$LINENO: checking for $ac_header" >&5
37419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37421 echo $ECHO_N "(cached) $ECHO_C" >&6
37423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37426 # Is the header compilable?
37427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37429 cat >conftest.$ac_ext <<_ACEOF
37432 cat confdefs.h >>conftest.$ac_ext
37433 cat >>conftest.$ac_ext <<_ACEOF
37434 /* end confdefs.h. */
37435 $ac_includes_default
37436 #include <$ac_header>
37438 rm -f conftest.$ac_objext
37439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37440 (eval $ac_compile) 2>conftest.er1
37442 grep -v '^ *+' conftest.er1 >conftest.err
37444 cat conftest.err >&5
37445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 (exit $ac_status); } &&
37447 { ac_try='test -z "$ac_c_werror_flag"
37448 || test ! -s conftest.err'
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; } &&
37454 { ac_try='test -s conftest.$ac_objext'
37455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456 (eval $ac_try) 2>&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
37460 ac_header_compiler=yes
37462 echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37465 ac_header_compiler=no
37467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37469 echo "${ECHO_T}$ac_header_compiler" >&6
37471 # Is the header present?
37472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37474 cat >conftest.$ac_ext <<_ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h. */
37480 #include <$ac_header>
37482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37485 grep -v '^ *+' conftest.er1 >conftest.err
37487 cat conftest.err >&5
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); } >/dev/null; then
37490 if test -s conftest.err; then
37491 ac_cpp_err=$ac_c_preproc_warn_flag
37492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37499 if test -z "$ac_cpp_err"; then
37500 ac_header_preproc=yes
37502 echo "$as_me: failed program was:" >&5
37503 sed 's/^/| /' conftest.$ac_ext >&5
37505 ac_header_preproc=no
37507 rm -f conftest.err conftest.$ac_ext
37508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37509 echo "${ECHO_T}$ac_header_preproc" >&6
37511 # So? What about this header?
37512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37518 ac_header_preproc=yes
37521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37535 ## --------------------------------------------- ##
37536 ## Report this to <http://www.openldap.org/its/> ##
37537 ## --------------------------------------------- ##
37540 sed "s/^/$as_me: WARNING: /" >&2
37543 echo "$as_me:$LINENO: checking for $ac_header" >&5
37544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37546 echo $ECHO_N "(cached) $ECHO_C" >&6
37548 eval "$as_ac_Header=\$ac_header_preproc"
37550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37555 cat >>confdefs.h <<_ACEOF
37556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37564 for ac_header in openssl/crypto.h
37566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37568 echo "$as_me:$LINENO: checking for $ac_header" >&5
37569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37571 echo $ECHO_N "(cached) $ECHO_C" >&6
37573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37576 # Is the header compilable?
37577 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37579 cat >conftest.$ac_ext <<_ACEOF
37582 cat confdefs.h >>conftest.$ac_ext
37583 cat >>conftest.$ac_ext <<_ACEOF
37584 /* end confdefs.h. */
37585 $ac_includes_default
37586 #include <$ac_header>
37588 rm -f conftest.$ac_objext
37589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37590 (eval $ac_compile) 2>conftest.er1
37592 grep -v '^ *+' conftest.er1 >conftest.err
37594 cat conftest.err >&5
37595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37596 (exit $ac_status); } &&
37597 { ac_try='test -z "$ac_c_werror_flag"
37598 || test ! -s conftest.err'
37599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37600 (eval $ac_try) 2>&5
37602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603 (exit $ac_status); }; } &&
37604 { ac_try='test -s conftest.$ac_objext'
37605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37606 (eval $ac_try) 2>&5
37608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609 (exit $ac_status); }; }; then
37610 ac_header_compiler=yes
37612 echo "$as_me: failed program was:" >&5
37613 sed 's/^/| /' conftest.$ac_ext >&5
37615 ac_header_compiler=no
37617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37619 echo "${ECHO_T}$ac_header_compiler" >&6
37621 # Is the header present?
37622 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37624 cat >conftest.$ac_ext <<_ACEOF
37627 cat confdefs.h >>conftest.$ac_ext
37628 cat >>conftest.$ac_ext <<_ACEOF
37629 /* end confdefs.h. */
37630 #include <$ac_header>
37632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37635 grep -v '^ *+' conftest.er1 >conftest.err
37637 cat conftest.err >&5
37638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37639 (exit $ac_status); } >/dev/null; then
37640 if test -s conftest.err; then
37641 ac_cpp_err=$ac_c_preproc_warn_flag
37642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37649 if test -z "$ac_cpp_err"; then
37650 ac_header_preproc=yes
37652 echo "$as_me: failed program was:" >&5
37653 sed 's/^/| /' conftest.$ac_ext >&5
37655 ac_header_preproc=no
37657 rm -f conftest.err conftest.$ac_ext
37658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37659 echo "${ECHO_T}$ac_header_preproc" >&6
37661 # So? What about this header?
37662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37668 ac_header_preproc=yes
37671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37685 ## --------------------------------------------- ##
37686 ## Report this to <http://www.openldap.org/its/> ##
37687 ## --------------------------------------------- ##
37690 sed "s/^/$as_me: WARNING: /" >&2
37693 echo "$as_me:$LINENO: checking for $ac_header" >&5
37694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37696 echo $ECHO_N "(cached) $ECHO_C" >&6
37698 eval "$as_ac_Header=\$ac_header_preproc"
37700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37705 cat >>confdefs.h <<_ACEOF
37706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37713 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37714 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37715 test "$ol_with_tls" = "found" ; then
37718 cat >>confdefs.h <<\_ACEOF
37719 #define USE_MP_BIGNUM 1
37722 elif test $ol_with_mp = bignum ; then
37723 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37724 echo "$as_me: error: bignum not available" >&2;}
37725 { (exit 1); exit 1; }; }
37728 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37730 for ac_header in gmp.h
37732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37734 echo "$as_me:$LINENO: checking for $ac_header" >&5
37735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37737 echo $ECHO_N "(cached) $ECHO_C" >&6
37739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37742 # Is the header compilable?
37743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37745 cat >conftest.$ac_ext <<_ACEOF
37748 cat confdefs.h >>conftest.$ac_ext
37749 cat >>conftest.$ac_ext <<_ACEOF
37750 /* end confdefs.h. */
37751 $ac_includes_default
37752 #include <$ac_header>
37754 rm -f conftest.$ac_objext
37755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37756 (eval $ac_compile) 2>conftest.er1
37758 grep -v '^ *+' conftest.er1 >conftest.err
37760 cat conftest.err >&5
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); } &&
37763 { ac_try='test -z "$ac_c_werror_flag"
37764 || test ! -s conftest.err'
37765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37766 (eval $ac_try) 2>&5
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); }; } &&
37770 { ac_try='test -s conftest.$ac_objext'
37771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37772 (eval $ac_try) 2>&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); }; }; then
37776 ac_header_compiler=yes
37778 echo "$as_me: failed program was:" >&5
37779 sed 's/^/| /' conftest.$ac_ext >&5
37781 ac_header_compiler=no
37783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37785 echo "${ECHO_T}$ac_header_compiler" >&6
37787 # Is the header present?
37788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37790 cat >conftest.$ac_ext <<_ACEOF
37793 cat confdefs.h >>conftest.$ac_ext
37794 cat >>conftest.$ac_ext <<_ACEOF
37795 /* end confdefs.h. */
37796 #include <$ac_header>
37798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37801 grep -v '^ *+' conftest.er1 >conftest.err
37803 cat conftest.err >&5
37804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805 (exit $ac_status); } >/dev/null; then
37806 if test -s conftest.err; then
37807 ac_cpp_err=$ac_c_preproc_warn_flag
37808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37815 if test -z "$ac_cpp_err"; then
37816 ac_header_preproc=yes
37818 echo "$as_me: failed program was:" >&5
37819 sed 's/^/| /' conftest.$ac_ext >&5
37821 ac_header_preproc=no
37823 rm -f conftest.err conftest.$ac_ext
37824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37825 echo "${ECHO_T}$ac_header_preproc" >&6
37827 # So? What about this header?
37828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37834 ac_header_preproc=yes
37837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37851 ## --------------------------------------------- ##
37852 ## Report this to <http://www.openldap.org/its/> ##
37853 ## --------------------------------------------- ##
37856 sed "s/^/$as_me: WARNING: /" >&2
37859 echo "$as_me:$LINENO: checking for $ac_header" >&5
37860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37862 echo $ECHO_N "(cached) $ECHO_C" >&6
37864 eval "$as_ac_Header=\$ac_header_preproc"
37866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37871 cat >>confdefs.h <<_ACEOF
37872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37880 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37881 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37882 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37883 echo $ECHO_N "(cached) $ECHO_C" >&6
37885 ac_check_lib_save_LIBS=$LIBS
37887 cat >conftest.$ac_ext <<_ACEOF
37890 cat confdefs.h >>conftest.$ac_ext
37891 cat >>conftest.$ac_ext <<_ACEOF
37892 /* end confdefs.h. */
37894 /* Override any gcc2 internal prototype to avoid an error. */
37898 /* We use char because int might match the return type of a gcc2
37899 builtin and then its argument prototype would still apply. */
37900 char __gmpz_add_ui ();
37909 rm -f conftest.$ac_objext conftest$ac_exeext
37910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37911 (eval $ac_link) 2>conftest.er1
37913 grep -v '^ *+' conftest.er1 >conftest.err
37915 cat conftest.err >&5
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); } &&
37918 { ac_try='test -z "$ac_c_werror_flag"
37919 || test ! -s conftest.err'
37920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37921 (eval $ac_try) 2>&5
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); }; } &&
37925 { ac_try='test -s conftest$ac_exeext'
37926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37927 (eval $ac_try) 2>&5
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); }; }; then
37931 ac_cv_lib_gmp___gmpz_add_ui=yes
37933 echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.$ac_ext >&5
37936 ac_cv_lib_gmp___gmpz_add_ui=no
37938 rm -f conftest.err conftest.$ac_objext \
37939 conftest$ac_exeext conftest.$ac_ext
37940 LIBS=$ac_check_lib_save_LIBS
37942 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37943 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37944 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37945 cat >>confdefs.h <<_ACEOF
37946 #define HAVE_LIBGMP 1
37953 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37955 cat >>confdefs.h <<\_ACEOF
37956 #define USE_MP_GMP 1
37960 elif test $ol_with_mp = gmp ; then
37961 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37962 echo "$as_me: error: gmp not available" >&2;}
37963 { (exit 1); exit 1; }; }
37966 if test $ol_with_mp = auto ; then
37970 echo "$as_me:$LINENO: checking for working memcmp" >&5
37971 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37972 if test "${ac_cv_func_memcmp_working+set}" = set; then
37973 echo $ECHO_N "(cached) $ECHO_C" >&6
37975 if test "$cross_compiling" = yes; then
37976 ac_cv_func_memcmp_working=no
37978 cat >conftest.$ac_ext <<_ACEOF
37981 cat confdefs.h >>conftest.$ac_ext
37982 cat >>conftest.$ac_ext <<_ACEOF
37983 /* end confdefs.h. */
37984 $ac_includes_default
37989 /* Some versions of memcmp are not 8-bit clean. */
37990 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37991 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37994 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37995 or more and with at least one buffer not starting on a 4-byte boundary.
37996 William Lewis provided this test program. */
38001 for (i = 0; i < 4; i++)
38005 strcpy (a, "--------01111111");
38006 strcpy (b, "--------10000000");
38007 if (memcmp (a, b, 16) >= 0)
38017 rm -f conftest$ac_exeext
38018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38019 (eval $ac_link) 2>&5
38021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38024 (eval $ac_try) 2>&5
38026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38027 (exit $ac_status); }; }; then
38028 ac_cv_func_memcmp_working=yes
38030 echo "$as_me: program exited with status $ac_status" >&5
38031 echo "$as_me: failed program was:" >&5
38032 sed 's/^/| /' conftest.$ac_ext >&5
38034 ( exit $ac_status )
38035 ac_cv_func_memcmp_working=no
38037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38040 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38041 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38042 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38043 "memcmp.$ac_objext" | \
38044 *" memcmp.$ac_objext" | \
38045 "memcmp.$ac_objext "* | \
38046 *" memcmp.$ac_objext "* ) ;;
38047 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38052 if test $ac_cv_func_memcmp_working = no ; then
38054 cat >>confdefs.h <<\_ACEOF
38055 #define NEED_MEMCMP_REPLACEMENT 1
38061 for ac_func in strftime
38063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38064 echo "$as_me:$LINENO: checking for $ac_func" >&5
38065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38066 if eval "test \"\${$as_ac_var+set}\" = set"; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38069 cat >conftest.$ac_ext <<_ACEOF
38072 cat confdefs.h >>conftest.$ac_ext
38073 cat >>conftest.$ac_ext <<_ACEOF
38074 /* end confdefs.h. */
38075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38077 #define $ac_func innocuous_$ac_func
38079 /* System header to define __stub macros and hopefully few prototypes,
38080 which can conflict with char $ac_func (); below.
38081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38082 <limits.h> exists even on freestanding compilers. */
38085 # include <limits.h>
38087 # include <assert.h>
38092 /* Override any gcc2 internal prototype to avoid an error. */
38097 /* We use char because int might match the return type of a gcc2
38098 builtin and then its argument prototype would still apply. */
38100 /* The GNU C library defines this for functions which it implements
38101 to always fail with ENOSYS. Some functions are actually named
38102 something starting with __ and the normal name is an alias. */
38103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38106 char (*f) () = $ac_func;
38115 return f != $ac_func;
38120 rm -f conftest.$ac_objext conftest$ac_exeext
38121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38122 (eval $ac_link) 2>conftest.er1
38124 grep -v '^ *+' conftest.er1 >conftest.err
38126 cat conftest.err >&5
38127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38128 (exit $ac_status); } &&
38129 { ac_try='test -z "$ac_c_werror_flag"
38130 || test ! -s conftest.err'
38131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132 (eval $ac_try) 2>&5
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); }; } &&
38136 { ac_try='test -s conftest$ac_exeext'
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; }; then
38142 eval "$as_ac_var=yes"
38144 echo "$as_me: failed program was:" >&5
38145 sed 's/^/| /' conftest.$ac_ext >&5
38147 eval "$as_ac_var=no"
38149 rm -f conftest.err conftest.$ac_objext \
38150 conftest$ac_exeext conftest.$ac_ext
38152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38154 if test `eval echo '${'$as_ac_var'}'` = yes; then
38155 cat >>confdefs.h <<_ACEOF
38156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38160 # strftime is in -lintl on SCO UNIX.
38161 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38162 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38163 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38164 echo $ECHO_N "(cached) $ECHO_C" >&6
38166 ac_check_lib_save_LIBS=$LIBS
38167 LIBS="-lintl $LIBS"
38168 cat >conftest.$ac_ext <<_ACEOF
38171 cat confdefs.h >>conftest.$ac_ext
38172 cat >>conftest.$ac_ext <<_ACEOF
38173 /* end confdefs.h. */
38175 /* Override any gcc2 internal prototype to avoid an error. */
38179 /* We use char because int might match the return type of a gcc2
38180 builtin and then its argument prototype would still apply. */
38190 rm -f conftest.$ac_objext conftest$ac_exeext
38191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38192 (eval $ac_link) 2>conftest.er1
38194 grep -v '^ *+' conftest.er1 >conftest.err
38196 cat conftest.err >&5
38197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); } &&
38199 { ac_try='test -z "$ac_c_werror_flag"
38200 || test ! -s conftest.err'
38201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38202 (eval $ac_try) 2>&5
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); }; } &&
38206 { ac_try='test -s conftest$ac_exeext'
38207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38208 (eval $ac_try) 2>&5
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); }; }; then
38212 ac_cv_lib_intl_strftime=yes
38214 echo "$as_me: failed program was:" >&5
38215 sed 's/^/| /' conftest.$ac_ext >&5
38217 ac_cv_lib_intl_strftime=no
38219 rm -f conftest.err conftest.$ac_objext \
38220 conftest$ac_exeext conftest.$ac_ext
38221 LIBS=$ac_check_lib_save_LIBS
38223 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38224 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38225 if test $ac_cv_lib_intl_strftime = yes; then
38226 cat >>confdefs.h <<\_ACEOF
38227 #define HAVE_STRFTIME 1
38230 LIBS="-lintl $LIBS"
38237 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38238 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38239 if test "${ol_cv_func_inet_aton+set}" = set; then
38240 echo $ECHO_N "(cached) $ECHO_C" >&6
38242 cat >conftest.$ac_ext <<_ACEOF
38245 cat confdefs.h >>conftest.$ac_ext
38246 cat >>conftest.$ac_ext <<_ACEOF
38247 /* end confdefs.h. */
38249 #ifdef HAVE_SYS_TYPES_H
38250 # include <sys/types.h>
38252 #ifdef HAVE_SYS_SOCKET_H
38253 # include <sys/socket.h>
38254 # ifdef HAVE_SYS_SELECT_H
38255 # include <sys/select.h>
38257 # include <netinet/in.h>
38258 # ifdef HAVE_ARPA_INET_H
38259 # include <arpa/inet.h>
38267 int rc = inet_aton( "255.255.255.255", &in );
38272 rm -f conftest.$ac_objext conftest$ac_exeext
38273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38274 (eval $ac_link) 2>conftest.er1
38276 grep -v '^ *+' conftest.er1 >conftest.err
38278 cat conftest.err >&5
38279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38280 (exit $ac_status); } &&
38281 { ac_try='test -z "$ac_c_werror_flag"
38282 || test ! -s conftest.err'
38283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38284 (eval $ac_try) 2>&5
38286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38287 (exit $ac_status); }; } &&
38288 { ac_try='test -s conftest$ac_exeext'
38289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38290 (eval $ac_try) 2>&5
38292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293 (exit $ac_status); }; }; then
38294 ol_cv_func_inet_aton=yes
38296 echo "$as_me: failed program was:" >&5
38297 sed 's/^/| /' conftest.$ac_ext >&5
38299 ol_cv_func_inet_aton=no
38301 rm -f conftest.err conftest.$ac_objext \
38302 conftest$ac_exeext conftest.$ac_ext
38304 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38305 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38306 if test $ol_cv_func_inet_aton != no; then
38308 cat >>confdefs.h <<\_ACEOF
38309 #define HAVE_INET_ATON 1
38315 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38316 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38317 if test "${ac_cv_func__spawnlp+set}" = set; then
38318 echo $ECHO_N "(cached) $ECHO_C" >&6
38320 cat >conftest.$ac_ext <<_ACEOF
38323 cat confdefs.h >>conftest.$ac_ext
38324 cat >>conftest.$ac_ext <<_ACEOF
38325 /* end confdefs.h. */
38326 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38328 #define _spawnlp innocuous__spawnlp
38330 /* System header to define __stub macros and hopefully few prototypes,
38331 which can conflict with char _spawnlp (); below.
38332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38333 <limits.h> exists even on freestanding compilers. */
38336 # include <limits.h>
38338 # include <assert.h>
38343 /* Override any gcc2 internal prototype to avoid an error. */
38348 /* We use char because int might match the return type of a gcc2
38349 builtin and then its argument prototype would still apply. */
38351 /* The GNU C library defines this for functions which it implements
38352 to always fail with ENOSYS. Some functions are actually named
38353 something starting with __ and the normal name is an alias. */
38354 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38357 char (*f) () = _spawnlp;
38366 return f != _spawnlp;
38371 rm -f conftest.$ac_objext conftest$ac_exeext
38372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38373 (eval $ac_link) 2>conftest.er1
38375 grep -v '^ *+' conftest.er1 >conftest.err
38377 cat conftest.err >&5
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); } &&
38380 { ac_try='test -z "$ac_c_werror_flag"
38381 || test ! -s conftest.err'
38382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38383 (eval $ac_try) 2>&5
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); }; } &&
38387 { ac_try='test -s conftest$ac_exeext'
38388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38389 (eval $ac_try) 2>&5
38391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392 (exit $ac_status); }; }; then
38393 ac_cv_func__spawnlp=yes
38395 echo "$as_me: failed program was:" >&5
38396 sed 's/^/| /' conftest.$ac_ext >&5
38398 ac_cv_func__spawnlp=no
38400 rm -f conftest.err conftest.$ac_objext \
38401 conftest$ac_exeext conftest.$ac_ext
38403 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38404 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38405 if test $ac_cv_func__spawnlp = yes; then
38407 cat >>confdefs.h <<\_ACEOF
38408 #define HAVE_SPAWNLP 1
38414 echo "$as_me:$LINENO: checking for _snprintf" >&5
38415 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38416 if test "${ac_cv_func__snprintf+set}" = set; then
38417 echo $ECHO_N "(cached) $ECHO_C" >&6
38419 cat >conftest.$ac_ext <<_ACEOF
38422 cat confdefs.h >>conftest.$ac_ext
38423 cat >>conftest.$ac_ext <<_ACEOF
38424 /* end confdefs.h. */
38425 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38427 #define _snprintf innocuous__snprintf
38429 /* System header to define __stub macros and hopefully few prototypes,
38430 which can conflict with char _snprintf (); below.
38431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38432 <limits.h> exists even on freestanding compilers. */
38435 # include <limits.h>
38437 # include <assert.h>
38442 /* Override any gcc2 internal prototype to avoid an error. */
38447 /* We use char because int might match the return type of a gcc2
38448 builtin and then its argument prototype would still apply. */
38450 /* The GNU C library defines this for functions which it implements
38451 to always fail with ENOSYS. Some functions are actually named
38452 something starting with __ and the normal name is an alias. */
38453 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38456 char (*f) () = _snprintf;
38465 return f != _snprintf;
38470 rm -f conftest.$ac_objext conftest$ac_exeext
38471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38472 (eval $ac_link) 2>conftest.er1
38474 grep -v '^ *+' conftest.er1 >conftest.err
38476 cat conftest.err >&5
38477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38478 (exit $ac_status); } &&
38479 { ac_try='test -z "$ac_c_werror_flag"
38480 || test ! -s conftest.err'
38481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38482 (eval $ac_try) 2>&5
38484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38485 (exit $ac_status); }; } &&
38486 { ac_try='test -s conftest$ac_exeext'
38487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38488 (eval $ac_try) 2>&5
38490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38491 (exit $ac_status); }; }; then
38492 ac_cv_func__snprintf=yes
38494 echo "$as_me: failed program was:" >&5
38495 sed 's/^/| /' conftest.$ac_ext >&5
38497 ac_cv_func__snprintf=no
38499 rm -f conftest.err conftest.$ac_objext \
38500 conftest$ac_exeext conftest.$ac_ext
38502 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38503 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38504 if test $ac_cv_func__snprintf = yes; then
38505 ac_cv_func_snprintf=yes
38507 cat >>confdefs.h <<\_ACEOF
38508 #define snprintf _snprintf
38515 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38516 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38517 if test "${ac_cv_func__vsnprintf+set}" = set; then
38518 echo $ECHO_N "(cached) $ECHO_C" >&6
38520 cat >conftest.$ac_ext <<_ACEOF
38523 cat confdefs.h >>conftest.$ac_ext
38524 cat >>conftest.$ac_ext <<_ACEOF
38525 /* end confdefs.h. */
38526 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38528 #define _vsnprintf innocuous__vsnprintf
38530 /* System header to define __stub macros and hopefully few prototypes,
38531 which can conflict with char _vsnprintf (); below.
38532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38533 <limits.h> exists even on freestanding compilers. */
38536 # include <limits.h>
38538 # include <assert.h>
38543 /* Override any gcc2 internal prototype to avoid an error. */
38548 /* We use char because int might match the return type of a gcc2
38549 builtin and then its argument prototype would still apply. */
38550 char _vsnprintf ();
38551 /* The GNU C library defines this for functions which it implements
38552 to always fail with ENOSYS. Some functions are actually named
38553 something starting with __ and the normal name is an alias. */
38554 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38557 char (*f) () = _vsnprintf;
38566 return f != _vsnprintf;
38571 rm -f conftest.$ac_objext conftest$ac_exeext
38572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38573 (eval $ac_link) 2>conftest.er1
38575 grep -v '^ *+' conftest.er1 >conftest.err
38577 cat conftest.err >&5
38578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579 (exit $ac_status); } &&
38580 { ac_try='test -z "$ac_c_werror_flag"
38581 || test ! -s conftest.err'
38582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38583 (eval $ac_try) 2>&5
38585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586 (exit $ac_status); }; } &&
38587 { ac_try='test -s conftest$ac_exeext'
38588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38589 (eval $ac_try) 2>&5
38591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592 (exit $ac_status); }; }; then
38593 ac_cv_func__vsnprintf=yes
38595 echo "$as_me: failed program was:" >&5
38596 sed 's/^/| /' conftest.$ac_ext >&5
38598 ac_cv_func__vsnprintf=no
38600 rm -f conftest.err conftest.$ac_objext \
38601 conftest$ac_exeext conftest.$ac_ext
38603 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38604 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38605 if test $ac_cv_func__vsnprintf = yes; then
38606 ac_cv_func_vsnprintf=yes
38608 cat >>confdefs.h <<\_ACEOF
38609 #define vsnprintf _vsnprintf
38617 for ac_func in vprintf
38619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38620 echo "$as_me:$LINENO: checking for $ac_func" >&5
38621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38622 if eval "test \"\${$as_ac_var+set}\" = set"; then
38623 echo $ECHO_N "(cached) $ECHO_C" >&6
38625 cat >conftest.$ac_ext <<_ACEOF
38628 cat confdefs.h >>conftest.$ac_ext
38629 cat >>conftest.$ac_ext <<_ACEOF
38630 /* end confdefs.h. */
38631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38633 #define $ac_func innocuous_$ac_func
38635 /* System header to define __stub macros and hopefully few prototypes,
38636 which can conflict with char $ac_func (); below.
38637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38638 <limits.h> exists even on freestanding compilers. */
38641 # include <limits.h>
38643 # include <assert.h>
38648 /* Override any gcc2 internal prototype to avoid an error. */
38653 /* We use char because int might match the return type of a gcc2
38654 builtin and then its argument prototype would still apply. */
38656 /* The GNU C library defines this for functions which it implements
38657 to always fail with ENOSYS. Some functions are actually named
38658 something starting with __ and the normal name is an alias. */
38659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38662 char (*f) () = $ac_func;
38671 return f != $ac_func;
38676 rm -f conftest.$ac_objext conftest$ac_exeext
38677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38678 (eval $ac_link) 2>conftest.er1
38680 grep -v '^ *+' conftest.er1 >conftest.err
38682 cat conftest.err >&5
38683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684 (exit $ac_status); } &&
38685 { ac_try='test -z "$ac_c_werror_flag"
38686 || test ! -s conftest.err'
38687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38688 (eval $ac_try) 2>&5
38690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38691 (exit $ac_status); }; } &&
38692 { ac_try='test -s conftest$ac_exeext'
38693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38694 (eval $ac_try) 2>&5
38696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38697 (exit $ac_status); }; }; then
38698 eval "$as_ac_var=yes"
38700 echo "$as_me: failed program was:" >&5
38701 sed 's/^/| /' conftest.$ac_ext >&5
38703 eval "$as_ac_var=no"
38705 rm -f conftest.err conftest.$ac_objext \
38706 conftest$ac_exeext conftest.$ac_ext
38708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38710 if test `eval echo '${'$as_ac_var'}'` = yes; then
38711 cat >>confdefs.h <<_ACEOF
38712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38715 echo "$as_me:$LINENO: checking for _doprnt" >&5
38716 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38717 if test "${ac_cv_func__doprnt+set}" = set; then
38718 echo $ECHO_N "(cached) $ECHO_C" >&6
38720 cat >conftest.$ac_ext <<_ACEOF
38723 cat confdefs.h >>conftest.$ac_ext
38724 cat >>conftest.$ac_ext <<_ACEOF
38725 /* end confdefs.h. */
38726 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38728 #define _doprnt innocuous__doprnt
38730 /* System header to define __stub macros and hopefully few prototypes,
38731 which can conflict with char _doprnt (); below.
38732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38733 <limits.h> exists even on freestanding compilers. */
38736 # include <limits.h>
38738 # include <assert.h>
38743 /* Override any gcc2 internal prototype to avoid an error. */
38748 /* We use char because int might match the return type of a gcc2
38749 builtin and then its argument prototype would still apply. */
38751 /* The GNU C library defines this for functions which it implements
38752 to always fail with ENOSYS. Some functions are actually named
38753 something starting with __ and the normal name is an alias. */
38754 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38757 char (*f) () = _doprnt;
38766 return f != _doprnt;
38771 rm -f conftest.$ac_objext conftest$ac_exeext
38772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38773 (eval $ac_link) 2>conftest.er1
38775 grep -v '^ *+' conftest.er1 >conftest.err
38777 cat conftest.err >&5
38778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779 (exit $ac_status); } &&
38780 { ac_try='test -z "$ac_c_werror_flag"
38781 || test ! -s conftest.err'
38782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38783 (eval $ac_try) 2>&5
38785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786 (exit $ac_status); }; } &&
38787 { ac_try='test -s conftest$ac_exeext'
38788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38789 (eval $ac_try) 2>&5
38791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 (exit $ac_status); }; }; then
38793 ac_cv_func__doprnt=yes
38795 echo "$as_me: failed program was:" >&5
38796 sed 's/^/| /' conftest.$ac_ext >&5
38798 ac_cv_func__doprnt=no
38800 rm -f conftest.err conftest.$ac_objext \
38801 conftest$ac_exeext conftest.$ac_ext
38803 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38804 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38805 if test $ac_cv_func__doprnt = yes; then
38807 cat >>confdefs.h <<\_ACEOF
38808 #define HAVE_DOPRNT 1
38818 if test $ac_cv_func_vprintf = yes ; then
38821 for ac_func in snprintf vsnprintf
38823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38824 echo "$as_me:$LINENO: checking for $ac_func" >&5
38825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38826 if eval "test \"\${$as_ac_var+set}\" = set"; then
38827 echo $ECHO_N "(cached) $ECHO_C" >&6
38829 cat >conftest.$ac_ext <<_ACEOF
38832 cat confdefs.h >>conftest.$ac_ext
38833 cat >>conftest.$ac_ext <<_ACEOF
38834 /* end confdefs.h. */
38835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38837 #define $ac_func innocuous_$ac_func
38839 /* System header to define __stub macros and hopefully few prototypes,
38840 which can conflict with char $ac_func (); below.
38841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38842 <limits.h> exists even on freestanding compilers. */
38845 # include <limits.h>
38847 # include <assert.h>
38852 /* Override any gcc2 internal prototype to avoid an error. */
38857 /* We use char because int might match the return type of a gcc2
38858 builtin and then its argument prototype would still apply. */
38860 /* The GNU C library defines this for functions which it implements
38861 to always fail with ENOSYS. Some functions are actually named
38862 something starting with __ and the normal name is an alias. */
38863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38866 char (*f) () = $ac_func;
38875 return f != $ac_func;
38880 rm -f conftest.$ac_objext conftest$ac_exeext
38881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38882 (eval $ac_link) 2>conftest.er1
38884 grep -v '^ *+' conftest.er1 >conftest.err
38886 cat conftest.err >&5
38887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38888 (exit $ac_status); } &&
38889 { ac_try='test -z "$ac_c_werror_flag"
38890 || test ! -s conftest.err'
38891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38892 (eval $ac_try) 2>&5
38894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38895 (exit $ac_status); }; } &&
38896 { ac_try='test -s conftest$ac_exeext'
38897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38898 (eval $ac_try) 2>&5
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); }; }; then
38902 eval "$as_ac_var=yes"
38904 echo "$as_me: failed program was:" >&5
38905 sed 's/^/| /' conftest.$ac_ext >&5
38907 eval "$as_ac_var=no"
38909 rm -f conftest.err conftest.$ac_objext \
38910 conftest$ac_exeext conftest.$ac_ext
38912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38914 if test `eval echo '${'$as_ac_var'}'` = yes; then
38915 cat >>confdefs.h <<_ACEOF
38916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39038 echo "$as_me:$LINENO: checking for $ac_func" >&5
39039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39040 if eval "test \"\${$as_ac_var+set}\" = set"; then
39041 echo $ECHO_N "(cached) $ECHO_C" >&6
39043 cat >conftest.$ac_ext <<_ACEOF
39046 cat confdefs.h >>conftest.$ac_ext
39047 cat >>conftest.$ac_ext <<_ACEOF
39048 /* end confdefs.h. */
39049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39051 #define $ac_func innocuous_$ac_func
39053 /* System header to define __stub macros and hopefully few prototypes,
39054 which can conflict with char $ac_func (); below.
39055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39056 <limits.h> exists even on freestanding compilers. */
39059 # include <limits.h>
39061 # include <assert.h>
39066 /* Override any gcc2 internal prototype to avoid an error. */
39071 /* We use char because int might match the return type of a gcc2
39072 builtin and then its argument prototype would still apply. */
39074 /* The GNU C library defines this for functions which it implements
39075 to always fail with ENOSYS. Some functions are actually named
39076 something starting with __ and the normal name is an alias. */
39077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39080 char (*f) () = $ac_func;
39089 return f != $ac_func;
39094 rm -f conftest.$ac_objext conftest$ac_exeext
39095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39096 (eval $ac_link) 2>conftest.er1
39098 grep -v '^ *+' conftest.er1 >conftest.err
39100 cat conftest.err >&5
39101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39102 (exit $ac_status); } &&
39103 { ac_try='test -z "$ac_c_werror_flag"
39104 || test ! -s conftest.err'
39105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39106 (eval $ac_try) 2>&5
39108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109 (exit $ac_status); }; } &&
39110 { ac_try='test -s conftest$ac_exeext'
39111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39112 (eval $ac_try) 2>&5
39114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39115 (exit $ac_status); }; }; then
39116 eval "$as_ac_var=yes"
39118 echo "$as_me: failed program was:" >&5
39119 sed 's/^/| /' conftest.$ac_ext >&5
39121 eval "$as_ac_var=no"
39123 rm -f conftest.err conftest.$ac_objext \
39124 conftest$ac_exeext conftest.$ac_ext
39126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39128 if test `eval echo '${'$as_ac_var'}'` = yes; then
39129 cat >>confdefs.h <<_ACEOF
39130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39139 for ac_func in getopt getpeereid
39141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39142 echo "$as_me:$LINENO: checking for $ac_func" >&5
39143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39144 if eval "test \"\${$as_ac_var+set}\" = set"; then
39145 echo $ECHO_N "(cached) $ECHO_C" >&6
39147 cat >conftest.$ac_ext <<_ACEOF
39150 cat confdefs.h >>conftest.$ac_ext
39151 cat >>conftest.$ac_ext <<_ACEOF
39152 /* end confdefs.h. */
39153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39155 #define $ac_func innocuous_$ac_func
39157 /* System header to define __stub macros and hopefully few prototypes,
39158 which can conflict with char $ac_func (); below.
39159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39160 <limits.h> exists even on freestanding compilers. */
39163 # include <limits.h>
39165 # include <assert.h>
39170 /* Override any gcc2 internal prototype to avoid an error. */
39175 /* We use char because int might match the return type of a gcc2
39176 builtin and then its argument prototype would still apply. */
39178 /* The GNU C library defines this for functions which it implements
39179 to always fail with ENOSYS. Some functions are actually named
39180 something starting with __ and the normal name is an alias. */
39181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39184 char (*f) () = $ac_func;
39193 return f != $ac_func;
39198 rm -f conftest.$ac_objext conftest$ac_exeext
39199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39200 (eval $ac_link) 2>conftest.er1
39202 grep -v '^ *+' conftest.er1 >conftest.err
39204 cat conftest.err >&5
39205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206 (exit $ac_status); } &&
39207 { ac_try='test -z "$ac_c_werror_flag"
39208 || test ! -s conftest.err'
39209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210 (eval $ac_try) 2>&5
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); }; } &&
39214 { ac_try='test -s conftest$ac_exeext'
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; }; then
39220 eval "$as_ac_var=yes"
39222 echo "$as_me: failed program was:" >&5
39223 sed 's/^/| /' conftest.$ac_ext >&5
39225 eval "$as_ac_var=no"
39227 rm -f conftest.err conftest.$ac_objext \
39228 conftest$ac_exeext conftest.$ac_ext
39230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39232 if test `eval echo '${'$as_ac_var'}'` = yes; then
39233 cat >>confdefs.h <<_ACEOF
39234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39239 "$ac_func.$ac_objext" | \
39240 *" $ac_func.$ac_objext" | \
39241 "$ac_func.$ac_objext "* | \
39242 *" $ac_func.$ac_objext "* ) ;;
39243 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39251 if test "$ac_cv_func_getopt" != yes; then
39252 LIBSRCS="$LIBSRCS getopt.c"
39255 if test "$ac_cv_func_getpeereid" != yes; then
39257 for ac_func in getpeerucred
39259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39260 echo "$as_me:$LINENO: checking for $ac_func" >&5
39261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39262 if eval "test \"\${$as_ac_var+set}\" = set"; then
39263 echo $ECHO_N "(cached) $ECHO_C" >&6
39265 cat >conftest.$ac_ext <<_ACEOF
39268 cat confdefs.h >>conftest.$ac_ext
39269 cat >>conftest.$ac_ext <<_ACEOF
39270 /* end confdefs.h. */
39271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39273 #define $ac_func innocuous_$ac_func
39275 /* System header to define __stub macros and hopefully few prototypes,
39276 which can conflict with char $ac_func (); below.
39277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39278 <limits.h> exists even on freestanding compilers. */
39281 # include <limits.h>
39283 # include <assert.h>
39288 /* Override any gcc2 internal prototype to avoid an error. */
39293 /* We use char because int might match the return type of a gcc2
39294 builtin and then its argument prototype would still apply. */
39296 /* The GNU C library defines this for functions which it implements
39297 to always fail with ENOSYS. Some functions are actually named
39298 something starting with __ and the normal name is an alias. */
39299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39302 char (*f) () = $ac_func;
39311 return f != $ac_func;
39316 rm -f conftest.$ac_objext conftest$ac_exeext
39317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39318 (eval $ac_link) 2>conftest.er1
39320 grep -v '^ *+' conftest.er1 >conftest.err
39322 cat conftest.err >&5
39323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324 (exit $ac_status); } &&
39325 { ac_try='test -z "$ac_c_werror_flag"
39326 || test ! -s conftest.err'
39327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39328 (eval $ac_try) 2>&5
39330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39331 (exit $ac_status); }; } &&
39332 { ac_try='test -s conftest$ac_exeext'
39333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39334 (eval $ac_try) 2>&5
39336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337 (exit $ac_status); }; }; then
39338 eval "$as_ac_var=yes"
39340 echo "$as_me: failed program was:" >&5
39341 sed 's/^/| /' conftest.$ac_ext >&5
39343 eval "$as_ac_var=no"
39345 rm -f conftest.err conftest.$ac_objext \
39346 conftest$ac_exeext conftest.$ac_ext
39348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39350 if test `eval echo '${'$as_ac_var'}'` = yes; then
39351 cat >>confdefs.h <<_ACEOF
39352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39358 if test "$ac_cv_func_getpeerucred" != yes ; then
39359 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39360 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39361 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39362 echo $ECHO_N "(cached) $ECHO_C" >&6
39364 cat >conftest.$ac_ext <<_ACEOF
39367 cat confdefs.h >>conftest.$ac_ext
39368 cat >>conftest.$ac_ext <<_ACEOF
39369 /* end confdefs.h. */
39370 $ac_includes_default
39371 #ifdef HAVE_SYS_SOCKET_H
39372 #include <sys/socket.h>
39378 static struct msghdr ac_aggr;
39379 if (ac_aggr.msg_accrightslen)
39385 rm -f conftest.$ac_objext
39386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39387 (eval $ac_compile) 2>conftest.er1
39389 grep -v '^ *+' conftest.er1 >conftest.err
39391 cat conftest.err >&5
39392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39393 (exit $ac_status); } &&
39394 { ac_try='test -z "$ac_c_werror_flag"
39395 || test ! -s conftest.err'
39396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397 (eval $ac_try) 2>&5
39399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400 (exit $ac_status); }; } &&
39401 { ac_try='test -s conftest.$ac_objext'
39402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39403 (eval $ac_try) 2>&5
39405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406 (exit $ac_status); }; }; then
39407 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39409 echo "$as_me: failed program was:" >&5
39410 sed 's/^/| /' conftest.$ac_ext >&5
39412 cat >conftest.$ac_ext <<_ACEOF
39415 cat confdefs.h >>conftest.$ac_ext
39416 cat >>conftest.$ac_ext <<_ACEOF
39417 /* end confdefs.h. */
39418 $ac_includes_default
39419 #ifdef HAVE_SYS_SOCKET_H
39420 #include <sys/socket.h>
39426 static struct msghdr ac_aggr;
39427 if (sizeof ac_aggr.msg_accrightslen)
39433 rm -f conftest.$ac_objext
39434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39435 (eval $ac_compile) 2>conftest.er1
39437 grep -v '^ *+' conftest.er1 >conftest.err
39439 cat conftest.err >&5
39440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39441 (exit $ac_status); } &&
39442 { ac_try='test -z "$ac_c_werror_flag"
39443 || test ! -s conftest.err'
39444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39445 (eval $ac_try) 2>&5
39447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39448 (exit $ac_status); }; } &&
39449 { ac_try='test -s conftest.$ac_objext'
39450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39451 (eval $ac_try) 2>&5
39453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39454 (exit $ac_status); }; }; then
39455 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39457 echo "$as_me: failed program was:" >&5
39458 sed 's/^/| /' conftest.$ac_ext >&5
39460 ac_cv_member_struct_msghdr_msg_accrightslen=no
39462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39466 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39467 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39468 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39470 cat >>confdefs.h <<_ACEOF
39471 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39477 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39478 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39479 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39480 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39481 echo $ECHO_N "(cached) $ECHO_C" >&6
39483 cat >conftest.$ac_ext <<_ACEOF
39486 cat confdefs.h >>conftest.$ac_ext
39487 cat >>conftest.$ac_ext <<_ACEOF
39488 /* end confdefs.h. */
39489 $ac_includes_default
39490 #ifdef HAVE_SYS_SOCKET_H
39491 #include <sys/socket.h>
39497 static struct msghdr ac_aggr;
39498 if (ac_aggr.msg_control)
39504 rm -f conftest.$ac_objext
39505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39506 (eval $ac_compile) 2>conftest.er1
39508 grep -v '^ *+' conftest.er1 >conftest.err
39510 cat conftest.err >&5
39511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512 (exit $ac_status); } &&
39513 { ac_try='test -z "$ac_c_werror_flag"
39514 || test ! -s conftest.err'
39515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39516 (eval $ac_try) 2>&5
39518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); }; } &&
39520 { ac_try='test -s conftest.$ac_objext'
39521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39522 (eval $ac_try) 2>&5
39524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525 (exit $ac_status); }; }; then
39526 ac_cv_member_struct_msghdr_msg_control=yes
39528 echo "$as_me: failed program was:" >&5
39529 sed 's/^/| /' conftest.$ac_ext >&5
39531 cat >conftest.$ac_ext <<_ACEOF
39534 cat confdefs.h >>conftest.$ac_ext
39535 cat >>conftest.$ac_ext <<_ACEOF
39536 /* end confdefs.h. */
39537 $ac_includes_default
39538 #ifdef HAVE_SYS_SOCKET_H
39539 #include <sys/socket.h>
39545 static struct msghdr ac_aggr;
39546 if (sizeof ac_aggr.msg_control)
39552 rm -f conftest.$ac_objext
39553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39554 (eval $ac_compile) 2>conftest.er1
39556 grep -v '^ *+' conftest.er1 >conftest.err
39558 cat conftest.err >&5
39559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39560 (exit $ac_status); } &&
39561 { ac_try='test -z "$ac_c_werror_flag"
39562 || test ! -s conftest.err'
39563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39564 (eval $ac_try) 2>&5
39566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39567 (exit $ac_status); }; } &&
39568 { ac_try='test -s conftest.$ac_objext'
39569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39570 (eval $ac_try) 2>&5
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); }; }; then
39574 ac_cv_member_struct_msghdr_msg_control=yes
39576 echo "$as_me: failed program was:" >&5
39577 sed 's/^/| /' conftest.$ac_ext >&5
39579 ac_cv_member_struct_msghdr_msg_control=no
39581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39586 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39587 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39589 cat >>confdefs.h <<_ACEOF
39590 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39597 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39598 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39599 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39600 echo $ECHO_N "(cached) $ECHO_C" >&6
39602 cat >conftest.$ac_ext <<_ACEOF
39605 cat confdefs.h >>conftest.$ac_ext
39606 cat >>conftest.$ac_ext <<_ACEOF
39607 /* end confdefs.h. */
39608 $ac_includes_default
39612 static struct stat ac_aggr;
39613 if (ac_aggr.st_fstype)
39619 rm -f conftest.$ac_objext
39620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39621 (eval $ac_compile) 2>conftest.er1
39623 grep -v '^ *+' conftest.er1 >conftest.err
39625 cat conftest.err >&5
39626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627 (exit $ac_status); } &&
39628 { ac_try='test -z "$ac_c_werror_flag"
39629 || test ! -s conftest.err'
39630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39631 (eval $ac_try) 2>&5
39633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); }; } &&
39635 { ac_try='test -s conftest.$ac_objext'
39636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39637 (eval $ac_try) 2>&5
39639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39640 (exit $ac_status); }; }; then
39641 ac_cv_member_struct_stat_st_fstype=yes
39643 echo "$as_me: failed program was:" >&5
39644 sed 's/^/| /' conftest.$ac_ext >&5
39646 cat >conftest.$ac_ext <<_ACEOF
39649 cat confdefs.h >>conftest.$ac_ext
39650 cat >>conftest.$ac_ext <<_ACEOF
39651 /* end confdefs.h. */
39652 $ac_includes_default
39656 static struct stat ac_aggr;
39657 if (sizeof ac_aggr.st_fstype)
39663 rm -f conftest.$ac_objext
39664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39665 (eval $ac_compile) 2>conftest.er1
39667 grep -v '^ *+' conftest.er1 >conftest.err
39669 cat conftest.err >&5
39670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671 (exit $ac_status); } &&
39672 { ac_try='test -z "$ac_c_werror_flag"
39673 || test ! -s conftest.err'
39674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39675 (eval $ac_try) 2>&5
39677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); }; } &&
39679 { ac_try='test -s conftest.$ac_objext'
39680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39681 (eval $ac_try) 2>&5
39683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684 (exit $ac_status); }; }; then
39685 ac_cv_member_struct_stat_st_fstype=yes
39687 echo "$as_me: failed program was:" >&5
39688 sed 's/^/| /' conftest.$ac_ext >&5
39690 ac_cv_member_struct_stat_st_fstype=no
39692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39696 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39697 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39698 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39700 cat >>confdefs.h <<_ACEOF
39701 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39706 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39707 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39708 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39709 echo $ECHO_N "(cached) $ECHO_C" >&6
39711 cat >conftest.$ac_ext <<_ACEOF
39714 cat confdefs.h >>conftest.$ac_ext
39715 cat >>conftest.$ac_ext <<_ACEOF
39716 /* end confdefs.h. */
39717 $ac_includes_default
39721 static struct stat ac_aggr;
39722 if (ac_aggr.st_vfstype)
39728 rm -f conftest.$ac_objext
39729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39730 (eval $ac_compile) 2>conftest.er1
39732 grep -v '^ *+' conftest.er1 >conftest.err
39734 cat conftest.err >&5
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); } &&
39737 { ac_try='test -z "$ac_c_werror_flag"
39738 || test ! -s conftest.err'
39739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39740 (eval $ac_try) 2>&5
39742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743 (exit $ac_status); }; } &&
39744 { ac_try='test -s conftest.$ac_objext'
39745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39746 (eval $ac_try) 2>&5
39748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39749 (exit $ac_status); }; }; then
39750 ac_cv_member_struct_stat_st_vfstype=yes
39752 echo "$as_me: failed program was:" >&5
39753 sed 's/^/| /' conftest.$ac_ext >&5
39755 cat >conftest.$ac_ext <<_ACEOF
39758 cat confdefs.h >>conftest.$ac_ext
39759 cat >>conftest.$ac_ext <<_ACEOF
39760 /* end confdefs.h. */
39761 $ac_includes_default
39765 static struct stat ac_aggr;
39766 if (sizeof ac_aggr.st_vfstype)
39772 rm -f conftest.$ac_objext
39773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39774 (eval $ac_compile) 2>conftest.er1
39776 grep -v '^ *+' conftest.er1 >conftest.err
39778 cat conftest.err >&5
39779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39780 (exit $ac_status); } &&
39781 { ac_try='test -z "$ac_c_werror_flag"
39782 || test ! -s conftest.err'
39783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39784 (eval $ac_try) 2>&5
39786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787 (exit $ac_status); }; } &&
39788 { ac_try='test -s conftest.$ac_objext'
39789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39790 (eval $ac_try) 2>&5
39792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39793 (exit $ac_status); }; }; then
39794 ac_cv_member_struct_stat_st_vfstype=yes
39796 echo "$as_me: failed program was:" >&5
39797 sed 's/^/| /' conftest.$ac_ext >&5
39799 ac_cv_member_struct_stat_st_vfstype=no
39801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39805 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
39806 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
39807 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
39809 cat >>confdefs.h <<_ACEOF
39810 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
39816 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
39817 cat >conftest.$ac_ext <<_ACEOF
39818 struct stat st; char *ptr=st.st_fstype;
39820 rm -f conftest.$ac_objext
39821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39822 (eval $ac_compile) 2>conftest.er1
39824 grep -v '^ *+' conftest.er1 >conftest.err
39826 cat conftest.err >&5
39827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828 (exit $ac_status); } &&
39829 { ac_try='test -z "$ac_c_werror_flag"
39830 || test ! -s conftest.err'
39831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39832 (eval $ac_try) 2>&5
39834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835 (exit $ac_status); }; } &&
39836 { ac_try='test -s conftest.$ac_objext'
39837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39838 (eval $ac_try) 2>&5
39840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); }; }; then
39843 cat >>confdefs.h <<\_ACEOF
39844 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
39848 echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39852 cat >>confdefs.h <<\_ACEOF
39853 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
39857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39860 LIBSRCS="$LIBSRCS getpeereid.c"
39863 if test "$ac_cv_func_snprintf" != yes ||
39864 test "$ac_cv_func_vsnprintf" != yes; then
39865 if test "$ac_cv_func_snprintf" != yes; then
39867 cat >>confdefs.h <<\_ACEOF
39868 #define snprintf ber_pvt_snprintf
39872 if test "$ac_cv_func_vsnprintf" != yes; then
39874 cat >>confdefs.h <<\_ACEOF
39875 #define vsnprintf ber_pvt_vsnprintf
39882 if test "$ol_enable_slapi" != no ; then
39884 for ac_header in ltdl.h
39886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39888 echo "$as_me:$LINENO: checking for $ac_header" >&5
39889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39891 echo $ECHO_N "(cached) $ECHO_C" >&6
39893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39896 # Is the header compilable?
39897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39899 cat >conftest.$ac_ext <<_ACEOF
39902 cat confdefs.h >>conftest.$ac_ext
39903 cat >>conftest.$ac_ext <<_ACEOF
39904 /* end confdefs.h. */
39905 $ac_includes_default
39906 #include <$ac_header>
39908 rm -f conftest.$ac_objext
39909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39910 (eval $ac_compile) 2>conftest.er1
39912 grep -v '^ *+' conftest.er1 >conftest.err
39914 cat conftest.err >&5
39915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916 (exit $ac_status); } &&
39917 { ac_try='test -z "$ac_c_werror_flag"
39918 || test ! -s conftest.err'
39919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39920 (eval $ac_try) 2>&5
39922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39923 (exit $ac_status); }; } &&
39924 { ac_try='test -s conftest.$ac_objext'
39925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39926 (eval $ac_try) 2>&5
39928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929 (exit $ac_status); }; }; then
39930 ac_header_compiler=yes
39932 echo "$as_me: failed program was:" >&5
39933 sed 's/^/| /' conftest.$ac_ext >&5
39935 ac_header_compiler=no
39937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39939 echo "${ECHO_T}$ac_header_compiler" >&6
39941 # Is the header present?
39942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39944 cat >conftest.$ac_ext <<_ACEOF
39947 cat confdefs.h >>conftest.$ac_ext
39948 cat >>conftest.$ac_ext <<_ACEOF
39949 /* end confdefs.h. */
39950 #include <$ac_header>
39952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39955 grep -v '^ *+' conftest.er1 >conftest.err
39957 cat conftest.err >&5
39958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959 (exit $ac_status); } >/dev/null; then
39960 if test -s conftest.err; then
39961 ac_cpp_err=$ac_c_preproc_warn_flag
39962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39969 if test -z "$ac_cpp_err"; then
39970 ac_header_preproc=yes
39972 echo "$as_me: failed program was:" >&5
39973 sed 's/^/| /' conftest.$ac_ext >&5
39975 ac_header_preproc=no
39977 rm -f conftest.err conftest.$ac_ext
39978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39979 echo "${ECHO_T}$ac_header_preproc" >&6
39981 # So? What about this header?
39982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39988 ac_header_preproc=yes
39991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40005 ## --------------------------------------------- ##
40006 ## Report this to <http://www.openldap.org/its/> ##
40007 ## --------------------------------------------- ##
40010 sed "s/^/$as_me: WARNING: /" >&2
40013 echo "$as_me:$LINENO: checking for $ac_header" >&5
40014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40016 echo $ECHO_N "(cached) $ECHO_C" >&6
40018 eval "$as_ac_Header=\$ac_header_preproc"
40020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40025 cat >>confdefs.h <<_ACEOF
40026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40034 if test $ac_cv_header_ltdl_h != yes ; then
40035 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40036 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40037 { (exit 1); exit 1; }; }
40039 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40040 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40041 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40042 echo $ECHO_N "(cached) $ECHO_C" >&6
40044 ac_check_lib_save_LIBS=$LIBS
40045 LIBS="-lltdl $LIBS"
40046 cat >conftest.$ac_ext <<_ACEOF
40049 cat confdefs.h >>conftest.$ac_ext
40050 cat >>conftest.$ac_ext <<_ACEOF
40051 /* end confdefs.h. */
40053 /* Override any gcc2 internal prototype to avoid an error. */
40057 /* We use char because int might match the return type of a gcc2
40058 builtin and then its argument prototype would still apply. */
40068 rm -f conftest.$ac_objext conftest$ac_exeext
40069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40070 (eval $ac_link) 2>conftest.er1
40072 grep -v '^ *+' conftest.er1 >conftest.err
40074 cat conftest.err >&5
40075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40076 (exit $ac_status); } &&
40077 { ac_try='test -z "$ac_c_werror_flag"
40078 || test ! -s conftest.err'
40079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40080 (eval $ac_try) 2>&5
40082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40083 (exit $ac_status); }; } &&
40084 { ac_try='test -s conftest$ac_exeext'
40085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40086 (eval $ac_try) 2>&5
40088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089 (exit $ac_status); }; }; then
40090 ac_cv_lib_ltdl_lt_dlinit=yes
40092 echo "$as_me: failed program was:" >&5
40093 sed 's/^/| /' conftest.$ac_ext >&5
40095 ac_cv_lib_ltdl_lt_dlinit=no
40097 rm -f conftest.err conftest.$ac_objext \
40098 conftest$ac_exeext conftest.$ac_ext
40099 LIBS=$ac_check_lib_save_LIBS
40101 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40102 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40103 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40106 LIBSLAPI=libslapi.a
40107 LIBSLAPITOOLS=../libslapi.a
40109 cat >>confdefs.h <<\_ACEOF
40110 #define HAVE_LIBLTDL 1
40115 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40116 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40117 { (exit 1); exit 1; }; }
40122 cat >>confdefs.h <<\_ACEOF
40123 #define LDAP_SLAPI 1
40128 if test "$ol_enable_debug" != no ; then
40129 if test "$ol_enable_debug" = traditional; then
40131 cat >>confdefs.h <<\_ACEOF
40132 #define OLD_DEBUG 1
40137 cat >>confdefs.h <<\_ACEOF
40138 #define LDAP_DEBUG 1
40142 if test "$ol_enable_syslog" = yes ; then
40144 cat >>confdefs.h <<\_ACEOF
40145 #define LDAP_SYSLOG 1
40149 if test "$ol_enable_proctitle" != no ; then
40151 cat >>confdefs.h <<\_ACEOF
40152 #define LDAP_PROCTITLE 1
40156 if test "$ol_enable_referrals" != no ; then
40158 cat >>confdefs.h <<\_ACEOF
40159 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40163 if test "$ol_enable_local" != no; then
40165 cat >>confdefs.h <<\_ACEOF
40166 #define LDAP_PF_LOCAL 1
40170 if test "$ol_link_ipv6" != no; then
40172 cat >>confdefs.h <<\_ACEOF
40173 #define LDAP_PF_INET6 1
40177 if test "$ol_enable_cleartext" != no ; then
40179 cat >>confdefs.h <<\_ACEOF
40180 #define SLAPD_CLEARTEXT 1
40184 if test "$ol_enable_crypt" != no ; then
40186 cat >>confdefs.h <<\_ACEOF
40187 #define SLAPD_CRYPT 1
40191 if test "$ol_link_spasswd" != no ; then
40193 cat >>confdefs.h <<\_ACEOF
40194 #define SLAPD_SPASSWD 1
40198 if test "$ol_enable_rlookups" != no ; then
40200 cat >>confdefs.h <<\_ACEOF
40201 #define SLAPD_RLOOKUPS 1
40205 if test "$ol_enable_aci" != no ; then
40206 if test $ol_enable_dynacl = no ; then
40207 ol_enable_dynacl=yes
40208 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40209 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40211 if test "$ol_enable_aci" = mod ; then
40212 MFLAG=SLAPD_MOD_DYNAMIC
40213 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40214 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40215 { (exit 1); exit 1; }; }
40217 MFLAG=SLAPD_MOD_STATIC
40219 WITH_ACI_ENABLED=$ol_enable_aci
40221 cat >>confdefs.h <<_ACEOF
40222 #define SLAPD_ACI_ENABLED $MFLAG
40226 WITH_ACI_ENABLED=no
40228 if test "$ol_enable_dynacl" != no ; then
40230 cat >>confdefs.h <<\_ACEOF
40231 #define SLAP_DYNACL 1
40236 if test "$ol_link_modules" != no ; then
40238 cat >>confdefs.h <<\_ACEOF
40239 #define SLAPD_MODULES 1
40243 SLAPD_MODULES_LDFLAGS="-dlopen self"
40247 cat >>confdefs.h <<\_ACEOF
40248 #define SLAPD_MOD_STATIC 1
40252 cat >>confdefs.h <<\_ACEOF
40253 #define SLAPD_MOD_DYNAMIC 2
40257 if test "$ol_enable_monitor" != no ; then
40259 BUILD_MONITOR=$ol_enable_monitor
40260 if test "$ol_enable_monitor" = mod ; then
40261 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40262 MFLAG=SLAPD_MOD_DYNAMIC
40264 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40265 MFLAG=SLAPD_MOD_STATIC
40268 cat >>confdefs.h <<_ACEOF
40269 #define SLAPD_MONITOR $MFLAG
40274 if test "$ol_enable_bdb" != no ; then
40276 BUILD_BDB=$ol_enable_bdb
40277 if test "$ol_enable_bdb" = mod ; then
40278 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40279 MFLAG=SLAPD_MOD_DYNAMIC
40281 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40282 MFLAG=SLAPD_MOD_STATIC
40285 cat >>confdefs.h <<_ACEOF
40286 #define SLAPD_BDB $MFLAG
40291 if test "$ol_enable_dnssrv" != no ; then
40293 BUILD_DNSSRV=$ol_enable_dnssrv
40294 if test "$ol_enable_dnssrv" = mod ; then
40295 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40296 MFLAG=SLAPD_MOD_DYNAMIC
40298 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40299 MFLAG=SLAPD_MOD_STATIC
40302 cat >>confdefs.h <<_ACEOF
40303 #define SLAPD_DNSSRV $MFLAG
40308 if test "$ol_enable_hdb" != no ; then
40310 BUILD_HDB=$ol_enable_hdb
40311 if test "$ol_enable_hdb" = mod ; then
40312 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40313 MFLAG=SLAPD_MOD_DYNAMIC
40315 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40316 MFLAG=SLAPD_MOD_STATIC
40319 cat >>confdefs.h <<_ACEOF
40320 #define SLAPD_HDB $MFLAG
40325 if test "$ol_enable_ldap" != no ; then
40327 BUILD_LDAP=$ol_enable_ldap
40328 if test "$ol_enable_ldap" = mod ; then
40329 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40330 MFLAG=SLAPD_MOD_DYNAMIC
40332 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40333 MFLAG=SLAPD_MOD_STATIC
40336 cat >>confdefs.h <<_ACEOF
40337 #define SLAPD_LDAP $MFLAG
40342 if test "$ol_enable_meta" != no ; then
40344 BUILD_META=$ol_enable_meta
40346 if test "$ol_enable_meta" = mod ; then
40347 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40348 MFLAG=SLAPD_MOD_DYNAMIC
40350 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40351 MFLAG=SLAPD_MOD_STATIC
40354 cat >>confdefs.h <<_ACEOF
40355 #define SLAPD_META $MFLAG
40360 if test "$ol_enable_null" != no ; then
40362 BUILD_NULL=$ol_enable_null
40363 if test "$ol_enable_null" = mod ; then
40364 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40365 MFLAG=SLAPD_MOD_DYNAMIC
40367 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40368 MFLAG=SLAPD_MOD_STATIC
40371 cat >>confdefs.h <<_ACEOF
40372 #define SLAPD_NULL $MFLAG
40377 if test "$ol_enable_passwd" != no ; then
40379 BUILD_PASSWD=$ol_enable_passwd
40380 if test "$ol_enable_passwd" = mod ; then
40381 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40382 MFLAG=SLAPD_MOD_DYNAMIC
40384 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40385 MFLAG=SLAPD_MOD_STATIC
40388 cat >>confdefs.h <<_ACEOF
40389 #define SLAPD_PASSWD $MFLAG
40394 if test "$ol_link_perl" != no ; then
40396 BUILD_PERL=$ol_enable_perl
40397 if test "$ol_enable_perl" = mod ; then
40398 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40399 MFLAG=SLAPD_MOD_DYNAMIC
40401 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40402 MFLAG=SLAPD_MOD_STATIC
40405 cat >>confdefs.h <<_ACEOF
40406 #define SLAPD_PERL $MFLAG
40411 if test "$ol_enable_relay" != no ; then
40413 BUILD_RELAY=$ol_enable_relay
40414 if test "$ol_enable_relay" = mod ; then
40415 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40416 MFLAG=SLAPD_MOD_DYNAMIC
40418 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40419 MFLAG=SLAPD_MOD_STATIC
40422 cat >>confdefs.h <<_ACEOF
40423 #define SLAPD_RELAY $MFLAG
40428 if test "$ol_enable_shell" != no ; then
40429 if test "$ol_link_threads" != no ; then
40430 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40431 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40434 BUILD_SHELL=$ol_enable_shell
40435 if test "$ol_enable_shell" = mod ; then
40436 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40437 MFLAG=SLAPD_MOD_DYNAMIC
40439 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40440 MFLAG=SLAPD_MOD_STATIC
40443 cat >>confdefs.h <<_ACEOF
40444 #define SLAPD_SHELL $MFLAG
40449 if test "$ol_link_sql" != no ; then
40451 BUILD_SQL=$ol_enable_sql
40452 if test "$ol_enable_sql" = mod; then
40453 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40454 MFLAG=SLAPD_MOD_DYNAMIC
40456 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40457 MFLAG=SLAPD_MOD_STATIC
40460 cat >>confdefs.h <<_ACEOF
40461 #define SLAPD_SQL $MFLAG
40466 if test "$ol_enable_accesslog" != no ; then
40467 BUILD_ACCESSLOG=$ol_enable_accesslog
40468 if test "$ol_enable_accesslog" = mod ; then
40469 MFLAG=SLAPD_MOD_DYNAMIC
40470 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40472 MFLAG=SLAPD_MOD_STATIC
40473 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40476 cat >>confdefs.h <<_ACEOF
40477 #define SLAPD_OVER_ACCESSLOG $MFLAG
40482 if test "$ol_enable_auditlog" != no ; then
40483 BUILD_AUDITLOG=$ol_enable_auditlog
40484 if test "$ol_enable_auditlog" = mod ; then
40485 MFLAG=SLAPD_MOD_DYNAMIC
40486 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40488 MFLAG=SLAPD_MOD_STATIC
40489 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40492 cat >>confdefs.h <<_ACEOF
40493 #define SLAPD_OVER_AUDITLOG $MFLAG
40498 if test "$ol_enable_constraint" != no ; then
40499 BUILD_CONSTRAINT=$ol_enable_constraint
40500 if test "$ol_enable_constraint" = mod ; then
40501 MFLAG=SLAPD_MOD_DYNAMIC
40502 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40504 MFLAG=SLAPD_MOD_STATIC
40505 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40508 cat >>confdefs.h <<_ACEOF
40509 #define SLAPD_OVER_CONSTRAINT $MFLAG
40514 if test "$ol_enable_dds" != no ; then
40515 BUILD_DDS=$ol_enable_dds
40516 if test "$ol_enable_dds" = mod ; then
40517 MFLAG=SLAPD_MOD_DYNAMIC
40518 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40520 MFLAG=SLAPD_MOD_STATIC
40521 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40524 cat >>confdefs.h <<_ACEOF
40525 #define SLAPD_OVER_DDS $MFLAG
40530 if test "$ol_enable_dyngroup" != no ; then
40531 BUILD_DYNGROUP=$ol_enable_dyngroup
40532 if test "$ol_enable_dyngroup" = mod ; then
40533 MFLAG=SLAPD_MOD_DYNAMIC
40534 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40536 MFLAG=SLAPD_MOD_STATIC
40537 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40540 cat >>confdefs.h <<_ACEOF
40541 #define SLAPD_OVER_DYNGROUP $MFLAG
40546 if test "$ol_enable_dynlist" != no ; then
40547 BUILD_DYNLIST=$ol_enable_dynlist
40548 if test "$ol_enable_dynlist" = mod ; then
40549 MFLAG=SLAPD_MOD_DYNAMIC
40550 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40552 MFLAG=SLAPD_MOD_STATIC
40553 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40556 cat >>confdefs.h <<_ACEOF
40557 #define SLAPD_OVER_DYNLIST $MFLAG
40562 if test "$ol_enable_ppolicy" != no ; then
40563 BUILD_PPOLICY=$ol_enable_ppolicy
40564 if test "$ol_enable_ppolicy" = mod ; then
40565 MFLAG=SLAPD_MOD_DYNAMIC
40566 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40568 MFLAG=SLAPD_MOD_STATIC
40569 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40572 cat >>confdefs.h <<_ACEOF
40573 #define SLAPD_OVER_PPOLICY $MFLAG
40578 if test "$ol_enable_proxycache" != no ; then
40579 BUILD_PROXYCACHE=$ol_enable_proxycache
40580 if test "$ol_enable_proxycache" = mod ; then
40581 MFLAG=SLAPD_MOD_DYNAMIC
40582 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40584 MFLAG=SLAPD_MOD_STATIC
40585 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40588 cat >>confdefs.h <<_ACEOF
40589 #define SLAPD_OVER_PROXYCACHE $MFLAG
40594 if test "$ol_enable_refint" != no ; then
40595 BUILD_REFINT=$ol_enable_refint
40596 if test "$ol_enable_refint" = mod ; then
40597 MFLAG=SLAPD_MOD_DYNAMIC
40598 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40600 MFLAG=SLAPD_MOD_STATIC
40601 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40604 cat >>confdefs.h <<_ACEOF
40605 #define SLAPD_OVER_REFINT $MFLAG
40610 if test "$ol_enable_retcode" != no ; then
40611 BUILD_RETCODE=$ol_enable_retcode
40612 if test "$ol_enable_retcode" = mod ; then
40613 MFLAG=SLAPD_MOD_DYNAMIC
40614 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40616 MFLAG=SLAPD_MOD_STATIC
40617 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40620 cat >>confdefs.h <<_ACEOF
40621 #define SLAPD_OVER_RETCODE $MFLAG
40626 if test "$ol_enable_rwm" != no ; then
40628 BUILD_RWM=$ol_enable_rwm
40629 if test "$ol_enable_rwm" = mod ; then
40630 MFLAG=SLAPD_MOD_DYNAMIC
40631 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40633 MFLAG=SLAPD_MOD_STATIC
40634 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40637 cat >>confdefs.h <<_ACEOF
40638 #define SLAPD_OVER_RWM $MFLAG
40643 if test "$ol_enable_seqmod" != no ; then
40644 BUILD_SEQMOD=$ol_enable_seqmod
40645 if test "$ol_enable_seqmod" = mod ; then
40646 MFLAG=SLAPD_MOD_DYNAMIC
40647 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40649 MFLAG=SLAPD_MOD_STATIC
40650 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40653 cat >>confdefs.h <<_ACEOF
40654 #define SLAPD_OVER_SEQMOD $MFLAG
40659 if test "$ol_enable_syncprov" != no ; then
40660 BUILD_SYNCPROV=$ol_enable_syncprov
40661 if test "$ol_enable_syncprov" = mod ; then
40662 MFLAG=SLAPD_MOD_DYNAMIC
40663 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40665 MFLAG=SLAPD_MOD_STATIC
40666 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40669 cat >>confdefs.h <<_ACEOF
40670 #define SLAPD_OVER_SYNCPROV $MFLAG
40675 if test "$ol_enable_translucent" != no ; then
40676 BUILD_TRANSLUCENT=$ol_enable_translucent
40677 if test "$ol_enable_translucent" = mod ; then
40678 MFLAG=SLAPD_MOD_DYNAMIC
40679 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40681 MFLAG=SLAPD_MOD_STATIC
40682 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40685 cat >>confdefs.h <<_ACEOF
40686 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40691 if test "$ol_enable_unique" != no ; then
40692 BUILD_UNIQUE=$ol_enable_unique
40693 if test "$ol_enable_unique" = mod ; then
40694 MFLAG=SLAPD_MOD_DYNAMIC
40695 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40697 MFLAG=SLAPD_MOD_STATIC
40698 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40701 cat >>confdefs.h <<_ACEOF
40702 #define SLAPD_OVER_UNIQUE $MFLAG
40707 if test "$ol_enable_valsort" != no ; then
40708 BUILD_VALSORT=$ol_enable_valsort
40709 if test "$ol_enable_valsort" = mod ; then
40710 MFLAG=SLAPD_MOD_DYNAMIC
40711 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40713 MFLAG=SLAPD_MOD_STATIC
40714 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40717 cat >>confdefs.h <<_ACEOF
40718 #define SLAPD_OVER_VALSORT $MFLAG
40723 if test "$ol_enable_rewrite" != no ; then
40725 cat >>confdefs.h <<\_ACEOF
40726 #define ENABLE_REWRITE 1
40732 if test "$ol_enable_slapi" != no ; then
40734 cat >>confdefs.h <<\_ACEOF
40735 #define ENABLE_SLAPI 1
40739 SLAPD_SLAPI_DEPEND=libslapi.a
40744 if test "$ac_cv_mingw32" = yes ; then
40746 SLAPD_MODULES_LDFLAGS=
40833 # Check whether --with-xxinstall or --without-xxinstall was given.
40834 if test "${with_xxinstall+set}" = set; then
40835 withval="$with_xxinstall"
40840 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-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-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"
40843 ac_config_commands="$ac_config_commands default"
40847 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40848 # Let make expand exec_prefix.
40849 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40851 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40852 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40853 # trailing colons and then remove the whole line if VPATH becomes empty
40854 # (actually we leave an empty line to preserve line numbers).
40855 if test "x$srcdir" = x.; then
40856 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40857 s/:*\$(srcdir):*/:/;
40858 s/:*\${srcdir}:*/:/;
40860 s/^\([^=]*=[ ]*\):*/\1/;
40866 DEFS=-DHAVE_CONFIG_H
40870 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40871 # 1. Remove the extension, and $U if already installed.
40872 ac_i=`echo "$ac_i" |
40873 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40875 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40876 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40878 LIBOBJS=$ac_libobjs
40880 LTLIBOBJS=$ac_ltlibobjs
40883 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40884 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40885 Usually this means the macro was only invoked conditionally." >&5
40886 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40887 Usually this means the macro was only invoked conditionally." >&2;}
40888 { (exit 1); exit 1; }; }
40890 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40891 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40892 Usually this means the macro was only invoked conditionally." >&5
40893 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40894 Usually this means the macro was only invoked conditionally." >&2;}
40895 { (exit 1); exit 1; }; }
40897 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40898 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40899 Usually this means the macro was only invoked conditionally." >&5
40900 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40901 Usually this means the macro was only invoked conditionally." >&2;}
40902 { (exit 1); exit 1; }; }
40905 : ${CONFIG_STATUS=./config.status}
40906 ac_clean_files_save=$ac_clean_files
40907 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40908 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40909 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40910 cat >$CONFIG_STATUS <<_ACEOF
40912 # Generated by $as_me.
40913 # Run this file to recreate the current configuration.
40914 # Compiler output produced by configure, useful for debugging
40915 # configure, is in config.log if it exists.
40918 ac_cs_recheck=false
40920 SHELL=\${CONFIG_SHELL-$SHELL}
40923 cat >>$CONFIG_STATUS <<\_ACEOF
40924 ## --------------------- ##
40925 ## M4sh Initialization. ##
40926 ## --------------------- ##
40928 # Be Bourne compatible
40929 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40932 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40933 # is contrary to our usage. Disable this feature.
40934 alias -g '${1+"$@"}'='"$@"'
40935 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40938 DUALCASE=1; export DUALCASE # for MKS sh
40940 # Support unset when possible.
40941 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40948 # Work around bugs in pre-3.0 UWIN ksh.
40949 $as_unset ENV MAIL MAILPATH
40956 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40957 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40958 LC_TELEPHONE LC_TIME
40960 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40961 eval $as_var=C; export $as_var
40967 # Required to use basename.
40968 if expr a : '\(a\)' >/dev/null 2>&1; then
40974 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40975 as_basename=basename
40981 # Name of the executable.
40982 as_me=`$as_basename "$0" ||
40983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40984 X"$0" : 'X\(//\)$' \| \
40985 X"$0" : 'X\(/\)$' \| \
40986 . : '\(.\)' 2>/dev/null ||
40988 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40989 /^X\/\(\/\/\)$/{ s//\1/; q; }
40990 /^X\/\(\/\).*/{ s//\1/; q; }
40994 # PATH needs CR, and LINENO needs CR and PATH.
40995 # Avoid depending upon Character Ranges.
40996 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40997 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40998 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40999 as_cr_digits='0123456789'
41000 as_cr_alnum=$as_cr_Letters$as_cr_digits
41002 # The user is always right.
41003 if test "${PATH_SEPARATOR+set}" != set; then
41004 echo "#! /bin/sh" >conf$$.sh
41005 echo "exit 0" >>conf$$.sh
41007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41016 as_lineno_1=$LINENO
41017 as_lineno_2=$LINENO
41018 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41019 test "x$as_lineno_1" != "x$as_lineno_2" &&
41020 test "x$as_lineno_3" = "x$as_lineno_2" || {
41021 # Find who we are. Look in the path if we contain no path at all
41024 *[\\/]* ) as_myself=$0 ;;
41025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41026 for as_dir in $PATH
41029 test -z "$as_dir" && as_dir=.
41030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41035 # We did not find ourselves, most probably we were run as `sh COMMAND'
41036 # in which case we are not to be found in the path.
41037 if test "x$as_myself" = x; then
41040 if test ! -f "$as_myself"; then
41041 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41042 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41043 { (exit 1); exit 1; }; }
41045 case $CONFIG_SHELL in
41047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41048 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41051 test -z "$as_dir" && as_dir=.
41052 for as_base in sh bash ksh sh5; do
41055 if ("$as_dir/$as_base" -c '
41056 as_lineno_1=$LINENO
41057 as_lineno_2=$LINENO
41058 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41059 test "x$as_lineno_1" != "x$as_lineno_2" &&
41060 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41061 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41062 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41063 CONFIG_SHELL=$as_dir/$as_base
41064 export CONFIG_SHELL
41065 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41073 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41074 # uniformly replaced by the line number. The first 'sed' inserts a
41075 # line-number line before each line; the second 'sed' does the real
41076 # work. The second script uses 'N' to pair each line-number line
41077 # with the numbered line, and appends trailing '-' during
41078 # substitution so that $LINENO is not a special case at line end.
41079 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41080 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41081 sed '=' <$as_myself |
41086 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41089 s,^['$as_cr_digits']*\n,,
41090 ' >$as_me.lineno &&
41091 chmod +x $as_me.lineno ||
41092 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41093 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41094 { (exit 1); exit 1; }; }
41096 # Don't try to exec as it changes $[0], causing all sort of problems
41097 # (the dirname of $[0] is not the place where we might find the
41098 # original and so on. Autoconf is especially sensible to this).
41100 # Exit status is that of the last command.
41105 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41106 *c*,-n*) ECHO_N= ECHO_C='
41108 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41109 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41112 if expr a : '\(a\)' >/dev/null 2>&1; then
41118 rm -f conf$$ conf$$.exe conf$$.file
41120 if ln -s conf$$.file conf$$ 2>/dev/null; then
41121 # We could just check for DJGPP; but this test a) works b) is more generic
41122 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41123 if test -f conf$$.exe; then
41124 # Don't use ln at all; we don't have any links
41129 elif ln conf$$.file conf$$ 2>/dev/null; then
41134 rm -f conf$$ conf$$.exe conf$$.file
41136 if mkdir -p . 2>/dev/null; then
41139 test -d ./-p && rmdir ./-p
41143 as_executable_p="test -f"
41145 # Sed expression to map a string onto a valid CPP name.
41146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41148 # Sed expression to map a string onto a valid variable name.
41149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41153 # We need space, tab and new line, in precisely that order.
41163 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41164 # report actual input values of CONFIG_FILES etc. instead of their
41165 # values after options handling. Logging --version etc. is OK.
41169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41170 ## Running $as_me. ##
41175 This file was extended by $as_me, which was
41176 generated by GNU Autoconf 2.59. Invocation command line was
41178 CONFIG_FILES = $CONFIG_FILES
41179 CONFIG_HEADERS = $CONFIG_HEADERS
41180 CONFIG_LINKS = $CONFIG_LINKS
41181 CONFIG_COMMANDS = $CONFIG_COMMANDS
41185 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41189 # Files that config.status was made for.
41190 if test -n "$ac_config_files"; then
41191 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41194 if test -n "$ac_config_headers"; then
41195 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41198 if test -n "$ac_config_links"; then
41199 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41202 if test -n "$ac_config_commands"; then
41203 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41206 cat >>$CONFIG_STATUS <<\_ACEOF
41209 \`$as_me' instantiates files from templates according to the
41210 current configuration.
41212 Usage: $0 [OPTIONS] [FILE]...
41214 -h, --help print this help, then exit
41215 -V, --version print version number, then exit
41216 -q, --quiet do not print progress messages
41217 -d, --debug don't remove temporary files
41218 --recheck update $as_me by reconfiguring in the same conditions
41219 --file=FILE[:TEMPLATE]
41220 instantiate the configuration file FILE
41221 --header=FILE[:TEMPLATE]
41222 instantiate the configuration header FILE
41224 Configuration files:
41227 Configuration headers:
41230 Configuration commands:
41233 Report bugs to <bug-autoconf@gnu.org>."
41236 cat >>$CONFIG_STATUS <<_ACEOF
41239 configured by $0, generated by GNU Autoconf 2.59,
41240 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41242 Copyright (C) 2003 Free Software Foundation, Inc.
41243 This config.status script is free software; the Free Software Foundation
41244 gives unlimited permission to copy, distribute and modify it."
41249 cat >>$CONFIG_STATUS <<\_ACEOF
41250 # If no file are specified by the user, then we need to provide default
41251 # value. By we need to know if files were specified by the user.
41257 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41258 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41266 *) # This is not an option, so the user has probably given explicit
41269 ac_need_defaults=false;;
41273 # Handling of the options.
41275 cat >>$CONFIG_STATUS <<\_ACEOF
41276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41278 --version | --vers* | -V )
41279 echo "$ac_cs_version"; exit 0 ;;
41281 # Conflict between --help and --header
41282 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41283 Try \`$0 --help' for more information." >&5
41284 echo "$as_me: error: ambiguous option: $1
41285 Try \`$0 --help' for more information." >&2;}
41286 { (exit 1); exit 1; }; };;
41287 --help | --hel | -h )
41288 echo "$ac_cs_usage"; exit 0 ;;
41289 --debug | --d* | -d )
41291 --file | --fil | --fi | --f )
41293 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41294 ac_need_defaults=false;;
41295 --header | --heade | --head | --hea )
41297 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41298 ac_need_defaults=false;;
41299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41303 # This is an error.
41304 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41305 Try \`$0 --help' for more information." >&5
41306 echo "$as_me: error: unrecognized option: $1
41307 Try \`$0 --help' for more information." >&2;}
41308 { (exit 1); exit 1; }; } ;;
41310 *) ac_config_targets="$ac_config_targets $1" ;;
41316 ac_configure_extra_args=
41318 if $ac_cs_silent; then
41320 ac_configure_extra_args="$ac_configure_extra_args --silent"
41324 cat >>$CONFIG_STATUS <<_ACEOF
41325 if \$ac_cs_recheck; then
41326 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41327 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41332 cat >>$CONFIG_STATUS <<_ACEOF
41334 # INIT-COMMANDS section.
41337 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41339 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41340 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41347 cat >>$CONFIG_STATUS <<\_ACEOF
41348 for ac_config_target in $ac_config_targets
41350 case "$ac_config_target" in
41351 # Handling of arguments.
41352 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41353 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41354 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41355 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41356 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41357 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41358 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41359 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41360 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41361 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41362 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41363 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41364 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41365 "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" ;;
41366 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41367 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41368 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41369 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41370 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41371 "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" ;;
41372 "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" ;;
41373 "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" ;;
41374 "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" ;;
41375 "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" ;;
41376 "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" ;;
41377 "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" ;;
41378 "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" ;;
41379 "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" ;;
41380 "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" ;;
41381 "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" ;;
41382 "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" ;;
41383 "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" ;;
41384 "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" ;;
41385 "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" ;;
41386 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41387 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41388 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41389 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41390 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41391 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41392 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41393 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41394 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41395 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41396 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41397 { (exit 1); exit 1; }; };;
41401 # If the user did not use the arguments to specify the items to instantiate,
41402 # then the envvar interface is used. Set only those that are not.
41403 # We use the long form for the default assignment because of an extremely
41404 # bizarre bug on SunOS 4.1.3.
41405 if $ac_need_defaults; then
41406 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41407 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41408 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41411 # Have a temporary directory for convenience. Make it in the build tree
41412 # simply because there is no reason to put it here, and in addition,
41413 # creating and moving files from /tmp can sometimes cause problems.
41414 # Create a temporary directory, and hook for its removal unless debugging.
41417 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41418 trap '{ (exit 1); exit 1; }' 1 2 13 15
41421 # Create a (secure) tmp directory for tmp files.
41424 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41425 test -n "$tmp" && test -d "$tmp"
41428 tmp=./confstat$$-$RANDOM
41429 (umask 077 && mkdir $tmp)
41432 echo "$me: cannot create a temporary directory in ." >&2
41433 { (exit 1); exit 1; }
41438 cat >>$CONFIG_STATUS <<_ACEOF
41441 # CONFIG_FILES section.
41444 # No need to generate the scripts if there are no CONFIG_FILES.
41445 # This happens for instance when ./config.status config.h
41446 if test -n "\$CONFIG_FILES"; then
41447 # Protect against being on the right side of a sed subst in config.status.
41448 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41449 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41450 s,@SHELL@,$SHELL,;t t
41451 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41452 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41453 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41454 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41455 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41456 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41457 s,@exec_prefix@,$exec_prefix,;t t
41458 s,@prefix@,$prefix,;t t
41459 s,@program_transform_name@,$program_transform_name,;t t
41460 s,@bindir@,$bindir,;t t
41461 s,@sbindir@,$sbindir,;t t
41462 s,@libexecdir@,$libexecdir,;t t
41463 s,@datadir@,$datadir,;t t
41464 s,@sysconfdir@,$sysconfdir,;t t
41465 s,@sharedstatedir@,$sharedstatedir,;t t
41466 s,@localstatedir@,$localstatedir,;t t
41467 s,@libdir@,$libdir,;t t
41468 s,@includedir@,$includedir,;t t
41469 s,@oldincludedir@,$oldincludedir,;t t
41470 s,@infodir@,$infodir,;t t
41471 s,@mandir@,$mandir,;t t
41472 s,@build_alias@,$build_alias,;t t
41473 s,@host_alias@,$host_alias,;t t
41474 s,@target_alias@,$target_alias,;t t
41475 s,@DEFS@,$DEFS,;t t
41476 s,@ECHO_C@,$ECHO_C,;t t
41477 s,@ECHO_N@,$ECHO_N,;t t
41478 s,@ECHO_T@,$ECHO_T,;t t
41479 s,@LIBS@,$LIBS,;t t
41480 s,@build@,$build,;t t
41481 s,@build_cpu@,$build_cpu,;t t
41482 s,@build_vendor@,$build_vendor,;t t
41483 s,@build_os@,$build_os,;t t
41484 s,@host@,$host,;t t
41485 s,@host_cpu@,$host_cpu,;t t
41486 s,@host_vendor@,$host_vendor,;t t
41487 s,@host_os@,$host_os,;t t
41488 s,@target@,$target,;t t
41489 s,@target_cpu@,$target_cpu,;t t
41490 s,@target_vendor@,$target_vendor,;t t
41491 s,@target_os@,$target_os,;t t
41492 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41493 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41494 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41495 s,@CYGPATH_W@,$CYGPATH_W,;t t
41496 s,@PACKAGE@,$PACKAGE,;t t
41497 s,@VERSION@,$VERSION,;t t
41498 s,@ACLOCAL@,$ACLOCAL,;t t
41499 s,@AUTOCONF@,$AUTOCONF,;t t
41500 s,@AUTOMAKE@,$AUTOMAKE,;t t
41501 s,@AUTOHEADER@,$AUTOHEADER,;t t
41502 s,@MAKEINFO@,$MAKEINFO,;t t
41503 s,@install_sh@,$install_sh,;t t
41504 s,@STRIP@,$STRIP,;t t
41505 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41506 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41507 s,@mkdir_p@,$mkdir_p,;t t
41509 s,@SET_MAKE@,$SET_MAKE,;t t
41510 s,@am__leading_dot@,$am__leading_dot,;t t
41511 s,@AMTAR@,$AMTAR,;t t
41512 s,@am__tar@,$am__tar,;t t
41513 s,@am__untar@,$am__untar,;t t
41514 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41515 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41516 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41517 s,@top_builddir@,$top_builddir,;t t
41518 s,@ldap_subdir@,$ldap_subdir,;t t
41521 s,@CFLAGS@,$CFLAGS,;t t
41522 s,@LDFLAGS@,$LDFLAGS,;t t
41523 s,@CPPFLAGS@,$CPPFLAGS,;t t
41524 s,@ac_ct_CC@,$ac_ct_CC,;t t
41525 s,@EXEEXT@,$EXEEXT,;t t
41526 s,@OBJEXT@,$OBJEXT,;t t
41527 s,@DEPDIR@,$DEPDIR,;t t
41528 s,@am__include@,$am__include,;t t
41529 s,@am__quote@,$am__quote,;t t
41530 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41531 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41532 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41533 s,@CCDEPMODE@,$CCDEPMODE,;t t
41534 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41535 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41536 s,@EGREP@,$EGREP,;t t
41537 s,@LN_S@,$LN_S,;t t
41538 s,@ECHO@,$ECHO,;t t
41539 s,@ac_ct_AR@,$ac_ct_AR,;t t
41540 s,@RANLIB@,$RANLIB,;t t
41541 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41542 s,@DLLTOOL@,$DLLTOOL,;t t
41543 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41545 s,@ac_ct_AS@,$ac_ct_AS,;t t
41546 s,@OBJDUMP@,$OBJDUMP,;t t
41547 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41549 s,@LIBTOOL@,$LIBTOOL,;t t
41550 s,@PERLBIN@,$PERLBIN,;t t
41551 s,@OL_MKDEP@,$OL_MKDEP,;t t
41552 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41553 s,@LTSTATIC@,$LTSTATIC,;t t
41554 s,@LIBOBJS@,$LIBOBJS,;t t
41555 s,@LIBSRCS@,$LIBSRCS,;t t
41556 s,@PLAT@,$PLAT,;t t
41557 s,@WITH_SASL@,$WITH_SASL,;t t
41558 s,@WITH_TLS@,$WITH_TLS,;t t
41559 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41560 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41561 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41562 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41563 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41564 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41565 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41566 s,@BUILD_BDB@,$BUILD_BDB,;t t
41567 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41568 s,@BUILD_HDB@,$BUILD_HDB,;t t
41569 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41570 s,@BUILD_META@,$BUILD_META,;t t
41571 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41572 s,@BUILD_NULL@,$BUILD_NULL,;t t
41573 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41574 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41575 s,@BUILD_PERL@,$BUILD_PERL,;t t
41576 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41577 s,@BUILD_SQL@,$BUILD_SQL,;t t
41578 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41579 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41580 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41581 s,@BUILD_DDS@,$BUILD_DDS,;t t
41582 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41583 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41584 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41585 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41586 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41587 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41588 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41589 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41590 s,@BUILD_RWM@,$BUILD_RWM,;t t
41591 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41592 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41593 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41594 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41595 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41596 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41597 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41598 s,@BDB_LIBS@,$BDB_LIBS,;t t
41599 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41600 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41601 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41602 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41603 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41604 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41605 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41606 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41607 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41608 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41609 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41610 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41611 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41612 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41613 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41614 s,@SASL_LIBS@,$SASL_LIBS,;t t
41615 s,@TLS_LIBS@,$TLS_LIBS,;t t
41616 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41617 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41618 s,@LIBSLAPI@,$LIBSLAPI,;t t
41619 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41620 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41621 s,@ICU_LIBS@,$ICU_LIBS,;t t
41622 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41623 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41624 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41625 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41626 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41627 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41632 cat >>$CONFIG_STATUS <<\_ACEOF
41633 # Split the substitutions into bite-sized pieces for seds with
41634 # small command number limits, like on Digital OSF/1 and HP-UX.
41635 ac_max_sed_lines=48
41636 ac_sed_frag=1 # Number of current file.
41637 ac_beg=1 # First line for current file.
41638 ac_end=$ac_max_sed_lines # Line after last line for current file.
41641 while $ac_more_lines; do
41642 if test $ac_beg -gt 1; then
41643 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41645 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41647 if test ! -s $tmp/subs.frag; then
41648 ac_more_lines=false
41650 # The purpose of the label and of the branching condition is to
41651 # speed up the sed processing (if there are no `@' at all, there
41652 # is no need to browse any of the substitutions).
41653 # These are the two extra sed commands mentioned above.
41655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41656 if test -z "$ac_sed_cmds"; then
41657 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41659 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41661 ac_sed_frag=`expr $ac_sed_frag + 1`
41663 ac_end=`expr $ac_end + $ac_max_sed_lines`
41666 if test -z "$ac_sed_cmds"; then
41669 fi # test -n "$CONFIG_FILES"
41672 cat >>$CONFIG_STATUS <<\_ACEOF
41673 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41676 - | *:- | *:-:* ) # input from stdin
41678 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41679 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41680 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41681 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41682 * ) ac_file_in=$ac_file.in ;;
41685 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41686 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41688 X"$ac_file" : 'X\(//\)[^/]' \| \
41689 X"$ac_file" : 'X\(//\)$' \| \
41690 X"$ac_file" : 'X\(/\)' \| \
41691 . : '\(.\)' 2>/dev/null ||
41693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41695 /^X\(\/\/\)$/{ s//\1/; q; }
41696 /^X\(\/\).*/{ s//\1/; q; }
41698 { if $as_mkdir_p; then
41703 while test ! -d "$as_dir"; do
41704 as_dirs="$as_dir $as_dirs"
41705 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41707 X"$as_dir" : 'X\(//\)[^/]' \| \
41708 X"$as_dir" : 'X\(//\)$' \| \
41709 X"$as_dir" : 'X\(/\)' \| \
41710 . : '\(.\)' 2>/dev/null ||
41712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41714 /^X\(\/\/\)$/{ s//\1/; q; }
41715 /^X\(\/\).*/{ s//\1/; q; }
41718 test ! -n "$as_dirs" || mkdir $as_dirs
41719 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41720 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41721 { (exit 1); exit 1; }; }; }
41725 if test "$ac_dir" != .; then
41726 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41727 # A "../" for each directory in $ac_dir_suffix.
41728 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41730 ac_dir_suffix= ac_top_builddir=
41734 .) # No --srcdir option. We are building in place.
41736 if test -z "$ac_top_builddir"; then
41739 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41741 [\\/]* | ?:[\\/]* ) # Absolute path.
41742 ac_srcdir=$srcdir$ac_dir_suffix;
41743 ac_top_srcdir=$srcdir ;;
41744 *) # Relative path.
41745 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41746 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41749 # Do not use `cd foo && pwd` to compute absolute paths, because
41750 # the directories may not exist.
41752 .) ac_abs_builddir="$ac_dir";;
41755 .) ac_abs_builddir=`pwd`;;
41756 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41757 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41760 case $ac_abs_builddir in
41761 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41763 case ${ac_top_builddir}. in
41764 .) ac_abs_top_builddir=$ac_abs_builddir;;
41765 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41766 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41769 case $ac_abs_builddir in
41770 .) ac_abs_srcdir=$ac_srcdir;;
41773 .) ac_abs_srcdir=$ac_abs_builddir;;
41774 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41775 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41778 case $ac_abs_builddir in
41779 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41781 case $ac_top_srcdir in
41782 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41783 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41784 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41790 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41791 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41794 if test x"$ac_file" != x-; then
41795 { echo "$as_me:$LINENO: creating $ac_file" >&5
41796 echo "$as_me: creating $ac_file" >&6;}
41799 # Let's still pretend it is `configure' which instantiates (i.e., don't
41800 # use $as_me), people would be surprised to read:
41801 # /* config.h. Generated by config.status. */
41802 if test x"$ac_file" = x-; then
41805 configure_input="$ac_file. "
41807 configure_input=$configure_input"Generated from `echo $ac_file_in |
41808 sed 's,.*/,,'` by configure."
41810 # First look for the input files in the build tree, otherwise in the
41812 ac_file_inputs=`IFS=:
41813 for f in $ac_file_in; do
41815 -) echo $tmp/stdin ;;
41817 # Absolute (can't be DOS-style, as IFS=:)
41818 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41819 echo "$as_me: error: cannot find input file: $f" >&2;}
41820 { (exit 1); exit 1; }; }
41823 if test -f "$f"; then
41826 elif test -f "$srcdir/$f"; then
41831 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41832 echo "$as_me: error: cannot find input file: $f" >&2;}
41833 { (exit 1); exit 1; }; }
41836 done` || { (exit 1); exit 1; }
41838 cat >>$CONFIG_STATUS <<_ACEOF
41842 cat >>$CONFIG_STATUS <<\_ACEOF
41844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41845 s,@configure_input@,$configure_input,;t t
41846 s,@srcdir@,$ac_srcdir,;t t
41847 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41848 s,@top_srcdir@,$ac_top_srcdir,;t t
41849 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41850 s,@builddir@,$ac_builddir,;t t
41851 s,@abs_builddir@,$ac_abs_builddir,;t t
41852 s,@top_builddir@,$ac_top_builddir,;t t
41853 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41854 s,@INSTALL@,$ac_INSTALL,;t t
41855 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41857 if test x"$ac_file" != x-; then
41858 mv $tmp/out $ac_file
41866 cat >>$CONFIG_STATUS <<\_ACEOF
41869 # CONFIG_HEADER section.
41872 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41873 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41875 # ac_d sets the value in "#define NAME VALUE" lines.
41876 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41877 ac_dB='[ ].*$,\1#\2'
41880 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41881 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41882 ac_uB='$,\1#\2define\3'
41886 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41887 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41889 - | *:- | *:-:* ) # input from stdin
41891 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41892 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41893 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41895 * ) ac_file_in=$ac_file.in ;;
41898 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41899 echo "$as_me: creating $ac_file" >&6;}
41901 # First look for the input files in the build tree, otherwise in the
41903 ac_file_inputs=`IFS=:
41904 for f in $ac_file_in; do
41906 -) echo $tmp/stdin ;;
41908 # Absolute (can't be DOS-style, as IFS=:)
41909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41910 echo "$as_me: error: cannot find input file: $f" >&2;}
41911 { (exit 1); exit 1; }; }
41912 # Do quote $f, to prevent DOS paths from being IFS'd.
41915 if test -f "$f"; then
41918 elif test -f "$srcdir/$f"; then
41923 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41924 echo "$as_me: error: cannot find input file: $f" >&2;}
41925 { (exit 1); exit 1; }; }
41928 done` || { (exit 1); exit 1; }
41929 # Remove the trailing spaces.
41930 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41934 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41935 # `conftest.undefs', that substitutes the proper values into
41936 # config.h.in to produce config.h. The first handles `#define'
41937 # templates, and the second `#undef' templates.
41938 # And first: Protect against being on the right side of a sed subst in
41939 # config.status. Protect against being in an unquoted here document
41940 # in config.status.
41941 rm -f conftest.defines conftest.undefs
41942 # Using a here document instead of a string reduces the quoting nightmare.
41943 # Putting comments in sed scripts is not portable.
41945 # `end' is used to avoid that the second main sed command (meant for
41946 # 0-ary CPP macros) applies to n-ary macro definitions.
41947 # See the Autoconf documentation for `clear'.
41948 cat >confdef2sed.sed <<\_ACEOF
41953 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41955 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41958 # If some macros were called several times there might be several times
41959 # the same #defines, which is useless. Nevertheless, we may not want to
41960 # sort them, since we want the *last* AC-DEFINE to be honored.
41961 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41962 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41963 rm -f confdef2sed.sed
41965 # This sed command replaces #undef with comments. This is necessary, for
41966 # example, in the case of _POSIX_SOURCE, which is predefined and required
41967 # on some systems where configure will not decide to define it.
41968 cat >>conftest.undefs <<\_ACEOF
41969 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41972 # Break up conftest.defines because some shells have a limit on the size
41973 # of here documents, and old seds have small limits too (100 cmds).
41974 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41975 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41976 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41977 echo ' :' >>$CONFIG_STATUS
41978 rm -f conftest.tail
41979 while grep . conftest.defines >/dev/null
41981 # Write a limited-size here document to $tmp/defines.sed.
41982 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41983 # Speed up: don't consider the non `#define' lines.
41984 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41985 # Work around the forget-to-reset-the-flag bug.
41986 echo 't clr' >>$CONFIG_STATUS
41987 echo ': clr' >>$CONFIG_STATUS
41988 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41990 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41992 mv $tmp/out $tmp/in
41994 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41995 rm -f conftest.defines
41996 mv conftest.tail conftest.defines
41998 rm -f conftest.defines
41999 echo ' fi # grep' >>$CONFIG_STATUS
42000 echo >>$CONFIG_STATUS
42002 # Break up conftest.undefs because some shells have a limit on the size
42003 # of here documents, and old seds have small limits too (100 cmds).
42004 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42005 rm -f conftest.tail
42006 while grep . conftest.undefs >/dev/null
42008 # Write a limited-size here document to $tmp/undefs.sed.
42009 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42010 # Speed up: don't consider the non `#undef'
42011 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42012 # Work around the forget-to-reset-the-flag bug.
42013 echo 't clr' >>$CONFIG_STATUS
42014 echo ': clr' >>$CONFIG_STATUS
42015 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42017 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42019 mv $tmp/out $tmp/in
42021 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42022 rm -f conftest.undefs
42023 mv conftest.tail conftest.undefs
42025 rm -f conftest.undefs
42027 cat >>$CONFIG_STATUS <<\_ACEOF
42028 # Let's still pretend it is `configure' which instantiates (i.e., don't
42029 # use $as_me), people would be surprised to read:
42030 # /* config.h. Generated by config.status. */
42031 if test x"$ac_file" = x-; then
42032 echo "/* Generated by configure. */" >$tmp/config.h
42034 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42036 cat $tmp/in >>$tmp/config.h
42038 if test x"$ac_file" != x-; then
42039 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42040 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42041 echo "$as_me: $ac_file is unchanged" >&6;}
42043 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42045 X"$ac_file" : 'X\(//\)[^/]' \| \
42046 X"$ac_file" : 'X\(//\)$' \| \
42047 X"$ac_file" : 'X\(/\)' \| \
42048 . : '\(.\)' 2>/dev/null ||
42050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42052 /^X\(\/\/\)$/{ s//\1/; q; }
42053 /^X\(\/\).*/{ s//\1/; q; }
42055 { if $as_mkdir_p; then
42060 while test ! -d "$as_dir"; do
42061 as_dirs="$as_dir $as_dirs"
42062 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42064 X"$as_dir" : 'X\(//\)[^/]' \| \
42065 X"$as_dir" : 'X\(//\)$' \| \
42066 X"$as_dir" : 'X\(/\)' \| \
42067 . : '\(.\)' 2>/dev/null ||
42069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42071 /^X\(\/\/\)$/{ s//\1/; q; }
42072 /^X\(\/\).*/{ s//\1/; q; }
42075 test ! -n "$as_dirs" || mkdir $as_dirs
42076 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42078 { (exit 1); exit 1; }; }; }
42081 mv $tmp/config.h $ac_file
42085 rm -f $tmp/config.h
42087 # Compute $ac_file's index in $config_headers.
42089 for _am_header in $config_headers :; do
42090 case $_am_header in
42091 $ac_file | $ac_file:* )
42094 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42097 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42098 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42099 X$ac_file : 'X\(//\)[^/]' \| \
42100 X$ac_file : 'X\(//\)$' \| \
42101 X$ac_file : 'X\(/\)' \| \
42102 . : '\(.\)' 2>/dev/null ||
42104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42106 /^X\(\/\/\)$/{ s//\1/; q; }
42107 /^X\(\/\).*/{ s//\1/; q; }
42108 s/.*/./; q'`/stamp-h$_am_stamp_count
42111 cat >>$CONFIG_STATUS <<\_ACEOF
42114 # CONFIG_COMMANDS section.
42116 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42117 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42118 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42119 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42120 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42121 X"$ac_dest" : 'X\(//\)[^/]' \| \
42122 X"$ac_dest" : 'X\(//\)$' \| \
42123 X"$ac_dest" : 'X\(/\)' \| \
42124 . : '\(.\)' 2>/dev/null ||
42126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42128 /^X\(\/\/\)$/{ s//\1/; q; }
42129 /^X\(\/\).*/{ s//\1/; q; }
42131 { if $as_mkdir_p; then
42136 while test ! -d "$as_dir"; do
42137 as_dirs="$as_dir $as_dirs"
42138 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42139 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42140 X"$as_dir" : 'X\(//\)[^/]' \| \
42141 X"$as_dir" : 'X\(//\)$' \| \
42142 X"$as_dir" : 'X\(/\)' \| \
42143 . : '\(.\)' 2>/dev/null ||
42145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42147 /^X\(\/\/\)$/{ s//\1/; q; }
42148 /^X\(\/\).*/{ s//\1/; q; }
42151 test ! -n "$as_dirs" || mkdir $as_dirs
42152 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42153 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42154 { (exit 1); exit 1; }; }; }
42158 if test "$ac_dir" != .; then
42159 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42160 # A "../" for each directory in $ac_dir_suffix.
42161 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42163 ac_dir_suffix= ac_top_builddir=
42167 .) # No --srcdir option. We are building in place.
42169 if test -z "$ac_top_builddir"; then
42172 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42174 [\\/]* | ?:[\\/]* ) # Absolute path.
42175 ac_srcdir=$srcdir$ac_dir_suffix;
42176 ac_top_srcdir=$srcdir ;;
42177 *) # Relative path.
42178 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42179 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42182 # Do not use `cd foo && pwd` to compute absolute paths, because
42183 # the directories may not exist.
42185 .) ac_abs_builddir="$ac_dir";;
42188 .) ac_abs_builddir=`pwd`;;
42189 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42190 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42193 case $ac_abs_builddir in
42194 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42196 case ${ac_top_builddir}. in
42197 .) ac_abs_top_builddir=$ac_abs_builddir;;
42198 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42199 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42202 case $ac_abs_builddir in
42203 .) ac_abs_srcdir=$ac_srcdir;;
42206 .) ac_abs_srcdir=$ac_abs_builddir;;
42207 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42208 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42211 case $ac_abs_builddir in
42212 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42214 case $ac_top_srcdir in
42215 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42216 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42217 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42222 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42223 echo "$as_me: executing $ac_dest commands" >&6;}
42225 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42226 # Strip MF so we end up with the name of the file.
42227 mf=`echo "$mf" | sed -e 's/:.*$//'`
42228 # Check whether this is an Automake generated Makefile or not.
42229 # We used to match only the files named `Makefile.in', but
42230 # some people rename them; so instead we look at the file content.
42231 # Grep'ing the first line is not enough: some people post-process
42232 # each Makefile.in and add a new line on top of each file to say so.
42233 # So let's grep whole file.
42234 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42235 dirpart=`(dirname "$mf") 2>/dev/null ||
42236 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42237 X"$mf" : 'X\(//\)[^/]' \| \
42238 X"$mf" : 'X\(//\)$' \| \
42239 X"$mf" : 'X\(/\)' \| \
42240 . : '\(.\)' 2>/dev/null ||
42242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42244 /^X\(\/\/\)$/{ s//\1/; q; }
42245 /^X\(\/\).*/{ s//\1/; q; }
42250 # Extract the definition of DEPDIR, am__include, and am__quote
42251 # from the Makefile without running `make'.
42252 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42253 test -z "$DEPDIR" && continue
42254 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42255 test -z "am__include" && continue
42256 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42257 # When using ansi2knr, U may be empty or an underscore; expand it
42258 U=`sed -n 's/^U = //p' < "$mf"`
42259 # Find all dependency output files, they are included files with
42260 # $(DEPDIR) in their names. We invoke sed twice because it is the
42261 # simplest approach to changing $(DEPDIR) to its actual value in the
42263 for file in `sed -n "
42264 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42265 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42266 # Make sure the directory exists.
42267 test -f "$dirpart/$file" && continue
42268 fdir=`(dirname "$file") 2>/dev/null ||
42269 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42270 X"$file" : 'X\(//\)[^/]' \| \
42271 X"$file" : 'X\(//\)$' \| \
42272 X"$file" : 'X\(/\)' \| \
42273 . : '\(.\)' 2>/dev/null ||
42275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42277 /^X\(\/\/\)$/{ s//\1/; q; }
42278 /^X\(\/\).*/{ s//\1/; q; }
42280 { if $as_mkdir_p; then
42281 mkdir -p $dirpart/$fdir
42283 as_dir=$dirpart/$fdir
42285 while test ! -d "$as_dir"; do
42286 as_dirs="$as_dir $as_dirs"
42287 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42289 X"$as_dir" : 'X\(//\)[^/]' \| \
42290 X"$as_dir" : 'X\(//\)$' \| \
42291 X"$as_dir" : 'X\(/\)' \| \
42292 . : '\(.\)' 2>/dev/null ||
42294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42296 /^X\(\/\/\)$/{ s//\1/; q; }
42297 /^X\(\/\).*/{ s//\1/; q; }
42300 test ! -n "$as_dirs" || mkdir $as_dirs
42301 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42302 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42303 { (exit 1); exit 1; }; }; }
42305 # echo "creating $dirpart/$file"
42306 echo '# dummy' > "$dirpart/$file"
42313 BACKENDSC="servers/slapd/backends.c"
42314 echo "Making $BACKENDSC"
42316 cat > $BACKENDSC << ENDX
42317 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42319 * Copyright 1998-2007 The OpenLDAP Foundation.
42320 * All rights reserved.
42322 * Redistribution and use in source and binary forms, with or without
42323 * modification, are permitted only as authorized by the OpenLDAP
42326 * A copy of this license is available in the file LICENSE in the
42327 * top-level directory of the distribution or, alternatively, at
42328 * <http://www.OpenLDAP.org/license.html>.
42330 /* This file is automatically generated by configure; please do not edit. */
42332 #include "portable.h"
42336 if test "${STATIC_BACKENDS}"; then
42337 for b in config ${STATIC_BACKENDS}; do
42338 bb=`echo "${b}" | sed -e 's/back-//'`
42339 cat >> $BACKENDSC << ENDX
42340 extern BI_init ${bb}_back_initialize;
42344 cat >> $BACKENDSC << ENDX
42346 BackendInfo slap_binfo[] = {
42349 for b in config ${STATIC_BACKENDS}; do
42350 bb=`echo "${b}" | sed -e 's/back-//'`
42351 echo " Add ${bb} ..."
42352 cat >> $BACKENDSC << ENDX
42353 { "${bb}", ${bb}_back_initialize },
42357 cat >> $BACKENDSC << ENDX
42361 /* end of generated file */
42364 OVERLAYSC="servers/slapd/overlays/statover.c"
42365 echo "Making $OVERLAYSC"
42367 cat > $OVERLAYSC << ENDX
42368 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42370 * Copyright 1998-2007 The OpenLDAP Foundation.
42371 * All rights reserved.
42373 * Redistribution and use in source and binary forms, with or without
42374 * modification, are permitted only as authorized by the OpenLDAP
42377 * A copy of this license is available in the file LICENSE in the
42378 * top-level directory of the distribution or, alternatively, at
42379 * <http://www.OpenLDAP.org/license.html>.
42381 /* This file is automatically generated by configure; please do not edit. */
42383 #include "portable.h"
42387 if test "${STATIC_OVERLAYS}"; then
42388 for o in ${STATIC_OVERLAYS}; do
42389 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42390 cat >> $OVERLAYSC << ENDX
42391 extern OV_init ${oo}_initialize;
42396 cat >> $OVERLAYSC << ENDX
42398 OverlayInit slap_oinfo[] = {
42401 if test "${STATIC_OVERLAYS}"; then
42402 for o in ${STATIC_OVERLAYS}; do
42403 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42404 echo " Add ${oo} ..."
42405 cat >> $OVERLAYSC << ENDX
42406 { "${oo}", ${oo}_initialize },
42411 cat >> $OVERLAYSC << ENDX
42415 /* end of generated file */
42418 echo Please run \"make depend\" to build dependencies
42424 cat >>$CONFIG_STATUS <<\_ACEOF
42426 { (exit 0); exit 0; }
42428 chmod +x $CONFIG_STATUS
42429 ac_clean_files=$ac_clean_files_save
42432 # configure is writing to config.log, and then calls config.status.
42433 # config.status does its own redirection, appending to config.log.
42434 # Unfortunately, on DOS this fails, as config.log is still kept open
42435 # by configure, so config.status won't be able to write to it; its
42436 # output is simply discarded. So we exec the FD to /dev/null,
42437 # effectively closing config.log, so it can be properly (re)opened and
42438 # appended to by config.status. When coming back to configure, we
42439 # need to make the FD available again.
42440 if test "$no_create" != yes; then
42442 ac_config_status_args=
42443 test "$silent" = yes &&
42444 ac_config_status_args="$ac_config_status_args --quiet"
42446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42449 # would make configure fail if this is the last instruction.
42450 $ac_cs_success || { (exit 1); exit 1; }