2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.658 2007/07/02 13:15:31 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
12706 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12709 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12713 OL_MKDEP="${MKDEP}"
12714 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12719 if test "${ol_cv_mkdep}" = no ; then
12720 # this will soon become an error
12721 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12722 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12725 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12726 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12727 if test "${ac_cv_lib_s_afopen+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 ac_check_lib_save_LIBS=$LIBS
12732 cat >conftest.$ac_ext <<_ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12739 /* Override any gcc2 internal prototype to avoid an error. */
12743 /* We use char because int might match the return type of a gcc2
12744 builtin and then its argument prototype would still apply. */
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756 (eval $ac_link) 2>conftest.er1
12758 grep -v '^ *+' conftest.er1 >conftest.err
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag"
12764 || test ! -s conftest.err'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 ac_cv_lib_s_afopen=yes
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_cv_lib_s_afopen=no
12783 rm -f conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12787 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12788 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12789 if test $ac_cv_lib_s_afopen = yes; then
12793 cat >>confdefs.h <<\_ACEOF
12794 #define HAVE_AIX_SECURITY 1
12803 ac_cv_func_getopt=no
12805 cat >>confdefs.h <<\_ACEOF
12806 #define BOTH_STRINGS_H 1
12813 WITH_MODULES_ENABLED=no
12814 if test $ol_enable_modules != no ; then
12816 for ac_header in ltdl.h
12818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12820 echo "$as_me:$LINENO: checking for $ac_header" >&5
12821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12828 # Is the header compilable?
12829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12831 cat >conftest.$ac_ext <<_ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12837 $ac_includes_default
12838 #include <$ac_header>
12840 rm -f conftest.$ac_objext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12842 (eval $ac_compile) 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_c_werror_flag"
12850 || test ! -s conftest.err'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest.$ac_objext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_header_compiler=yes
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ac_header_compiler=no
12869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12871 echo "${ECHO_T}$ac_header_compiler" >&6
12873 # Is the header present?
12874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 #include <$ac_header>
12884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12887 grep -v '^ *+' conftest.er1 >conftest.err
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } >/dev/null; then
12892 if test -s conftest.err; then
12893 ac_cpp_err=$ac_c_preproc_warn_flag
12894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12901 if test -z "$ac_cpp_err"; then
12902 ac_header_preproc=yes
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12907 ac_header_preproc=no
12909 rm -f conftest.err conftest.$ac_ext
12910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12911 echo "${ECHO_T}$ac_header_preproc" >&6
12913 # So? What about this header?
12914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12920 ac_header_preproc=yes
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12930 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12937 ## --------------------------------------------- ##
12938 ## Report this to <http://www.openldap.org/its/> ##
12939 ## --------------------------------------------- ##
12942 sed "s/^/$as_me: WARNING: /" >&2
12945 echo "$as_me:$LINENO: checking for $ac_header" >&5
12946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 eval "$as_ac_Header=\$ac_header_preproc"
12952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12957 cat >>confdefs.h <<_ACEOF
12958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12966 if test $ac_cv_header_ltdl_h = no ; then
12967 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
12968 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
12969 { (exit 1); exit 1; }; }
12972 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
12973 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
12974 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 ac_check_lib_save_LIBS=$LIBS
12978 LIBS="-lltdl $LIBS"
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12986 /* Override any gcc2 internal prototype to avoid an error. */
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
13010 { ac_try='test -z "$ac_c_werror_flag"
13011 || test ! -s conftest.err'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; } &&
13017 { ac_try='test -s conftest$ac_exeext'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_lib_ltdl_lt_dlinit=yes
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_cv_lib_ltdl_lt_dlinit=no
13030 rm -f conftest.err conftest.$ac_objext \
13031 conftest$ac_exeext conftest.$ac_ext
13032 LIBS=$ac_check_lib_save_LIBS
13034 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13035 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13036 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13038 MODULES_LIBS=-lltdl
13040 cat >>confdefs.h <<\_ACEOF
13041 #define HAVE_LIBLTDL 1
13048 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13049 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13050 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13051 { (exit 1); exit 1; }; }
13053 ol_link_modules=yes
13054 WITH_MODULES_ENABLED=yes
13057 for i in $Backends; do
13058 eval "ol_tmp=\$ol_enable_$i"
13059 if test $ol_tmp = mod ; then
13060 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13061 echo "$as_me: WARNING: building static $i backend" >&2;}
13062 eval "ol_enable_$i=yes"
13065 for i in $Overlays; do
13066 eval "ol_tmp=\$ol_enable_$i"
13067 if test $ol_tmp = mod ; then
13068 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13069 echo "$as_me: WARNING: building static $i overlay" >&2;}
13070 eval "ol_enable_$i=yes"
13076 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13077 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13078 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13090 #include <__ASCII__/generate_error.h>
13094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } >/dev/null; then
13102 if test -s conftest.err; then
13103 ac_cpp_err=$ac_c_preproc_warn_flag
13104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13111 if test -z "$ac_cpp_err"; then
13112 ol_cv_cpp_ebcdic=yes
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13117 ol_cv_cpp_ebcdic=no
13119 rm -f conftest.err conftest.$ac_ext
13121 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13122 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13123 if test $ol_cv_cpp_ebcdic = yes ; then
13125 cat >>confdefs.h <<\_ACEOF
13126 #define HAVE_EBCDIC 1
13131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13133 if test "${ol_cv_header_stdc+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 #include <stdlib.h>
13143 #include <stdarg.h>
13144 #include <string.h>
13147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } >/dev/null; then
13155 if test -s conftest.err; then
13156 ac_cpp_err=$ac_c_preproc_warn_flag
13157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13164 if test -z "$ac_cpp_err"; then
13165 ol_cv_header_stdc=yes
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ol_cv_header_stdc=no
13172 rm -f conftest.err conftest.$ac_ext
13174 if test $ol_cv_header_stdc = yes; then
13175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 #include <string.h>
13185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13186 $EGREP "memchr" >/dev/null 2>&1; then
13189 ol_cv_header_stdc=no
13195 if test $ol_cv_header_stdc = yes; then
13196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13203 #include <stdlib.h>
13206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13207 $EGREP "free" >/dev/null 2>&1; then
13210 ol_cv_header_stdc=no
13216 if test $ol_cv_header_stdc = yes; then
13217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13218 if test "$cross_compiling" = yes; then
13221 cat >conftest.$ac_ext <<_ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13228 #ifndef HAVE_EBCDIC
13229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13232 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13233 || ('j' <= (c) && (c) <= 'r') \
13234 || ('s' <= (c) && (c) <= 'z'))
13235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13238 int main () { int i; for (i = 0; i < 256; i++)
13239 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13243 rm -f conftest$ac_exeext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245 (eval $ac_link) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13256 echo "$as_me: program exited with status $ac_status" >&5
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ( exit $ac_status )
13261 ol_cv_header_stdc=no
13263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13267 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13268 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13269 if test $ol_cv_header_stdc = yes; then
13270 cat >>confdefs.h <<\_ACEOF
13271 #define STDC_HEADERS 1
13275 ac_cv_header_stdc=disable
13278 if test $ol_cv_header_stdc != yes; then
13279 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13280 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13288 ac_header_dirent=no
13289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13290 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13291 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <sys/types.h>
13314 rm -f conftest.$ac_objext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13316 (eval $ac_compile) 2>conftest.er1
13318 grep -v '^ *+' conftest.er1 >conftest.err
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_c_werror_flag"
13324 || test ! -s conftest.err'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 eval "$as_ac_Header=yes"
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 eval "$as_ac_Header=no"
13343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13348 cat >>confdefs.h <<_ACEOF
13349 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13352 ac_header_dirent=$ac_hdr; break
13356 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13357 if test $ac_header_dirent = dirent.h; then
13358 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13359 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13360 if test "${ac_cv_search_opendir+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_func_search_save_LIBS=$LIBS
13364 ac_cv_search_opendir=no
13365 cat >conftest.$ac_ext <<_ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 /* Override any gcc2 internal prototype to avoid an error. */
13376 /* We use char because int might match the return type of a gcc2
13377 builtin and then its argument prototype would still apply. */
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>conftest.er1
13391 grep -v '^ *+' conftest.er1 >conftest.err
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag"
13397 || test ! -s conftest.err'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; } &&
13403 { ac_try='test -s conftest$ac_exeext'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
13409 ac_cv_search_opendir="none required"
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13415 rm -f conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 if test "$ac_cv_search_opendir" = no; then
13418 for ac_lib in dir; do
13419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13427 /* Override any gcc2 internal prototype to avoid an error. */
13431 /* We use char because int might match the return type of a gcc2
13432 builtin and then its argument prototype would still apply. */
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444 (eval $ac_link) 2>conftest.er1
13446 grep -v '^ *+' conftest.er1 >conftest.err
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag"
13452 || test ! -s conftest.err'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; }; then
13464 ac_cv_search_opendir="-l$ac_lib"
13467 echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13471 rm -f conftest.err conftest.$ac_objext \
13472 conftest$ac_exeext conftest.$ac_ext
13475 LIBS=$ac_func_search_save_LIBS
13477 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13478 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13479 if test "$ac_cv_search_opendir" != no; then
13480 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13485 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13486 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13487 if test "${ac_cv_search_opendir+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 ac_func_search_save_LIBS=$LIBS
13491 ac_cv_search_opendir=no
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13499 /* Override any gcc2 internal prototype to avoid an error. */
13503 /* We use char because int might match the return type of a gcc2
13504 builtin and then its argument prototype would still apply. */
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516 (eval $ac_link) 2>conftest.er1
13518 grep -v '^ *+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try='test -z "$ac_c_werror_flag"
13524 || test ! -s conftest.err'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; } &&
13530 { ac_try='test -s conftest$ac_exeext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_cv_search_opendir="none required"
13538 echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13542 rm -f conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 if test "$ac_cv_search_opendir" = no; then
13545 for ac_lib in x; do
13546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13554 /* Override any gcc2 internal prototype to avoid an error. */
13558 /* We use char because int might match the return type of a gcc2
13559 builtin and then its argument prototype would still apply. */
13569 rm -f conftest.$ac_objext conftest$ac_exeext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13571 (eval $ac_link) 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -z "$ac_c_werror_flag"
13579 || test ! -s conftest.err'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest$ac_exeext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13591 ac_cv_search_opendir="-l$ac_lib"
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13598 rm -f conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_func_search_save_LIBS
13604 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13605 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13606 if test "$ac_cv_search_opendir" != no; then
13607 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13613 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13614 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13615 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include <sys/types.h>
13625 #include <sys/wait.h>
13626 #ifndef WEXITSTATUS
13627 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13630 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13638 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13643 rm -f conftest.$ac_objext
13644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
13647 grep -v '^ *+' conftest.er1 >conftest.err
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -z "$ac_c_werror_flag"
13653 || test ! -s conftest.err'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
13665 ac_cv_header_sys_wait_h=yes
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 ac_cv_header_sys_wait_h=no
13672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13674 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13675 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13676 if test $ac_cv_header_sys_wait_h = yes; then
13678 cat >>confdefs.h <<\_ACEOF
13679 #define HAVE_SYS_WAIT_H 1
13684 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13685 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13686 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 cat >conftest.$ac_ext <<_ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 #include <sys/types.h>
13696 #include <termios.h>
13702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13703 $EGREP "yes" >/dev/null 2>&1; then
13704 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13706 ac_cv_sys_tiocgwinsz_in_termios_h=no
13711 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13712 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13714 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13715 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13716 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13717 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 cat >conftest.$ac_ext <<_ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 #include <sys/types.h>
13727 #include <sys/ioctl.h>
13733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13734 $EGREP "yes" >/dev/null 2>&1; then
13735 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13737 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13742 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13743 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13745 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13747 cat >>confdefs.h <<\_ACEOF
13748 #define GWINSZ_IN_SYS_IOCTL 1
13852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13854 echo "$as_me:$LINENO: checking for $ac_header" >&5
13855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13862 # Is the header compilable?
13863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13871 $ac_includes_default
13872 #include <$ac_header>
13874 rm -f conftest.$ac_objext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876 (eval $ac_compile) 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } &&
13883 { ac_try='test -z "$ac_c_werror_flag"
13884 || test ! -s conftest.err'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest.$ac_objext'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_header_compiler=yes
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13901 ac_header_compiler=no
13903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13905 echo "${ECHO_T}$ac_header_compiler" >&6
13907 # Is the header present?
13908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13910 cat >conftest.$ac_ext <<_ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13916 #include <$ac_header>
13918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13921 grep -v '^ *+' conftest.er1 >conftest.err
13923 cat conftest.err >&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); } >/dev/null; then
13926 if test -s conftest.err; then
13927 ac_cpp_err=$ac_c_preproc_warn_flag
13928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13935 if test -z "$ac_cpp_err"; then
13936 ac_header_preproc=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_header_preproc=no
13943 rm -f conftest.err conftest.$ac_ext
13944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13945 echo "${ECHO_T}$ac_header_preproc" >&6
13947 # So? What about this header?
13948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13954 ac_header_preproc=yes
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13971 ## --------------------------------------------- ##
13972 ## Report this to <http://www.openldap.org/its/> ##
13973 ## --------------------------------------------- ##
13976 sed "s/^/$as_me: WARNING: /" >&2
13979 echo "$as_me:$LINENO: checking for $ac_header" >&5
13980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 eval "$as_ac_Header=\$ac_header_preproc"
13986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13991 cat >>confdefs.h <<_ACEOF
13992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14000 if test "$ac_cv_mingw32" = yes ; then
14003 for ac_header in winsock.h winsock2.h
14005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14007 echo "$as_me:$LINENO: checking for $ac_header" >&5
14008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14015 # Is the header compilable?
14016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14018 cat >conftest.$ac_ext <<_ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h. */
14024 $ac_includes_default
14025 #include <$ac_header>
14027 rm -f conftest.$ac_objext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029 (eval $ac_compile) 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_c_werror_flag"
14037 || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_header_compiler=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_header_compiler=no
14056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14058 echo "${ECHO_T}$ac_header_compiler" >&6
14060 # Is the header present?
14061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14063 cat >conftest.$ac_ext <<_ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 #include <$ac_header>
14071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14074 grep -v '^ *+' conftest.er1 >conftest.err
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } >/dev/null; then
14079 if test -s conftest.err; then
14080 ac_cpp_err=$ac_c_preproc_warn_flag
14081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14088 if test -z "$ac_cpp_err"; then
14089 ac_header_preproc=yes
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_header_preproc=no
14096 rm -f conftest.err conftest.$ac_ext
14097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6
14100 # So? What about this header?
14101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14107 ac_header_preproc=yes
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14124 ## --------------------------------------------- ##
14125 ## Report this to <http://www.openldap.org/its/> ##
14126 ## --------------------------------------------- ##
14129 sed "s/^/$as_me: WARNING: /" >&2
14132 echo "$as_me:$LINENO: checking for $ac_header" >&5
14133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 eval "$as_ac_Header=\$ac_header_preproc"
14139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14144 cat >>confdefs.h <<_ACEOF
14145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14155 for ac_header in resolv.h
14157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14158 echo "$as_me:$LINENO: checking for $ac_header" >&5
14159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 cat >conftest.$ac_ext <<_ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169 $ac_includes_default
14170 #include <netinet/in.h>
14173 #include <$ac_header>
14175 rm -f conftest.$ac_objext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177 (eval $ac_compile) 2>conftest.er1
14179 grep -v '^ *+' conftest.er1 >conftest.err
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try='test -z "$ac_c_werror_flag"
14185 || test ! -s conftest.err'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; } &&
14191 { ac_try='test -s conftest.$ac_objext'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 eval "$as_ac_Header=yes"
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14202 eval "$as_ac_Header=no"
14204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14209 cat >>confdefs.h <<_ACEOF
14210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14219 for ac_header in netinet/tcp.h
14221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14222 echo "$as_me:$LINENO: checking for $ac_header" >&5
14223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 cat >conftest.$ac_ext <<_ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 $ac_includes_default
14234 #include <netinet/in.h>
14237 #include <$ac_header>
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14243 grep -v '^ *+' conftest.er1 >conftest.err
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 eval "$as_ac_Header=yes"
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 eval "$as_ac_Header=no"
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14273 cat >>confdefs.h <<_ACEOF
14274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14283 for ac_header in sys/ucred.h
14285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14286 echo "$as_me:$LINENO: checking for $ac_header" >&5
14287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 cat >conftest.$ac_ext <<_ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 $ac_includes_default
14298 #ifdef HAVE_SYS_PARAM_H
14299 #include <sys/param.h>
14303 #include <$ac_header>
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 eval "$as_ac_Header=yes"
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 eval "$as_ac_Header=no"
14334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339 cat >>confdefs.h <<_ACEOF
14340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14351 for ac_func in sigaction sigset
14353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 echo "$as_me:$LINENO: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14356 if eval "test \"\${$as_ac_var+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14367 #define $ac_func innocuous_$ac_func
14369 /* System header to define __stub macros and hopefully few prototypes,
14370 which can conflict with char $ac_func (); below.
14371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14372 <limits.h> exists even on freestanding compilers. */
14375 # include <limits.h>
14377 # include <assert.h>
14382 /* Override any gcc2 internal prototype to avoid an error. */
14387 /* We use char because int might match the return type of a gcc2
14388 builtin and then its argument prototype would still apply. */
14390 /* The GNU C library defines this for functions which it implements
14391 to always fail with ENOSYS. Some functions are actually named
14392 something starting with __ and the normal name is an alias. */
14393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14396 char (*f) () = $ac_func;
14405 return f != $ac_func;
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412 (eval $ac_link) 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest$ac_exeext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 eval "$as_ac_var=yes"
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14437 eval "$as_ac_var=no"
14439 rm -f conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14444 if test `eval echo '${'$as_ac_var'}'` = yes; then
14445 cat >>confdefs.h <<_ACEOF
14446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14453 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14455 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14456 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14457 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 ac_check_lib_save_LIBS=$LIBS
14462 cat >conftest.$ac_ext <<_ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14469 /* Override any gcc2 internal prototype to avoid an error. */
14473 /* We use char because int might match the return type of a gcc2
14474 builtin and then its argument prototype would still apply. */
14484 rm -f conftest.$ac_objext conftest$ac_exeext
14485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14486 (eval $ac_link) 2>conftest.er1
14488 grep -v '^ *+' conftest.er1 >conftest.err
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -z "$ac_c_werror_flag"
14494 || test ! -s conftest.err'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; } &&
14500 { ac_try='test -s conftest$ac_exeext'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
14506 ac_cv_lib_V3_sigset=yes
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 ac_cv_lib_V3_sigset=no
14513 rm -f conftest.err conftest.$ac_objext \
14514 conftest$ac_exeext conftest.$ac_ext
14515 LIBS=$ac_check_lib_save_LIBS
14517 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14518 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14519 if test $ac_cv_lib_V3_sigset = yes; then
14520 cat >>confdefs.h <<_ACEOF
14521 #define HAVE_LIBV3 1
14530 if test "$ac_cv_header_winsock_h" = yes; then
14531 echo "$as_me:$LINENO: checking for winsock" >&5
14532 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14533 if test "${ol_cv_winsock+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 for curlib in ws2_32 wsock32; do
14538 LIBS="$LIBS -l$curlib"
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #include <winsock.h>
14552 select(0,NULL,NULL,NULL,NULL);
14554 gethostname(NULL,0);
14560 rm -f conftest.$ac_objext conftest$ac_exeext
14561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14562 (eval $ac_link) 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -z "$ac_c_werror_flag"
14570 || test ! -s conftest.err'
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; } &&
14576 { ac_try='test -s conftest$ac_exeext'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14589 rm -f conftest.err conftest.$ac_objext \
14590 conftest$ac_exeext conftest.$ac_ext
14592 if test $ol_cv_winsock = yes; then
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_WINSOCK 1
14598 ac_cv_func_socket=yes
14599 ac_cv_func_select=yes
14600 ac_cv_func_closesocket=yes
14601 ac_cv_func_gethostname=yes
14602 if test $curlib = ws2_32; then
14603 ol_cv_winsock=winsock2
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_WINSOCK2 1
14615 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14616 echo "${ECHO_T}$ol_cv_winsock" >&6
14620 echo "$as_me:$LINENO: checking for socket" >&5
14621 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14622 if test "${ac_cv_func_socket+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 cat >conftest.$ac_ext <<_ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14633 #define socket innocuous_socket
14635 /* System header to define __stub macros and hopefully few prototypes,
14636 which can conflict with char socket (); below.
14637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14638 <limits.h> exists even on freestanding compilers. */
14641 # include <limits.h>
14643 # include <assert.h>
14648 /* Override any gcc2 internal prototype to avoid an error. */
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14656 /* The GNU C library defines this for functions which it implements
14657 to always fail with ENOSYS. Some functions are actually named
14658 something starting with __ and the normal name is an alias. */
14659 #if defined (__stub_socket) || defined (__stub___socket)
14662 char (*f) () = socket;
14671 return f != socket;
14676 rm -f conftest.$ac_objext conftest$ac_exeext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14678 (eval $ac_link) 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest$ac_exeext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_func_socket=yes
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_cv_func_socket=no
14705 rm -f conftest.err conftest.$ac_objext \
14706 conftest$ac_exeext conftest.$ac_ext
14708 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14709 echo "${ECHO_T}$ac_cv_func_socket" >&6
14710 if test $ac_cv_func_socket = yes; then
14715 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14716 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14717 if test "${ac_cv_lib_socket_main+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 ac_check_lib_save_LIBS=$LIBS
14721 LIBS="-lsocket $LIBS"
14722 cat >conftest.$ac_ext <<_ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14738 rm -f conftest.$ac_objext conftest$ac_exeext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14740 (eval $ac_link) 2>conftest.er1
14742 grep -v '^ *+' conftest.er1 >conftest.err
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag"
14748 || test ! -s conftest.err'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; } &&
14754 { ac_try='test -s conftest$ac_exeext'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }; then
14760 ac_cv_lib_socket_main=yes
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ac_cv_lib_socket_main=no
14767 rm -f conftest.err conftest.$ac_objext \
14768 conftest$ac_exeext conftest.$ac_ext
14769 LIBS=$ac_check_lib_save_LIBS
14771 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14772 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14773 if test $ac_cv_lib_socket_main = yes; then
14774 cat >>confdefs.h <<_ACEOF
14775 #define HAVE_LIBSOCKET 1
14778 LIBS="-lsocket $LIBS"
14783 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14784 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14785 if test "${ac_cv_lib_net_main+set}" = set; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 ac_check_lib_save_LIBS=$LIBS
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14808 (eval $ac_link) 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -z "$ac_c_werror_flag"
14816 || test ! -s conftest.err'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest$ac_exeext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_cv_lib_net_main=yes
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 ac_cv_lib_net_main=no
14835 rm -f conftest.err conftest.$ac_objext \
14836 conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS
14839 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14840 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14841 if test $ac_cv_lib_net_main = yes; then
14842 cat >>confdefs.h <<_ACEOF
14843 #define HAVE_LIBNET 1
14851 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14852 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14853 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 ac_check_lib_save_LIBS=$LIBS
14857 LIBS="-lnsl_s $LIBS"
14858 cat >conftest.$ac_ext <<_ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>conftest.er1
14878 grep -v '^ *+' conftest.er1 >conftest.err
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } &&
14883 { ac_try='test -z "$ac_c_werror_flag"
14884 || test ! -s conftest.err'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; } &&
14890 { ac_try='test -s conftest$ac_exeext'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 ac_cv_lib_nsl_s_main=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_cv_lib_nsl_s_main=no
14903 rm -f conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14905 LIBS=$ac_check_lib_save_LIBS
14907 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14908 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14909 if test $ac_cv_lib_nsl_s_main = yes; then
14910 cat >>confdefs.h <<_ACEOF
14911 #define HAVE_LIBNSL_S 1
14914 LIBS="-lnsl_s $LIBS"
14919 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14920 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14921 if test "${ac_cv_lib_nsl_main+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 ac_check_lib_save_LIBS=$LIBS
14926 cat >conftest.$ac_ext <<_ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14944 (eval $ac_link) 2>conftest.er1
14946 grep -v '^ *+' conftest.er1 >conftest.err
14948 cat conftest.err >&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); } &&
14951 { ac_try='test -z "$ac_c_werror_flag"
14952 || test ! -s conftest.err'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; } &&
14958 { ac_try='test -s conftest$ac_exeext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964 ac_cv_lib_nsl_main=yes
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14969 ac_cv_lib_nsl_main=no
14971 rm -f conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14973 LIBS=$ac_check_lib_save_LIBS
14975 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14976 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14977 if test $ac_cv_lib_nsl_main = yes; then
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_LIBNSL 1
14987 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14988 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14989 if test "${ac_cv_lib_inet_socket+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 ac_check_lib_save_LIBS=$LIBS
14993 LIBS="-linet $LIBS"
14994 cat >conftest.$ac_ext <<_ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15001 /* Override any gcc2 internal prototype to avoid an error. */
15005 /* We use char because int might match the return type of a gcc2
15006 builtin and then its argument prototype would still apply. */
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15018 (eval $ac_link) 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -z "$ac_c_werror_flag"
15026 || test ! -s conftest.err'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; } &&
15032 { ac_try='test -s conftest$ac_exeext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_lib_inet_socket=yes
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15043 ac_cv_lib_inet_socket=no
15045 rm -f conftest.err conftest.$ac_objext \
15046 conftest$ac_exeext conftest.$ac_ext
15047 LIBS=$ac_check_lib_save_LIBS
15049 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15050 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15051 if test $ac_cv_lib_inet_socket = yes; then
15052 cat >>confdefs.h <<_ACEOF
15053 #define HAVE_LIBINET 1
15056 LIBS="-linet $LIBS"
15061 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15062 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15063 if test "${ac_cv_lib_gen_main+set}" = set; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 ac_check_lib_save_LIBS=$LIBS
15068 cat >conftest.$ac_ext <<_ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15084 rm -f conftest.$ac_objext conftest$ac_exeext
15085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15086 (eval $ac_link) 2>conftest.er1
15088 grep -v '^ *+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -z "$ac_c_werror_flag"
15094 || test ! -s conftest.err'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try='test -s conftest$ac_exeext'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_cv_lib_gen_main=yes
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 ac_cv_lib_gen_main=no
15113 rm -f conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15115 LIBS=$ac_check_lib_save_LIBS
15117 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15118 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15119 if test $ac_cv_lib_gen_main = yes; then
15120 cat >>confdefs.h <<_ACEOF
15121 #define HAVE_LIBGEN 1
15132 echo "$as_me:$LINENO: checking for select" >&5
15133 echo $ECHO_N "checking for select... $ECHO_C" >&6
15134 if test "${ac_cv_func_select+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 /* Define select to an innocuous variant, in case <limits.h> declares select.
15144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15145 #define select innocuous_select
15147 /* System header to define __stub macros and hopefully few prototypes,
15148 which can conflict with char select (); below.
15149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15150 <limits.h> exists even on freestanding compilers. */
15153 # include <limits.h>
15155 # include <assert.h>
15160 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15168 /* The GNU C library defines this for functions which it implements
15169 to always fail with ENOSYS. Some functions are actually named
15170 something starting with __ and the normal name is an alias. */
15171 #if defined (__stub_select) || defined (__stub___select)
15174 char (*f) () = select;
15183 return f != select;
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15190 (eval $ac_link) 2>conftest.er1
15192 grep -v '^ *+' conftest.er1 >conftest.err
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try='test -z "$ac_c_werror_flag"
15198 || test ! -s conftest.err'
15199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200 (eval $ac_try) 2>&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; } &&
15204 { ac_try='test -s conftest$ac_exeext'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_cv_func_select=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_cv_func_select=no
15217 rm -f conftest.err conftest.$ac_objext \
15218 conftest$ac_exeext conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15221 echo "${ECHO_T}$ac_cv_func_select" >&6
15222 if test $ac_cv_func_select = yes; then
15225 { { echo "$as_me:$LINENO: error: select() required." >&5
15226 echo "$as_me: error: select() required." >&2;}
15227 { (exit 1); exit 1; }; }
15231 if test "${ac_cv_header_winsock_h}" != yes; then
15234 for ac_header in sys/select.h sys/socket.h
15236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15238 echo "$as_me:$LINENO: checking for $ac_header" >&5
15239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15246 # Is the header compilable?
15247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 $ac_includes_default
15256 #include <$ac_header>
15258 rm -f conftest.$ac_objext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15260 (eval $ac_compile) 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try='test -z "$ac_c_werror_flag"
15268 || test ! -s conftest.err'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; } &&
15274 { ac_try='test -s conftest.$ac_objext'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_header_compiler=yes
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_header_compiler=no
15287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 echo "${ECHO_T}$ac_header_compiler" >&6
15291 # Is the header present?
15292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 #include <$ac_header>
15302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null; then
15310 if test -s conftest.err; then
15311 ac_cpp_err=$ac_c_preproc_warn_flag
15312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15319 if test -z "$ac_cpp_err"; then
15320 ac_header_preproc=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_header_preproc=no
15327 rm -f conftest.err conftest.$ac_ext
15328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15329 echo "${ECHO_T}$ac_header_preproc" >&6
15331 # So? What about this header?
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15338 ac_header_preproc=yes
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15355 ## --------------------------------------------- ##
15356 ## Report this to <http://www.openldap.org/its/> ##
15357 ## --------------------------------------------- ##
15360 sed "s/^/$as_me: WARNING: /" >&2
15363 echo "$as_me:$LINENO: checking for $ac_header" >&5
15364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 eval "$as_ac_Header=\$ac_header_preproc"
15370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375 cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15383 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15384 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15385 if test "${ac_cv_func_select_args+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15389 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15390 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15391 cat >conftest.$ac_ext <<_ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 $ac_includes_default
15398 #if HAVE_SYS_SELECT_H
15399 # include <sys/select.h>
15401 #if HAVE_SYS_SOCKET_H
15402 # include <sys/socket.h>
15408 extern int select ($ac_arg1,
15409 $ac_arg234, $ac_arg234, $ac_arg234,
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>conftest.er1
15419 grep -v '^ *+' conftest.er1 >conftest.err
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag"
15425 || test ! -s conftest.err'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15447 # Provide a safe default value.
15448 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15451 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15452 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15453 ac_save_IFS=$IFS; IFS=','
15454 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15458 cat >>confdefs.h <<_ACEOF
15459 #define SELECT_TYPE_ARG1 $1
15463 cat >>confdefs.h <<_ACEOF
15464 #define SELECT_TYPE_ARG234 ($2)
15468 cat >>confdefs.h <<_ACEOF
15469 #define SELECT_TYPE_ARG5 ($3)
15478 for ac_func in poll
15480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15481 echo "$as_me:$LINENO: checking for $ac_func" >&5
15482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15483 if eval "test \"\${$as_ac_var+set}\" = set"; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 cat >conftest.$ac_ext <<_ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15494 #define $ac_func innocuous_$ac_func
15496 /* System header to define __stub macros and hopefully few prototypes,
15497 which can conflict with char $ac_func (); below.
15498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15499 <limits.h> exists even on freestanding compilers. */
15502 # include <limits.h>
15504 # include <assert.h>
15509 /* Override any gcc2 internal prototype to avoid an error. */
15514 /* We use char because int might match the return type of a gcc2
15515 builtin and then its argument prototype would still apply. */
15517 /* The GNU C library defines this for functions which it implements
15518 to always fail with ENOSYS. Some functions are actually named
15519 something starting with __ and the normal name is an alias. */
15520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15523 char (*f) () = $ac_func;
15532 return f != $ac_func;
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539 (eval $ac_link) 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } &&
15546 { ac_try='test -z "$ac_c_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest$ac_exeext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 eval "$as_ac_var=yes"
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 eval "$as_ac_var=no"
15566 rm -f conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
15569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15571 if test `eval echo '${'$as_ac_var'}'` = yes; then
15572 cat >>confdefs.h <<_ACEOF
15573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15579 if test $ac_cv_func_poll = yes; then
15582 for ac_header in poll.h sys/poll.h
15584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15586 echo "$as_me:$LINENO: checking for $ac_header" >&5
15587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15594 # Is the header compilable?
15595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15597 cat >conftest.$ac_ext <<_ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h. */
15603 $ac_includes_default
15604 #include <$ac_header>
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>conftest.er1
15610 grep -v '^ *+' conftest.er1 >conftest.err
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
15615 { ac_try='test -z "$ac_c_werror_flag"
15616 || test ! -s conftest.err'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try='test -s conftest.$ac_objext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_header_compiler=yes
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_header_compiler=no
15635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15637 echo "${ECHO_T}$ac_header_compiler" >&6
15639 # Is the header present?
15640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15642 cat >conftest.$ac_ext <<_ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h. */
15648 #include <$ac_header>
15650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15653 grep -v '^ *+' conftest.er1 >conftest.err
15655 cat conftest.err >&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } >/dev/null; then
15658 if test -s conftest.err; then
15659 ac_cpp_err=$ac_c_preproc_warn_flag
15660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15667 if test -z "$ac_cpp_err"; then
15668 ac_header_preproc=yes
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_header_preproc=no
15675 rm -f conftest.err conftest.$ac_ext
15676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15677 echo "${ECHO_T}$ac_header_preproc" >&6
15679 # So? What about this header?
15680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15686 ac_header_preproc=yes
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15703 ## --------------------------------------------- ##
15704 ## Report this to <http://www.openldap.org/its/> ##
15705 ## --------------------------------------------- ##
15708 sed "s/^/$as_me: WARNING: /" >&2
15711 echo "$as_me:$LINENO: checking for $ac_header" >&5
15712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15716 eval "$as_ac_Header=\$ac_header_preproc"
15718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15723 cat >>confdefs.h <<_ACEOF
15724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15734 for ac_header in sys/epoll.h
15736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15738 echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15746 # Is the header compilable?
15747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15749 cat >conftest.$ac_ext <<_ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 $ac_includes_default
15756 #include <$ac_header>
15758 rm -f conftest.$ac_objext
15759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15760 (eval $ac_compile) 2>conftest.er1
15762 grep -v '^ *+' conftest.er1 >conftest.err
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
15767 { ac_try='test -z "$ac_c_werror_flag"
15768 || test ! -s conftest.err'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; } &&
15774 { ac_try='test -s conftest.$ac_objext'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_header_compiler=yes
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_compiler=no
15787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15789 echo "${ECHO_T}$ac_header_compiler" >&6
15791 # Is the header present?
15792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <$ac_header>
15802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15805 grep -v '^ *+' conftest.er1 >conftest.err
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } >/dev/null; then
15810 if test -s conftest.err; then
15811 ac_cpp_err=$ac_c_preproc_warn_flag
15812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15819 if test -z "$ac_cpp_err"; then
15820 ac_header_preproc=yes
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_header_preproc=no
15827 rm -f conftest.err conftest.$ac_ext
15828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15829 echo "${ECHO_T}$ac_header_preproc" >&6
15831 # So? What about this header?
15832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15838 ac_header_preproc=yes
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15855 ## --------------------------------------------- ##
15856 ## Report this to <http://www.openldap.org/its/> ##
15857 ## --------------------------------------------- ##
15860 sed "s/^/$as_me: WARNING: /" >&2
15863 echo "$as_me:$LINENO: checking for $ac_header" >&5
15864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 eval "$as_ac_Header=\$ac_header_preproc"
15870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15875 cat >>confdefs.h <<_ACEOF
15876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15883 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15884 echo "$as_me:$LINENO: checking for epoll system call" >&5
15885 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15886 if test "$cross_compiling" = yes; then
15887 echo "$as_me:$LINENO: result: no" >&5
15888 echo "${ECHO_T}no" >&6
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 int main(int argc, char **argv)
15898 int epfd = epoll_create(256);
15899 exit (epfd == -1 ? 1 : 0);
15902 rm -f conftest$ac_exeext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15904 (eval $ac_link) 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 echo "$as_me:$LINENO: result: yes" >&5
15914 echo "${ECHO_T}yes" >&6
15916 cat >>confdefs.h <<\_ACEOF
15917 #define HAVE_EPOLL 1
15921 echo "$as_me: program exited with status $ac_status" >&5
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ( exit $ac_status )
15926 echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15934 for ac_header in sys/devpoll.h
15936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15938 echo "$as_me:$LINENO: checking for $ac_header" >&5
15939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15946 # Is the header compilable?
15947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15949 cat >conftest.$ac_ext <<_ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15955 $ac_includes_default
15956 #include <$ac_header>
15958 rm -f conftest.$ac_objext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960 (eval $ac_compile) 2>conftest.er1
15962 grep -v '^ *+' conftest.er1 >conftest.err
15964 cat conftest.err >&5
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } &&
15967 { ac_try='test -z "$ac_c_werror_flag"
15968 || test ! -s conftest.err'
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; } &&
15974 { ac_try='test -s conftest.$ac_objext'
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_header_compiler=yes
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_header_compiler=no
15987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15989 echo "${ECHO_T}$ac_header_compiler" >&6
15991 # Is the header present?
15992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15994 cat >conftest.$ac_ext <<_ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h. */
16000 #include <$ac_header>
16002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } >/dev/null; then
16010 if test -s conftest.err; then
16011 ac_cpp_err=$ac_c_preproc_warn_flag
16012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16019 if test -z "$ac_cpp_err"; then
16020 ac_header_preproc=yes
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16025 ac_header_preproc=no
16027 rm -f conftest.err conftest.$ac_ext
16028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16029 echo "${ECHO_T}$ac_header_preproc" >&6
16031 # So? What about this header?
16032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16038 ac_header_preproc=yes
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16055 ## --------------------------------------------- ##
16056 ## Report this to <http://www.openldap.org/its/> ##
16057 ## --------------------------------------------- ##
16060 sed "s/^/$as_me: WARNING: /" >&2
16063 echo "$as_me:$LINENO: checking for $ac_header" >&5
16064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 eval "$as_ac_Header=\$ac_header_preproc"
16070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16075 cat >>confdefs.h <<_ACEOF
16076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16083 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16084 -a "${ac_cv_header_poll_h}" = yes ; \
16086 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16087 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16088 if test "$cross_compiling" = yes; then
16089 echo "$as_me:$LINENO: result: no" >&5
16090 echo "${ECHO_T}no" >&6
16092 cat >conftest.$ac_ext <<_ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098 int main(int argc, char **argv)
16100 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16101 exit (devpollfd == -1 ? 1 : 0);
16104 rm -f conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 echo "$as_me:$LINENO: result: yes" >&5
16116 echo "${ECHO_T}yes" >&6
16118 cat >>confdefs.h <<\_ACEOF
16119 #define HAVE_DEVPOLL 1
16123 echo "$as_me: program exited with status $ac_status" >&5
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ( exit $ac_status )
16128 echo "$as_me:$LINENO: result: no" >&5
16129 echo "${ECHO_T}no" >&6
16131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16136 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16137 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16138 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 cat >conftest.$ac_ext <<_ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16150 #include <sys/types.h>
16153 #include <stdlib.h>
16158 char *c = (char *) *sys_errlist
16163 rm -f conftest.$ac_objext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165 (eval $ac_compile) 2>conftest.er1
16167 grep -v '^ *+' conftest.er1 >conftest.err
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try='test -z "$ac_c_werror_flag"
16173 || test ! -s conftest.err'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest.$ac_objext'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ol_cv_dcl_sys_errlist=yes
16186 ol_cv_have_sys_errlist=yes
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ol_cv_dcl_sys_errlist=no
16193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16195 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16196 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16198 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16199 if test $ol_cv_dcl_sys_errlist = no ; then
16201 cat >>confdefs.h <<\_ACEOF
16202 #define DECL_SYS_ERRLIST 1
16206 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16207 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16208 if test "${ol_cv_have_sys_errlist+set}" = set; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16222 char *c = (char *) *sys_errlist
16227 rm -f conftest.$ac_objext conftest$ac_exeext
16228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16229 (eval $ac_link) 2>conftest.er1
16231 grep -v '^ *+' conftest.er1 >conftest.err
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
16236 { ac_try='test -z "$ac_c_werror_flag"
16237 || test ! -s conftest.err'
16238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239 (eval $ac_try) 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; } &&
16243 { ac_try='test -s conftest$ac_exeext'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ol_cv_have_sys_errlist=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ol_cv_have_sys_errlist=no
16256 rm -f conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16259 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16260 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16262 if test $ol_cv_have_sys_errlist = yes ; then
16264 cat >>confdefs.h <<\_ACEOF
16265 #define HAVE_SYS_ERRLIST 1
16271 for ac_func in strerror strerror_r
16273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16274 echo "$as_me:$LINENO: checking for $ac_func" >&5
16275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16276 if eval "test \"\${$as_ac_var+set}\" = set"; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16287 #define $ac_func innocuous_$ac_func
16289 /* System header to define __stub macros and hopefully few prototypes,
16290 which can conflict with char $ac_func (); below.
16291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16292 <limits.h> exists even on freestanding compilers. */
16295 # include <limits.h>
16297 # include <assert.h>
16302 /* Override any gcc2 internal prototype to avoid an error. */
16307 /* We use char because int might match the return type of a gcc2
16308 builtin and then its argument prototype would still apply. */
16310 /* The GNU C library defines this for functions which it implements
16311 to always fail with ENOSYS. Some functions are actually named
16312 something starting with __ and the normal name is an alias. */
16313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16316 char (*f) () = $ac_func;
16325 return f != $ac_func;
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332 (eval $ac_link) 2>conftest.er1
16334 grep -v '^ *+' conftest.er1 >conftest.err
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -z "$ac_c_werror_flag"
16340 || test ! -s conftest.err'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; } &&
16346 { ac_try='test -s conftest$ac_exeext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 eval "$as_ac_var=yes"
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 eval "$as_ac_var=no"
16359 rm -f conftest.err conftest.$ac_objext \
16360 conftest$ac_exeext conftest.$ac_ext
16362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16364 if test `eval echo '${'$as_ac_var'}'` = yes; then
16365 cat >>confdefs.h <<_ACEOF
16366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16372 ol_cv_func_strerror_r=no
16373 if test "${ac_cv_func_strerror_r}" = yes ; then
16374 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16375 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16376 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16380 cat >conftest.$ac_ext <<_ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 #include <string.h>
16388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16389 $EGREP "strerror_r" >/dev/null 2>&1; then
16390 ol_decl_strerror_r=yes
16392 ol_decl_strerror_r=no
16396 if test $ol_decl_strerror_r = yes ; then
16397 cat >conftest.$ac_ext <<_ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 #include <string.h>
16407 /* from autoconf 2.59 */
16409 char x = *strerror_r (0, buf, sizeof buf);
16410 char *p = strerror_r (0, buf, sizeof buf);
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418 (eval $ac_compile) 2>conftest.er1
16420 grep -v '^ *+' conftest.er1 >conftest.err
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
16425 { ac_try='test -z "$ac_c_werror_flag"
16426 || test ! -s conftest.err'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ol_cv_nonposix_strerror_r=yes
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ol_cv_nonposix_strerror_r=no
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16447 if test "$cross_compiling" = yes; then
16448 ol_cv_nonposix_strerror=no
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16460 strerror_r( 1, buf, sizeof buf );
16461 exit( buf[0] == 0 );
16465 rm -f conftest$ac_exeext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16467 (eval $ac_link) 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 ol_cv_nonposix_strerror_r=yes
16478 echo "$as_me: program exited with status $ac_status" >&5
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16482 ( exit $ac_status )
16483 ol_cv_nonposix_strerror=no
16485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16490 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16491 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16492 if test $ol_cv_nonposix_strerror_r = yes ; then
16494 cat >>confdefs.h <<\_ACEOF
16495 #define HAVE_NONPOSIX_STRERROR_R 1
16500 elif test "${ac_cv_func_strerror}" = no ; then
16501 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16502 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16503 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16504 echo $ECHO_N "(cached) $ECHO_C" >&6
16507 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16515 #include <sys/types.h>
16518 #include <stdlib.h>
16523 char *c = (char *) *sys_errlist
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ol_cv_dcl_sys_errlist=yes
16551 ol_cv_have_sys_errlist=yes
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16556 ol_cv_dcl_sys_errlist=no
16558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16560 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16561 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16563 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16564 if test $ol_cv_dcl_sys_errlist = no ; then
16566 cat >>confdefs.h <<\_ACEOF
16567 #define DECL_SYS_ERRLIST 1
16571 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16572 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16573 if test "${ol_cv_have_sys_errlist+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 cat >conftest.$ac_ext <<_ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16587 char *c = (char *) *sys_errlist
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594 (eval $ac_link) 2>conftest.er1
16596 grep -v '^ *+' conftest.er1 >conftest.err
16598 cat conftest.err >&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -z "$ac_c_werror_flag"
16602 || test ! -s conftest.err'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; } &&
16608 { ac_try='test -s conftest$ac_exeext'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ol_cv_have_sys_errlist=yes
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ol_cv_have_sys_errlist=no
16621 rm -f conftest.err conftest.$ac_objext \
16622 conftest$ac_exeext conftest.$ac_ext
16624 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16625 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16627 if test $ol_cv_have_sys_errlist = yes ; then
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE_SYS_ERRLIST 1
16639 for ac_header in regex.h
16641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16642 echo "$as_me:$LINENO: checking for $ac_header" >&5
16643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 cat >conftest.$ac_ext <<_ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 $ac_includes_default
16654 #ifdef HAVE_SYS_TYPES_H
16655 #include <sys/types.h>
16659 #include <$ac_header>
16661 rm -f conftest.$ac_objext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16663 (eval $ac_compile) 2>conftest.er1
16665 grep -v '^ *+' conftest.er1 >conftest.err
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag"
16671 || test ! -s conftest.err'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; } &&
16677 { ac_try='test -s conftest.$ac_objext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 eval "$as_ac_Header=yes"
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 eval "$as_ac_Header=no"
16690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16695 cat >>confdefs.h <<_ACEOF
16696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16704 if test "$ac_cv_header_regex_h" != yes ; then
16705 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16706 echo "$as_me: error: POSIX regex.h required." >&2;}
16707 { (exit 1); exit 1; }; }
16709 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16710 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16711 if test "${ac_cv_search_regfree+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 ac_func_search_save_LIBS=$LIBS
16715 ac_cv_search_regfree=no
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16723 /* Override any gcc2 internal prototype to avoid an error. */
16727 /* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16738 rm -f conftest.$ac_objext conftest$ac_exeext
16739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16740 (eval $ac_link) 2>conftest.er1
16742 grep -v '^ *+' conftest.er1 >conftest.err
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } &&
16747 { ac_try='test -z "$ac_c_werror_flag"
16748 || test ! -s conftest.err'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; } &&
16754 { ac_try='test -s conftest$ac_exeext'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; }; then
16760 ac_cv_search_regfree="none required"
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16766 rm -f conftest.err conftest.$ac_objext \
16767 conftest$ac_exeext conftest.$ac_ext
16768 if test "$ac_cv_search_regfree" = no; then
16769 for ac_lib in regex gnuregex; do
16770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16771 cat >conftest.$ac_ext <<_ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h. */
16778 /* Override any gcc2 internal prototype to avoid an error. */
16782 /* We use char because int might match the return type of a gcc2
16783 builtin and then its argument prototype would still apply. */
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795 (eval $ac_link) 2>conftest.er1
16797 grep -v '^ *+' conftest.er1 >conftest.err
16799 cat conftest.err >&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -z "$ac_c_werror_flag"
16803 || test ! -s conftest.err'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest$ac_exeext'
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_cv_search_regfree="-l$ac_lib"
16818 echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16822 rm -f conftest.err conftest.$ac_objext \
16823 conftest$ac_exeext conftest.$ac_ext
16826 LIBS=$ac_func_search_save_LIBS
16828 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16829 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16830 if test "$ac_cv_search_regfree" != no; then
16831 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16834 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16835 echo "$as_me: error: POSIX regex required." >&2;}
16836 { (exit 1); exit 1; }; }
16841 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16842 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16843 if test "${ol_cv_c_posix_regex+set}" = set; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 if test "$cross_compiling" = yes; then
16848 ol_cv_c_posix_regex=cross
16850 cat >conftest.$ac_ext <<_ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16857 #include <sys/types.h>
16859 static char *pattern, *string;
16867 if(regcomp(&re, pattern, 0)) {
16871 string = "ALL MATCH";
16873 rc = regexec(&re, string, 0, (void*)0, 0);
16880 rm -f conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882 (eval $ac_link) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ol_cv_c_posix_regex=yes
16893 echo "$as_me: program exited with status $ac_status" >&5
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ( exit $ac_status )
16898 ol_cv_c_posix_regex=no
16900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16903 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16904 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16906 if test "$ol_cv_c_posix_regex" = no ; then
16907 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16908 echo "$as_me: error: broken POSIX regex!" >&2;}
16909 { (exit 1); exit 1; }; }
16915 for ac_header in sys/uuid.h
16917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16919 echo "$as_me:$LINENO: checking for $ac_header" >&5
16920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16927 # Is the header compilable?
16928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16930 cat >conftest.$ac_ext <<_ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 $ac_includes_default
16937 #include <$ac_header>
16939 rm -f conftest.$ac_objext
16940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16941 (eval $ac_compile) 2>conftest.er1
16943 grep -v '^ *+' conftest.er1 >conftest.err
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try='test -z "$ac_c_werror_flag"
16949 || test ! -s conftest.err'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_header_compiler=yes
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 ac_header_compiler=no
16968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6
16972 # Is the header present?
16973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <$ac_header>
16983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } >/dev/null; then
16991 if test -s conftest.err; then
16992 ac_cpp_err=$ac_c_preproc_warn_flag
16993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17000 if test -z "$ac_cpp_err"; then
17001 ac_header_preproc=yes
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ac_header_preproc=no
17008 rm -f conftest.err conftest.$ac_ext
17009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17010 echo "${ECHO_T}$ac_header_preproc" >&6
17012 # So? What about this header?
17013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17019 ac_header_preproc=yes
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17036 ## --------------------------------------------- ##
17037 ## Report this to <http://www.openldap.org/its/> ##
17038 ## --------------------------------------------- ##
17041 sed "s/^/$as_me: WARNING: /" >&2
17044 echo "$as_me:$LINENO: checking for $ac_header" >&5
17045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 eval "$as_ac_Header=\$ac_header_preproc"
17051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17056 cat >>confdefs.h <<_ACEOF
17057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17064 if test $ac_cv_header_sys_uuid_h = yes ; then
17066 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17067 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17068 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 ac_func_search_save_LIBS=$LIBS
17072 ac_cv_search_uuid_to_str=no
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17080 /* Override any gcc2 internal prototype to avoid an error. */
17084 /* We use char because int might match the return type of a gcc2
17085 builtin and then its argument prototype would still apply. */
17086 char uuid_to_str ();
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17097 (eval $ac_link) 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag"
17105 || test ! -s conftest.err'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest$ac_exeext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_search_uuid_to_str="none required"
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17123 rm -f conftest.err conftest.$ac_objext \
17124 conftest$ac_exeext conftest.$ac_ext
17125 if test "$ac_cv_search_uuid_to_str" = no; then
17126 for ac_lib in uuid; do
17127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17128 cat >conftest.$ac_ext <<_ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 /* Override any gcc2 internal prototype to avoid an error. */
17139 /* We use char because int might match the return type of a gcc2
17140 builtin and then its argument prototype would still apply. */
17141 char uuid_to_str ();
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152 (eval $ac_link) 2>conftest.er1
17154 grep -v '^ *+' conftest.er1 >conftest.err
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
17159 { ac_try='test -z "$ac_c_werror_flag"
17160 || test ! -s conftest.err'
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest$ac_exeext'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_cv_search_uuid_to_str="-l$ac_lib"
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17179 rm -f conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_func_search_save_LIBS
17185 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17186 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17187 if test "$ac_cv_search_uuid_to_str" != no; then
17188 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17196 if test have_uuid = yes ; then
17198 cat >>confdefs.h <<\_ACEOF
17199 #define HAVE_UUID_TO_STR 1
17203 test "$ac_cv_search_uuid_to_str" = "none required" || \
17204 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17208 if test $have_uuid = no ; then
17210 for ac_header in uuid/uuid.h
17212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17214 echo "$as_me:$LINENO: checking for $ac_header" >&5
17215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17222 # Is the header compilable?
17223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 $ac_includes_default
17232 #include <$ac_header>
17234 rm -f conftest.$ac_objext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17236 (eval $ac_compile) 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try='test -s conftest.$ac_objext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_header_compiler=yes
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17261 ac_header_compiler=no
17263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265 echo "${ECHO_T}$ac_header_compiler" >&6
17267 # Is the header present?
17268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 #include <$ac_header>
17278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17281 grep -v '^ *+' conftest.er1 >conftest.err
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } >/dev/null; then
17286 if test -s conftest.err; then
17287 ac_cpp_err=$ac_c_preproc_warn_flag
17288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17295 if test -z "$ac_cpp_err"; then
17296 ac_header_preproc=yes
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17301 ac_header_preproc=no
17303 rm -f conftest.err conftest.$ac_ext
17304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17305 echo "${ECHO_T}$ac_header_preproc" >&6
17307 # So? What about this header?
17308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17314 ac_header_preproc=yes
17317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17331 ## --------------------------------------------- ##
17332 ## Report this to <http://www.openldap.org/its/> ##
17333 ## --------------------------------------------- ##
17336 sed "s/^/$as_me: WARNING: /" >&2
17339 echo "$as_me:$LINENO: checking for $ac_header" >&5
17340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 eval "$as_ac_Header=\$ac_header_preproc"
17346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351 cat >>confdefs.h <<_ACEOF
17352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17359 if test $ac_cv_header_uuid_uuid_h = yes ; then
17361 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17362 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17363 if test "${ac_cv_search_uuid_generate+set}" = set; then
17364 echo $ECHO_N "(cached) $ECHO_C" >&6
17366 ac_func_search_save_LIBS=$LIBS
17367 ac_cv_search_uuid_generate=no
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17375 /* Override any gcc2 internal prototype to avoid an error. */
17379 /* We use char because int might match the return type of a gcc2
17380 builtin and then its argument prototype would still apply. */
17381 char uuid_generate ();
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>conftest.er1
17394 grep -v '^ *+' conftest.er1 >conftest.err
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag"
17400 || test ! -s conftest.err'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest$ac_exeext'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_cv_search_uuid_generate="none required"
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17418 rm -f conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17420 if test "$ac_cv_search_uuid_generate" = no; then
17421 for ac_lib in uuid; do
17422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17423 cat >conftest.$ac_ext <<_ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17430 /* Override any gcc2 internal prototype to avoid an error. */
17434 /* We use char because int might match the return type of a gcc2
17435 builtin and then its argument prototype would still apply. */
17436 char uuid_generate ();
17445 rm -f conftest.$ac_objext conftest$ac_exeext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447 (eval $ac_link) 2>conftest.er1
17449 grep -v '^ *+' conftest.er1 >conftest.err
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
17454 { ac_try='test -z "$ac_c_werror_flag"
17455 || test ! -s conftest.err'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest$ac_exeext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_cv_search_uuid_generate="-l$ac_lib"
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17474 rm -f conftest.err conftest.$ac_objext \
17475 conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_func_search_save_LIBS
17480 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17481 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17482 if test "$ac_cv_search_uuid_generate" != no; then
17483 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17491 if test have_uuid = yes ; then
17493 cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_UUID_GENERATE 1
17498 test "$ac_cv_search_uuid_generate" = "none required" || \
17499 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17504 if test $have_uuid = no ; then
17505 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17506 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17508 LIBS="$LIBS -lrpcrt4"
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17516 int __stdcall UuidCreate(void *);
17517 int __stdcall UuidToStringA(void *,void **);
17524 UuidToStringA(0,0);
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17532 (eval $ac_link) 2>conftest.er1
17534 grep -v '^ *+' conftest.er1 >conftest.err
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -z "$ac_c_werror_flag"
17540 || test ! -s conftest.err'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest$ac_exeext'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17559 rm -f conftest.err conftest.$ac_objext \
17560 conftest$ac_exeext conftest.$ac_ext
17561 if test $need_rpcrt = yes; then
17562 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17565 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17566 echo "${ECHO_T}$need_rpcrt" >&6
17569 ol_cv_lib_resolver=no
17570 if test $ol_cv_lib_resolver = no ; then
17571 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17572 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17573 if test "${ol_cv_resolver_none+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 LIBS="$ol_RESOLVER_LIB $LIBS"
17581 cat >conftest.$ac_ext <<_ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17588 #ifdef HAVE_SYS_TYPES_H
17589 # include <sys/types.h>
17591 #include <netinet/in.h>
17592 #ifdef HAVE_ARPA_NAMESER_H
17593 # include <arpa/nameser.h>
17595 #ifdef HAVE_RESOLV_H
17596 # include <resolv.h>
17604 char *request = NULL;
17605 unsigned char reply[64*1024];
17606 unsigned char host[64*1024];
17610 /* Bind 8/9 interface */
17611 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17613 /* Bind 4 interface */
17617 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17621 /* Bind 8/9 interface */
17623 #elif defined(HFIXEDSZ)
17624 /* Bind 4 interface w/ HFIXEDSZ */
17627 /* Bind 4 interface w/o HFIXEDSZ */
17628 p += sizeof(HEADER);
17630 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638 (eval $ac_link) 2>conftest.er1
17640 grep -v '^ *+' conftest.er1 >conftest.err
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag"
17646 || test ! -s conftest.err'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest$ac_exeext'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; }; then
17658 ol_cv_resolver_none=yes
17660 echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ol_cv_resolver_none=no
17665 rm -f conftest.err conftest.$ac_objext \
17666 conftest$ac_exeext conftest.$ac_ext
17671 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17672 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17674 if test $ol_cv_resolver_none = yes ; then
17675 ol_cv_lib_resolver=yes
17679 if test $ol_cv_lib_resolver = no ; then
17680 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17681 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17682 if test "${ol_cv_resolver_resolv+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17686 ol_RESOLVER_LIB=-lresolv
17688 LIBS="$ol_RESOLVER_LIB $LIBS"
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17697 #ifdef HAVE_SYS_TYPES_H
17698 # include <sys/types.h>
17700 #include <netinet/in.h>
17701 #ifdef HAVE_ARPA_NAMESER_H
17702 # include <arpa/nameser.h>
17704 #ifdef HAVE_RESOLV_H
17705 # include <resolv.h>
17713 char *request = NULL;
17714 unsigned char reply[64*1024];
17715 unsigned char host[64*1024];
17719 /* Bind 8/9 interface */
17720 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17722 /* Bind 4 interface */
17726 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17730 /* Bind 8/9 interface */
17732 #elif defined(HFIXEDSZ)
17733 /* Bind 4 interface w/ HFIXEDSZ */
17736 /* Bind 4 interface w/o HFIXEDSZ */
17737 p += sizeof(HEADER);
17739 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>conftest.er1
17749 grep -v '^ *+' conftest.er1 >conftest.err
17751 cat conftest.err >&5
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
17754 { ac_try='test -z "$ac_c_werror_flag"
17755 || test ! -s conftest.err'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } &&
17761 { ac_try='test -s conftest$ac_exeext'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; }; then
17767 ol_cv_resolver_resolv=yes
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ol_cv_resolver_resolv=no
17774 rm -f conftest.err conftest.$ac_objext \
17775 conftest$ac_exeext conftest.$ac_ext
17780 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17781 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17783 if test $ol_cv_resolver_resolv = yes ; then
17784 ol_cv_lib_resolver=-lresolv
17788 if test $ol_cv_lib_resolver = no ; then
17789 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17790 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17791 if test "${ol_cv_resolver_bind+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 ol_RESOLVER_LIB=-lbind
17797 LIBS="$ol_RESOLVER_LIB $LIBS"
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 #ifdef HAVE_SYS_TYPES_H
17807 # include <sys/types.h>
17809 #include <netinet/in.h>
17810 #ifdef HAVE_ARPA_NAMESER_H
17811 # include <arpa/nameser.h>
17813 #ifdef HAVE_RESOLV_H
17814 # include <resolv.h>
17822 char *request = NULL;
17823 unsigned char reply[64*1024];
17824 unsigned char host[64*1024];
17828 /* Bind 8/9 interface */
17829 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17831 /* Bind 4 interface */
17835 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17839 /* Bind 8/9 interface */
17841 #elif defined(HFIXEDSZ)
17842 /* Bind 4 interface w/ HFIXEDSZ */
17845 /* Bind 4 interface w/o HFIXEDSZ */
17846 p += sizeof(HEADER);
17848 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856 (eval $ac_link) 2>conftest.er1
17858 grep -v '^ *+' conftest.er1 >conftest.err
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
17863 { ac_try='test -z "$ac_c_werror_flag"
17864 || test ! -s conftest.err'
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest$ac_exeext'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ol_cv_resolver_bind=yes
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ol_cv_resolver_bind=no
17883 rm -f conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17889 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17890 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17892 if test $ol_cv_resolver_bind = yes ; then
17893 ol_cv_lib_resolver=-lbind
17900 if test "$ol_cv_lib_resolver" != no ; then
17902 cat >>confdefs.h <<\_ACEOF
17903 #define HAVE_RES_QUERY 1
17907 if test "$ol_enable_dnssrv" != no ; then
17911 if test "$ol_cv_lib_resolver" != yes ; then
17912 LIBS="$ol_cv_lib_resolver $LIBS"
17916 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17917 if test "$ol_link_dnssrv" = no ; then
17918 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17919 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17920 { (exit 1); exit 1; }; }
17923 ol_enable_dnssrv=no
17927 for ac_func in hstrerror
17929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17930 echo "$as_me:$LINENO: checking for $ac_func" >&5
17931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17932 if eval "test \"\${$as_ac_var+set}\" = set"; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17935 cat >conftest.$ac_ext <<_ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17943 #define $ac_func innocuous_$ac_func
17945 /* System header to define __stub macros and hopefully few prototypes,
17946 which can conflict with char $ac_func (); below.
17947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17948 <limits.h> exists even on freestanding compilers. */
17951 # include <limits.h>
17953 # include <assert.h>
17958 /* Override any gcc2 internal prototype to avoid an error. */
17963 /* We use char because int might match the return type of a gcc2
17964 builtin and then its argument prototype would still apply. */
17966 /* The GNU C library defines this for functions which it implements
17967 to always fail with ENOSYS. Some functions are actually named
17968 something starting with __ and the normal name is an alias. */
17969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17972 char (*f) () = $ac_func;
17981 return f != $ac_func;
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17988 (eval $ac_link) 2>conftest.er1
17990 grep -v '^ *+' conftest.er1 >conftest.err
17992 cat conftest.err >&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } &&
17995 { ac_try='test -z "$ac_c_werror_flag"
17996 || test ! -s conftest.err'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest$ac_exeext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 eval "$as_ac_var=yes"
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 eval "$as_ac_var=no"
18015 rm -f conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18020 if test `eval echo '${'$as_ac_var'}'` = yes; then
18021 cat >>confdefs.h <<_ACEOF
18022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18038 if eval "test \"\${$as_ac_var+set}\" = set"; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18049 #define $ac_func innocuous_$ac_func
18051 /* System header to define __stub macros and hopefully few prototypes,
18052 which can conflict with char $ac_func (); below.
18053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054 <limits.h> exists even on freestanding compilers. */
18057 # include <limits.h>
18059 # include <assert.h>
18064 /* Override any gcc2 internal prototype to avoid an error. */
18069 /* We use char because int might match the return type of a gcc2
18070 builtin and then its argument prototype would still apply. */
18072 /* The GNU C library defines this for functions which it implements
18073 to always fail with ENOSYS. Some functions are actually named
18074 something starting with __ and the normal name is an alias. */
18075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18078 char (*f) () = $ac_func;
18087 return f != $ac_func;
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try='test -s conftest$ac_exeext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18114 eval "$as_ac_var=yes"
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18119 eval "$as_ac_var=no"
18121 rm -f conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18126 if test `eval echo '${'$as_ac_var'}'` = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18136 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18137 if test $ol_enable_ipv6 = yes ; then
18138 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18139 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18140 { (exit 1); exit 1; }; }
18142 elif test $ol_enable_ipv6 != no ; then
18143 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18144 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18145 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18156 # include <netinet/in.h>
18157 # ifdef INET6_ADDRSTRLEN
18158 __has_inet6_addrstrlen__;
18162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18163 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18164 ol_cv_inet6_addrstrlen=yes
18166 ol_cv_inet6_addrstrlen=no
18171 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18172 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18175 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18176 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18177 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 cat >conftest.$ac_ext <<_ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18188 #include <sys/types.h>
18189 #include <sys/socket.h>
18195 struct sockaddr_storage ss;
18201 rm -f conftest.$ac_objext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18203 (eval $ac_compile) 2>conftest.er1
18205 grep -v '^ *+' conftest.er1 >conftest.err
18207 cat conftest.err >&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -z "$ac_c_werror_flag"
18211 || test ! -s conftest.err'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ol_cv_struct_sockaddr_storage=yes
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ol_cv_struct_sockaddr_storage=no
18230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18232 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18233 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18235 if test $ol_cv_inet6_addrstrlen = yes &&
18236 test $ol_cv_struct_sockaddr_storage = yes ; then
18238 elif test $ol_enable_ipv6 = yes &&
18239 test $ol_cv_inet6_addrstrlen = no ; then
18240 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18241 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18242 { (exit 1); exit 1; }; }
18243 elif test $ol_enable_ipv6 = yes &&
18244 test $ol_cv_struct_sockaddr_storage = no ; then
18245 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18246 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18247 { (exit 1); exit 1; }; }
18251 if test $ol_enable_local != no ; then
18253 for ac_header in sys/un.h
18255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18257 echo "$as_me:$LINENO: checking for $ac_header" >&5
18258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18265 # Is the header compilable?
18266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18268 cat >conftest.$ac_ext <<_ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 $ac_includes_default
18275 #include <$ac_header>
18277 rm -f conftest.$ac_objext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18279 (eval $ac_compile) 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag"
18287 || test ! -s conftest.err'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_header_compiler=yes
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_header_compiler=no
18306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18308 echo "${ECHO_T}$ac_header_compiler" >&6
18310 # Is the header present?
18311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18319 #include <$ac_header>
18321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18324 grep -v '^ *+' conftest.er1 >conftest.err
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } >/dev/null; then
18329 if test -s conftest.err; then
18330 ac_cpp_err=$ac_c_preproc_warn_flag
18331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18338 if test -z "$ac_cpp_err"; then
18339 ac_header_preproc=yes
18341 echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_header_preproc=no
18346 rm -f conftest.err conftest.$ac_ext
18347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18348 echo "${ECHO_T}$ac_header_preproc" >&6
18350 # So? What about this header?
18351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18357 ac_header_preproc=yes
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18374 ## --------------------------------------------- ##
18375 ## Report this to <http://www.openldap.org/its/> ##
18376 ## --------------------------------------------- ##
18379 sed "s/^/$as_me: WARNING: /" >&2
18382 echo "$as_me:$LINENO: checking for $ac_header" >&5
18383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
18387 eval "$as_ac_Header=\$ac_header_preproc"
18389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18394 cat >>confdefs.h <<_ACEOF
18395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18403 if test $ol_enable_local = auto ; then
18404 ol_enable_local=$ac_cv_header_sys_un_h
18405 elif test $ac_cv_header_sys_un_h = no ; then
18406 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18407 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18408 { (exit 1); exit 1; }; }
18413 if test $ol_with_tls = yes ; then
18418 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18420 for ac_header in openssl/ssl.h
18422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18424 echo "$as_me:$LINENO: checking for $ac_header" >&5
18425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18432 # Is the header compilable?
18433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18435 cat >conftest.$ac_ext <<_ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 $ac_includes_default
18442 #include <$ac_header>
18444 rm -f conftest.$ac_objext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18446 (eval $ac_compile) 2>conftest.er1
18448 grep -v '^ *+' conftest.er1 >conftest.err
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
18453 { ac_try='test -z "$ac_c_werror_flag"
18454 || test ! -s conftest.err'
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest.$ac_objext'
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_header_compiler=yes
18468 echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18471 ac_header_compiler=no
18473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18475 echo "${ECHO_T}$ac_header_compiler" >&6
18477 # Is the header present?
18478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486 #include <$ac_header>
18488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18491 grep -v '^ *+' conftest.er1 >conftest.err
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } >/dev/null; then
18496 if test -s conftest.err; then
18497 ac_cpp_err=$ac_c_preproc_warn_flag
18498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18505 if test -z "$ac_cpp_err"; then
18506 ac_header_preproc=yes
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_header_preproc=no
18513 rm -f conftest.err conftest.$ac_ext
18514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18515 echo "${ECHO_T}$ac_header_preproc" >&6
18517 # So? What about this header?
18518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18524 ac_header_preproc=yes
18527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18541 ## --------------------------------------------- ##
18542 ## Report this to <http://www.openldap.org/its/> ##
18543 ## --------------------------------------------- ##
18546 sed "s/^/$as_me: WARNING: /" >&2
18549 echo "$as_me:$LINENO: checking for $ac_header" >&5
18550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18554 eval "$as_ac_Header=\$ac_header_preproc"
18556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18561 cat >>confdefs.h <<_ACEOF
18562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18570 if test $ac_cv_header_openssl_ssl_h = yes ; then
18571 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18572 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18573 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 ac_check_lib_save_LIBS=$LIBS
18577 LIBS="-lssl -lcrypto $LIBS"
18578 cat >conftest.$ac_ext <<_ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18585 /* Override any gcc2 internal prototype to avoid an error. */
18589 /* We use char because int might match the return type of a gcc2
18590 builtin and then its argument prototype would still apply. */
18591 char SSL_library_init ();
18595 SSL_library_init ();
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18602 (eval $ac_link) 2>conftest.er1
18604 grep -v '^ *+' conftest.er1 >conftest.err
18606 cat conftest.err >&5
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); } &&
18609 { ac_try='test -z "$ac_c_werror_flag"
18610 || test ! -s conftest.err'
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try='test -s conftest$ac_exeext'
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; }; then
18622 ac_cv_lib_ssl_SSL_library_init=yes
18624 echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18627 ac_cv_lib_ssl_SSL_library_init=no
18629 rm -f conftest.err conftest.$ac_objext \
18630 conftest$ac_exeext conftest.$ac_ext
18631 LIBS=$ac_check_lib_save_LIBS
18633 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18634 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18635 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18643 if test $have_openssl = no ; then
18644 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18645 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18646 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 ac_check_lib_save_LIBS=$LIBS
18650 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18658 /* Override any gcc2 internal prototype to avoid an error. */
18662 /* We use char because int might match the return type of a gcc2
18663 builtin and then its argument prototype would still apply. */
18664 char ssl3_accept ();
18673 rm -f conftest.$ac_objext conftest$ac_exeext
18674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18675 (eval $ac_link) 2>conftest.er1
18677 grep -v '^ *+' conftest.er1 >conftest.err
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -z "$ac_c_werror_flag"
18683 || test ! -s conftest.err'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest$ac_exeext'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 ac_cv_lib_ssl_ssl3_accept=yes
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 ac_cv_lib_ssl_ssl3_accept=no
18702 rm -f conftest.err conftest.$ac_objext \
18703 conftest$ac_exeext conftest.$ac_ext
18704 LIBS=$ac_check_lib_save_LIBS
18706 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18707 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18708 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18717 if test $have_openssl = yes ; then
18718 ol_with_tls=openssl
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE_OPENSSL 1
18727 if test $need_rsaref = yes; then
18729 cat >>confdefs.h <<\_ACEOF
18730 #define HAVE_RSAREF 1
18734 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18736 TLS_LIBS="-lssl -lcrypto"
18739 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18740 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18741 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 cat >conftest.$ac_ext <<_ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h. */
18752 #ifdef HAVE_OPENSSL_SSL_H
18753 #include <openssl/ssl.h>
18756 /* Require 0.9.7d+ */
18757 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18758 char *__ssl_compat = "0.9.7d";
18762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18763 $EGREP "__ssl_compat" >/dev/null 2>&1; then
18764 ol_cv_ssl_crl_compat=yes
18766 ol_cv_ssl_crl_compat=no
18771 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18772 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18774 if test $ol_cv_ssl_crl_compat = yes ; then
18776 cat >>confdefs.h <<\_ACEOF
18777 #define HAVE_OPENSSL_CRL 1
18785 if test $ol_link_tls = no ; then
18786 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18788 for ac_header in gnutls/gnutls.h
18790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18792 echo "$as_me:$LINENO: checking for $ac_header" >&5
18793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18800 # Is the header compilable?
18801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 $ac_includes_default
18810 #include <$ac_header>
18812 rm -f conftest.$ac_objext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18814 (eval $ac_compile) 2>conftest.er1
18816 grep -v '^ *+' conftest.er1 >conftest.err
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
18821 { ac_try='test -z "$ac_c_werror_flag"
18822 || test ! -s conftest.err'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; } &&
18828 { ac_try='test -s conftest.$ac_objext'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18834 ac_header_compiler=yes
18836 echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18839 ac_header_compiler=no
18841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18843 echo "${ECHO_T}$ac_header_compiler" >&6
18845 # Is the header present?
18846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18848 cat >conftest.$ac_ext <<_ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18854 #include <$ac_header>
18856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } >/dev/null; then
18864 if test -s conftest.err; then
18865 ac_cpp_err=$ac_c_preproc_warn_flag
18866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18873 if test -z "$ac_cpp_err"; then
18874 ac_header_preproc=yes
18876 echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18879 ac_header_preproc=no
18881 rm -f conftest.err conftest.$ac_ext
18882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18883 echo "${ECHO_T}$ac_header_preproc" >&6
18885 # So? What about this header?
18886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18892 ac_header_preproc=yes
18895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18909 ## --------------------------------------------- ##
18910 ## Report this to <http://www.openldap.org/its/> ##
18911 ## --------------------------------------------- ##
18914 sed "s/^/$as_me: WARNING: /" >&2
18917 echo "$as_me:$LINENO: checking for $ac_header" >&5
18918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 eval "$as_ac_Header=\$ac_header_preproc"
18924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18929 cat >>confdefs.h <<_ACEOF
18930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18938 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
18939 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
18940 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
18941 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 ac_check_lib_save_LIBS=$LIBS
18945 LIBS="-lgnutls $LIBS"
18946 cat >conftest.$ac_ext <<_ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18953 /* Override any gcc2 internal prototype to avoid an error. */
18957 /* We use char because int might match the return type of a gcc2
18958 builtin and then its argument prototype would still apply. */
18959 char gnutls_init ();
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970 (eval $ac_link) 2>conftest.er1
18972 grep -v '^ *+' conftest.er1 >conftest.err
18974 cat conftest.err >&5
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } &&
18977 { ac_try='test -z "$ac_c_werror_flag"
18978 || test ! -s conftest.err'
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; } &&
18984 { ac_try='test -s conftest$ac_exeext'
18985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986 (eval $ac_try) 2>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
18990 ac_cv_lib_gnutls_gnutls_init=yes
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18995 ac_cv_lib_gnutls_gnutls_init=no
18997 rm -f conftest.err conftest.$ac_objext \
18998 conftest$ac_exeext conftest.$ac_ext
18999 LIBS=$ac_check_lib_save_LIBS
19001 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19002 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19003 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19010 if test $have_gnutls = yes ; then
19014 TLS_LIBS="-lgnutls"
19017 cat >>confdefs.h <<\_ACEOF
19018 #define HAVE_GNUTLS 1
19027 if test $ol_link_tls = yes ; then
19029 cat >>confdefs.h <<\_ACEOF
19034 elif test $ol_with_tls = auto ; then
19035 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19036 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19038 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19039 elif test $ol_with_tls != no ; then
19040 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19041 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19042 { (exit 1); exit 1; }; }
19044 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19045 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19048 if test $ol_enable_lmpasswd != no; then
19049 if test $ol_link_tls != yes ; then
19050 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19051 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19052 { (exit 1); exit 1; }; }
19056 cat >>confdefs.h <<\_ACEOF
19057 #define SLAPD_LMHASH 1
19064 case $ol_with_threads in auto | yes | nt)
19067 echo "$as_me:$LINENO: checking for _beginthread" >&5
19068 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19069 if test "${ac_cv_func__beginthread+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19080 #define _beginthread innocuous__beginthread
19082 /* System header to define __stub macros and hopefully few prototypes,
19083 which can conflict with char _beginthread (); below.
19084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19085 <limits.h> exists even on freestanding compilers. */
19088 # include <limits.h>
19090 # include <assert.h>
19093 #undef _beginthread
19095 /* Override any gcc2 internal prototype to avoid an error. */
19100 /* We use char because int might match the return type of a gcc2
19101 builtin and then its argument prototype would still apply. */
19102 char _beginthread ();
19103 /* The GNU C library defines this for functions which it implements
19104 to always fail with ENOSYS. Some functions are actually named
19105 something starting with __ and the normal name is an alias. */
19106 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19109 char (*f) () = _beginthread;
19118 return f != _beginthread;
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19125 (eval $ac_link) 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag"
19133 || test ! -s conftest.err'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest$ac_exeext'
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_cv_func__beginthread=yes
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_cv_func__beginthread=no
19152 rm -f conftest.err conftest.$ac_objext \
19153 conftest$ac_exeext conftest.$ac_ext
19155 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19156 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19159 if test $ac_cv_func__beginthread = yes ; then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_NT_THREADS 1
19165 ol_cv_nt_threads=yes
19169 if test "$ol_cv_nt_threads" = yes ; then
19171 ol_with_threads=found
19172 ol_with_yielding_select=yes
19175 cat >>confdefs.h <<\_ACEOF
19176 #define HAVE_NT_SERVICE_MANAGER 1
19180 cat >>confdefs.h <<\_ACEOF
19181 #define HAVE_NT_EVENT_LOG 1
19186 if test $ol_with_threads = nt ; then
19187 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19188 echo "$as_me: error: could not locate NT Threads" >&2;}
19189 { (exit 1); exit 1; }; }
19194 case $ol_with_threads in auto | yes | posix)
19197 for ac_header in pthread.h
19199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19201 echo "$as_me:$LINENO: checking for $ac_header" >&5
19202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19209 # Is the header compilable?
19210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19212 cat >conftest.$ac_ext <<_ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 $ac_includes_default
19219 #include <$ac_header>
19221 rm -f conftest.$ac_objext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223 (eval $ac_compile) 2>conftest.er1
19225 grep -v '^ *+' conftest.er1 >conftest.err
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest.$ac_objext'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 ac_header_compiler=yes
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 ac_header_compiler=no
19250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19252 echo "${ECHO_T}$ac_header_compiler" >&6
19254 # Is the header present?
19255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 #include <$ac_header>
19265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19268 grep -v '^ *+' conftest.er1 >conftest.err
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } >/dev/null; then
19273 if test -s conftest.err; then
19274 ac_cpp_err=$ac_c_preproc_warn_flag
19275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19282 if test -z "$ac_cpp_err"; then
19283 ac_header_preproc=yes
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ac_header_preproc=no
19290 rm -f conftest.err conftest.$ac_ext
19291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19292 echo "${ECHO_T}$ac_header_preproc" >&6
19294 # So? What about this header?
19295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19301 ac_header_preproc=yes
19304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19318 ## --------------------------------------------- ##
19319 ## Report this to <http://www.openldap.org/its/> ##
19320 ## --------------------------------------------- ##
19323 sed "s/^/$as_me: WARNING: /" >&2
19326 echo "$as_me:$LINENO: checking for $ac_header" >&5
19327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 eval "$as_ac_Header=\$ac_header_preproc"
19333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19338 cat >>confdefs.h <<_ACEOF
19339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19347 if test $ac_cv_header_pthread_h = yes ; then
19348 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19349 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19350 if test "${ol_cv_pthread_version+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19354 cat >conftest.$ac_ext <<_ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19361 # include <pthread.h>
19367 int i = PTHREAD_CREATE_JOINABLE;
19373 rm -f conftest.$ac_objext
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375 (eval $ac_compile) 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } &&
19382 { ac_try='test -z "$ac_c_werror_flag"
19383 || test ! -s conftest.err'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19396 cat >conftest.$ac_ext <<_ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19402 #include <pthread.h>
19405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19406 $EGREP "pthread_detach" >/dev/null 2>&1; then
19407 ol_cv_pthread_version=10
19409 ol_cv_pthread_version=8
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19418 cat >conftest.$ac_ext <<_ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19425 # include <pthread.h>
19426 # ifdef PTHREAD_CREATE_UNDETACHED
19431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19432 $EGREP "draft7" >/dev/null 2>&1; then
19433 ol_cv_pthread_version=7
19436 cat >conftest.$ac_ext <<_ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 #include <pthread.h>
19445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19446 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19447 ol_cv_pthread_version=6
19450 cat >conftest.$ac_ext <<_ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19457 # include <pthread.h>
19458 #ifdef PTHREAD_MUTEX_INITIALIZER
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464 $EGREP "draft5" >/dev/null 2>&1; then
19465 ol_cv_pthread_version=5
19467 ol_cv_pthread_version=4
19478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19481 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19482 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19485 if test $ol_cv_pthread_version != 0 ; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_PTHREADS $ol_cv_pthread_version
19492 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19493 echo "$as_me: error: unknown pthread version" >&2;}
19494 { (exit 1); exit 1; }; }
19497 # consider threads found
19498 ol_with_threads=found
19501 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19502 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19503 if test "${ol_cv_header_linux_threads+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 #include <pthread.h>
19514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19515 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19516 ol_cv_header_linux_threads=yes
19518 ol_cv_header_linux_threads=no
19524 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19525 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19526 if test $ol_cv_header_linux_threads = yes; then
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE_LINUX_THREADS 1
19535 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19536 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19537 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 cat >conftest.$ac_ext <<_ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19546 #include <pthread.h>
19547 #ifdef _POSIX_THREAD_IS_GNU_PTH
19552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19553 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19554 ol_cv_header_gnu_pth_pthread_h=yes
19556 ol_cv_header_gnu_pth_pthread_h=no
19562 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19563 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19566 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19568 for ac_header in sched.h
19570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19572 echo "$as_me:$LINENO: checking for $ac_header" >&5
19573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19580 # Is the header compilable?
19581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 $ac_includes_default
19590 #include <$ac_header>
19592 rm -f conftest.$ac_objext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_header_compiler=yes
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19619 ac_header_compiler=no
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19623 echo "${ECHO_T}$ac_header_compiler" >&6
19625 # Is the header present?
19626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19628 cat >conftest.$ac_ext <<_ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h. */
19634 #include <$ac_header>
19636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } >/dev/null; then
19644 if test -s conftest.err; then
19645 ac_cpp_err=$ac_c_preproc_warn_flag
19646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19653 if test -z "$ac_cpp_err"; then
19654 ac_header_preproc=yes
19656 echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_header_preproc=no
19661 rm -f conftest.err conftest.$ac_ext
19662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19663 echo "${ECHO_T}$ac_header_preproc" >&6
19665 # So? What about this header?
19666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19672 ac_header_preproc=yes
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19689 ## --------------------------------------------- ##
19690 ## Report this to <http://www.openldap.org/its/> ##
19691 ## --------------------------------------------- ##
19694 sed "s/^/$as_me: WARNING: /" >&2
19697 echo "$as_me:$LINENO: checking for $ac_header" >&5
19698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 eval "$as_ac_Header=\$ac_header_preproc"
19704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19709 cat >>confdefs.h <<_ACEOF
19710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19720 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19721 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19722 if test "${ol_cv_pthread_create+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 if test "$cross_compiling" = yes; then
19727 cat >conftest.$ac_ext <<_ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19734 /* pthread test headers */
19735 #include <pthread.h>
19736 #if HAVE_PTHREADS < 7
19740 #define NULL (void*)0
19743 static void *task(p)
19746 return (void *) (p == NULL);
19753 /* pthread test function */
19754 #ifndef PTHREAD_CREATE_DETACHED
19755 #define PTHREAD_CREATE_DETACHED 1
19759 int detach = PTHREAD_CREATE_DETACHED;
19761 #if HAVE_PTHREADS > 4
19762 /* Final pthreads */
19763 pthread_attr_t attr;
19765 status = pthread_attr_init(&attr);
19766 if( status ) return status;
19768 #if HAVE_PTHREADS < 7
19769 status = pthread_attr_setdetachstate(&attr, &detach);
19770 if( status < 0 ) status = errno;
19772 status = pthread_attr_setdetachstate(&attr, detach);
19774 if( status ) return status;
19775 status = pthread_create( &t, &attr, task, NULL );
19776 #if HAVE_PTHREADS < 7
19777 if( status < 0 ) status = errno;
19779 if( status ) return status;
19781 /* Draft 4 pthreads */
19782 status = pthread_create( &t, pthread_attr_default, task, NULL );
19783 if( status ) return errno;
19785 /* give thread a chance to complete */
19786 /* it should remain joinable and hence detachable */
19789 status = pthread_detach( &t );
19790 if( status ) return errno;
19793 #ifdef HAVE_LINUX_THREADS
19794 pthread_kill_other_threads_np();
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19805 (eval $ac_link) 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest$ac_exeext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ol_cv_pthread_create=yes
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ol_cv_pthread_create=no
19832 rm -f conftest.err conftest.$ac_objext \
19833 conftest$ac_exeext conftest.$ac_ext
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19842 /* pthread test headers */
19843 #include <pthread.h>
19844 #if HAVE_PTHREADS < 7
19848 #define NULL (void*)0
19851 static void *task(p)
19854 return (void *) (p == NULL);
19858 int main(argc, argv)
19863 /* pthread test function */
19864 #ifndef PTHREAD_CREATE_DETACHED
19865 #define PTHREAD_CREATE_DETACHED 1
19869 int detach = PTHREAD_CREATE_DETACHED;
19871 #if HAVE_PTHREADS > 4
19872 /* Final pthreads */
19873 pthread_attr_t attr;
19875 status = pthread_attr_init(&attr);
19876 if( status ) return status;
19878 #if HAVE_PTHREADS < 7
19879 status = pthread_attr_setdetachstate(&attr, &detach);
19880 if( status < 0 ) status = errno;
19882 status = pthread_attr_setdetachstate(&attr, detach);
19884 if( status ) return status;
19885 status = pthread_create( &t, &attr, task, NULL );
19886 #if HAVE_PTHREADS < 7
19887 if( status < 0 ) status = errno;
19889 if( status ) return status;
19891 /* Draft 4 pthreads */
19892 status = pthread_create( &t, pthread_attr_default, task, NULL );
19893 if( status ) return errno;
19895 /* give thread a chance to complete */
19896 /* it should remain joinable and hence detachable */
19899 status = pthread_detach( &t );
19900 if( status ) return errno;
19903 #ifdef HAVE_LINUX_THREADS
19904 pthread_kill_other_threads_np();
19912 rm -f conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914 (eval $ac_link) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ol_cv_pthread_create=yes
19925 echo "$as_me: program exited with status $ac_status" >&5
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ( exit $ac_status )
19930 ol_cv_pthread_create=no
19932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19935 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19936 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19938 if test $ol_cv_pthread_create != no ; then
19939 ol_link_threads=posix
19940 ol_link_pthreads=""
19943 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19944 if test "$ol_link_threads" = no ; then
19946 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19947 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19948 if test "${ol_cv_pthread_kthread+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 LIBS="-kthread $LIBS"
19956 if test "$cross_compiling" = yes; then
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19964 /* pthread test headers */
19965 #include <pthread.h>
19966 #if HAVE_PTHREADS < 7
19970 #define NULL (void*)0
19973 static void *task(p)
19976 return (void *) (p == NULL);
19983 /* pthread test function */
19984 #ifndef PTHREAD_CREATE_DETACHED
19985 #define PTHREAD_CREATE_DETACHED 1
19989 int detach = PTHREAD_CREATE_DETACHED;
19991 #if HAVE_PTHREADS > 4
19992 /* Final pthreads */
19993 pthread_attr_t attr;
19995 status = pthread_attr_init(&attr);
19996 if( status ) return status;
19998 #if HAVE_PTHREADS < 7
19999 status = pthread_attr_setdetachstate(&attr, &detach);
20000 if( status < 0 ) status = errno;
20002 status = pthread_attr_setdetachstate(&attr, detach);
20004 if( status ) return status;
20005 status = pthread_create( &t, &attr, task, NULL );
20006 #if HAVE_PTHREADS < 7
20007 if( status < 0 ) status = errno;
20009 if( status ) return status;
20011 /* Draft 4 pthreads */
20012 status = pthread_create( &t, pthread_attr_default, task, NULL );
20013 if( status ) return errno;
20015 /* give thread a chance to complete */
20016 /* it should remain joinable and hence detachable */
20019 status = pthread_detach( &t );
20020 if( status ) return errno;
20023 #ifdef HAVE_LINUX_THREADS
20024 pthread_kill_other_threads_np();
20033 rm -f conftest.$ac_objext conftest$ac_exeext
20034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20035 (eval $ac_link) 2>conftest.er1
20037 grep -v '^ *+' conftest.er1 >conftest.err
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_c_werror_flag"
20043 || test ! -s conftest.err'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest$ac_exeext'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ol_cv_pthread_kthread=yes
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 ol_cv_pthread_kthread=no
20062 rm -f conftest.err conftest.$ac_objext \
20063 conftest$ac_exeext conftest.$ac_ext
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20072 /* pthread test headers */
20073 #include <pthread.h>
20074 #if HAVE_PTHREADS < 7
20078 #define NULL (void*)0
20081 static void *task(p)
20084 return (void *) (p == NULL);
20088 int main(argc, argv)
20093 /* pthread test function */
20094 #ifndef PTHREAD_CREATE_DETACHED
20095 #define PTHREAD_CREATE_DETACHED 1
20099 int detach = PTHREAD_CREATE_DETACHED;
20101 #if HAVE_PTHREADS > 4
20102 /* Final pthreads */
20103 pthread_attr_t attr;
20105 status = pthread_attr_init(&attr);
20106 if( status ) return status;
20108 #if HAVE_PTHREADS < 7
20109 status = pthread_attr_setdetachstate(&attr, &detach);
20110 if( status < 0 ) status = errno;
20112 status = pthread_attr_setdetachstate(&attr, detach);
20114 if( status ) return status;
20115 status = pthread_create( &t, &attr, task, NULL );
20116 #if HAVE_PTHREADS < 7
20117 if( status < 0 ) status = errno;
20119 if( status ) return status;
20121 /* Draft 4 pthreads */
20122 status = pthread_create( &t, pthread_attr_default, task, NULL );
20123 if( status ) return errno;
20125 /* give thread a chance to complete */
20126 /* it should remain joinable and hence detachable */
20129 status = pthread_detach( &t );
20130 if( status ) return errno;
20133 #ifdef HAVE_LINUX_THREADS
20134 pthread_kill_other_threads_np();
20142 rm -f conftest$ac_exeext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144 (eval $ac_link) 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 ol_cv_pthread_kthread=yes
20155 echo "$as_me: program exited with status $ac_status" >&5
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ( exit $ac_status )
20160 ol_cv_pthread_kthread=no
20162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20169 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20170 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20172 if test $ol_cv_pthread_kthread = yes ; then
20173 ol_link_pthreads="-kthread"
20174 ol_link_threads=posix
20178 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20179 if test "$ol_link_threads" = no ; then
20181 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20182 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20183 if test "${ol_cv_pthread_pthread+set}" = set; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 LIBS="-pthread $LIBS"
20191 if test "$cross_compiling" = yes; then
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20199 /* pthread test headers */
20200 #include <pthread.h>
20201 #if HAVE_PTHREADS < 7
20205 #define NULL (void*)0
20208 static void *task(p)
20211 return (void *) (p == NULL);
20218 /* pthread test function */
20219 #ifndef PTHREAD_CREATE_DETACHED
20220 #define PTHREAD_CREATE_DETACHED 1
20224 int detach = PTHREAD_CREATE_DETACHED;
20226 #if HAVE_PTHREADS > 4
20227 /* Final pthreads */
20228 pthread_attr_t attr;
20230 status = pthread_attr_init(&attr);
20231 if( status ) return status;
20233 #if HAVE_PTHREADS < 7
20234 status = pthread_attr_setdetachstate(&attr, &detach);
20235 if( status < 0 ) status = errno;
20237 status = pthread_attr_setdetachstate(&attr, detach);
20239 if( status ) return status;
20240 status = pthread_create( &t, &attr, task, NULL );
20241 #if HAVE_PTHREADS < 7
20242 if( status < 0 ) status = errno;
20244 if( status ) return status;
20246 /* Draft 4 pthreads */
20247 status = pthread_create( &t, pthread_attr_default, task, NULL );
20248 if( status ) return errno;
20250 /* give thread a chance to complete */
20251 /* it should remain joinable and hence detachable */
20254 status = pthread_detach( &t );
20255 if( status ) return errno;
20258 #ifdef HAVE_LINUX_THREADS
20259 pthread_kill_other_threads_np();
20268 rm -f conftest.$ac_objext conftest$ac_exeext
20269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270 (eval $ac_link) 2>conftest.er1
20272 grep -v '^ *+' conftest.er1 >conftest.err
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } &&
20277 { ac_try='test -z "$ac_c_werror_flag"
20278 || test ! -s conftest.err'
20279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280 (eval $ac_try) 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; } &&
20284 { ac_try='test -s conftest$ac_exeext'
20285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286 (eval $ac_try) 2>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; }; then
20290 ol_cv_pthread_pthread=yes
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 ol_cv_pthread_pthread=no
20297 rm -f conftest.err conftest.$ac_objext \
20298 conftest$ac_exeext conftest.$ac_ext
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20307 /* pthread test headers */
20308 #include <pthread.h>
20309 #if HAVE_PTHREADS < 7
20313 #define NULL (void*)0
20316 static void *task(p)
20319 return (void *) (p == NULL);
20323 int main(argc, argv)
20328 /* pthread test function */
20329 #ifndef PTHREAD_CREATE_DETACHED
20330 #define PTHREAD_CREATE_DETACHED 1
20334 int detach = PTHREAD_CREATE_DETACHED;
20336 #if HAVE_PTHREADS > 4
20337 /* Final pthreads */
20338 pthread_attr_t attr;
20340 status = pthread_attr_init(&attr);
20341 if( status ) return status;
20343 #if HAVE_PTHREADS < 7
20344 status = pthread_attr_setdetachstate(&attr, &detach);
20345 if( status < 0 ) status = errno;
20347 status = pthread_attr_setdetachstate(&attr, detach);
20349 if( status ) return status;
20350 status = pthread_create( &t, &attr, task, NULL );
20351 #if HAVE_PTHREADS < 7
20352 if( status < 0 ) status = errno;
20354 if( status ) return status;
20356 /* Draft 4 pthreads */
20357 status = pthread_create( &t, pthread_attr_default, task, NULL );
20358 if( status ) return errno;
20360 /* give thread a chance to complete */
20361 /* it should remain joinable and hence detachable */
20364 status = pthread_detach( &t );
20365 if( status ) return errno;
20368 #ifdef HAVE_LINUX_THREADS
20369 pthread_kill_other_threads_np();
20377 rm -f conftest$ac_exeext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20379 (eval $ac_link) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 ol_cv_pthread_pthread=yes
20390 echo "$as_me: program exited with status $ac_status" >&5
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ( exit $ac_status )
20395 ol_cv_pthread_pthread=no
20397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20404 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20405 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20407 if test $ol_cv_pthread_pthread = yes ; then
20408 ol_link_pthreads="-pthread"
20409 ol_link_threads=posix
20413 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20414 if test "$ol_link_threads" = no ; then
20416 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20417 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20418 if test "${ol_cv_pthread_pthreads+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 LIBS="-pthreads $LIBS"
20426 if test "$cross_compiling" = yes; then
20427 cat >conftest.$ac_ext <<_ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20434 /* pthread test headers */
20435 #include <pthread.h>
20436 #if HAVE_PTHREADS < 7
20440 #define NULL (void*)0
20443 static void *task(p)
20446 return (void *) (p == NULL);
20453 /* pthread test function */
20454 #ifndef PTHREAD_CREATE_DETACHED
20455 #define PTHREAD_CREATE_DETACHED 1
20459 int detach = PTHREAD_CREATE_DETACHED;
20461 #if HAVE_PTHREADS > 4
20462 /* Final pthreads */
20463 pthread_attr_t attr;
20465 status = pthread_attr_init(&attr);
20466 if( status ) return status;
20468 #if HAVE_PTHREADS < 7
20469 status = pthread_attr_setdetachstate(&attr, &detach);
20470 if( status < 0 ) status = errno;
20472 status = pthread_attr_setdetachstate(&attr, detach);
20474 if( status ) return status;
20475 status = pthread_create( &t, &attr, task, NULL );
20476 #if HAVE_PTHREADS < 7
20477 if( status < 0 ) status = errno;
20479 if( status ) return status;
20481 /* Draft 4 pthreads */
20482 status = pthread_create( &t, pthread_attr_default, task, NULL );
20483 if( status ) return errno;
20485 /* give thread a chance to complete */
20486 /* it should remain joinable and hence detachable */
20489 status = pthread_detach( &t );
20490 if( status ) return errno;
20493 #ifdef HAVE_LINUX_THREADS
20494 pthread_kill_other_threads_np();
20503 rm -f conftest.$ac_objext conftest$ac_exeext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20505 (eval $ac_link) 2>conftest.er1
20507 grep -v '^ *+' conftest.er1 >conftest.err
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
20512 { ac_try='test -z "$ac_c_werror_flag"
20513 || test ! -s conftest.err'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest$ac_exeext'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20525 ol_cv_pthread_pthreads=yes
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20530 ol_cv_pthread_pthreads=no
20532 rm -f conftest.err conftest.$ac_objext \
20533 conftest$ac_exeext conftest.$ac_ext
20535 cat >conftest.$ac_ext <<_ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20542 /* pthread test headers */
20543 #include <pthread.h>
20544 #if HAVE_PTHREADS < 7
20548 #define NULL (void*)0
20551 static void *task(p)
20554 return (void *) (p == NULL);
20558 int main(argc, argv)
20563 /* pthread test function */
20564 #ifndef PTHREAD_CREATE_DETACHED
20565 #define PTHREAD_CREATE_DETACHED 1
20569 int detach = PTHREAD_CREATE_DETACHED;
20571 #if HAVE_PTHREADS > 4
20572 /* Final pthreads */
20573 pthread_attr_t attr;
20575 status = pthread_attr_init(&attr);
20576 if( status ) return status;
20578 #if HAVE_PTHREADS < 7
20579 status = pthread_attr_setdetachstate(&attr, &detach);
20580 if( status < 0 ) status = errno;
20582 status = pthread_attr_setdetachstate(&attr, detach);
20584 if( status ) return status;
20585 status = pthread_create( &t, &attr, task, NULL );
20586 #if HAVE_PTHREADS < 7
20587 if( status < 0 ) status = errno;
20589 if( status ) return status;
20591 /* Draft 4 pthreads */
20592 status = pthread_create( &t, pthread_attr_default, task, NULL );
20593 if( status ) return errno;
20595 /* give thread a chance to complete */
20596 /* it should remain joinable and hence detachable */
20599 status = pthread_detach( &t );
20600 if( status ) return errno;
20603 #ifdef HAVE_LINUX_THREADS
20604 pthread_kill_other_threads_np();
20612 rm -f conftest$ac_exeext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20614 (eval $ac_link) 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ol_cv_pthread_pthreads=yes
20625 echo "$as_me: program exited with status $ac_status" >&5
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ( exit $ac_status )
20630 ol_cv_pthread_pthreads=no
20632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20639 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20640 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20642 if test $ol_cv_pthread_pthreads = yes ; then
20643 ol_link_pthreads="-pthreads"
20644 ol_link_threads=posix
20648 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20649 if test "$ol_link_threads" = no ; then
20651 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20652 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20653 if test "${ol_cv_pthread_mthreads+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 LIBS="-mthreads $LIBS"
20661 if test "$cross_compiling" = yes; then
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 /* pthread test headers */
20670 #include <pthread.h>
20671 #if HAVE_PTHREADS < 7
20675 #define NULL (void*)0
20678 static void *task(p)
20681 return (void *) (p == NULL);
20688 /* pthread test function */
20689 #ifndef PTHREAD_CREATE_DETACHED
20690 #define PTHREAD_CREATE_DETACHED 1
20694 int detach = PTHREAD_CREATE_DETACHED;
20696 #if HAVE_PTHREADS > 4
20697 /* Final pthreads */
20698 pthread_attr_t attr;
20700 status = pthread_attr_init(&attr);
20701 if( status ) return status;
20703 #if HAVE_PTHREADS < 7
20704 status = pthread_attr_setdetachstate(&attr, &detach);
20705 if( status < 0 ) status = errno;
20707 status = pthread_attr_setdetachstate(&attr, detach);
20709 if( status ) return status;
20710 status = pthread_create( &t, &attr, task, NULL );
20711 #if HAVE_PTHREADS < 7
20712 if( status < 0 ) status = errno;
20714 if( status ) return status;
20716 /* Draft 4 pthreads */
20717 status = pthread_create( &t, pthread_attr_default, task, NULL );
20718 if( status ) return errno;
20720 /* give thread a chance to complete */
20721 /* it should remain joinable and hence detachable */
20724 status = pthread_detach( &t );
20725 if( status ) return errno;
20728 #ifdef HAVE_LINUX_THREADS
20729 pthread_kill_other_threads_np();
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 ol_cv_pthread_mthreads=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ol_cv_pthread_mthreads=no
20767 rm -f conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 /* pthread test headers */
20778 #include <pthread.h>
20779 #if HAVE_PTHREADS < 7
20783 #define NULL (void*)0
20786 static void *task(p)
20789 return (void *) (p == NULL);
20793 int main(argc, argv)
20798 /* pthread test function */
20799 #ifndef PTHREAD_CREATE_DETACHED
20800 #define PTHREAD_CREATE_DETACHED 1
20804 int detach = PTHREAD_CREATE_DETACHED;
20806 #if HAVE_PTHREADS > 4
20807 /* Final pthreads */
20808 pthread_attr_t attr;
20810 status = pthread_attr_init(&attr);
20811 if( status ) return status;
20813 #if HAVE_PTHREADS < 7
20814 status = pthread_attr_setdetachstate(&attr, &detach);
20815 if( status < 0 ) status = errno;
20817 status = pthread_attr_setdetachstate(&attr, detach);
20819 if( status ) return status;
20820 status = pthread_create( &t, &attr, task, NULL );
20821 #if HAVE_PTHREADS < 7
20822 if( status < 0 ) status = errno;
20824 if( status ) return status;
20826 /* Draft 4 pthreads */
20827 status = pthread_create( &t, pthread_attr_default, task, NULL );
20828 if( status ) return errno;
20830 /* give thread a chance to complete */
20831 /* it should remain joinable and hence detachable */
20834 status = pthread_detach( &t );
20835 if( status ) return errno;
20838 #ifdef HAVE_LINUX_THREADS
20839 pthread_kill_other_threads_np();
20847 rm -f conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ol_cv_pthread_mthreads=yes
20860 echo "$as_me: program exited with status $ac_status" >&5
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ( exit $ac_status )
20865 ol_cv_pthread_mthreads=no
20867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20874 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20875 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20877 if test $ol_cv_pthread_mthreads = yes ; then
20878 ol_link_pthreads="-mthreads"
20879 ol_link_threads=posix
20883 # Pthread try link: -thread (ol_cv_pthread_thread)
20884 if test "$ol_link_threads" = no ; then
20886 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20887 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20888 if test "${ol_cv_pthread_thread+set}" = set; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20894 LIBS="-thread $LIBS"
20896 if test "$cross_compiling" = yes; then
20897 cat >conftest.$ac_ext <<_ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20904 /* pthread test headers */
20905 #include <pthread.h>
20906 #if HAVE_PTHREADS < 7
20910 #define NULL (void*)0
20913 static void *task(p)
20916 return (void *) (p == NULL);
20923 /* pthread test function */
20924 #ifndef PTHREAD_CREATE_DETACHED
20925 #define PTHREAD_CREATE_DETACHED 1
20929 int detach = PTHREAD_CREATE_DETACHED;
20931 #if HAVE_PTHREADS > 4
20932 /* Final pthreads */
20933 pthread_attr_t attr;
20935 status = pthread_attr_init(&attr);
20936 if( status ) return status;
20938 #if HAVE_PTHREADS < 7
20939 status = pthread_attr_setdetachstate(&attr, &detach);
20940 if( status < 0 ) status = errno;
20942 status = pthread_attr_setdetachstate(&attr, detach);
20944 if( status ) return status;
20945 status = pthread_create( &t, &attr, task, NULL );
20946 #if HAVE_PTHREADS < 7
20947 if( status < 0 ) status = errno;
20949 if( status ) return status;
20951 /* Draft 4 pthreads */
20952 status = pthread_create( &t, pthread_attr_default, task, NULL );
20953 if( status ) return errno;
20955 /* give thread a chance to complete */
20956 /* it should remain joinable and hence detachable */
20959 status = pthread_detach( &t );
20960 if( status ) return errno;
20963 #ifdef HAVE_LINUX_THREADS
20964 pthread_kill_other_threads_np();
20973 rm -f conftest.$ac_objext conftest$ac_exeext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20975 (eval $ac_link) 2>conftest.er1
20977 grep -v '^ *+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -z "$ac_c_werror_flag"
20983 || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest$ac_exeext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ol_cv_pthread_thread=yes
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 ol_cv_pthread_thread=no
21002 rm -f conftest.err conftest.$ac_objext \
21003 conftest$ac_exeext conftest.$ac_ext
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21012 /* pthread test headers */
21013 #include <pthread.h>
21014 #if HAVE_PTHREADS < 7
21018 #define NULL (void*)0
21021 static void *task(p)
21024 return (void *) (p == NULL);
21028 int main(argc, argv)
21033 /* pthread test function */
21034 #ifndef PTHREAD_CREATE_DETACHED
21035 #define PTHREAD_CREATE_DETACHED 1
21039 int detach = PTHREAD_CREATE_DETACHED;
21041 #if HAVE_PTHREADS > 4
21042 /* Final pthreads */
21043 pthread_attr_t attr;
21045 status = pthread_attr_init(&attr);
21046 if( status ) return status;
21048 #if HAVE_PTHREADS < 7
21049 status = pthread_attr_setdetachstate(&attr, &detach);
21050 if( status < 0 ) status = errno;
21052 status = pthread_attr_setdetachstate(&attr, detach);
21054 if( status ) return status;
21055 status = pthread_create( &t, &attr, task, NULL );
21056 #if HAVE_PTHREADS < 7
21057 if( status < 0 ) status = errno;
21059 if( status ) return status;
21061 /* Draft 4 pthreads */
21062 status = pthread_create( &t, pthread_attr_default, task, NULL );
21063 if( status ) return errno;
21065 /* give thread a chance to complete */
21066 /* it should remain joinable and hence detachable */
21069 status = pthread_detach( &t );
21070 if( status ) return errno;
21073 #ifdef HAVE_LINUX_THREADS
21074 pthread_kill_other_threads_np();
21082 rm -f conftest$ac_exeext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084 (eval $ac_link) 2>&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; }; then
21093 ol_cv_pthread_thread=yes
21095 echo "$as_me: program exited with status $ac_status" >&5
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ( exit $ac_status )
21100 ol_cv_pthread_thread=no
21102 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21109 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21110 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21112 if test $ol_cv_pthread_thread = yes ; then
21113 ol_link_pthreads="-thread"
21114 ol_link_threads=posix
21119 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21120 if test "$ol_link_threads" = no ; then
21121 # try -lpthread -lmach -lexc -lc_r
21122 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21123 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21124 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21132 if test "$cross_compiling" = yes; then
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21140 /* pthread test headers */
21141 #include <pthread.h>
21142 #if HAVE_PTHREADS < 7
21146 #define NULL (void*)0
21149 static void *task(p)
21152 return (void *) (p == NULL);
21159 /* pthread test function */
21160 #ifndef PTHREAD_CREATE_DETACHED
21161 #define PTHREAD_CREATE_DETACHED 1
21165 int detach = PTHREAD_CREATE_DETACHED;
21167 #if HAVE_PTHREADS > 4
21168 /* Final pthreads */
21169 pthread_attr_t attr;
21171 status = pthread_attr_init(&attr);
21172 if( status ) return status;
21174 #if HAVE_PTHREADS < 7
21175 status = pthread_attr_setdetachstate(&attr, &detach);
21176 if( status < 0 ) status = errno;
21178 status = pthread_attr_setdetachstate(&attr, detach);
21180 if( status ) return status;
21181 status = pthread_create( &t, &attr, task, NULL );
21182 #if HAVE_PTHREADS < 7
21183 if( status < 0 ) status = errno;
21185 if( status ) return status;
21187 /* Draft 4 pthreads */
21188 status = pthread_create( &t, pthread_attr_default, task, NULL );
21189 if( status ) return errno;
21191 /* give thread a chance to complete */
21192 /* it should remain joinable and hence detachable */
21195 status = pthread_detach( &t );
21196 if( status ) return errno;
21199 #ifdef HAVE_LINUX_THREADS
21200 pthread_kill_other_threads_np();
21209 rm -f conftest.$ac_objext conftest$ac_exeext
21210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211 (eval $ac_link) 2>conftest.er1
21213 grep -v '^ *+' conftest.er1 >conftest.err
21215 cat conftest.err >&5
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); } &&
21218 { ac_try='test -z "$ac_c_werror_flag"
21219 || test ! -s conftest.err'
21220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221 (eval $ac_try) 2>&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; } &&
21225 { ac_try='test -s conftest$ac_exeext'
21226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227 (eval $ac_try) 2>&5
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); }; }; then
21231 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21238 rm -f conftest.err conftest.$ac_objext \
21239 conftest$ac_exeext conftest.$ac_ext
21241 cat >conftest.$ac_ext <<_ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21248 /* pthread test headers */
21249 #include <pthread.h>
21250 #if HAVE_PTHREADS < 7
21254 #define NULL (void*)0
21257 static void *task(p)
21260 return (void *) (p == NULL);
21264 int main(argc, argv)
21269 /* pthread test function */
21270 #ifndef PTHREAD_CREATE_DETACHED
21271 #define PTHREAD_CREATE_DETACHED 1
21275 int detach = PTHREAD_CREATE_DETACHED;
21277 #if HAVE_PTHREADS > 4
21278 /* Final pthreads */
21279 pthread_attr_t attr;
21281 status = pthread_attr_init(&attr);
21282 if( status ) return status;
21284 #if HAVE_PTHREADS < 7
21285 status = pthread_attr_setdetachstate(&attr, &detach);
21286 if( status < 0 ) status = errno;
21288 status = pthread_attr_setdetachstate(&attr, detach);
21290 if( status ) return status;
21291 status = pthread_create( &t, &attr, task, NULL );
21292 #if HAVE_PTHREADS < 7
21293 if( status < 0 ) status = errno;
21295 if( status ) return status;
21297 /* Draft 4 pthreads */
21298 status = pthread_create( &t, pthread_attr_default, task, NULL );
21299 if( status ) return errno;
21301 /* give thread a chance to complete */
21302 /* it should remain joinable and hence detachable */
21305 status = pthread_detach( &t );
21306 if( status ) return errno;
21309 #ifdef HAVE_LINUX_THREADS
21310 pthread_kill_other_threads_np();
21318 rm -f conftest$ac_exeext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21320 (eval $ac_link) 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; }; then
21329 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21331 echo "$as_me: program exited with status $ac_status" >&5
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21335 ( exit $ac_status )
21336 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21345 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21346 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21348 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21349 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21350 ol_link_threads=posix
21354 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21355 if test "$ol_link_threads" = no ; then
21356 # try -lpthread -lmach -lexc
21357 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21358 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21359 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 LIBS="-lpthread -lmach -lexc $LIBS"
21367 if test "$cross_compiling" = yes; then
21368 cat >conftest.$ac_ext <<_ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h. */
21375 /* pthread test headers */
21376 #include <pthread.h>
21377 #if HAVE_PTHREADS < 7
21381 #define NULL (void*)0
21384 static void *task(p)
21387 return (void *) (p == NULL);
21394 /* pthread test function */
21395 #ifndef PTHREAD_CREATE_DETACHED
21396 #define PTHREAD_CREATE_DETACHED 1
21400 int detach = PTHREAD_CREATE_DETACHED;
21402 #if HAVE_PTHREADS > 4
21403 /* Final pthreads */
21404 pthread_attr_t attr;
21406 status = pthread_attr_init(&attr);
21407 if( status ) return status;
21409 #if HAVE_PTHREADS < 7
21410 status = pthread_attr_setdetachstate(&attr, &detach);
21411 if( status < 0 ) status = errno;
21413 status = pthread_attr_setdetachstate(&attr, detach);
21415 if( status ) return status;
21416 status = pthread_create( &t, &attr, task, NULL );
21417 #if HAVE_PTHREADS < 7
21418 if( status < 0 ) status = errno;
21420 if( status ) return status;
21422 /* Draft 4 pthreads */
21423 status = pthread_create( &t, pthread_attr_default, task, NULL );
21424 if( status ) return errno;
21426 /* give thread a chance to complete */
21427 /* it should remain joinable and hence detachable */
21430 status = pthread_detach( &t );
21431 if( status ) return errno;
21434 #ifdef HAVE_LINUX_THREADS
21435 pthread_kill_other_threads_np();
21444 rm -f conftest.$ac_objext conftest$ac_exeext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446 (eval $ac_link) 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } &&
21453 { ac_try='test -z "$ac_c_werror_flag"
21454 || test ! -s conftest.err'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; } &&
21460 { ac_try='test -s conftest$ac_exeext'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; }; then
21466 ol_cv_pthread_lpthread_lmach_lexc=yes
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ol_cv_pthread_lpthread_lmach_lexc=no
21473 rm -f conftest.err conftest.$ac_objext \
21474 conftest$ac_exeext conftest.$ac_ext
21476 cat >conftest.$ac_ext <<_ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21483 /* pthread test headers */
21484 #include <pthread.h>
21485 #if HAVE_PTHREADS < 7
21489 #define NULL (void*)0
21492 static void *task(p)
21495 return (void *) (p == NULL);
21499 int main(argc, argv)
21504 /* pthread test function */
21505 #ifndef PTHREAD_CREATE_DETACHED
21506 #define PTHREAD_CREATE_DETACHED 1
21510 int detach = PTHREAD_CREATE_DETACHED;
21512 #if HAVE_PTHREADS > 4
21513 /* Final pthreads */
21514 pthread_attr_t attr;
21516 status = pthread_attr_init(&attr);
21517 if( status ) return status;
21519 #if HAVE_PTHREADS < 7
21520 status = pthread_attr_setdetachstate(&attr, &detach);
21521 if( status < 0 ) status = errno;
21523 status = pthread_attr_setdetachstate(&attr, detach);
21525 if( status ) return status;
21526 status = pthread_create( &t, &attr, task, NULL );
21527 #if HAVE_PTHREADS < 7
21528 if( status < 0 ) status = errno;
21530 if( status ) return status;
21532 /* Draft 4 pthreads */
21533 status = pthread_create( &t, pthread_attr_default, task, NULL );
21534 if( status ) return errno;
21536 /* give thread a chance to complete */
21537 /* it should remain joinable and hence detachable */
21540 status = pthread_detach( &t );
21541 if( status ) return errno;
21544 #ifdef HAVE_LINUX_THREADS
21545 pthread_kill_other_threads_np();
21553 rm -f conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ol_cv_pthread_lpthread_lmach_lexc=yes
21566 echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ( exit $ac_status )
21571 ol_cv_pthread_lpthread_lmach_lexc=no
21573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21580 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21581 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21583 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21584 ol_link_pthreads="-lpthread -lmach -lexc"
21585 ol_link_threads=posix
21590 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21591 if test "$ol_link_threads" = no ; then
21592 # try -lpthread -Wl,-woff,85
21593 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21594 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21595 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21596 echo $ECHO_N "(cached) $ECHO_C" >&6
21601 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21603 if test "$cross_compiling" = yes; then
21604 cat >conftest.$ac_ext <<_ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21611 /* pthread test headers */
21612 #include <pthread.h>
21613 #if HAVE_PTHREADS < 7
21617 #define NULL (void*)0
21620 static void *task(p)
21623 return (void *) (p == NULL);
21630 /* pthread test function */
21631 #ifndef PTHREAD_CREATE_DETACHED
21632 #define PTHREAD_CREATE_DETACHED 1
21636 int detach = PTHREAD_CREATE_DETACHED;
21638 #if HAVE_PTHREADS > 4
21639 /* Final pthreads */
21640 pthread_attr_t attr;
21642 status = pthread_attr_init(&attr);
21643 if( status ) return status;
21645 #if HAVE_PTHREADS < 7
21646 status = pthread_attr_setdetachstate(&attr, &detach);
21647 if( status < 0 ) status = errno;
21649 status = pthread_attr_setdetachstate(&attr, detach);
21651 if( status ) return status;
21652 status = pthread_create( &t, &attr, task, NULL );
21653 #if HAVE_PTHREADS < 7
21654 if( status < 0 ) status = errno;
21656 if( status ) return status;
21658 /* Draft 4 pthreads */
21659 status = pthread_create( &t, pthread_attr_default, task, NULL );
21660 if( status ) return errno;
21662 /* give thread a chance to complete */
21663 /* it should remain joinable and hence detachable */
21666 status = pthread_detach( &t );
21667 if( status ) return errno;
21670 #ifdef HAVE_LINUX_THREADS
21671 pthread_kill_other_threads_np();
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682 (eval $ac_link) 2>conftest.er1
21684 grep -v '^ *+' conftest.er1 >conftest.err
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
21689 { ac_try='test -z "$ac_c_werror_flag"
21690 || test ! -s conftest.err'
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; } &&
21696 { ac_try='test -s conftest$ac_exeext'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }; then
21702 ol_cv_pthread_lib_lpthread_woff=yes
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ol_cv_pthread_lib_lpthread_woff=no
21709 rm -f conftest.err conftest.$ac_objext \
21710 conftest$ac_exeext conftest.$ac_ext
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21719 /* pthread test headers */
21720 #include <pthread.h>
21721 #if HAVE_PTHREADS < 7
21725 #define NULL (void*)0
21728 static void *task(p)
21731 return (void *) (p == NULL);
21735 int main(argc, argv)
21740 /* pthread test function */
21741 #ifndef PTHREAD_CREATE_DETACHED
21742 #define PTHREAD_CREATE_DETACHED 1
21746 int detach = PTHREAD_CREATE_DETACHED;
21748 #if HAVE_PTHREADS > 4
21749 /* Final pthreads */
21750 pthread_attr_t attr;
21752 status = pthread_attr_init(&attr);
21753 if( status ) return status;
21755 #if HAVE_PTHREADS < 7
21756 status = pthread_attr_setdetachstate(&attr, &detach);
21757 if( status < 0 ) status = errno;
21759 status = pthread_attr_setdetachstate(&attr, detach);
21761 if( status ) return status;
21762 status = pthread_create( &t, &attr, task, NULL );
21763 #if HAVE_PTHREADS < 7
21764 if( status < 0 ) status = errno;
21766 if( status ) return status;
21768 /* Draft 4 pthreads */
21769 status = pthread_create( &t, pthread_attr_default, task, NULL );
21770 if( status ) return errno;
21772 /* give thread a chance to complete */
21773 /* it should remain joinable and hence detachable */
21776 status = pthread_detach( &t );
21777 if( status ) return errno;
21780 #ifdef HAVE_LINUX_THREADS
21781 pthread_kill_other_threads_np();
21789 rm -f conftest$ac_exeext
21790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21791 (eval $ac_link) 2>&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796 (eval $ac_try) 2>&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; }; then
21800 ol_cv_pthread_lib_lpthread_woff=yes
21802 echo "$as_me: program exited with status $ac_status" >&5
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ( exit $ac_status )
21807 ol_cv_pthread_lib_lpthread_woff=no
21809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21816 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21817 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21819 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21820 ol_link_pthreads="-lpthread -Wl,-woff,85"
21821 ol_link_threads=posix
21826 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21827 if test "$ol_link_threads" = no ; then
21829 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21830 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21831 if test "${ol_cv_pthread_lpthread+set}" = set; then
21832 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 LIBS="-lpthread $LIBS"
21839 if test "$cross_compiling" = yes; then
21840 cat >conftest.$ac_ext <<_ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21847 /* pthread test headers */
21848 #include <pthread.h>
21849 #if HAVE_PTHREADS < 7
21853 #define NULL (void*)0
21856 static void *task(p)
21859 return (void *) (p == NULL);
21866 /* pthread test function */
21867 #ifndef PTHREAD_CREATE_DETACHED
21868 #define PTHREAD_CREATE_DETACHED 1
21872 int detach = PTHREAD_CREATE_DETACHED;
21874 #if HAVE_PTHREADS > 4
21875 /* Final pthreads */
21876 pthread_attr_t attr;
21878 status = pthread_attr_init(&attr);
21879 if( status ) return status;
21881 #if HAVE_PTHREADS < 7
21882 status = pthread_attr_setdetachstate(&attr, &detach);
21883 if( status < 0 ) status = errno;
21885 status = pthread_attr_setdetachstate(&attr, detach);
21887 if( status ) return status;
21888 status = pthread_create( &t, &attr, task, NULL );
21889 #if HAVE_PTHREADS < 7
21890 if( status < 0 ) status = errno;
21892 if( status ) return status;
21894 /* Draft 4 pthreads */
21895 status = pthread_create( &t, pthread_attr_default, task, NULL );
21896 if( status ) return errno;
21898 /* give thread a chance to complete */
21899 /* it should remain joinable and hence detachable */
21902 status = pthread_detach( &t );
21903 if( status ) return errno;
21906 #ifdef HAVE_LINUX_THREADS
21907 pthread_kill_other_threads_np();
21916 rm -f conftest.$ac_objext conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918 (eval $ac_link) 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } &&
21925 { ac_try='test -z "$ac_c_werror_flag"
21926 || test ! -s conftest.err'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try='test -s conftest$ac_exeext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21938 ol_cv_pthread_lpthread=yes
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ol_cv_pthread_lpthread=no
21945 rm -f conftest.err conftest.$ac_objext \
21946 conftest$ac_exeext conftest.$ac_ext
21948 cat >conftest.$ac_ext <<_ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21955 /* pthread test headers */
21956 #include <pthread.h>
21957 #if HAVE_PTHREADS < 7
21961 #define NULL (void*)0
21964 static void *task(p)
21967 return (void *) (p == NULL);
21971 int main(argc, argv)
21976 /* pthread test function */
21977 #ifndef PTHREAD_CREATE_DETACHED
21978 #define PTHREAD_CREATE_DETACHED 1
21982 int detach = PTHREAD_CREATE_DETACHED;
21984 #if HAVE_PTHREADS > 4
21985 /* Final pthreads */
21986 pthread_attr_t attr;
21988 status = pthread_attr_init(&attr);
21989 if( status ) return status;
21991 #if HAVE_PTHREADS < 7
21992 status = pthread_attr_setdetachstate(&attr, &detach);
21993 if( status < 0 ) status = errno;
21995 status = pthread_attr_setdetachstate(&attr, detach);
21997 if( status ) return status;
21998 status = pthread_create( &t, &attr, task, NULL );
21999 #if HAVE_PTHREADS < 7
22000 if( status < 0 ) status = errno;
22002 if( status ) return status;
22004 /* Draft 4 pthreads */
22005 status = pthread_create( &t, pthread_attr_default, task, NULL );
22006 if( status ) return errno;
22008 /* give thread a chance to complete */
22009 /* it should remain joinable and hence detachable */
22012 status = pthread_detach( &t );
22013 if( status ) return errno;
22016 #ifdef HAVE_LINUX_THREADS
22017 pthread_kill_other_threads_np();
22025 rm -f conftest$ac_exeext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027 (eval $ac_link) 2>&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036 ol_cv_pthread_lpthread=yes
22038 echo "$as_me: program exited with status $ac_status" >&5
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 ( exit $ac_status )
22043 ol_cv_pthread_lpthread=no
22045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22052 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22053 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22055 if test $ol_cv_pthread_lpthread = yes ; then
22056 ol_link_pthreads="-lpthread"
22057 ol_link_threads=posix
22061 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22062 if test "$ol_link_threads" = no ; then
22064 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22065 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22066 if test "${ol_cv_pthread_lc_r+set}" = set; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 if test "$cross_compiling" = yes; then
22075 cat >conftest.$ac_ext <<_ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22082 /* pthread test headers */
22083 #include <pthread.h>
22084 #if HAVE_PTHREADS < 7
22088 #define NULL (void*)0
22091 static void *task(p)
22094 return (void *) (p == NULL);
22101 /* pthread test function */
22102 #ifndef PTHREAD_CREATE_DETACHED
22103 #define PTHREAD_CREATE_DETACHED 1
22107 int detach = PTHREAD_CREATE_DETACHED;
22109 #if HAVE_PTHREADS > 4
22110 /* Final pthreads */
22111 pthread_attr_t attr;
22113 status = pthread_attr_init(&attr);
22114 if( status ) return status;
22116 #if HAVE_PTHREADS < 7
22117 status = pthread_attr_setdetachstate(&attr, &detach);
22118 if( status < 0 ) status = errno;
22120 status = pthread_attr_setdetachstate(&attr, detach);
22122 if( status ) return status;
22123 status = pthread_create( &t, &attr, task, NULL );
22124 #if HAVE_PTHREADS < 7
22125 if( status < 0 ) status = errno;
22127 if( status ) return status;
22129 /* Draft 4 pthreads */
22130 status = pthread_create( &t, pthread_attr_default, task, NULL );
22131 if( status ) return errno;
22133 /* give thread a chance to complete */
22134 /* it should remain joinable and hence detachable */
22137 status = pthread_detach( &t );
22138 if( status ) return errno;
22141 #ifdef HAVE_LINUX_THREADS
22142 pthread_kill_other_threads_np();
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153 (eval $ac_link) 2>conftest.er1
22155 grep -v '^ *+' conftest.er1 >conftest.err
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -z "$ac_c_werror_flag"
22161 || test ! -s conftest.err'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; } &&
22167 { ac_try='test -s conftest$ac_exeext'
22168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169 (eval $ac_try) 2>&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 ol_cv_pthread_lc_r=yes
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 ol_cv_pthread_lc_r=no
22180 rm -f conftest.err conftest.$ac_objext \
22181 conftest$ac_exeext conftest.$ac_ext
22183 cat >conftest.$ac_ext <<_ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22190 /* pthread test headers */
22191 #include <pthread.h>
22192 #if HAVE_PTHREADS < 7
22196 #define NULL (void*)0
22199 static void *task(p)
22202 return (void *) (p == NULL);
22206 int main(argc, argv)
22211 /* pthread test function */
22212 #ifndef PTHREAD_CREATE_DETACHED
22213 #define PTHREAD_CREATE_DETACHED 1
22217 int detach = PTHREAD_CREATE_DETACHED;
22219 #if HAVE_PTHREADS > 4
22220 /* Final pthreads */
22221 pthread_attr_t attr;
22223 status = pthread_attr_init(&attr);
22224 if( status ) return status;
22226 #if HAVE_PTHREADS < 7
22227 status = pthread_attr_setdetachstate(&attr, &detach);
22228 if( status < 0 ) status = errno;
22230 status = pthread_attr_setdetachstate(&attr, detach);
22232 if( status ) return status;
22233 status = pthread_create( &t, &attr, task, NULL );
22234 #if HAVE_PTHREADS < 7
22235 if( status < 0 ) status = errno;
22237 if( status ) return status;
22239 /* Draft 4 pthreads */
22240 status = pthread_create( &t, pthread_attr_default, task, NULL );
22241 if( status ) return errno;
22243 /* give thread a chance to complete */
22244 /* it should remain joinable and hence detachable */
22247 status = pthread_detach( &t );
22248 if( status ) return errno;
22251 #ifdef HAVE_LINUX_THREADS
22252 pthread_kill_other_threads_np();
22260 rm -f conftest$ac_exeext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22262 (eval $ac_link) 2>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22267 (eval $ac_try) 2>&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }; }; then
22271 ol_cv_pthread_lc_r=yes
22273 echo "$as_me: program exited with status $ac_status" >&5
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 ( exit $ac_status )
22278 ol_cv_pthread_lc_r=no
22280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22287 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22288 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22290 if test $ol_cv_pthread_lc_r = yes ; then
22291 ol_link_pthreads="-lc_r"
22292 ol_link_threads=posix
22297 # Pthread try link: -threads (ol_cv_pthread_threads)
22298 if test "$ol_link_threads" = no ; then
22300 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22301 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22302 if test "${ol_cv_pthread_threads+set}" = set; then
22303 echo $ECHO_N "(cached) $ECHO_C" >&6
22308 LIBS="-threads $LIBS"
22310 if test "$cross_compiling" = yes; then
22311 cat >conftest.$ac_ext <<_ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22318 /* pthread test headers */
22319 #include <pthread.h>
22320 #if HAVE_PTHREADS < 7
22324 #define NULL (void*)0
22327 static void *task(p)
22330 return (void *) (p == NULL);
22337 /* pthread test function */
22338 #ifndef PTHREAD_CREATE_DETACHED
22339 #define PTHREAD_CREATE_DETACHED 1
22343 int detach = PTHREAD_CREATE_DETACHED;
22345 #if HAVE_PTHREADS > 4
22346 /* Final pthreads */
22347 pthread_attr_t attr;
22349 status = pthread_attr_init(&attr);
22350 if( status ) return status;
22352 #if HAVE_PTHREADS < 7
22353 status = pthread_attr_setdetachstate(&attr, &detach);
22354 if( status < 0 ) status = errno;
22356 status = pthread_attr_setdetachstate(&attr, detach);
22358 if( status ) return status;
22359 status = pthread_create( &t, &attr, task, NULL );
22360 #if HAVE_PTHREADS < 7
22361 if( status < 0 ) status = errno;
22363 if( status ) return status;
22365 /* Draft 4 pthreads */
22366 status = pthread_create( &t, pthread_attr_default, task, NULL );
22367 if( status ) return errno;
22369 /* give thread a chance to complete */
22370 /* it should remain joinable and hence detachable */
22373 status = pthread_detach( &t );
22374 if( status ) return errno;
22377 #ifdef HAVE_LINUX_THREADS
22378 pthread_kill_other_threads_np();
22387 rm -f conftest.$ac_objext conftest$ac_exeext
22388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22389 (eval $ac_link) 2>conftest.er1
22391 grep -v '^ *+' conftest.er1 >conftest.err
22393 cat conftest.err >&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } &&
22396 { ac_try='test -z "$ac_c_werror_flag"
22397 || test ! -s conftest.err'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; } &&
22403 { ac_try='test -s conftest$ac_exeext'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }; then
22409 ol_cv_pthread_threads=yes
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22414 ol_cv_pthread_threads=no
22416 rm -f conftest.err conftest.$ac_objext \
22417 conftest$ac_exeext conftest.$ac_ext
22419 cat >conftest.$ac_ext <<_ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22426 /* pthread test headers */
22427 #include <pthread.h>
22428 #if HAVE_PTHREADS < 7
22432 #define NULL (void*)0
22435 static void *task(p)
22438 return (void *) (p == NULL);
22442 int main(argc, argv)
22447 /* pthread test function */
22448 #ifndef PTHREAD_CREATE_DETACHED
22449 #define PTHREAD_CREATE_DETACHED 1
22453 int detach = PTHREAD_CREATE_DETACHED;
22455 #if HAVE_PTHREADS > 4
22456 /* Final pthreads */
22457 pthread_attr_t attr;
22459 status = pthread_attr_init(&attr);
22460 if( status ) return status;
22462 #if HAVE_PTHREADS < 7
22463 status = pthread_attr_setdetachstate(&attr, &detach);
22464 if( status < 0 ) status = errno;
22466 status = pthread_attr_setdetachstate(&attr, detach);
22468 if( status ) return status;
22469 status = pthread_create( &t, &attr, task, NULL );
22470 #if HAVE_PTHREADS < 7
22471 if( status < 0 ) status = errno;
22473 if( status ) return status;
22475 /* Draft 4 pthreads */
22476 status = pthread_create( &t, pthread_attr_default, task, NULL );
22477 if( status ) return errno;
22479 /* give thread a chance to complete */
22480 /* it should remain joinable and hence detachable */
22483 status = pthread_detach( &t );
22484 if( status ) return errno;
22487 #ifdef HAVE_LINUX_THREADS
22488 pthread_kill_other_threads_np();
22496 rm -f conftest$ac_exeext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498 (eval $ac_link) 2>&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503 (eval $ac_try) 2>&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
22507 ol_cv_pthread_threads=yes
22509 echo "$as_me: program exited with status $ac_status" >&5
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ( exit $ac_status )
22514 ol_cv_pthread_threads=no
22516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22523 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22524 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22526 if test $ol_cv_pthread_threads = yes ; then
22527 ol_link_pthreads="-threads"
22528 ol_link_threads=posix
22533 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22534 if test "$ol_link_threads" = no ; then
22535 # try -lpthreads -lmach -lexc -lc_r
22536 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22537 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22538 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22544 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22546 if test "$cross_compiling" = yes; then
22547 cat >conftest.$ac_ext <<_ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h. */
22554 /* pthread test headers */
22555 #include <pthread.h>
22556 #if HAVE_PTHREADS < 7
22560 #define NULL (void*)0
22563 static void *task(p)
22566 return (void *) (p == NULL);
22573 /* pthread test function */
22574 #ifndef PTHREAD_CREATE_DETACHED
22575 #define PTHREAD_CREATE_DETACHED 1
22579 int detach = PTHREAD_CREATE_DETACHED;
22581 #if HAVE_PTHREADS > 4
22582 /* Final pthreads */
22583 pthread_attr_t attr;
22585 status = pthread_attr_init(&attr);
22586 if( status ) return status;
22588 #if HAVE_PTHREADS < 7
22589 status = pthread_attr_setdetachstate(&attr, &detach);
22590 if( status < 0 ) status = errno;
22592 status = pthread_attr_setdetachstate(&attr, detach);
22594 if( status ) return status;
22595 status = pthread_create( &t, &attr, task, NULL );
22596 #if HAVE_PTHREADS < 7
22597 if( status < 0 ) status = errno;
22599 if( status ) return status;
22601 /* Draft 4 pthreads */
22602 status = pthread_create( &t, pthread_attr_default, task, NULL );
22603 if( status ) return errno;
22605 /* give thread a chance to complete */
22606 /* it should remain joinable and hence detachable */
22609 status = pthread_detach( &t );
22610 if( status ) return errno;
22613 #ifdef HAVE_LINUX_THREADS
22614 pthread_kill_other_threads_np();
22623 rm -f conftest.$ac_objext conftest$ac_exeext
22624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22625 (eval $ac_link) 2>conftest.er1
22627 grep -v '^ *+' conftest.er1 >conftest.err
22629 cat conftest.err >&5
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } &&
22632 { ac_try='test -z "$ac_c_werror_flag"
22633 || test ! -s conftest.err'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; } &&
22639 { ac_try='test -s conftest$ac_exeext'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22645 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22650 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22652 rm -f conftest.err conftest.$ac_objext \
22653 conftest$ac_exeext conftest.$ac_ext
22655 cat >conftest.$ac_ext <<_ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h. */
22662 /* pthread test headers */
22663 #include <pthread.h>
22664 #if HAVE_PTHREADS < 7
22668 #define NULL (void*)0
22671 static void *task(p)
22674 return (void *) (p == NULL);
22678 int main(argc, argv)
22683 /* pthread test function */
22684 #ifndef PTHREAD_CREATE_DETACHED
22685 #define PTHREAD_CREATE_DETACHED 1
22689 int detach = PTHREAD_CREATE_DETACHED;
22691 #if HAVE_PTHREADS > 4
22692 /* Final pthreads */
22693 pthread_attr_t attr;
22695 status = pthread_attr_init(&attr);
22696 if( status ) return status;
22698 #if HAVE_PTHREADS < 7
22699 status = pthread_attr_setdetachstate(&attr, &detach);
22700 if( status < 0 ) status = errno;
22702 status = pthread_attr_setdetachstate(&attr, detach);
22704 if( status ) return status;
22705 status = pthread_create( &t, &attr, task, NULL );
22706 #if HAVE_PTHREADS < 7
22707 if( status < 0 ) status = errno;
22709 if( status ) return status;
22711 /* Draft 4 pthreads */
22712 status = pthread_create( &t, pthread_attr_default, task, NULL );
22713 if( status ) return errno;
22715 /* give thread a chance to complete */
22716 /* it should remain joinable and hence detachable */
22719 status = pthread_detach( &t );
22720 if( status ) return errno;
22723 #ifdef HAVE_LINUX_THREADS
22724 pthread_kill_other_threads_np();
22732 rm -f conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734 (eval $ac_link) 2>&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; }; then
22743 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22745 echo "$as_me: program exited with status $ac_status" >&5
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22749 ( exit $ac_status )
22750 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22759 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22760 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22762 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22763 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22764 ol_link_threads=posix
22768 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22769 if test "$ol_link_threads" = no ; then
22770 # try -lpthreads -lmach -lexc
22771 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22772 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22773 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 LIBS="-lpthreads -lmach -lexc $LIBS"
22781 if test "$cross_compiling" = yes; then
22782 cat >conftest.$ac_ext <<_ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h. */
22789 /* pthread test headers */
22790 #include <pthread.h>
22791 #if HAVE_PTHREADS < 7
22795 #define NULL (void*)0
22798 static void *task(p)
22801 return (void *) (p == NULL);
22808 /* pthread test function */
22809 #ifndef PTHREAD_CREATE_DETACHED
22810 #define PTHREAD_CREATE_DETACHED 1
22814 int detach = PTHREAD_CREATE_DETACHED;
22816 #if HAVE_PTHREADS > 4
22817 /* Final pthreads */
22818 pthread_attr_t attr;
22820 status = pthread_attr_init(&attr);
22821 if( status ) return status;
22823 #if HAVE_PTHREADS < 7
22824 status = pthread_attr_setdetachstate(&attr, &detach);
22825 if( status < 0 ) status = errno;
22827 status = pthread_attr_setdetachstate(&attr, detach);
22829 if( status ) return status;
22830 status = pthread_create( &t, &attr, task, NULL );
22831 #if HAVE_PTHREADS < 7
22832 if( status < 0 ) status = errno;
22834 if( status ) return status;
22836 /* Draft 4 pthreads */
22837 status = pthread_create( &t, pthread_attr_default, task, NULL );
22838 if( status ) return errno;
22840 /* give thread a chance to complete */
22841 /* it should remain joinable and hence detachable */
22844 status = pthread_detach( &t );
22845 if( status ) return errno;
22848 #ifdef HAVE_LINUX_THREADS
22849 pthread_kill_other_threads_np();
22858 rm -f conftest.$ac_objext conftest$ac_exeext
22859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22860 (eval $ac_link) 2>conftest.er1
22862 grep -v '^ *+' conftest.er1 >conftest.err
22864 cat conftest.err >&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } &&
22867 { ac_try='test -z "$ac_c_werror_flag"
22868 || test ! -s conftest.err'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; } &&
22874 { ac_try='test -s conftest$ac_exeext'
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; }; then
22880 ol_cv_pthread_lpthreads_lmach_lexc=yes
22882 echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22885 ol_cv_pthread_lpthreads_lmach_lexc=no
22887 rm -f conftest.err conftest.$ac_objext \
22888 conftest$ac_exeext conftest.$ac_ext
22890 cat >conftest.$ac_ext <<_ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22897 /* pthread test headers */
22898 #include <pthread.h>
22899 #if HAVE_PTHREADS < 7
22903 #define NULL (void*)0
22906 static void *task(p)
22909 return (void *) (p == NULL);
22913 int main(argc, argv)
22918 /* pthread test function */
22919 #ifndef PTHREAD_CREATE_DETACHED
22920 #define PTHREAD_CREATE_DETACHED 1
22924 int detach = PTHREAD_CREATE_DETACHED;
22926 #if HAVE_PTHREADS > 4
22927 /* Final pthreads */
22928 pthread_attr_t attr;
22930 status = pthread_attr_init(&attr);
22931 if( status ) return status;
22933 #if HAVE_PTHREADS < 7
22934 status = pthread_attr_setdetachstate(&attr, &detach);
22935 if( status < 0 ) status = errno;
22937 status = pthread_attr_setdetachstate(&attr, detach);
22939 if( status ) return status;
22940 status = pthread_create( &t, &attr, task, NULL );
22941 #if HAVE_PTHREADS < 7
22942 if( status < 0 ) status = errno;
22944 if( status ) return status;
22946 /* Draft 4 pthreads */
22947 status = pthread_create( &t, pthread_attr_default, task, NULL );
22948 if( status ) return errno;
22950 /* give thread a chance to complete */
22951 /* it should remain joinable and hence detachable */
22954 status = pthread_detach( &t );
22955 if( status ) return errno;
22958 #ifdef HAVE_LINUX_THREADS
22959 pthread_kill_other_threads_np();
22967 rm -f conftest$ac_exeext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22969 (eval $ac_link) 2>&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22974 (eval $ac_try) 2>&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); }; }; then
22978 ol_cv_pthread_lpthreads_lmach_lexc=yes
22980 echo "$as_me: program exited with status $ac_status" >&5
22981 echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ( exit $ac_status )
22985 ol_cv_pthread_lpthreads_lmach_lexc=no
22987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22994 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22995 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22997 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22998 ol_link_pthreads="-lpthreads -lmach -lexc"
22999 ol_link_threads=posix
23003 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23004 if test "$ol_link_threads" = no ; then
23005 # try -lpthreads -lexc
23006 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23007 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23008 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 LIBS="-lpthreads -lexc $LIBS"
23016 if test "$cross_compiling" = yes; then
23017 cat >conftest.$ac_ext <<_ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23024 /* pthread test headers */
23025 #include <pthread.h>
23026 #if HAVE_PTHREADS < 7
23030 #define NULL (void*)0
23033 static void *task(p)
23036 return (void *) (p == NULL);
23043 /* pthread test function */
23044 #ifndef PTHREAD_CREATE_DETACHED
23045 #define PTHREAD_CREATE_DETACHED 1
23049 int detach = PTHREAD_CREATE_DETACHED;
23051 #if HAVE_PTHREADS > 4
23052 /* Final pthreads */
23053 pthread_attr_t attr;
23055 status = pthread_attr_init(&attr);
23056 if( status ) return status;
23058 #if HAVE_PTHREADS < 7
23059 status = pthread_attr_setdetachstate(&attr, &detach);
23060 if( status < 0 ) status = errno;
23062 status = pthread_attr_setdetachstate(&attr, detach);
23064 if( status ) return status;
23065 status = pthread_create( &t, &attr, task, NULL );
23066 #if HAVE_PTHREADS < 7
23067 if( status < 0 ) status = errno;
23069 if( status ) return status;
23071 /* Draft 4 pthreads */
23072 status = pthread_create( &t, pthread_attr_default, task, NULL );
23073 if( status ) return errno;
23075 /* give thread a chance to complete */
23076 /* it should remain joinable and hence detachable */
23079 status = pthread_detach( &t );
23080 if( status ) return errno;
23083 #ifdef HAVE_LINUX_THREADS
23084 pthread_kill_other_threads_np();
23093 rm -f conftest.$ac_objext conftest$ac_exeext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23095 (eval $ac_link) 2>conftest.er1
23097 grep -v '^ *+' conftest.er1 >conftest.err
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } &&
23102 { ac_try='test -z "$ac_c_werror_flag"
23103 || test ! -s conftest.err'
23104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105 (eval $ac_try) 2>&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); }; } &&
23109 { ac_try='test -s conftest$ac_exeext'
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; }; then
23115 ol_cv_pthread_lpthreads_lexc=yes
23117 echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23120 ol_cv_pthread_lpthreads_lexc=no
23122 rm -f conftest.err conftest.$ac_objext \
23123 conftest$ac_exeext conftest.$ac_ext
23125 cat >conftest.$ac_ext <<_ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23132 /* pthread test headers */
23133 #include <pthread.h>
23134 #if HAVE_PTHREADS < 7
23138 #define NULL (void*)0
23141 static void *task(p)
23144 return (void *) (p == NULL);
23148 int main(argc, argv)
23153 /* pthread test function */
23154 #ifndef PTHREAD_CREATE_DETACHED
23155 #define PTHREAD_CREATE_DETACHED 1
23159 int detach = PTHREAD_CREATE_DETACHED;
23161 #if HAVE_PTHREADS > 4
23162 /* Final pthreads */
23163 pthread_attr_t attr;
23165 status = pthread_attr_init(&attr);
23166 if( status ) return status;
23168 #if HAVE_PTHREADS < 7
23169 status = pthread_attr_setdetachstate(&attr, &detach);
23170 if( status < 0 ) status = errno;
23172 status = pthread_attr_setdetachstate(&attr, detach);
23174 if( status ) return status;
23175 status = pthread_create( &t, &attr, task, NULL );
23176 #if HAVE_PTHREADS < 7
23177 if( status < 0 ) status = errno;
23179 if( status ) return status;
23181 /* Draft 4 pthreads */
23182 status = pthread_create( &t, pthread_attr_default, task, NULL );
23183 if( status ) return errno;
23185 /* give thread a chance to complete */
23186 /* it should remain joinable and hence detachable */
23189 status = pthread_detach( &t );
23190 if( status ) return errno;
23193 #ifdef HAVE_LINUX_THREADS
23194 pthread_kill_other_threads_np();
23202 rm -f conftest$ac_exeext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23204 (eval $ac_link) 2>&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209 (eval $ac_try) 2>&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); }; }; then
23213 ol_cv_pthread_lpthreads_lexc=yes
23215 echo "$as_me: program exited with status $ac_status" >&5
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23219 ( exit $ac_status )
23220 ol_cv_pthread_lpthreads_lexc=no
23222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23229 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23230 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23232 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23233 ol_link_pthreads="-lpthreads -lexc"
23234 ol_link_threads=posix
23239 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23240 if test "$ol_link_threads" = no ; then
23242 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23243 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23244 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 LIBS="-lpthreads $LIBS"
23252 if test "$cross_compiling" = yes; then
23253 cat >conftest.$ac_ext <<_ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h. */
23260 /* pthread test headers */
23261 #include <pthread.h>
23262 #if HAVE_PTHREADS < 7
23266 #define NULL (void*)0
23269 static void *task(p)
23272 return (void *) (p == NULL);
23279 /* pthread test function */
23280 #ifndef PTHREAD_CREATE_DETACHED
23281 #define PTHREAD_CREATE_DETACHED 1
23285 int detach = PTHREAD_CREATE_DETACHED;
23287 #if HAVE_PTHREADS > 4
23288 /* Final pthreads */
23289 pthread_attr_t attr;
23291 status = pthread_attr_init(&attr);
23292 if( status ) return status;
23294 #if HAVE_PTHREADS < 7
23295 status = pthread_attr_setdetachstate(&attr, &detach);
23296 if( status < 0 ) status = errno;
23298 status = pthread_attr_setdetachstate(&attr, detach);
23300 if( status ) return status;
23301 status = pthread_create( &t, &attr, task, NULL );
23302 #if HAVE_PTHREADS < 7
23303 if( status < 0 ) status = errno;
23305 if( status ) return status;
23307 /* Draft 4 pthreads */
23308 status = pthread_create( &t, pthread_attr_default, task, NULL );
23309 if( status ) return errno;
23311 /* give thread a chance to complete */
23312 /* it should remain joinable and hence detachable */
23315 status = pthread_detach( &t );
23316 if( status ) return errno;
23319 #ifdef HAVE_LINUX_THREADS
23320 pthread_kill_other_threads_np();
23329 rm -f conftest.$ac_objext conftest$ac_exeext
23330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331 (eval $ac_link) 2>conftest.er1
23333 grep -v '^ *+' conftest.er1 >conftest.err
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -z "$ac_c_werror_flag"
23339 || test ! -s conftest.err'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; } &&
23345 { ac_try='test -s conftest$ac_exeext'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; }; then
23351 ol_cv_pthread_lib_lpthreads=yes
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23356 ol_cv_pthread_lib_lpthreads=no
23358 rm -f conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23368 /* pthread test headers */
23369 #include <pthread.h>
23370 #if HAVE_PTHREADS < 7
23374 #define NULL (void*)0
23377 static void *task(p)
23380 return (void *) (p == NULL);
23384 int main(argc, argv)
23389 /* pthread test function */
23390 #ifndef PTHREAD_CREATE_DETACHED
23391 #define PTHREAD_CREATE_DETACHED 1
23395 int detach = PTHREAD_CREATE_DETACHED;
23397 #if HAVE_PTHREADS > 4
23398 /* Final pthreads */
23399 pthread_attr_t attr;
23401 status = pthread_attr_init(&attr);
23402 if( status ) return status;
23404 #if HAVE_PTHREADS < 7
23405 status = pthread_attr_setdetachstate(&attr, &detach);
23406 if( status < 0 ) status = errno;
23408 status = pthread_attr_setdetachstate(&attr, detach);
23410 if( status ) return status;
23411 status = pthread_create( &t, &attr, task, NULL );
23412 #if HAVE_PTHREADS < 7
23413 if( status < 0 ) status = errno;
23415 if( status ) return status;
23417 /* Draft 4 pthreads */
23418 status = pthread_create( &t, pthread_attr_default, task, NULL );
23419 if( status ) return errno;
23421 /* give thread a chance to complete */
23422 /* it should remain joinable and hence detachable */
23425 status = pthread_detach( &t );
23426 if( status ) return errno;
23429 #ifdef HAVE_LINUX_THREADS
23430 pthread_kill_other_threads_np();
23438 rm -f conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440 (eval $ac_link) 2>&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23445 (eval $ac_try) 2>&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); }; }; then
23449 ol_cv_pthread_lib_lpthreads=yes
23451 echo "$as_me: program exited with status $ac_status" >&5
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23455 ( exit $ac_status )
23456 ol_cv_pthread_lib_lpthreads=no
23458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23465 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23466 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23468 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23469 ol_link_pthreads="-lpthreads"
23470 ol_link_threads=posix
23475 if test $ol_link_threads != no ; then
23476 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23478 save_CPPFLAGS="$CPPFLAGS"
23480 LIBS="$LTHREAD_LIBS $LIBS"
23485 for ac_func in sched_yield pthread_yield thr_yield
23487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23488 echo "$as_me:$LINENO: checking for $ac_func" >&5
23489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23490 if eval "test \"\${$as_ac_var+set}\" = set"; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 cat >conftest.$ac_ext <<_ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23501 #define $ac_func innocuous_$ac_func
23503 /* System header to define __stub macros and hopefully few prototypes,
23504 which can conflict with char $ac_func (); below.
23505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23506 <limits.h> exists even on freestanding compilers. */
23509 # include <limits.h>
23511 # include <assert.h>
23516 /* Override any gcc2 internal prototype to avoid an error. */
23521 /* We use char because int might match the return type of a gcc2
23522 builtin and then its argument prototype would still apply. */
23524 /* The GNU C library defines this for functions which it implements
23525 to always fail with ENOSYS. Some functions are actually named
23526 something starting with __ and the normal name is an alias. */
23527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23530 char (*f) () = $ac_func;
23539 return f != $ac_func;
23544 rm -f conftest.$ac_objext conftest$ac_exeext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23546 (eval $ac_link) 2>conftest.er1
23548 grep -v '^ *+' conftest.er1 >conftest.err
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
23553 { ac_try='test -z "$ac_c_werror_flag"
23554 || test ! -s conftest.err'
23555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556 (eval $ac_try) 2>&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); }; } &&
23560 { ac_try='test -s conftest$ac_exeext'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23566 eval "$as_ac_var=yes"
23568 echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23571 eval "$as_ac_var=no"
23573 rm -f conftest.err conftest.$ac_objext \
23574 conftest$ac_exeext conftest.$ac_ext
23576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23578 if test `eval echo '${'$as_ac_var'}'` = yes; then
23579 cat >>confdefs.h <<_ACEOF
23580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23587 if test $ac_cv_func_sched_yield = no &&
23588 test $ac_cv_func_pthread_yield = no &&
23589 test $ac_cv_func_thr_yield = no ; then
23590 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23591 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23592 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23595 ac_check_lib_save_LIBS=$LIBS
23597 cat >conftest.$ac_ext <<_ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23604 /* Override any gcc2 internal prototype to avoid an error. */
23608 /* We use char because int might match the return type of a gcc2
23609 builtin and then its argument prototype would still apply. */
23610 char sched_yield ();
23619 rm -f conftest.$ac_objext conftest$ac_exeext
23620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23621 (eval $ac_link) 2>conftest.er1
23623 grep -v '^ *+' conftest.er1 >conftest.err
23625 cat conftest.err >&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } &&
23628 { ac_try='test -z "$ac_c_werror_flag"
23629 || test ! -s conftest.err'
23630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631 (eval $ac_try) 2>&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; } &&
23635 { ac_try='test -s conftest$ac_exeext'
23636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637 (eval $ac_try) 2>&5
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); }; }; then
23641 ac_cv_lib_rt_sched_yield=yes
23643 echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23646 ac_cv_lib_rt_sched_yield=no
23648 rm -f conftest.err conftest.$ac_objext \
23649 conftest$ac_exeext conftest.$ac_ext
23650 LIBS=$ac_check_lib_save_LIBS
23652 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23653 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23654 if test $ac_cv_lib_rt_sched_yield = yes; then
23655 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23657 cat >>confdefs.h <<\_ACEOF
23658 #define HAVE_SCHED_YIELD 1
23661 ac_cv_func_sched_yield=yes
23663 ac_cv_func_sched_yield=no
23667 if test $ac_cv_func_sched_yield = no &&
23668 test $ac_cv_func_pthread_yield = no &&
23669 test "$ac_cv_func_thr_yield" = no ; then
23670 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23671 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23675 for ac_func in pthread_kill
23677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23678 echo "$as_me:$LINENO: checking for $ac_func" >&5
23679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23680 if eval "test \"\${$as_ac_var+set}\" = set"; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
23683 cat >conftest.$ac_ext <<_ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23691 #define $ac_func innocuous_$ac_func
23693 /* System header to define __stub macros and hopefully few prototypes,
23694 which can conflict with char $ac_func (); below.
23695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23696 <limits.h> exists even on freestanding compilers. */
23699 # include <limits.h>
23701 # include <assert.h>
23706 /* Override any gcc2 internal prototype to avoid an error. */
23711 /* We use char because int might match the return type of a gcc2
23712 builtin and then its argument prototype would still apply. */
23714 /* The GNU C library defines this for functions which it implements
23715 to always fail with ENOSYS. Some functions are actually named
23716 something starting with __ and the normal name is an alias. */
23717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23720 char (*f) () = $ac_func;
23729 return f != $ac_func;
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23736 (eval $ac_link) 2>conftest.er1
23738 grep -v '^ *+' conftest.er1 >conftest.err
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } &&
23743 { ac_try='test -z "$ac_c_werror_flag"
23744 || test ! -s conftest.err'
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; } &&
23750 { ac_try='test -s conftest$ac_exeext'
23751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); }; }; then
23756 eval "$as_ac_var=yes"
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 eval "$as_ac_var=no"
23763 rm -f conftest.err conftest.$ac_objext \
23764 conftest$ac_exeext conftest.$ac_ext
23766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23768 if test `eval echo '${'$as_ac_var'}'` = yes; then
23769 cat >>confdefs.h <<_ACEOF
23770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23777 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23778 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23779 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23780 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 cat >conftest.$ac_ext <<_ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23790 #include <pthread.h>
23791 pthread_rwlock_t rwlock;
23796 pthread_rwlock_destroy(&rwlock);
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23803 (eval $ac_link) 2>conftest.er1
23805 grep -v '^ *+' conftest.er1 >conftest.err
23807 cat conftest.err >&5
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } &&
23810 { ac_try='test -z "$ac_c_werror_flag"
23811 || test ! -s conftest.err'
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; } &&
23817 { ac_try='test -s conftest$ac_exeext'
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; }; then
23823 ol_cv_func_pthread_rwlock_destroy=yes
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23828 ol_cv_func_pthread_rwlock_destroy=no
23830 rm -f conftest.err conftest.$ac_objext \
23831 conftest$ac_exeext conftest.$ac_ext
23834 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23835 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23836 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23838 cat >>confdefs.h <<\_ACEOF
23839 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23844 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23845 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23846 if test "${ol_cv_func_pthread_detach+set}" = set; then
23847 echo $ECHO_N "(cached) $ECHO_C" >&6
23850 cat >conftest.$ac_ext <<_ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h. */
23857 #include <pthread.h>
23859 #define NULL (void*)0
23865 pthread_detach(NULL);
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23872 (eval $ac_link) 2>conftest.er1
23874 grep -v '^ *+' conftest.er1 >conftest.err
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } &&
23879 { ac_try='test -z "$ac_c_werror_flag"
23880 || test ! -s conftest.err'
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; } &&
23886 { ac_try='test -s conftest$ac_exeext'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 ol_cv_func_pthread_detach=yes
23894 echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23897 ol_cv_func_pthread_detach=no
23899 rm -f conftest.err conftest.$ac_objext \
23900 conftest$ac_exeext conftest.$ac_ext
23903 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23904 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23906 if test $ol_cv_func_pthread_detach = no ; then
23907 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23908 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23909 { (exit 1); exit 1; }; }
23913 cat >>confdefs.h <<\_ACEOF
23914 #define HAVE_PTHREAD_DETACH 1
23923 pthread_setconcurrency \
23924 pthread_getconcurrency \
23925 thr_setconcurrency \
23926 thr_getconcurrency \
23929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23930 echo "$as_me:$LINENO: checking for $ac_func" >&5
23931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23932 if eval "test \"\${$as_ac_var+set}\" = set"; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
23935 cat >conftest.$ac_ext <<_ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23943 #define $ac_func innocuous_$ac_func
23945 /* System header to define __stub macros and hopefully few prototypes,
23946 which can conflict with char $ac_func (); below.
23947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23948 <limits.h> exists even on freestanding compilers. */
23951 # include <limits.h>
23953 # include <assert.h>
23958 /* Override any gcc2 internal prototype to avoid an error. */
23963 /* We use char because int might match the return type of a gcc2
23964 builtin and then its argument prototype would still apply. */
23966 /* The GNU C library defines this for functions which it implements
23967 to always fail with ENOSYS. Some functions are actually named
23968 something starting with __ and the normal name is an alias. */
23969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23972 char (*f) () = $ac_func;
23981 return f != $ac_func;
23986 rm -f conftest.$ac_objext conftest$ac_exeext
23987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23988 (eval $ac_link) 2>conftest.er1
23990 grep -v '^ *+' conftest.er1 >conftest.err
23992 cat conftest.err >&5
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); } &&
23995 { ac_try='test -z "$ac_c_werror_flag"
23996 || test ! -s conftest.err'
23997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998 (eval $ac_try) 2>&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); }; } &&
24002 { ac_try='test -s conftest$ac_exeext'
24003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; }; then
24008 eval "$as_ac_var=yes"
24010 echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24013 eval "$as_ac_var=no"
24015 rm -f conftest.err conftest.$ac_objext \
24016 conftest$ac_exeext conftest.$ac_ext
24018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24020 if test `eval echo '${'$as_ac_var'}'` = yes; then
24021 cat >>confdefs.h <<_ACEOF
24022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24031 for ac_func in pthread_kill_other_threads_np
24033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24034 echo "$as_me:$LINENO: checking for $ac_func" >&5
24035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24036 if eval "test \"\${$as_ac_var+set}\" = set"; then
24037 echo $ECHO_N "(cached) $ECHO_C" >&6
24039 cat >conftest.$ac_ext <<_ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24047 #define $ac_func innocuous_$ac_func
24049 /* System header to define __stub macros and hopefully few prototypes,
24050 which can conflict with char $ac_func (); below.
24051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24052 <limits.h> exists even on freestanding compilers. */
24055 # include <limits.h>
24057 # include <assert.h>
24062 /* Override any gcc2 internal prototype to avoid an error. */
24067 /* We use char because int might match the return type of a gcc2
24068 builtin and then its argument prototype would still apply. */
24070 /* The GNU C library defines this for functions which it implements
24071 to always fail with ENOSYS. Some functions are actually named
24072 something starting with __ and the normal name is an alias. */
24073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24076 char (*f) () = $ac_func;
24085 return f != $ac_func;
24090 rm -f conftest.$ac_objext conftest$ac_exeext
24091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24092 (eval $ac_link) 2>conftest.er1
24094 grep -v '^ *+' conftest.er1 >conftest.err
24096 cat conftest.err >&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } &&
24099 { ac_try='test -z "$ac_c_werror_flag"
24100 || test ! -s conftest.err'
24101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24102 (eval $ac_try) 2>&5
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); }; } &&
24106 { ac_try='test -s conftest$ac_exeext'
24107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108 (eval $ac_try) 2>&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; }; then
24112 eval "$as_ac_var=yes"
24114 echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24117 eval "$as_ac_var=no"
24119 rm -f conftest.err conftest.$ac_objext \
24120 conftest$ac_exeext conftest.$ac_ext
24122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24124 if test `eval echo '${'$as_ac_var'}'` = yes; then
24125 cat >>confdefs.h <<_ACEOF
24126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24132 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24133 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24134 if test "${ol_cv_sys_linux_threads+set}" = set; then
24135 echo $ECHO_N "(cached) $ECHO_C" >&6
24137 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24139 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24140 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24145 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24146 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24147 if test "${ol_cv_linux_threads+set}" = set; then
24148 echo $ECHO_N "(cached) $ECHO_C" >&6
24151 if test $ol_cv_header_linux_threads = yes &&
24152 test $ol_cv_sys_linux_threads = yes; then
24153 ol_cv_linux_threads=yes
24154 elif test $ol_cv_header_linux_threads = no &&
24155 test $ol_cv_sys_linux_threads = no; then
24156 ol_cv_linux_threads=no
24158 ol_cv_linux_threads=error
24162 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24163 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24166 if test $ol_cv_linux_threads = error; then
24167 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24168 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24169 { (exit 1); exit 1; }; };
24172 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24173 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24174 if test "${ol_cv_pthread_create_works+set}" = set; then
24175 echo $ECHO_N "(cached) $ECHO_C" >&6
24178 if test "$cross_compiling" = yes; then
24179 ol_cv_pthread_create_works=yes
24181 cat >conftest.$ac_ext <<_ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h. */
24188 /* pthread test headers */
24189 #include <pthread.h>
24190 #if HAVE_PTHREADS < 7
24194 #define NULL (void*)0
24197 static void *task(p)
24200 return (void *) (p == NULL);
24204 int main(argc, argv)
24209 /* pthread test function */
24210 #ifndef PTHREAD_CREATE_DETACHED
24211 #define PTHREAD_CREATE_DETACHED 1
24215 int detach = PTHREAD_CREATE_DETACHED;
24217 #if HAVE_PTHREADS > 4
24218 /* Final pthreads */
24219 pthread_attr_t attr;
24221 status = pthread_attr_init(&attr);
24222 if( status ) return status;
24224 #if HAVE_PTHREADS < 7
24225 status = pthread_attr_setdetachstate(&attr, &detach);
24226 if( status < 0 ) status = errno;
24228 status = pthread_attr_setdetachstate(&attr, detach);
24230 if( status ) return status;
24231 status = pthread_create( &t, &attr, task, NULL );
24232 #if HAVE_PTHREADS < 7
24233 if( status < 0 ) status = errno;
24235 if( status ) return status;
24237 /* Draft 4 pthreads */
24238 status = pthread_create( &t, pthread_attr_default, task, NULL );
24239 if( status ) return errno;
24241 /* give thread a chance to complete */
24242 /* it should remain joinable and hence detachable */
24245 status = pthread_detach( &t );
24246 if( status ) return errno;
24249 #ifdef HAVE_LINUX_THREADS
24250 pthread_kill_other_threads_np();
24258 rm -f conftest$ac_exeext
24259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260 (eval $ac_link) 2>&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 ol_cv_pthread_create_works=yes
24271 echo "$as_me: program exited with status $ac_status" >&5
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24275 ( exit $ac_status )
24276 ol_cv_pthread_create_works=no
24278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24281 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24282 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24284 if test $ol_cv_pthread_create_works = no ; then
24285 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24286 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24287 { (exit 1); exit 1; }; }
24290 ol_replace_broken_yield=no
24292 if test $ol_replace_broken_yield = yes ; then
24294 cat >>confdefs.h <<\_ACEOF
24295 #define REPLACE_BROKEN_YIELD 1
24300 if test $ol_with_yielding_select = auto ; then
24301 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24302 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24303 if test "${ol_cv_pthread_select_yields+set}" = set; then
24304 echo $ECHO_N "(cached) $ECHO_C" >&6
24307 if test "$cross_compiling" = yes; then
24308 ol_cv_pthread_select_yields=cross
24310 cat >conftest.$ac_ext <<_ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h. */
24317 #include <sys/types.h>
24318 #include <sys/time.h>
24319 #include <unistd.h>
24320 #include <pthread.h>
24322 #define NULL (void*) 0
24325 static int fildes[2];
24327 static void *task(p)
24339 FD_SET(fildes[0], &rfds);
24341 /* we're not interested in any fds */
24342 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24349 exit(0); /* if we exit here, the select blocked the whole process */
24352 int main(argc, argv)
24358 /* create a pipe to select */
24359 if(pipe(&fildes[0])) {
24364 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24365 (void) pthread_setconcurrency(2);
24367 #ifdef HAVE_THR_SETCONCURRENCY
24368 /* Set Solaris LWP concurrency to 2 */
24369 thr_setconcurrency(2);
24373 #if HAVE_PTHREADS < 6
24374 pthread_create(&t, pthread_attr_default, task, NULL);
24376 pthread_create(&t, NULL, task, NULL);
24379 /* make sure task runs first */
24380 #ifdef HAVE_THR_YIELD
24382 #elif defined( HAVE_SCHED_YIELD )
24384 #elif defined( HAVE_PTHREAD_YIELD )
24391 rm -f conftest$ac_exeext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24393 (eval $ac_link) 2>&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; }; then
24402 ol_cv_pthread_select_yields=no
24404 echo "$as_me: program exited with status $ac_status" >&5
24405 echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24408 ( exit $ac_status )
24409 ol_cv_pthread_select_yields=yes
24411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24414 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24415 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24417 if test $ol_cv_pthread_select_yields = cross ; then
24418 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24419 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24420 { (exit 1); exit 1; }; }
24423 if test $ol_cv_pthread_select_yields = yes ; then
24424 ol_with_yielding_select=yes
24428 CPPFLAGS="$save_CPPFLAGS"
24431 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24432 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24433 { (exit 1); exit 1; }; }
24437 if test $ol_with_threads = posix ; then
24438 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24439 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24440 { (exit 1); exit 1; }; }
24445 case $ol_with_threads in auto | yes | mach)
24449 for ac_header in mach/cthreads.h cthreads.h
24451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24453 echo "$as_me:$LINENO: checking for $ac_header" >&5
24454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24456 echo $ECHO_N "(cached) $ECHO_C" >&6
24458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24461 # Is the header compilable?
24462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24464 cat >conftest.$ac_ext <<_ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h. */
24470 $ac_includes_default
24471 #include <$ac_header>
24473 rm -f conftest.$ac_objext
24474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24475 (eval $ac_compile) 2>conftest.er1
24477 grep -v '^ *+' conftest.er1 >conftest.err
24479 cat conftest.err >&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); } &&
24482 { ac_try='test -z "$ac_c_werror_flag"
24483 || test ! -s conftest.err'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; } &&
24489 { ac_try='test -s conftest.$ac_objext'
24490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491 (eval $ac_try) 2>&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); }; }; then
24495 ac_header_compiler=yes
24497 echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24500 ac_header_compiler=no
24502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24504 echo "${ECHO_T}$ac_header_compiler" >&6
24506 # Is the header present?
24507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24509 cat >conftest.$ac_ext <<_ACEOF
24512 cat confdefs.h >>conftest.$ac_ext
24513 cat >>conftest.$ac_ext <<_ACEOF
24514 /* end confdefs.h. */
24515 #include <$ac_header>
24517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24520 grep -v '^ *+' conftest.er1 >conftest.err
24522 cat conftest.err >&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } >/dev/null; then
24525 if test -s conftest.err; then
24526 ac_cpp_err=$ac_c_preproc_warn_flag
24527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24534 if test -z "$ac_cpp_err"; then
24535 ac_header_preproc=yes
24537 echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24540 ac_header_preproc=no
24542 rm -f conftest.err conftest.$ac_ext
24543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24544 echo "${ECHO_T}$ac_header_preproc" >&6
24546 # So? What about this header?
24547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24553 ac_header_preproc=yes
24556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24570 ## --------------------------------------------- ##
24571 ## Report this to <http://www.openldap.org/its/> ##
24572 ## --------------------------------------------- ##
24575 sed "s/^/$as_me: WARNING: /" >&2
24578 echo "$as_me:$LINENO: checking for $ac_header" >&5
24579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24581 echo $ECHO_N "(cached) $ECHO_C" >&6
24583 eval "$as_ac_Header=\$ac_header_preproc"
24585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24590 cat >>confdefs.h <<_ACEOF
24591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24598 if test $ac_cv_header_mach_cthreads_h = yes ; then
24599 ol_with_threads=found
24601 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24602 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24603 if test "${ac_cv_func_cthread_fork+set}" = set; then
24604 echo $ECHO_N "(cached) $ECHO_C" >&6
24606 cat >conftest.$ac_ext <<_ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24614 #define cthread_fork innocuous_cthread_fork
24616 /* System header to define __stub macros and hopefully few prototypes,
24617 which can conflict with char cthread_fork (); below.
24618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24619 <limits.h> exists even on freestanding compilers. */
24622 # include <limits.h>
24624 # include <assert.h>
24627 #undef cthread_fork
24629 /* Override any gcc2 internal prototype to avoid an error. */
24634 /* We use char because int might match the return type of a gcc2
24635 builtin and then its argument prototype would still apply. */
24636 char cthread_fork ();
24637 /* The GNU C library defines this for functions which it implements
24638 to always fail with ENOSYS. Some functions are actually named
24639 something starting with __ and the normal name is an alias. */
24640 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24643 char (*f) () = cthread_fork;
24652 return f != cthread_fork;
24657 rm -f conftest.$ac_objext conftest$ac_exeext
24658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24659 (eval $ac_link) 2>conftest.er1
24661 grep -v '^ *+' conftest.er1 >conftest.err
24663 cat conftest.err >&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } &&
24666 { ac_try='test -z "$ac_c_werror_flag"
24667 || test ! -s conftest.err'
24668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669 (eval $ac_try) 2>&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; } &&
24673 { ac_try='test -s conftest$ac_exeext'
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; }; then
24679 ac_cv_func_cthread_fork=yes
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24684 ac_cv_func_cthread_fork=no
24686 rm -f conftest.err conftest.$ac_objext \
24687 conftest$ac_exeext conftest.$ac_ext
24689 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24690 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24691 if test $ac_cv_func_cthread_fork = yes; then
24692 ol_link_threads=yes
24696 if test $ol_link_threads = no ; then
24697 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24698 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24699 if test "${ol_cv_cthread_all_load+set}" = set; then
24700 echo $ECHO_N "(cached) $ECHO_C" >&6
24704 LIBS="-all_load $LIBS"
24705 cat >conftest.$ac_ext <<_ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h. */
24711 #include <mach/cthreads.h>
24716 cthread_fork((void *)0, (void *)0);
24722 rm -f conftest.$ac_objext conftest$ac_exeext
24723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24724 (eval $ac_link) 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } &&
24731 { ac_try='test -z "$ac_c_werror_flag"
24732 || test ! -s conftest.err'
24733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734 (eval $ac_try) 2>&5
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; } &&
24738 { ac_try='test -s conftest$ac_exeext'
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24744 ol_cv_cthread_all_load=yes
24746 echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 ol_cv_cthread_all_load=no
24751 rm -f conftest.err conftest.$ac_objext \
24752 conftest$ac_exeext conftest.$ac_ext
24756 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24757 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24759 if test $ol_cv_cthread_all_load = yes ; then
24760 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24761 ol_link_threads=mach
24762 ol_with_threads=found
24766 elif test $ac_cv_header_cthreads_h = yes ; then
24768 ol_with_threads=found
24771 LIBS="$LIBS -lthreads"
24772 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24773 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24774 if test "${ac_cv_func_cthread_fork+set}" = set; then
24775 echo $ECHO_N "(cached) $ECHO_C" >&6
24777 cat >conftest.$ac_ext <<_ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h. */
24783 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24785 #define cthread_fork innocuous_cthread_fork
24787 /* System header to define __stub macros and hopefully few prototypes,
24788 which can conflict with char cthread_fork (); below.
24789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24790 <limits.h> exists even on freestanding compilers. */
24793 # include <limits.h>
24795 # include <assert.h>
24798 #undef cthread_fork
24800 /* Override any gcc2 internal prototype to avoid an error. */
24805 /* We use char because int might match the return type of a gcc2
24806 builtin and then its argument prototype would still apply. */
24807 char cthread_fork ();
24808 /* The GNU C library defines this for functions which it implements
24809 to always fail with ENOSYS. Some functions are actually named
24810 something starting with __ and the normal name is an alias. */
24811 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24814 char (*f) () = cthread_fork;
24823 return f != cthread_fork;
24828 rm -f conftest.$ac_objext conftest$ac_exeext
24829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24830 (eval $ac_link) 2>conftest.er1
24832 grep -v '^ *+' conftest.er1 >conftest.err
24834 cat conftest.err >&5
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); } &&
24837 { ac_try='test -z "$ac_c_werror_flag"
24838 || test ! -s conftest.err'
24839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 (eval $ac_try) 2>&5
24842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); }; } &&
24844 { ac_try='test -s conftest$ac_exeext'
24845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24846 (eval $ac_try) 2>&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); }; }; then
24850 ac_cv_func_cthread_fork=yes
24852 echo "$as_me: failed program was:" >&5
24853 sed 's/^/| /' conftest.$ac_ext >&5
24855 ac_cv_func_cthread_fork=no
24857 rm -f conftest.err conftest.$ac_objext \
24858 conftest$ac_exeext conftest.$ac_ext
24860 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24861 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24862 if test $ac_cv_func_cthread_fork = yes; then
24863 ol_link_threads=yes
24868 if test $ol_link_threads = yes ; then
24869 LTHREAD_LIBS="-lthreads"
24870 ol_link_threads=mach
24871 ol_with_threads=found
24873 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24874 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24875 { (exit 1); exit 1; }; }
24878 elif test $ol_with_threads = mach ; then
24879 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24880 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24881 { (exit 1); exit 1; }; }
24884 if test $ol_link_threads = mach ; then
24886 cat >>confdefs.h <<\_ACEOF
24887 #define HAVE_MACH_CTHREADS 1
24890 elif test $ol_with_threads = found ; then
24891 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24892 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24893 { (exit 1); exit 1; }; }
24898 case $ol_with_threads in auto | yes | pth)
24901 for ac_header in pth.h
24903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24905 echo "$as_me:$LINENO: checking for $ac_header" >&5
24906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24908 echo $ECHO_N "(cached) $ECHO_C" >&6
24910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24913 # Is the header compilable?
24914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24916 cat >conftest.$ac_ext <<_ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 $ac_includes_default
24923 #include <$ac_header>
24925 rm -f conftest.$ac_objext
24926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24927 (eval $ac_compile) 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } &&
24934 { ac_try='test -z "$ac_c_werror_flag"
24935 || test ! -s conftest.err'
24936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937 (eval $ac_try) 2>&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); }; } &&
24941 { ac_try='test -s conftest.$ac_objext'
24942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943 (eval $ac_try) 2>&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); }; }; then
24947 ac_header_compiler=yes
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24952 ac_header_compiler=no
24954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24956 echo "${ECHO_T}$ac_header_compiler" >&6
24958 # Is the header present?
24959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24961 cat >conftest.$ac_ext <<_ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24967 #include <$ac_header>
24969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24972 grep -v '^ *+' conftest.er1 >conftest.err
24974 cat conftest.err >&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } >/dev/null; then
24977 if test -s conftest.err; then
24978 ac_cpp_err=$ac_c_preproc_warn_flag
24979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24986 if test -z "$ac_cpp_err"; then
24987 ac_header_preproc=yes
24989 echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24992 ac_header_preproc=no
24994 rm -f conftest.err conftest.$ac_ext
24995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24996 echo "${ECHO_T}$ac_header_preproc" >&6
24998 # So? What about this header?
24999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25005 ac_header_preproc=yes
25008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25022 ## --------------------------------------------- ##
25023 ## Report this to <http://www.openldap.org/its/> ##
25024 ## --------------------------------------------- ##
25027 sed "s/^/$as_me: WARNING: /" >&2
25030 echo "$as_me:$LINENO: checking for $ac_header" >&5
25031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25033 echo $ECHO_N "(cached) $ECHO_C" >&6
25035 eval "$as_ac_Header=\$ac_header_preproc"
25037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25042 cat >>confdefs.h <<_ACEOF
25043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25051 if test $ac_cv_header_pth_h = yes ; then
25052 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25053 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25054 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25055 echo $ECHO_N "(cached) $ECHO_C" >&6
25057 ac_check_lib_save_LIBS=$LIBS
25059 cat >conftest.$ac_ext <<_ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h. */
25066 /* Override any gcc2 internal prototype to avoid an error. */
25070 /* We use char because int might match the return type of a gcc2
25071 builtin and then its argument prototype would still apply. */
25072 char pth_version ();
25081 rm -f conftest.$ac_objext conftest$ac_exeext
25082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25083 (eval $ac_link) 2>conftest.er1
25085 grep -v '^ *+' conftest.er1 >conftest.err
25087 cat conftest.err >&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } &&
25090 { ac_try='test -z "$ac_c_werror_flag"
25091 || test ! -s conftest.err'
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest$ac_exeext'
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 ac_cv_lib_pth_pth_version=yes
25105 echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25108 ac_cv_lib_pth_pth_version=no
25110 rm -f conftest.err conftest.$ac_objext \
25111 conftest$ac_exeext conftest.$ac_ext
25112 LIBS=$ac_check_lib_save_LIBS
25114 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25115 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25116 if test $ac_cv_lib_pth_pth_version = yes; then
25123 if test $have_pth = yes ; then
25125 cat >>confdefs.h <<\_ACEOF
25126 #define HAVE_GNU_PTH 1
25129 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25130 ol_link_threads=pth
25131 ol_with_threads=found
25133 if test $ol_with_yielding_select = auto ; then
25134 ol_with_yielding_select=yes
25141 case $ol_with_threads in auto | yes | lwp)
25145 for ac_header in thread.h synch.h
25147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25149 echo "$as_me:$LINENO: checking for $ac_header" >&5
25150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25152 echo $ECHO_N "(cached) $ECHO_C" >&6
25154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25157 # Is the header compilable?
25158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25160 cat >conftest.$ac_ext <<_ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 $ac_includes_default
25167 #include <$ac_header>
25169 rm -f conftest.$ac_objext
25170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25171 (eval $ac_compile) 2>conftest.er1
25173 grep -v '^ *+' conftest.er1 >conftest.err
25175 cat conftest.err >&5
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); } &&
25178 { ac_try='test -z "$ac_c_werror_flag"
25179 || test ! -s conftest.err'
25180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25181 (eval $ac_try) 2>&5
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); }; } &&
25185 { ac_try='test -s conftest.$ac_objext'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; }; then
25191 ac_header_compiler=yes
25193 echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25196 ac_header_compiler=no
25198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25200 echo "${ECHO_T}$ac_header_compiler" >&6
25202 # Is the header present?
25203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25205 cat >conftest.$ac_ext <<_ACEOF
25208 cat confdefs.h >>conftest.$ac_ext
25209 cat >>conftest.$ac_ext <<_ACEOF
25210 /* end confdefs.h. */
25211 #include <$ac_header>
25213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25216 grep -v '^ *+' conftest.er1 >conftest.err
25218 cat conftest.err >&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); } >/dev/null; then
25221 if test -s conftest.err; then
25222 ac_cpp_err=$ac_c_preproc_warn_flag
25223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25230 if test -z "$ac_cpp_err"; then
25231 ac_header_preproc=yes
25233 echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25236 ac_header_preproc=no
25238 rm -f conftest.err conftest.$ac_ext
25239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25240 echo "${ECHO_T}$ac_header_preproc" >&6
25242 # So? What about this header?
25243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25249 ac_header_preproc=yes
25252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25266 ## --------------------------------------------- ##
25267 ## Report this to <http://www.openldap.org/its/> ##
25268 ## --------------------------------------------- ##
25271 sed "s/^/$as_me: WARNING: /" >&2
25274 echo "$as_me:$LINENO: checking for $ac_header" >&5
25275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25279 eval "$as_ac_Header=\$ac_header_preproc"
25281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25286 cat >>confdefs.h <<_ACEOF
25287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25294 if test $ac_cv_header_thread_h = yes &&
25295 test $ac_cv_header_synch_h = yes ; then
25296 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25297 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25298 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
25301 ac_check_lib_save_LIBS=$LIBS
25302 LIBS="-lthread $LIBS"
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25310 /* Override any gcc2 internal prototype to avoid an error. */
25314 /* We use char because int might match the return type of a gcc2
25315 builtin and then its argument prototype would still apply. */
25316 char thr_create ();
25325 rm -f conftest.$ac_objext conftest$ac_exeext
25326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25327 (eval $ac_link) 2>conftest.er1
25329 grep -v '^ *+' conftest.er1 >conftest.err
25331 cat conftest.err >&5
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); } &&
25334 { ac_try='test -z "$ac_c_werror_flag"
25335 || test ! -s conftest.err'
25336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337 (eval $ac_try) 2>&5
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; } &&
25341 { ac_try='test -s conftest$ac_exeext'
25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343 (eval $ac_try) 2>&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); }; }; then
25347 ac_cv_lib_thread_thr_create=yes
25349 echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25352 ac_cv_lib_thread_thr_create=no
25354 rm -f conftest.err conftest.$ac_objext \
25355 conftest$ac_exeext conftest.$ac_ext
25356 LIBS=$ac_check_lib_save_LIBS
25358 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25359 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25360 if test $ac_cv_lib_thread_thr_create = yes; then
25367 if test $have_thr = yes ; then
25369 cat >>confdefs.h <<\_ACEOF
25373 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25374 ol_link_threads=thr
25376 if test $ol_with_yielding_select = auto ; then
25377 ol_with_yielding_select=yes
25383 thr_setconcurrency \
25384 thr_getconcurrency \
25387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25388 echo "$as_me:$LINENO: checking for $ac_func" >&5
25389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25390 if eval "test \"\${$as_ac_var+set}\" = set"; then
25391 echo $ECHO_N "(cached) $ECHO_C" >&6
25393 cat >conftest.$ac_ext <<_ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h. */
25399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25401 #define $ac_func innocuous_$ac_func
25403 /* System header to define __stub macros and hopefully few prototypes,
25404 which can conflict with char $ac_func (); below.
25405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25406 <limits.h> exists even on freestanding compilers. */
25409 # include <limits.h>
25411 # include <assert.h>
25416 /* Override any gcc2 internal prototype to avoid an error. */
25421 /* We use char because int might match the return type of a gcc2
25422 builtin and then its argument prototype would still apply. */
25424 /* The GNU C library defines this for functions which it implements
25425 to always fail with ENOSYS. Some functions are actually named
25426 something starting with __ and the normal name is an alias. */
25427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25430 char (*f) () = $ac_func;
25439 return f != $ac_func;
25444 rm -f conftest.$ac_objext conftest$ac_exeext
25445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25446 (eval $ac_link) 2>conftest.er1
25448 grep -v '^ *+' conftest.er1 >conftest.err
25450 cat conftest.err >&5
25451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452 (exit $ac_status); } &&
25453 { ac_try='test -z "$ac_c_werror_flag"
25454 || test ! -s conftest.err'
25455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456 (eval $ac_try) 2>&5
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); }; } &&
25460 { ac_try='test -s conftest$ac_exeext'
25461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25462 (eval $ac_try) 2>&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); }; }; then
25466 eval "$as_ac_var=yes"
25468 echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25471 eval "$as_ac_var=no"
25473 rm -f conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
25476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25478 if test `eval echo '${'$as_ac_var'}'` = yes; then
25479 cat >>confdefs.h <<_ACEOF
25480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25490 for ac_header in lwp/lwp.h
25492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25494 echo "$as_me:$LINENO: checking for $ac_header" >&5
25495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25497 echo $ECHO_N "(cached) $ECHO_C" >&6
25499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25502 # Is the header compilable?
25503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25505 cat >conftest.$ac_ext <<_ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25511 $ac_includes_default
25512 #include <$ac_header>
25514 rm -f conftest.$ac_objext
25515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516 (eval $ac_compile) 2>conftest.er1
25518 grep -v '^ *+' conftest.er1 >conftest.err
25520 cat conftest.err >&5
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } &&
25523 { ac_try='test -z "$ac_c_werror_flag"
25524 || test ! -s conftest.err'
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; } &&
25530 { ac_try='test -s conftest.$ac_objext'
25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532 (eval $ac_try) 2>&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); }; }; then
25536 ac_header_compiler=yes
25538 echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25541 ac_header_compiler=no
25543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25545 echo "${ECHO_T}$ac_header_compiler" >&6
25547 # Is the header present?
25548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25550 cat >conftest.$ac_ext <<_ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25556 #include <$ac_header>
25558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25561 grep -v '^ *+' conftest.er1 >conftest.err
25563 cat conftest.err >&5
25564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565 (exit $ac_status); } >/dev/null; then
25566 if test -s conftest.err; then
25567 ac_cpp_err=$ac_c_preproc_warn_flag
25568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25575 if test -z "$ac_cpp_err"; then
25576 ac_header_preproc=yes
25578 echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25581 ac_header_preproc=no
25583 rm -f conftest.err conftest.$ac_ext
25584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25585 echo "${ECHO_T}$ac_header_preproc" >&6
25587 # So? What about this header?
25588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25594 ac_header_preproc=yes
25597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25611 ## --------------------------------------------- ##
25612 ## Report this to <http://www.openldap.org/its/> ##
25613 ## --------------------------------------------- ##
25616 sed "s/^/$as_me: WARNING: /" >&2
25619 echo "$as_me:$LINENO: checking for $ac_header" >&5
25620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25624 eval "$as_ac_Header=\$ac_header_preproc"
25626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25631 cat >>confdefs.h <<_ACEOF
25632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25639 if test $ac_cv_header_lwp_lwp_h = yes ; then
25640 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25641 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25642 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25645 ac_check_lib_save_LIBS=$LIBS
25647 cat >conftest.$ac_ext <<_ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h. */
25654 /* Override any gcc2 internal prototype to avoid an error. */
25658 /* We use char because int might match the return type of a gcc2
25659 builtin and then its argument prototype would still apply. */
25660 char lwp_create ();
25669 rm -f conftest.$ac_objext conftest$ac_exeext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25671 (eval $ac_link) 2>conftest.er1
25673 grep -v '^ *+' conftest.er1 >conftest.err
25675 cat conftest.err >&5
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } &&
25678 { ac_try='test -z "$ac_c_werror_flag"
25679 || test ! -s conftest.err'
25680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681 (eval $ac_try) 2>&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); }; } &&
25685 { ac_try='test -s conftest$ac_exeext'
25686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687 (eval $ac_try) 2>&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; }; then
25691 ac_cv_lib_lwp_lwp_create=yes
25693 echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25696 ac_cv_lib_lwp_lwp_create=no
25698 rm -f conftest.err conftest.$ac_objext \
25699 conftest$ac_exeext conftest.$ac_ext
25700 LIBS=$ac_check_lib_save_LIBS
25702 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25703 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25704 if test $ac_cv_lib_lwp_lwp_create = yes; then
25711 if test $have_lwp = yes ; then
25713 cat >>confdefs.h <<\_ACEOF
25717 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25718 ol_link_threads=lwp
25720 if test $ol_with_yielding_select = auto ; then
25721 ol_with_yielding_select=no
25728 if test $ol_with_yielding_select = yes ; then
25730 cat >>confdefs.h <<\_ACEOF
25731 #define HAVE_YIELDING_SELECT 1
25736 if test $ol_with_threads = manual ; then
25737 ol_link_threads=yes
25739 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25740 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25744 for ac_header in pthread.h sched.h
25746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25748 echo "$as_me:$LINENO: checking for $ac_header" >&5
25749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25751 echo $ECHO_N "(cached) $ECHO_C" >&6
25753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25756 # Is the header compilable?
25757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25759 cat >conftest.$ac_ext <<_ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h. */
25765 $ac_includes_default
25766 #include <$ac_header>
25768 rm -f conftest.$ac_objext
25769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25770 (eval $ac_compile) 2>conftest.er1
25772 grep -v '^ *+' conftest.er1 >conftest.err
25774 cat conftest.err >&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } &&
25777 { ac_try='test -z "$ac_c_werror_flag"
25778 || test ! -s conftest.err'
25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780 (eval $ac_try) 2>&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); }; } &&
25784 { ac_try='test -s conftest.$ac_objext'
25785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25786 (eval $ac_try) 2>&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); }; }; then
25790 ac_header_compiler=yes
25792 echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25795 ac_header_compiler=no
25797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25799 echo "${ECHO_T}$ac_header_compiler" >&6
25801 # Is the header present?
25802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25804 cat >conftest.$ac_ext <<_ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h. */
25810 #include <$ac_header>
25812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25815 grep -v '^ *+' conftest.er1 >conftest.err
25817 cat conftest.err >&5
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); } >/dev/null; then
25820 if test -s conftest.err; then
25821 ac_cpp_err=$ac_c_preproc_warn_flag
25822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25829 if test -z "$ac_cpp_err"; then
25830 ac_header_preproc=yes
25832 echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25835 ac_header_preproc=no
25837 rm -f conftest.err conftest.$ac_ext
25838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25839 echo "${ECHO_T}$ac_header_preproc" >&6
25841 # So? What about this header?
25842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25848 ac_header_preproc=yes
25851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25865 ## --------------------------------------------- ##
25866 ## Report this to <http://www.openldap.org/its/> ##
25867 ## --------------------------------------------- ##
25870 sed "s/^/$as_me: WARNING: /" >&2
25873 echo "$as_me:$LINENO: checking for $ac_header" >&5
25874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25876 echo $ECHO_N "(cached) $ECHO_C" >&6
25878 eval "$as_ac_Header=\$ac_header_preproc"
25880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25885 cat >>confdefs.h <<_ACEOF
25886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25895 for ac_func in sched_yield pthread_yield
25897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25898 echo "$as_me:$LINENO: checking for $ac_func" >&5
25899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25900 if eval "test \"\${$as_ac_var+set}\" = set"; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25903 cat >conftest.$ac_ext <<_ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h. */
25909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25911 #define $ac_func innocuous_$ac_func
25913 /* System header to define __stub macros and hopefully few prototypes,
25914 which can conflict with char $ac_func (); below.
25915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25916 <limits.h> exists even on freestanding compilers. */
25919 # include <limits.h>
25921 # include <assert.h>
25926 /* Override any gcc2 internal prototype to avoid an error. */
25931 /* We use char because int might match the return type of a gcc2
25932 builtin and then its argument prototype would still apply. */
25934 /* The GNU C library defines this for functions which it implements
25935 to always fail with ENOSYS. Some functions are actually named
25936 something starting with __ and the normal name is an alias. */
25937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25940 char (*f) () = $ac_func;
25949 return f != $ac_func;
25954 rm -f conftest.$ac_objext conftest$ac_exeext
25955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25956 (eval $ac_link) 2>conftest.er1
25958 grep -v '^ *+' conftest.er1 >conftest.err
25960 cat conftest.err >&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } &&
25963 { ac_try='test -z "$ac_c_werror_flag"
25964 || test ! -s conftest.err'
25965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 (eval $ac_try) 2>&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; } &&
25970 { ac_try='test -s conftest$ac_exeext'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; }; then
25976 eval "$as_ac_var=yes"
25978 echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25981 eval "$as_ac_var=no"
25983 rm -f conftest.err conftest.$ac_objext \
25984 conftest$ac_exeext conftest.$ac_ext
25986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25988 if test `eval echo '${'$as_ac_var'}'` = yes; then
25989 cat >>confdefs.h <<_ACEOF
25990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25997 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25998 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25999 if test "${ol_cv_header_linux_threads+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26002 cat >conftest.$ac_ext <<_ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h. */
26008 #include <pthread.h>
26010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26011 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26012 ol_cv_header_linux_threads=yes
26014 ol_cv_header_linux_threads=no
26020 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26021 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26022 if test $ol_cv_header_linux_threads = yes; then
26024 cat >>confdefs.h <<\_ACEOF
26025 #define HAVE_LINUX_THREADS 1
26032 for ac_header in mach/cthreads.h
26034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26036 echo "$as_me:$LINENO: checking for $ac_header" >&5
26037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26044 # Is the header compilable?
26045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26047 cat >conftest.$ac_ext <<_ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h. */
26053 $ac_includes_default
26054 #include <$ac_header>
26056 rm -f conftest.$ac_objext
26057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26058 (eval $ac_compile) 2>conftest.er1
26060 grep -v '^ *+' conftest.er1 >conftest.err
26062 cat conftest.err >&5
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } &&
26065 { ac_try='test -z "$ac_c_werror_flag"
26066 || test ! -s conftest.err'
26067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068 (eval $ac_try) 2>&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); }; } &&
26072 { ac_try='test -s conftest.$ac_objext'
26073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074 (eval $ac_try) 2>&5
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; }; then
26078 ac_header_compiler=yes
26080 echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26083 ac_header_compiler=no
26085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26087 echo "${ECHO_T}$ac_header_compiler" >&6
26089 # Is the header present?
26090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26092 cat >conftest.$ac_ext <<_ACEOF
26095 cat confdefs.h >>conftest.$ac_ext
26096 cat >>conftest.$ac_ext <<_ACEOF
26097 /* end confdefs.h. */
26098 #include <$ac_header>
26100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26103 grep -v '^ *+' conftest.er1 >conftest.err
26105 cat conftest.err >&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); } >/dev/null; then
26108 if test -s conftest.err; then
26109 ac_cpp_err=$ac_c_preproc_warn_flag
26110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26117 if test -z "$ac_cpp_err"; then
26118 ac_header_preproc=yes
26120 echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26123 ac_header_preproc=no
26125 rm -f conftest.err conftest.$ac_ext
26126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26127 echo "${ECHO_T}$ac_header_preproc" >&6
26129 # So? What about this header?
26130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26136 ac_header_preproc=yes
26139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26153 ## --------------------------------------------- ##
26154 ## Report this to <http://www.openldap.org/its/> ##
26155 ## --------------------------------------------- ##
26158 sed "s/^/$as_me: WARNING: /" >&2
26161 echo "$as_me:$LINENO: checking for $ac_header" >&5
26162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26164 echo $ECHO_N "(cached) $ECHO_C" >&6
26166 eval "$as_ac_Header=\$ac_header_preproc"
26168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26173 cat >>confdefs.h <<_ACEOF
26174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26182 for ac_header in lwp/lwp.h
26184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26186 echo "$as_me:$LINENO: checking for $ac_header" >&5
26187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26189 echo $ECHO_N "(cached) $ECHO_C" >&6
26191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26194 # Is the header compilable?
26195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26197 cat >conftest.$ac_ext <<_ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h. */
26203 $ac_includes_default
26204 #include <$ac_header>
26206 rm -f conftest.$ac_objext
26207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26208 (eval $ac_compile) 2>conftest.er1
26210 grep -v '^ *+' conftest.er1 >conftest.err
26212 cat conftest.err >&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } &&
26215 { ac_try='test -z "$ac_c_werror_flag"
26216 || test ! -s conftest.err'
26217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26218 (eval $ac_try) 2>&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); }; } &&
26222 { ac_try='test -s conftest.$ac_objext'
26223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224 (eval $ac_try) 2>&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); }; }; then
26228 ac_header_compiler=yes
26230 echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26233 ac_header_compiler=no
26235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26237 echo "${ECHO_T}$ac_header_compiler" >&6
26239 # Is the header present?
26240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26242 cat >conftest.$ac_ext <<_ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26248 #include <$ac_header>
26250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26253 grep -v '^ *+' conftest.er1 >conftest.err
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } >/dev/null; then
26258 if test -s conftest.err; then
26259 ac_cpp_err=$ac_c_preproc_warn_flag
26260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26267 if test -z "$ac_cpp_err"; then
26268 ac_header_preproc=yes
26270 echo "$as_me: failed program was:" >&5
26271 sed 's/^/| /' conftest.$ac_ext >&5
26273 ac_header_preproc=no
26275 rm -f conftest.err conftest.$ac_ext
26276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26277 echo "${ECHO_T}$ac_header_preproc" >&6
26279 # So? What about this header?
26280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26286 ac_header_preproc=yes
26289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26303 ## --------------------------------------------- ##
26304 ## Report this to <http://www.openldap.org/its/> ##
26305 ## --------------------------------------------- ##
26308 sed "s/^/$as_me: WARNING: /" >&2
26311 echo "$as_me:$LINENO: checking for $ac_header" >&5
26312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26316 eval "$as_ac_Header=\$ac_header_preproc"
26318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26323 cat >>confdefs.h <<_ACEOF
26324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26333 for ac_header in thread.h synch.h
26335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26337 echo "$as_me:$LINENO: checking for $ac_header" >&5
26338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26340 echo $ECHO_N "(cached) $ECHO_C" >&6
26342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26345 # Is the header compilable?
26346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26348 cat >conftest.$ac_ext <<_ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h. */
26354 $ac_includes_default
26355 #include <$ac_header>
26357 rm -f conftest.$ac_objext
26358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26359 (eval $ac_compile) 2>conftest.er1
26361 grep -v '^ *+' conftest.er1 >conftest.err
26363 cat conftest.err >&5
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } &&
26366 { ac_try='test -z "$ac_c_werror_flag"
26367 || test ! -s conftest.err'
26368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369 (eval $ac_try) 2>&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); }; } &&
26373 { ac_try='test -s conftest.$ac_objext'
26374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26375 (eval $ac_try) 2>&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); }; }; then
26379 ac_header_compiler=yes
26381 echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 ac_header_compiler=no
26386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26388 echo "${ECHO_T}$ac_header_compiler" >&6
26390 # Is the header present?
26391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26393 cat >conftest.$ac_ext <<_ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26399 #include <$ac_header>
26401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26404 grep -v '^ *+' conftest.er1 >conftest.err
26406 cat conftest.err >&5
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } >/dev/null; then
26409 if test -s conftest.err; then
26410 ac_cpp_err=$ac_c_preproc_warn_flag
26411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26418 if test -z "$ac_cpp_err"; then
26419 ac_header_preproc=yes
26421 echo "$as_me: failed program was:" >&5
26422 sed 's/^/| /' conftest.$ac_ext >&5
26424 ac_header_preproc=no
26426 rm -f conftest.err conftest.$ac_ext
26427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26428 echo "${ECHO_T}$ac_header_preproc" >&6
26430 # So? What about this header?
26431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26437 ac_header_preproc=yes
26440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26454 ## --------------------------------------------- ##
26455 ## Report this to <http://www.openldap.org/its/> ##
26456 ## --------------------------------------------- ##
26459 sed "s/^/$as_me: WARNING: /" >&2
26462 echo "$as_me:$LINENO: checking for $ac_header" >&5
26463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26465 echo $ECHO_N "(cached) $ECHO_C" >&6
26467 eval "$as_ac_Header=\$ac_header_preproc"
26469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26474 cat >>confdefs.h <<_ACEOF
26475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26484 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26485 cat >>confdefs.h <<\_ACEOF
26486 #define REENTRANT 1
26489 cat >>confdefs.h <<\_ACEOF
26490 #define _REENTRANT 1
26493 cat >>confdefs.h <<\_ACEOF
26494 #define THREAD_SAFE 1
26497 cat >>confdefs.h <<\_ACEOF
26498 #define _THREAD_SAFE 1
26501 cat >>confdefs.h <<\_ACEOF
26502 #define THREADSAFE 1
26505 cat >>confdefs.h <<\_ACEOF
26506 #define _THREADSAFE 1
26509 cat >>confdefs.h <<\_ACEOF
26510 #define _SGI_MP_SOURCE 1
26514 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26515 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26516 if test "${ol_cv_errno_thread_specific+set}" = set; then
26517 echo $ECHO_N "(cached) $ECHO_C" >&6
26520 cat >conftest.$ac_ext <<_ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h. */
26535 rm -f conftest.$ac_objext conftest$ac_exeext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26537 (eval $ac_link) 2>conftest.er1
26539 grep -v '^ *+' conftest.er1 >conftest.err
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
26544 { ac_try='test -z "$ac_c_werror_flag"
26545 || test ! -s conftest.err'
26546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547 (eval $ac_try) 2>&5
26549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550 (exit $ac_status); }; } &&
26551 { ac_try='test -s conftest$ac_exeext'
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; }; then
26557 ol_cv_errno_thread_specific=yes
26559 echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26562 ol_cv_errno_thread_specific=no
26564 rm -f conftest.err conftest.$ac_objext \
26565 conftest$ac_exeext conftest.$ac_ext
26568 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26569 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26571 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26572 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26573 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26574 echo $ECHO_N "(cached) $ECHO_C" >&6
26577 cat >conftest.$ac_ext <<_ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h. */
26592 rm -f conftest.$ac_objext conftest$ac_exeext
26593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26594 (eval $ac_link) 2>conftest.er1
26596 grep -v '^ *+' conftest.er1 >conftest.err
26598 cat conftest.err >&5
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
26601 { ac_try='test -z "$ac_c_werror_flag"
26602 || test ! -s conftest.err'
26603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604 (eval $ac_try) 2>&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; } &&
26608 { ac_try='test -s conftest$ac_exeext'
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 ol_cv_h_errno_thread_specific=yes
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26619 ol_cv_h_errno_thread_specific=no
26621 rm -f conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
26625 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26626 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26628 if test $ol_cv_errno_thread_specific != yes ||
26629 test $ol_cv_h_errno_thread_specific != yes ; then
26630 LIBS="$LTHREAD_LIBS $LIBS"
26636 if test $ol_link_threads = no ; then
26637 if test $ol_with_threads = yes ; then
26638 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26639 echo "$as_me: error: no suitable thread support" >&2;}
26640 { (exit 1); exit 1; }; }
26643 if test $ol_with_threads = auto ; then
26644 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26645 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26650 cat >>confdefs.h <<\_ACEOF
26651 #define NO_THREADS 1
26660 if test $ol_link_threads != no ; then
26662 cat >>confdefs.h <<\_ACEOF
26663 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26673 gethostbyname_r gethostbyaddr_r \
26676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26677 echo "$as_me:$LINENO: checking for $ac_func" >&5
26678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26679 if eval "test \"\${$as_ac_var+set}\" = set"; then
26680 echo $ECHO_N "(cached) $ECHO_C" >&6
26682 cat >conftest.$ac_ext <<_ACEOF
26685 cat confdefs.h >>conftest.$ac_ext
26686 cat >>conftest.$ac_ext <<_ACEOF
26687 /* end confdefs.h. */
26688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26690 #define $ac_func innocuous_$ac_func
26692 /* System header to define __stub macros and hopefully few prototypes,
26693 which can conflict with char $ac_func (); below.
26694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26695 <limits.h> exists even on freestanding compilers. */
26698 # include <limits.h>
26700 # include <assert.h>
26705 /* Override any gcc2 internal prototype to avoid an error. */
26710 /* We use char because int might match the return type of a gcc2
26711 builtin and then its argument prototype would still apply. */
26713 /* The GNU C library defines this for functions which it implements
26714 to always fail with ENOSYS. Some functions are actually named
26715 something starting with __ and the normal name is an alias. */
26716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26719 char (*f) () = $ac_func;
26728 return f != $ac_func;
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26735 (eval $ac_link) 2>conftest.er1
26737 grep -v '^ *+' conftest.er1 >conftest.err
26739 cat conftest.err >&5
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } &&
26742 { ac_try='test -z "$ac_c_werror_flag"
26743 || test ! -s conftest.err'
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; } &&
26749 { ac_try='test -s conftest$ac_exeext'
26750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751 (eval $ac_try) 2>&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; }; then
26755 eval "$as_ac_var=yes"
26757 echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26760 eval "$as_ac_var=no"
26762 rm -f conftest.err conftest.$ac_objext \
26763 conftest$ac_exeext conftest.$ac_ext
26765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26767 if test `eval echo '${'$as_ac_var'}'` = yes; then
26768 cat >>confdefs.h <<_ACEOF
26769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26776 if test "$ac_cv_func_ctime_r" = no ; then
26777 ol_cv_func_ctime_r_nargs=0
26779 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26780 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26781 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26784 cat >conftest.$ac_ext <<_ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h. */
26794 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26799 rm -f conftest.$ac_objext
26800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26801 (eval $ac_compile) 2>conftest.er1
26803 grep -v '^ *+' conftest.er1 >conftest.err
26805 cat conftest.err >&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } &&
26808 { ac_try='test -z "$ac_c_werror_flag"
26809 || test ! -s conftest.err'
26810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811 (eval $ac_try) 2>&5
26813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814 (exit $ac_status); }; } &&
26815 { ac_try='test -s conftest.$ac_objext'
26816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 (eval $ac_try) 2>&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }; then
26821 ol_cv_func_ctime_r_nargs3=yes
26823 echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26826 ol_cv_func_ctime_r_nargs3=no
26828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26830 cat >conftest.$ac_ext <<_ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h. */
26840 time_t ti; char *buffer; ctime_r(&ti,buffer);
26845 rm -f conftest.$ac_objext
26846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26847 (eval $ac_compile) 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } &&
26854 { ac_try='test -z "$ac_c_werror_flag"
26855 || test ! -s conftest.err'
26856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; } &&
26861 { ac_try='test -s conftest.$ac_objext'
26862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863 (eval $ac_try) 2>&5
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; }; then
26867 ol_cv_func_ctime_r_nargs2=yes
26869 echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26872 ol_cv_func_ctime_r_nargs2=no
26874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26876 if test $ol_cv_func_ctime_r_nargs3 = yes &&
26877 test $ol_cv_func_ctime_r_nargs2 = no ; then
26879 ol_cv_func_ctime_r_nargs=3
26881 elif test $ol_cv_func_ctime_r_nargs3 = no &&
26882 test $ol_cv_func_ctime_r_nargs2 = yes ; then
26884 ol_cv_func_ctime_r_nargs=2
26887 ol_cv_func_ctime_r_nargs=0
26891 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26892 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26894 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26896 cat >>confdefs.h <<_ACEOF
26897 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26904 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26905 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26906 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26907 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26908 echo $ECHO_N "(cached) $ECHO_C" >&6
26910 cat >conftest.$ac_ext <<_ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h. */
26916 #include <sys/types.h>
26917 #include <sys/socket.h>
26918 #include <netinet/in.h>
26920 #define BUFSIZE (sizeof(struct hostent)+10)
26924 struct hostent hent; char buffer[BUFSIZE];
26925 int bufsize=BUFSIZE;int h_errno;
26926 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26927 buffer, bufsize, &h_errno);
26932 rm -f conftest.$ac_objext
26933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26934 (eval $ac_compile) 2>conftest.er1
26936 grep -v '^ *+' conftest.er1 >conftest.err
26938 cat conftest.err >&5
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); } &&
26941 { ac_try='test -z "$ac_c_werror_flag"
26942 || test ! -s conftest.err'
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); }; } &&
26948 { ac_try='test -s conftest.$ac_objext'
26949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950 (eval $ac_try) 2>&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; }; then
26954 ol_cv_func_gethostbyname_r_nargs5=yes
26956 echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26959 ol_cv_func_gethostbyname_r_nargs5=no
26961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26963 cat >conftest.$ac_ext <<_ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h. */
26969 #include <sys/types.h>
26970 #include <sys/socket.h>
26971 #include <netinet/in.h>
26973 #define BUFSIZE (sizeof(struct hostent)+10)
26977 struct hostent hent;struct hostent *rhent;
26978 char buffer[BUFSIZE];
26979 int bufsize=BUFSIZE;int h_errno;
26980 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26986 rm -f conftest.$ac_objext
26987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26988 (eval $ac_compile) 2>conftest.er1
26990 grep -v '^ *+' conftest.er1 >conftest.err
26992 cat conftest.err >&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); } &&
26995 { ac_try='test -z "$ac_c_werror_flag"
26996 || test ! -s conftest.err'
26997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998 (eval $ac_try) 2>&5
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); }; } &&
27002 { ac_try='test -s conftest.$ac_objext'
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27008 ol_cv_func_gethostbyname_r_nargs6=yes
27010 echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27013 ol_cv_func_gethostbyname_r_nargs6=no
27015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27017 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27018 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27020 ol_cv_func_gethostbyname_r_nargs=5
27022 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27023 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27025 ol_cv_func_gethostbyname_r_nargs=6
27028 ol_cv_func_gethostbyname_r_nargs=0
27032 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27033 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27034 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27036 cat >>confdefs.h <<_ACEOF
27037 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27043 ol_cv_func_gethostbyname_r_nargs=0
27046 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27047 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27048 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27049 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27050 echo $ECHO_N "(cached) $ECHO_C" >&6
27052 cat >conftest.$ac_ext <<_ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h. */
27058 #include <sys/types.h>
27059 #include <sys/socket.h>
27060 #include <netinet/in.h>
27062 #define BUFSIZE (sizeof(struct hostent)+10)
27066 struct hostent hent; char buffer[BUFSIZE];
27067 struct in_addr add;
27068 size_t alen=sizeof(struct in_addr);
27069 int bufsize=BUFSIZE;int h_errno;
27070 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27071 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27076 rm -f conftest.$ac_objext
27077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27078 (eval $ac_compile) 2>conftest.er1
27080 grep -v '^ *+' conftest.er1 >conftest.err
27082 cat conftest.err >&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); } &&
27085 { ac_try='test -z "$ac_c_werror_flag"
27086 || test ! -s conftest.err'
27087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088 (eval $ac_try) 2>&5
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); }; } &&
27092 { ac_try='test -s conftest.$ac_objext'
27093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094 (eval $ac_try) 2>&5
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; }; then
27098 ol_cv_func_gethostbyaddr_r_nargs7=yes
27100 echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27103 ol_cv_func_gethostbyaddr_r_nargs7=no
27105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 #include <sys/types.h>
27114 #include <sys/socket.h>
27115 #include <netinet/in.h>
27117 #define BUFSIZE (sizeof(struct hostent)+10)
27121 struct hostent hent;
27122 struct hostent *rhent; char buffer[BUFSIZE];
27123 struct in_addr add;
27124 size_t alen=sizeof(struct in_addr);
27125 int bufsize=BUFSIZE;int h_errno;
27126 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27127 alen, AF_INET, &hent, buffer, bufsize,
27133 rm -f conftest.$ac_objext
27134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27135 (eval $ac_compile) 2>conftest.er1
27137 grep -v '^ *+' conftest.er1 >conftest.err
27139 cat conftest.err >&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); } &&
27142 { ac_try='test -z "$ac_c_werror_flag"
27143 || test ! -s conftest.err'
27144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145 (eval $ac_try) 2>&5
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; } &&
27149 { ac_try='test -s conftest.$ac_objext'
27150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 (eval $ac_try) 2>&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; }; then
27155 ol_cv_func_gethostbyaddr_r_nargs8=yes
27157 echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27160 ol_cv_func_gethostbyaddr_r_nargs8=no
27162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27164 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27165 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27167 ol_cv_func_gethostbyaddr_r_nargs=7
27169 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27170 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27172 ol_cv_func_gethostbyaddr_r_nargs=8
27175 ol_cv_func_gethostbyaddr_r_nargs=0
27179 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27180 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27181 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27183 cat >>confdefs.h <<_ACEOF
27184 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27190 ol_cv_func_gethostbyaddr_r_nargs=0
27195 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27196 ol_cv_berkeley_db=no
27198 for ac_header in db.h
27200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27202 echo "$as_me:$LINENO: checking for $ac_header" >&5
27203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27205 echo $ECHO_N "(cached) $ECHO_C" >&6
27207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27210 # Is the header compilable?
27211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27213 cat >conftest.$ac_ext <<_ACEOF
27216 cat confdefs.h >>conftest.$ac_ext
27217 cat >>conftest.$ac_ext <<_ACEOF
27218 /* end confdefs.h. */
27219 $ac_includes_default
27220 #include <$ac_header>
27222 rm -f conftest.$ac_objext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27224 (eval $ac_compile) 2>conftest.er1
27226 grep -v '^ *+' conftest.er1 >conftest.err
27228 cat conftest.err >&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } &&
27231 { ac_try='test -z "$ac_c_werror_flag"
27232 || test ! -s conftest.err'
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest.$ac_objext'
27239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240 (eval $ac_try) 2>&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
27244 ac_header_compiler=yes
27246 echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27249 ac_header_compiler=no
27251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27253 echo "${ECHO_T}$ac_header_compiler" >&6
27255 # Is the header present?
27256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27258 cat >conftest.$ac_ext <<_ACEOF
27261 cat confdefs.h >>conftest.$ac_ext
27262 cat >>conftest.$ac_ext <<_ACEOF
27263 /* end confdefs.h. */
27264 #include <$ac_header>
27266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27269 grep -v '^ *+' conftest.er1 >conftest.err
27271 cat conftest.err >&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } >/dev/null; then
27274 if test -s conftest.err; then
27275 ac_cpp_err=$ac_c_preproc_warn_flag
27276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27283 if test -z "$ac_cpp_err"; then
27284 ac_header_preproc=yes
27286 echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27289 ac_header_preproc=no
27291 rm -f conftest.err conftest.$ac_ext
27292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27293 echo "${ECHO_T}$ac_header_preproc" >&6
27295 # So? What about this header?
27296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27302 ac_header_preproc=yes
27305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27319 ## --------------------------------------------- ##
27320 ## Report this to <http://www.openldap.org/its/> ##
27321 ## --------------------------------------------- ##
27324 sed "s/^/$as_me: WARNING: /" >&2
27327 echo "$as_me:$LINENO: checking for $ac_header" >&5
27328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27330 echo $ECHO_N "(cached) $ECHO_C" >&6
27332 eval "$as_ac_Header=\$ac_header_preproc"
27334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27339 cat >>confdefs.h <<_ACEOF
27340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27347 if test $ac_cv_header_db_h = yes; then
27350 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27351 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27352 if test "${ol_cv_bdb_major+set}" = set; then
27353 echo $ECHO_N "(cached) $ECHO_C" >&6
27357 if test $ol_cv_bdb_major = 0 ; then
27358 cat >conftest.$ac_ext <<_ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h. */
27366 #ifndef DB_VERSION_MAJOR
27367 # define DB_VERSION_MAJOR 1
27369 #if DB_VERSION_MAJOR == 4
27374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27375 $EGREP "__db_version" >/dev/null 2>&1; then
27383 if test $ol_cv_bdb_major = 0 ; then
27384 cat >conftest.$ac_ext <<_ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h. */
27392 #ifndef DB_VERSION_MAJOR
27393 # define DB_VERSION_MAJOR 1
27395 #if DB_VERSION_MAJOR == 3
27400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27401 $EGREP "__db_version" >/dev/null 2>&1; then
27409 if test $ol_cv_bdb_major = 0 ; then
27410 cat >conftest.$ac_ext <<_ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h. */
27418 #ifndef DB_VERSION_MAJOR
27419 # define DB_VERSION_MAJOR 1
27421 #if DB_VERSION_MAJOR == 2
27426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27427 $EGREP "__db_version" >/dev/null 2>&1; then
27435 if test $ol_cv_bdb_major = 0 ; then
27436 cat >conftest.$ac_ext <<_ACEOF
27439 cat confdefs.h >>conftest.$ac_ext
27440 cat >>conftest.$ac_ext <<_ACEOF
27441 /* end confdefs.h. */
27444 #ifndef DB_VERSION_MAJOR
27445 # define DB_VERSION_MAJOR 1
27447 #if DB_VERSION_MAJOR == 1
27452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27453 $EGREP "__db_version" >/dev/null 2>&1; then
27462 if test $ol_cv_bdb_major = 0 ; then
27463 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27464 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27465 { (exit 1); exit 1; }; }
27469 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27470 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27472 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27473 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27474 if test "${ol_cv_bdb_minor+set}" = set; then
27475 echo $ECHO_N "(cached) $ECHO_C" >&6
27479 if test $ol_cv_bdb_minor = 0 ; then
27480 cat >conftest.$ac_ext <<_ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27488 #ifndef DB_VERSION_MINOR
27489 # define DB_VERSION_MINOR 0
27491 #if DB_VERSION_MINOR == 9
27496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27497 $EGREP "__db_version" >/dev/null 2>&1; then
27505 if test $ol_cv_bdb_minor = 0 ; then
27506 cat >conftest.$ac_ext <<_ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h. */
27514 #ifndef DB_VERSION_MINOR
27515 # define DB_VERSION_MINOR 0
27517 #if DB_VERSION_MINOR == 8
27522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27523 $EGREP "__db_version" >/dev/null 2>&1; then
27531 if test $ol_cv_bdb_minor = 0 ; then
27532 cat >conftest.$ac_ext <<_ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h. */
27540 #ifndef DB_VERSION_MINOR
27541 # define DB_VERSION_MINOR 0
27543 #if DB_VERSION_MINOR == 7
27548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27549 $EGREP "__db_version" >/dev/null 2>&1; then
27557 if test $ol_cv_bdb_minor = 0 ; then
27558 cat >conftest.$ac_ext <<_ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h. */
27566 #ifndef DB_VERSION_MINOR
27567 # define DB_VERSION_MINOR 0
27569 #if DB_VERSION_MINOR == 6
27574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27575 $EGREP "__db_version" >/dev/null 2>&1; then
27583 if test $ol_cv_bdb_minor = 0 ; then
27584 cat >conftest.$ac_ext <<_ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h. */
27592 #ifndef DB_VERSION_MINOR
27593 # define DB_VERSION_MINOR 0
27595 #if DB_VERSION_MINOR == 5
27600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27601 $EGREP "__db_version" >/dev/null 2>&1; then
27609 if test $ol_cv_bdb_minor = 0 ; then
27610 cat >conftest.$ac_ext <<_ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h. */
27618 #ifndef DB_VERSION_MINOR
27619 # define DB_VERSION_MINOR 0
27621 #if DB_VERSION_MINOR == 4
27626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27627 $EGREP "__db_version" >/dev/null 2>&1; then
27635 if test $ol_cv_bdb_minor = 0 ; then
27636 cat >conftest.$ac_ext <<_ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h. */
27644 #ifndef DB_VERSION_MINOR
27645 # define DB_VERSION_MINOR 0
27647 #if DB_VERSION_MINOR == 3
27652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27653 $EGREP "__db_version" >/dev/null 2>&1; then
27661 if test $ol_cv_bdb_minor = 0 ; then
27662 cat >conftest.$ac_ext <<_ACEOF
27665 cat confdefs.h >>conftest.$ac_ext
27666 cat >>conftest.$ac_ext <<_ACEOF
27667 /* end confdefs.h. */
27670 #ifndef DB_VERSION_MINOR
27671 # define DB_VERSION_MINOR 0
27673 #if DB_VERSION_MINOR == 2
27678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27679 $EGREP "__db_version" >/dev/null 2>&1; then
27687 if test $ol_cv_bdb_minor = 0 ; then
27688 cat >conftest.$ac_ext <<_ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h. */
27696 #ifndef DB_VERSION_MINOR
27697 # define DB_VERSION_MINOR 0
27699 #if DB_VERSION_MINOR == 1
27704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27705 $EGREP "__db_version" >/dev/null 2>&1; then
27715 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27716 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27718 if test $ol_cv_bdb_major = 4 ; then
27719 if test $ol_cv_bdb_minor = 5 ; then
27720 if test $ol_cv_lib_db = no ; then
27721 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
27722 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
27723 if test "${ol_cv_db_db45+set}" = set; then
27724 echo $ECHO_N "(cached) $ECHO_C" >&6
27729 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27731 cat >conftest.$ac_ext <<_ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h. */
27738 #ifdef HAVE_DB_185_H
27739 # include <db_185.h>
27744 #ifndef DB_VERSION_MAJOR
27745 # define DB_VERSION_MAJOR 1
27749 #define NULL ((void*)0)
27756 #if DB_VERSION_MAJOR > 1
27759 int major, minor, patch;
27761 version = db_version( &major, &minor, &patch );
27763 if( major != DB_VERSION_MAJOR ||
27764 minor < DB_VERSION_MINOR )
27766 printf("Berkeley DB version mismatch\n"
27767 "\theader: %s\n\tlibrary: %s\n",
27768 DB_VERSION_STRING, version);
27774 #if DB_VERSION_MAJOR > 2
27775 db_env_create( NULL, 0 );
27776 #elif DB_VERSION_MAJOR > 1
27777 db_appexit( NULL );
27779 (void) dbopen( NULL, 0, 0, 0, NULL);
27786 rm -f conftest.$ac_objext conftest$ac_exeext
27787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27788 (eval $ac_link) 2>conftest.er1
27790 grep -v '^ *+' conftest.er1 >conftest.err
27792 cat conftest.err >&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } &&
27795 { ac_try='test -z "$ac_c_werror_flag"
27796 || test ! -s conftest.err'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; } &&
27802 { ac_try='test -s conftest$ac_exeext'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27815 rm -f conftest.err conftest.$ac_objext \
27816 conftest$ac_exeext conftest.$ac_ext
27821 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
27822 echo "${ECHO_T}$ol_cv_db_db45" >&6
27824 if test $ol_cv_db_db45 = yes ; then
27825 ol_cv_lib_db=-ldb45
27829 if test $ol_cv_lib_db = no ; then
27830 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
27831 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
27832 if test "${ol_cv_db_db_45+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27838 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27840 cat >conftest.$ac_ext <<_ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27847 #ifdef HAVE_DB_185_H
27848 # include <db_185.h>
27853 #ifndef DB_VERSION_MAJOR
27854 # define DB_VERSION_MAJOR 1
27858 #define NULL ((void*)0)
27865 #if DB_VERSION_MAJOR > 1
27868 int major, minor, patch;
27870 version = db_version( &major, &minor, &patch );
27872 if( major != DB_VERSION_MAJOR ||
27873 minor < DB_VERSION_MINOR )
27875 printf("Berkeley DB version mismatch\n"
27876 "\theader: %s\n\tlibrary: %s\n",
27877 DB_VERSION_STRING, version);
27883 #if DB_VERSION_MAJOR > 2
27884 db_env_create( NULL, 0 );
27885 #elif DB_VERSION_MAJOR > 1
27886 db_appexit( NULL );
27888 (void) dbopen( NULL, 0, 0, 0, NULL);
27895 rm -f conftest.$ac_objext conftest$ac_exeext
27896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27897 (eval $ac_link) 2>conftest.er1
27899 grep -v '^ *+' conftest.er1 >conftest.err
27901 cat conftest.err >&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); } &&
27904 { ac_try='test -z "$ac_c_werror_flag"
27905 || test ! -s conftest.err'
27906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27907 (eval $ac_try) 2>&5
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); }; } &&
27911 { ac_try='test -s conftest$ac_exeext'
27912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913 (eval $ac_try) 2>&5
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); }; }; then
27919 echo "$as_me: failed program was:" >&5
27920 sed 's/^/| /' conftest.$ac_ext >&5
27924 rm -f conftest.err conftest.$ac_objext \
27925 conftest$ac_exeext conftest.$ac_ext
27930 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
27931 echo "${ECHO_T}$ol_cv_db_db_45" >&6
27933 if test $ol_cv_db_db_45 = yes ; then
27934 ol_cv_lib_db=-ldb-45
27938 if test $ol_cv_lib_db = no ; then
27939 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
27940 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
27941 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
27942 echo $ECHO_N "(cached) $ECHO_C" >&6
27947 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27949 cat >conftest.$ac_ext <<_ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h. */
27956 #ifdef HAVE_DB_185_H
27957 # include <db_185.h>
27962 #ifndef DB_VERSION_MAJOR
27963 # define DB_VERSION_MAJOR 1
27967 #define NULL ((void*)0)
27974 #if DB_VERSION_MAJOR > 1
27977 int major, minor, patch;
27979 version = db_version( &major, &minor, &patch );
27981 if( major != DB_VERSION_MAJOR ||
27982 minor < DB_VERSION_MINOR )
27984 printf("Berkeley DB version mismatch\n"
27985 "\theader: %s\n\tlibrary: %s\n",
27986 DB_VERSION_STRING, version);
27992 #if DB_VERSION_MAJOR > 2
27993 db_env_create( NULL, 0 );
27994 #elif DB_VERSION_MAJOR > 1
27995 db_appexit( NULL );
27997 (void) dbopen( NULL, 0, 0, 0, NULL);
28004 rm -f conftest.$ac_objext conftest$ac_exeext
28005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28006 (eval $ac_link) 2>conftest.er1
28008 grep -v '^ *+' conftest.er1 >conftest.err
28010 cat conftest.err >&5
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); } &&
28013 { ac_try='test -z "$ac_c_werror_flag"
28014 || test ! -s conftest.err'
28015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28016 (eval $ac_try) 2>&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); }; } &&
28020 { ac_try='test -s conftest$ac_exeext'
28021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022 (eval $ac_try) 2>&5
28024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); }; }; then
28026 ol_cv_db_db_4_dot_5=yes
28028 echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28031 ol_cv_db_db_4_dot_5=no
28033 rm -f conftest.err conftest.$ac_objext \
28034 conftest$ac_exeext conftest.$ac_ext
28039 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
28040 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
28042 if test $ol_cv_db_db_4_dot_5 = yes ; then
28043 ol_cv_lib_db=-ldb-4.5
28047 if test $ol_cv_lib_db = no ; then
28048 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
28049 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
28050 if test "${ol_cv_db_db_4_5+set}" = set; then
28051 echo $ECHO_N "(cached) $ECHO_C" >&6
28056 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28058 cat >conftest.$ac_ext <<_ACEOF
28061 cat confdefs.h >>conftest.$ac_ext
28062 cat >>conftest.$ac_ext <<_ACEOF
28063 /* end confdefs.h. */
28065 #ifdef HAVE_DB_185_H
28066 # include <db_185.h>
28071 #ifndef DB_VERSION_MAJOR
28072 # define DB_VERSION_MAJOR 1
28076 #define NULL ((void*)0)
28083 #if DB_VERSION_MAJOR > 1
28086 int major, minor, patch;
28088 version = db_version( &major, &minor, &patch );
28090 if( major != DB_VERSION_MAJOR ||
28091 minor < DB_VERSION_MINOR )
28093 printf("Berkeley DB version mismatch\n"
28094 "\theader: %s\n\tlibrary: %s\n",
28095 DB_VERSION_STRING, version);
28101 #if DB_VERSION_MAJOR > 2
28102 db_env_create( NULL, 0 );
28103 #elif DB_VERSION_MAJOR > 1
28104 db_appexit( NULL );
28106 (void) dbopen( NULL, 0, 0, 0, NULL);
28113 rm -f conftest.$ac_objext conftest$ac_exeext
28114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28115 (eval $ac_link) 2>conftest.er1
28117 grep -v '^ *+' conftest.er1 >conftest.err
28119 cat conftest.err >&5
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); } &&
28122 { ac_try='test -z "$ac_c_werror_flag"
28123 || test ! -s conftest.err'
28124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125 (eval $ac_try) 2>&5
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); }; } &&
28129 { ac_try='test -s conftest$ac_exeext'
28130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131 (eval $ac_try) 2>&5
28133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134 (exit $ac_status); }; }; then
28135 ol_cv_db_db_4_5=yes
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28142 rm -f conftest.err conftest.$ac_objext \
28143 conftest$ac_exeext conftest.$ac_ext
28148 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
28149 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
28151 if test $ol_cv_db_db_4_5 = yes ; then
28152 ol_cv_lib_db=-ldb-4-5
28156 elif test $ol_cv_bdb_minor = 4 ; then
28157 if test $ol_cv_lib_db = no ; then
28158 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28159 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28160 if test "${ol_cv_db_db44+set}" = set; then
28161 echo $ECHO_N "(cached) $ECHO_C" >&6
28166 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28168 cat >conftest.$ac_ext <<_ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h. */
28175 #ifdef HAVE_DB_185_H
28176 # include <db_185.h>
28181 #ifndef DB_VERSION_MAJOR
28182 # define DB_VERSION_MAJOR 1
28186 #define NULL ((void*)0)
28193 #if DB_VERSION_MAJOR > 1
28196 int major, minor, patch;
28198 version = db_version( &major, &minor, &patch );
28200 if( major != DB_VERSION_MAJOR ||
28201 minor < DB_VERSION_MINOR )
28203 printf("Berkeley DB version mismatch\n"
28204 "\theader: %s\n\tlibrary: %s\n",
28205 DB_VERSION_STRING, version);
28211 #if DB_VERSION_MAJOR > 2
28212 db_env_create( NULL, 0 );
28213 #elif DB_VERSION_MAJOR > 1
28214 db_appexit( NULL );
28216 (void) dbopen( NULL, 0, 0, 0, NULL);
28223 rm -f conftest.$ac_objext conftest$ac_exeext
28224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28225 (eval $ac_link) 2>conftest.er1
28227 grep -v '^ *+' conftest.er1 >conftest.err
28229 cat conftest.err >&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); } &&
28232 { ac_try='test -z "$ac_c_werror_flag"
28233 || test ! -s conftest.err'
28234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235 (eval $ac_try) 2>&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); }; } &&
28239 { ac_try='test -s conftest$ac_exeext'
28240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241 (eval $ac_try) 2>&5
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28247 echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28252 rm -f conftest.err conftest.$ac_objext \
28253 conftest$ac_exeext conftest.$ac_ext
28258 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28259 echo "${ECHO_T}$ol_cv_db_db44" >&6
28261 if test $ol_cv_db_db44 = yes ; then
28262 ol_cv_lib_db=-ldb44
28266 if test $ol_cv_lib_db = no ; then
28267 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28268 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28269 if test "${ol_cv_db_db_44+set}" = set; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28275 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28277 cat >conftest.$ac_ext <<_ACEOF
28280 cat confdefs.h >>conftest.$ac_ext
28281 cat >>conftest.$ac_ext <<_ACEOF
28282 /* end confdefs.h. */
28284 #ifdef HAVE_DB_185_H
28285 # include <db_185.h>
28290 #ifndef DB_VERSION_MAJOR
28291 # define DB_VERSION_MAJOR 1
28295 #define NULL ((void*)0)
28302 #if DB_VERSION_MAJOR > 1
28305 int major, minor, patch;
28307 version = db_version( &major, &minor, &patch );
28309 if( major != DB_VERSION_MAJOR ||
28310 minor < DB_VERSION_MINOR )
28312 printf("Berkeley DB version mismatch\n"
28313 "\theader: %s\n\tlibrary: %s\n",
28314 DB_VERSION_STRING, version);
28320 #if DB_VERSION_MAJOR > 2
28321 db_env_create( NULL, 0 );
28322 #elif DB_VERSION_MAJOR > 1
28323 db_appexit( NULL );
28325 (void) dbopen( NULL, 0, 0, 0, NULL);
28332 rm -f conftest.$ac_objext conftest$ac_exeext
28333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28334 (eval $ac_link) 2>conftest.er1
28336 grep -v '^ *+' conftest.er1 >conftest.err
28338 cat conftest.err >&5
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); } &&
28341 { ac_try='test -z "$ac_c_werror_flag"
28342 || test ! -s conftest.err'
28343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344 (eval $ac_try) 2>&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; } &&
28348 { ac_try='test -s conftest$ac_exeext'
28349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350 (eval $ac_try) 2>&5
28352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
28356 echo "$as_me: failed program was:" >&5
28357 sed 's/^/| /' conftest.$ac_ext >&5
28361 rm -f conftest.err conftest.$ac_objext \
28362 conftest$ac_exeext conftest.$ac_ext
28367 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28368 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28370 if test $ol_cv_db_db_44 = yes ; then
28371 ol_cv_lib_db=-ldb-44
28375 if test $ol_cv_lib_db = no ; then
28376 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28377 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28378 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28379 echo $ECHO_N "(cached) $ECHO_C" >&6
28384 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28386 cat >conftest.$ac_ext <<_ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h. */
28393 #ifdef HAVE_DB_185_H
28394 # include <db_185.h>
28399 #ifndef DB_VERSION_MAJOR
28400 # define DB_VERSION_MAJOR 1
28404 #define NULL ((void*)0)
28411 #if DB_VERSION_MAJOR > 1
28414 int major, minor, patch;
28416 version = db_version( &major, &minor, &patch );
28418 if( major != DB_VERSION_MAJOR ||
28419 minor < DB_VERSION_MINOR )
28421 printf("Berkeley DB version mismatch\n"
28422 "\theader: %s\n\tlibrary: %s\n",
28423 DB_VERSION_STRING, version);
28429 #if DB_VERSION_MAJOR > 2
28430 db_env_create( NULL, 0 );
28431 #elif DB_VERSION_MAJOR > 1
28432 db_appexit( NULL );
28434 (void) dbopen( NULL, 0, 0, 0, NULL);
28441 rm -f conftest.$ac_objext conftest$ac_exeext
28442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28443 (eval $ac_link) 2>conftest.er1
28445 grep -v '^ *+' conftest.er1 >conftest.err
28447 cat conftest.err >&5
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); } &&
28450 { ac_try='test -z "$ac_c_werror_flag"
28451 || test ! -s conftest.err'
28452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453 (eval $ac_try) 2>&5
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest$ac_exeext'
28458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459 (eval $ac_try) 2>&5
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; }; then
28463 ol_cv_db_db_4_dot_4=yes
28465 echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28468 ol_cv_db_db_4_dot_4=no
28470 rm -f conftest.err conftest.$ac_objext \
28471 conftest$ac_exeext conftest.$ac_ext
28476 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28477 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28479 if test $ol_cv_db_db_4_dot_4 = yes ; then
28480 ol_cv_lib_db=-ldb-4.4
28484 if test $ol_cv_lib_db = no ; then
28485 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28486 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28487 if test "${ol_cv_db_db_4_4+set}" = set; then
28488 echo $ECHO_N "(cached) $ECHO_C" >&6
28493 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28495 cat >conftest.$ac_ext <<_ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h. */
28502 #ifdef HAVE_DB_185_H
28503 # include <db_185.h>
28508 #ifndef DB_VERSION_MAJOR
28509 # define DB_VERSION_MAJOR 1
28513 #define NULL ((void*)0)
28520 #if DB_VERSION_MAJOR > 1
28523 int major, minor, patch;
28525 version = db_version( &major, &minor, &patch );
28527 if( major != DB_VERSION_MAJOR ||
28528 minor < DB_VERSION_MINOR )
28530 printf("Berkeley DB version mismatch\n"
28531 "\theader: %s\n\tlibrary: %s\n",
28532 DB_VERSION_STRING, version);
28538 #if DB_VERSION_MAJOR > 2
28539 db_env_create( NULL, 0 );
28540 #elif DB_VERSION_MAJOR > 1
28541 db_appexit( NULL );
28543 (void) dbopen( NULL, 0, 0, 0, NULL);
28550 rm -f conftest.$ac_objext conftest$ac_exeext
28551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28552 (eval $ac_link) 2>conftest.er1
28554 grep -v '^ *+' conftest.er1 >conftest.err
28556 cat conftest.err >&5
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); } &&
28559 { ac_try='test -z "$ac_c_werror_flag"
28560 || test ! -s conftest.err'
28561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562 (eval $ac_try) 2>&5
28564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565 (exit $ac_status); }; } &&
28566 { ac_try='test -s conftest$ac_exeext'
28567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568 (eval $ac_try) 2>&5
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; }; then
28572 ol_cv_db_db_4_4=yes
28574 echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.$ac_ext >&5
28579 rm -f conftest.err conftest.$ac_objext \
28580 conftest$ac_exeext conftest.$ac_ext
28585 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28586 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28588 if test $ol_cv_db_db_4_4 = yes ; then
28589 ol_cv_lib_db=-ldb-4-4
28593 elif test $ol_cv_bdb_minor = 3 ; then
28594 if test $ol_cv_lib_db = no ; then
28595 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28596 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28597 if test "${ol_cv_db_db43+set}" = set; then
28598 echo $ECHO_N "(cached) $ECHO_C" >&6
28603 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28605 cat >conftest.$ac_ext <<_ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h. */
28612 #ifdef HAVE_DB_185_H
28613 # include <db_185.h>
28618 #ifndef DB_VERSION_MAJOR
28619 # define DB_VERSION_MAJOR 1
28623 #define NULL ((void*)0)
28630 #if DB_VERSION_MAJOR > 1
28633 int major, minor, patch;
28635 version = db_version( &major, &minor, &patch );
28637 if( major != DB_VERSION_MAJOR ||
28638 minor < DB_VERSION_MINOR )
28640 printf("Berkeley DB version mismatch\n"
28641 "\theader: %s\n\tlibrary: %s\n",
28642 DB_VERSION_STRING, version);
28648 #if DB_VERSION_MAJOR > 2
28649 db_env_create( NULL, 0 );
28650 #elif DB_VERSION_MAJOR > 1
28651 db_appexit( NULL );
28653 (void) dbopen( NULL, 0, 0, 0, NULL);
28660 rm -f conftest.$ac_objext conftest$ac_exeext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28662 (eval $ac_link) 2>conftest.er1
28664 grep -v '^ *+' conftest.er1 >conftest.err
28666 cat conftest.err >&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); } &&
28669 { ac_try='test -z "$ac_c_werror_flag"
28670 || test ! -s conftest.err'
28671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672 (eval $ac_try) 2>&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest$ac_exeext'
28677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678 (eval $ac_try) 2>&5
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
28684 echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28689 rm -f conftest.err conftest.$ac_objext \
28690 conftest$ac_exeext conftest.$ac_ext
28695 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28696 echo "${ECHO_T}$ol_cv_db_db43" >&6
28698 if test $ol_cv_db_db43 = yes ; then
28699 ol_cv_lib_db=-ldb43
28703 if test $ol_cv_lib_db = no ; then
28704 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28705 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28706 if test "${ol_cv_db_db_43+set}" = set; then
28707 echo $ECHO_N "(cached) $ECHO_C" >&6
28712 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28714 cat >conftest.$ac_ext <<_ACEOF
28717 cat confdefs.h >>conftest.$ac_ext
28718 cat >>conftest.$ac_ext <<_ACEOF
28719 /* end confdefs.h. */
28721 #ifdef HAVE_DB_185_H
28722 # include <db_185.h>
28727 #ifndef DB_VERSION_MAJOR
28728 # define DB_VERSION_MAJOR 1
28732 #define NULL ((void*)0)
28739 #if DB_VERSION_MAJOR > 1
28742 int major, minor, patch;
28744 version = db_version( &major, &minor, &patch );
28746 if( major != DB_VERSION_MAJOR ||
28747 minor < DB_VERSION_MINOR )
28749 printf("Berkeley DB version mismatch\n"
28750 "\theader: %s\n\tlibrary: %s\n",
28751 DB_VERSION_STRING, version);
28757 #if DB_VERSION_MAJOR > 2
28758 db_env_create( NULL, 0 );
28759 #elif DB_VERSION_MAJOR > 1
28760 db_appexit( NULL );
28762 (void) dbopen( NULL, 0, 0, 0, NULL);
28769 rm -f conftest.$ac_objext conftest$ac_exeext
28770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28771 (eval $ac_link) 2>conftest.er1
28773 grep -v '^ *+' conftest.er1 >conftest.err
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } &&
28778 { ac_try='test -z "$ac_c_werror_flag"
28779 || test ! -s conftest.err'
28780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781 (eval $ac_try) 2>&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; } &&
28785 { ac_try='test -s conftest$ac_exeext'
28786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787 (eval $ac_try) 2>&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; }; then
28793 echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28798 rm -f conftest.err conftest.$ac_objext \
28799 conftest$ac_exeext conftest.$ac_ext
28804 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28805 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28807 if test $ol_cv_db_db_43 = yes ; then
28808 ol_cv_lib_db=-ldb-43
28812 if test $ol_cv_lib_db = no ; then
28813 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28814 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28815 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28821 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28823 cat >conftest.$ac_ext <<_ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h. */
28830 #ifdef HAVE_DB_185_H
28831 # include <db_185.h>
28836 #ifndef DB_VERSION_MAJOR
28837 # define DB_VERSION_MAJOR 1
28841 #define NULL ((void*)0)
28848 #if DB_VERSION_MAJOR > 1
28851 int major, minor, patch;
28853 version = db_version( &major, &minor, &patch );
28855 if( major != DB_VERSION_MAJOR ||
28856 minor < DB_VERSION_MINOR )
28858 printf("Berkeley DB version mismatch\n"
28859 "\theader: %s\n\tlibrary: %s\n",
28860 DB_VERSION_STRING, version);
28866 #if DB_VERSION_MAJOR > 2
28867 db_env_create( NULL, 0 );
28868 #elif DB_VERSION_MAJOR > 1
28869 db_appexit( NULL );
28871 (void) dbopen( NULL, 0, 0, 0, NULL);
28878 rm -f conftest.$ac_objext conftest$ac_exeext
28879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28880 (eval $ac_link) 2>conftest.er1
28882 grep -v '^ *+' conftest.er1 >conftest.err
28884 cat conftest.err >&5
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); } &&
28887 { ac_try='test -z "$ac_c_werror_flag"
28888 || test ! -s conftest.err'
28889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890 (eval $ac_try) 2>&5
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; } &&
28894 { ac_try='test -s conftest$ac_exeext'
28895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28896 (eval $ac_try) 2>&5
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; }; then
28900 ol_cv_db_db_4_dot_3=yes
28902 echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28905 ol_cv_db_db_4_dot_3=no
28907 rm -f conftest.err conftest.$ac_objext \
28908 conftest$ac_exeext conftest.$ac_ext
28913 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28914 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28916 if test $ol_cv_db_db_4_dot_3 = yes ; then
28917 ol_cv_lib_db=-ldb-4.3
28921 if test $ol_cv_lib_db = no ; then
28922 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28923 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28924 if test "${ol_cv_db_db_4_3+set}" = set; then
28925 echo $ECHO_N "(cached) $ECHO_C" >&6
28930 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28932 cat >conftest.$ac_ext <<_ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h. */
28939 #ifdef HAVE_DB_185_H
28940 # include <db_185.h>
28945 #ifndef DB_VERSION_MAJOR
28946 # define DB_VERSION_MAJOR 1
28950 #define NULL ((void*)0)
28957 #if DB_VERSION_MAJOR > 1
28960 int major, minor, patch;
28962 version = db_version( &major, &minor, &patch );
28964 if( major != DB_VERSION_MAJOR ||
28965 minor < DB_VERSION_MINOR )
28967 printf("Berkeley DB version mismatch\n"
28968 "\theader: %s\n\tlibrary: %s\n",
28969 DB_VERSION_STRING, version);
28975 #if DB_VERSION_MAJOR > 2
28976 db_env_create( NULL, 0 );
28977 #elif DB_VERSION_MAJOR > 1
28978 db_appexit( NULL );
28980 (void) dbopen( NULL, 0, 0, 0, NULL);
28987 rm -f conftest.$ac_objext conftest$ac_exeext
28988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28989 (eval $ac_link) 2>conftest.er1
28991 grep -v '^ *+' conftest.er1 >conftest.err
28993 cat conftest.err >&5
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); } &&
28996 { ac_try='test -z "$ac_c_werror_flag"
28997 || test ! -s conftest.err'
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; } &&
29003 { ac_try='test -s conftest$ac_exeext'
29004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005 (eval $ac_try) 2>&5
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; }; then
29009 ol_cv_db_db_4_3=yes
29011 echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29016 rm -f conftest.err conftest.$ac_objext \
29017 conftest$ac_exeext conftest.$ac_ext
29022 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29023 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29025 if test $ol_cv_db_db_4_3 = yes ; then
29026 ol_cv_lib_db=-ldb-4-3
29030 elif test $ol_cv_bdb_minor = 2 ; then
29031 if test $ol_cv_lib_db = no ; then
29032 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29033 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29034 if test "${ol_cv_db_db42+set}" = set; then
29035 echo $ECHO_N "(cached) $ECHO_C" >&6
29040 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29042 cat >conftest.$ac_ext <<_ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h. */
29049 #ifdef HAVE_DB_185_H
29050 # include <db_185.h>
29055 #ifndef DB_VERSION_MAJOR
29056 # define DB_VERSION_MAJOR 1
29060 #define NULL ((void*)0)
29067 #if DB_VERSION_MAJOR > 1
29070 int major, minor, patch;
29072 version = db_version( &major, &minor, &patch );
29074 if( major != DB_VERSION_MAJOR ||
29075 minor < DB_VERSION_MINOR )
29077 printf("Berkeley DB version mismatch\n"
29078 "\theader: %s\n\tlibrary: %s\n",
29079 DB_VERSION_STRING, version);
29085 #if DB_VERSION_MAJOR > 2
29086 db_env_create( NULL, 0 );
29087 #elif DB_VERSION_MAJOR > 1
29088 db_appexit( NULL );
29090 (void) dbopen( NULL, 0, 0, 0, NULL);
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29099 (eval $ac_link) 2>conftest.er1
29101 grep -v '^ *+' conftest.er1 >conftest.err
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } &&
29106 { ac_try='test -z "$ac_c_werror_flag"
29107 || test ! -s conftest.err'
29108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109 (eval $ac_try) 2>&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; } &&
29113 { ac_try='test -s conftest$ac_exeext'
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; }; then
29121 echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29126 rm -f conftest.err conftest.$ac_objext \
29127 conftest$ac_exeext conftest.$ac_ext
29132 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29133 echo "${ECHO_T}$ol_cv_db_db42" >&6
29135 if test $ol_cv_db_db42 = yes ; then
29136 ol_cv_lib_db=-ldb42
29140 if test $ol_cv_lib_db = no ; then
29141 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29142 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29143 if test "${ol_cv_db_db_42+set}" = set; then
29144 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29151 cat >conftest.$ac_ext <<_ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h. */
29158 #ifdef HAVE_DB_185_H
29159 # include <db_185.h>
29164 #ifndef DB_VERSION_MAJOR
29165 # define DB_VERSION_MAJOR 1
29169 #define NULL ((void*)0)
29176 #if DB_VERSION_MAJOR > 1
29179 int major, minor, patch;
29181 version = db_version( &major, &minor, &patch );
29183 if( major != DB_VERSION_MAJOR ||
29184 minor < DB_VERSION_MINOR )
29186 printf("Berkeley DB version mismatch\n"
29187 "\theader: %s\n\tlibrary: %s\n",
29188 DB_VERSION_STRING, version);
29194 #if DB_VERSION_MAJOR > 2
29195 db_env_create( NULL, 0 );
29196 #elif DB_VERSION_MAJOR > 1
29197 db_appexit( NULL );
29199 (void) dbopen( NULL, 0, 0, 0, NULL);
29206 rm -f conftest.$ac_objext conftest$ac_exeext
29207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29208 (eval $ac_link) 2>conftest.er1
29210 grep -v '^ *+' conftest.er1 >conftest.err
29212 cat conftest.err >&5
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); } &&
29215 { ac_try='test -z "$ac_c_werror_flag"
29216 || test ! -s conftest.err'
29217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218 (eval $ac_try) 2>&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); }; } &&
29222 { ac_try='test -s conftest$ac_exeext'
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; }; then
29230 echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29235 rm -f conftest.err conftest.$ac_objext \
29236 conftest$ac_exeext conftest.$ac_ext
29241 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29242 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29244 if test $ol_cv_db_db_42 = yes ; then
29245 ol_cv_lib_db=-ldb-42
29249 if test $ol_cv_lib_db = no ; then
29250 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29251 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29252 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29253 echo $ECHO_N "(cached) $ECHO_C" >&6
29258 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29260 cat >conftest.$ac_ext <<_ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29267 #ifdef HAVE_DB_185_H
29268 # include <db_185.h>
29273 #ifndef DB_VERSION_MAJOR
29274 # define DB_VERSION_MAJOR 1
29278 #define NULL ((void*)0)
29285 #if DB_VERSION_MAJOR > 1
29288 int major, minor, patch;
29290 version = db_version( &major, &minor, &patch );
29292 if( major != DB_VERSION_MAJOR ||
29293 minor < DB_VERSION_MINOR )
29295 printf("Berkeley DB version mismatch\n"
29296 "\theader: %s\n\tlibrary: %s\n",
29297 DB_VERSION_STRING, version);
29303 #if DB_VERSION_MAJOR > 2
29304 db_env_create( NULL, 0 );
29305 #elif DB_VERSION_MAJOR > 1
29306 db_appexit( NULL );
29308 (void) dbopen( NULL, 0, 0, 0, NULL);
29315 rm -f conftest.$ac_objext conftest$ac_exeext
29316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29317 (eval $ac_link) 2>conftest.er1
29319 grep -v '^ *+' conftest.er1 >conftest.err
29321 cat conftest.err >&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } &&
29324 { ac_try='test -z "$ac_c_werror_flag"
29325 || test ! -s conftest.err'
29326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327 (eval $ac_try) 2>&5
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; } &&
29331 { ac_try='test -s conftest$ac_exeext'
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; }; then
29337 ol_cv_db_db_4_dot_2=yes
29339 echo "$as_me: failed program was:" >&5
29340 sed 's/^/| /' conftest.$ac_ext >&5
29342 ol_cv_db_db_4_dot_2=no
29344 rm -f conftest.err conftest.$ac_objext \
29345 conftest$ac_exeext conftest.$ac_ext
29350 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29351 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29353 if test $ol_cv_db_db_4_dot_2 = yes ; then
29354 ol_cv_lib_db=-ldb-4.2
29358 if test $ol_cv_lib_db = no ; then
29359 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29360 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29361 if test "${ol_cv_db_db_4_2+set}" = set; then
29362 echo $ECHO_N "(cached) $ECHO_C" >&6
29367 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29369 cat >conftest.$ac_ext <<_ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h. */
29376 #ifdef HAVE_DB_185_H
29377 # include <db_185.h>
29382 #ifndef DB_VERSION_MAJOR
29383 # define DB_VERSION_MAJOR 1
29387 #define NULL ((void*)0)
29394 #if DB_VERSION_MAJOR > 1
29397 int major, minor, patch;
29399 version = db_version( &major, &minor, &patch );
29401 if( major != DB_VERSION_MAJOR ||
29402 minor < DB_VERSION_MINOR )
29404 printf("Berkeley DB version mismatch\n"
29405 "\theader: %s\n\tlibrary: %s\n",
29406 DB_VERSION_STRING, version);
29412 #if DB_VERSION_MAJOR > 2
29413 db_env_create( NULL, 0 );
29414 #elif DB_VERSION_MAJOR > 1
29415 db_appexit( NULL );
29417 (void) dbopen( NULL, 0, 0, 0, NULL);
29424 rm -f conftest.$ac_objext conftest$ac_exeext
29425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29426 (eval $ac_link) 2>conftest.er1
29428 grep -v '^ *+' conftest.er1 >conftest.err
29430 cat conftest.err >&5
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
29433 { ac_try='test -z "$ac_c_werror_flag"
29434 || test ! -s conftest.err'
29435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436 (eval $ac_try) 2>&5
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest$ac_exeext'
29441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29442 (eval $ac_try) 2>&5
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
29446 ol_cv_db_db_4_2=yes
29448 echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29453 rm -f conftest.err conftest.$ac_objext \
29454 conftest$ac_exeext conftest.$ac_ext
29459 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29460 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29462 if test $ol_cv_db_db_4_2 = yes ; then
29463 ol_cv_lib_db=-ldb-4-2
29467 elif test $ol_cv_bdb_minor = 1 ; then
29468 if test $ol_cv_lib_db = no ; then
29469 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29470 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29471 if test "${ol_cv_db_db41+set}" = set; then
29472 echo $ECHO_N "(cached) $ECHO_C" >&6
29477 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29479 cat >conftest.$ac_ext <<_ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h. */
29486 #ifdef HAVE_DB_185_H
29487 # include <db_185.h>
29492 #ifndef DB_VERSION_MAJOR
29493 # define DB_VERSION_MAJOR 1
29497 #define NULL ((void*)0)
29504 #if DB_VERSION_MAJOR > 1
29507 int major, minor, patch;
29509 version = db_version( &major, &minor, &patch );
29511 if( major != DB_VERSION_MAJOR ||
29512 minor < DB_VERSION_MINOR )
29514 printf("Berkeley DB version mismatch\n"
29515 "\theader: %s\n\tlibrary: %s\n",
29516 DB_VERSION_STRING, version);
29522 #if DB_VERSION_MAJOR > 2
29523 db_env_create( NULL, 0 );
29524 #elif DB_VERSION_MAJOR > 1
29525 db_appexit( NULL );
29527 (void) dbopen( NULL, 0, 0, 0, NULL);
29534 rm -f conftest.$ac_objext conftest$ac_exeext
29535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29536 (eval $ac_link) 2>conftest.er1
29538 grep -v '^ *+' conftest.er1 >conftest.err
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } &&
29543 { ac_try='test -z "$ac_c_werror_flag"
29544 || test ! -s conftest.err'
29545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546 (eval $ac_try) 2>&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); }; } &&
29550 { ac_try='test -s conftest$ac_exeext'
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; }; then
29558 echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29563 rm -f conftest.err conftest.$ac_objext \
29564 conftest$ac_exeext conftest.$ac_ext
29569 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29570 echo "${ECHO_T}$ol_cv_db_db41" >&6
29572 if test $ol_cv_db_db41 = yes ; then
29573 ol_cv_lib_db=-ldb41
29577 if test $ol_cv_lib_db = no ; then
29578 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29579 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29580 if test "${ol_cv_db_db_41+set}" = set; then
29581 echo $ECHO_N "(cached) $ECHO_C" >&6
29586 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29588 cat >conftest.$ac_ext <<_ACEOF
29591 cat confdefs.h >>conftest.$ac_ext
29592 cat >>conftest.$ac_ext <<_ACEOF
29593 /* end confdefs.h. */
29595 #ifdef HAVE_DB_185_H
29596 # include <db_185.h>
29601 #ifndef DB_VERSION_MAJOR
29602 # define DB_VERSION_MAJOR 1
29606 #define NULL ((void*)0)
29613 #if DB_VERSION_MAJOR > 1
29616 int major, minor, patch;
29618 version = db_version( &major, &minor, &patch );
29620 if( major != DB_VERSION_MAJOR ||
29621 minor < DB_VERSION_MINOR )
29623 printf("Berkeley DB version mismatch\n"
29624 "\theader: %s\n\tlibrary: %s\n",
29625 DB_VERSION_STRING, version);
29631 #if DB_VERSION_MAJOR > 2
29632 db_env_create( NULL, 0 );
29633 #elif DB_VERSION_MAJOR > 1
29634 db_appexit( NULL );
29636 (void) dbopen( NULL, 0, 0, 0, NULL);
29643 rm -f conftest.$ac_objext conftest$ac_exeext
29644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29645 (eval $ac_link) 2>conftest.er1
29647 grep -v '^ *+' conftest.er1 >conftest.err
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
29652 { ac_try='test -z "$ac_c_werror_flag"
29653 || test ! -s conftest.err'
29654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655 (eval $ac_try) 2>&5
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); }; } &&
29659 { ac_try='test -s conftest$ac_exeext'
29660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29661 (eval $ac_try) 2>&5
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; }; then
29667 echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29672 rm -f conftest.err conftest.$ac_objext \
29673 conftest$ac_exeext conftest.$ac_ext
29678 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29679 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29681 if test $ol_cv_db_db_41 = yes ; then
29682 ol_cv_lib_db=-ldb-41
29686 if test $ol_cv_lib_db = no ; then
29687 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29688 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29689 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29690 echo $ECHO_N "(cached) $ECHO_C" >&6
29695 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29697 cat >conftest.$ac_ext <<_ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h. */
29704 #ifdef HAVE_DB_185_H
29705 # include <db_185.h>
29710 #ifndef DB_VERSION_MAJOR
29711 # define DB_VERSION_MAJOR 1
29715 #define NULL ((void*)0)
29722 #if DB_VERSION_MAJOR > 1
29725 int major, minor, patch;
29727 version = db_version( &major, &minor, &patch );
29729 if( major != DB_VERSION_MAJOR ||
29730 minor < DB_VERSION_MINOR )
29732 printf("Berkeley DB version mismatch\n"
29733 "\theader: %s\n\tlibrary: %s\n",
29734 DB_VERSION_STRING, version);
29740 #if DB_VERSION_MAJOR > 2
29741 db_env_create( NULL, 0 );
29742 #elif DB_VERSION_MAJOR > 1
29743 db_appexit( NULL );
29745 (void) dbopen( NULL, 0, 0, 0, NULL);
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29754 (eval $ac_link) 2>conftest.er1
29756 grep -v '^ *+' conftest.er1 >conftest.err
29758 cat conftest.err >&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); } &&
29761 { ac_try='test -z "$ac_c_werror_flag"
29762 || test ! -s conftest.err'
29763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29764 (eval $ac_try) 2>&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; } &&
29768 { ac_try='test -s conftest$ac_exeext'
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 ol_cv_db_db_4_dot_1=yes
29776 echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29779 ol_cv_db_db_4_dot_1=no
29781 rm -f conftest.err conftest.$ac_objext \
29782 conftest$ac_exeext conftest.$ac_ext
29787 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29788 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29790 if test $ol_cv_db_db_4_dot_1 = yes ; then
29791 ol_cv_lib_db=-ldb-4.1
29795 if test $ol_cv_lib_db = no ; then
29796 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29797 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29798 if test "${ol_cv_db_db_4_1+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29804 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29806 cat >conftest.$ac_ext <<_ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h. */
29813 #ifdef HAVE_DB_185_H
29814 # include <db_185.h>
29819 #ifndef DB_VERSION_MAJOR
29820 # define DB_VERSION_MAJOR 1
29824 #define NULL ((void*)0)
29831 #if DB_VERSION_MAJOR > 1
29834 int major, minor, patch;
29836 version = db_version( &major, &minor, &patch );
29838 if( major != DB_VERSION_MAJOR ||
29839 minor < DB_VERSION_MINOR )
29841 printf("Berkeley DB version mismatch\n"
29842 "\theader: %s\n\tlibrary: %s\n",
29843 DB_VERSION_STRING, version);
29849 #if DB_VERSION_MAJOR > 2
29850 db_env_create( NULL, 0 );
29851 #elif DB_VERSION_MAJOR > 1
29852 db_appexit( NULL );
29854 (void) dbopen( NULL, 0, 0, 0, NULL);
29861 rm -f conftest.$ac_objext conftest$ac_exeext
29862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29863 (eval $ac_link) 2>conftest.er1
29865 grep -v '^ *+' conftest.er1 >conftest.err
29867 cat conftest.err >&5
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } &&
29870 { ac_try='test -z "$ac_c_werror_flag"
29871 || test ! -s conftest.err'
29872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29873 (eval $ac_try) 2>&5
29875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); }; } &&
29877 { ac_try='test -s conftest$ac_exeext'
29878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879 (eval $ac_try) 2>&5
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; }; then
29883 ol_cv_db_db_4_1=yes
29885 echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29890 rm -f conftest.err conftest.$ac_objext \
29891 conftest$ac_exeext conftest.$ac_ext
29896 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29897 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29899 if test $ol_cv_db_db_4_1 = yes ; then
29900 ol_cv_lib_db=-ldb-4-1
29905 if test $ol_cv_lib_db = no ; then
29906 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29907 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29908 if test "${ol_cv_db_db_4+set}" = set; then
29909 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29916 cat >conftest.$ac_ext <<_ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h. */
29923 #ifdef HAVE_DB_185_H
29924 # include <db_185.h>
29929 #ifndef DB_VERSION_MAJOR
29930 # define DB_VERSION_MAJOR 1
29934 #define NULL ((void*)0)
29941 #if DB_VERSION_MAJOR > 1
29944 int major, minor, patch;
29946 version = db_version( &major, &minor, &patch );
29948 if( major != DB_VERSION_MAJOR ||
29949 minor < DB_VERSION_MINOR )
29951 printf("Berkeley DB version mismatch\n"
29952 "\theader: %s\n\tlibrary: %s\n",
29953 DB_VERSION_STRING, version);
29959 #if DB_VERSION_MAJOR > 2
29960 db_env_create( NULL, 0 );
29961 #elif DB_VERSION_MAJOR > 1
29962 db_appexit( NULL );
29964 (void) dbopen( NULL, 0, 0, 0, NULL);
29971 rm -f conftest.$ac_objext conftest$ac_exeext
29972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29973 (eval $ac_link) 2>conftest.er1
29975 grep -v '^ *+' conftest.er1 >conftest.err
29977 cat conftest.err >&5
29978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979 (exit $ac_status); } &&
29980 { ac_try='test -z "$ac_c_werror_flag"
29981 || test ! -s conftest.err'
29982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983 (eval $ac_try) 2>&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); }; } &&
29987 { ac_try='test -s conftest$ac_exeext'
29988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989 (eval $ac_try) 2>&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992 (exit $ac_status); }; }; then
29995 echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
30000 rm -f conftest.err conftest.$ac_objext \
30001 conftest$ac_exeext conftest.$ac_ext
30006 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30007 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30009 if test $ol_cv_db_db_4 = yes ; then
30010 ol_cv_lib_db=-ldb-4
30014 if test $ol_cv_lib_db = no ; then
30015 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30016 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30017 if test "${ol_cv_db_db4+set}" = set; then
30018 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30025 cat >conftest.$ac_ext <<_ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h. */
30032 #ifdef HAVE_DB_185_H
30033 # include <db_185.h>
30038 #ifndef DB_VERSION_MAJOR
30039 # define DB_VERSION_MAJOR 1
30043 #define NULL ((void*)0)
30050 #if DB_VERSION_MAJOR > 1
30053 int major, minor, patch;
30055 version = db_version( &major, &minor, &patch );
30057 if( major != DB_VERSION_MAJOR ||
30058 minor < DB_VERSION_MINOR )
30060 printf("Berkeley DB version mismatch\n"
30061 "\theader: %s\n\tlibrary: %s\n",
30062 DB_VERSION_STRING, version);
30068 #if DB_VERSION_MAJOR > 2
30069 db_env_create( NULL, 0 );
30070 #elif DB_VERSION_MAJOR > 1
30071 db_appexit( NULL );
30073 (void) dbopen( NULL, 0, 0, 0, NULL);
30080 rm -f conftest.$ac_objext conftest$ac_exeext
30081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30082 (eval $ac_link) 2>conftest.er1
30084 grep -v '^ *+' conftest.er1 >conftest.err
30086 cat conftest.err >&5
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); } &&
30089 { ac_try='test -z "$ac_c_werror_flag"
30090 || test ! -s conftest.err'
30091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092 (eval $ac_try) 2>&5
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); }; } &&
30096 { ac_try='test -s conftest$ac_exeext'
30097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098 (eval $ac_try) 2>&5
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); }; }; then
30104 echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30109 rm -f conftest.err conftest.$ac_objext \
30110 conftest$ac_exeext conftest.$ac_ext
30115 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30116 echo "${ECHO_T}$ol_cv_db_db4" >&6
30118 if test $ol_cv_db_db4 = yes ; then
30123 if test $ol_cv_lib_db = no ; then
30124 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30125 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30126 if test "${ol_cv_db_db+set}" = set; then
30127 echo $ECHO_N "(cached) $ECHO_C" >&6
30132 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30134 cat >conftest.$ac_ext <<_ACEOF
30137 cat confdefs.h >>conftest.$ac_ext
30138 cat >>conftest.$ac_ext <<_ACEOF
30139 /* end confdefs.h. */
30141 #ifdef HAVE_DB_185_H
30142 # include <db_185.h>
30147 #ifndef DB_VERSION_MAJOR
30148 # define DB_VERSION_MAJOR 1
30152 #define NULL ((void*)0)
30159 #if DB_VERSION_MAJOR > 1
30162 int major, minor, patch;
30164 version = db_version( &major, &minor, &patch );
30166 if( major != DB_VERSION_MAJOR ||
30167 minor < DB_VERSION_MINOR )
30169 printf("Berkeley DB version mismatch\n"
30170 "\theader: %s\n\tlibrary: %s\n",
30171 DB_VERSION_STRING, version);
30177 #if DB_VERSION_MAJOR > 2
30178 db_env_create( NULL, 0 );
30179 #elif DB_VERSION_MAJOR > 1
30180 db_appexit( NULL );
30182 (void) dbopen( NULL, 0, 0, 0, NULL);
30189 rm -f conftest.$ac_objext conftest$ac_exeext
30190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30191 (eval $ac_link) 2>conftest.er1
30193 grep -v '^ *+' conftest.er1 >conftest.err
30195 cat conftest.err >&5
30196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197 (exit $ac_status); } &&
30198 { ac_try='test -z "$ac_c_werror_flag"
30199 || test ! -s conftest.err'
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest$ac_exeext'
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30218 rm -f conftest.err conftest.$ac_objext \
30219 conftest$ac_exeext conftest.$ac_ext
30224 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30225 echo "${ECHO_T}$ol_cv_db_db" >&6
30227 if test $ol_cv_db_db = yes ; then
30233 elif test $ol_cv_bdb_major = 3 ; then
30234 if test $ol_cv_lib_db = no ; then
30235 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30236 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30237 if test "${ol_cv_db_db3+set}" = set; then
30238 echo $ECHO_N "(cached) $ECHO_C" >&6
30243 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30245 cat >conftest.$ac_ext <<_ACEOF
30248 cat confdefs.h >>conftest.$ac_ext
30249 cat >>conftest.$ac_ext <<_ACEOF
30250 /* end confdefs.h. */
30252 #ifdef HAVE_DB_185_H
30253 # include <db_185.h>
30258 #ifndef DB_VERSION_MAJOR
30259 # define DB_VERSION_MAJOR 1
30263 #define NULL ((void*)0)
30270 #if DB_VERSION_MAJOR > 1
30273 int major, minor, patch;
30275 version = db_version( &major, &minor, &patch );
30277 if( major != DB_VERSION_MAJOR ||
30278 minor < DB_VERSION_MINOR )
30280 printf("Berkeley DB version mismatch\n"
30281 "\theader: %s\n\tlibrary: %s\n",
30282 DB_VERSION_STRING, version);
30288 #if DB_VERSION_MAJOR > 2
30289 db_env_create( NULL, 0 );
30290 #elif DB_VERSION_MAJOR > 1
30291 db_appexit( NULL );
30293 (void) dbopen( NULL, 0, 0, 0, NULL);
30300 rm -f conftest.$ac_objext conftest$ac_exeext
30301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30302 (eval $ac_link) 2>conftest.er1
30304 grep -v '^ *+' conftest.er1 >conftest.err
30306 cat conftest.err >&5
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); } &&
30309 { ac_try='test -z "$ac_c_werror_flag"
30310 || test ! -s conftest.err'
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; } &&
30316 { ac_try='test -s conftest$ac_exeext'
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30324 echo "$as_me: failed program was:" >&5
30325 sed 's/^/| /' conftest.$ac_ext >&5
30329 rm -f conftest.err conftest.$ac_objext \
30330 conftest$ac_exeext conftest.$ac_ext
30335 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30336 echo "${ECHO_T}$ol_cv_db_db3" >&6
30338 if test $ol_cv_db_db3 = yes ; then
30343 if test $ol_cv_lib_db = no ; then
30344 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30345 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30346 if test "${ol_cv_db_db_3+set}" = set; then
30347 echo $ECHO_N "(cached) $ECHO_C" >&6
30352 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30354 cat >conftest.$ac_ext <<_ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h. */
30361 #ifdef HAVE_DB_185_H
30362 # include <db_185.h>
30367 #ifndef DB_VERSION_MAJOR
30368 # define DB_VERSION_MAJOR 1
30372 #define NULL ((void*)0)
30379 #if DB_VERSION_MAJOR > 1
30382 int major, minor, patch;
30384 version = db_version( &major, &minor, &patch );
30386 if( major != DB_VERSION_MAJOR ||
30387 minor < DB_VERSION_MINOR )
30389 printf("Berkeley DB version mismatch\n"
30390 "\theader: %s\n\tlibrary: %s\n",
30391 DB_VERSION_STRING, version);
30397 #if DB_VERSION_MAJOR > 2
30398 db_env_create( NULL, 0 );
30399 #elif DB_VERSION_MAJOR > 1
30400 db_appexit( NULL );
30402 (void) dbopen( NULL, 0, 0, 0, NULL);
30409 rm -f conftest.$ac_objext conftest$ac_exeext
30410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30411 (eval $ac_link) 2>conftest.er1
30413 grep -v '^ *+' conftest.er1 >conftest.err
30415 cat conftest.err >&5
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); } &&
30418 { ac_try='test -z "$ac_c_werror_flag"
30419 || test ! -s conftest.err'
30420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30421 (eval $ac_try) 2>&5
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); }; } &&
30425 { ac_try='test -s conftest$ac_exeext'
30426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427 (eval $ac_try) 2>&5
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); }; }; then
30433 echo "$as_me: failed program was:" >&5
30434 sed 's/^/| /' conftest.$ac_ext >&5
30438 rm -f conftest.err conftest.$ac_objext \
30439 conftest$ac_exeext conftest.$ac_ext
30444 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30445 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30447 if test $ol_cv_db_db_3 = yes ; then
30448 ol_cv_lib_db=-ldb-3
30453 elif test $ol_cv_bdb_major = 2 ; then
30454 if test $ol_cv_lib_db = no ; then
30455 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30456 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30457 if test "${ol_cv_db_db2+set}" = set; then
30458 echo $ECHO_N "(cached) $ECHO_C" >&6
30463 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30465 cat >conftest.$ac_ext <<_ACEOF
30468 cat confdefs.h >>conftest.$ac_ext
30469 cat >>conftest.$ac_ext <<_ACEOF
30470 /* end confdefs.h. */
30472 #ifdef HAVE_DB_185_H
30473 # include <db_185.h>
30478 #ifndef DB_VERSION_MAJOR
30479 # define DB_VERSION_MAJOR 1
30483 #define NULL ((void*)0)
30490 #if DB_VERSION_MAJOR > 1
30493 int major, minor, patch;
30495 version = db_version( &major, &minor, &patch );
30497 if( major != DB_VERSION_MAJOR ||
30498 minor < DB_VERSION_MINOR )
30500 printf("Berkeley DB version mismatch\n"
30501 "\theader: %s\n\tlibrary: %s\n",
30502 DB_VERSION_STRING, version);
30508 #if DB_VERSION_MAJOR > 2
30509 db_env_create( NULL, 0 );
30510 #elif DB_VERSION_MAJOR > 1
30511 db_appexit( NULL );
30513 (void) dbopen( NULL, 0, 0, 0, NULL);
30520 rm -f conftest.$ac_objext conftest$ac_exeext
30521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30522 (eval $ac_link) 2>conftest.er1
30524 grep -v '^ *+' conftest.er1 >conftest.err
30526 cat conftest.err >&5
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); } &&
30529 { ac_try='test -z "$ac_c_werror_flag"
30530 || test ! -s conftest.err'
30531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30532 (eval $ac_try) 2>&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; } &&
30536 { ac_try='test -s conftest$ac_exeext'
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; }; then
30544 echo "$as_me: failed program was:" >&5
30545 sed 's/^/| /' conftest.$ac_ext >&5
30549 rm -f conftest.err conftest.$ac_objext \
30550 conftest$ac_exeext conftest.$ac_ext
30555 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30556 echo "${ECHO_T}$ol_cv_db_db2" >&6
30558 if test $ol_cv_db_db2 = yes ; then
30563 if test $ol_cv_lib_db = no ; then
30564 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30565 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30566 if test "${ol_cv_db_db_2+set}" = set; then
30567 echo $ECHO_N "(cached) $ECHO_C" >&6
30572 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30574 cat >conftest.$ac_ext <<_ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h. */
30581 #ifdef HAVE_DB_185_H
30582 # include <db_185.h>
30587 #ifndef DB_VERSION_MAJOR
30588 # define DB_VERSION_MAJOR 1
30592 #define NULL ((void*)0)
30599 #if DB_VERSION_MAJOR > 1
30602 int major, minor, patch;
30604 version = db_version( &major, &minor, &patch );
30606 if( major != DB_VERSION_MAJOR ||
30607 minor < DB_VERSION_MINOR )
30609 printf("Berkeley DB version mismatch\n"
30610 "\theader: %s\n\tlibrary: %s\n",
30611 DB_VERSION_STRING, version);
30617 #if DB_VERSION_MAJOR > 2
30618 db_env_create( NULL, 0 );
30619 #elif DB_VERSION_MAJOR > 1
30620 db_appexit( NULL );
30622 (void) dbopen( NULL, 0, 0, 0, NULL);
30629 rm -f conftest.$ac_objext conftest$ac_exeext
30630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30631 (eval $ac_link) 2>conftest.er1
30633 grep -v '^ *+' conftest.er1 >conftest.err
30635 cat conftest.err >&5
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); } &&
30638 { ac_try='test -z "$ac_c_werror_flag"
30639 || test ! -s conftest.err'
30640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30641 (eval $ac_try) 2>&5
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); }; } &&
30645 { ac_try='test -s conftest$ac_exeext'
30646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647 (eval $ac_try) 2>&5
30649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650 (exit $ac_status); }; }; then
30653 echo "$as_me: failed program was:" >&5
30654 sed 's/^/| /' conftest.$ac_ext >&5
30658 rm -f conftest.err conftest.$ac_objext \
30659 conftest$ac_exeext conftest.$ac_ext
30664 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30665 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30667 if test $ol_cv_db_db_2 = yes ; then
30668 ol_cv_lib_db=-ldb-2
30673 elif test $ol_cv_bdb_major = 1 ; then
30674 if test $ol_cv_lib_db = no ; then
30675 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30676 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30677 if test "${ol_cv_db_db1+set}" = set; then
30678 echo $ECHO_N "(cached) $ECHO_C" >&6
30683 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30685 cat >conftest.$ac_ext <<_ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h. */
30692 #ifdef HAVE_DB_185_H
30693 # include <db_185.h>
30698 #ifndef DB_VERSION_MAJOR
30699 # define DB_VERSION_MAJOR 1
30703 #define NULL ((void*)0)
30710 #if DB_VERSION_MAJOR > 1
30713 int major, minor, patch;
30715 version = db_version( &major, &minor, &patch );
30717 if( major != DB_VERSION_MAJOR ||
30718 minor < DB_VERSION_MINOR )
30720 printf("Berkeley DB version mismatch\n"
30721 "\theader: %s\n\tlibrary: %s\n",
30722 DB_VERSION_STRING, version);
30728 #if DB_VERSION_MAJOR > 2
30729 db_env_create( NULL, 0 );
30730 #elif DB_VERSION_MAJOR > 1
30731 db_appexit( NULL );
30733 (void) dbopen( NULL, 0, 0, 0, NULL);
30740 rm -f conftest.$ac_objext conftest$ac_exeext
30741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30742 (eval $ac_link) 2>conftest.er1
30744 grep -v '^ *+' conftest.er1 >conftest.err
30746 cat conftest.err >&5
30747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748 (exit $ac_status); } &&
30749 { ac_try='test -z "$ac_c_werror_flag"
30750 || test ! -s conftest.err'
30751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752 (eval $ac_try) 2>&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; } &&
30756 { ac_try='test -s conftest$ac_exeext'
30757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758 (eval $ac_try) 2>&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); }; }; then
30764 echo "$as_me: failed program was:" >&5
30765 sed 's/^/| /' conftest.$ac_ext >&5
30769 rm -f conftest.err conftest.$ac_objext \
30770 conftest$ac_exeext conftest.$ac_ext
30775 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30776 echo "${ECHO_T}$ol_cv_db_db1" >&6
30778 if test $ol_cv_db_db1 = yes ; then
30783 if test $ol_cv_lib_db = no ; then
30784 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30785 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30786 if test "${ol_cv_db_db_1+set}" = set; then
30787 echo $ECHO_N "(cached) $ECHO_C" >&6
30792 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30794 cat >conftest.$ac_ext <<_ACEOF
30797 cat confdefs.h >>conftest.$ac_ext
30798 cat >>conftest.$ac_ext <<_ACEOF
30799 /* end confdefs.h. */
30801 #ifdef HAVE_DB_185_H
30802 # include <db_185.h>
30807 #ifndef DB_VERSION_MAJOR
30808 # define DB_VERSION_MAJOR 1
30812 #define NULL ((void*)0)
30819 #if DB_VERSION_MAJOR > 1
30822 int major, minor, patch;
30824 version = db_version( &major, &minor, &patch );
30826 if( major != DB_VERSION_MAJOR ||
30827 minor < DB_VERSION_MINOR )
30829 printf("Berkeley DB version mismatch\n"
30830 "\theader: %s\n\tlibrary: %s\n",
30831 DB_VERSION_STRING, version);
30837 #if DB_VERSION_MAJOR > 2
30838 db_env_create( NULL, 0 );
30839 #elif DB_VERSION_MAJOR > 1
30840 db_appexit( NULL );
30842 (void) dbopen( NULL, 0, 0, 0, NULL);
30849 rm -f conftest.$ac_objext conftest$ac_exeext
30850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30851 (eval $ac_link) 2>conftest.er1
30853 grep -v '^ *+' conftest.er1 >conftest.err
30855 cat conftest.err >&5
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); } &&
30858 { ac_try='test -z "$ac_c_werror_flag"
30859 || test ! -s conftest.err'
30860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30861 (eval $ac_try) 2>&5
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); }; } &&
30865 { ac_try='test -s conftest$ac_exeext'
30866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30867 (eval $ac_try) 2>&5
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); }; }; then
30873 echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30878 rm -f conftest.err conftest.$ac_objext \
30879 conftest$ac_exeext conftest.$ac_ext
30884 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30885 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30887 if test $ol_cv_db_db_1 = yes ; then
30888 ol_cv_lib_db=-ldb-1
30893 if test $ol_cv_lib_db = no ; then
30894 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30895 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30896 if test "${ol_cv_db_none+set}" = set; then
30897 echo $ECHO_N "(cached) $ECHO_C" >&6
30902 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30904 cat >conftest.$ac_ext <<_ACEOF
30907 cat confdefs.h >>conftest.$ac_ext
30908 cat >>conftest.$ac_ext <<_ACEOF
30909 /* end confdefs.h. */
30911 #ifdef HAVE_DB_185_H
30912 # include <db_185.h>
30917 #ifndef DB_VERSION_MAJOR
30918 # define DB_VERSION_MAJOR 1
30922 #define NULL ((void*)0)
30929 #if DB_VERSION_MAJOR > 1
30932 int major, minor, patch;
30934 version = db_version( &major, &minor, &patch );
30936 if( major != DB_VERSION_MAJOR ||
30937 minor < DB_VERSION_MINOR )
30939 printf("Berkeley DB version mismatch\n"
30940 "\theader: %s\n\tlibrary: %s\n",
30941 DB_VERSION_STRING, version);
30947 #if DB_VERSION_MAJOR > 2
30948 db_env_create( NULL, 0 );
30949 #elif DB_VERSION_MAJOR > 1
30950 db_appexit( NULL );
30952 (void) dbopen( NULL, 0, 0, 0, NULL);
30959 rm -f conftest.$ac_objext conftest$ac_exeext
30960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30961 (eval $ac_link) 2>conftest.er1
30963 grep -v '^ *+' conftest.er1 >conftest.err
30965 cat conftest.err >&5
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); } &&
30968 { ac_try='test -z "$ac_c_werror_flag"
30969 || test ! -s conftest.err'
30970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30971 (eval $ac_try) 2>&5
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); }; } &&
30975 { ac_try='test -s conftest$ac_exeext'
30976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977 (eval $ac_try) 2>&5
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; }; then
30983 echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30988 rm -f conftest.err conftest.$ac_objext \
30989 conftest$ac_exeext conftest.$ac_ext
30994 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30995 echo "${ECHO_T}$ol_cv_db_none" >&6
30997 if test $ol_cv_db_none = yes ; then
31003 if test "$ol_cv_lib_db" != no ; then
31004 ol_cv_berkeley_db=yes
31005 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31006 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31007 if test "${ol_cv_berkeley_db_version+set}" = set; then
31008 echo $ECHO_N "(cached) $ECHO_C" >&6
31012 LIBS="$LTHREAD_LIBS $LIBS"
31013 if test $ol_cv_lib_db != yes ; then
31014 LIBS="$ol_cv_lib_db $LIBS"
31017 if test "$cross_compiling" = yes; then
31018 ol_cv_berkeley_db_version=cross
31020 cat >conftest.$ac_ext <<_ACEOF
31023 cat confdefs.h >>conftest.$ac_ext
31024 cat >>conftest.$ac_ext <<_ACEOF
31025 /* end confdefs.h. */
31027 #ifdef HAVE_DB_185_H
31032 #ifndef DB_VERSION_MAJOR
31033 # define DB_VERSION_MAJOR 1
31036 #define NULL ((void *)0)
31040 #if DB_VERSION_MAJOR > 1
31042 int major, minor, patch;
31044 version = db_version( &major, &minor, &patch );
31046 if( major != DB_VERSION_MAJOR ||
31047 minor != DB_VERSION_MINOR ||
31048 patch != DB_VERSION_PATCH )
31050 printf("Berkeley DB version mismatch\n"
31051 "\theader: %s\n\tlibrary: %s\n",
31052 DB_VERSION_STRING, version);
31060 rm -f conftest$ac_exeext
31061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31062 (eval $ac_link) 2>&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067 (eval $ac_try) 2>&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; }; then
31071 ol_cv_berkeley_db_version=yes
31073 echo "$as_me: program exited with status $ac_status" >&5
31074 echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31077 ( exit $ac_status )
31078 ol_cv_berkeley_db_version=no
31080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31086 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31087 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31089 if test $ol_cv_berkeley_db_version = no ; then
31090 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31091 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31092 { (exit 1); exit 1; }; }
31095 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31096 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31097 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31102 LIBS="$LTHREAD_LIBS $LIBS"
31103 if test $ol_cv_lib_db != yes ; then
31104 LIBS="$ol_cv_lib_db $LIBS"
31107 if test "$cross_compiling" = yes; then
31108 ol_cv_berkeley_db_thread=cross
31110 cat >conftest.$ac_ext <<_ACEOF
31113 cat confdefs.h >>conftest.$ac_ext
31114 cat >>conftest.$ac_ext <<_ACEOF
31115 /* end confdefs.h. */
31117 #ifdef HAVE_DB_185_H
31123 #define NULL ((void *)0)
31128 u_int32_t flags = DB_CREATE |
31134 #if DB_VERSION_MAJOR > 2
31135 DB_ENV *env = NULL;
31137 rc = db_env_create( &env, 0 );
31139 flags |= DB_INIT_MPOOL;
31140 #ifdef DB_MPOOL_PRIVATE
31141 flags |= DB_MPOOL_PRIVATE;
31145 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31149 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31150 rc = env->open( env, NULL, flags, 0 );
31152 rc = env->open( env, NULL, NULL, flags, 0 );
31156 rc = env->close( env, 0 );
31160 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31166 memset( &env, '\0', sizeof(env) );
31168 rc = db_appinit( NULL, NULL, &env, flags );
31171 db_appexit( &env );
31174 unlink("__db_mpool.share");
31175 unlink("__db_lock.share");
31181 rm -f conftest$ac_exeext
31182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31183 (eval $ac_link) 2>&5
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31188 (eval $ac_try) 2>&5
31190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191 (exit $ac_status); }; }; then
31192 ol_cv_berkeley_db_thread=yes
31194 echo "$as_me: program exited with status $ac_status" >&5
31195 echo "$as_me: failed program was:" >&5
31196 sed 's/^/| /' conftest.$ac_ext >&5
31198 ( exit $ac_status )
31199 ol_cv_berkeley_db_thread=no
31201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31207 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31208 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31210 if test $ol_cv_berkeley_db_thread != no ; then
31212 cat >>confdefs.h <<\_ACEOF
31213 #define HAVE_BERKELEY_DB_THREAD 1
31222 if test $ol_cv_berkeley_db = no ; then
31223 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31224 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31225 { (exit 1); exit 1; }; }
31229 cat >>confdefs.h <<\_ACEOF
31230 #define HAVE_BERKELEY_DB 1
31234 if test $ol_cv_lib_db != yes ; then
31235 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31238 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31239 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31240 if test "${ol_cv_bdb_compat+set}" = set; then
31241 echo $ECHO_N "(cached) $ECHO_C" >&6
31244 cat >conftest.$ac_ext <<_ACEOF
31247 cat confdefs.h >>conftest.$ac_ext
31248 cat >>conftest.$ac_ext <<_ACEOF
31249 /* end confdefs.h. */
31253 /* this check could be improved */
31254 #ifndef DB_VERSION_MAJOR
31255 # define DB_VERSION_MAJOR 1
31257 #ifndef DB_VERSION_MINOR
31258 # define DB_VERSION_MINOR 0
31261 /* require 4.2 or later, but exclude 4.3 */
31262 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31263 __db_version_compat
31267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31268 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31269 ol_cv_bdb_compat=yes
31271 ol_cv_bdb_compat=no
31276 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31277 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31280 if test $ol_cv_bdb_compat != yes ; then
31281 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31282 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31283 { (exit 1); exit 1; }; }
31286 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31292 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31293 BUILD_LIBS_DYNAMIC=shared
31295 cat >>confdefs.h <<\_ACEOF
31296 #define LDAP_LIBS_DYNAMIC 1
31301 BUILD_LIBS_DYNAMIC=static
31305 if test $ol_enable_wrappers != no ; then
31307 for ac_header in tcpd.h
31309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31311 echo "$as_me:$LINENO: checking for $ac_header" >&5
31312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31319 # Is the header compilable?
31320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31322 cat >conftest.$ac_ext <<_ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h. */
31328 $ac_includes_default
31329 #include <$ac_header>
31331 rm -f conftest.$ac_objext
31332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31333 (eval $ac_compile) 2>conftest.er1
31335 grep -v '^ *+' conftest.er1 >conftest.err
31337 cat conftest.err >&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
31340 { ac_try='test -z "$ac_c_werror_flag"
31341 || test ! -s conftest.err'
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; } &&
31347 { ac_try='test -s conftest.$ac_objext'
31348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349 (eval $ac_try) 2>&5
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); }; }; then
31353 ac_header_compiler=yes
31355 echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31358 ac_header_compiler=no
31360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31362 echo "${ECHO_T}$ac_header_compiler" >&6
31364 # Is the header present?
31365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31367 cat >conftest.$ac_ext <<_ACEOF
31370 cat confdefs.h >>conftest.$ac_ext
31371 cat >>conftest.$ac_ext <<_ACEOF
31372 /* end confdefs.h. */
31373 #include <$ac_header>
31375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31378 grep -v '^ *+' conftest.er1 >conftest.err
31380 cat conftest.err >&5
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); } >/dev/null; then
31383 if test -s conftest.err; then
31384 ac_cpp_err=$ac_c_preproc_warn_flag
31385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31392 if test -z "$ac_cpp_err"; then
31393 ac_header_preproc=yes
31395 echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31398 ac_header_preproc=no
31400 rm -f conftest.err conftest.$ac_ext
31401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31402 echo "${ECHO_T}$ac_header_preproc" >&6
31404 # So? What about this header?
31405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31411 ac_header_preproc=yes
31414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31428 ## --------------------------------------------- ##
31429 ## Report this to <http://www.openldap.org/its/> ##
31430 ## --------------------------------------------- ##
31433 sed "s/^/$as_me: WARNING: /" >&2
31436 echo "$as_me:$LINENO: checking for $ac_header" >&5
31437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31439 echo $ECHO_N "(cached) $ECHO_C" >&6
31441 eval "$as_ac_Header=\$ac_header_preproc"
31443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31448 cat >>confdefs.h <<_ACEOF
31449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31452 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31453 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31455 LIBS="$LIBS -lwrap"
31456 cat >conftest.$ac_ext <<_ACEOF
31459 cat confdefs.h >>conftest.$ac_ext
31460 cat >>conftest.$ac_ext <<_ACEOF
31461 /* end confdefs.h. */
31464 int allow_severity = 0;
31465 int deny_severity = 0;
31467 struct request_info *req;
31479 rm -f conftest.$ac_objext conftest$ac_exeext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31481 (eval $ac_link) 2>conftest.er1
31483 grep -v '^ *+' conftest.er1 >conftest.err
31485 cat conftest.err >&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); } &&
31488 { ac_try='test -z "$ac_c_werror_flag"
31489 || test ! -s conftest.err'
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; } &&
31495 { ac_try='test -s conftest$ac_exeext'
31496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497 (eval $ac_try) 2>&5
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); }; }; then
31501 echo "$as_me:$LINENO: result: -lwrap" >&5
31502 echo "${ECHO_T}-lwrap" >&6
31506 echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31511 cat >conftest.$ac_ext <<_ACEOF
31514 cat confdefs.h >>conftest.$ac_ext
31515 cat >>conftest.$ac_ext <<_ACEOF
31516 /* end confdefs.h. */
31519 int allow_severity = 0;
31520 int deny_severity = 0;
31522 struct request_info *req;
31534 rm -f conftest.$ac_objext conftest$ac_exeext
31535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31536 (eval $ac_link) 2>conftest.er1
31538 grep -v '^ *+' conftest.er1 >conftest.err
31540 cat conftest.err >&5
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); } &&
31543 { ac_try='test -z "$ac_c_werror_flag"
31544 || test ! -s conftest.err'
31545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31546 (eval $ac_try) 2>&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; } &&
31550 { ac_try='test -s conftest$ac_exeext'
31551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552 (eval $ac_try) 2>&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); }; }; then
31556 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31557 echo "${ECHO_T}-lwrap -lnsl" >&6
31559 LIBS="$save_LIBS -lnsl"
31561 echo "$as_me: failed program was:" >&5
31562 sed 's/^/| /' conftest.$ac_ext >&5
31565 echo "$as_me:$LINENO: result: no" >&5
31566 echo "${ECHO_T}no" >&6
31570 rm -f conftest.err conftest.$ac_objext \
31571 conftest$ac_exeext conftest.$ac_ext
31573 rm -f conftest.err conftest.$ac_objext \
31574 conftest$ac_exeext conftest.$ac_ext
31582 if test $have_wrappers = yes ; then
31584 cat >>confdefs.h <<\_ACEOF
31585 #define HAVE_TCPD 1
31589 elif test $ol_enable_wrappers = yes ; then
31590 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31591 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31592 { (exit 1); exit 1; }; }
31594 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31595 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31600 if test $ol_enable_syslog != no ; then
31601 echo "$as_me:$LINENO: checking for openlog" >&5
31602 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31603 if test "${ac_cv_func_openlog+set}" = set; then
31604 echo $ECHO_N "(cached) $ECHO_C" >&6
31606 cat >conftest.$ac_ext <<_ACEOF
31609 cat confdefs.h >>conftest.$ac_ext
31610 cat >>conftest.$ac_ext <<_ACEOF
31611 /* end confdefs.h. */
31612 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31614 #define openlog innocuous_openlog
31616 /* System header to define __stub macros and hopefully few prototypes,
31617 which can conflict with char openlog (); below.
31618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31619 <limits.h> exists even on freestanding compilers. */
31622 # include <limits.h>
31624 # include <assert.h>
31629 /* Override any gcc2 internal prototype to avoid an error. */
31634 /* We use char because int might match the return type of a gcc2
31635 builtin and then its argument prototype would still apply. */
31637 /* The GNU C library defines this for functions which it implements
31638 to always fail with ENOSYS. Some functions are actually named
31639 something starting with __ and the normal name is an alias. */
31640 #if defined (__stub_openlog) || defined (__stub___openlog)
31643 char (*f) () = openlog;
31652 return f != openlog;
31657 rm -f conftest.$ac_objext conftest$ac_exeext
31658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31659 (eval $ac_link) 2>conftest.er1
31661 grep -v '^ *+' conftest.er1 >conftest.err
31663 cat conftest.err >&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } &&
31666 { ac_try='test -z "$ac_c_werror_flag"
31667 || test ! -s conftest.err'
31668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669 (eval $ac_try) 2>&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; } &&
31673 { ac_try='test -s conftest$ac_exeext'
31674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31675 (eval $ac_try) 2>&5
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; }; then
31679 ac_cv_func_openlog=yes
31681 echo "$as_me: failed program was:" >&5
31682 sed 's/^/| /' conftest.$ac_ext >&5
31684 ac_cv_func_openlog=no
31686 rm -f conftest.err conftest.$ac_objext \
31687 conftest$ac_exeext conftest.$ac_ext
31689 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31690 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31692 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31693 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31694 echo "$as_me: error: could not find syslog" >&2;}
31695 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31697 ol_enable_syslog=$ac_cv_func_openlog
31701 if test $ol_enable_sql != no ; then
31704 for ac_header in sql.h sqlext.h
31706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31708 echo "$as_me:$LINENO: checking for $ac_header" >&5
31709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31711 echo $ECHO_N "(cached) $ECHO_C" >&6
31713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31716 # Is the header compilable?
31717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31719 cat >conftest.$ac_ext <<_ACEOF
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h. */
31725 $ac_includes_default
31726 #include <$ac_header>
31728 rm -f conftest.$ac_objext
31729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31730 (eval $ac_compile) 2>conftest.er1
31732 grep -v '^ *+' conftest.er1 >conftest.err
31734 cat conftest.err >&5
31735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736 (exit $ac_status); } &&
31737 { ac_try='test -z "$ac_c_werror_flag"
31738 || test ! -s conftest.err'
31739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31740 (eval $ac_try) 2>&5
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest.$ac_objext'
31745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31746 (eval $ac_try) 2>&5
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; }; then
31750 ac_header_compiler=yes
31752 echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31755 ac_header_compiler=no
31757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31759 echo "${ECHO_T}$ac_header_compiler" >&6
31761 # Is the header present?
31762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31764 cat >conftest.$ac_ext <<_ACEOF
31767 cat confdefs.h >>conftest.$ac_ext
31768 cat >>conftest.$ac_ext <<_ACEOF
31769 /* end confdefs.h. */
31770 #include <$ac_header>
31772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31775 grep -v '^ *+' conftest.er1 >conftest.err
31777 cat conftest.err >&5
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); } >/dev/null; then
31780 if test -s conftest.err; then
31781 ac_cpp_err=$ac_c_preproc_warn_flag
31782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31789 if test -z "$ac_cpp_err"; then
31790 ac_header_preproc=yes
31792 echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31795 ac_header_preproc=no
31797 rm -f conftest.err conftest.$ac_ext
31798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31799 echo "${ECHO_T}$ac_header_preproc" >&6
31801 # So? What about this header?
31802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31808 ac_header_preproc=yes
31811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31825 ## --------------------------------------------- ##
31826 ## Report this to <http://www.openldap.org/its/> ##
31827 ## --------------------------------------------- ##
31830 sed "s/^/$as_me: WARNING: /" >&2
31833 echo "$as_me:$LINENO: checking for $ac_header" >&5
31834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31836 echo $ECHO_N "(cached) $ECHO_C" >&6
31838 eval "$as_ac_Header=\$ac_header_preproc"
31840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31845 cat >>confdefs.h <<_ACEOF
31846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31851 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31852 echo "$as_me: error: could not locate SQL headers" >&2;}
31853 { (exit 1); exit 1; }; }
31861 LIBS="$LTHREAD_LIBS"
31863 if test $ol_with_odbc = auto ; then
31864 ol_with_odbc="iodbc unixodbc"
31867 for odbc in $ol_with_odbc ; do
31868 if test $ol_link_sql = no ; then
31871 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31872 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31873 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31874 echo $ECHO_N "(cached) $ECHO_C" >&6
31876 ac_check_lib_save_LIBS=$LIBS
31877 LIBS="-liodbc $LIBS"
31878 cat >conftest.$ac_ext <<_ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h. */
31885 /* Override any gcc2 internal prototype to avoid an error. */
31889 /* We use char because int might match the return type of a gcc2
31890 builtin and then its argument prototype would still apply. */
31891 char SQLDriverConnect ();
31895 SQLDriverConnect ();
31900 rm -f conftest.$ac_objext conftest$ac_exeext
31901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31902 (eval $ac_link) 2>conftest.er1
31904 grep -v '^ *+' conftest.er1 >conftest.err
31906 cat conftest.err >&5
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); } &&
31909 { ac_try='test -z "$ac_c_werror_flag"
31910 || test ! -s conftest.err'
31911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31912 (eval $ac_try) 2>&5
31914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); }; } &&
31916 { ac_try='test -s conftest$ac_exeext'
31917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31918 (eval $ac_try) 2>&5
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); }; }; then
31922 ac_cv_lib_iodbc_SQLDriverConnect=yes
31924 echo "$as_me: failed program was:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31927 ac_cv_lib_iodbc_SQLDriverConnect=no
31929 rm -f conftest.err conftest.$ac_objext \
31930 conftest$ac_exeext conftest.$ac_ext
31931 LIBS=$ac_check_lib_save_LIBS
31933 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31934 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31935 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31941 if test $have_iodbc = yes ; then
31942 ol_link_sql="-liodbc"
31947 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31948 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31949 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31952 ac_check_lib_save_LIBS=$LIBS
31953 LIBS="-lodbc $LIBS"
31954 cat >conftest.$ac_ext <<_ACEOF
31957 cat confdefs.h >>conftest.$ac_ext
31958 cat >>conftest.$ac_ext <<_ACEOF
31959 /* end confdefs.h. */
31961 /* Override any gcc2 internal prototype to avoid an error. */
31965 /* We use char because int might match the return type of a gcc2
31966 builtin and then its argument prototype would still apply. */
31967 char SQLDriverConnect ();
31971 SQLDriverConnect ();
31976 rm -f conftest.$ac_objext conftest$ac_exeext
31977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31978 (eval $ac_link) 2>conftest.er1
31980 grep -v '^ *+' conftest.er1 >conftest.err
31982 cat conftest.err >&5
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); } &&
31985 { ac_try='test -z "$ac_c_werror_flag"
31986 || test ! -s conftest.err'
31987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31988 (eval $ac_try) 2>&5
31990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 (exit $ac_status); }; } &&
31992 { ac_try='test -s conftest$ac_exeext'
31993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31994 (eval $ac_try) 2>&5
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; }; then
31998 ac_cv_lib_odbc_SQLDriverConnect=yes
32000 echo "$as_me: failed program was:" >&5
32001 sed 's/^/| /' conftest.$ac_ext >&5
32003 ac_cv_lib_odbc_SQLDriverConnect=no
32005 rm -f conftest.err conftest.$ac_objext \
32006 conftest$ac_exeext conftest.$ac_ext
32007 LIBS=$ac_check_lib_save_LIBS
32009 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32010 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32011 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32017 if test $have_odbc = yes ; then
32018 ol_link_sql="-lodbc"
32023 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32024 echo "$as_me: error: unknown ODBC library" >&2;}
32025 { (exit 1); exit 1; }; }
32033 if test $ol_link_sql != no ; then
32034 SLAPD_SQL_LIBS="$ol_link_sql"
32036 elif test $ol_enable_sql != auto ; then
32037 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32038 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32039 { (exit 1); exit 1; }; }
32045 for ac_header in unicode/utypes.h
32047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32049 echo "$as_me:$LINENO: checking for $ac_header" >&5
32050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32052 echo $ECHO_N "(cached) $ECHO_C" >&6
32054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32057 # Is the header compilable?
32058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32060 cat >conftest.$ac_ext <<_ACEOF
32063 cat confdefs.h >>conftest.$ac_ext
32064 cat >>conftest.$ac_ext <<_ACEOF
32065 /* end confdefs.h. */
32066 $ac_includes_default
32067 #include <$ac_header>
32069 rm -f conftest.$ac_objext
32070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32071 (eval $ac_compile) 2>conftest.er1
32073 grep -v '^ *+' conftest.er1 >conftest.err
32075 cat conftest.err >&5
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } &&
32078 { ac_try='test -z "$ac_c_werror_flag"
32079 || test ! -s conftest.err'
32080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32081 (eval $ac_try) 2>&5
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); }; } &&
32085 { ac_try='test -s conftest.$ac_objext'
32086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32087 (eval $ac_try) 2>&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); }; }; then
32091 ac_header_compiler=yes
32093 echo "$as_me: failed program was:" >&5
32094 sed 's/^/| /' conftest.$ac_ext >&5
32096 ac_header_compiler=no
32098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32100 echo "${ECHO_T}$ac_header_compiler" >&6
32102 # Is the header present?
32103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32105 cat >conftest.$ac_ext <<_ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h. */
32111 #include <$ac_header>
32113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32116 grep -v '^ *+' conftest.er1 >conftest.err
32118 cat conftest.err >&5
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); } >/dev/null; then
32121 if test -s conftest.err; then
32122 ac_cpp_err=$ac_c_preproc_warn_flag
32123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32130 if test -z "$ac_cpp_err"; then
32131 ac_header_preproc=yes
32133 echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32136 ac_header_preproc=no
32138 rm -f conftest.err conftest.$ac_ext
32139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32140 echo "${ECHO_T}$ac_header_preproc" >&6
32142 # So? What about this header?
32143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32149 ac_header_preproc=yes
32152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32166 ## --------------------------------------------- ##
32167 ## Report this to <http://www.openldap.org/its/> ##
32168 ## --------------------------------------------- ##
32171 sed "s/^/$as_me: WARNING: /" >&2
32174 echo "$as_me:$LINENO: checking for $ac_header" >&5
32175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32177 echo $ECHO_N "(cached) $ECHO_C" >&6
32179 eval "$as_ac_Header=\$ac_header_preproc"
32181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32186 cat >>confdefs.h <<_ACEOF
32187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32194 if test $ac_cv_header_unicode_utypes_h = yes ; then
32195 OL_ICULIBS="-licuuc -licudata"
32197 echo "$as_me:$LINENO: checking for ICU libraries" >&5
32198 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32199 if test "${ol_cv_lib_icu+set}" = set; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32204 LIBS="$OL_ICULIBS $LIBS"
32205 cat >conftest.$ac_ext <<_ACEOF
32208 cat confdefs.h >>conftest.$ac_ext
32209 cat >>conftest.$ac_ext <<_ACEOF
32210 /* end confdefs.h. */
32212 #include <unicode/utypes.h>
32218 (void) u_errorName(0);
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32226 (eval $ac_link) 2>conftest.er1
32228 grep -v '^ *+' conftest.er1 >conftest.err
32230 cat conftest.err >&5
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); } &&
32233 { ac_try='test -z "$ac_c_werror_flag"
32234 || test ! -s conftest.err'
32235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32236 (eval $ac_try) 2>&5
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); }; } &&
32240 { ac_try='test -s conftest$ac_exeext'
32241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242 (eval $ac_try) 2>&5
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); }; }; then
32248 echo "$as_me: failed program was:" >&5
32249 sed 's/^/| /' conftest.$ac_ext >&5
32253 rm -f conftest.err conftest.$ac_objext \
32254 conftest$ac_exeext conftest.$ac_ext
32258 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32259 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32261 if test $ol_cv_lib_icu != no ; then
32262 ol_icu="$OL_ICULIBS"
32264 cat >>confdefs.h <<\_ACEOF
32271 if test "$ol_icu" = no ; then
32272 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32273 echo "$as_me: WARNING: ICU not available" >&2;}
32280 if test $ol_with_cyrus_sasl != no ; then
32283 for ac_header in sasl/sasl.h sasl.h
32285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32287 echo "$as_me:$LINENO: checking for $ac_header" >&5
32288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32290 echo $ECHO_N "(cached) $ECHO_C" >&6
32292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32295 # Is the header compilable?
32296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32298 cat >conftest.$ac_ext <<_ACEOF
32301 cat confdefs.h >>conftest.$ac_ext
32302 cat >>conftest.$ac_ext <<_ACEOF
32303 /* end confdefs.h. */
32304 $ac_includes_default
32305 #include <$ac_header>
32307 rm -f conftest.$ac_objext
32308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32309 (eval $ac_compile) 2>conftest.er1
32311 grep -v '^ *+' conftest.er1 >conftest.err
32313 cat conftest.err >&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } &&
32316 { ac_try='test -z "$ac_c_werror_flag"
32317 || test ! -s conftest.err'
32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319 (eval $ac_try) 2>&5
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; } &&
32323 { ac_try='test -s conftest.$ac_objext'
32324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325 (eval $ac_try) 2>&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; }; then
32329 ac_header_compiler=yes
32331 echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32334 ac_header_compiler=no
32336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32338 echo "${ECHO_T}$ac_header_compiler" >&6
32340 # Is the header present?
32341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32343 cat >conftest.$ac_ext <<_ACEOF
32346 cat confdefs.h >>conftest.$ac_ext
32347 cat >>conftest.$ac_ext <<_ACEOF
32348 /* end confdefs.h. */
32349 #include <$ac_header>
32351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32354 grep -v '^ *+' conftest.er1 >conftest.err
32356 cat conftest.err >&5
32357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358 (exit $ac_status); } >/dev/null; then
32359 if test -s conftest.err; then
32360 ac_cpp_err=$ac_c_preproc_warn_flag
32361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32368 if test -z "$ac_cpp_err"; then
32369 ac_header_preproc=yes
32371 echo "$as_me: failed program was:" >&5
32372 sed 's/^/| /' conftest.$ac_ext >&5
32374 ac_header_preproc=no
32376 rm -f conftest.err conftest.$ac_ext
32377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32378 echo "${ECHO_T}$ac_header_preproc" >&6
32380 # So? What about this header?
32381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32387 ac_header_preproc=yes
32390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32404 ## --------------------------------------------- ##
32405 ## Report this to <http://www.openldap.org/its/> ##
32406 ## --------------------------------------------- ##
32409 sed "s/^/$as_me: WARNING: /" >&2
32412 echo "$as_me:$LINENO: checking for $ac_header" >&5
32413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32415 echo $ECHO_N "(cached) $ECHO_C" >&6
32417 eval "$as_ac_Header=\$ac_header_preproc"
32419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32424 cat >>confdefs.h <<_ACEOF
32425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32433 if test $ac_cv_header_sasl_sasl_h = yes ||
32434 test $ac_cv_header_sasl_h = yes; then
32435 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32436 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32437 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32438 echo $ECHO_N "(cached) $ECHO_C" >&6
32440 ac_check_lib_save_LIBS=$LIBS
32441 LIBS="-lsasl2 $LIBS"
32442 cat >conftest.$ac_ext <<_ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h. */
32449 /* Override any gcc2 internal prototype to avoid an error. */
32453 /* We use char because int might match the return type of a gcc2
32454 builtin and then its argument prototype would still apply. */
32455 char sasl_client_init ();
32459 sasl_client_init ();
32464 rm -f conftest.$ac_objext conftest$ac_exeext
32465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32466 (eval $ac_link) 2>conftest.er1
32468 grep -v '^ *+' conftest.er1 >conftest.err
32470 cat conftest.err >&5
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); } &&
32473 { ac_try='test -z "$ac_c_werror_flag"
32474 || test ! -s conftest.err'
32475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32476 (eval $ac_try) 2>&5
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; } &&
32480 { ac_try='test -s conftest$ac_exeext'
32481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482 (eval $ac_try) 2>&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; }; then
32486 ac_cv_lib_sasl2_sasl_client_init=yes
32488 echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32491 ac_cv_lib_sasl2_sasl_client_init=no
32493 rm -f conftest.err conftest.$ac_objext \
32494 conftest$ac_exeext conftest.$ac_ext
32495 LIBS=$ac_check_lib_save_LIBS
32497 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32498 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32499 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32500 ol_link_sasl="-lsasl2"
32502 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32503 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32504 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32505 echo $ECHO_N "(cached) $ECHO_C" >&6
32507 ac_check_lib_save_LIBS=$LIBS
32508 LIBS="-lsasl $LIBS"
32509 cat >conftest.$ac_ext <<_ACEOF
32512 cat confdefs.h >>conftest.$ac_ext
32513 cat >>conftest.$ac_ext <<_ACEOF
32514 /* end confdefs.h. */
32516 /* Override any gcc2 internal prototype to avoid an error. */
32520 /* We use char because int might match the return type of a gcc2
32521 builtin and then its argument prototype would still apply. */
32522 char sasl_client_init ();
32526 sasl_client_init ();
32531 rm -f conftest.$ac_objext conftest$ac_exeext
32532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32533 (eval $ac_link) 2>conftest.er1
32535 grep -v '^ *+' conftest.er1 >conftest.err
32537 cat conftest.err >&5
32538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539 (exit $ac_status); } &&
32540 { ac_try='test -z "$ac_c_werror_flag"
32541 || test ! -s conftest.err'
32542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32543 (eval $ac_try) 2>&5
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; } &&
32547 { ac_try='test -s conftest$ac_exeext'
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; }; then
32553 ac_cv_lib_sasl_sasl_client_init=yes
32555 echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32558 ac_cv_lib_sasl_sasl_client_init=no
32560 rm -f conftest.err conftest.$ac_objext \
32561 conftest$ac_exeext conftest.$ac_ext
32562 LIBS=$ac_check_lib_save_LIBS
32564 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32565 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32566 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32567 ol_link_sasl="-lsasl"
32574 if test $ol_link_sasl = no ; then
32575 if test $ol_with_cyrus_sasl != auto ; then
32576 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32577 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32578 { (exit 1); exit 1; }; }
32580 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32581 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32582 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32583 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32584 if test $ol_link_tls = no ; then
32585 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32586 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32590 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32591 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32592 if test "${ol_cv_sasl_compat+set}" = set; then
32593 echo $ECHO_N "(cached) $ECHO_C" >&6
32596 cat >conftest.$ac_ext <<_ACEOF
32599 cat confdefs.h >>conftest.$ac_ext
32600 cat >>conftest.$ac_ext <<_ACEOF
32601 /* end confdefs.h. */
32603 #ifdef HAVE_SASL_SASL_H
32604 #include <sasl/sasl.h>
32609 /* Require 2.1.15+ */
32610 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32611 char *__sasl_compat = "2.2+ or better okay (we guess)";
32612 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32613 && SASL_VERSION_STEP >=15
32614 char *__sasl_compat = "2.1.15+ or better okay";
32618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32619 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32620 ol_cv_sasl_compat=yes
32622 ol_cv_sasl_compat=no
32627 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32628 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32630 if test $ol_cv_sasl_compat = no ; then
32632 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32633 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32634 { (exit 1); exit 1; }; }
32638 cat >>confdefs.h <<\_ACEOF
32639 #define HAVE_CYRUS_SASL 1
32642 SASL_LIBS="$ol_link_sasl"
32643 if test $ol_enable_spasswd != no ; then
32644 ol_link_spasswd=yes
32647 ac_save_LIBS="$LIBS"
32648 LIBS="$LIBS $ol_link_sasl"
32649 echo "$as_me:$LINENO: checking for sasl_version" >&5
32650 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32651 if test "${ac_cv_func_sasl_version+set}" = set; then
32652 echo $ECHO_N "(cached) $ECHO_C" >&6
32654 cat >conftest.$ac_ext <<_ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32660 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32662 #define sasl_version innocuous_sasl_version
32664 /* System header to define __stub macros and hopefully few prototypes,
32665 which can conflict with char sasl_version (); below.
32666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32667 <limits.h> exists even on freestanding compilers. */
32670 # include <limits.h>
32672 # include <assert.h>
32675 #undef sasl_version
32677 /* Override any gcc2 internal prototype to avoid an error. */
32682 /* We use char because int might match the return type of a gcc2
32683 builtin and then its argument prototype would still apply. */
32684 char sasl_version ();
32685 /* The GNU C library defines this for functions which it implements
32686 to always fail with ENOSYS. Some functions are actually named
32687 something starting with __ and the normal name is an alias. */
32688 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32691 char (*f) () = sasl_version;
32700 return f != sasl_version;
32705 rm -f conftest.$ac_objext conftest$ac_exeext
32706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32707 (eval $ac_link) 2>conftest.er1
32709 grep -v '^ *+' conftest.er1 >conftest.err
32711 cat conftest.err >&5
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); } &&
32714 { ac_try='test -z "$ac_c_werror_flag"
32715 || test ! -s conftest.err'
32716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32717 (eval $ac_try) 2>&5
32719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720 (exit $ac_status); }; } &&
32721 { ac_try='test -s conftest$ac_exeext'
32722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723 (eval $ac_try) 2>&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); }; }; then
32727 ac_cv_func_sasl_version=yes
32729 echo "$as_me: failed program was:" >&5
32730 sed 's/^/| /' conftest.$ac_ext >&5
32732 ac_cv_func_sasl_version=no
32734 rm -f conftest.err conftest.$ac_objext \
32735 conftest$ac_exeext conftest.$ac_ext
32737 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32738 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32739 if test $ac_cv_func_sasl_version = yes; then
32741 cat >>confdefs.h <<\_ACEOF
32742 #define HAVE_SASL_VERSION 1
32747 LIBS="$ac_save_LIBS"
32753 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32754 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32755 if test $ol_link_tls = no ; then
32756 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32757 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32761 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32763 if test -r /dev/urandom ; then
32764 dev="/dev/urandom";
32765 elif test -r /idev/urandom ; then
32766 dev="/idev/urandom";
32767 elif test -r /dev/srandom ; then
32768 dev="/dev/srandom";
32769 elif test -r /dev/random ; then
32771 elif test -r /idev/random ; then
32772 dev="/idev/random";
32775 if test $dev != no ; then
32777 cat >>confdefs.h <<_ACEOF
32778 #define URANDOM_DEVICE "$dev"
32785 if test $ol_with_fetch != no ; then
32787 LIBS="-lfetch -lcom_err $LIBS"
32788 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32789 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32790 if test "${ol_cv_lib_fetch+set}" = set; then
32791 echo $ECHO_N "(cached) $ECHO_C" >&6
32794 cat >conftest.$ac_ext <<_ACEOF
32797 cat confdefs.h >>conftest.$ac_ext
32798 cat >>conftest.$ac_ext <<_ACEOF
32799 /* end confdefs.h. */
32801 #include <sys/param.h>
32807 struct url *u = fetchParseURL("file:///");
32812 rm -f conftest.$ac_objext conftest$ac_exeext
32813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32814 (eval $ac_link) 2>conftest.er1
32816 grep -v '^ *+' conftest.er1 >conftest.err
32818 cat conftest.err >&5
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); } &&
32821 { ac_try='test -z "$ac_c_werror_flag"
32822 || test ! -s conftest.err'
32823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824 (eval $ac_try) 2>&5
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest$ac_exeext'
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 ol_cv_lib_fetch=yes
32836 echo "$as_me: failed program was:" >&5
32837 sed 's/^/| /' conftest.$ac_ext >&5
32841 rm -f conftest.err conftest.$ac_objext \
32842 conftest$ac_exeext conftest.$ac_ext
32844 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32845 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32847 if test $ol_cv_lib_fetch != no ; then
32848 ol_link_fetch="-lfetch -lcom_err"
32850 cat >>confdefs.h <<\_ACEOF
32851 #define HAVE_FETCH 1
32857 if test $ol_cv_lib_fetch != no ; then
32858 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32859 ol_link_fetch=freebsd
32861 elif test $ol_with_fetch != auto ; then
32862 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32863 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32864 { (exit 1); exit 1; }; }
32868 if test $ol_enable_crypt != no ; then
32870 LIBS="$TLS_LIBS $LIBS"
32872 echo "$as_me:$LINENO: checking for crypt" >&5
32873 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32874 if test "${ac_cv_func_crypt+set}" = set; then
32875 echo $ECHO_N "(cached) $ECHO_C" >&6
32877 cat >conftest.$ac_ext <<_ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h. */
32883 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32885 #define crypt innocuous_crypt
32887 /* System header to define __stub macros and hopefully few prototypes,
32888 which can conflict with char crypt (); below.
32889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32890 <limits.h> exists even on freestanding compilers. */
32893 # include <limits.h>
32895 # include <assert.h>
32900 /* Override any gcc2 internal prototype to avoid an error. */
32905 /* We use char because int might match the return type of a gcc2
32906 builtin and then its argument prototype would still apply. */
32908 /* The GNU C library defines this for functions which it implements
32909 to always fail with ENOSYS. Some functions are actually named
32910 something starting with __ and the normal name is an alias. */
32911 #if defined (__stub_crypt) || defined (__stub___crypt)
32914 char (*f) () = crypt;
32928 rm -f conftest.$ac_objext conftest$ac_exeext
32929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32930 (eval $ac_link) 2>conftest.er1
32932 grep -v '^ *+' conftest.er1 >conftest.err
32934 cat conftest.err >&5
32935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 (exit $ac_status); } &&
32937 { ac_try='test -z "$ac_c_werror_flag"
32938 || test ! -s conftest.err'
32939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940 (eval $ac_try) 2>&5
32942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); }; } &&
32944 { ac_try='test -s conftest$ac_exeext'
32945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32946 (eval $ac_try) 2>&5
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); }; }; then
32950 ac_cv_func_crypt=yes
32952 echo "$as_me: failed program was:" >&5
32953 sed 's/^/| /' conftest.$ac_ext >&5
32955 ac_cv_func_crypt=no
32957 rm -f conftest.err conftest.$ac_objext \
32958 conftest$ac_exeext conftest.$ac_ext
32960 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32961 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32962 if test $ac_cv_func_crypt = yes; then
32967 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32968 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32969 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32972 ac_check_lib_save_LIBS=$LIBS
32973 LIBS="-lcrypt $LIBS"
32974 cat >conftest.$ac_ext <<_ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h. */
32981 /* Override any gcc2 internal prototype to avoid an error. */
32985 /* We use char because int might match the return type of a gcc2
32986 builtin and then its argument prototype would still apply. */
32996 rm -f conftest.$ac_objext conftest$ac_exeext
32997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32998 (eval $ac_link) 2>conftest.er1
33000 grep -v '^ *+' conftest.er1 >conftest.err
33002 cat conftest.err >&5
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); } &&
33005 { ac_try='test -z "$ac_c_werror_flag"
33006 || test ! -s conftest.err'
33007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008 (eval $ac_try) 2>&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; } &&
33012 { ac_try='test -s conftest$ac_exeext'
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; }; then
33018 ac_cv_lib_crypt_crypt=yes
33020 echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33023 ac_cv_lib_crypt_crypt=no
33025 rm -f conftest.err conftest.$ac_objext \
33026 conftest$ac_exeext conftest.$ac_ext
33027 LIBS=$ac_check_lib_save_LIBS
33029 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33030 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33031 if test $ac_cv_lib_crypt_crypt = yes; then
33032 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33043 if test $have_crypt = yes ; then
33045 cat >>confdefs.h <<\_ACEOF
33046 #define HAVE_CRYPT 1
33050 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33051 echo "$as_me: WARNING: could not find crypt" >&2;}
33052 if test $ol_enable_crypt = yes ; then
33053 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33054 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33055 { (exit 1); exit 1; }; }
33058 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33059 echo "$as_me: WARNING: disabling crypt support" >&2;}
33064 if test $ol_enable_proctitle != no ; then
33065 echo "$as_me:$LINENO: checking for setproctitle" >&5
33066 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33067 if test "${ac_cv_func_setproctitle+set}" = set; then
33068 echo $ECHO_N "(cached) $ECHO_C" >&6
33070 cat >conftest.$ac_ext <<_ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h. */
33076 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33078 #define setproctitle innocuous_setproctitle
33080 /* System header to define __stub macros and hopefully few prototypes,
33081 which can conflict with char setproctitle (); below.
33082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33083 <limits.h> exists even on freestanding compilers. */
33086 # include <limits.h>
33088 # include <assert.h>
33091 #undef setproctitle
33093 /* Override any gcc2 internal prototype to avoid an error. */
33098 /* We use char because int might match the return type of a gcc2
33099 builtin and then its argument prototype would still apply. */
33100 char setproctitle ();
33101 /* The GNU C library defines this for functions which it implements
33102 to always fail with ENOSYS. Some functions are actually named
33103 something starting with __ and the normal name is an alias. */
33104 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33107 char (*f) () = setproctitle;
33116 return f != setproctitle;
33121 rm -f conftest.$ac_objext conftest$ac_exeext
33122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33123 (eval $ac_link) 2>conftest.er1
33125 grep -v '^ *+' conftest.er1 >conftest.err
33127 cat conftest.err >&5
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); } &&
33130 { ac_try='test -z "$ac_c_werror_flag"
33131 || test ! -s conftest.err'
33132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33133 (eval $ac_try) 2>&5
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136 (exit $ac_status); }; } &&
33137 { ac_try='test -s conftest$ac_exeext'
33138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33139 (eval $ac_try) 2>&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
33143 ac_cv_func_setproctitle=yes
33145 echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33148 ac_cv_func_setproctitle=no
33150 rm -f conftest.err conftest.$ac_objext \
33151 conftest$ac_exeext conftest.$ac_ext
33153 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33154 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33155 if test $ac_cv_func_setproctitle = yes; then
33156 have_setproctitle=yes
33159 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33160 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33161 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33164 ac_check_lib_save_LIBS=$LIBS
33165 LIBS="-lutil $LIBS"
33166 cat >conftest.$ac_ext <<_ACEOF
33169 cat confdefs.h >>conftest.$ac_ext
33170 cat >>conftest.$ac_ext <<_ACEOF
33171 /* end confdefs.h. */
33173 /* Override any gcc2 internal prototype to avoid an error. */
33177 /* We use char because int might match the return type of a gcc2
33178 builtin and then its argument prototype would still apply. */
33179 char setproctitle ();
33188 rm -f conftest.$ac_objext conftest$ac_exeext
33189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33190 (eval $ac_link) 2>conftest.er1
33192 grep -v '^ *+' conftest.er1 >conftest.err
33194 cat conftest.err >&5
33195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33196 (exit $ac_status); } &&
33197 { ac_try='test -z "$ac_c_werror_flag"
33198 || test ! -s conftest.err'
33199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200 (eval $ac_try) 2>&5
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest$ac_exeext'
33205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206 (eval $ac_try) 2>&5
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
33210 ac_cv_lib_util_setproctitle=yes
33212 echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33215 ac_cv_lib_util_setproctitle=no
33217 rm -f conftest.err conftest.$ac_objext \
33218 conftest$ac_exeext conftest.$ac_ext
33219 LIBS=$ac_check_lib_save_LIBS
33221 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33222 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33223 if test $ac_cv_lib_util_setproctitle = yes; then
33224 have_setproctitle=yes
33225 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33227 have_setproctitle=no
33229 "setproctitle.$ac_objext" | \
33230 *" setproctitle.$ac_objext" | \
33231 "setproctitle.$ac_objext "* | \
33232 *" setproctitle.$ac_objext "* ) ;;
33233 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33236 LIBSRCS="$LIBSRCS setproctitle.c"
33242 if test $have_setproctitle = yes ; then
33244 cat >>confdefs.h <<\_ACEOF
33245 #define HAVE_SETPROCTITLE 1
33251 if test $ol_enable_slp != no ; then
33253 for ac_header in slp.h
33255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33257 echo "$as_me:$LINENO: checking for $ac_header" >&5
33258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33260 echo $ECHO_N "(cached) $ECHO_C" >&6
33262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33265 # Is the header compilable?
33266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33268 cat >conftest.$ac_ext <<_ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h. */
33274 $ac_includes_default
33275 #include <$ac_header>
33277 rm -f conftest.$ac_objext
33278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33279 (eval $ac_compile) 2>conftest.er1
33281 grep -v '^ *+' conftest.er1 >conftest.err
33283 cat conftest.err >&5
33284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285 (exit $ac_status); } &&
33286 { ac_try='test -z "$ac_c_werror_flag"
33287 || test ! -s conftest.err'
33288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33289 (eval $ac_try) 2>&5
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); }; } &&
33293 { ac_try='test -s conftest.$ac_objext'
33294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33295 (eval $ac_try) 2>&5
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); }; }; then
33299 ac_header_compiler=yes
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33304 ac_header_compiler=no
33306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33308 echo "${ECHO_T}$ac_header_compiler" >&6
33310 # Is the header present?
33311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33313 cat >conftest.$ac_ext <<_ACEOF
33316 cat confdefs.h >>conftest.$ac_ext
33317 cat >>conftest.$ac_ext <<_ACEOF
33318 /* end confdefs.h. */
33319 #include <$ac_header>
33321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33324 grep -v '^ *+' conftest.er1 >conftest.err
33326 cat conftest.err >&5
33327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328 (exit $ac_status); } >/dev/null; then
33329 if test -s conftest.err; then
33330 ac_cpp_err=$ac_c_preproc_warn_flag
33331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33338 if test -z "$ac_cpp_err"; then
33339 ac_header_preproc=yes
33341 echo "$as_me: failed program was:" >&5
33342 sed 's/^/| /' conftest.$ac_ext >&5
33344 ac_header_preproc=no
33346 rm -f conftest.err conftest.$ac_ext
33347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33348 echo "${ECHO_T}$ac_header_preproc" >&6
33350 # So? What about this header?
33351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33357 ac_header_preproc=yes
33360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33374 ## --------------------------------------------- ##
33375 ## Report this to <http://www.openldap.org/its/> ##
33376 ## --------------------------------------------- ##
33379 sed "s/^/$as_me: WARNING: /" >&2
33382 echo "$as_me:$LINENO: checking for $ac_header" >&5
33383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33385 echo $ECHO_N "(cached) $ECHO_C" >&6
33387 eval "$as_ac_Header=\$ac_header_preproc"
33389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33394 cat >>confdefs.h <<_ACEOF
33395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33403 if test $ac_cv_header_slp_h = yes ; then
33404 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33405 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33406 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33407 echo $ECHO_N "(cached) $ECHO_C" >&6
33409 ac_check_lib_save_LIBS=$LIBS
33411 cat >conftest.$ac_ext <<_ACEOF
33414 cat confdefs.h >>conftest.$ac_ext
33415 cat >>conftest.$ac_ext <<_ACEOF
33416 /* end confdefs.h. */
33418 /* Override any gcc2 internal prototype to avoid an error. */
33422 /* We use char because int might match the return type of a gcc2
33423 builtin and then its argument prototype would still apply. */
33433 rm -f conftest.$ac_objext conftest$ac_exeext
33434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33435 (eval $ac_link) 2>conftest.er1
33437 grep -v '^ *+' conftest.er1 >conftest.err
33439 cat conftest.err >&5
33440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 (exit $ac_status); } &&
33442 { ac_try='test -z "$ac_c_werror_flag"
33443 || test ! -s conftest.err'
33444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33445 (eval $ac_try) 2>&5
33447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448 (exit $ac_status); }; } &&
33449 { ac_try='test -s conftest$ac_exeext'
33450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33451 (eval $ac_try) 2>&5
33453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454 (exit $ac_status); }; }; then
33455 ac_cv_lib_slp_SLPOpen=yes
33457 echo "$as_me: failed program was:" >&5
33458 sed 's/^/| /' conftest.$ac_ext >&5
33460 ac_cv_lib_slp_SLPOpen=no
33462 rm -f conftest.err conftest.$ac_objext \
33463 conftest$ac_exeext conftest.$ac_ext
33464 LIBS=$ac_check_lib_save_LIBS
33466 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33467 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33468 if test $ac_cv_lib_slp_SLPOpen = yes; then
33474 if test $have_slp = yes ; then
33476 cat >>confdefs.h <<\_ACEOF
33480 SLAPD_SLP_LIBS=-lslp
33483 elif test $ol_enable_slp = yes ; then
33484 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33485 echo "$as_me: error: SLP not found" >&2;}
33486 { (exit 1); exit 1; }; }
33491 echo "$as_me:$LINENO: checking for mode_t" >&5
33492 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33493 if test "${ac_cv_type_mode_t+set}" = set; then
33494 echo $ECHO_N "(cached) $ECHO_C" >&6
33496 cat >conftest.$ac_ext <<_ACEOF
33499 cat confdefs.h >>conftest.$ac_ext
33500 cat >>conftest.$ac_ext <<_ACEOF
33501 /* end confdefs.h. */
33502 $ac_includes_default
33508 if (sizeof (mode_t))
33514 rm -f conftest.$ac_objext
33515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33516 (eval $ac_compile) 2>conftest.er1
33518 grep -v '^ *+' conftest.er1 >conftest.err
33520 cat conftest.err >&5
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); } &&
33523 { ac_try='test -z "$ac_c_werror_flag"
33524 || test ! -s conftest.err'
33525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526 (eval $ac_try) 2>&5
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); }; } &&
33530 { ac_try='test -s conftest.$ac_objext'
33531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532 (eval $ac_try) 2>&5
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); }; }; then
33536 ac_cv_type_mode_t=yes
33538 echo "$as_me: failed program was:" >&5
33539 sed 's/^/| /' conftest.$ac_ext >&5
33541 ac_cv_type_mode_t=no
33543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33545 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33546 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33547 if test $ac_cv_type_mode_t = yes; then
33551 cat >>confdefs.h <<_ACEOF
33557 echo "$as_me:$LINENO: checking for off_t" >&5
33558 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33559 if test "${ac_cv_type_off_t+set}" = set; then
33560 echo $ECHO_N "(cached) $ECHO_C" >&6
33562 cat >conftest.$ac_ext <<_ACEOF
33565 cat confdefs.h >>conftest.$ac_ext
33566 cat >>conftest.$ac_ext <<_ACEOF
33567 /* end confdefs.h. */
33568 $ac_includes_default
33574 if (sizeof (off_t))
33580 rm -f conftest.$ac_objext
33581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33582 (eval $ac_compile) 2>conftest.er1
33584 grep -v '^ *+' conftest.er1 >conftest.err
33586 cat conftest.err >&5
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); } &&
33589 { ac_try='test -z "$ac_c_werror_flag"
33590 || test ! -s conftest.err'
33591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33592 (eval $ac_try) 2>&5
33594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595 (exit $ac_status); }; } &&
33596 { ac_try='test -s conftest.$ac_objext'
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; }; then
33602 ac_cv_type_off_t=yes
33604 echo "$as_me: failed program was:" >&5
33605 sed 's/^/| /' conftest.$ac_ext >&5
33607 ac_cv_type_off_t=no
33609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33611 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33612 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33613 if test $ac_cv_type_off_t = yes; then
33617 cat >>confdefs.h <<_ACEOF
33623 echo "$as_me:$LINENO: checking for pid_t" >&5
33624 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33625 if test "${ac_cv_type_pid_t+set}" = set; then
33626 echo $ECHO_N "(cached) $ECHO_C" >&6
33628 cat >conftest.$ac_ext <<_ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h. */
33634 $ac_includes_default
33640 if (sizeof (pid_t))
33646 rm -f conftest.$ac_objext
33647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33648 (eval $ac_compile) 2>conftest.er1
33650 grep -v '^ *+' conftest.er1 >conftest.err
33652 cat conftest.err >&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); } &&
33655 { ac_try='test -z "$ac_c_werror_flag"
33656 || test ! -s conftest.err'
33657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658 (eval $ac_try) 2>&5
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; } &&
33662 { ac_try='test -s conftest.$ac_objext'
33663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664 (eval $ac_try) 2>&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; }; then
33668 ac_cv_type_pid_t=yes
33670 echo "$as_me: failed program was:" >&5
33671 sed 's/^/| /' conftest.$ac_ext >&5
33673 ac_cv_type_pid_t=no
33675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33677 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33678 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33679 if test $ac_cv_type_pid_t = yes; then
33683 cat >>confdefs.h <<_ACEOF
33689 echo "$as_me:$LINENO: checking for ssize_t" >&5
33690 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33691 if test "${ac_cv_type_ssize_t+set}" = set; then
33692 echo $ECHO_N "(cached) $ECHO_C" >&6
33694 cat >conftest.$ac_ext <<_ACEOF
33697 cat confdefs.h >>conftest.$ac_ext
33698 cat >>conftest.$ac_ext <<_ACEOF
33699 /* end confdefs.h. */
33700 $ac_includes_default
33706 if (sizeof (ssize_t))
33712 rm -f conftest.$ac_objext
33713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33714 (eval $ac_compile) 2>conftest.er1
33716 grep -v '^ *+' conftest.er1 >conftest.err
33718 cat conftest.err >&5
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } &&
33721 { ac_try='test -z "$ac_c_werror_flag"
33722 || test ! -s conftest.err'
33723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33724 (eval $ac_try) 2>&5
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; } &&
33728 { ac_try='test -s conftest.$ac_objext'
33729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730 (eval $ac_try) 2>&5
33732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); }; }; then
33734 ac_cv_type_ssize_t=yes
33736 echo "$as_me: failed program was:" >&5
33737 sed 's/^/| /' conftest.$ac_ext >&5
33739 ac_cv_type_ssize_t=no
33741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33743 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33744 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33745 if test $ac_cv_type_ssize_t = yes; then
33749 cat >>confdefs.h <<_ACEOF
33750 #define ssize_t signed int
33755 echo "$as_me:$LINENO: checking for caddr_t" >&5
33756 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33757 if test "${ac_cv_type_caddr_t+set}" = set; then
33758 echo $ECHO_N "(cached) $ECHO_C" >&6
33760 cat >conftest.$ac_ext <<_ACEOF
33763 cat confdefs.h >>conftest.$ac_ext
33764 cat >>conftest.$ac_ext <<_ACEOF
33765 /* end confdefs.h. */
33766 $ac_includes_default
33772 if (sizeof (caddr_t))
33778 rm -f conftest.$ac_objext
33779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780 (eval $ac_compile) 2>conftest.er1
33782 grep -v '^ *+' conftest.er1 >conftest.err
33784 cat conftest.err >&5
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } &&
33787 { ac_try='test -z "$ac_c_werror_flag"
33788 || test ! -s conftest.err'
33789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33790 (eval $ac_try) 2>&5
33792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793 (exit $ac_status); }; } &&
33794 { ac_try='test -s conftest.$ac_objext'
33795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796 (eval $ac_try) 2>&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); }; }; then
33800 ac_cv_type_caddr_t=yes
33802 echo "$as_me: failed program was:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33805 ac_cv_type_caddr_t=no
33807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33809 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33810 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33811 if test $ac_cv_type_caddr_t = yes; then
33815 cat >>confdefs.h <<_ACEOF
33816 #define caddr_t char *
33821 echo "$as_me:$LINENO: checking for size_t" >&5
33822 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33823 if test "${ac_cv_type_size_t+set}" = set; then
33824 echo $ECHO_N "(cached) $ECHO_C" >&6
33826 cat >conftest.$ac_ext <<_ACEOF
33829 cat confdefs.h >>conftest.$ac_ext
33830 cat >>conftest.$ac_ext <<_ACEOF
33831 /* end confdefs.h. */
33832 $ac_includes_default
33838 if (sizeof (size_t))
33844 rm -f conftest.$ac_objext
33845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33846 (eval $ac_compile) 2>conftest.er1
33848 grep -v '^ *+' conftest.er1 >conftest.err
33850 cat conftest.err >&5
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); } &&
33853 { ac_try='test -z "$ac_c_werror_flag"
33854 || test ! -s conftest.err'
33855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33856 (eval $ac_try) 2>&5
33858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859 (exit $ac_status); }; } &&
33860 { ac_try='test -s conftest.$ac_objext'
33861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33862 (eval $ac_try) 2>&5
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); }; }; then
33866 ac_cv_type_size_t=yes
33868 echo "$as_me: failed program was:" >&5
33869 sed 's/^/| /' conftest.$ac_ext >&5
33871 ac_cv_type_size_t=no
33873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33875 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33876 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33877 if test $ac_cv_type_size_t = yes; then
33881 cat >>confdefs.h <<_ACEOF
33882 #define size_t unsigned
33888 echo "$as_me:$LINENO: checking for long long" >&5
33889 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33890 if test "${ac_cv_type_long_long+set}" = set; then
33891 echo $ECHO_N "(cached) $ECHO_C" >&6
33893 cat >conftest.$ac_ext <<_ACEOF
33896 cat confdefs.h >>conftest.$ac_ext
33897 cat >>conftest.$ac_ext <<_ACEOF
33898 /* end confdefs.h. */
33899 $ac_includes_default
33903 if ((long long *) 0)
33905 if (sizeof (long long))
33911 rm -f conftest.$ac_objext
33912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33913 (eval $ac_compile) 2>conftest.er1
33915 grep -v '^ *+' conftest.er1 >conftest.err
33917 cat conftest.err >&5
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); } &&
33920 { ac_try='test -z "$ac_c_werror_flag"
33921 || test ! -s conftest.err'
33922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923 (eval $ac_try) 2>&5
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest.$ac_objext'
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; }; then
33933 ac_cv_type_long_long=yes
33935 echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33938 ac_cv_type_long_long=no
33940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33942 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33943 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33944 if test $ac_cv_type_long_long = yes; then
33946 cat >>confdefs.h <<_ACEOF
33947 #define HAVE_LONG_LONG 1
33953 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33954 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33955 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33956 echo $ECHO_N "(cached) $ECHO_C" >&6
33958 cat >conftest.$ac_ext <<_ACEOF
33961 cat confdefs.h >>conftest.$ac_ext
33962 cat >>conftest.$ac_ext <<_ACEOF
33963 /* end confdefs.h. */
33964 $ac_includes_default
33968 if ((ptrdiff_t *) 0)
33970 if (sizeof (ptrdiff_t))
33976 rm -f conftest.$ac_objext
33977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33978 (eval $ac_compile) 2>conftest.er1
33980 grep -v '^ *+' conftest.er1 >conftest.err
33982 cat conftest.err >&5
33983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984 (exit $ac_status); } &&
33985 { ac_try='test -z "$ac_c_werror_flag"
33986 || test ! -s conftest.err'
33987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988 (eval $ac_try) 2>&5
33990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991 (exit $ac_status); }; } &&
33992 { ac_try='test -s conftest.$ac_objext'
33993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33994 (eval $ac_try) 2>&5
33996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997 (exit $ac_status); }; }; then
33998 ac_cv_type_ptrdiff_t=yes
34000 echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34003 ac_cv_type_ptrdiff_t=no
34005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34007 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34008 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34009 if test $ac_cv_type_ptrdiff_t = yes; then
34011 cat >>confdefs.h <<_ACEOF
34012 #define HAVE_PTRDIFF_T 1
34020 echo "$as_me:$LINENO: checking for socklen_t" >&5
34021 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34022 if test "${ac_cv_type_socklen_t+set}" = set; then
34023 echo $ECHO_N "(cached) $ECHO_C" >&6
34025 cat >conftest.$ac_ext <<_ACEOF
34028 cat confdefs.h >>conftest.$ac_ext
34029 cat >>conftest.$ac_ext <<_ACEOF
34030 /* end confdefs.h. */
34031 $ac_includes_default
34032 #ifdef HAVE_SYS_SOCKET_H
34033 #include <sys/socket.h>
34039 if ((socklen_t *) 0)
34041 if (sizeof (socklen_t))
34047 rm -f conftest.$ac_objext
34048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34049 (eval $ac_compile) 2>conftest.er1
34051 grep -v '^ *+' conftest.er1 >conftest.err
34053 cat conftest.err >&5
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); } &&
34056 { ac_try='test -z "$ac_c_werror_flag"
34057 || test ! -s conftest.err'
34058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34059 (eval $ac_try) 2>&5
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); }; } &&
34063 { ac_try='test -s conftest.$ac_objext'
34064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065 (eval $ac_try) 2>&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; }; then
34069 ac_cv_type_socklen_t=yes
34071 echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34074 ac_cv_type_socklen_t=no
34076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34078 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34079 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34082 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
34083 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
34084 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
34085 echo $ECHO_N "(cached) $ECHO_C" >&6
34088 set socklen_t int unsigned "unsigned long" long size_t
34089 test "$ac_cv_type_socklen_t" = yes || shift
34090 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
34091 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
34092 cat >conftest.$ac_ext <<_ACEOF
34095 cat confdefs.h >>conftest.$ac_ext
34096 cat >>conftest.$ac_ext <<_ACEOF
34097 /* end confdefs.h. */
34098 $ac_includes_default
34099 #ifdef HAVE_SYS_SOCKET_H
34100 #include <sys/socket.h>
34102 extern int accept(int s, $addrtype *ap, $lentype *lp);
34108 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
34114 rm -f conftest.$ac_objext
34115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34116 (eval $ac_compile) 2>conftest.er1
34118 grep -v '^ *+' conftest.er1 >conftest.err
34120 cat conftest.err >&5
34121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122 (exit $ac_status); } &&
34123 { ac_try='test -z "$ac_c_werror_flag"
34124 || test ! -s conftest.err'
34125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34126 (eval $ac_try) 2>&5
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); }; } &&
34130 { ac_try='test -s conftest.$ac_objext'
34131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34132 (eval $ac_try) 2>&5
34134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135 (exit $ac_status); }; }; then
34136 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
34138 echo "$as_me: failed program was:" >&5
34139 sed 's/^/| /' conftest.$ac_ext >&5
34142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34146 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
34147 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
34149 cat >>confdefs.h <<_ACEOF
34150 #define ber_socklen_t $ol_cv_type_ber_socklen_t
34154 if test "$ac_cv_type_socklen_t" != yes; then
34156 cat >>confdefs.h <<_ACEOF
34157 #define socklen_t $ol_cv_type_ber_socklen_t
34163 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34164 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34165 if test "${ac_cv_type_signal+set}" = set; then
34166 echo $ECHO_N "(cached) $ECHO_C" >&6
34168 cat >conftest.$ac_ext <<_ACEOF
34171 cat confdefs.h >>conftest.$ac_ext
34172 cat >>conftest.$ac_ext <<_ACEOF
34173 /* end confdefs.h. */
34174 #include <sys/types.h>
34175 #include <signal.h>
34180 extern "C" void (*signal (int, void (*)(int)))(int);
34182 void (*signal ()) ();
34193 rm -f conftest.$ac_objext
34194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34195 (eval $ac_compile) 2>conftest.er1
34197 grep -v '^ *+' conftest.er1 >conftest.err
34199 cat conftest.err >&5
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); } &&
34202 { ac_try='test -z "$ac_c_werror_flag"
34203 || test ! -s conftest.err'
34204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34205 (eval $ac_try) 2>&5
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); }; } &&
34209 { ac_try='test -s conftest.$ac_objext'
34210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211 (eval $ac_try) 2>&5
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); }; }; then
34215 ac_cv_type_signal=void
34217 echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.$ac_ext >&5
34220 ac_cv_type_signal=int
34222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34224 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34225 echo "${ECHO_T}$ac_cv_type_signal" >&6
34227 cat >>confdefs.h <<_ACEOF
34228 #define RETSIGTYPE $ac_cv_type_signal
34233 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34234 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34235 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34236 echo $ECHO_N "(cached) $ECHO_C" >&6
34238 cat >conftest.$ac_ext <<_ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h. */
34244 $ac_includes_default
34245 #include <signal.h>
34251 if ((sig_atomic_t *) 0)
34253 if (sizeof (sig_atomic_t))
34259 rm -f conftest.$ac_objext
34260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34261 (eval $ac_compile) 2>conftest.er1
34263 grep -v '^ *+' conftest.er1 >conftest.err
34265 cat conftest.err >&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); } &&
34268 { ac_try='test -z "$ac_c_werror_flag"
34269 || test ! -s conftest.err'
34270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271 (eval $ac_try) 2>&5
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); }; } &&
34275 { ac_try='test -s conftest.$ac_objext'
34276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277 (eval $ac_try) 2>&5
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); }; }; then
34281 ac_cv_type_sig_atomic_t=yes
34283 echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34286 ac_cv_type_sig_atomic_t=no
34288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34290 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34291 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34292 if test $ac_cv_type_sig_atomic_t = yes; then
34296 cat >>confdefs.h <<_ACEOF
34297 #define sig_atomic_t int
34303 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34304 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34305 if test "${ac_cv_type_uid_t+set}" = set; then
34306 echo $ECHO_N "(cached) $ECHO_C" >&6
34308 cat >conftest.$ac_ext <<_ACEOF
34311 cat confdefs.h >>conftest.$ac_ext
34312 cat >>conftest.$ac_ext <<_ACEOF
34313 /* end confdefs.h. */
34314 #include <sys/types.h>
34317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34318 $EGREP "uid_t" >/dev/null 2>&1; then
34319 ac_cv_type_uid_t=yes
34321 ac_cv_type_uid_t=no
34326 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34327 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34328 if test $ac_cv_type_uid_t = no; then
34330 cat >>confdefs.h <<\_ACEOF
34335 cat >>confdefs.h <<\_ACEOF
34342 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34343 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34344 if test "${ac_cv_header_time+set}" = set; then
34345 echo $ECHO_N "(cached) $ECHO_C" >&6
34347 cat >conftest.$ac_ext <<_ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h. */
34353 #include <sys/types.h>
34354 #include <sys/time.h>
34360 if ((struct tm *) 0)
34366 rm -f conftest.$ac_objext
34367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34368 (eval $ac_compile) 2>conftest.er1
34370 grep -v '^ *+' conftest.er1 >conftest.err
34372 cat conftest.err >&5
34373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374 (exit $ac_status); } &&
34375 { ac_try='test -z "$ac_c_werror_flag"
34376 || test ! -s conftest.err'
34377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378 (eval $ac_try) 2>&5
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); }; } &&
34382 { ac_try='test -s conftest.$ac_objext'
34383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34384 (eval $ac_try) 2>&5
34386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387 (exit $ac_status); }; }; then
34388 ac_cv_header_time=yes
34390 echo "$as_me: failed program was:" >&5
34391 sed 's/^/| /' conftest.$ac_ext >&5
34393 ac_cv_header_time=no
34395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34397 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34398 echo "${ECHO_T}$ac_cv_header_time" >&6
34399 if test $ac_cv_header_time = yes; then
34401 cat >>confdefs.h <<\_ACEOF
34402 #define TIME_WITH_SYS_TIME 1
34407 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34408 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34409 if test "${ac_cv_struct_tm+set}" = set; then
34410 echo $ECHO_N "(cached) $ECHO_C" >&6
34412 cat >conftest.$ac_ext <<_ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h. */
34418 #include <sys/types.h>
34424 struct tm *tp; tp->tm_sec;
34429 rm -f conftest.$ac_objext
34430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34431 (eval $ac_compile) 2>conftest.er1
34433 grep -v '^ *+' conftest.er1 >conftest.err
34435 cat conftest.err >&5
34436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437 (exit $ac_status); } &&
34438 { ac_try='test -z "$ac_c_werror_flag"
34439 || test ! -s conftest.err'
34440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441 (eval $ac_try) 2>&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); }; } &&
34445 { ac_try='test -s conftest.$ac_objext'
34446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34447 (eval $ac_try) 2>&5
34449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450 (exit $ac_status); }; }; then
34451 ac_cv_struct_tm=time.h
34453 echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34456 ac_cv_struct_tm=sys/time.h
34458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34460 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34461 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34462 if test $ac_cv_struct_tm = sys/time.h; then
34464 cat >>confdefs.h <<\_ACEOF
34465 #define TM_IN_SYS_TIME 1
34470 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34471 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34472 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34473 echo $ECHO_N "(cached) $ECHO_C" >&6
34475 cat >conftest.$ac_ext <<_ACEOF
34478 cat confdefs.h >>conftest.$ac_ext
34479 cat >>conftest.$ac_ext <<_ACEOF
34480 /* end confdefs.h. */
34481 $ac_includes_default
34485 static struct stat ac_aggr;
34486 if (ac_aggr.st_blksize)
34492 rm -f conftest.$ac_objext
34493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34494 (eval $ac_compile) 2>conftest.er1
34496 grep -v '^ *+' conftest.er1 >conftest.err
34498 cat conftest.err >&5
34499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); } &&
34501 { ac_try='test -z "$ac_c_werror_flag"
34502 || test ! -s conftest.err'
34503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34504 (eval $ac_try) 2>&5
34506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507 (exit $ac_status); }; } &&
34508 { ac_try='test -s conftest.$ac_objext'
34509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34510 (eval $ac_try) 2>&5
34512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513 (exit $ac_status); }; }; then
34514 ac_cv_member_struct_stat_st_blksize=yes
34516 echo "$as_me: failed program was:" >&5
34517 sed 's/^/| /' conftest.$ac_ext >&5
34519 cat >conftest.$ac_ext <<_ACEOF
34522 cat confdefs.h >>conftest.$ac_ext
34523 cat >>conftest.$ac_ext <<_ACEOF
34524 /* end confdefs.h. */
34525 $ac_includes_default
34529 static struct stat ac_aggr;
34530 if (sizeof ac_aggr.st_blksize)
34536 rm -f conftest.$ac_objext
34537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34538 (eval $ac_compile) 2>conftest.er1
34540 grep -v '^ *+' conftest.er1 >conftest.err
34542 cat conftest.err >&5
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); } &&
34545 { ac_try='test -z "$ac_c_werror_flag"
34546 || test ! -s conftest.err'
34547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34548 (eval $ac_try) 2>&5
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); }; } &&
34552 { ac_try='test -s conftest.$ac_objext'
34553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34554 (eval $ac_try) 2>&5
34556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34557 (exit $ac_status); }; }; then
34558 ac_cv_member_struct_stat_st_blksize=yes
34560 echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34563 ac_cv_member_struct_stat_st_blksize=no
34565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34569 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34570 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34571 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34573 cat >>confdefs.h <<_ACEOF
34574 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34580 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34581 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34582 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34583 echo $ECHO_N "(cached) $ECHO_C" >&6
34585 cat >conftest.$ac_ext <<_ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h. */
34591 $ac_includes_default
34597 static struct passwd ac_aggr;
34598 if (ac_aggr.pw_gecos)
34604 rm -f conftest.$ac_objext
34605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34606 (eval $ac_compile) 2>conftest.er1
34608 grep -v '^ *+' conftest.er1 >conftest.err
34610 cat conftest.err >&5
34611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612 (exit $ac_status); } &&
34613 { ac_try='test -z "$ac_c_werror_flag"
34614 || test ! -s conftest.err'
34615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34616 (eval $ac_try) 2>&5
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); }; } &&
34620 { ac_try='test -s conftest.$ac_objext'
34621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34622 (eval $ac_try) 2>&5
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); }; }; then
34626 ac_cv_member_struct_passwd_pw_gecos=yes
34628 echo "$as_me: failed program was:" >&5
34629 sed 's/^/| /' conftest.$ac_ext >&5
34631 cat >conftest.$ac_ext <<_ACEOF
34634 cat confdefs.h >>conftest.$ac_ext
34635 cat >>conftest.$ac_ext <<_ACEOF
34636 /* end confdefs.h. */
34637 $ac_includes_default
34643 static struct passwd ac_aggr;
34644 if (sizeof ac_aggr.pw_gecos)
34650 rm -f conftest.$ac_objext
34651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34652 (eval $ac_compile) 2>conftest.er1
34654 grep -v '^ *+' conftest.er1 >conftest.err
34656 cat conftest.err >&5
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); } &&
34659 { ac_try='test -z "$ac_c_werror_flag"
34660 || test ! -s conftest.err'
34661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34662 (eval $ac_try) 2>&5
34664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665 (exit $ac_status); }; } &&
34666 { ac_try='test -s conftest.$ac_objext'
34667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34668 (eval $ac_try) 2>&5
34670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671 (exit $ac_status); }; }; then
34672 ac_cv_member_struct_passwd_pw_gecos=yes
34674 echo "$as_me: failed program was:" >&5
34675 sed 's/^/| /' conftest.$ac_ext >&5
34677 ac_cv_member_struct_passwd_pw_gecos=no
34679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34683 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34684 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34685 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34687 cat >>confdefs.h <<_ACEOF
34688 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34694 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34695 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34696 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34697 echo $ECHO_N "(cached) $ECHO_C" >&6
34699 cat >conftest.$ac_ext <<_ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h. */
34705 $ac_includes_default
34711 static struct passwd ac_aggr;
34712 if (ac_aggr.pw_passwd)
34718 rm -f conftest.$ac_objext
34719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34720 (eval $ac_compile) 2>conftest.er1
34722 grep -v '^ *+' conftest.er1 >conftest.err
34724 cat conftest.err >&5
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); } &&
34727 { ac_try='test -z "$ac_c_werror_flag"
34728 || test ! -s conftest.err'
34729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730 (eval $ac_try) 2>&5
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); }; } &&
34734 { ac_try='test -s conftest.$ac_objext'
34735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736 (eval $ac_try) 2>&5
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; }; then
34740 ac_cv_member_struct_passwd_pw_passwd=yes
34742 echo "$as_me: failed program was:" >&5
34743 sed 's/^/| /' conftest.$ac_ext >&5
34745 cat >conftest.$ac_ext <<_ACEOF
34748 cat confdefs.h >>conftest.$ac_ext
34749 cat >>conftest.$ac_ext <<_ACEOF
34750 /* end confdefs.h. */
34751 $ac_includes_default
34757 static struct passwd ac_aggr;
34758 if (sizeof ac_aggr.pw_passwd)
34764 rm -f conftest.$ac_objext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34766 (eval $ac_compile) 2>conftest.er1
34768 grep -v '^ *+' conftest.er1 >conftest.err
34770 cat conftest.err >&5
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); } &&
34773 { ac_try='test -z "$ac_c_werror_flag"
34774 || test ! -s conftest.err'
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; } &&
34780 { ac_try='test -s conftest.$ac_objext'
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 ac_cv_member_struct_passwd_pw_passwd=yes
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34791 ac_cv_member_struct_passwd_pw_passwd=no
34793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34797 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34798 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34799 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34801 cat >>confdefs.h <<_ACEOF
34802 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34809 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34810 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34811 if test "${ol_cv_c_upper_lower+set}" = set; then
34812 echo $ECHO_N "(cached) $ECHO_C" >&6
34815 if test "$cross_compiling" = yes; then
34816 ol_cv_c_upper_lower=safe
34818 cat >conftest.$ac_ext <<_ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h. */
34828 if ('C' == toupper('C'))
34834 rm -f conftest$ac_exeext
34835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34836 (eval $ac_link) 2>&5
34838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34841 (eval $ac_try) 2>&5
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); }; }; then
34845 ol_cv_c_upper_lower=no
34847 echo "$as_me: program exited with status $ac_status" >&5
34848 echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34851 ( exit $ac_status )
34852 ol_cv_c_upper_lower=yes
34854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34857 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34858 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34859 if test $ol_cv_c_upper_lower != no ; then
34861 cat >>confdefs.h <<\_ACEOF
34862 #define C_UPPER_LOWER 1
34867 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34868 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34869 if test "${ac_cv_c_const+set}" = set; then
34870 echo $ECHO_N "(cached) $ECHO_C" >&6
34872 cat >conftest.$ac_ext <<_ACEOF
34875 cat confdefs.h >>conftest.$ac_ext
34876 cat >>conftest.$ac_ext <<_ACEOF
34877 /* end confdefs.h. */
34882 /* FIXME: Include the comments suggested by Paul. */
34883 #ifndef __cplusplus
34884 /* Ultrix mips cc rejects this. */
34885 typedef int charset[2];
34887 /* SunOS 4.1.1 cc rejects this. */
34888 char const *const *ccp;
34890 /* NEC SVR4.0.2 mips cc rejects this. */
34891 struct point {int x, y;};
34892 static struct point const zero = {0,0};
34893 /* AIX XL C 1.02.0.0 rejects this.
34894 It does not let you subtract one const X* pointer from another in
34895 an arm of an if-expression whose if-part is not a constant
34897 const char *g = "string";
34898 ccp = &g + (g ? g-g : 0);
34899 /* HPUX 7.0 cc rejects these. */
34902 ccp = (char const *const *) p;
34903 { /* SCO 3.2v4 cc rejects this. */
34905 char const *s = 0 ? (char *) 0 : (char const *) 0;
34909 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34910 int x[] = {25, 17};
34911 const int *foo = &x[0];
34914 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34915 typedef const int *iptr;
34919 { /* AIX XL C 1.02.0.0 rejects this saying
34920 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34921 struct s { int j; const int *ap[3]; };
34922 struct s *b; b->j = 5;
34924 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34925 const int foo = 10;
34933 rm -f conftest.$ac_objext
34934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34935 (eval $ac_compile) 2>conftest.er1
34937 grep -v '^ *+' conftest.er1 >conftest.err
34939 cat conftest.err >&5
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); } &&
34942 { ac_try='test -z "$ac_c_werror_flag"
34943 || test ! -s conftest.err'
34944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945 (eval $ac_try) 2>&5
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); }; } &&
34949 { ac_try='test -s conftest.$ac_objext'
34950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34951 (eval $ac_try) 2>&5
34953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); }; }; then
34957 echo "$as_me: failed program was:" >&5
34958 sed 's/^/| /' conftest.$ac_ext >&5
34962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34964 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34965 echo "${ECHO_T}$ac_cv_c_const" >&6
34966 if test $ac_cv_c_const = no; then
34968 cat >>confdefs.h <<\_ACEOF
34974 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34975 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34976 if test "${ol_cv_c_volatile+set}" = set; then
34977 echo $ECHO_N "(cached) $ECHO_C" >&6
34979 cat >conftest.$ac_ext <<_ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h. */
34989 volatile int a; int * volatile b = x ? &y : &z;
34990 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34996 rm -f conftest.$ac_objext
34997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34998 (eval $ac_compile) 2>conftest.er1
35000 grep -v '^ *+' conftest.er1 >conftest.err
35002 cat conftest.err >&5
35003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004 (exit $ac_status); } &&
35005 { ac_try='test -z "$ac_c_werror_flag"
35006 || test ! -s conftest.err'
35007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35008 (eval $ac_try) 2>&5
35010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011 (exit $ac_status); }; } &&
35012 { ac_try='test -s conftest.$ac_objext'
35013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014 (eval $ac_try) 2>&5
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); }; }; then
35018 ol_cv_c_volatile=yes
35020 echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35023 ol_cv_c_volatile=no
35025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35027 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35028 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35029 if test $ol_cv_c_volatile = yes; then
35033 cat >>confdefs.h <<\_ACEOF
35040 if test $cross_compiling = yes ; then
35041 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35042 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35044 cat >>confdefs.h <<\_ACEOF
35045 #define CROSS_COMPILING 1
35049 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35050 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35051 if test "${ac_cv_c_bigendian+set}" = set; then
35052 echo $ECHO_N "(cached) $ECHO_C" >&6
35054 # See if sys/param.h defines the BYTE_ORDER macro.
35055 cat >conftest.$ac_ext <<_ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h. */
35061 #include <sys/types.h>
35062 #include <sys/param.h>
35067 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35068 bogus endian macros
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077 (eval $ac_compile) 2>conftest.er1
35079 grep -v '^ *+' conftest.er1 >conftest.err
35081 cat conftest.err >&5
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); } &&
35084 { ac_try='test -z "$ac_c_werror_flag"
35085 || test ! -s conftest.err'
35086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087 (eval $ac_try) 2>&5
35089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090 (exit $ac_status); }; } &&
35091 { ac_try='test -s conftest.$ac_objext'
35092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093 (eval $ac_try) 2>&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); }; }; then
35097 # It does; now see whether it defined to BIG_ENDIAN or not.
35098 cat >conftest.$ac_ext <<_ACEOF
35101 cat confdefs.h >>conftest.$ac_ext
35102 cat >>conftest.$ac_ext <<_ACEOF
35103 /* end confdefs.h. */
35104 #include <sys/types.h>
35105 #include <sys/param.h>
35110 #if BYTE_ORDER != BIG_ENDIAN
35118 rm -f conftest.$ac_objext
35119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35120 (eval $ac_compile) 2>conftest.er1
35122 grep -v '^ *+' conftest.er1 >conftest.err
35124 cat conftest.err >&5
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } &&
35127 { ac_try='test -z "$ac_c_werror_flag"
35128 || test ! -s conftest.err'
35129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35130 (eval $ac_try) 2>&5
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); }; } &&
35134 { ac_try='test -s conftest.$ac_objext'
35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136 (eval $ac_try) 2>&5
35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139 (exit $ac_status); }; }; then
35140 ac_cv_c_bigendian=yes
35142 echo "$as_me: failed program was:" >&5
35143 sed 's/^/| /' conftest.$ac_ext >&5
35145 ac_cv_c_bigendian=no
35147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35149 echo "$as_me: failed program was:" >&5
35150 sed 's/^/| /' conftest.$ac_ext >&5
35152 # It does not; compile a test program.
35153 if test "$cross_compiling" = yes; then
35154 # try to guess the endianness by grepping values into an object file
35155 ac_cv_c_bigendian=unknown
35156 cat >conftest.$ac_ext <<_ACEOF
35159 cat confdefs.h >>conftest.$ac_ext
35160 cat >>conftest.$ac_ext <<_ACEOF
35161 /* end confdefs.h. */
35162 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35163 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35164 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35165 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35166 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35167 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35171 _ascii (); _ebcdic ();
35176 rm -f conftest.$ac_objext
35177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35178 (eval $ac_compile) 2>conftest.er1
35180 grep -v '^ *+' conftest.er1 >conftest.err
35182 cat conftest.err >&5
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); } &&
35185 { ac_try='test -z "$ac_c_werror_flag"
35186 || test ! -s conftest.err'
35187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35188 (eval $ac_try) 2>&5
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); }; } &&
35192 { ac_try='test -s conftest.$ac_objext'
35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194 (eval $ac_try) 2>&5
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; }; then
35198 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35199 ac_cv_c_bigendian=yes
35201 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35202 if test "$ac_cv_c_bigendian" = unknown; then
35203 ac_cv_c_bigendian=no
35205 # finding both strings is unlikely to happen, but who knows?
35206 ac_cv_c_bigendian=unknown
35210 echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35216 cat >conftest.$ac_ext <<_ACEOF
35219 cat confdefs.h >>conftest.$ac_ext
35220 cat >>conftest.$ac_ext <<_ACEOF
35221 /* end confdefs.h. */
35225 /* Are we little or big endian? From Harbison&Steele. */
35229 char c[sizeof (long)];
35232 exit (u.c[sizeof (long) - 1] == 1);
35235 rm -f conftest$ac_exeext
35236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35237 (eval $ac_link) 2>&5
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242 (eval $ac_try) 2>&5
35244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245 (exit $ac_status); }; }; then
35246 ac_cv_c_bigendian=no
35248 echo "$as_me: program exited with status $ac_status" >&5
35249 echo "$as_me: failed program was:" >&5
35250 sed 's/^/| /' conftest.$ac_ext >&5
35252 ( exit $ac_status )
35253 ac_cv_c_bigendian=yes
35255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35260 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35261 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35262 case $ac_cv_c_bigendian in
35265 cat >>confdefs.h <<\_ACEOF
35266 #define WORDS_BIGENDIAN 1
35272 { { echo "$as_me:$LINENO: error: unknown endianness
35273 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35274 echo "$as_me: error: unknown endianness
35275 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35276 { (exit 1); exit 1; }; } ;;
35281 echo "$as_me:$LINENO: checking for short" >&5
35282 echo $ECHO_N "checking for short... $ECHO_C" >&6
35283 if test "${ac_cv_type_short+set}" = set; then
35284 echo $ECHO_N "(cached) $ECHO_C" >&6
35286 cat >conftest.$ac_ext <<_ACEOF
35289 cat confdefs.h >>conftest.$ac_ext
35290 cat >>conftest.$ac_ext <<_ACEOF
35291 /* end confdefs.h. */
35292 $ac_includes_default
35298 if (sizeof (short))
35304 rm -f conftest.$ac_objext
35305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35306 (eval $ac_compile) 2>conftest.er1
35308 grep -v '^ *+' conftest.er1 >conftest.err
35310 cat conftest.err >&5
35311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312 (exit $ac_status); } &&
35313 { ac_try='test -z "$ac_c_werror_flag"
35314 || test ! -s conftest.err'
35315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316 (eval $ac_try) 2>&5
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); }; } &&
35320 { ac_try='test -s conftest.$ac_objext'
35321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35322 (eval $ac_try) 2>&5
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; }; then
35326 ac_cv_type_short=yes
35328 echo "$as_me: failed program was:" >&5
35329 sed 's/^/| /' conftest.$ac_ext >&5
35331 ac_cv_type_short=no
35333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35335 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35336 echo "${ECHO_T}$ac_cv_type_short" >&6
35338 echo "$as_me:$LINENO: checking size of short" >&5
35339 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35340 if test "${ac_cv_sizeof_short+set}" = set; then
35341 echo $ECHO_N "(cached) $ECHO_C" >&6
35343 if test "$ac_cv_type_short" = yes; then
35344 # The cast to unsigned long works around a bug in the HP C Compiler
35345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35347 # This bug is HP SR number 8606223364.
35348 if test "$cross_compiling" = yes; then
35349 # Depending upon the size, compute the lo and hi bounds.
35350 cat >conftest.$ac_ext <<_ACEOF
35353 cat confdefs.h >>conftest.$ac_ext
35354 cat >>conftest.$ac_ext <<_ACEOF
35355 /* end confdefs.h. */
35356 $ac_includes_default
35360 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35367 rm -f conftest.$ac_objext
35368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35369 (eval $ac_compile) 2>conftest.er1
35371 grep -v '^ *+' conftest.er1 >conftest.err
35373 cat conftest.err >&5
35374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375 (exit $ac_status); } &&
35376 { ac_try='test -z "$ac_c_werror_flag"
35377 || test ! -s conftest.err'
35378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35379 (eval $ac_try) 2>&5
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); }; } &&
35383 { ac_try='test -s conftest.$ac_objext'
35384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35385 (eval $ac_try) 2>&5
35387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35388 (exit $ac_status); }; }; then
35391 cat >conftest.$ac_ext <<_ACEOF
35394 cat confdefs.h >>conftest.$ac_ext
35395 cat >>conftest.$ac_ext <<_ACEOF
35396 /* end confdefs.h. */
35397 $ac_includes_default
35401 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35408 rm -f conftest.$ac_objext
35409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35410 (eval $ac_compile) 2>conftest.er1
35412 grep -v '^ *+' conftest.er1 >conftest.err
35414 cat conftest.err >&5
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); } &&
35417 { ac_try='test -z "$ac_c_werror_flag"
35418 || test ! -s conftest.err'
35419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420 (eval $ac_try) 2>&5
35422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423 (exit $ac_status); }; } &&
35424 { ac_try='test -s conftest.$ac_objext'
35425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426 (eval $ac_try) 2>&5
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); }; }; then
35430 ac_hi=$ac_mid; break
35432 echo "$as_me: failed program was:" >&5
35433 sed 's/^/| /' conftest.$ac_ext >&5
35435 ac_lo=`expr $ac_mid + 1`
35436 if test $ac_lo -le $ac_mid; then
35440 ac_mid=`expr 2 '*' $ac_mid + 1`
35442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35445 echo "$as_me: failed program was:" >&5
35446 sed 's/^/| /' conftest.$ac_ext >&5
35448 cat >conftest.$ac_ext <<_ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h. */
35454 $ac_includes_default
35458 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35465 rm -f conftest.$ac_objext
35466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35467 (eval $ac_compile) 2>conftest.er1
35469 grep -v '^ *+' conftest.er1 >conftest.err
35471 cat conftest.err >&5
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); } &&
35474 { ac_try='test -z "$ac_c_werror_flag"
35475 || test ! -s conftest.err'
35476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477 (eval $ac_try) 2>&5
35479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480 (exit $ac_status); }; } &&
35481 { ac_try='test -s conftest.$ac_objext'
35482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483 (eval $ac_try) 2>&5
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); }; }; then
35489 cat >conftest.$ac_ext <<_ACEOF
35492 cat confdefs.h >>conftest.$ac_ext
35493 cat >>conftest.$ac_ext <<_ACEOF
35494 /* end confdefs.h. */
35495 $ac_includes_default
35499 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35506 rm -f conftest.$ac_objext
35507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35508 (eval $ac_compile) 2>conftest.er1
35510 grep -v '^ *+' conftest.er1 >conftest.err
35512 cat conftest.err >&5
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); } &&
35515 { ac_try='test -z "$ac_c_werror_flag"
35516 || test ! -s conftest.err'
35517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518 (eval $ac_try) 2>&5
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); }; } &&
35522 { ac_try='test -s conftest.$ac_objext'
35523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35524 (eval $ac_try) 2>&5
35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527 (exit $ac_status); }; }; then
35528 ac_lo=$ac_mid; break
35530 echo "$as_me: failed program was:" >&5
35531 sed 's/^/| /' conftest.$ac_ext >&5
35533 ac_hi=`expr '(' $ac_mid ')' - 1`
35534 if test $ac_mid -le $ac_hi; then
35538 ac_mid=`expr 2 '*' $ac_mid`
35540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35543 echo "$as_me: failed program was:" >&5
35544 sed 's/^/| /' conftest.$ac_ext >&5
35548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35551 # Binary search between lo and hi bounds.
35552 while test "x$ac_lo" != "x$ac_hi"; do
35553 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35554 cat >conftest.$ac_ext <<_ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h. */
35560 $ac_includes_default
35564 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35571 rm -f conftest.$ac_objext
35572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35573 (eval $ac_compile) 2>conftest.er1
35575 grep -v '^ *+' conftest.er1 >conftest.err
35577 cat conftest.err >&5
35578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579 (exit $ac_status); } &&
35580 { ac_try='test -z "$ac_c_werror_flag"
35581 || test ! -s conftest.err'
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; } &&
35587 { ac_try='test -s conftest.$ac_objext'
35588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35589 (eval $ac_try) 2>&5
35591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592 (exit $ac_status); }; }; then
35595 echo "$as_me: failed program was:" >&5
35596 sed 's/^/| /' conftest.$ac_ext >&5
35598 ac_lo=`expr '(' $ac_mid ')' + 1`
35600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35603 ?*) ac_cv_sizeof_short=$ac_lo;;
35604 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35605 See \`config.log' for more details." >&5
35606 echo "$as_me: error: cannot compute sizeof (short), 77
35607 See \`config.log' for more details." >&2;}
35608 { (exit 1); exit 1; }; } ;;
35611 if test "$cross_compiling" = yes; then
35612 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35613 See \`config.log' for more details." >&5
35614 echo "$as_me: error: cannot run test program while cross compiling
35615 See \`config.log' for more details." >&2;}
35616 { (exit 1); exit 1; }; }
35618 cat >conftest.$ac_ext <<_ACEOF
35621 cat confdefs.h >>conftest.$ac_ext
35622 cat >>conftest.$ac_ext <<_ACEOF
35623 /* end confdefs.h. */
35624 $ac_includes_default
35625 long longval () { return (long) (sizeof (short)); }
35626 unsigned long ulongval () { return (long) (sizeof (short)); }
35628 #include <stdlib.h>
35633 FILE *f = fopen ("conftest.val", "w");
35636 if (((long) (sizeof (short))) < 0)
35638 long i = longval ();
35639 if (i != ((long) (sizeof (short))))
35641 fprintf (f, "%ld\n", i);
35645 unsigned long i = ulongval ();
35646 if (i != ((long) (sizeof (short))))
35648 fprintf (f, "%lu\n", i);
35650 exit (ferror (f) || fclose (f) != 0);
35656 rm -f conftest$ac_exeext
35657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35658 (eval $ac_link) 2>&5
35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35663 (eval $ac_try) 2>&5
35665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666 (exit $ac_status); }; }; then
35667 ac_cv_sizeof_short=`cat conftest.val`
35669 echo "$as_me: program exited with status $ac_status" >&5
35670 echo "$as_me: failed program was:" >&5
35671 sed 's/^/| /' conftest.$ac_ext >&5
35673 ( exit $ac_status )
35674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35675 See \`config.log' for more details." >&5
35676 echo "$as_me: error: cannot compute sizeof (short), 77
35677 See \`config.log' for more details." >&2;}
35678 { (exit 1); exit 1; }; }
35680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35685 ac_cv_sizeof_short=0
35688 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35689 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35690 cat >>confdefs.h <<_ACEOF
35691 #define SIZEOF_SHORT $ac_cv_sizeof_short
35695 echo "$as_me:$LINENO: checking for int" >&5
35696 echo $ECHO_N "checking for int... $ECHO_C" >&6
35697 if test "${ac_cv_type_int+set}" = set; then
35698 echo $ECHO_N "(cached) $ECHO_C" >&6
35700 cat >conftest.$ac_ext <<_ACEOF
35703 cat confdefs.h >>conftest.$ac_ext
35704 cat >>conftest.$ac_ext <<_ACEOF
35705 /* end confdefs.h. */
35706 $ac_includes_default
35718 rm -f conftest.$ac_objext
35719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35720 (eval $ac_compile) 2>conftest.er1
35722 grep -v '^ *+' conftest.er1 >conftest.err
35724 cat conftest.err >&5
35725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726 (exit $ac_status); } &&
35727 { ac_try='test -z "$ac_c_werror_flag"
35728 || test ! -s conftest.err'
35729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35730 (eval $ac_try) 2>&5
35732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733 (exit $ac_status); }; } &&
35734 { ac_try='test -s conftest.$ac_objext'
35735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35736 (eval $ac_try) 2>&5
35738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739 (exit $ac_status); }; }; then
35742 echo "$as_me: failed program was:" >&5
35743 sed 's/^/| /' conftest.$ac_ext >&5
35747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35749 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35750 echo "${ECHO_T}$ac_cv_type_int" >&6
35752 echo "$as_me:$LINENO: checking size of int" >&5
35753 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35754 if test "${ac_cv_sizeof_int+set}" = set; then
35755 echo $ECHO_N "(cached) $ECHO_C" >&6
35757 if test "$ac_cv_type_int" = yes; then
35758 # The cast to unsigned long works around a bug in the HP C Compiler
35759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35761 # This bug is HP SR number 8606223364.
35762 if test "$cross_compiling" = yes; then
35763 # Depending upon the size, compute the lo and hi bounds.
35764 cat >conftest.$ac_ext <<_ACEOF
35767 cat confdefs.h >>conftest.$ac_ext
35768 cat >>conftest.$ac_ext <<_ACEOF
35769 /* end confdefs.h. */
35770 $ac_includes_default
35774 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35781 rm -f conftest.$ac_objext
35782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35783 (eval $ac_compile) 2>conftest.er1
35785 grep -v '^ *+' conftest.er1 >conftest.err
35787 cat conftest.err >&5
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } &&
35790 { ac_try='test -z "$ac_c_werror_flag"
35791 || test ! -s conftest.err'
35792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35793 (eval $ac_try) 2>&5
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); }; } &&
35797 { ac_try='test -s conftest.$ac_objext'
35798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799 (eval $ac_try) 2>&5
35801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802 (exit $ac_status); }; }; then
35805 cat >conftest.$ac_ext <<_ACEOF
35808 cat confdefs.h >>conftest.$ac_ext
35809 cat >>conftest.$ac_ext <<_ACEOF
35810 /* end confdefs.h. */
35811 $ac_includes_default
35815 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35822 rm -f conftest.$ac_objext
35823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35824 (eval $ac_compile) 2>conftest.er1
35826 grep -v '^ *+' conftest.er1 >conftest.err
35828 cat conftest.err >&5
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); } &&
35831 { ac_try='test -z "$ac_c_werror_flag"
35832 || test ! -s conftest.err'
35833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834 (eval $ac_try) 2>&5
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); }; } &&
35838 { ac_try='test -s conftest.$ac_objext'
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; }; then
35844 ac_hi=$ac_mid; break
35846 echo "$as_me: failed program was:" >&5
35847 sed 's/^/| /' conftest.$ac_ext >&5
35849 ac_lo=`expr $ac_mid + 1`
35850 if test $ac_lo -le $ac_mid; then
35854 ac_mid=`expr 2 '*' $ac_mid + 1`
35856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35859 echo "$as_me: failed program was:" >&5
35860 sed 's/^/| /' conftest.$ac_ext >&5
35862 cat >conftest.$ac_ext <<_ACEOF
35865 cat confdefs.h >>conftest.$ac_ext
35866 cat >>conftest.$ac_ext <<_ACEOF
35867 /* end confdefs.h. */
35868 $ac_includes_default
35872 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35879 rm -f conftest.$ac_objext
35880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35881 (eval $ac_compile) 2>conftest.er1
35883 grep -v '^ *+' conftest.er1 >conftest.err
35885 cat conftest.err >&5
35886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35887 (exit $ac_status); } &&
35888 { ac_try='test -z "$ac_c_werror_flag"
35889 || test ! -s conftest.err'
35890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35891 (eval $ac_try) 2>&5
35893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35894 (exit $ac_status); }; } &&
35895 { ac_try='test -s conftest.$ac_objext'
35896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35897 (eval $ac_try) 2>&5
35899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900 (exit $ac_status); }; }; then
35903 cat >conftest.$ac_ext <<_ACEOF
35906 cat confdefs.h >>conftest.$ac_ext
35907 cat >>conftest.$ac_ext <<_ACEOF
35908 /* end confdefs.h. */
35909 $ac_includes_default
35913 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35920 rm -f conftest.$ac_objext
35921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35922 (eval $ac_compile) 2>conftest.er1
35924 grep -v '^ *+' conftest.er1 >conftest.err
35926 cat conftest.err >&5
35927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35928 (exit $ac_status); } &&
35929 { ac_try='test -z "$ac_c_werror_flag"
35930 || test ! -s conftest.err'
35931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35932 (eval $ac_try) 2>&5
35934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35935 (exit $ac_status); }; } &&
35936 { ac_try='test -s conftest.$ac_objext'
35937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938 (eval $ac_try) 2>&5
35940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941 (exit $ac_status); }; }; then
35942 ac_lo=$ac_mid; break
35944 echo "$as_me: failed program was:" >&5
35945 sed 's/^/| /' conftest.$ac_ext >&5
35947 ac_hi=`expr '(' $ac_mid ')' - 1`
35948 if test $ac_mid -le $ac_hi; then
35952 ac_mid=`expr 2 '*' $ac_mid`
35954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35957 echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35965 # Binary search between lo and hi bounds.
35966 while test "x$ac_lo" != "x$ac_hi"; do
35967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35968 cat >conftest.$ac_ext <<_ACEOF
35971 cat confdefs.h >>conftest.$ac_ext
35972 cat >>conftest.$ac_ext <<_ACEOF
35973 /* end confdefs.h. */
35974 $ac_includes_default
35978 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35985 rm -f conftest.$ac_objext
35986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35987 (eval $ac_compile) 2>conftest.er1
35989 grep -v '^ *+' conftest.er1 >conftest.err
35991 cat conftest.err >&5
35992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993 (exit $ac_status); } &&
35994 { ac_try='test -z "$ac_c_werror_flag"
35995 || test ! -s conftest.err'
35996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35997 (eval $ac_try) 2>&5
35999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000 (exit $ac_status); }; } &&
36001 { ac_try='test -s conftest.$ac_objext'
36002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36003 (eval $ac_try) 2>&5
36005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 (exit $ac_status); }; }; then
36009 echo "$as_me: failed program was:" >&5
36010 sed 's/^/| /' conftest.$ac_ext >&5
36012 ac_lo=`expr '(' $ac_mid ')' + 1`
36014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36017 ?*) ac_cv_sizeof_int=$ac_lo;;
36018 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36019 See \`config.log' for more details." >&5
36020 echo "$as_me: error: cannot compute sizeof (int), 77
36021 See \`config.log' for more details." >&2;}
36022 { (exit 1); exit 1; }; } ;;
36025 if test "$cross_compiling" = yes; then
36026 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36027 See \`config.log' for more details." >&5
36028 echo "$as_me: error: cannot run test program while cross compiling
36029 See \`config.log' for more details." >&2;}
36030 { (exit 1); exit 1; }; }
36032 cat >conftest.$ac_ext <<_ACEOF
36035 cat confdefs.h >>conftest.$ac_ext
36036 cat >>conftest.$ac_ext <<_ACEOF
36037 /* end confdefs.h. */
36038 $ac_includes_default
36039 long longval () { return (long) (sizeof (int)); }
36040 unsigned long ulongval () { return (long) (sizeof (int)); }
36042 #include <stdlib.h>
36047 FILE *f = fopen ("conftest.val", "w");
36050 if (((long) (sizeof (int))) < 0)
36052 long i = longval ();
36053 if (i != ((long) (sizeof (int))))
36055 fprintf (f, "%ld\n", i);
36059 unsigned long i = ulongval ();
36060 if (i != ((long) (sizeof (int))))
36062 fprintf (f, "%lu\n", i);
36064 exit (ferror (f) || fclose (f) != 0);
36070 rm -f conftest$ac_exeext
36071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36072 (eval $ac_link) 2>&5
36074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36077 (eval $ac_try) 2>&5
36079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080 (exit $ac_status); }; }; then
36081 ac_cv_sizeof_int=`cat conftest.val`
36083 echo "$as_me: program exited with status $ac_status" >&5
36084 echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36087 ( exit $ac_status )
36088 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36089 See \`config.log' for more details." >&5
36090 echo "$as_me: error: cannot compute sizeof (int), 77
36091 See \`config.log' for more details." >&2;}
36092 { (exit 1); exit 1; }; }
36094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36102 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36103 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36104 cat >>confdefs.h <<_ACEOF
36105 #define SIZEOF_INT $ac_cv_sizeof_int
36109 echo "$as_me:$LINENO: checking for long" >&5
36110 echo $ECHO_N "checking for long... $ECHO_C" >&6
36111 if test "${ac_cv_type_long+set}" = set; then
36112 echo $ECHO_N "(cached) $ECHO_C" >&6
36114 cat >conftest.$ac_ext <<_ACEOF
36117 cat confdefs.h >>conftest.$ac_ext
36118 cat >>conftest.$ac_ext <<_ACEOF
36119 /* end confdefs.h. */
36120 $ac_includes_default
36132 rm -f conftest.$ac_objext
36133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36134 (eval $ac_compile) 2>conftest.er1
36136 grep -v '^ *+' conftest.er1 >conftest.err
36138 cat conftest.err >&5
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); } &&
36141 { ac_try='test -z "$ac_c_werror_flag"
36142 || test ! -s conftest.err'
36143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36144 (eval $ac_try) 2>&5
36146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147 (exit $ac_status); }; } &&
36148 { ac_try='test -s conftest.$ac_objext'
36149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150 (eval $ac_try) 2>&5
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); }; }; then
36154 ac_cv_type_long=yes
36156 echo "$as_me: failed program was:" >&5
36157 sed 's/^/| /' conftest.$ac_ext >&5
36161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36163 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36164 echo "${ECHO_T}$ac_cv_type_long" >&6
36166 echo "$as_me:$LINENO: checking size of long" >&5
36167 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36168 if test "${ac_cv_sizeof_long+set}" = set; then
36169 echo $ECHO_N "(cached) $ECHO_C" >&6
36171 if test "$ac_cv_type_long" = yes; then
36172 # The cast to unsigned long works around a bug in the HP C Compiler
36173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36175 # This bug is HP SR number 8606223364.
36176 if test "$cross_compiling" = yes; then
36177 # Depending upon the size, compute the lo and hi bounds.
36178 cat >conftest.$ac_ext <<_ACEOF
36181 cat confdefs.h >>conftest.$ac_ext
36182 cat >>conftest.$ac_ext <<_ACEOF
36183 /* end confdefs.h. */
36184 $ac_includes_default
36188 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36195 rm -f conftest.$ac_objext
36196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36197 (eval $ac_compile) 2>conftest.er1
36199 grep -v '^ *+' conftest.er1 >conftest.err
36201 cat conftest.err >&5
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); } &&
36204 { ac_try='test -z "$ac_c_werror_flag"
36205 || test ! -s conftest.err'
36206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36207 (eval $ac_try) 2>&5
36209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); }; } &&
36211 { ac_try='test -s conftest.$ac_objext'
36212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36213 (eval $ac_try) 2>&5
36215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36216 (exit $ac_status); }; }; then
36219 cat >conftest.$ac_ext <<_ACEOF
36222 cat confdefs.h >>conftest.$ac_ext
36223 cat >>conftest.$ac_ext <<_ACEOF
36224 /* end confdefs.h. */
36225 $ac_includes_default
36229 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36236 rm -f conftest.$ac_objext
36237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36238 (eval $ac_compile) 2>conftest.er1
36240 grep -v '^ *+' conftest.er1 >conftest.err
36242 cat conftest.err >&5
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); } &&
36245 { ac_try='test -z "$ac_c_werror_flag"
36246 || test ! -s conftest.err'
36247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248 (eval $ac_try) 2>&5
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); }; } &&
36252 { ac_try='test -s conftest.$ac_objext'
36253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36254 (eval $ac_try) 2>&5
36256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257 (exit $ac_status); }; }; then
36258 ac_hi=$ac_mid; break
36260 echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36263 ac_lo=`expr $ac_mid + 1`
36264 if test $ac_lo -le $ac_mid; then
36268 ac_mid=`expr 2 '*' $ac_mid + 1`
36270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36273 echo "$as_me: failed program was:" >&5
36274 sed 's/^/| /' conftest.$ac_ext >&5
36276 cat >conftest.$ac_ext <<_ACEOF
36279 cat confdefs.h >>conftest.$ac_ext
36280 cat >>conftest.$ac_ext <<_ACEOF
36281 /* end confdefs.h. */
36282 $ac_includes_default
36286 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36293 rm -f conftest.$ac_objext
36294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36295 (eval $ac_compile) 2>conftest.er1
36297 grep -v '^ *+' conftest.er1 >conftest.err
36299 cat conftest.err >&5
36300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301 (exit $ac_status); } &&
36302 { ac_try='test -z "$ac_c_werror_flag"
36303 || test ! -s conftest.err'
36304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36305 (eval $ac_try) 2>&5
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); }; } &&
36309 { ac_try='test -s conftest.$ac_objext'
36310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311 (eval $ac_try) 2>&5
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); }; }; then
36317 cat >conftest.$ac_ext <<_ACEOF
36320 cat confdefs.h >>conftest.$ac_ext
36321 cat >>conftest.$ac_ext <<_ACEOF
36322 /* end confdefs.h. */
36323 $ac_includes_default
36327 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36334 rm -f conftest.$ac_objext
36335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36336 (eval $ac_compile) 2>conftest.er1
36338 grep -v '^ *+' conftest.er1 >conftest.err
36340 cat conftest.err >&5
36341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342 (exit $ac_status); } &&
36343 { ac_try='test -z "$ac_c_werror_flag"
36344 || test ! -s conftest.err'
36345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36346 (eval $ac_try) 2>&5
36348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349 (exit $ac_status); }; } &&
36350 { ac_try='test -s conftest.$ac_objext'
36351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36352 (eval $ac_try) 2>&5
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); }; }; then
36356 ac_lo=$ac_mid; break
36358 echo "$as_me: failed program was:" >&5
36359 sed 's/^/| /' conftest.$ac_ext >&5
36361 ac_hi=`expr '(' $ac_mid ')' - 1`
36362 if test $ac_mid -le $ac_hi; then
36366 ac_mid=`expr 2 '*' $ac_mid`
36368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36371 echo "$as_me: failed program was:" >&5
36372 sed 's/^/| /' conftest.$ac_ext >&5
36376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36379 # Binary search between lo and hi bounds.
36380 while test "x$ac_lo" != "x$ac_hi"; do
36381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36382 cat >conftest.$ac_ext <<_ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h. */
36388 $ac_includes_default
36392 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36399 rm -f conftest.$ac_objext
36400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36401 (eval $ac_compile) 2>conftest.er1
36403 grep -v '^ *+' conftest.er1 >conftest.err
36405 cat conftest.err >&5
36406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407 (exit $ac_status); } &&
36408 { ac_try='test -z "$ac_c_werror_flag"
36409 || test ! -s conftest.err'
36410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411 (eval $ac_try) 2>&5
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); }; } &&
36415 { ac_try='test -s conftest.$ac_objext'
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; }; then
36423 echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36426 ac_lo=`expr '(' $ac_mid ')' + 1`
36428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36431 ?*) ac_cv_sizeof_long=$ac_lo;;
36432 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36433 See \`config.log' for more details." >&5
36434 echo "$as_me: error: cannot compute sizeof (long), 77
36435 See \`config.log' for more details." >&2;}
36436 { (exit 1); exit 1; }; } ;;
36439 if test "$cross_compiling" = yes; then
36440 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36441 See \`config.log' for more details." >&5
36442 echo "$as_me: error: cannot run test program while cross compiling
36443 See \`config.log' for more details." >&2;}
36444 { (exit 1); exit 1; }; }
36446 cat >conftest.$ac_ext <<_ACEOF
36449 cat confdefs.h >>conftest.$ac_ext
36450 cat >>conftest.$ac_ext <<_ACEOF
36451 /* end confdefs.h. */
36452 $ac_includes_default
36453 long longval () { return (long) (sizeof (long)); }
36454 unsigned long ulongval () { return (long) (sizeof (long)); }
36456 #include <stdlib.h>
36461 FILE *f = fopen ("conftest.val", "w");
36464 if (((long) (sizeof (long))) < 0)
36466 long i = longval ();
36467 if (i != ((long) (sizeof (long))))
36469 fprintf (f, "%ld\n", i);
36473 unsigned long i = ulongval ();
36474 if (i != ((long) (sizeof (long))))
36476 fprintf (f, "%lu\n", i);
36478 exit (ferror (f) || fclose (f) != 0);
36484 rm -f conftest$ac_exeext
36485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36486 (eval $ac_link) 2>&5
36488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491 (eval $ac_try) 2>&5
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); }; }; then
36495 ac_cv_sizeof_long=`cat conftest.val`
36497 echo "$as_me: program exited with status $ac_status" >&5
36498 echo "$as_me: failed program was:" >&5
36499 sed 's/^/| /' conftest.$ac_ext >&5
36501 ( exit $ac_status )
36502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36503 See \`config.log' for more details." >&5
36504 echo "$as_me: error: cannot compute sizeof (long), 77
36505 See \`config.log' for more details." >&2;}
36506 { (exit 1); exit 1; }; }
36508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36513 ac_cv_sizeof_long=0
36516 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36517 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36518 cat >>confdefs.h <<_ACEOF
36519 #define SIZEOF_LONG $ac_cv_sizeof_long
36523 echo "$as_me:$LINENO: checking for long long" >&5
36524 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36525 if test "${ac_cv_type_long_long+set}" = set; then
36526 echo $ECHO_N "(cached) $ECHO_C" >&6
36528 cat >conftest.$ac_ext <<_ACEOF
36531 cat confdefs.h >>conftest.$ac_ext
36532 cat >>conftest.$ac_ext <<_ACEOF
36533 /* end confdefs.h. */
36534 $ac_includes_default
36538 if ((long long *) 0)
36540 if (sizeof (long long))
36546 rm -f conftest.$ac_objext
36547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36548 (eval $ac_compile) 2>conftest.er1
36550 grep -v '^ *+' conftest.er1 >conftest.err
36552 cat conftest.err >&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); } &&
36555 { ac_try='test -z "$ac_c_werror_flag"
36556 || test ! -s conftest.err'
36557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558 (eval $ac_try) 2>&5
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); }; } &&
36562 { ac_try='test -s conftest.$ac_objext'
36563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36564 (eval $ac_try) 2>&5
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); }; }; then
36568 ac_cv_type_long_long=yes
36570 echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36573 ac_cv_type_long_long=no
36575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36577 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36578 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36580 echo "$as_me:$LINENO: checking size of long long" >&5
36581 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36582 if test "${ac_cv_sizeof_long_long+set}" = set; then
36583 echo $ECHO_N "(cached) $ECHO_C" >&6
36585 if test "$ac_cv_type_long_long" = yes; then
36586 # The cast to unsigned long works around a bug in the HP C Compiler
36587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36589 # This bug is HP SR number 8606223364.
36590 if test "$cross_compiling" = yes; then
36591 # Depending upon the size, compute the lo and hi bounds.
36592 cat >conftest.$ac_ext <<_ACEOF
36595 cat confdefs.h >>conftest.$ac_ext
36596 cat >>conftest.$ac_ext <<_ACEOF
36597 /* end confdefs.h. */
36598 $ac_includes_default
36602 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36609 rm -f conftest.$ac_objext
36610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36611 (eval $ac_compile) 2>conftest.er1
36613 grep -v '^ *+' conftest.er1 >conftest.err
36615 cat conftest.err >&5
36616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617 (exit $ac_status); } &&
36618 { ac_try='test -z "$ac_c_werror_flag"
36619 || test ! -s conftest.err'
36620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36621 (eval $ac_try) 2>&5
36623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624 (exit $ac_status); }; } &&
36625 { ac_try='test -s conftest.$ac_objext'
36626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36627 (eval $ac_try) 2>&5
36629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630 (exit $ac_status); }; }; then
36633 cat >conftest.$ac_ext <<_ACEOF
36636 cat confdefs.h >>conftest.$ac_ext
36637 cat >>conftest.$ac_ext <<_ACEOF
36638 /* end confdefs.h. */
36639 $ac_includes_default
36643 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36650 rm -f conftest.$ac_objext
36651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36652 (eval $ac_compile) 2>conftest.er1
36654 grep -v '^ *+' conftest.er1 >conftest.err
36656 cat conftest.err >&5
36657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36658 (exit $ac_status); } &&
36659 { ac_try='test -z "$ac_c_werror_flag"
36660 || test ! -s conftest.err'
36661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36662 (eval $ac_try) 2>&5
36664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665 (exit $ac_status); }; } &&
36666 { ac_try='test -s conftest.$ac_objext'
36667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36668 (eval $ac_try) 2>&5
36670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671 (exit $ac_status); }; }; then
36672 ac_hi=$ac_mid; break
36674 echo "$as_me: failed program was:" >&5
36675 sed 's/^/| /' conftest.$ac_ext >&5
36677 ac_lo=`expr $ac_mid + 1`
36678 if test $ac_lo -le $ac_mid; then
36682 ac_mid=`expr 2 '*' $ac_mid + 1`
36684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36687 echo "$as_me: failed program was:" >&5
36688 sed 's/^/| /' conftest.$ac_ext >&5
36690 cat >conftest.$ac_ext <<_ACEOF
36693 cat confdefs.h >>conftest.$ac_ext
36694 cat >>conftest.$ac_ext <<_ACEOF
36695 /* end confdefs.h. */
36696 $ac_includes_default
36700 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36707 rm -f conftest.$ac_objext
36708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36709 (eval $ac_compile) 2>conftest.er1
36711 grep -v '^ *+' conftest.er1 >conftest.err
36713 cat conftest.err >&5
36714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 (exit $ac_status); } &&
36716 { ac_try='test -z "$ac_c_werror_flag"
36717 || test ! -s conftest.err'
36718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36719 (eval $ac_try) 2>&5
36721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 (exit $ac_status); }; } &&
36723 { ac_try='test -s conftest.$ac_objext'
36724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36725 (eval $ac_try) 2>&5
36727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728 (exit $ac_status); }; }; then
36731 cat >conftest.$ac_ext <<_ACEOF
36734 cat confdefs.h >>conftest.$ac_ext
36735 cat >>conftest.$ac_ext <<_ACEOF
36736 /* end confdefs.h. */
36737 $ac_includes_default
36741 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36748 rm -f conftest.$ac_objext
36749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36750 (eval $ac_compile) 2>conftest.er1
36752 grep -v '^ *+' conftest.er1 >conftest.err
36754 cat conftest.err >&5
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); } &&
36757 { ac_try='test -z "$ac_c_werror_flag"
36758 || test ! -s conftest.err'
36759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36760 (eval $ac_try) 2>&5
36762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763 (exit $ac_status); }; } &&
36764 { ac_try='test -s conftest.$ac_objext'
36765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36766 (eval $ac_try) 2>&5
36768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769 (exit $ac_status); }; }; then
36770 ac_lo=$ac_mid; break
36772 echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36775 ac_hi=`expr '(' $ac_mid ')' - 1`
36776 if test $ac_mid -le $ac_hi; then
36780 ac_mid=`expr 2 '*' $ac_mid`
36782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36785 echo "$as_me: failed program was:" >&5
36786 sed 's/^/| /' conftest.$ac_ext >&5
36790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36793 # Binary search between lo and hi bounds.
36794 while test "x$ac_lo" != "x$ac_hi"; do
36795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36796 cat >conftest.$ac_ext <<_ACEOF
36799 cat confdefs.h >>conftest.$ac_ext
36800 cat >>conftest.$ac_ext <<_ACEOF
36801 /* end confdefs.h. */
36802 $ac_includes_default
36806 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36813 rm -f conftest.$ac_objext
36814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36815 (eval $ac_compile) 2>conftest.er1
36817 grep -v '^ *+' conftest.er1 >conftest.err
36819 cat conftest.err >&5
36820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); } &&
36822 { ac_try='test -z "$ac_c_werror_flag"
36823 || test ! -s conftest.err'
36824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36825 (eval $ac_try) 2>&5
36827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36828 (exit $ac_status); }; } &&
36829 { ac_try='test -s conftest.$ac_objext'
36830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36831 (eval $ac_try) 2>&5
36833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36834 (exit $ac_status); }; }; then
36837 echo "$as_me: failed program was:" >&5
36838 sed 's/^/| /' conftest.$ac_ext >&5
36840 ac_lo=`expr '(' $ac_mid ')' + 1`
36842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36845 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36846 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36847 See \`config.log' for more details." >&5
36848 echo "$as_me: error: cannot compute sizeof (long long), 77
36849 See \`config.log' for more details." >&2;}
36850 { (exit 1); exit 1; }; } ;;
36853 if test "$cross_compiling" = yes; then
36854 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36855 See \`config.log' for more details." >&5
36856 echo "$as_me: error: cannot run test program while cross compiling
36857 See \`config.log' for more details." >&2;}
36858 { (exit 1); exit 1; }; }
36860 cat >conftest.$ac_ext <<_ACEOF
36863 cat confdefs.h >>conftest.$ac_ext
36864 cat >>conftest.$ac_ext <<_ACEOF
36865 /* end confdefs.h. */
36866 $ac_includes_default
36867 long longval () { return (long) (sizeof (long long)); }
36868 unsigned long ulongval () { return (long) (sizeof (long long)); }
36870 #include <stdlib.h>
36875 FILE *f = fopen ("conftest.val", "w");
36878 if (((long) (sizeof (long long))) < 0)
36880 long i = longval ();
36881 if (i != ((long) (sizeof (long long))))
36883 fprintf (f, "%ld\n", i);
36887 unsigned long i = ulongval ();
36888 if (i != ((long) (sizeof (long long))))
36890 fprintf (f, "%lu\n", i);
36892 exit (ferror (f) || fclose (f) != 0);
36898 rm -f conftest$ac_exeext
36899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36900 (eval $ac_link) 2>&5
36902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36905 (eval $ac_try) 2>&5
36907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908 (exit $ac_status); }; }; then
36909 ac_cv_sizeof_long_long=`cat conftest.val`
36911 echo "$as_me: program exited with status $ac_status" >&5
36912 echo "$as_me: failed program was:" >&5
36913 sed 's/^/| /' conftest.$ac_ext >&5
36915 ( exit $ac_status )
36916 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36917 See \`config.log' for more details." >&5
36918 echo "$as_me: error: cannot compute sizeof (long long), 77
36919 See \`config.log' for more details." >&2;}
36920 { (exit 1); exit 1; }; }
36922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36927 ac_cv_sizeof_long_long=0
36930 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36931 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36932 cat >>confdefs.h <<_ACEOF
36933 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36937 echo "$as_me:$LINENO: checking for wchar_t" >&5
36938 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36939 if test "${ac_cv_type_wchar_t+set}" = set; then
36940 echo $ECHO_N "(cached) $ECHO_C" >&6
36942 cat >conftest.$ac_ext <<_ACEOF
36945 cat confdefs.h >>conftest.$ac_ext
36946 cat >>conftest.$ac_ext <<_ACEOF
36947 /* end confdefs.h. */
36948 $ac_includes_default
36954 if (sizeof (wchar_t))
36960 rm -f conftest.$ac_objext
36961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36962 (eval $ac_compile) 2>conftest.er1
36964 grep -v '^ *+' conftest.er1 >conftest.err
36966 cat conftest.err >&5
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); } &&
36969 { ac_try='test -z "$ac_c_werror_flag"
36970 || test ! -s conftest.err'
36971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972 (eval $ac_try) 2>&5
36974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975 (exit $ac_status); }; } &&
36976 { ac_try='test -s conftest.$ac_objext'
36977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978 (eval $ac_try) 2>&5
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); }; }; then
36982 ac_cv_type_wchar_t=yes
36984 echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36987 ac_cv_type_wchar_t=no
36989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36991 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36992 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36994 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36995 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36996 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36997 echo $ECHO_N "(cached) $ECHO_C" >&6
36999 if test "$ac_cv_type_wchar_t" = yes; then
37000 # The cast to unsigned long works around a bug in the HP C Compiler
37001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37003 # This bug is HP SR number 8606223364.
37004 if test "$cross_compiling" = yes; then
37005 # Depending upon the size, compute the lo and hi bounds.
37006 cat >conftest.$ac_ext <<_ACEOF
37009 cat confdefs.h >>conftest.$ac_ext
37010 cat >>conftest.$ac_ext <<_ACEOF
37011 /* end confdefs.h. */
37012 $ac_includes_default
37016 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37023 rm -f conftest.$ac_objext
37024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37025 (eval $ac_compile) 2>conftest.er1
37027 grep -v '^ *+' conftest.er1 >conftest.err
37029 cat conftest.err >&5
37030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37031 (exit $ac_status); } &&
37032 { ac_try='test -z "$ac_c_werror_flag"
37033 || test ! -s conftest.err'
37034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37035 (eval $ac_try) 2>&5
37037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); }; } &&
37039 { ac_try='test -s conftest.$ac_objext'
37040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37041 (eval $ac_try) 2>&5
37043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044 (exit $ac_status); }; }; then
37047 cat >conftest.$ac_ext <<_ACEOF
37050 cat confdefs.h >>conftest.$ac_ext
37051 cat >>conftest.$ac_ext <<_ACEOF
37052 /* end confdefs.h. */
37053 $ac_includes_default
37057 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37064 rm -f conftest.$ac_objext
37065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37066 (eval $ac_compile) 2>conftest.er1
37068 grep -v '^ *+' conftest.er1 >conftest.err
37070 cat conftest.err >&5
37071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37072 (exit $ac_status); } &&
37073 { ac_try='test -z "$ac_c_werror_flag"
37074 || test ! -s conftest.err'
37075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37076 (eval $ac_try) 2>&5
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); }; } &&
37080 { ac_try='test -s conftest.$ac_objext'
37081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082 (eval $ac_try) 2>&5
37084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085 (exit $ac_status); }; }; then
37086 ac_hi=$ac_mid; break
37088 echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37091 ac_lo=`expr $ac_mid + 1`
37092 if test $ac_lo -le $ac_mid; then
37096 ac_mid=`expr 2 '*' $ac_mid + 1`
37098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37101 echo "$as_me: failed program was:" >&5
37102 sed 's/^/| /' conftest.$ac_ext >&5
37104 cat >conftest.$ac_ext <<_ACEOF
37107 cat confdefs.h >>conftest.$ac_ext
37108 cat >>conftest.$ac_ext <<_ACEOF
37109 /* end confdefs.h. */
37110 $ac_includes_default
37114 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37121 rm -f conftest.$ac_objext
37122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37123 (eval $ac_compile) 2>conftest.er1
37125 grep -v '^ *+' conftest.er1 >conftest.err
37127 cat conftest.err >&5
37128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129 (exit $ac_status); } &&
37130 { ac_try='test -z "$ac_c_werror_flag"
37131 || test ! -s conftest.err'
37132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37133 (eval $ac_try) 2>&5
37135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136 (exit $ac_status); }; } &&
37137 { ac_try='test -s conftest.$ac_objext'
37138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37139 (eval $ac_try) 2>&5
37141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142 (exit $ac_status); }; }; then
37145 cat >conftest.$ac_ext <<_ACEOF
37148 cat confdefs.h >>conftest.$ac_ext
37149 cat >>conftest.$ac_ext <<_ACEOF
37150 /* end confdefs.h. */
37151 $ac_includes_default
37155 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37162 rm -f conftest.$ac_objext
37163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37164 (eval $ac_compile) 2>conftest.er1
37166 grep -v '^ *+' conftest.er1 >conftest.err
37168 cat conftest.err >&5
37169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170 (exit $ac_status); } &&
37171 { ac_try='test -z "$ac_c_werror_flag"
37172 || test ! -s conftest.err'
37173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174 (eval $ac_try) 2>&5
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); }; } &&
37178 { ac_try='test -s conftest.$ac_objext'
37179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37180 (eval $ac_try) 2>&5
37182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183 (exit $ac_status); }; }; then
37184 ac_lo=$ac_mid; break
37186 echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37189 ac_hi=`expr '(' $ac_mid ')' - 1`
37190 if test $ac_mid -le $ac_hi; then
37194 ac_mid=`expr 2 '*' $ac_mid`
37196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37199 echo "$as_me: failed program was:" >&5
37200 sed 's/^/| /' conftest.$ac_ext >&5
37204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37207 # Binary search between lo and hi bounds.
37208 while test "x$ac_lo" != "x$ac_hi"; do
37209 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37210 cat >conftest.$ac_ext <<_ACEOF
37213 cat confdefs.h >>conftest.$ac_ext
37214 cat >>conftest.$ac_ext <<_ACEOF
37215 /* end confdefs.h. */
37216 $ac_includes_default
37220 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37227 rm -f conftest.$ac_objext
37228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37229 (eval $ac_compile) 2>conftest.er1
37231 grep -v '^ *+' conftest.er1 >conftest.err
37233 cat conftest.err >&5
37234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235 (exit $ac_status); } &&
37236 { ac_try='test -z "$ac_c_werror_flag"
37237 || test ! -s conftest.err'
37238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37239 (eval $ac_try) 2>&5
37241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242 (exit $ac_status); }; } &&
37243 { ac_try='test -s conftest.$ac_objext'
37244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37245 (eval $ac_try) 2>&5
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); }; }; then
37251 echo "$as_me: failed program was:" >&5
37252 sed 's/^/| /' conftest.$ac_ext >&5
37254 ac_lo=`expr '(' $ac_mid ')' + 1`
37256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37259 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37261 See \`config.log' for more details." >&5
37262 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37263 See \`config.log' for more details." >&2;}
37264 { (exit 1); exit 1; }; } ;;
37267 if test "$cross_compiling" = yes; then
37268 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37269 See \`config.log' for more details." >&5
37270 echo "$as_me: error: cannot run test program while cross compiling
37271 See \`config.log' for more details." >&2;}
37272 { (exit 1); exit 1; }; }
37274 cat >conftest.$ac_ext <<_ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37280 $ac_includes_default
37281 long longval () { return (long) (sizeof (wchar_t)); }
37282 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37284 #include <stdlib.h>
37289 FILE *f = fopen ("conftest.val", "w");
37292 if (((long) (sizeof (wchar_t))) < 0)
37294 long i = longval ();
37295 if (i != ((long) (sizeof (wchar_t))))
37297 fprintf (f, "%ld\n", i);
37301 unsigned long i = ulongval ();
37302 if (i != ((long) (sizeof (wchar_t))))
37304 fprintf (f, "%lu\n", i);
37306 exit (ferror (f) || fclose (f) != 0);
37312 rm -f conftest$ac_exeext
37313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37314 (eval $ac_link) 2>&5
37316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319 (eval $ac_try) 2>&5
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); }; }; then
37323 ac_cv_sizeof_wchar_t=`cat conftest.val`
37325 echo "$as_me: program exited with status $ac_status" >&5
37326 echo "$as_me: failed program was:" >&5
37327 sed 's/^/| /' conftest.$ac_ext >&5
37329 ( exit $ac_status )
37330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37331 See \`config.log' for more details." >&5
37332 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37333 See \`config.log' for more details." >&2;}
37334 { (exit 1); exit 1; }; }
37336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37341 ac_cv_sizeof_wchar_t=0
37344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37345 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37346 cat >>confdefs.h <<_ACEOF
37347 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37352 if test "$ac_cv_sizeof_int" -lt 4 ; then
37353 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37354 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37357 cat >>confdefs.h <<\_ACEOF
37358 #define LBER_INT_T long
37363 cat >>confdefs.h <<\_ACEOF
37364 #define LBER_INT_T int
37370 cat >>confdefs.h <<\_ACEOF
37371 #define LBER_LEN_T long
37375 cat >>confdefs.h <<\_ACEOF
37376 #define LBER_SOCKET_T int
37380 cat >>confdefs.h <<\_ACEOF
37381 #define LBER_TAG_T long
37385 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37386 if test $ac_cv_sizeof_long_long -gt 4 ; then
37387 ol_with_mp=longlong
37389 cat >>confdefs.h <<\_ACEOF
37390 #define USE_MP_LONG_LONG 1
37393 elif test $ol_with_mp = longlong ; then
37394 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37395 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37396 { (exit 1); exit 1; }; }
37399 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37400 if test $ac_cv_sizeof_long -gt 4 ; then
37403 cat >>confdefs.h <<\_ACEOF
37404 #define USE_MP_LONG 1
37407 elif test $ol_with_mp = long ; then
37408 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37409 echo "$as_me: error: long unusable for multiple precision" >&2;}
37410 { (exit 1); exit 1; }; }
37413 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37415 for ac_header in openssl/bn.h
37417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37419 echo "$as_me:$LINENO: checking for $ac_header" >&5
37420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37422 echo $ECHO_N "(cached) $ECHO_C" >&6
37424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37427 # Is the header compilable?
37428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37430 cat >conftest.$ac_ext <<_ACEOF
37433 cat confdefs.h >>conftest.$ac_ext
37434 cat >>conftest.$ac_ext <<_ACEOF
37435 /* end confdefs.h. */
37436 $ac_includes_default
37437 #include <$ac_header>
37439 rm -f conftest.$ac_objext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37441 (eval $ac_compile) 2>conftest.er1
37443 grep -v '^ *+' conftest.er1 >conftest.err
37445 cat conftest.err >&5
37446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447 (exit $ac_status); } &&
37448 { ac_try='test -z "$ac_c_werror_flag"
37449 || test ! -s conftest.err'
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; } &&
37455 { ac_try='test -s conftest.$ac_objext'
37456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457 (eval $ac_try) 2>&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); }; }; then
37461 ac_header_compiler=yes
37463 echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37466 ac_header_compiler=no
37468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37470 echo "${ECHO_T}$ac_header_compiler" >&6
37472 # Is the header present?
37473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37475 cat >conftest.$ac_ext <<_ACEOF
37478 cat confdefs.h >>conftest.$ac_ext
37479 cat >>conftest.$ac_ext <<_ACEOF
37480 /* end confdefs.h. */
37481 #include <$ac_header>
37483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37486 grep -v '^ *+' conftest.er1 >conftest.err
37488 cat conftest.err >&5
37489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490 (exit $ac_status); } >/dev/null; then
37491 if test -s conftest.err; then
37492 ac_cpp_err=$ac_c_preproc_warn_flag
37493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37500 if test -z "$ac_cpp_err"; then
37501 ac_header_preproc=yes
37503 echo "$as_me: failed program was:" >&5
37504 sed 's/^/| /' conftest.$ac_ext >&5
37506 ac_header_preproc=no
37508 rm -f conftest.err conftest.$ac_ext
37509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37510 echo "${ECHO_T}$ac_header_preproc" >&6
37512 # So? What about this header?
37513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37519 ac_header_preproc=yes
37522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37536 ## --------------------------------------------- ##
37537 ## Report this to <http://www.openldap.org/its/> ##
37538 ## --------------------------------------------- ##
37541 sed "s/^/$as_me: WARNING: /" >&2
37544 echo "$as_me:$LINENO: checking for $ac_header" >&5
37545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37547 echo $ECHO_N "(cached) $ECHO_C" >&6
37549 eval "$as_ac_Header=\$ac_header_preproc"
37551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37556 cat >>confdefs.h <<_ACEOF
37557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37565 for ac_header in openssl/crypto.h
37567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37569 echo "$as_me:$LINENO: checking for $ac_header" >&5
37570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37572 echo $ECHO_N "(cached) $ECHO_C" >&6
37574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37577 # Is the header compilable?
37578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37580 cat >conftest.$ac_ext <<_ACEOF
37583 cat confdefs.h >>conftest.$ac_ext
37584 cat >>conftest.$ac_ext <<_ACEOF
37585 /* end confdefs.h. */
37586 $ac_includes_default
37587 #include <$ac_header>
37589 rm -f conftest.$ac_objext
37590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37591 (eval $ac_compile) 2>conftest.er1
37593 grep -v '^ *+' conftest.er1 >conftest.err
37595 cat conftest.err >&5
37596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); } &&
37598 { ac_try='test -z "$ac_c_werror_flag"
37599 || test ! -s conftest.err'
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; } &&
37605 { ac_try='test -s conftest.$ac_objext'
37606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37607 (eval $ac_try) 2>&5
37609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610 (exit $ac_status); }; }; then
37611 ac_header_compiler=yes
37613 echo "$as_me: failed program was:" >&5
37614 sed 's/^/| /' conftest.$ac_ext >&5
37616 ac_header_compiler=no
37618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37620 echo "${ECHO_T}$ac_header_compiler" >&6
37622 # Is the header present?
37623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37625 cat >conftest.$ac_ext <<_ACEOF
37628 cat confdefs.h >>conftest.$ac_ext
37629 cat >>conftest.$ac_ext <<_ACEOF
37630 /* end confdefs.h. */
37631 #include <$ac_header>
37633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37636 grep -v '^ *+' conftest.er1 >conftest.err
37638 cat conftest.err >&5
37639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37640 (exit $ac_status); } >/dev/null; then
37641 if test -s conftest.err; then
37642 ac_cpp_err=$ac_c_preproc_warn_flag
37643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37650 if test -z "$ac_cpp_err"; then
37651 ac_header_preproc=yes
37653 echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37656 ac_header_preproc=no
37658 rm -f conftest.err conftest.$ac_ext
37659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37660 echo "${ECHO_T}$ac_header_preproc" >&6
37662 # So? What about this header?
37663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37669 ac_header_preproc=yes
37672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37686 ## --------------------------------------------- ##
37687 ## Report this to <http://www.openldap.org/its/> ##
37688 ## --------------------------------------------- ##
37691 sed "s/^/$as_me: WARNING: /" >&2
37694 echo "$as_me:$LINENO: checking for $ac_header" >&5
37695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37697 echo $ECHO_N "(cached) $ECHO_C" >&6
37699 eval "$as_ac_Header=\$ac_header_preproc"
37701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37706 cat >>confdefs.h <<_ACEOF
37707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37714 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37715 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37716 test "$ol_with_tls" = "found" ; then
37719 cat >>confdefs.h <<\_ACEOF
37720 #define USE_MP_BIGNUM 1
37723 elif test $ol_with_mp = bignum ; then
37724 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37725 echo "$as_me: error: bignum not available" >&2;}
37726 { (exit 1); exit 1; }; }
37729 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37731 for ac_header in gmp.h
37733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37735 echo "$as_me:$LINENO: checking for $ac_header" >&5
37736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37738 echo $ECHO_N "(cached) $ECHO_C" >&6
37740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37743 # Is the header compilable?
37744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37746 cat >conftest.$ac_ext <<_ACEOF
37749 cat confdefs.h >>conftest.$ac_ext
37750 cat >>conftest.$ac_ext <<_ACEOF
37751 /* end confdefs.h. */
37752 $ac_includes_default
37753 #include <$ac_header>
37755 rm -f conftest.$ac_objext
37756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37757 (eval $ac_compile) 2>conftest.er1
37759 grep -v '^ *+' conftest.er1 >conftest.err
37761 cat conftest.err >&5
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); } &&
37764 { ac_try='test -z "$ac_c_werror_flag"
37765 || test ! -s conftest.err'
37766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767 (eval $ac_try) 2>&5
37769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); }; } &&
37771 { ac_try='test -s conftest.$ac_objext'
37772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37773 (eval $ac_try) 2>&5
37775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37776 (exit $ac_status); }; }; then
37777 ac_header_compiler=yes
37779 echo "$as_me: failed program was:" >&5
37780 sed 's/^/| /' conftest.$ac_ext >&5
37782 ac_header_compiler=no
37784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37786 echo "${ECHO_T}$ac_header_compiler" >&6
37788 # Is the header present?
37789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37791 cat >conftest.$ac_ext <<_ACEOF
37794 cat confdefs.h >>conftest.$ac_ext
37795 cat >>conftest.$ac_ext <<_ACEOF
37796 /* end confdefs.h. */
37797 #include <$ac_header>
37799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37802 grep -v '^ *+' conftest.er1 >conftest.err
37804 cat conftest.err >&5
37805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); } >/dev/null; then
37807 if test -s conftest.err; then
37808 ac_cpp_err=$ac_c_preproc_warn_flag
37809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37816 if test -z "$ac_cpp_err"; then
37817 ac_header_preproc=yes
37819 echo "$as_me: failed program was:" >&5
37820 sed 's/^/| /' conftest.$ac_ext >&5
37822 ac_header_preproc=no
37824 rm -f conftest.err conftest.$ac_ext
37825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37826 echo "${ECHO_T}$ac_header_preproc" >&6
37828 # So? What about this header?
37829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37835 ac_header_preproc=yes
37838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37852 ## --------------------------------------------- ##
37853 ## Report this to <http://www.openldap.org/its/> ##
37854 ## --------------------------------------------- ##
37857 sed "s/^/$as_me: WARNING: /" >&2
37860 echo "$as_me:$LINENO: checking for $ac_header" >&5
37861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37863 echo $ECHO_N "(cached) $ECHO_C" >&6
37865 eval "$as_ac_Header=\$ac_header_preproc"
37867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37872 cat >>confdefs.h <<_ACEOF
37873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37881 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37882 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37883 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37884 echo $ECHO_N "(cached) $ECHO_C" >&6
37886 ac_check_lib_save_LIBS=$LIBS
37888 cat >conftest.$ac_ext <<_ACEOF
37891 cat confdefs.h >>conftest.$ac_ext
37892 cat >>conftest.$ac_ext <<_ACEOF
37893 /* end confdefs.h. */
37895 /* Override any gcc2 internal prototype to avoid an error. */
37899 /* We use char because int might match the return type of a gcc2
37900 builtin and then its argument prototype would still apply. */
37901 char __gmpz_add_ui ();
37910 rm -f conftest.$ac_objext conftest$ac_exeext
37911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37912 (eval $ac_link) 2>conftest.er1
37914 grep -v '^ *+' conftest.er1 >conftest.err
37916 cat conftest.err >&5
37917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918 (exit $ac_status); } &&
37919 { ac_try='test -z "$ac_c_werror_flag"
37920 || test ! -s conftest.err'
37921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37922 (eval $ac_try) 2>&5
37924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925 (exit $ac_status); }; } &&
37926 { ac_try='test -s conftest$ac_exeext'
37927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37928 (eval $ac_try) 2>&5
37930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931 (exit $ac_status); }; }; then
37932 ac_cv_lib_gmp___gmpz_add_ui=yes
37934 echo "$as_me: failed program was:" >&5
37935 sed 's/^/| /' conftest.$ac_ext >&5
37937 ac_cv_lib_gmp___gmpz_add_ui=no
37939 rm -f conftest.err conftest.$ac_objext \
37940 conftest$ac_exeext conftest.$ac_ext
37941 LIBS=$ac_check_lib_save_LIBS
37943 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37944 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37945 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37946 cat >>confdefs.h <<_ACEOF
37947 #define HAVE_LIBGMP 1
37954 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37956 cat >>confdefs.h <<\_ACEOF
37957 #define USE_MP_GMP 1
37961 elif test $ol_with_mp = gmp ; then
37962 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37963 echo "$as_me: error: gmp not available" >&2;}
37964 { (exit 1); exit 1; }; }
37967 if test $ol_with_mp = auto ; then
37971 echo "$as_me:$LINENO: checking for working memcmp" >&5
37972 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37973 if test "${ac_cv_func_memcmp_working+set}" = set; then
37974 echo $ECHO_N "(cached) $ECHO_C" >&6
37976 if test "$cross_compiling" = yes; then
37977 ac_cv_func_memcmp_working=no
37979 cat >conftest.$ac_ext <<_ACEOF
37982 cat confdefs.h >>conftest.$ac_ext
37983 cat >>conftest.$ac_ext <<_ACEOF
37984 /* end confdefs.h. */
37985 $ac_includes_default
37990 /* Some versions of memcmp are not 8-bit clean. */
37991 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37992 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37995 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37996 or more and with at least one buffer not starting on a 4-byte boundary.
37997 William Lewis provided this test program. */
38002 for (i = 0; i < 4; i++)
38006 strcpy (a, "--------01111111");
38007 strcpy (b, "--------10000000");
38008 if (memcmp (a, b, 16) >= 0)
38018 rm -f conftest$ac_exeext
38019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38020 (eval $ac_link) 2>&5
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38025 (eval $ac_try) 2>&5
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); }; }; then
38029 ac_cv_func_memcmp_working=yes
38031 echo "$as_me: program exited with status $ac_status" >&5
38032 echo "$as_me: failed program was:" >&5
38033 sed 's/^/| /' conftest.$ac_ext >&5
38035 ( exit $ac_status )
38036 ac_cv_func_memcmp_working=no
38038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38041 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38042 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38043 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38044 "memcmp.$ac_objext" | \
38045 *" memcmp.$ac_objext" | \
38046 "memcmp.$ac_objext "* | \
38047 *" memcmp.$ac_objext "* ) ;;
38048 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38053 if test $ac_cv_func_memcmp_working = no ; then
38055 cat >>confdefs.h <<\_ACEOF
38056 #define NEED_MEMCMP_REPLACEMENT 1
38062 for ac_func in strftime
38064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38065 echo "$as_me:$LINENO: checking for $ac_func" >&5
38066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38067 if eval "test \"\${$as_ac_var+set}\" = set"; then
38068 echo $ECHO_N "(cached) $ECHO_C" >&6
38070 cat >conftest.$ac_ext <<_ACEOF
38073 cat confdefs.h >>conftest.$ac_ext
38074 cat >>conftest.$ac_ext <<_ACEOF
38075 /* end confdefs.h. */
38076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38078 #define $ac_func innocuous_$ac_func
38080 /* System header to define __stub macros and hopefully few prototypes,
38081 which can conflict with char $ac_func (); below.
38082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38083 <limits.h> exists even on freestanding compilers. */
38086 # include <limits.h>
38088 # include <assert.h>
38093 /* Override any gcc2 internal prototype to avoid an error. */
38098 /* We use char because int might match the return type of a gcc2
38099 builtin and then its argument prototype would still apply. */
38101 /* The GNU C library defines this for functions which it implements
38102 to always fail with ENOSYS. Some functions are actually named
38103 something starting with __ and the normal name is an alias. */
38104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38107 char (*f) () = $ac_func;
38116 return f != $ac_func;
38121 rm -f conftest.$ac_objext conftest$ac_exeext
38122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38123 (eval $ac_link) 2>conftest.er1
38125 grep -v '^ *+' conftest.er1 >conftest.err
38127 cat conftest.err >&5
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); } &&
38130 { ac_try='test -z "$ac_c_werror_flag"
38131 || test ! -s conftest.err'
38132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38133 (eval $ac_try) 2>&5
38135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 (exit $ac_status); }; } &&
38137 { ac_try='test -s conftest$ac_exeext'
38138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38139 (eval $ac_try) 2>&5
38141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); }; }; then
38143 eval "$as_ac_var=yes"
38145 echo "$as_me: failed program was:" >&5
38146 sed 's/^/| /' conftest.$ac_ext >&5
38148 eval "$as_ac_var=no"
38150 rm -f conftest.err conftest.$ac_objext \
38151 conftest$ac_exeext conftest.$ac_ext
38153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38155 if test `eval echo '${'$as_ac_var'}'` = yes; then
38156 cat >>confdefs.h <<_ACEOF
38157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38161 # strftime is in -lintl on SCO UNIX.
38162 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38163 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38164 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38165 echo $ECHO_N "(cached) $ECHO_C" >&6
38167 ac_check_lib_save_LIBS=$LIBS
38168 LIBS="-lintl $LIBS"
38169 cat >conftest.$ac_ext <<_ACEOF
38172 cat confdefs.h >>conftest.$ac_ext
38173 cat >>conftest.$ac_ext <<_ACEOF
38174 /* end confdefs.h. */
38176 /* Override any gcc2 internal prototype to avoid an error. */
38180 /* We use char because int might match the return type of a gcc2
38181 builtin and then its argument prototype would still apply. */
38191 rm -f conftest.$ac_objext conftest$ac_exeext
38192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38193 (eval $ac_link) 2>conftest.er1
38195 grep -v '^ *+' conftest.er1 >conftest.err
38197 cat conftest.err >&5
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); } &&
38200 { ac_try='test -z "$ac_c_werror_flag"
38201 || test ! -s conftest.err'
38202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203 (eval $ac_try) 2>&5
38205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206 (exit $ac_status); }; } &&
38207 { ac_try='test -s conftest$ac_exeext'
38208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209 (eval $ac_try) 2>&5
38211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212 (exit $ac_status); }; }; then
38213 ac_cv_lib_intl_strftime=yes
38215 echo "$as_me: failed program was:" >&5
38216 sed 's/^/| /' conftest.$ac_ext >&5
38218 ac_cv_lib_intl_strftime=no
38220 rm -f conftest.err conftest.$ac_objext \
38221 conftest$ac_exeext conftest.$ac_ext
38222 LIBS=$ac_check_lib_save_LIBS
38224 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38225 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38226 if test $ac_cv_lib_intl_strftime = yes; then
38227 cat >>confdefs.h <<\_ACEOF
38228 #define HAVE_STRFTIME 1
38231 LIBS="-lintl $LIBS"
38238 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38239 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38240 if test "${ol_cv_func_inet_aton+set}" = set; then
38241 echo $ECHO_N "(cached) $ECHO_C" >&6
38243 cat >conftest.$ac_ext <<_ACEOF
38246 cat confdefs.h >>conftest.$ac_ext
38247 cat >>conftest.$ac_ext <<_ACEOF
38248 /* end confdefs.h. */
38250 #ifdef HAVE_SYS_TYPES_H
38251 # include <sys/types.h>
38253 #ifdef HAVE_SYS_SOCKET_H
38254 # include <sys/socket.h>
38255 # ifdef HAVE_SYS_SELECT_H
38256 # include <sys/select.h>
38258 # include <netinet/in.h>
38259 # ifdef HAVE_ARPA_INET_H
38260 # include <arpa/inet.h>
38268 int rc = inet_aton( "255.255.255.255", &in );
38273 rm -f conftest.$ac_objext conftest$ac_exeext
38274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38275 (eval $ac_link) 2>conftest.er1
38277 grep -v '^ *+' conftest.er1 >conftest.err
38279 cat conftest.err >&5
38280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38281 (exit $ac_status); } &&
38282 { ac_try='test -z "$ac_c_werror_flag"
38283 || test ! -s conftest.err'
38284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38285 (eval $ac_try) 2>&5
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); }; } &&
38289 { ac_try='test -s conftest$ac_exeext'
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291 (eval $ac_try) 2>&5
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; }; then
38295 ol_cv_func_inet_aton=yes
38297 echo "$as_me: failed program was:" >&5
38298 sed 's/^/| /' conftest.$ac_ext >&5
38300 ol_cv_func_inet_aton=no
38302 rm -f conftest.err conftest.$ac_objext \
38303 conftest$ac_exeext conftest.$ac_ext
38305 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38306 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38307 if test $ol_cv_func_inet_aton != no; then
38309 cat >>confdefs.h <<\_ACEOF
38310 #define HAVE_INET_ATON 1
38316 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38317 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38318 if test "${ac_cv_func__spawnlp+set}" = set; then
38319 echo $ECHO_N "(cached) $ECHO_C" >&6
38321 cat >conftest.$ac_ext <<_ACEOF
38324 cat confdefs.h >>conftest.$ac_ext
38325 cat >>conftest.$ac_ext <<_ACEOF
38326 /* end confdefs.h. */
38327 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38329 #define _spawnlp innocuous__spawnlp
38331 /* System header to define __stub macros and hopefully few prototypes,
38332 which can conflict with char _spawnlp (); below.
38333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38334 <limits.h> exists even on freestanding compilers. */
38337 # include <limits.h>
38339 # include <assert.h>
38344 /* Override any gcc2 internal prototype to avoid an error. */
38349 /* We use char because int might match the return type of a gcc2
38350 builtin and then its argument prototype would still apply. */
38352 /* The GNU C library defines this for functions which it implements
38353 to always fail with ENOSYS. Some functions are actually named
38354 something starting with __ and the normal name is an alias. */
38355 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38358 char (*f) () = _spawnlp;
38367 return f != _spawnlp;
38372 rm -f conftest.$ac_objext conftest$ac_exeext
38373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38374 (eval $ac_link) 2>conftest.er1
38376 grep -v '^ *+' conftest.er1 >conftest.err
38378 cat conftest.err >&5
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); } &&
38381 { ac_try='test -z "$ac_c_werror_flag"
38382 || test ! -s conftest.err'
38383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38384 (eval $ac_try) 2>&5
38386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387 (exit $ac_status); }; } &&
38388 { ac_try='test -s conftest$ac_exeext'
38389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390 (eval $ac_try) 2>&5
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); }; }; then
38394 ac_cv_func__spawnlp=yes
38396 echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38399 ac_cv_func__spawnlp=no
38401 rm -f conftest.err conftest.$ac_objext \
38402 conftest$ac_exeext conftest.$ac_ext
38404 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38405 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38406 if test $ac_cv_func__spawnlp = yes; then
38408 cat >>confdefs.h <<\_ACEOF
38409 #define HAVE_SPAWNLP 1
38415 echo "$as_me:$LINENO: checking for _snprintf" >&5
38416 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38417 if test "${ac_cv_func__snprintf+set}" = set; then
38418 echo $ECHO_N "(cached) $ECHO_C" >&6
38420 cat >conftest.$ac_ext <<_ACEOF
38423 cat confdefs.h >>conftest.$ac_ext
38424 cat >>conftest.$ac_ext <<_ACEOF
38425 /* end confdefs.h. */
38426 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38428 #define _snprintf innocuous__snprintf
38430 /* System header to define __stub macros and hopefully few prototypes,
38431 which can conflict with char _snprintf (); below.
38432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38433 <limits.h> exists even on freestanding compilers. */
38436 # include <limits.h>
38438 # include <assert.h>
38443 /* Override any gcc2 internal prototype to avoid an error. */
38448 /* We use char because int might match the return type of a gcc2
38449 builtin and then its argument prototype would still apply. */
38451 /* The GNU C library defines this for functions which it implements
38452 to always fail with ENOSYS. Some functions are actually named
38453 something starting with __ and the normal name is an alias. */
38454 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38457 char (*f) () = _snprintf;
38466 return f != _snprintf;
38471 rm -f conftest.$ac_objext conftest$ac_exeext
38472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38473 (eval $ac_link) 2>conftest.er1
38475 grep -v '^ *+' conftest.er1 >conftest.err
38477 cat conftest.err >&5
38478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38479 (exit $ac_status); } &&
38480 { ac_try='test -z "$ac_c_werror_flag"
38481 || test ! -s conftest.err'
38482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38483 (eval $ac_try) 2>&5
38485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486 (exit $ac_status); }; } &&
38487 { ac_try='test -s conftest$ac_exeext'
38488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489 (eval $ac_try) 2>&5
38491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492 (exit $ac_status); }; }; then
38493 ac_cv_func__snprintf=yes
38495 echo "$as_me: failed program was:" >&5
38496 sed 's/^/| /' conftest.$ac_ext >&5
38498 ac_cv_func__snprintf=no
38500 rm -f conftest.err conftest.$ac_objext \
38501 conftest$ac_exeext conftest.$ac_ext
38503 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38504 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38505 if test $ac_cv_func__snprintf = yes; then
38506 ac_cv_func_snprintf=yes
38508 cat >>confdefs.h <<\_ACEOF
38509 #define snprintf _snprintf
38516 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38517 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38518 if test "${ac_cv_func__vsnprintf+set}" = set; then
38519 echo $ECHO_N "(cached) $ECHO_C" >&6
38521 cat >conftest.$ac_ext <<_ACEOF
38524 cat confdefs.h >>conftest.$ac_ext
38525 cat >>conftest.$ac_ext <<_ACEOF
38526 /* end confdefs.h. */
38527 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38529 #define _vsnprintf innocuous__vsnprintf
38531 /* System header to define __stub macros and hopefully few prototypes,
38532 which can conflict with char _vsnprintf (); below.
38533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38534 <limits.h> exists even on freestanding compilers. */
38537 # include <limits.h>
38539 # include <assert.h>
38544 /* Override any gcc2 internal prototype to avoid an error. */
38549 /* We use char because int might match the return type of a gcc2
38550 builtin and then its argument prototype would still apply. */
38551 char _vsnprintf ();
38552 /* The GNU C library defines this for functions which it implements
38553 to always fail with ENOSYS. Some functions are actually named
38554 something starting with __ and the normal name is an alias. */
38555 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38558 char (*f) () = _vsnprintf;
38567 return f != _vsnprintf;
38572 rm -f conftest.$ac_objext conftest$ac_exeext
38573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38574 (eval $ac_link) 2>conftest.er1
38576 grep -v '^ *+' conftest.er1 >conftest.err
38578 cat conftest.err >&5
38579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580 (exit $ac_status); } &&
38581 { ac_try='test -z "$ac_c_werror_flag"
38582 || test ! -s conftest.err'
38583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38584 (eval $ac_try) 2>&5
38586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587 (exit $ac_status); }; } &&
38588 { ac_try='test -s conftest$ac_exeext'
38589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38590 (eval $ac_try) 2>&5
38592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38593 (exit $ac_status); }; }; then
38594 ac_cv_func__vsnprintf=yes
38596 echo "$as_me: failed program was:" >&5
38597 sed 's/^/| /' conftest.$ac_ext >&5
38599 ac_cv_func__vsnprintf=no
38601 rm -f conftest.err conftest.$ac_objext \
38602 conftest$ac_exeext conftest.$ac_ext
38604 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38605 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38606 if test $ac_cv_func__vsnprintf = yes; then
38607 ac_cv_func_vsnprintf=yes
38609 cat >>confdefs.h <<\_ACEOF
38610 #define vsnprintf _vsnprintf
38618 for ac_func in vprintf
38620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38621 echo "$as_me:$LINENO: checking for $ac_func" >&5
38622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38623 if eval "test \"\${$as_ac_var+set}\" = set"; then
38624 echo $ECHO_N "(cached) $ECHO_C" >&6
38626 cat >conftest.$ac_ext <<_ACEOF
38629 cat confdefs.h >>conftest.$ac_ext
38630 cat >>conftest.$ac_ext <<_ACEOF
38631 /* end confdefs.h. */
38632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38634 #define $ac_func innocuous_$ac_func
38636 /* System header to define __stub macros and hopefully few prototypes,
38637 which can conflict with char $ac_func (); below.
38638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38639 <limits.h> exists even on freestanding compilers. */
38642 # include <limits.h>
38644 # include <assert.h>
38649 /* Override any gcc2 internal prototype to avoid an error. */
38654 /* We use char because int might match the return type of a gcc2
38655 builtin and then its argument prototype would still apply. */
38657 /* The GNU C library defines this for functions which it implements
38658 to always fail with ENOSYS. Some functions are actually named
38659 something starting with __ and the normal name is an alias. */
38660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38663 char (*f) () = $ac_func;
38672 return f != $ac_func;
38677 rm -f conftest.$ac_objext conftest$ac_exeext
38678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38679 (eval $ac_link) 2>conftest.er1
38681 grep -v '^ *+' conftest.er1 >conftest.err
38683 cat conftest.err >&5
38684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685 (exit $ac_status); } &&
38686 { ac_try='test -z "$ac_c_werror_flag"
38687 || test ! -s conftest.err'
38688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38689 (eval $ac_try) 2>&5
38691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692 (exit $ac_status); }; } &&
38693 { ac_try='test -s conftest$ac_exeext'
38694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38695 (eval $ac_try) 2>&5
38697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698 (exit $ac_status); }; }; then
38699 eval "$as_ac_var=yes"
38701 echo "$as_me: failed program was:" >&5
38702 sed 's/^/| /' conftest.$ac_ext >&5
38704 eval "$as_ac_var=no"
38706 rm -f conftest.err conftest.$ac_objext \
38707 conftest$ac_exeext conftest.$ac_ext
38709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38711 if test `eval echo '${'$as_ac_var'}'` = yes; then
38712 cat >>confdefs.h <<_ACEOF
38713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38716 echo "$as_me:$LINENO: checking for _doprnt" >&5
38717 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38718 if test "${ac_cv_func__doprnt+set}" = set; then
38719 echo $ECHO_N "(cached) $ECHO_C" >&6
38721 cat >conftest.$ac_ext <<_ACEOF
38724 cat confdefs.h >>conftest.$ac_ext
38725 cat >>conftest.$ac_ext <<_ACEOF
38726 /* end confdefs.h. */
38727 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38729 #define _doprnt innocuous__doprnt
38731 /* System header to define __stub macros and hopefully few prototypes,
38732 which can conflict with char _doprnt (); below.
38733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38734 <limits.h> exists even on freestanding compilers. */
38737 # include <limits.h>
38739 # include <assert.h>
38744 /* Override any gcc2 internal prototype to avoid an error. */
38749 /* We use char because int might match the return type of a gcc2
38750 builtin and then its argument prototype would still apply. */
38752 /* The GNU C library defines this for functions which it implements
38753 to always fail with ENOSYS. Some functions are actually named
38754 something starting with __ and the normal name is an alias. */
38755 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38758 char (*f) () = _doprnt;
38767 return f != _doprnt;
38772 rm -f conftest.$ac_objext conftest$ac_exeext
38773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38774 (eval $ac_link) 2>conftest.er1
38776 grep -v '^ *+' conftest.er1 >conftest.err
38778 cat conftest.err >&5
38779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780 (exit $ac_status); } &&
38781 { ac_try='test -z "$ac_c_werror_flag"
38782 || test ! -s conftest.err'
38783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38784 (eval $ac_try) 2>&5
38786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787 (exit $ac_status); }; } &&
38788 { ac_try='test -s conftest$ac_exeext'
38789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38790 (eval $ac_try) 2>&5
38792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793 (exit $ac_status); }; }; then
38794 ac_cv_func__doprnt=yes
38796 echo "$as_me: failed program was:" >&5
38797 sed 's/^/| /' conftest.$ac_ext >&5
38799 ac_cv_func__doprnt=no
38801 rm -f conftest.err conftest.$ac_objext \
38802 conftest$ac_exeext conftest.$ac_ext
38804 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38805 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38806 if test $ac_cv_func__doprnt = yes; then
38808 cat >>confdefs.h <<\_ACEOF
38809 #define HAVE_DOPRNT 1
38819 if test $ac_cv_func_vprintf = yes ; then
38822 for ac_func in snprintf vsnprintf
38824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38825 echo "$as_me:$LINENO: checking for $ac_func" >&5
38826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38827 if eval "test \"\${$as_ac_var+set}\" = set"; then
38828 echo $ECHO_N "(cached) $ECHO_C" >&6
38830 cat >conftest.$ac_ext <<_ACEOF
38833 cat confdefs.h >>conftest.$ac_ext
38834 cat >>conftest.$ac_ext <<_ACEOF
38835 /* end confdefs.h. */
38836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38838 #define $ac_func innocuous_$ac_func
38840 /* System header to define __stub macros and hopefully few prototypes,
38841 which can conflict with char $ac_func (); below.
38842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38843 <limits.h> exists even on freestanding compilers. */
38846 # include <limits.h>
38848 # include <assert.h>
38853 /* Override any gcc2 internal prototype to avoid an error. */
38858 /* We use char because int might match the return type of a gcc2
38859 builtin and then its argument prototype would still apply. */
38861 /* The GNU C library defines this for functions which it implements
38862 to always fail with ENOSYS. Some functions are actually named
38863 something starting with __ and the normal name is an alias. */
38864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38867 char (*f) () = $ac_func;
38876 return f != $ac_func;
38881 rm -f conftest.$ac_objext conftest$ac_exeext
38882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38883 (eval $ac_link) 2>conftest.er1
38885 grep -v '^ *+' conftest.er1 >conftest.err
38887 cat conftest.err >&5
38888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889 (exit $ac_status); } &&
38890 { ac_try='test -z "$ac_c_werror_flag"
38891 || test ! -s conftest.err'
38892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38893 (eval $ac_try) 2>&5
38895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38896 (exit $ac_status); }; } &&
38897 { ac_try='test -s conftest$ac_exeext'
38898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38899 (eval $ac_try) 2>&5
38901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902 (exit $ac_status); }; }; then
38903 eval "$as_ac_var=yes"
38905 echo "$as_me: failed program was:" >&5
38906 sed 's/^/| /' conftest.$ac_ext >&5
38908 eval "$as_ac_var=no"
38910 rm -f conftest.err conftest.$ac_objext \
38911 conftest$ac_exeext conftest.$ac_ext
38913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38915 if test `eval echo '${'$as_ac_var'}'` = yes; then
38916 cat >>confdefs.h <<_ACEOF
38917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39039 echo "$as_me:$LINENO: checking for $ac_func" >&5
39040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39041 if eval "test \"\${$as_ac_var+set}\" = set"; then
39042 echo $ECHO_N "(cached) $ECHO_C" >&6
39044 cat >conftest.$ac_ext <<_ACEOF
39047 cat confdefs.h >>conftest.$ac_ext
39048 cat >>conftest.$ac_ext <<_ACEOF
39049 /* end confdefs.h. */
39050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39052 #define $ac_func innocuous_$ac_func
39054 /* System header to define __stub macros and hopefully few prototypes,
39055 which can conflict with char $ac_func (); below.
39056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39057 <limits.h> exists even on freestanding compilers. */
39060 # include <limits.h>
39062 # include <assert.h>
39067 /* Override any gcc2 internal prototype to avoid an error. */
39072 /* We use char because int might match the return type of a gcc2
39073 builtin and then its argument prototype would still apply. */
39075 /* The GNU C library defines this for functions which it implements
39076 to always fail with ENOSYS. Some functions are actually named
39077 something starting with __ and the normal name is an alias. */
39078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39081 char (*f) () = $ac_func;
39090 return f != $ac_func;
39095 rm -f conftest.$ac_objext conftest$ac_exeext
39096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39097 (eval $ac_link) 2>conftest.er1
39099 grep -v '^ *+' conftest.er1 >conftest.err
39101 cat conftest.err >&5
39102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39103 (exit $ac_status); } &&
39104 { ac_try='test -z "$ac_c_werror_flag"
39105 || test ! -s conftest.err'
39106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39107 (eval $ac_try) 2>&5
39109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39110 (exit $ac_status); }; } &&
39111 { ac_try='test -s conftest$ac_exeext'
39112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39113 (eval $ac_try) 2>&5
39115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116 (exit $ac_status); }; }; then
39117 eval "$as_ac_var=yes"
39119 echo "$as_me: failed program was:" >&5
39120 sed 's/^/| /' conftest.$ac_ext >&5
39122 eval "$as_ac_var=no"
39124 rm -f conftest.err conftest.$ac_objext \
39125 conftest$ac_exeext conftest.$ac_ext
39127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39129 if test `eval echo '${'$as_ac_var'}'` = yes; then
39130 cat >>confdefs.h <<_ACEOF
39131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39140 for ac_func in getopt getpeereid
39142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39143 echo "$as_me:$LINENO: checking for $ac_func" >&5
39144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39145 if eval "test \"\${$as_ac_var+set}\" = set"; then
39146 echo $ECHO_N "(cached) $ECHO_C" >&6
39148 cat >conftest.$ac_ext <<_ACEOF
39151 cat confdefs.h >>conftest.$ac_ext
39152 cat >>conftest.$ac_ext <<_ACEOF
39153 /* end confdefs.h. */
39154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39156 #define $ac_func innocuous_$ac_func
39158 /* System header to define __stub macros and hopefully few prototypes,
39159 which can conflict with char $ac_func (); below.
39160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39161 <limits.h> exists even on freestanding compilers. */
39164 # include <limits.h>
39166 # include <assert.h>
39171 /* Override any gcc2 internal prototype to avoid an error. */
39176 /* We use char because int might match the return type of a gcc2
39177 builtin and then its argument prototype would still apply. */
39179 /* The GNU C library defines this for functions which it implements
39180 to always fail with ENOSYS. Some functions are actually named
39181 something starting with __ and the normal name is an alias. */
39182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39185 char (*f) () = $ac_func;
39194 return f != $ac_func;
39199 rm -f conftest.$ac_objext conftest$ac_exeext
39200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39201 (eval $ac_link) 2>conftest.er1
39203 grep -v '^ *+' conftest.er1 >conftest.err
39205 cat conftest.err >&5
39206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39207 (exit $ac_status); } &&
39208 { ac_try='test -z "$ac_c_werror_flag"
39209 || test ! -s conftest.err'
39210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39211 (eval $ac_try) 2>&5
39213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214 (exit $ac_status); }; } &&
39215 { ac_try='test -s conftest$ac_exeext'
39216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39217 (eval $ac_try) 2>&5
39219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220 (exit $ac_status); }; }; then
39221 eval "$as_ac_var=yes"
39223 echo "$as_me: failed program was:" >&5
39224 sed 's/^/| /' conftest.$ac_ext >&5
39226 eval "$as_ac_var=no"
39228 rm -f conftest.err conftest.$ac_objext \
39229 conftest$ac_exeext conftest.$ac_ext
39231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39233 if test `eval echo '${'$as_ac_var'}'` = yes; then
39234 cat >>confdefs.h <<_ACEOF
39235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39240 "$ac_func.$ac_objext" | \
39241 *" $ac_func.$ac_objext" | \
39242 "$ac_func.$ac_objext "* | \
39243 *" $ac_func.$ac_objext "* ) ;;
39244 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39252 if test "$ac_cv_func_getopt" != yes; then
39253 LIBSRCS="$LIBSRCS getopt.c"
39256 if test "$ac_cv_func_getpeereid" != yes; then
39258 for ac_func in getpeerucred
39260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39261 echo "$as_me:$LINENO: checking for $ac_func" >&5
39262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39263 if eval "test \"\${$as_ac_var+set}\" = set"; then
39264 echo $ECHO_N "(cached) $ECHO_C" >&6
39266 cat >conftest.$ac_ext <<_ACEOF
39269 cat confdefs.h >>conftest.$ac_ext
39270 cat >>conftest.$ac_ext <<_ACEOF
39271 /* end confdefs.h. */
39272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39274 #define $ac_func innocuous_$ac_func
39276 /* System header to define __stub macros and hopefully few prototypes,
39277 which can conflict with char $ac_func (); below.
39278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39279 <limits.h> exists even on freestanding compilers. */
39282 # include <limits.h>
39284 # include <assert.h>
39289 /* Override any gcc2 internal prototype to avoid an error. */
39294 /* We use char because int might match the return type of a gcc2
39295 builtin and then its argument prototype would still apply. */
39297 /* The GNU C library defines this for functions which it implements
39298 to always fail with ENOSYS. Some functions are actually named
39299 something starting with __ and the normal name is an alias. */
39300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39303 char (*f) () = $ac_func;
39312 return f != $ac_func;
39317 rm -f conftest.$ac_objext conftest$ac_exeext
39318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39319 (eval $ac_link) 2>conftest.er1
39321 grep -v '^ *+' conftest.er1 >conftest.err
39323 cat conftest.err >&5
39324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39325 (exit $ac_status); } &&
39326 { ac_try='test -z "$ac_c_werror_flag"
39327 || test ! -s conftest.err'
39328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39329 (eval $ac_try) 2>&5
39331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39332 (exit $ac_status); }; } &&
39333 { ac_try='test -s conftest$ac_exeext'
39334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39335 (eval $ac_try) 2>&5
39337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39338 (exit $ac_status); }; }; then
39339 eval "$as_ac_var=yes"
39341 echo "$as_me: failed program was:" >&5
39342 sed 's/^/| /' conftest.$ac_ext >&5
39344 eval "$as_ac_var=no"
39346 rm -f conftest.err conftest.$ac_objext \
39347 conftest$ac_exeext conftest.$ac_ext
39349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39351 if test `eval echo '${'$as_ac_var'}'` = yes; then
39352 cat >>confdefs.h <<_ACEOF
39353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39359 if test "$ac_cv_func_getpeerucred" != yes ; then
39360 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39361 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39362 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39363 echo $ECHO_N "(cached) $ECHO_C" >&6
39365 cat >conftest.$ac_ext <<_ACEOF
39368 cat confdefs.h >>conftest.$ac_ext
39369 cat >>conftest.$ac_ext <<_ACEOF
39370 /* end confdefs.h. */
39371 $ac_includes_default
39372 #ifdef HAVE_SYS_SOCKET_H
39373 #include <sys/socket.h>
39379 static struct msghdr ac_aggr;
39380 if (ac_aggr.msg_accrightslen)
39386 rm -f conftest.$ac_objext
39387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39388 (eval $ac_compile) 2>conftest.er1
39390 grep -v '^ *+' conftest.er1 >conftest.err
39392 cat conftest.err >&5
39393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394 (exit $ac_status); } &&
39395 { ac_try='test -z "$ac_c_werror_flag"
39396 || test ! -s conftest.err'
39397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39398 (eval $ac_try) 2>&5
39400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401 (exit $ac_status); }; } &&
39402 { ac_try='test -s conftest.$ac_objext'
39403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404 (eval $ac_try) 2>&5
39406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); }; }; then
39408 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39410 echo "$as_me: failed program was:" >&5
39411 sed 's/^/| /' conftest.$ac_ext >&5
39413 cat >conftest.$ac_ext <<_ACEOF
39416 cat confdefs.h >>conftest.$ac_ext
39417 cat >>conftest.$ac_ext <<_ACEOF
39418 /* end confdefs.h. */
39419 $ac_includes_default
39420 #ifdef HAVE_SYS_SOCKET_H
39421 #include <sys/socket.h>
39427 static struct msghdr ac_aggr;
39428 if (sizeof ac_aggr.msg_accrightslen)
39434 rm -f conftest.$ac_objext
39435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39436 (eval $ac_compile) 2>conftest.er1
39438 grep -v '^ *+' conftest.er1 >conftest.err
39440 cat conftest.err >&5
39441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442 (exit $ac_status); } &&
39443 { ac_try='test -z "$ac_c_werror_flag"
39444 || test ! -s conftest.err'
39445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39446 (eval $ac_try) 2>&5
39448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449 (exit $ac_status); }; } &&
39450 { ac_try='test -s conftest.$ac_objext'
39451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39452 (eval $ac_try) 2>&5
39454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39455 (exit $ac_status); }; }; then
39456 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39458 echo "$as_me: failed program was:" >&5
39459 sed 's/^/| /' conftest.$ac_ext >&5
39461 ac_cv_member_struct_msghdr_msg_accrightslen=no
39463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39467 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39468 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39469 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39471 cat >>confdefs.h <<_ACEOF
39472 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39478 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39479 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39480 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39481 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39482 echo $ECHO_N "(cached) $ECHO_C" >&6
39484 cat >conftest.$ac_ext <<_ACEOF
39487 cat confdefs.h >>conftest.$ac_ext
39488 cat >>conftest.$ac_ext <<_ACEOF
39489 /* end confdefs.h. */
39490 $ac_includes_default
39491 #ifdef HAVE_SYS_SOCKET_H
39492 #include <sys/socket.h>
39498 static struct msghdr ac_aggr;
39499 if (ac_aggr.msg_control)
39505 rm -f conftest.$ac_objext
39506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39507 (eval $ac_compile) 2>conftest.er1
39509 grep -v '^ *+' conftest.er1 >conftest.err
39511 cat conftest.err >&5
39512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39513 (exit $ac_status); } &&
39514 { ac_try='test -z "$ac_c_werror_flag"
39515 || test ! -s conftest.err'
39516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39517 (eval $ac_try) 2>&5
39519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520 (exit $ac_status); }; } &&
39521 { ac_try='test -s conftest.$ac_objext'
39522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39523 (eval $ac_try) 2>&5
39525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526 (exit $ac_status); }; }; then
39527 ac_cv_member_struct_msghdr_msg_control=yes
39529 echo "$as_me: failed program was:" >&5
39530 sed 's/^/| /' conftest.$ac_ext >&5
39532 cat >conftest.$ac_ext <<_ACEOF
39535 cat confdefs.h >>conftest.$ac_ext
39536 cat >>conftest.$ac_ext <<_ACEOF
39537 /* end confdefs.h. */
39538 $ac_includes_default
39539 #ifdef HAVE_SYS_SOCKET_H
39540 #include <sys/socket.h>
39546 static struct msghdr ac_aggr;
39547 if (sizeof ac_aggr.msg_control)
39553 rm -f conftest.$ac_objext
39554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39555 (eval $ac_compile) 2>conftest.er1
39557 grep -v '^ *+' conftest.er1 >conftest.err
39559 cat conftest.err >&5
39560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39561 (exit $ac_status); } &&
39562 { ac_try='test -z "$ac_c_werror_flag"
39563 || test ! -s conftest.err'
39564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39565 (eval $ac_try) 2>&5
39567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568 (exit $ac_status); }; } &&
39569 { ac_try='test -s conftest.$ac_objext'
39570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39571 (eval $ac_try) 2>&5
39573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39574 (exit $ac_status); }; }; then
39575 ac_cv_member_struct_msghdr_msg_control=yes
39577 echo "$as_me: failed program was:" >&5
39578 sed 's/^/| /' conftest.$ac_ext >&5
39580 ac_cv_member_struct_msghdr_msg_control=no
39582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39586 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39587 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39588 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39590 cat >>confdefs.h <<_ACEOF
39591 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39598 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39599 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39600 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39601 echo $ECHO_N "(cached) $ECHO_C" >&6
39603 cat >conftest.$ac_ext <<_ACEOF
39606 cat confdefs.h >>conftest.$ac_ext
39607 cat >>conftest.$ac_ext <<_ACEOF
39608 /* end confdefs.h. */
39609 $ac_includes_default
39613 static struct stat ac_aggr;
39614 if (ac_aggr.st_fstype)
39620 rm -f conftest.$ac_objext
39621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39622 (eval $ac_compile) 2>conftest.er1
39624 grep -v '^ *+' conftest.er1 >conftest.err
39626 cat conftest.err >&5
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); } &&
39629 { ac_try='test -z "$ac_c_werror_flag"
39630 || test ! -s conftest.err'
39631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39632 (eval $ac_try) 2>&5
39634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635 (exit $ac_status); }; } &&
39636 { ac_try='test -s conftest.$ac_objext'
39637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638 (eval $ac_try) 2>&5
39640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641 (exit $ac_status); }; }; then
39642 ac_cv_member_struct_stat_st_fstype=yes
39644 echo "$as_me: failed program was:" >&5
39645 sed 's/^/| /' conftest.$ac_ext >&5
39647 cat >conftest.$ac_ext <<_ACEOF
39650 cat confdefs.h >>conftest.$ac_ext
39651 cat >>conftest.$ac_ext <<_ACEOF
39652 /* end confdefs.h. */
39653 $ac_includes_default
39657 static struct stat ac_aggr;
39658 if (sizeof ac_aggr.st_fstype)
39664 rm -f conftest.$ac_objext
39665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39666 (eval $ac_compile) 2>conftest.er1
39668 grep -v '^ *+' conftest.er1 >conftest.err
39670 cat conftest.err >&5
39671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672 (exit $ac_status); } &&
39673 { ac_try='test -z "$ac_c_werror_flag"
39674 || test ! -s conftest.err'
39675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39676 (eval $ac_try) 2>&5
39678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39679 (exit $ac_status); }; } &&
39680 { ac_try='test -s conftest.$ac_objext'
39681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39682 (eval $ac_try) 2>&5
39684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39685 (exit $ac_status); }; }; then
39686 ac_cv_member_struct_stat_st_fstype=yes
39688 echo "$as_me: failed program was:" >&5
39689 sed 's/^/| /' conftest.$ac_ext >&5
39691 ac_cv_member_struct_stat_st_fstype=no
39693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39697 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39698 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39699 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39701 cat >>confdefs.h <<_ACEOF
39702 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39707 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39708 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39709 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39710 echo $ECHO_N "(cached) $ECHO_C" >&6
39712 cat >conftest.$ac_ext <<_ACEOF
39715 cat confdefs.h >>conftest.$ac_ext
39716 cat >>conftest.$ac_ext <<_ACEOF
39717 /* end confdefs.h. */
39718 $ac_includes_default
39722 static struct stat ac_aggr;
39723 if (ac_aggr.st_vfstype)
39729 rm -f conftest.$ac_objext
39730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39731 (eval $ac_compile) 2>conftest.er1
39733 grep -v '^ *+' conftest.er1 >conftest.err
39735 cat conftest.err >&5
39736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737 (exit $ac_status); } &&
39738 { ac_try='test -z "$ac_c_werror_flag"
39739 || test ! -s conftest.err'
39740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741 (eval $ac_try) 2>&5
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); }; } &&
39745 { ac_try='test -s conftest.$ac_objext'
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; }; then
39751 ac_cv_member_struct_stat_st_vfstype=yes
39753 echo "$as_me: failed program was:" >&5
39754 sed 's/^/| /' conftest.$ac_ext >&5
39756 cat >conftest.$ac_ext <<_ACEOF
39759 cat confdefs.h >>conftest.$ac_ext
39760 cat >>conftest.$ac_ext <<_ACEOF
39761 /* end confdefs.h. */
39762 $ac_includes_default
39766 static struct stat ac_aggr;
39767 if (sizeof ac_aggr.st_vfstype)
39773 rm -f conftest.$ac_objext
39774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39775 (eval $ac_compile) 2>conftest.er1
39777 grep -v '^ *+' conftest.er1 >conftest.err
39779 cat conftest.err >&5
39780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39781 (exit $ac_status); } &&
39782 { ac_try='test -z "$ac_c_werror_flag"
39783 || test ! -s conftest.err'
39784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39785 (eval $ac_try) 2>&5
39787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39788 (exit $ac_status); }; } &&
39789 { ac_try='test -s conftest.$ac_objext'
39790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39791 (eval $ac_try) 2>&5
39793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39794 (exit $ac_status); }; }; then
39795 ac_cv_member_struct_stat_st_vfstype=yes
39797 echo "$as_me: failed program was:" >&5
39798 sed 's/^/| /' conftest.$ac_ext >&5
39800 ac_cv_member_struct_stat_st_vfstype=no
39802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39806 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
39807 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
39808 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
39810 cat >>confdefs.h <<_ACEOF
39811 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
39817 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
39818 cat >conftest.$ac_ext <<_ACEOF
39819 struct stat st; char *ptr=st.st_fstype;
39821 rm -f conftest.$ac_objext
39822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39823 (eval $ac_compile) 2>conftest.er1
39825 grep -v '^ *+' conftest.er1 >conftest.err
39827 cat conftest.err >&5
39828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829 (exit $ac_status); } &&
39830 { ac_try='test -z "$ac_c_werror_flag"
39831 || test ! -s conftest.err'
39832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39833 (eval $ac_try) 2>&5
39835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836 (exit $ac_status); }; } &&
39837 { ac_try='test -s conftest.$ac_objext'
39838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39839 (eval $ac_try) 2>&5
39841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842 (exit $ac_status); }; }; then
39844 cat >>confdefs.h <<\_ACEOF
39845 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
39849 echo "$as_me: failed program was:" >&5
39850 sed 's/^/| /' conftest.$ac_ext >&5
39853 cat >>confdefs.h <<\_ACEOF
39854 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
39858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39861 LIBSRCS="$LIBSRCS getpeereid.c"
39864 if test "$ac_cv_func_snprintf" != yes ||
39865 test "$ac_cv_func_vsnprintf" != yes; then
39866 if test "$ac_cv_func_snprintf" != yes; then
39868 cat >>confdefs.h <<\_ACEOF
39869 #define snprintf ber_pvt_snprintf
39873 if test "$ac_cv_func_vsnprintf" != yes; then
39875 cat >>confdefs.h <<\_ACEOF
39876 #define vsnprintf ber_pvt_vsnprintf
39883 if test "$ol_enable_slapi" != no ; then
39885 for ac_header in ltdl.h
39887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39889 echo "$as_me:$LINENO: checking for $ac_header" >&5
39890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39892 echo $ECHO_N "(cached) $ECHO_C" >&6
39894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39897 # Is the header compilable?
39898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39900 cat >conftest.$ac_ext <<_ACEOF
39903 cat confdefs.h >>conftest.$ac_ext
39904 cat >>conftest.$ac_ext <<_ACEOF
39905 /* end confdefs.h. */
39906 $ac_includes_default
39907 #include <$ac_header>
39909 rm -f conftest.$ac_objext
39910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39911 (eval $ac_compile) 2>conftest.er1
39913 grep -v '^ *+' conftest.er1 >conftest.err
39915 cat conftest.err >&5
39916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917 (exit $ac_status); } &&
39918 { ac_try='test -z "$ac_c_werror_flag"
39919 || test ! -s conftest.err'
39920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39921 (eval $ac_try) 2>&5
39923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924 (exit $ac_status); }; } &&
39925 { ac_try='test -s conftest.$ac_objext'
39926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39927 (eval $ac_try) 2>&5
39929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930 (exit $ac_status); }; }; then
39931 ac_header_compiler=yes
39933 echo "$as_me: failed program was:" >&5
39934 sed 's/^/| /' conftest.$ac_ext >&5
39936 ac_header_compiler=no
39938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39940 echo "${ECHO_T}$ac_header_compiler" >&6
39942 # Is the header present?
39943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39945 cat >conftest.$ac_ext <<_ACEOF
39948 cat confdefs.h >>conftest.$ac_ext
39949 cat >>conftest.$ac_ext <<_ACEOF
39950 /* end confdefs.h. */
39951 #include <$ac_header>
39953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39956 grep -v '^ *+' conftest.er1 >conftest.err
39958 cat conftest.err >&5
39959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960 (exit $ac_status); } >/dev/null; then
39961 if test -s conftest.err; then
39962 ac_cpp_err=$ac_c_preproc_warn_flag
39963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39970 if test -z "$ac_cpp_err"; then
39971 ac_header_preproc=yes
39973 echo "$as_me: failed program was:" >&5
39974 sed 's/^/| /' conftest.$ac_ext >&5
39976 ac_header_preproc=no
39978 rm -f conftest.err conftest.$ac_ext
39979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39980 echo "${ECHO_T}$ac_header_preproc" >&6
39982 # So? What about this header?
39983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39989 ac_header_preproc=yes
39992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40006 ## --------------------------------------------- ##
40007 ## Report this to <http://www.openldap.org/its/> ##
40008 ## --------------------------------------------- ##
40011 sed "s/^/$as_me: WARNING: /" >&2
40014 echo "$as_me:$LINENO: checking for $ac_header" >&5
40015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40017 echo $ECHO_N "(cached) $ECHO_C" >&6
40019 eval "$as_ac_Header=\$ac_header_preproc"
40021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40026 cat >>confdefs.h <<_ACEOF
40027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40035 if test $ac_cv_header_ltdl_h != yes ; then
40036 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40037 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40038 { (exit 1); exit 1; }; }
40040 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40041 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40042 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40043 echo $ECHO_N "(cached) $ECHO_C" >&6
40045 ac_check_lib_save_LIBS=$LIBS
40046 LIBS="-lltdl $LIBS"
40047 cat >conftest.$ac_ext <<_ACEOF
40050 cat confdefs.h >>conftest.$ac_ext
40051 cat >>conftest.$ac_ext <<_ACEOF
40052 /* end confdefs.h. */
40054 /* Override any gcc2 internal prototype to avoid an error. */
40058 /* We use char because int might match the return type of a gcc2
40059 builtin and then its argument prototype would still apply. */
40069 rm -f conftest.$ac_objext conftest$ac_exeext
40070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40071 (eval $ac_link) 2>conftest.er1
40073 grep -v '^ *+' conftest.er1 >conftest.err
40075 cat conftest.err >&5
40076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077 (exit $ac_status); } &&
40078 { ac_try='test -z "$ac_c_werror_flag"
40079 || test ! -s conftest.err'
40080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40081 (eval $ac_try) 2>&5
40083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40084 (exit $ac_status); }; } &&
40085 { ac_try='test -s conftest$ac_exeext'
40086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40087 (eval $ac_try) 2>&5
40089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40090 (exit $ac_status); }; }; then
40091 ac_cv_lib_ltdl_lt_dlinit=yes
40093 echo "$as_me: failed program was:" >&5
40094 sed 's/^/| /' conftest.$ac_ext >&5
40096 ac_cv_lib_ltdl_lt_dlinit=no
40098 rm -f conftest.err conftest.$ac_objext \
40099 conftest$ac_exeext conftest.$ac_ext
40100 LIBS=$ac_check_lib_save_LIBS
40102 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40103 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40104 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40107 LIBSLAPI=libslapi.a
40108 LIBSLAPITOOLS=../libslapi.a
40110 cat >>confdefs.h <<\_ACEOF
40111 #define HAVE_LIBLTDL 1
40116 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40117 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40118 { (exit 1); exit 1; }; }
40123 cat >>confdefs.h <<\_ACEOF
40124 #define LDAP_SLAPI 1
40129 if test "$ol_enable_debug" != no ; then
40130 if test "$ol_enable_debug" = traditional; then
40132 cat >>confdefs.h <<\_ACEOF
40133 #define OLD_DEBUG 1
40138 cat >>confdefs.h <<\_ACEOF
40139 #define LDAP_DEBUG 1
40143 if test "$ol_enable_syslog" = yes ; then
40145 cat >>confdefs.h <<\_ACEOF
40146 #define LDAP_SYSLOG 1
40150 if test "$ol_enable_proctitle" != no ; then
40152 cat >>confdefs.h <<\_ACEOF
40153 #define LDAP_PROCTITLE 1
40157 if test "$ol_enable_referrals" != no ; then
40159 cat >>confdefs.h <<\_ACEOF
40160 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40164 if test "$ol_enable_local" != no; then
40166 cat >>confdefs.h <<\_ACEOF
40167 #define LDAP_PF_LOCAL 1
40171 if test "$ol_link_ipv6" != no; then
40173 cat >>confdefs.h <<\_ACEOF
40174 #define LDAP_PF_INET6 1
40178 if test "$ol_enable_cleartext" != no ; then
40180 cat >>confdefs.h <<\_ACEOF
40181 #define SLAPD_CLEARTEXT 1
40185 if test "$ol_enable_crypt" != no ; then
40187 cat >>confdefs.h <<\_ACEOF
40188 #define SLAPD_CRYPT 1
40192 if test "$ol_link_spasswd" != no ; then
40194 cat >>confdefs.h <<\_ACEOF
40195 #define SLAPD_SPASSWD 1
40199 if test "$ol_enable_rlookups" != no ; then
40201 cat >>confdefs.h <<\_ACEOF
40202 #define SLAPD_RLOOKUPS 1
40206 if test "$ol_enable_aci" != no ; then
40207 if test $ol_enable_dynacl = no ; then
40208 ol_enable_dynacl=yes
40209 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40210 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40212 if test "$ol_enable_aci" = mod ; then
40213 MFLAG=SLAPD_MOD_DYNAMIC
40214 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40215 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40216 { (exit 1); exit 1; }; }
40218 MFLAG=SLAPD_MOD_STATIC
40220 WITH_ACI_ENABLED=$ol_enable_aci
40222 cat >>confdefs.h <<_ACEOF
40223 #define SLAPD_ACI_ENABLED $MFLAG
40227 WITH_ACI_ENABLED=no
40229 if test "$ol_enable_dynacl" != no ; then
40231 cat >>confdefs.h <<\_ACEOF
40232 #define SLAP_DYNACL 1
40237 if test "$ol_link_modules" != no ; then
40239 cat >>confdefs.h <<\_ACEOF
40240 #define SLAPD_MODULES 1
40244 SLAPD_MODULES_LDFLAGS="-dlopen self"
40248 cat >>confdefs.h <<\_ACEOF
40249 #define SLAPD_MOD_STATIC 1
40253 cat >>confdefs.h <<\_ACEOF
40254 #define SLAPD_MOD_DYNAMIC 2
40258 if test "$ol_enable_monitor" != no ; then
40260 BUILD_MONITOR=$ol_enable_monitor
40261 if test "$ol_enable_monitor" = mod ; then
40262 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40263 MFLAG=SLAPD_MOD_DYNAMIC
40265 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40266 MFLAG=SLAPD_MOD_STATIC
40269 cat >>confdefs.h <<_ACEOF
40270 #define SLAPD_MONITOR $MFLAG
40275 if test "$ol_enable_bdb" != no ; then
40277 BUILD_BDB=$ol_enable_bdb
40278 if test "$ol_enable_bdb" = mod ; then
40279 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40280 MFLAG=SLAPD_MOD_DYNAMIC
40282 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40283 MFLAG=SLAPD_MOD_STATIC
40286 cat >>confdefs.h <<_ACEOF
40287 #define SLAPD_BDB $MFLAG
40292 if test "$ol_enable_dnssrv" != no ; then
40294 BUILD_DNSSRV=$ol_enable_dnssrv
40295 if test "$ol_enable_dnssrv" = mod ; then
40296 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40297 MFLAG=SLAPD_MOD_DYNAMIC
40299 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40300 MFLAG=SLAPD_MOD_STATIC
40303 cat >>confdefs.h <<_ACEOF
40304 #define SLAPD_DNSSRV $MFLAG
40309 if test "$ol_enable_hdb" != no ; then
40311 BUILD_HDB=$ol_enable_hdb
40312 if test "$ol_enable_hdb" = mod ; then
40313 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40314 MFLAG=SLAPD_MOD_DYNAMIC
40316 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40317 MFLAG=SLAPD_MOD_STATIC
40320 cat >>confdefs.h <<_ACEOF
40321 #define SLAPD_HDB $MFLAG
40326 if test "$ol_enable_ldap" != no ; then
40328 BUILD_LDAP=$ol_enable_ldap
40329 if test "$ol_enable_ldap" = mod ; then
40330 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40331 MFLAG=SLAPD_MOD_DYNAMIC
40333 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40334 MFLAG=SLAPD_MOD_STATIC
40337 cat >>confdefs.h <<_ACEOF
40338 #define SLAPD_LDAP $MFLAG
40343 if test "$ol_enable_meta" != no ; then
40345 BUILD_META=$ol_enable_meta
40347 if test "$ol_enable_meta" = mod ; then
40348 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40349 MFLAG=SLAPD_MOD_DYNAMIC
40351 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40352 MFLAG=SLAPD_MOD_STATIC
40355 cat >>confdefs.h <<_ACEOF
40356 #define SLAPD_META $MFLAG
40361 if test "$ol_enable_null" != no ; then
40363 BUILD_NULL=$ol_enable_null
40364 if test "$ol_enable_null" = mod ; then
40365 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40366 MFLAG=SLAPD_MOD_DYNAMIC
40368 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40369 MFLAG=SLAPD_MOD_STATIC
40372 cat >>confdefs.h <<_ACEOF
40373 #define SLAPD_NULL $MFLAG
40378 if test "$ol_enable_passwd" != no ; then
40380 BUILD_PASSWD=$ol_enable_passwd
40381 if test "$ol_enable_passwd" = mod ; then
40382 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40383 MFLAG=SLAPD_MOD_DYNAMIC
40385 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40386 MFLAG=SLAPD_MOD_STATIC
40389 cat >>confdefs.h <<_ACEOF
40390 #define SLAPD_PASSWD $MFLAG
40395 if test "$ol_link_perl" != no ; then
40397 BUILD_PERL=$ol_enable_perl
40398 if test "$ol_enable_perl" = mod ; then
40399 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40400 MFLAG=SLAPD_MOD_DYNAMIC
40402 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40403 MFLAG=SLAPD_MOD_STATIC
40406 cat >>confdefs.h <<_ACEOF
40407 #define SLAPD_PERL $MFLAG
40412 if test "$ol_enable_relay" != no ; then
40414 BUILD_RELAY=$ol_enable_relay
40415 if test "$ol_enable_relay" = mod ; then
40416 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40417 MFLAG=SLAPD_MOD_DYNAMIC
40419 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40420 MFLAG=SLAPD_MOD_STATIC
40423 cat >>confdefs.h <<_ACEOF
40424 #define SLAPD_RELAY $MFLAG
40429 if test "$ol_enable_shell" != no ; then
40430 if test "$ol_link_threads" != no ; then
40431 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40432 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40435 BUILD_SHELL=$ol_enable_shell
40436 if test "$ol_enable_shell" = mod ; then
40437 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40438 MFLAG=SLAPD_MOD_DYNAMIC
40440 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40441 MFLAG=SLAPD_MOD_STATIC
40444 cat >>confdefs.h <<_ACEOF
40445 #define SLAPD_SHELL $MFLAG
40450 if test "$ol_link_sql" != no ; then
40452 BUILD_SQL=$ol_enable_sql
40453 if test "$ol_enable_sql" = mod; then
40454 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40455 MFLAG=SLAPD_MOD_DYNAMIC
40457 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40458 MFLAG=SLAPD_MOD_STATIC
40461 cat >>confdefs.h <<_ACEOF
40462 #define SLAPD_SQL $MFLAG
40467 if test "$ol_enable_accesslog" != no ; then
40468 BUILD_ACCESSLOG=$ol_enable_accesslog
40469 if test "$ol_enable_accesslog" = mod ; then
40470 MFLAG=SLAPD_MOD_DYNAMIC
40471 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40473 MFLAG=SLAPD_MOD_STATIC
40474 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40477 cat >>confdefs.h <<_ACEOF
40478 #define SLAPD_OVER_ACCESSLOG $MFLAG
40483 if test "$ol_enable_auditlog" != no ; then
40484 BUILD_AUDITLOG=$ol_enable_auditlog
40485 if test "$ol_enable_auditlog" = mod ; then
40486 MFLAG=SLAPD_MOD_DYNAMIC
40487 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40489 MFLAG=SLAPD_MOD_STATIC
40490 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40493 cat >>confdefs.h <<_ACEOF
40494 #define SLAPD_OVER_AUDITLOG $MFLAG
40499 if test "$ol_enable_constraint" != no ; then
40500 BUILD_CONSTRAINT=$ol_enable_constraint
40501 if test "$ol_enable_constraint" = mod ; then
40502 MFLAG=SLAPD_MOD_DYNAMIC
40503 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40505 MFLAG=SLAPD_MOD_STATIC
40506 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40509 cat >>confdefs.h <<_ACEOF
40510 #define SLAPD_OVER_CONSTRAINT $MFLAG
40515 if test "$ol_enable_dds" != no ; then
40516 BUILD_DDS=$ol_enable_dds
40517 if test "$ol_enable_dds" = mod ; then
40518 MFLAG=SLAPD_MOD_DYNAMIC
40519 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40521 MFLAG=SLAPD_MOD_STATIC
40522 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40525 cat >>confdefs.h <<_ACEOF
40526 #define SLAPD_OVER_DDS $MFLAG
40531 if test "$ol_enable_dyngroup" != no ; then
40532 BUILD_DYNGROUP=$ol_enable_dyngroup
40533 if test "$ol_enable_dyngroup" = mod ; then
40534 MFLAG=SLAPD_MOD_DYNAMIC
40535 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40537 MFLAG=SLAPD_MOD_STATIC
40538 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40541 cat >>confdefs.h <<_ACEOF
40542 #define SLAPD_OVER_DYNGROUP $MFLAG
40547 if test "$ol_enable_dynlist" != no ; then
40548 BUILD_DYNLIST=$ol_enable_dynlist
40549 if test "$ol_enable_dynlist" = mod ; then
40550 MFLAG=SLAPD_MOD_DYNAMIC
40551 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40553 MFLAG=SLAPD_MOD_STATIC
40554 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40557 cat >>confdefs.h <<_ACEOF
40558 #define SLAPD_OVER_DYNLIST $MFLAG
40563 if test "$ol_enable_ppolicy" != no ; then
40564 BUILD_PPOLICY=$ol_enable_ppolicy
40565 if test "$ol_enable_ppolicy" = mod ; then
40566 MFLAG=SLAPD_MOD_DYNAMIC
40567 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40569 MFLAG=SLAPD_MOD_STATIC
40570 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40573 cat >>confdefs.h <<_ACEOF
40574 #define SLAPD_OVER_PPOLICY $MFLAG
40579 if test "$ol_enable_proxycache" != no ; then
40580 BUILD_PROXYCACHE=$ol_enable_proxycache
40581 if test "$ol_enable_proxycache" = mod ; then
40582 MFLAG=SLAPD_MOD_DYNAMIC
40583 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40585 MFLAG=SLAPD_MOD_STATIC
40586 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40589 cat >>confdefs.h <<_ACEOF
40590 #define SLAPD_OVER_PROXYCACHE $MFLAG
40595 if test "$ol_enable_refint" != no ; then
40596 BUILD_REFINT=$ol_enable_refint
40597 if test "$ol_enable_refint" = mod ; then
40598 MFLAG=SLAPD_MOD_DYNAMIC
40599 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40601 MFLAG=SLAPD_MOD_STATIC
40602 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40605 cat >>confdefs.h <<_ACEOF
40606 #define SLAPD_OVER_REFINT $MFLAG
40611 if test "$ol_enable_retcode" != no ; then
40612 BUILD_RETCODE=$ol_enable_retcode
40613 if test "$ol_enable_retcode" = mod ; then
40614 MFLAG=SLAPD_MOD_DYNAMIC
40615 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40617 MFLAG=SLAPD_MOD_STATIC
40618 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40621 cat >>confdefs.h <<_ACEOF
40622 #define SLAPD_OVER_RETCODE $MFLAG
40627 if test "$ol_enable_rwm" != no ; then
40629 BUILD_RWM=$ol_enable_rwm
40630 if test "$ol_enable_rwm" = mod ; then
40631 MFLAG=SLAPD_MOD_DYNAMIC
40632 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40634 MFLAG=SLAPD_MOD_STATIC
40635 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40638 cat >>confdefs.h <<_ACEOF
40639 #define SLAPD_OVER_RWM $MFLAG
40644 if test "$ol_enable_seqmod" != no ; then
40645 BUILD_SEQMOD=$ol_enable_seqmod
40646 if test "$ol_enable_seqmod" = mod ; then
40647 MFLAG=SLAPD_MOD_DYNAMIC
40648 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40650 MFLAG=SLAPD_MOD_STATIC
40651 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40654 cat >>confdefs.h <<_ACEOF
40655 #define SLAPD_OVER_SEQMOD $MFLAG
40660 if test "$ol_enable_syncprov" != no ; then
40661 BUILD_SYNCPROV=$ol_enable_syncprov
40662 if test "$ol_enable_syncprov" = mod ; then
40663 MFLAG=SLAPD_MOD_DYNAMIC
40664 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40666 MFLAG=SLAPD_MOD_STATIC
40667 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40670 cat >>confdefs.h <<_ACEOF
40671 #define SLAPD_OVER_SYNCPROV $MFLAG
40676 if test "$ol_enable_translucent" != no ; then
40677 BUILD_TRANSLUCENT=$ol_enable_translucent
40678 if test "$ol_enable_translucent" = mod ; then
40679 MFLAG=SLAPD_MOD_DYNAMIC
40680 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40682 MFLAG=SLAPD_MOD_STATIC
40683 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40686 cat >>confdefs.h <<_ACEOF
40687 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40692 if test "$ol_enable_unique" != no ; then
40693 BUILD_UNIQUE=$ol_enable_unique
40694 if test "$ol_enable_unique" = mod ; then
40695 MFLAG=SLAPD_MOD_DYNAMIC
40696 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40698 MFLAG=SLAPD_MOD_STATIC
40699 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40702 cat >>confdefs.h <<_ACEOF
40703 #define SLAPD_OVER_UNIQUE $MFLAG
40708 if test "$ol_enable_valsort" != no ; then
40709 BUILD_VALSORT=$ol_enable_valsort
40710 if test "$ol_enable_valsort" = mod ; then
40711 MFLAG=SLAPD_MOD_DYNAMIC
40712 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40714 MFLAG=SLAPD_MOD_STATIC
40715 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40718 cat >>confdefs.h <<_ACEOF
40719 #define SLAPD_OVER_VALSORT $MFLAG
40724 if test "$ol_enable_rewrite" != no ; then
40726 cat >>confdefs.h <<\_ACEOF
40727 #define ENABLE_REWRITE 1
40733 if test "$ol_enable_slapi" != no ; then
40735 cat >>confdefs.h <<\_ACEOF
40736 #define ENABLE_SLAPI 1
40740 SLAPD_SLAPI_DEPEND=libslapi.a
40745 if test "$ac_cv_mingw32" = yes ; then
40747 SLAPD_MODULES_LDFLAGS=
40834 # Check whether --with-xxinstall or --without-xxinstall was given.
40835 if test "${with_xxinstall+set}" = set; then
40836 withval="$with_xxinstall"
40841 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"
40844 ac_config_commands="$ac_config_commands default"
40848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40849 # Let make expand exec_prefix.
40850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40852 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40854 # trailing colons and then remove the whole line if VPATH becomes empty
40855 # (actually we leave an empty line to preserve line numbers).
40856 if test "x$srcdir" = x.; then
40857 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40858 s/:*\$(srcdir):*/:/;
40859 s/:*\${srcdir}:*/:/;
40861 s/^\([^=]*=[ ]*\):*/\1/;
40867 DEFS=-DHAVE_CONFIG_H
40871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40872 # 1. Remove the extension, and $U if already installed.
40873 ac_i=`echo "$ac_i" |
40874 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40876 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40877 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40879 LIBOBJS=$ac_libobjs
40881 LTLIBOBJS=$ac_ltlibobjs
40884 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40885 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40886 Usually this means the macro was only invoked conditionally." >&5
40887 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40888 Usually this means the macro was only invoked conditionally." >&2;}
40889 { (exit 1); exit 1; }; }
40891 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40892 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40893 Usually this means the macro was only invoked conditionally." >&5
40894 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40895 Usually this means the macro was only invoked conditionally." >&2;}
40896 { (exit 1); exit 1; }; }
40898 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40899 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40900 Usually this means the macro was only invoked conditionally." >&5
40901 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40902 Usually this means the macro was only invoked conditionally." >&2;}
40903 { (exit 1); exit 1; }; }
40906 : ${CONFIG_STATUS=./config.status}
40907 ac_clean_files_save=$ac_clean_files
40908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40911 cat >$CONFIG_STATUS <<_ACEOF
40913 # Generated by $as_me.
40914 # Run this file to recreate the current configuration.
40915 # Compiler output produced by configure, useful for debugging
40916 # configure, is in config.log if it exists.
40919 ac_cs_recheck=false
40921 SHELL=\${CONFIG_SHELL-$SHELL}
40924 cat >>$CONFIG_STATUS <<\_ACEOF
40925 ## --------------------- ##
40926 ## M4sh Initialization. ##
40927 ## --------------------- ##
40929 # Be Bourne compatible
40930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40934 # is contrary to our usage. Disable this feature.
40935 alias -g '${1+"$@"}'='"$@"'
40936 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40939 DUALCASE=1; export DUALCASE # for MKS sh
40941 # Support unset when possible.
40942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40949 # Work around bugs in pre-3.0 UWIN ksh.
40950 $as_unset ENV MAIL MAILPATH
40957 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40958 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40959 LC_TELEPHONE LC_TIME
40961 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40962 eval $as_var=C; export $as_var
40968 # Required to use basename.
40969 if expr a : '\(a\)' >/dev/null 2>&1; then
40975 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40976 as_basename=basename
40982 # Name of the executable.
40983 as_me=`$as_basename "$0" ||
40984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40985 X"$0" : 'X\(//\)$' \| \
40986 X"$0" : 'X\(/\)$' \| \
40987 . : '\(.\)' 2>/dev/null ||
40989 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40990 /^X\/\(\/\/\)$/{ s//\1/; q; }
40991 /^X\/\(\/\).*/{ s//\1/; q; }
40995 # PATH needs CR, and LINENO needs CR and PATH.
40996 # Avoid depending upon Character Ranges.
40997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41000 as_cr_digits='0123456789'
41001 as_cr_alnum=$as_cr_Letters$as_cr_digits
41003 # The user is always right.
41004 if test "${PATH_SEPARATOR+set}" != set; then
41005 echo "#! /bin/sh" >conf$$.sh
41006 echo "exit 0" >>conf$$.sh
41008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41017 as_lineno_1=$LINENO
41018 as_lineno_2=$LINENO
41019 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41020 test "x$as_lineno_1" != "x$as_lineno_2" &&
41021 test "x$as_lineno_3" = "x$as_lineno_2" || {
41022 # Find who we are. Look in the path if we contain no path at all
41025 *[\\/]* ) as_myself=$0 ;;
41026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41027 for as_dir in $PATH
41030 test -z "$as_dir" && as_dir=.
41031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41036 # We did not find ourselves, most probably we were run as `sh COMMAND'
41037 # in which case we are not to be found in the path.
41038 if test "x$as_myself" = x; then
41041 if test ! -f "$as_myself"; then
41042 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41043 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41044 { (exit 1); exit 1; }; }
41046 case $CONFIG_SHELL in
41048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41049 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41052 test -z "$as_dir" && as_dir=.
41053 for as_base in sh bash ksh sh5; do
41056 if ("$as_dir/$as_base" -c '
41057 as_lineno_1=$LINENO
41058 as_lineno_2=$LINENO
41059 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41060 test "x$as_lineno_1" != "x$as_lineno_2" &&
41061 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41062 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41063 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41064 CONFIG_SHELL=$as_dir/$as_base
41065 export CONFIG_SHELL
41066 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41075 # uniformly replaced by the line number. The first 'sed' inserts a
41076 # line-number line before each line; the second 'sed' does the real
41077 # work. The second script uses 'N' to pair each line-number line
41078 # with the numbered line, and appends trailing '-' during
41079 # substitution so that $LINENO is not a special case at line end.
41080 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41081 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41082 sed '=' <$as_myself |
41087 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41090 s,^['$as_cr_digits']*\n,,
41091 ' >$as_me.lineno &&
41092 chmod +x $as_me.lineno ||
41093 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41094 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41095 { (exit 1); exit 1; }; }
41097 # Don't try to exec as it changes $[0], causing all sort of problems
41098 # (the dirname of $[0] is not the place where we might find the
41099 # original and so on. Autoconf is especially sensible to this).
41101 # Exit status is that of the last command.
41106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41107 *c*,-n*) ECHO_N= ECHO_C='
41109 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41110 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41113 if expr a : '\(a\)' >/dev/null 2>&1; then
41119 rm -f conf$$ conf$$.exe conf$$.file
41121 if ln -s conf$$.file conf$$ 2>/dev/null; then
41122 # We could just check for DJGPP; but this test a) works b) is more generic
41123 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41124 if test -f conf$$.exe; then
41125 # Don't use ln at all; we don't have any links
41130 elif ln conf$$.file conf$$ 2>/dev/null; then
41135 rm -f conf$$ conf$$.exe conf$$.file
41137 if mkdir -p . 2>/dev/null; then
41140 test -d ./-p && rmdir ./-p
41144 as_executable_p="test -f"
41146 # Sed expression to map a string onto a valid CPP name.
41147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41149 # Sed expression to map a string onto a valid variable name.
41150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41154 # We need space, tab and new line, in precisely that order.
41164 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41165 # report actual input values of CONFIG_FILES etc. instead of their
41166 # values after options handling. Logging --version etc. is OK.
41170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41171 ## Running $as_me. ##
41176 This file was extended by $as_me, which was
41177 generated by GNU Autoconf 2.59. Invocation command line was
41179 CONFIG_FILES = $CONFIG_FILES
41180 CONFIG_HEADERS = $CONFIG_HEADERS
41181 CONFIG_LINKS = $CONFIG_LINKS
41182 CONFIG_COMMANDS = $CONFIG_COMMANDS
41186 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41190 # Files that config.status was made for.
41191 if test -n "$ac_config_files"; then
41192 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41195 if test -n "$ac_config_headers"; then
41196 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41199 if test -n "$ac_config_links"; then
41200 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41203 if test -n "$ac_config_commands"; then
41204 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41207 cat >>$CONFIG_STATUS <<\_ACEOF
41210 \`$as_me' instantiates files from templates according to the
41211 current configuration.
41213 Usage: $0 [OPTIONS] [FILE]...
41215 -h, --help print this help, then exit
41216 -V, --version print version number, then exit
41217 -q, --quiet do not print progress messages
41218 -d, --debug don't remove temporary files
41219 --recheck update $as_me by reconfiguring in the same conditions
41220 --file=FILE[:TEMPLATE]
41221 instantiate the configuration file FILE
41222 --header=FILE[:TEMPLATE]
41223 instantiate the configuration header FILE
41225 Configuration files:
41228 Configuration headers:
41231 Configuration commands:
41234 Report bugs to <bug-autoconf@gnu.org>."
41237 cat >>$CONFIG_STATUS <<_ACEOF
41240 configured by $0, generated by GNU Autoconf 2.59,
41241 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41243 Copyright (C) 2003 Free Software Foundation, Inc.
41244 This config.status script is free software; the Free Software Foundation
41245 gives unlimited permission to copy, distribute and modify it."
41250 cat >>$CONFIG_STATUS <<\_ACEOF
41251 # If no file are specified by the user, then we need to provide default
41252 # value. By we need to know if files were specified by the user.
41258 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41259 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41267 *) # This is not an option, so the user has probably given explicit
41270 ac_need_defaults=false;;
41274 # Handling of the options.
41276 cat >>$CONFIG_STATUS <<\_ACEOF
41277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41279 --version | --vers* | -V )
41280 echo "$ac_cs_version"; exit 0 ;;
41282 # Conflict between --help and --header
41283 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41284 Try \`$0 --help' for more information." >&5
41285 echo "$as_me: error: ambiguous option: $1
41286 Try \`$0 --help' for more information." >&2;}
41287 { (exit 1); exit 1; }; };;
41288 --help | --hel | -h )
41289 echo "$ac_cs_usage"; exit 0 ;;
41290 --debug | --d* | -d )
41292 --file | --fil | --fi | --f )
41294 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41295 ac_need_defaults=false;;
41296 --header | --heade | --head | --hea )
41298 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41299 ac_need_defaults=false;;
41300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41304 # This is an error.
41305 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41306 Try \`$0 --help' for more information." >&5
41307 echo "$as_me: error: unrecognized option: $1
41308 Try \`$0 --help' for more information." >&2;}
41309 { (exit 1); exit 1; }; } ;;
41311 *) ac_config_targets="$ac_config_targets $1" ;;
41317 ac_configure_extra_args=
41319 if $ac_cs_silent; then
41321 ac_configure_extra_args="$ac_configure_extra_args --silent"
41325 cat >>$CONFIG_STATUS <<_ACEOF
41326 if \$ac_cs_recheck; then
41327 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41328 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41333 cat >>$CONFIG_STATUS <<_ACEOF
41335 # INIT-COMMANDS section.
41338 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41340 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41341 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41348 cat >>$CONFIG_STATUS <<\_ACEOF
41349 for ac_config_target in $ac_config_targets
41351 case "$ac_config_target" in
41352 # Handling of arguments.
41353 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41354 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41355 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41356 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41357 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41358 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41359 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41360 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41361 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41362 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41363 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41364 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41365 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41366 "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" ;;
41367 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41368 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41369 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41370 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41371 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41372 "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" ;;
41373 "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" ;;
41374 "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" ;;
41375 "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" ;;
41376 "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" ;;
41377 "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" ;;
41378 "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" ;;
41379 "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" ;;
41380 "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" ;;
41381 "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" ;;
41382 "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" ;;
41383 "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" ;;
41384 "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" ;;
41385 "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" ;;
41386 "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" ;;
41387 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41388 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41389 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41390 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41391 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41392 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41393 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41394 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41395 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41396 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41397 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41398 { (exit 1); exit 1; }; };;
41402 # If the user did not use the arguments to specify the items to instantiate,
41403 # then the envvar interface is used. Set only those that are not.
41404 # We use the long form for the default assignment because of an extremely
41405 # bizarre bug on SunOS 4.1.3.
41406 if $ac_need_defaults; then
41407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41408 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41412 # Have a temporary directory for convenience. Make it in the build tree
41413 # simply because there is no reason to put it here, and in addition,
41414 # creating and moving files from /tmp can sometimes cause problems.
41415 # Create a temporary directory, and hook for its removal unless debugging.
41418 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41419 trap '{ (exit 1); exit 1; }' 1 2 13 15
41422 # Create a (secure) tmp directory for tmp files.
41425 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41426 test -n "$tmp" && test -d "$tmp"
41429 tmp=./confstat$$-$RANDOM
41430 (umask 077 && mkdir $tmp)
41433 echo "$me: cannot create a temporary directory in ." >&2
41434 { (exit 1); exit 1; }
41439 cat >>$CONFIG_STATUS <<_ACEOF
41442 # CONFIG_FILES section.
41445 # No need to generate the scripts if there are no CONFIG_FILES.
41446 # This happens for instance when ./config.status config.h
41447 if test -n "\$CONFIG_FILES"; then
41448 # Protect against being on the right side of a sed subst in config.status.
41449 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41450 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41451 s,@SHELL@,$SHELL,;t t
41452 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41453 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41454 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41455 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41456 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41457 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41458 s,@exec_prefix@,$exec_prefix,;t t
41459 s,@prefix@,$prefix,;t t
41460 s,@program_transform_name@,$program_transform_name,;t t
41461 s,@bindir@,$bindir,;t t
41462 s,@sbindir@,$sbindir,;t t
41463 s,@libexecdir@,$libexecdir,;t t
41464 s,@datadir@,$datadir,;t t
41465 s,@sysconfdir@,$sysconfdir,;t t
41466 s,@sharedstatedir@,$sharedstatedir,;t t
41467 s,@localstatedir@,$localstatedir,;t t
41468 s,@libdir@,$libdir,;t t
41469 s,@includedir@,$includedir,;t t
41470 s,@oldincludedir@,$oldincludedir,;t t
41471 s,@infodir@,$infodir,;t t
41472 s,@mandir@,$mandir,;t t
41473 s,@build_alias@,$build_alias,;t t
41474 s,@host_alias@,$host_alias,;t t
41475 s,@target_alias@,$target_alias,;t t
41476 s,@DEFS@,$DEFS,;t t
41477 s,@ECHO_C@,$ECHO_C,;t t
41478 s,@ECHO_N@,$ECHO_N,;t t
41479 s,@ECHO_T@,$ECHO_T,;t t
41480 s,@LIBS@,$LIBS,;t t
41481 s,@build@,$build,;t t
41482 s,@build_cpu@,$build_cpu,;t t
41483 s,@build_vendor@,$build_vendor,;t t
41484 s,@build_os@,$build_os,;t t
41485 s,@host@,$host,;t t
41486 s,@host_cpu@,$host_cpu,;t t
41487 s,@host_vendor@,$host_vendor,;t t
41488 s,@host_os@,$host_os,;t t
41489 s,@target@,$target,;t t
41490 s,@target_cpu@,$target_cpu,;t t
41491 s,@target_vendor@,$target_vendor,;t t
41492 s,@target_os@,$target_os,;t t
41493 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41494 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41495 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41496 s,@CYGPATH_W@,$CYGPATH_W,;t t
41497 s,@PACKAGE@,$PACKAGE,;t t
41498 s,@VERSION@,$VERSION,;t t
41499 s,@ACLOCAL@,$ACLOCAL,;t t
41500 s,@AUTOCONF@,$AUTOCONF,;t t
41501 s,@AUTOMAKE@,$AUTOMAKE,;t t
41502 s,@AUTOHEADER@,$AUTOHEADER,;t t
41503 s,@MAKEINFO@,$MAKEINFO,;t t
41504 s,@install_sh@,$install_sh,;t t
41505 s,@STRIP@,$STRIP,;t t
41506 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41507 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41508 s,@mkdir_p@,$mkdir_p,;t t
41510 s,@SET_MAKE@,$SET_MAKE,;t t
41511 s,@am__leading_dot@,$am__leading_dot,;t t
41512 s,@AMTAR@,$AMTAR,;t t
41513 s,@am__tar@,$am__tar,;t t
41514 s,@am__untar@,$am__untar,;t t
41515 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41516 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41517 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41518 s,@top_builddir@,$top_builddir,;t t
41519 s,@ldap_subdir@,$ldap_subdir,;t t
41522 s,@CFLAGS@,$CFLAGS,;t t
41523 s,@LDFLAGS@,$LDFLAGS,;t t
41524 s,@CPPFLAGS@,$CPPFLAGS,;t t
41525 s,@ac_ct_CC@,$ac_ct_CC,;t t
41526 s,@EXEEXT@,$EXEEXT,;t t
41527 s,@OBJEXT@,$OBJEXT,;t t
41528 s,@DEPDIR@,$DEPDIR,;t t
41529 s,@am__include@,$am__include,;t t
41530 s,@am__quote@,$am__quote,;t t
41531 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41532 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41533 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41534 s,@CCDEPMODE@,$CCDEPMODE,;t t
41535 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41536 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41537 s,@EGREP@,$EGREP,;t t
41538 s,@LN_S@,$LN_S,;t t
41539 s,@ECHO@,$ECHO,;t t
41540 s,@ac_ct_AR@,$ac_ct_AR,;t t
41541 s,@RANLIB@,$RANLIB,;t t
41542 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41543 s,@DLLTOOL@,$DLLTOOL,;t t
41544 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41546 s,@ac_ct_AS@,$ac_ct_AS,;t t
41547 s,@OBJDUMP@,$OBJDUMP,;t t
41548 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41550 s,@LIBTOOL@,$LIBTOOL,;t t
41551 s,@PERLBIN@,$PERLBIN,;t t
41552 s,@OL_MKDEP@,$OL_MKDEP,;t t
41553 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41554 s,@LTSTATIC@,$LTSTATIC,;t t
41555 s,@LIBOBJS@,$LIBOBJS,;t t
41556 s,@LIBSRCS@,$LIBSRCS,;t t
41557 s,@PLAT@,$PLAT,;t t
41558 s,@WITH_SASL@,$WITH_SASL,;t t
41559 s,@WITH_TLS@,$WITH_TLS,;t t
41560 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41561 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41562 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41563 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41564 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41565 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41566 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41567 s,@BUILD_BDB@,$BUILD_BDB,;t t
41568 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41569 s,@BUILD_HDB@,$BUILD_HDB,;t t
41570 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41571 s,@BUILD_META@,$BUILD_META,;t t
41572 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41573 s,@BUILD_NULL@,$BUILD_NULL,;t t
41574 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41575 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41576 s,@BUILD_PERL@,$BUILD_PERL,;t t
41577 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41578 s,@BUILD_SQL@,$BUILD_SQL,;t t
41579 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41580 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41581 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41582 s,@BUILD_DDS@,$BUILD_DDS,;t t
41583 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41584 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41585 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41586 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41587 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41588 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41589 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41590 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41591 s,@BUILD_RWM@,$BUILD_RWM,;t t
41592 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41593 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41594 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41595 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41596 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41597 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41598 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41599 s,@BDB_LIBS@,$BDB_LIBS,;t t
41600 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41601 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41602 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41603 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41604 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41605 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41606 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41607 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41608 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41609 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41610 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41611 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41612 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41613 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41614 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41615 s,@SASL_LIBS@,$SASL_LIBS,;t t
41616 s,@TLS_LIBS@,$TLS_LIBS,;t t
41617 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41618 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41619 s,@LIBSLAPI@,$LIBSLAPI,;t t
41620 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41621 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41622 s,@ICU_LIBS@,$ICU_LIBS,;t t
41623 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41624 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41625 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41626 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41627 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41628 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41633 cat >>$CONFIG_STATUS <<\_ACEOF
41634 # Split the substitutions into bite-sized pieces for seds with
41635 # small command number limits, like on Digital OSF/1 and HP-UX.
41636 ac_max_sed_lines=48
41637 ac_sed_frag=1 # Number of current file.
41638 ac_beg=1 # First line for current file.
41639 ac_end=$ac_max_sed_lines # Line after last line for current file.
41642 while $ac_more_lines; do
41643 if test $ac_beg -gt 1; then
41644 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41646 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41648 if test ! -s $tmp/subs.frag; then
41649 ac_more_lines=false
41651 # The purpose of the label and of the branching condition is to
41652 # speed up the sed processing (if there are no `@' at all, there
41653 # is no need to browse any of the substitutions).
41654 # These are the two extra sed commands mentioned above.
41656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41657 if test -z "$ac_sed_cmds"; then
41658 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41660 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41662 ac_sed_frag=`expr $ac_sed_frag + 1`
41664 ac_end=`expr $ac_end + $ac_max_sed_lines`
41667 if test -z "$ac_sed_cmds"; then
41670 fi # test -n "$CONFIG_FILES"
41673 cat >>$CONFIG_STATUS <<\_ACEOF
41674 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41675 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41677 - | *:- | *:-:* ) # input from stdin
41679 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41680 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41681 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41682 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41683 * ) ac_file_in=$ac_file.in ;;
41686 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41687 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41689 X"$ac_file" : 'X\(//\)[^/]' \| \
41690 X"$ac_file" : 'X\(//\)$' \| \
41691 X"$ac_file" : 'X\(/\)' \| \
41692 . : '\(.\)' 2>/dev/null ||
41694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41696 /^X\(\/\/\)$/{ s//\1/; q; }
41697 /^X\(\/\).*/{ s//\1/; q; }
41699 { if $as_mkdir_p; then
41704 while test ! -d "$as_dir"; do
41705 as_dirs="$as_dir $as_dirs"
41706 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41708 X"$as_dir" : 'X\(//\)[^/]' \| \
41709 X"$as_dir" : 'X\(//\)$' \| \
41710 X"$as_dir" : 'X\(/\)' \| \
41711 . : '\(.\)' 2>/dev/null ||
41713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41715 /^X\(\/\/\)$/{ s//\1/; q; }
41716 /^X\(\/\).*/{ s//\1/; q; }
41719 test ! -n "$as_dirs" || mkdir $as_dirs
41720 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41721 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41722 { (exit 1); exit 1; }; }; }
41726 if test "$ac_dir" != .; then
41727 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41728 # A "../" for each directory in $ac_dir_suffix.
41729 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41731 ac_dir_suffix= ac_top_builddir=
41735 .) # No --srcdir option. We are building in place.
41737 if test -z "$ac_top_builddir"; then
41740 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41742 [\\/]* | ?:[\\/]* ) # Absolute path.
41743 ac_srcdir=$srcdir$ac_dir_suffix;
41744 ac_top_srcdir=$srcdir ;;
41745 *) # Relative path.
41746 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41747 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41750 # Do not use `cd foo && pwd` to compute absolute paths, because
41751 # the directories may not exist.
41753 .) ac_abs_builddir="$ac_dir";;
41756 .) ac_abs_builddir=`pwd`;;
41757 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41758 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41761 case $ac_abs_builddir in
41762 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41764 case ${ac_top_builddir}. in
41765 .) ac_abs_top_builddir=$ac_abs_builddir;;
41766 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41767 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41770 case $ac_abs_builddir in
41771 .) ac_abs_srcdir=$ac_srcdir;;
41774 .) ac_abs_srcdir=$ac_abs_builddir;;
41775 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41776 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41779 case $ac_abs_builddir in
41780 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41782 case $ac_top_srcdir in
41783 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41784 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41785 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41792 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41795 if test x"$ac_file" != x-; then
41796 { echo "$as_me:$LINENO: creating $ac_file" >&5
41797 echo "$as_me: creating $ac_file" >&6;}
41800 # Let's still pretend it is `configure' which instantiates (i.e., don't
41801 # use $as_me), people would be surprised to read:
41802 # /* config.h. Generated by config.status. */
41803 if test x"$ac_file" = x-; then
41806 configure_input="$ac_file. "
41808 configure_input=$configure_input"Generated from `echo $ac_file_in |
41809 sed 's,.*/,,'` by configure."
41811 # First look for the input files in the build tree, otherwise in the
41813 ac_file_inputs=`IFS=:
41814 for f in $ac_file_in; do
41816 -) echo $tmp/stdin ;;
41818 # Absolute (can't be DOS-style, as IFS=:)
41819 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41820 echo "$as_me: error: cannot find input file: $f" >&2;}
41821 { (exit 1); exit 1; }; }
41824 if test -f "$f"; then
41827 elif test -f "$srcdir/$f"; then
41832 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41833 echo "$as_me: error: cannot find input file: $f" >&2;}
41834 { (exit 1); exit 1; }; }
41837 done` || { (exit 1); exit 1; }
41839 cat >>$CONFIG_STATUS <<_ACEOF
41843 cat >>$CONFIG_STATUS <<\_ACEOF
41845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41846 s,@configure_input@,$configure_input,;t t
41847 s,@srcdir@,$ac_srcdir,;t t
41848 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41849 s,@top_srcdir@,$ac_top_srcdir,;t t
41850 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41851 s,@builddir@,$ac_builddir,;t t
41852 s,@abs_builddir@,$ac_abs_builddir,;t t
41853 s,@top_builddir@,$ac_top_builddir,;t t
41854 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41855 s,@INSTALL@,$ac_INSTALL,;t t
41856 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41858 if test x"$ac_file" != x-; then
41859 mv $tmp/out $ac_file
41867 cat >>$CONFIG_STATUS <<\_ACEOF
41870 # CONFIG_HEADER section.
41873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41876 # ac_d sets the value in "#define NAME VALUE" lines.
41877 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41878 ac_dB='[ ].*$,\1#\2'
41881 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41882 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41883 ac_uB='$,\1#\2define\3'
41887 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41888 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41890 - | *:- | *:-:* ) # input from stdin
41892 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41893 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41894 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41895 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41896 * ) ac_file_in=$ac_file.in ;;
41899 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41900 echo "$as_me: creating $ac_file" >&6;}
41902 # First look for the input files in the build tree, otherwise in the
41904 ac_file_inputs=`IFS=:
41905 for f in $ac_file_in; do
41907 -) echo $tmp/stdin ;;
41909 # Absolute (can't be DOS-style, as IFS=:)
41910 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41911 echo "$as_me: error: cannot find input file: $f" >&2;}
41912 { (exit 1); exit 1; }; }
41913 # Do quote $f, to prevent DOS paths from being IFS'd.
41916 if test -f "$f"; then
41919 elif test -f "$srcdir/$f"; then
41924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41925 echo "$as_me: error: cannot find input file: $f" >&2;}
41926 { (exit 1); exit 1; }; }
41929 done` || { (exit 1); exit 1; }
41930 # Remove the trailing spaces.
41931 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41935 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41936 # `conftest.undefs', that substitutes the proper values into
41937 # config.h.in to produce config.h. The first handles `#define'
41938 # templates, and the second `#undef' templates.
41939 # And first: Protect against being on the right side of a sed subst in
41940 # config.status. Protect against being in an unquoted here document
41941 # in config.status.
41942 rm -f conftest.defines conftest.undefs
41943 # Using a here document instead of a string reduces the quoting nightmare.
41944 # Putting comments in sed scripts is not portable.
41946 # `end' is used to avoid that the second main sed command (meant for
41947 # 0-ary CPP macros) applies to n-ary macro definitions.
41948 # See the Autoconf documentation for `clear'.
41949 cat >confdef2sed.sed <<\_ACEOF
41954 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41956 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41959 # If some macros were called several times there might be several times
41960 # the same #defines, which is useless. Nevertheless, we may not want to
41961 # sort them, since we want the *last* AC-DEFINE to be honored.
41962 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41963 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41964 rm -f confdef2sed.sed
41966 # This sed command replaces #undef with comments. This is necessary, for
41967 # example, in the case of _POSIX_SOURCE, which is predefined and required
41968 # on some systems where configure will not decide to define it.
41969 cat >>conftest.undefs <<\_ACEOF
41970 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41973 # Break up conftest.defines because some shells have a limit on the size
41974 # of here documents, and old seds have small limits too (100 cmds).
41975 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41976 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41977 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41978 echo ' :' >>$CONFIG_STATUS
41979 rm -f conftest.tail
41980 while grep . conftest.defines >/dev/null
41982 # Write a limited-size here document to $tmp/defines.sed.
41983 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41984 # Speed up: don't consider the non `#define' lines.
41985 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41986 # Work around the forget-to-reset-the-flag bug.
41987 echo 't clr' >>$CONFIG_STATUS
41988 echo ': clr' >>$CONFIG_STATUS
41989 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41991 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41993 mv $tmp/out $tmp/in
41995 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41996 rm -f conftest.defines
41997 mv conftest.tail conftest.defines
41999 rm -f conftest.defines
42000 echo ' fi # grep' >>$CONFIG_STATUS
42001 echo >>$CONFIG_STATUS
42003 # Break up conftest.undefs because some shells have a limit on the size
42004 # of here documents, and old seds have small limits too (100 cmds).
42005 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42006 rm -f conftest.tail
42007 while grep . conftest.undefs >/dev/null
42009 # Write a limited-size here document to $tmp/undefs.sed.
42010 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42011 # Speed up: don't consider the non `#undef'
42012 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42013 # Work around the forget-to-reset-the-flag bug.
42014 echo 't clr' >>$CONFIG_STATUS
42015 echo ': clr' >>$CONFIG_STATUS
42016 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42018 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42020 mv $tmp/out $tmp/in
42022 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42023 rm -f conftest.undefs
42024 mv conftest.tail conftest.undefs
42026 rm -f conftest.undefs
42028 cat >>$CONFIG_STATUS <<\_ACEOF
42029 # Let's still pretend it is `configure' which instantiates (i.e., don't
42030 # use $as_me), people would be surprised to read:
42031 # /* config.h. Generated by config.status. */
42032 if test x"$ac_file" = x-; then
42033 echo "/* Generated by configure. */" >$tmp/config.h
42035 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42037 cat $tmp/in >>$tmp/config.h
42039 if test x"$ac_file" != x-; then
42040 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42041 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42042 echo "$as_me: $ac_file is unchanged" >&6;}
42044 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42046 X"$ac_file" : 'X\(//\)[^/]' \| \
42047 X"$ac_file" : 'X\(//\)$' \| \
42048 X"$ac_file" : 'X\(/\)' \| \
42049 . : '\(.\)' 2>/dev/null ||
42051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42052 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42053 /^X\(\/\/\)$/{ s//\1/; q; }
42054 /^X\(\/\).*/{ s//\1/; q; }
42056 { if $as_mkdir_p; then
42061 while test ! -d "$as_dir"; do
42062 as_dirs="$as_dir $as_dirs"
42063 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42065 X"$as_dir" : 'X\(//\)[^/]' \| \
42066 X"$as_dir" : 'X\(//\)$' \| \
42067 X"$as_dir" : 'X\(/\)' \| \
42068 . : '\(.\)' 2>/dev/null ||
42070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42072 /^X\(\/\/\)$/{ s//\1/; q; }
42073 /^X\(\/\).*/{ s//\1/; q; }
42076 test ! -n "$as_dirs" || mkdir $as_dirs
42077 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42078 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42079 { (exit 1); exit 1; }; }; }
42082 mv $tmp/config.h $ac_file
42086 rm -f $tmp/config.h
42088 # Compute $ac_file's index in $config_headers.
42090 for _am_header in $config_headers :; do
42091 case $_am_header in
42092 $ac_file | $ac_file:* )
42095 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42098 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42099 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42100 X$ac_file : 'X\(//\)[^/]' \| \
42101 X$ac_file : 'X\(//\)$' \| \
42102 X$ac_file : 'X\(/\)' \| \
42103 . : '\(.\)' 2>/dev/null ||
42105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42106 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42107 /^X\(\/\/\)$/{ s//\1/; q; }
42108 /^X\(\/\).*/{ s//\1/; q; }
42109 s/.*/./; q'`/stamp-h$_am_stamp_count
42112 cat >>$CONFIG_STATUS <<\_ACEOF
42115 # CONFIG_COMMANDS section.
42117 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42118 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42119 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42120 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42121 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42122 X"$ac_dest" : 'X\(//\)[^/]' \| \
42123 X"$ac_dest" : 'X\(//\)$' \| \
42124 X"$ac_dest" : 'X\(/\)' \| \
42125 . : '\(.\)' 2>/dev/null ||
42127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42129 /^X\(\/\/\)$/{ s//\1/; q; }
42130 /^X\(\/\).*/{ s//\1/; q; }
42132 { if $as_mkdir_p; then
42137 while test ! -d "$as_dir"; do
42138 as_dirs="$as_dir $as_dirs"
42139 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42141 X"$as_dir" : 'X\(//\)[^/]' \| \
42142 X"$as_dir" : 'X\(//\)$' \| \
42143 X"$as_dir" : 'X\(/\)' \| \
42144 . : '\(.\)' 2>/dev/null ||
42146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42148 /^X\(\/\/\)$/{ s//\1/; q; }
42149 /^X\(\/\).*/{ s//\1/; q; }
42152 test ! -n "$as_dirs" || mkdir $as_dirs
42153 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42155 { (exit 1); exit 1; }; }; }
42159 if test "$ac_dir" != .; then
42160 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42161 # A "../" for each directory in $ac_dir_suffix.
42162 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42164 ac_dir_suffix= ac_top_builddir=
42168 .) # No --srcdir option. We are building in place.
42170 if test -z "$ac_top_builddir"; then
42173 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42175 [\\/]* | ?:[\\/]* ) # Absolute path.
42176 ac_srcdir=$srcdir$ac_dir_suffix;
42177 ac_top_srcdir=$srcdir ;;
42178 *) # Relative path.
42179 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42180 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42183 # Do not use `cd foo && pwd` to compute absolute paths, because
42184 # the directories may not exist.
42186 .) ac_abs_builddir="$ac_dir";;
42189 .) ac_abs_builddir=`pwd`;;
42190 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42191 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42194 case $ac_abs_builddir in
42195 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42197 case ${ac_top_builddir}. in
42198 .) ac_abs_top_builddir=$ac_abs_builddir;;
42199 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42200 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42203 case $ac_abs_builddir in
42204 .) ac_abs_srcdir=$ac_srcdir;;
42207 .) ac_abs_srcdir=$ac_abs_builddir;;
42208 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42209 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42212 case $ac_abs_builddir in
42213 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42215 case $ac_top_srcdir in
42216 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42217 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42218 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42223 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42224 echo "$as_me: executing $ac_dest commands" >&6;}
42226 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42227 # Strip MF so we end up with the name of the file.
42228 mf=`echo "$mf" | sed -e 's/:.*$//'`
42229 # Check whether this is an Automake generated Makefile or not.
42230 # We used to match only the files named `Makefile.in', but
42231 # some people rename them; so instead we look at the file content.
42232 # Grep'ing the first line is not enough: some people post-process
42233 # each Makefile.in and add a new line on top of each file to say so.
42234 # So let's grep whole file.
42235 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42236 dirpart=`(dirname "$mf") 2>/dev/null ||
42237 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42238 X"$mf" : 'X\(//\)[^/]' \| \
42239 X"$mf" : 'X\(//\)$' \| \
42240 X"$mf" : 'X\(/\)' \| \
42241 . : '\(.\)' 2>/dev/null ||
42243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42245 /^X\(\/\/\)$/{ s//\1/; q; }
42246 /^X\(\/\).*/{ s//\1/; q; }
42251 # Extract the definition of DEPDIR, am__include, and am__quote
42252 # from the Makefile without running `make'.
42253 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42254 test -z "$DEPDIR" && continue
42255 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42256 test -z "am__include" && continue
42257 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42258 # When using ansi2knr, U may be empty or an underscore; expand it
42259 U=`sed -n 's/^U = //p' < "$mf"`
42260 # Find all dependency output files, they are included files with
42261 # $(DEPDIR) in their names. We invoke sed twice because it is the
42262 # simplest approach to changing $(DEPDIR) to its actual value in the
42264 for file in `sed -n "
42265 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42266 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42267 # Make sure the directory exists.
42268 test -f "$dirpart/$file" && continue
42269 fdir=`(dirname "$file") 2>/dev/null ||
42270 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42271 X"$file" : 'X\(//\)[^/]' \| \
42272 X"$file" : 'X\(//\)$' \| \
42273 X"$file" : 'X\(/\)' \| \
42274 . : '\(.\)' 2>/dev/null ||
42276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42278 /^X\(\/\/\)$/{ s//\1/; q; }
42279 /^X\(\/\).*/{ s//\1/; q; }
42281 { if $as_mkdir_p; then
42282 mkdir -p $dirpart/$fdir
42284 as_dir=$dirpart/$fdir
42286 while test ! -d "$as_dir"; do
42287 as_dirs="$as_dir $as_dirs"
42288 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42290 X"$as_dir" : 'X\(//\)[^/]' \| \
42291 X"$as_dir" : 'X\(//\)$' \| \
42292 X"$as_dir" : 'X\(/\)' \| \
42293 . : '\(.\)' 2>/dev/null ||
42295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42297 /^X\(\/\/\)$/{ s//\1/; q; }
42298 /^X\(\/\).*/{ s//\1/; q; }
42301 test ! -n "$as_dirs" || mkdir $as_dirs
42302 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42303 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42304 { (exit 1); exit 1; }; }; }
42306 # echo "creating $dirpart/$file"
42307 echo '# dummy' > "$dirpart/$file"
42314 BACKENDSC="servers/slapd/backends.c"
42315 echo "Making $BACKENDSC"
42317 cat > $BACKENDSC << ENDX
42318 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42320 * Copyright 1998-2007 The OpenLDAP Foundation.
42321 * All rights reserved.
42323 * Redistribution and use in source and binary forms, with or without
42324 * modification, are permitted only as authorized by the OpenLDAP
42327 * A copy of this license is available in the file LICENSE in the
42328 * top-level directory of the distribution or, alternatively, at
42329 * <http://www.OpenLDAP.org/license.html>.
42331 /* This file is automatically generated by configure; please do not edit. */
42333 #include "portable.h"
42337 if test "${STATIC_BACKENDS}"; then
42338 for b in config ${STATIC_BACKENDS}; do
42339 bb=`echo "${b}" | sed -e 's/back-//'`
42340 cat >> $BACKENDSC << ENDX
42341 extern BI_init ${bb}_back_initialize;
42345 cat >> $BACKENDSC << ENDX
42347 BackendInfo slap_binfo[] = {
42350 for b in config ${STATIC_BACKENDS}; do
42351 bb=`echo "${b}" | sed -e 's/back-//'`
42352 echo " Add ${bb} ..."
42353 cat >> $BACKENDSC << ENDX
42354 { "${bb}", ${bb}_back_initialize },
42358 cat >> $BACKENDSC << ENDX
42362 /* end of generated file */
42365 OVERLAYSC="servers/slapd/overlays/statover.c"
42366 echo "Making $OVERLAYSC"
42368 cat > $OVERLAYSC << ENDX
42369 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42371 * Copyright 1998-2007 The OpenLDAP Foundation.
42372 * All rights reserved.
42374 * Redistribution and use in source and binary forms, with or without
42375 * modification, are permitted only as authorized by the OpenLDAP
42378 * A copy of this license is available in the file LICENSE in the
42379 * top-level directory of the distribution or, alternatively, at
42380 * <http://www.OpenLDAP.org/license.html>.
42382 /* This file is automatically generated by configure; please do not edit. */
42384 #include "portable.h"
42388 if test "${STATIC_OVERLAYS}"; then
42389 for o in ${STATIC_OVERLAYS}; do
42390 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42391 cat >> $OVERLAYSC << ENDX
42392 extern OV_init ${oo}_initialize;
42397 cat >> $OVERLAYSC << ENDX
42399 OverlayInit slap_oinfo[] = {
42402 if test "${STATIC_OVERLAYS}"; then
42403 for o in ${STATIC_OVERLAYS}; do
42404 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42405 echo " Add ${oo} ..."
42406 cat >> $OVERLAYSC << ENDX
42407 { "${oo}", ${oo}_initialize },
42412 cat >> $OVERLAYSC << ENDX
42416 /* end of generated file */
42419 if test "${ol_cv_mkdep}" = no; then
42420 echo '(Do not "make depend"; we do not know how to build dependencies)'
42422 echo 'Please run "make depend" to build dependencies'
42429 cat >>$CONFIG_STATUS <<\_ACEOF
42431 { (exit 0); exit 0; }
42433 chmod +x $CONFIG_STATUS
42434 ac_clean_files=$ac_clean_files_save
42437 # configure is writing to config.log, and then calls config.status.
42438 # config.status does its own redirection, appending to config.log.
42439 # Unfortunately, on DOS this fails, as config.log is still kept open
42440 # by configure, so config.status won't be able to write to it; its
42441 # output is simply discarded. So we exec the FD to /dev/null,
42442 # effectively closing config.log, so it can be properly (re)opened and
42443 # appended to by config.status. When coming back to configure, we
42444 # need to make the FD available again.
42445 if test "$no_create" != yes; then
42447 ac_config_status_args=
42448 test "$silent" = yes &&
42449 ac_config_status_args="$ac_config_status_args --quiet"
42451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42454 # would make configure fail if this is the last instruction.
42455 $ac_cs_success || { (exit 1); exit 1; }