2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.652 2007/04/05 21:42:20 hyc 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]
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"
1595 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1596 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1599 if test -d $ac_aux_dir/CVS; then
1600 OPENLDAP_CVS="(from CVS sources) "
1603 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1605 # Make sure we can run config.sub.
1606 $ac_config_sub sun4 >/dev/null 2>&1 ||
1607 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: checking build system type" >&5
1612 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613 if test "${ac_cv_build+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 ac_cv_build_alias=$build_alias
1617 test -z "$ac_cv_build_alias" &&
1618 ac_cv_build_alias=`$ac_config_guess`
1619 test -z "$ac_cv_build_alias" &&
1620 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622 { (exit 1); exit 1; }; }
1623 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1629 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630 echo "${ECHO_T}$ac_cv_build" >&6
1632 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 echo "$as_me:$LINENO: checking host system type" >&5
1638 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639 if test "${ac_cv_host+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 ac_cv_host_alias=$host_alias
1643 test -z "$ac_cv_host_alias" &&
1644 ac_cv_host_alias=$ac_cv_build_alias
1645 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652 echo "${ECHO_T}$ac_cv_host" >&6
1654 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659 echo "$as_me:$LINENO: checking target system type" >&5
1660 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1661 if test "${ac_cv_target+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 ac_cv_target_alias=$target_alias
1665 test "x$ac_cv_target_alias" = "x" &&
1666 ac_cv_target_alias=$ac_cv_host_alias
1667 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674 echo "${ECHO_T}$ac_cv_target" >&6
1675 target=$ac_cv_target
1676 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 # The aliases save the names the user supplied, while $host etc.
1682 # will get canonicalized.
1683 test -n "$target_alias" &&
1684 test "$program_prefix$program_suffix$program_transform_name" = \
1686 program_prefix=${target_alias}-
1688 am__api_version="1.9"
1689 # Find a good install program. We prefer a C program (faster),
1690 # so one script is as good as another. But avoid the broken or
1691 # incompatible versions:
1692 # SysV /etc/install, /usr/sbin/install
1693 # SunOS /usr/etc/install
1694 # IRIX /sbin/install
1696 # AmigaOS /C/install, which installs bootblocks on floppy discs
1697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700 # OS/2's system install, which has a completely different semantic
1701 # ./install, which can be erroneously created by make from ./install.sh.
1702 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1703 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1704 if test -z "$INSTALL"; then
1705 if test "${ac_cv_path_install+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 test -z "$as_dir" && as_dir=.
1713 # Account for people who put trailing slashes in PATH elements.
1715 ./ | .// | /cC/* | \
1716 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1717 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1720 # OSF1 and SCO ODT 3.0 have their own names for install.
1721 # Don't use installbsd from OSF since it installs stuff as root
1723 for ac_prog in ginstall scoinst install; do
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1726 if test $ac_prog = install &&
1727 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1728 # AIX install. It has an incompatible calling convention.
1730 elif test $ac_prog = install &&
1731 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732 # program-specific install script used by HP pwplus--don't use.
1735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1747 if test "${ac_cv_path_install+set}" = set; then
1748 INSTALL=$ac_cv_path_install
1750 # As a last resort, use the slow shell script. We don't cache a
1751 # path for INSTALL within a source directory, because that will
1752 # break other packages using the cache if that directory is
1753 # removed, or if the path is relative.
1754 INSTALL=$ac_install_sh
1757 echo "$as_me:$LINENO: result: $INSTALL" >&5
1758 echo "${ECHO_T}$INSTALL" >&6
1760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1761 # It thinks the first close brace ends the variable substitution.
1762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1768 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1769 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1772 echo timestamp > conftest.file
1773 # Do `set' in a subshell so we don't clobber the current shell's
1774 # arguments. Must try -L first in case configure is actually a
1775 # symlink; some systems play weird games with the mod time of symlinks
1776 # (eg FreeBSD returns the mod time of the symlink's containing
1779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1780 if test "$*" = "X"; then
1782 set X `ls -t $srcdir/configure conftest.file`
1785 if test "$*" != "X $srcdir/configure conftest.file" \
1786 && test "$*" != "X conftest.file $srcdir/configure"; then
1788 # If neither matched, then we have a broken ls. This can happen
1789 # if, for instance, CONFIG_SHELL is bash and it inherits a
1790 # broken ls alias from the environment. This has actually
1791 # happened. Such a system could not be considered "sane".
1792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1793 alias in your environment" >&5
1794 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1795 alias in your environment" >&2;}
1796 { (exit 1); exit 1; }; }
1799 test "$2" = conftest.file
1805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1806 Check your system clock" >&5
1807 echo "$as_me: error: newly created file is older than distributed files!
1808 Check your system clock" >&2;}
1809 { (exit 1); exit 1; }; }
1811 echo "$as_me:$LINENO: result: yes" >&5
1812 echo "${ECHO_T}yes" >&6
1813 test "$program_prefix" != NONE &&
1814 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1815 # Use a double $ so make ignores it.
1816 test "$program_suffix" != NONE &&
1817 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1818 # Double any \ or $. echo might interpret backslashes.
1819 # By default was `s,x,x', remove it if useless.
1820 cat <<\_ACEOF >conftest.sed
1821 s/[\\$]/&&/g;s/;s,x,x,$//
1823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1826 # expand $ac_aux_dir to an absolute path
1827 am_aux_dir=`cd $ac_aux_dir && pwd`
1829 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1830 # Use eval to expand $SHELL
1831 if eval "$MISSING --run true"; then
1832 am_missing_run="$MISSING --run "
1835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1836 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1839 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1840 # We used to keeping the `.' as first argument, in order to
1841 # allow $(mkdir_p) to be used without argument. As in
1842 # $(mkdir_p) $(somedir)
1843 # where $(somedir) is conditionally defined. However this is wrong
1845 # 1. if the package is installed by a user who cannot write `.'
1846 # make install will fail,
1847 # 2. the above comment should most certainly read
1848 # $(mkdir_p) $(DESTDIR)$(somedir)
1849 # so it does not work when $(somedir) is undefined and
1850 # $(DESTDIR) is not.
1851 # To support the latter case, we have to write
1852 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1853 # so the `.' trick is pointless.
1854 mkdir_p='mkdir -p --'
1856 # On NextStep and OpenStep, the `mkdir' command does not
1857 # recognize any option. It will interpret all options as
1858 # directories to create, and then abort because `.' already
1860 for d in ./-p ./--version;
1862 test -d $d && rmdir $d
1864 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1865 if test -f "$ac_aux_dir/mkinstalldirs"; then
1866 mkdir_p='$(mkinstalldirs)'
1868 mkdir_p='$(install_sh) -d'
1872 for ac_prog in gawk mawk nawk awk
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_AWK+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$AWK"; then
1882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_AWK="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 if test -n "$AWK"; then
1902 echo "$as_me:$LINENO: result: $AWK" >&5
1903 echo "${ECHO_T}$AWK" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1909 test -n "$AWK" && break
1912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1913 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 cat >conftest.make <<\_ACEOF
1920 @echo 'ac_maketemp="$(MAKE)"'
1922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1924 if test -n "$ac_maketemp"; then
1925 eval ac_cv_prog_make_${ac_make}_set=yes
1927 eval ac_cv_prog_make_${ac_make}_set=no
1931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1932 echo "$as_me:$LINENO: result: yes" >&5
1933 echo "${ECHO_T}yes" >&6
1936 echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 SET_MAKE="MAKE=${MAKE-make}"
1941 rm -rf .tst 2>/dev/null
1942 mkdir .tst 2>/dev/null
1943 if test -d .tst; then
1948 rmdir .tst 2>/dev/null
1950 # test to see if srcdir already configured
1951 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1952 test -f $srcdir/config.status; then
1953 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1954 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # test whether we have cygpath
1959 if test -z "$CYGPATH_W"; then
1960 if (cygpath --version) >/dev/null 2>/dev/null; then
1961 CYGPATH_W='cygpath -w'
1968 # Define the identity of the package.
1973 # Some tools Automake needs.
1975 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1978 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1981 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1984 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1987 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1989 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1991 # Installed binaries are usually stripped using `strip' when the user
1992 # run `make install-strip'. However `strip' might not be the right
1993 # tool to use in cross-compilation environments, therefore Automake
1994 # will honor the `STRIP' environment variable to overrule this program.
1995 if test "$cross_compiling" != no; then
1996 if test -n "$ac_tool_prefix"; then
1997 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1998 set dummy ${ac_tool_prefix}strip; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_STRIP+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 if test -n "$STRIP"; then
2005 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 STRIP=$ac_cv_prog_STRIP
2024 if test -n "$STRIP"; then
2025 echo "$as_me:$LINENO: result: $STRIP" >&5
2026 echo "${ECHO_T}$STRIP" >&6
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2033 if test -z "$ac_cv_prog_STRIP"; then
2035 # Extract the first word of "strip", so it can be a program name with args.
2036 set dummy strip; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$ac_ct_STRIP"; then
2043 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_ac_ct_STRIP="strip"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2062 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2063 if test -n "$ac_ct_STRIP"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2065 echo "${ECHO_T}$ac_ct_STRIP" >&6
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2073 STRIP="$ac_cv_prog_STRIP"
2077 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2079 # We need awk for the "check" target. The system "awk" is bad on
2081 # Always define AMTAR for backward compatibility.
2083 AMTAR=${AMTAR-"${am_missing_run}tar"}
2085 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2091 cat >>confdefs.h <<_ACEOF
2092 #define OPENLDAP_PACKAGE "$PACKAGE"
2096 cat >>confdefs.h <<_ACEOF
2097 #define OPENLDAP_VERSION "$VERSION"
2102 cat >>confdefs.h <<_ACEOF
2103 #define LDAP_VENDOR_VERSION $OL_API_INC
2107 cat >>confdefs.h <<_ACEOF
2108 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2122 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2124 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2126 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2134 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2136 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2138 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2141 echo "$as_me:$LINENO: checking configure arguments" >&5
2142 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2147 ldap_subdir="/openldap"
2150 # Check whether --with-subdir or --without-subdir was given.
2151 if test "${with_subdir+set}" = set; then
2152 withval="$with_subdir"
2159 ldap_subdir="$withval"
2162 ldap_subdir="/$withval"
2168 # OpenLDAP --enable-debug
2170 # Check whether --enable-debug or --disable-debug was given.
2171 if test "${enable_debug+set}" = set; then
2172 enableval="$enable_debug"
2175 for ol_val in no yes traditional ; do
2176 if test "$enableval" = "$ol_val" ; then
2180 if test "$ol_arg" = "invalid" ; then
2181 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2182 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2183 { (exit 1); exit 1; }; }
2185 ol_enable_debug="$ol_arg"
2190 # end --enable-debug
2191 # OpenLDAP --enable-dynamic
2193 # Check whether --enable-dynamic or --disable-dynamic was given.
2194 if test "${enable_dynamic+set}" = set; then
2195 enableval="$enable_dynamic"
2198 for ol_val in auto yes no ; do
2199 if test "$enableval" = "$ol_val" ; then
2203 if test "$ol_arg" = "invalid" ; then
2204 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2205 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2206 { (exit 1); exit 1; }; }
2208 ol_enable_dynamic="$ol_arg"
2211 ol_enable_dynamic=no
2213 # end --enable-dynamic
2214 # OpenLDAP --enable-syslog
2216 # Check whether --enable-syslog or --disable-syslog was given.
2217 if test "${enable_syslog+set}" = set; then
2218 enableval="$enable_syslog"
2221 for ol_val in auto yes no ; do
2222 if test "$enableval" = "$ol_val" ; then
2226 if test "$ol_arg" = "invalid" ; then
2227 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2228 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2229 { (exit 1); exit 1; }; }
2231 ol_enable_syslog="$ol_arg"
2234 ol_enable_syslog=auto
2236 # end --enable-syslog
2237 # OpenLDAP --enable-proctitle
2239 # Check whether --enable-proctitle or --disable-proctitle was given.
2240 if test "${enable_proctitle+set}" = set; then
2241 enableval="$enable_proctitle"
2244 for ol_val in auto yes no ; do
2245 if test "$enableval" = "$ol_val" ; then
2249 if test "$ol_arg" = "invalid" ; then
2250 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2251 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2252 { (exit 1); exit 1; }; }
2254 ol_enable_proctitle="$ol_arg"
2257 ol_enable_proctitle=yes
2259 # end --enable-proctitle
2260 ol_enable_referrals=${ol_enable_referrals-no}
2261 # OpenLDAP --enable-ipv6
2263 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2264 if test "${enable_ipv6+set}" = set; then
2265 enableval="$enable_ipv6"
2268 for ol_val in auto yes no ; do
2269 if test "$enableval" = "$ol_val" ; then
2273 if test "$ol_arg" = "invalid" ; then
2274 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2275 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2276 { (exit 1); exit 1; }; }
2278 ol_enable_ipv6="$ol_arg"
2284 # OpenLDAP --enable-local
2286 # Check whether --enable-local or --disable-local was given.
2287 if test "${enable_local+set}" = set; then
2288 enableval="$enable_local"
2291 for ol_val in auto yes no ; do
2292 if test "$enableval" = "$ol_val" ; then
2296 if test "$ol_arg" = "invalid" ; then
2297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2298 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2299 { (exit 1); exit 1; }; }
2301 ol_enable_local="$ol_arg"
2304 ol_enable_local=auto
2306 # end --enable-local
2308 # OpenLDAP --with-cyrus_sasl
2310 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2311 if test "${with_cyrus_sasl+set}" = set; then
2312 withval="$with_cyrus_sasl"
2315 for ol_val in auto yes no ; do
2316 if test "$withval" = "$ol_val" ; then
2320 if test "$ol_arg" = "invalid" ; then
2321 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2322 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2323 { (exit 1); exit 1; }; }
2325 ol_with_cyrus_sasl="$ol_arg"
2328 ol_with_cyrus_sasl="auto"
2329 fi; # end --with-cyrus_sasl
2331 # OpenLDAP --with-fetch
2333 # Check whether --with-fetch or --without-fetch was given.
2334 if test "${with_fetch+set}" = set; then
2335 withval="$with_fetch"
2338 for ol_val in auto yes no ; do
2339 if test "$withval" = "$ol_val" ; then
2343 if test "$ol_arg" = "invalid" ; then
2344 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2345 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2346 { (exit 1); exit 1; }; }
2348 ol_with_fetch="$ol_arg"
2351 ol_with_fetch="auto"
2352 fi; # end --with-fetch
2354 # OpenLDAP --with-threads
2356 # Check whether --with-threads or --without-threads was given.
2357 if test "${with_threads+set}" = set; then
2358 withval="$with_threads"
2361 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2362 if test "$withval" = "$ol_val" ; then
2366 if test "$ol_arg" = "invalid" ; then
2367 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2368 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2369 { (exit 1); exit 1; }; }
2371 ol_with_threads="$ol_arg"
2374 ol_with_threads="auto"
2375 fi; # end --with-threads
2377 # OpenLDAP --with-tls
2379 # Check whether --with-tls or --without-tls was given.
2380 if test "${with_tls+set}" = set; then
2384 for ol_val in auto openssl yes no ; do
2385 if test "$withval" = "$ol_val" ; then
2389 if test "$ol_arg" = "invalid" ; then
2390 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2391 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2392 { (exit 1); exit 1; }; }
2394 ol_with_tls="$ol_arg"
2398 fi; # end --with-tls
2400 # OpenLDAP --with-yielding_select
2402 # Check whether --with-yielding_select or --without-yielding_select was given.
2403 if test "${with_yielding_select+set}" = set; then
2404 withval="$with_yielding_select"
2407 for ol_val in auto yes no manual ; do
2408 if test "$withval" = "$ol_val" ; then
2412 if test "$ol_arg" = "invalid" ; then
2413 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2414 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2415 { (exit 1); exit 1; }; }
2417 ol_with_yielding_select="$ol_arg"
2420 ol_with_yielding_select="auto"
2421 fi; # end --with-yielding_select
2423 # OpenLDAP --with-mp
2425 # Check whether --with-mp or --without-mp was given.
2426 if test "${with_mp+set}" = set; then
2430 for ol_val in auto longlong long bignum gmp yes no ; do
2431 if test "$withval" = "$ol_val" ; then
2435 if test "$ol_arg" = "invalid" ; then
2436 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2437 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2438 { (exit 1); exit 1; }; }
2440 ol_with_mp="$ol_arg"
2446 # OpenLDAP --with-odbc
2448 # Check whether --with-odbc or --without-odbc was given.
2449 if test "${with_odbc+set}" = set; then
2450 withval="$with_odbc"
2453 for ol_val in auto iodbc unixodbc ; do
2454 if test "$withval" = "$ol_val" ; then
2458 if test "$ol_arg" = "invalid" ; then
2459 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2460 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2461 { (exit 1); exit 1; }; }
2463 ol_with_odbc="$ol_arg"
2467 fi; # end --with-odbc
2471 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2472 if test "${enable_xxslapdoptions+set}" = set; then
2473 enableval="$enable_xxslapdoptions"
2476 # OpenLDAP --enable-slapd
2478 # Check whether --enable-slapd or --disable-slapd was given.
2479 if test "${enable_slapd+set}" = set; then
2480 enableval="$enable_slapd"
2483 for ol_val in auto yes no ; do
2484 if test "$enableval" = "$ol_val" ; then
2488 if test "$ol_arg" = "invalid" ; then
2489 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2490 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2491 { (exit 1); exit 1; }; }
2493 ol_enable_slapd="$ol_arg"
2498 # end --enable-slapd
2499 # OpenLDAP --enable-dynacl
2501 # Check whether --enable-dynacl or --disable-dynacl was given.
2502 if test "${enable_dynacl+set}" = set; then
2503 enableval="$enable_dynacl"
2506 for ol_val in auto yes no ; do
2507 if test "$enableval" = "$ol_val" ; then
2511 if test "$ol_arg" = "invalid" ; then
2512 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2513 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2514 { (exit 1); exit 1; }; }
2516 ol_enable_dynacl="$ol_arg"
2521 # end --enable-dynacl
2522 # OpenLDAP --enable-aci
2524 # Check whether --enable-aci or --disable-aci was given.
2525 if test "${enable_aci+set}" = set; then
2526 enableval="$enable_aci"
2529 for ol_val in no yes mod ; do
2530 if test "$enableval" = "$ol_val" ; then
2534 if test "$ol_arg" = "invalid" ; then
2535 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2536 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2537 { (exit 1); exit 1; }; }
2539 ol_enable_aci="$ol_arg"
2545 # OpenLDAP --enable-cleartext
2547 # Check whether --enable-cleartext or --disable-cleartext was given.
2548 if test "${enable_cleartext+set}" = set; then
2549 enableval="$enable_cleartext"
2552 for ol_val in auto yes no ; do
2553 if test "$enableval" = "$ol_val" ; then
2557 if test "$ol_arg" = "invalid" ; then
2558 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2559 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2560 { (exit 1); exit 1; }; }
2562 ol_enable_cleartext="$ol_arg"
2565 ol_enable_cleartext=yes
2567 # end --enable-cleartext
2568 # OpenLDAP --enable-crypt
2570 # Check whether --enable-crypt or --disable-crypt was given.
2571 if test "${enable_crypt+set}" = set; then
2572 enableval="$enable_crypt"
2575 for ol_val in auto yes no ; do
2576 if test "$enableval" = "$ol_val" ; then
2580 if test "$ol_arg" = "invalid" ; then
2581 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2582 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2583 { (exit 1); exit 1; }; }
2585 ol_enable_crypt="$ol_arg"
2590 # end --enable-crypt
2591 # OpenLDAP --enable-lmpasswd
2593 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2594 if test "${enable_lmpasswd+set}" = set; then
2595 enableval="$enable_lmpasswd"
2598 for ol_val in auto yes no ; do
2599 if test "$enableval" = "$ol_val" ; then
2603 if test "$ol_arg" = "invalid" ; then
2604 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2605 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2606 { (exit 1); exit 1; }; }
2608 ol_enable_lmpasswd="$ol_arg"
2611 ol_enable_lmpasswd=no
2613 # end --enable-lmpasswd
2614 # OpenLDAP --enable-spasswd
2616 # Check whether --enable-spasswd or --disable-spasswd was given.
2617 if test "${enable_spasswd+set}" = set; then
2618 enableval="$enable_spasswd"
2621 for ol_val in auto yes no ; do
2622 if test "$enableval" = "$ol_val" ; then
2626 if test "$ol_arg" = "invalid" ; then
2627 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2628 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2629 { (exit 1); exit 1; }; }
2631 ol_enable_spasswd="$ol_arg"
2634 ol_enable_spasswd=no
2636 # end --enable-spasswd
2637 # OpenLDAP --enable-modules
2639 # Check whether --enable-modules or --disable-modules was given.
2640 if test "${enable_modules+set}" = set; then
2641 enableval="$enable_modules"
2644 for ol_val in auto yes no ; do
2645 if test "$enableval" = "$ol_val" ; then
2649 if test "$ol_arg" = "invalid" ; then
2650 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2651 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2652 { (exit 1); exit 1; }; }
2654 ol_enable_modules="$ol_arg"
2657 ol_enable_modules=no
2659 # end --enable-modules
2660 # OpenLDAP --enable-rewrite
2662 # Check whether --enable-rewrite or --disable-rewrite was given.
2663 if test "${enable_rewrite+set}" = set; then
2664 enableval="$enable_rewrite"
2667 for ol_val in auto yes no ; do
2668 if test "$enableval" = "$ol_val" ; then
2672 if test "$ol_arg" = "invalid" ; then
2673 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2674 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2675 { (exit 1); exit 1; }; }
2677 ol_enable_rewrite="$ol_arg"
2680 ol_enable_rewrite=auto
2682 # end --enable-rewrite
2683 # OpenLDAP --enable-rlookups
2685 # Check whether --enable-rlookups or --disable-rlookups was given.
2686 if test "${enable_rlookups+set}" = set; then
2687 enableval="$enable_rlookups"
2690 for ol_val in auto yes no ; do
2691 if test "$enableval" = "$ol_val" ; then
2695 if test "$ol_arg" = "invalid" ; then
2696 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2697 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2698 { (exit 1); exit 1; }; }
2700 ol_enable_rlookups="$ol_arg"
2703 ol_enable_rlookups=no
2705 # end --enable-rlookups
2706 # OpenLDAP --enable-slapi
2708 # Check whether --enable-slapi or --disable-slapi was given.
2709 if test "${enable_slapi+set}" = set; then
2710 enableval="$enable_slapi"
2713 for ol_val in auto yes no ; do
2714 if test "$enableval" = "$ol_val" ; then
2718 if test "$ol_arg" = "invalid" ; then
2719 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2720 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2721 { (exit 1); exit 1; }; }
2723 ol_enable_slapi="$ol_arg"
2728 # end --enable-slapi
2729 # OpenLDAP --enable-slp
2731 # Check whether --enable-slp or --disable-slp was given.
2732 if test "${enable_slp+set}" = set; then
2733 enableval="$enable_slp"
2736 for ol_val in auto yes no ; do
2737 if test "$enableval" = "$ol_val" ; then
2741 if test "$ol_arg" = "invalid" ; then
2742 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2743 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2744 { (exit 1); exit 1; }; }
2746 ol_enable_slp="$ol_arg"
2752 # OpenLDAP --enable-wrappers
2754 # Check whether --enable-wrappers or --disable-wrappers was given.
2755 if test "${enable_wrappers+set}" = set; then
2756 enableval="$enable_wrappers"
2759 for ol_val in auto yes no ; do
2760 if test "$enableval" = "$ol_val" ; then
2764 if test "$ol_arg" = "invalid" ; then
2765 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2766 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2767 { (exit 1); exit 1; }; }
2769 ol_enable_wrappers="$ol_arg"
2772 ol_enable_wrappers=no
2774 # end --enable-wrappers
2789 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2790 if test "${enable_xxslapbackends+set}" = set; then
2791 enableval="$enable_xxslapbackends"
2795 # OpenLDAP --enable-backends
2797 # Check whether --enable-backends or --disable-backends was given.
2798 if test "${enable_backends+set}" = set; then
2799 enableval="$enable_backends"
2802 for ol_val in no yes mod ; do
2803 if test "$enableval" = "$ol_val" ; then
2807 if test "$ol_arg" = "invalid" ; then
2808 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2809 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2810 { (exit 1); exit 1; }; }
2812 ol_enable_backends="$ol_arg"
2815 # end --enable-backends
2816 # OpenLDAP --enable-bdb
2818 # Check whether --enable-bdb or --disable-bdb was given.
2819 if test "${enable_bdb+set}" = set; then
2820 enableval="$enable_bdb"
2823 for ol_val in no yes mod ; do
2824 if test "$enableval" = "$ol_val" ; then
2828 if test "$ol_arg" = "invalid" ; then
2829 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2830 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2831 { (exit 1); exit 1; }; }
2833 ol_enable_bdb="$ol_arg"
2836 ol_enable_bdb=${ol_enable_backends:-yes}
2839 # OpenLDAP --enable-dnssrv
2841 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2842 if test "${enable_dnssrv+set}" = set; then
2843 enableval="$enable_dnssrv"
2846 for ol_val in no yes mod ; do
2847 if test "$enableval" = "$ol_val" ; then
2851 if test "$ol_arg" = "invalid" ; then
2852 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2853 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2854 { (exit 1); exit 1; }; }
2856 ol_enable_dnssrv="$ol_arg"
2859 ol_enable_dnssrv=${ol_enable_backends:-no}
2861 # end --enable-dnssrv
2862 # OpenLDAP --enable-hdb
2864 # Check whether --enable-hdb or --disable-hdb was given.
2865 if test "${enable_hdb+set}" = set; then
2866 enableval="$enable_hdb"
2869 for ol_val in no yes mod ; do
2870 if test "$enableval" = "$ol_val" ; then
2874 if test "$ol_arg" = "invalid" ; then
2875 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2877 { (exit 1); exit 1; }; }
2879 ol_enable_hdb="$ol_arg"
2882 ol_enable_hdb=${ol_enable_backends:-yes}
2885 # OpenLDAP --enable-ldap
2887 # Check whether --enable-ldap or --disable-ldap was given.
2888 if test "${enable_ldap+set}" = set; then
2889 enableval="$enable_ldap"
2892 for ol_val in no yes mod ; do
2893 if test "$enableval" = "$ol_val" ; then
2897 if test "$ol_arg" = "invalid" ; then
2898 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2900 { (exit 1); exit 1; }; }
2902 ol_enable_ldap="$ol_arg"
2905 ol_enable_ldap=${ol_enable_backends:-no}
2908 # OpenLDAP --enable-meta
2910 # Check whether --enable-meta or --disable-meta was given.
2911 if test "${enable_meta+set}" = set; then
2912 enableval="$enable_meta"
2915 for ol_val in no yes mod ; do
2916 if test "$enableval" = "$ol_val" ; then
2920 if test "$ol_arg" = "invalid" ; then
2921 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2922 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2923 { (exit 1); exit 1; }; }
2925 ol_enable_meta="$ol_arg"
2928 ol_enable_meta=${ol_enable_backends:-no}
2931 # OpenLDAP --enable-monitor
2933 # Check whether --enable-monitor or --disable-monitor was given.
2934 if test "${enable_monitor+set}" = set; then
2935 enableval="$enable_monitor"
2938 for ol_val in no yes mod ; do
2939 if test "$enableval" = "$ol_val" ; then
2943 if test "$ol_arg" = "invalid" ; then
2944 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2945 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2946 { (exit 1); exit 1; }; }
2948 ol_enable_monitor="$ol_arg"
2951 ol_enable_monitor=${ol_enable_backends:-yes}
2953 # end --enable-monitor
2954 # OpenLDAP --enable-null
2956 # Check whether --enable-null or --disable-null was given.
2957 if test "${enable_null+set}" = set; then
2958 enableval="$enable_null"
2961 for ol_val in no yes mod ; do
2962 if test "$enableval" = "$ol_val" ; then
2966 if test "$ol_arg" = "invalid" ; then
2967 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2968 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2969 { (exit 1); exit 1; }; }
2971 ol_enable_null="$ol_arg"
2974 ol_enable_null=${ol_enable_backends:-no}
2977 # OpenLDAP --enable-passwd
2979 # Check whether --enable-passwd or --disable-passwd was given.
2980 if test "${enable_passwd+set}" = set; then
2981 enableval="$enable_passwd"
2984 for ol_val in no yes mod ; do
2985 if test "$enableval" = "$ol_val" ; then
2989 if test "$ol_arg" = "invalid" ; then
2990 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2991 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2992 { (exit 1); exit 1; }; }
2994 ol_enable_passwd="$ol_arg"
2997 ol_enable_passwd=${ol_enable_backends:-no}
2999 # end --enable-passwd
3000 # OpenLDAP --enable-perl
3002 # Check whether --enable-perl or --disable-perl was given.
3003 if test "${enable_perl+set}" = set; then
3004 enableval="$enable_perl"
3007 for ol_val in no yes mod ; do
3008 if test "$enableval" = "$ol_val" ; then
3012 if test "$ol_arg" = "invalid" ; then
3013 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3014 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3015 { (exit 1); exit 1; }; }
3017 ol_enable_perl="$ol_arg"
3020 ol_enable_perl=${ol_enable_backends:-no}
3023 # OpenLDAP --enable-relay
3025 # Check whether --enable-relay or --disable-relay was given.
3026 if test "${enable_relay+set}" = set; then
3027 enableval="$enable_relay"
3030 for ol_val in no yes mod ; do
3031 if test "$enableval" = "$ol_val" ; then
3035 if test "$ol_arg" = "invalid" ; then
3036 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3037 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3038 { (exit 1); exit 1; }; }
3040 ol_enable_relay="$ol_arg"
3043 ol_enable_relay=${ol_enable_backends:-yes}
3045 # end --enable-relay
3046 # OpenLDAP --enable-shell
3048 # Check whether --enable-shell or --disable-shell was given.
3049 if test "${enable_shell+set}" = set; then
3050 enableval="$enable_shell"
3053 for ol_val in no yes mod ; do
3054 if test "$enableval" = "$ol_val" ; then
3058 if test "$ol_arg" = "invalid" ; then
3059 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3060 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3061 { (exit 1); exit 1; }; }
3063 ol_enable_shell="$ol_arg"
3066 ol_enable_shell=${ol_enable_backends:-no}
3068 # end --enable-shell
3069 # OpenLDAP --enable-sql
3071 # Check whether --enable-sql or --disable-sql was given.
3072 if test "${enable_sql+set}" = set; then
3073 enableval="$enable_sql"
3076 for ol_val in no yes mod ; do
3077 if test "$enableval" = "$ol_val" ; then
3081 if test "$ol_arg" = "invalid" ; then
3082 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3083 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3084 { (exit 1); exit 1; }; }
3086 ol_enable_sql="$ol_arg"
3089 ol_enable_sql=${ol_enable_backends:-no}
3093 Overlays="accesslog \
3110 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3111 if test "${enable_xxslapoverlays+set}" = set; then
3112 enableval="$enable_xxslapoverlays"
3116 # OpenLDAP --enable-overlays
3118 # Check whether --enable-overlays or --disable-overlays was given.
3119 if test "${enable_overlays+set}" = set; then
3120 enableval="$enable_overlays"
3123 for ol_val in no yes mod ; do
3124 if test "$enableval" = "$ol_val" ; then
3128 if test "$ol_arg" = "invalid" ; then
3129 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3130 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3131 { (exit 1); exit 1; }; }
3133 ol_enable_overlays="$ol_arg"
3136 # end --enable-overlays
3137 # OpenLDAP --enable-accesslog
3139 # Check whether --enable-accesslog or --disable-accesslog was given.
3140 if test "${enable_accesslog+set}" = set; then
3141 enableval="$enable_accesslog"
3144 for ol_val in no yes mod ; do
3145 if test "$enableval" = "$ol_val" ; then
3149 if test "$ol_arg" = "invalid" ; then
3150 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3151 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3152 { (exit 1); exit 1; }; }
3154 ol_enable_accesslog="$ol_arg"
3157 ol_enable_accesslog=${ol_enable_overlays:-no}
3159 # end --enable-accesslog
3161 # OpenLDAP --enable-auditlog
3163 # Check whether --enable-auditlog or --disable-auditlog was given.
3164 if test "${enable_auditlog+set}" = set; then
3165 enableval="$enable_auditlog"
3168 for ol_val in no yes mod ; do
3169 if test "$enableval" = "$ol_val" ; then
3173 if test "$ol_arg" = "invalid" ; then
3174 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3175 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3176 { (exit 1); exit 1; }; }
3178 ol_enable_auditlog="$ol_arg"
3181 ol_enable_auditlog=${ol_enable_overlays:-no}
3183 # end --enable-auditlog
3185 # OpenLDAP --enable-constraint
3187 # Check whether --enable-constraint or --disable-constraint was given.
3188 if test "${enable_constraint+set}" = set; then
3189 enableval="$enable_constraint"
3192 for ol_val in no yes mod ; do
3193 if test "$enableval" = "$ol_val" ; then
3197 if test "$ol_arg" = "invalid" ; then
3198 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3200 { (exit 1); exit 1; }; }
3202 ol_enable_constraint="$ol_arg"
3205 ol_enable_constraint=${ol_enable_overlays:-no}
3207 # end --enable-constraint
3209 # OpenLDAP --enable-dds
3211 # Check whether --enable-dds or --disable-dds was given.
3212 if test "${enable_dds+set}" = set; then
3213 enableval="$enable_dds"
3216 for ol_val in no yes mod ; do
3217 if test "$enableval" = "$ol_val" ; then
3221 if test "$ol_arg" = "invalid" ; then
3222 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3224 { (exit 1); exit 1; }; }
3226 ol_enable_dds="$ol_arg"
3229 ol_enable_dds=${ol_enable_overlays:-no}
3233 # OpenLDAP --enable-dyngroup
3235 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237 enableval="$enable_dyngroup"
3240 for ol_val in no yes mod ; do
3241 if test "$enableval" = "$ol_val" ; then
3245 if test "$ol_arg" = "invalid" ; then
3246 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248 { (exit 1); exit 1; }; }
3250 ol_enable_dyngroup="$ol_arg"
3253 ol_enable_dyngroup=${ol_enable_overlays:-no}
3255 # end --enable-dyngroup
3257 # OpenLDAP --enable-dynlist
3259 # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261 enableval="$enable_dynlist"
3264 for ol_val in no yes mod ; do
3265 if test "$enableval" = "$ol_val" ; then
3269 if test "$ol_arg" = "invalid" ; then
3270 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272 { (exit 1); exit 1; }; }
3274 ol_enable_dynlist="$ol_arg"
3277 ol_enable_dynlist=${ol_enable_overlays:-no}
3279 # end --enable-dynlist
3281 # OpenLDAP --enable-ppolicy
3283 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3284 if test "${enable_ppolicy+set}" = set; then
3285 enableval="$enable_ppolicy"
3288 for ol_val in no yes mod ; do
3289 if test "$enableval" = "$ol_val" ; then
3293 if test "$ol_arg" = "invalid" ; then
3294 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3296 { (exit 1); exit 1; }; }
3298 ol_enable_ppolicy="$ol_arg"
3301 ol_enable_ppolicy=${ol_enable_overlays:-no}
3303 # end --enable-ppolicy
3305 # OpenLDAP --enable-proxycache
3307 # Check whether --enable-proxycache or --disable-proxycache was given.
3308 if test "${enable_proxycache+set}" = set; then
3309 enableval="$enable_proxycache"
3312 for ol_val in no yes mod ; do
3313 if test "$enableval" = "$ol_val" ; then
3317 if test "$ol_arg" = "invalid" ; then
3318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3320 { (exit 1); exit 1; }; }
3322 ol_enable_proxycache="$ol_arg"
3325 ol_enable_proxycache=${ol_enable_overlays:-no}
3327 # end --enable-proxycache
3329 # OpenLDAP --enable-refint
3331 # Check whether --enable-refint or --disable-refint was given.
3332 if test "${enable_refint+set}" = set; then
3333 enableval="$enable_refint"
3336 for ol_val in no yes mod ; do
3337 if test "$enableval" = "$ol_val" ; then
3341 if test "$ol_arg" = "invalid" ; then
3342 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3344 { (exit 1); exit 1; }; }
3346 ol_enable_refint="$ol_arg"
3349 ol_enable_refint=${ol_enable_overlays:-no}
3351 # end --enable-refint
3353 # OpenLDAP --enable-retcode
3355 # Check whether --enable-retcode or --disable-retcode was given.
3356 if test "${enable_retcode+set}" = set; then
3357 enableval="$enable_retcode"
3360 for ol_val in no yes mod ; do
3361 if test "$enableval" = "$ol_val" ; then
3365 if test "$ol_arg" = "invalid" ; then
3366 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_retcode="$ol_arg"
3373 ol_enable_retcode=${ol_enable_overlays:-no}
3375 # end --enable-retcode
3377 # OpenLDAP --enable-rwm
3379 # Check whether --enable-rwm or --disable-rwm was given.
3380 if test "${enable_rwm+set}" = set; then
3381 enableval="$enable_rwm"
3384 for ol_val in no yes mod ; do
3385 if test "$enableval" = "$ol_val" ; then
3389 if test "$ol_arg" = "invalid" ; then
3390 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3392 { (exit 1); exit 1; }; }
3394 ol_enable_rwm="$ol_arg"
3397 ol_enable_rwm=${ol_enable_overlays:-no}
3401 # OpenLDAP --enable-seqmod
3403 # Check whether --enable-seqmod or --disable-seqmod was given.
3404 if test "${enable_seqmod+set}" = set; then
3405 enableval="$enable_seqmod"
3408 for ol_val in no yes mod ; do
3409 if test "$enableval" = "$ol_val" ; then
3413 if test "$ol_arg" = "invalid" ; then
3414 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3416 { (exit 1); exit 1; }; }
3418 ol_enable_seqmod="$ol_arg"
3421 ol_enable_seqmod=${ol_enable_overlays:-yes}
3423 # end --enable-seqmod
3425 # OpenLDAP --enable-syncprov
3427 # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429 enableval="$enable_syncprov"
3432 for ol_val in no yes mod ; do
3433 if test "$enableval" = "$ol_val" ; then
3437 if test "$ol_arg" = "invalid" ; then
3438 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440 { (exit 1); exit 1; }; }
3442 ol_enable_syncprov="$ol_arg"
3445 ol_enable_syncprov=${ol_enable_overlays:-yes}
3447 # end --enable-syncprov
3449 # OpenLDAP --enable-translucent
3451 # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453 enableval="$enable_translucent"
3456 for ol_val in no yes mod ; do
3457 if test "$enableval" = "$ol_val" ; then
3461 if test "$ol_arg" = "invalid" ; then
3462 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464 { (exit 1); exit 1; }; }
3466 ol_enable_translucent="$ol_arg"
3469 ol_enable_translucent=${ol_enable_overlays:-no}
3471 # end --enable-translucent
3473 # OpenLDAP --enable-unique
3475 # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477 enableval="$enable_unique"
3480 for ol_val in no yes mod ; do
3481 if test "$enableval" = "$ol_val" ; then
3485 if test "$ol_arg" = "invalid" ; then
3486 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488 { (exit 1); exit 1; }; }
3490 ol_enable_unique="$ol_arg"
3493 ol_enable_unique=${ol_enable_overlays:-no}
3495 # end --enable-unique
3497 # OpenLDAP --enable-valsort
3499 # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501 enableval="$enable_valsort"
3504 for ol_val in no yes mod ; do
3505 if test "$enableval" = "$ol_val" ; then
3509 if test "$ol_arg" = "invalid" ; then
3510 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512 { (exit 1); exit 1; }; }
3514 ol_enable_valsort="$ol_arg"
3517 ol_enable_valsort=${ol_enable_overlays:-no}
3519 # end --enable-valsort
3522 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3523 if test "${enable_xxliboptions+set}" = set; then
3524 enableval="$enable_xxliboptions"
3527 # Check whether --enable-static or --disable-static was given.
3528 if test "${enable_static+set}" = set; then
3529 enableval="$enable_static"
3530 p=${PACKAGE-default}
3532 yes) enable_static=yes ;;
3533 no) enable_static=no ;;
3536 # Look at the argument we got. We use all the common list separators.
3537 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3538 for pkg in $enableval; do
3540 if test "X$pkg" = "X$p"; then
3551 # Check whether --enable-shared or --disable-shared was given.
3552 if test "${enable_shared+set}" = set; then
3553 enableval="$enable_shared"
3554 p=${PACKAGE-default}
3556 yes) enable_shared=yes ;;
3557 no) enable_shared=no ;;
3560 # Look at the argument we got. We use all the common list separators.
3561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3562 for pkg in $enableval; do
3564 if test "X$pkg" = "X$p"; then
3578 if test $ol_enable_slapd = no ; then
3579 if test $ol_enable_slapi = yes ; then
3580 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3581 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3583 case "$ol_enable_backends" in yes | mod)
3584 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3585 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3587 for i in $Backends; do
3588 eval "ol_tmp=\$ol_enable_$i"
3589 if test $ol_tmp != no ; then
3590 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3591 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3592 eval "ol_enable_$i=no"
3595 if test $ol_enable_modules = yes ; then
3596 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3597 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3599 if test $ol_enable_wrappers = yes ; then
3600 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3601 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3603 if test $ol_enable_rlookups = yes ; then
3604 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3605 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3607 if test $ol_enable_dynacl = yes ; then
3608 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3609 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3611 if test $ol_enable_aci != no ; then
3612 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3613 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3615 if test $ol_enable_rewrite = yes ; then
3616 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3617 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3619 case "$ol_enable_overlays" in yes | mod)
3620 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3623 for i in $Overlays; do
3624 eval "ol_tmp=\$ol_enable_$i"
3625 if test $ol_tmp != no ; then
3626 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3627 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3628 eval "ol_enable_$i=no"
3632 # force settings to no
3637 ol_enable_modules=no
3638 ol_enable_rlookups=no
3641 ol_enable_wrappers=no
3643 ol_enable_rewrite=no
3645 elif test $ol_enable_modules != yes &&
3646 test $ol_enable_bdb = no &&
3647 test $ol_enable_dnssrv = no &&
3648 test $ol_enable_hdb = no &&
3649 test $ol_enable_ldap = no &&
3650 test $ol_enable_meta = no &&
3651 test $ol_enable_monitor = no &&
3652 test $ol_enable_null = no &&
3653 test $ol_enable_passwd = no &&
3654 test $ol_enable_perl = no &&
3655 test $ol_enable_relay = no &&
3656 test $ol_enable_shell = no &&
3657 test $ol_enable_sql = no ; then
3659 if test $ol_enable_slapd = yes ; then
3660 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3661 echo "$as_me: error: slapd requires a backend" >&2;}
3662 { (exit 1); exit 1; }; }
3664 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3665 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3670 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3671 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3672 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3673 { (exit 1); exit 1; }; }
3676 if test $ol_enable_lmpasswd = yes ; then
3677 if test $ol_with_tls = no ; then
3678 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3679 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3680 { (exit 1); exit 1; }; }
3684 if test $ol_enable_spasswd = yes ; then
3685 if test $ol_with_cyrus_sasl = no ; then
3686 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3687 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3688 { (exit 1); exit 1; }; }
3690 ol_with_cyrus_sasl=yes
3693 echo "$as_me:$LINENO: result: done" >&5
3694 echo "${ECHO_T}done" >&6
3738 BUILD_TRANSLUCENT=no
3742 SLAPD_STATIC_OVERLAYS=
3743 SLAPD_DYNAMIC_OVERLAYS=
3745 SLAPD_MODULES_LDFLAGS=
3746 SLAPD_MODULES_CPPFLAGS=
3748 SLAPD_STATIC_BACKENDS=back-ldif
3749 SLAPD_DYNAMIC_BACKENDS=
3775 cat >>confdefs.h <<\_ACEOF
3776 #define HAVE_MKVERSION 1
3784 *-*-aix*) if test -z "$CC" ; then
3785 case "$ol_with_threads" in
3786 auto | yes | posix) ol_aix_threads=yes ;;
3792 if test $ol_aix_threads = yes ; then
3793 if test -z "${CC}" ; then
3794 for ac_prog in cc_r xlc_r cc
3796 # Extract the first word of "$ac_prog", so it can be a program name with args.
3797 set dummy $ac_prog; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_CC+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_CC="$ac_prog"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 if test -n "$CC"; then
3824 echo "$as_me:$LINENO: result: $CC" >&5
3825 echo "${ECHO_T}$CC" >&6
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3831 test -n "$CC" && break
3835 if test "$CC" = cc ; then
3836 if test $ol_with_threads != auto ; then
3837 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3838 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3839 { (exit 1); exit 1; }; }
3841 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3842 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3848 case ${CC} in cc_r | xlc_r)
3849 ol_with_threads=posix
3850 ol_cv_pthread_create=yes
3855 if test -z "${CC}"; then
3856 for ac_prog in cc gcc
3858 # Extract the first word of "$ac_prog", so it can be a program name with args.
3859 set dummy $ac_prog; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_CC+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 if test -n "$CC"; then
3866 ac_cv_prog_CC="$CC" # Let the user override the test.
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_CC="$ac_prog"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 if test -n "$CC"; then
3886 echo "$as_me:$LINENO: result: $CC" >&5
3887 echo "${ECHO_T}$CC" >&6
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3893 test -n "$CC" && break
3895 test -n "$CC" || CC="missing"
3898 if test "${CC}" = "missing" ; then
3899 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3900 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3901 { (exit 1); exit 1; }; }
3905 if test -z "${AR}"; then
3906 for ac_prog in ar gar
3908 # Extract the first word of "$ac_prog", so it can be a program name with args.
3909 set dummy $ac_prog; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_AR+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 if test -n "$AR"; then
3916 ac_cv_prog_AR="$AR" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_AR="$ac_prog"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 if test -n "$AR"; then
3936 echo "$as_me:$LINENO: result: $AR" >&5
3937 echo "${ECHO_T}$AR" >&6
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3943 test -n "$AR" && break
3945 test -n "$AR" || AR="missing"
3948 if test "${AR}" = "missing" ; then
3949 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3950 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3951 { (exit 1); exit 1; }; }
3959 # Check whether --enable-fast-install or --disable-fast-install was given.
3960 if test "${enable_fast_install+set}" = set; then
3961 enableval="$enable_fast_install"
3962 p=${PACKAGE-default}
3964 yes) enable_fast_install=yes ;;
3965 no) enable_fast_install=no ;;
3967 enable_fast_install=no
3968 # Look at the argument we got. We use all the common list separators.
3969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3970 for pkg in $enableval; do
3972 if test "X$pkg" = "X$p"; then
3973 enable_fast_install=yes
3980 enable_fast_install=yes
3983 DEPDIR="${am__leading_dot}deps"
3985 ac_config_commands="$ac_config_commands depfiles"
3988 am_make=${MAKE-make}
3989 cat > confinc << 'END'
3994 # If we don't find an include directive, just comment out the code.
3995 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3996 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4000 # First try GNU make style include.
4001 echo "include confinc" > confmf
4002 # We grep out `Entering directory' and `Leaving directory'
4003 # messages which can occur if `w' ends up in MAKEFLAGS.
4004 # In particular we don't look at `^make:' because GNU make might
4005 # be invoked under some other name (usually "gmake"), in which
4006 # case it prints its new name instead of `make'.
4007 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4012 # Now try BSD make style include.
4013 if test "$am__include" = "#"; then
4014 echo '.include "confinc"' > confmf
4015 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4016 am__include=.include
4023 echo "$as_me:$LINENO: result: $_am_result" >&5
4024 echo "${ECHO_T}$_am_result" >&6
4025 rm -f confinc confmf
4027 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4028 if test "${enable_dependency_tracking+set}" = set; then
4029 enableval="$enable_dependency_tracking"
4032 if test "x$enable_dependency_tracking" != xno; then
4033 am_depcomp="$ac_aux_dir/depcomp"
4038 if test "x$enable_dependency_tracking" != xno; then
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 if test -n "$ac_tool_prefix"; then
4054 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4055 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4056 echo "$as_me:$LINENO: checking for $ac_word" >&5
4057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4058 if test "${ac_cv_prog_CC+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 if test -n "$CC"; then
4062 ac_cv_prog_CC="$CC" # Let the user override the test.
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 if test -n "$CC"; then
4082 echo "$as_me:$LINENO: result: $CC" >&5
4083 echo "${ECHO_T}$CC" >&6
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4090 if test -z "$ac_cv_prog_CC"; then
4092 # Extract the first word of "gcc", so it can be a program name with args.
4093 set dummy gcc; ac_word=$2
4094 echo "$as_me:$LINENO: checking for $ac_word" >&5
4095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 if test -n "$ac_ct_CC"; then
4100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4109 ac_cv_prog_ac_ct_CC="gcc"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4119 if test -n "$ac_ct_CC"; then
4120 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4121 echo "${ECHO_T}$ac_ct_CC" >&6
4123 echo "$as_me:$LINENO: result: no" >&5
4124 echo "${ECHO_T}no" >&6
4132 if test -z "$CC"; then
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}cc; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_prog_CC+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_CC="${ac_tool_prefix}cc"
4152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 if test -n "$CC"; then
4162 echo "$as_me:$LINENO: result: $CC" >&5
4163 echo "${ECHO_T}$CC" >&6
4165 echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4170 if test -z "$ac_cv_prog_CC"; then
4172 # Extract the first word of "cc", so it can be a program name with args.
4173 set dummy cc; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 if test -n "$ac_ct_CC"; then
4180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_CC="cc"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4199 if test -n "$ac_ct_CC"; then
4200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4201 echo "${ECHO_T}$ac_ct_CC" >&6
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4213 if test -z "$CC"; then
4214 # Extract the first word of "cc", so it can be a program name with args.
4215 set dummy cc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4233 ac_prog_rejected=yes
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 if test $ac_prog_rejected = yes; then
4244 # We found a bogon in the path, so make sure we never use it.
4245 set dummy $ac_cv_prog_CC
4247 if test $# != 0; then
4248 # We chose a different compiler from the bogus one.
4249 # However, it has the same basename, so the bogon will be chosen
4250 # first if we set CC to just the basename; use the full file name.
4252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4258 if test -n "$CC"; then
4259 echo "$as_me:$LINENO: result: $CC" >&5
4260 echo "${ECHO_T}$CC" >&6
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4267 if test -z "$CC"; then
4268 if test -n "$ac_tool_prefix"; then
4271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4273 echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4275 if test "${ac_cv_prog_CC+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 if test -n "$CC"; then
4299 echo "$as_me:$LINENO: result: $CC" >&5
4300 echo "${ECHO_T}$CC" >&6
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 test -n "$CC" && break
4309 if test -z "$CC"; then
4313 # Extract the first word of "$ac_prog", so it can be a program name with args.
4314 set dummy $ac_prog; ac_word=$2
4315 echo "$as_me:$LINENO: checking for $ac_word" >&5
4316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 if test -n "$ac_ct_CC"; then
4321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_prog_ac_ct_CC="$ac_prog"
4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4340 if test -n "$ac_ct_CC"; then
4341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4342 echo "${ECHO_T}$ac_ct_CC" >&6
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4348 test -n "$ac_ct_CC" && break
4357 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4358 See \`config.log' for more details." >&5
4359 echo "$as_me: error: no acceptable C compiler found in \$PATH
4360 See \`config.log' for more details." >&2;}
4361 { (exit 1); exit 1; }; }
4363 # Provide some information about the compiler.
4364 echo "$as_me:$LINENO:" \
4365 "checking for C compiler version" >&5
4366 ac_compiler=`set X $ac_compile; echo $2`
4367 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4368 (eval $ac_compiler --version </dev/null >&5) 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }
4372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4373 (eval $ac_compiler -v </dev/null >&5) 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }
4377 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4378 (eval $ac_compiler -V </dev/null >&5) 2>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4398 ac_clean_files_save=$ac_clean_files
4399 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4400 # Try to create an executable without -o first, disregard a.out.
4401 # It will help us diagnose broken compilers, and finding out an intuition
4403 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4404 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4405 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4406 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4407 (eval $ac_link_default) 2>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; then
4411 # Find the output, starting from the most likely. This scheme is
4412 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4415 # Be careful to initialize this variable, since it used to be cached.
4416 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4418 # b.out is created by i960 compilers.
4419 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4421 test -f "$ac_file" || continue
4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4426 # This is the source file.
4429 # We found the default executable, but exeext='' is most
4433 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4434 # FIXME: I believe we export ac_cv_exeext for Libtool,
4435 # but it would be cool to find out if it's true. Does anybody
4436 # maintain Libtool? --akim.
4444 echo "$as_me: failed program was:" >&5
4445 sed 's/^/| /' conftest.$ac_ext >&5
4447 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4448 See \`config.log' for more details." >&5
4449 echo "$as_me: error: C compiler cannot create executables
4450 See \`config.log' for more details." >&2;}
4451 { (exit 77); exit 77; }; }
4454 ac_exeext=$ac_cv_exeext
4455 echo "$as_me:$LINENO: result: $ac_file" >&5
4456 echo "${ECHO_T}$ac_file" >&6
4458 # Check the compiler produces executables we can run. If not, either
4459 # the compiler is broken, or we cross compile.
4460 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4461 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4462 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4463 # If not cross compiling, check that we can run a simple program.
4464 if test "$cross_compiling" != yes; then
4465 if { ac_try='./$ac_file'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; }; then
4473 if test "$cross_compiling" = maybe; then
4476 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4477 If you meant to cross compile, use \`--host'.
4478 See \`config.log' for more details." >&5
4479 echo "$as_me: error: cannot run C compiled programs.
4480 If you meant to cross compile, use \`--host'.
4481 See \`config.log' for more details." >&2;}
4482 { (exit 1); exit 1; }; }
4486 echo "$as_me:$LINENO: result: yes" >&5
4487 echo "${ECHO_T}yes" >&6
4489 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4490 ac_clean_files=$ac_clean_files_save
4491 # Check the compiler produces executables we can run. If not, either
4492 # the compiler is broken, or we cross compile.
4493 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4494 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4495 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4496 echo "${ECHO_T}$cross_compiling" >&6
4498 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4499 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501 (eval $ac_link) 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; then
4505 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4506 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4507 # work properly (i.e., refer to `conftest.exe'), while it won't with
4509 for ac_file in conftest.exe conftest conftest.*; do
4510 test -f "$ac_file" || continue
4512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4513 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4520 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4521 See \`config.log' for more details." >&5
4522 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4523 See \`config.log' for more details." >&2;}
4524 { (exit 1); exit 1; }; }
4527 rm -f conftest$ac_cv_exeext
4528 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4529 echo "${ECHO_T}$ac_cv_exeext" >&6
4531 rm -f conftest.$ac_ext
4532 EXEEXT=$ac_cv_exeext
4534 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4535 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4536 if test "${ac_cv_objext+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 cat >conftest.$ac_ext <<_ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4554 rm -f conftest.o conftest.obj
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; then
4560 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4563 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4571 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4572 See \`config.log' for more details." >&5
4573 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4574 See \`config.log' for more details." >&2;}
4575 { (exit 1); exit 1; }; }
4578 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4580 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4581 echo "${ECHO_T}$ac_cv_objext" >&6
4582 OBJEXT=$ac_cv_objext
4584 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4585 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4586 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 cat >conftest.$ac_ext <<_ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4607 rm -f conftest.$ac_objext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>conftest.er1
4611 grep -v '^ *+' conftest.er1 >conftest.err
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } &&
4616 { ac_try='test -z "$ac_c_werror_flag"
4617 || test ! -s conftest.err'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; } &&
4623 { ac_try='test -s conftest.$ac_objext'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; }; then
4631 echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4637 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4640 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4641 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4642 GCC=`test $ac_compiler_gnu = yes && echo yes`
4643 ac_test_CFLAGS=${CFLAGS+set}
4644 ac_save_CFLAGS=$CFLAGS
4646 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4647 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4648 if test "${ac_cv_prog_cc_g+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>conftest.er1
4670 grep -v '^ *+' conftest.er1 >conftest.err
4672 cat conftest.err >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -z "$ac_c_werror_flag"
4676 || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest.$ac_objext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4698 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4699 if test "$ac_test_CFLAGS" = set; then
4700 CFLAGS=$ac_save_CFLAGS
4701 elif test $ac_cv_prog_cc_g = yes; then
4702 if test "$GCC" = yes; then
4708 if test "$GCC" = yes; then
4714 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4715 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4716 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 ac_cv_prog_cc_stdc=no
4721 cat >conftest.$ac_ext <<_ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4729 #include <sys/types.h>
4730 #include <sys/stat.h>
4731 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4732 struct buf { int x; };
4733 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4734 static char *e (p, i)
4740 static char *f (char * (*g) (char **, int), char **p, ...)
4745 s = g (p, va_arg (v,int));
4750 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4751 function prototypes and stuff, but not '\xHH' hex character constants.
4752 These don't provoke an error unfortunately, instead are silently treated
4753 as 'x'. The following induces an error, until -std1 is added to get
4754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4755 array size at least. It's necessary to write '\x00'==0 to get something
4756 that's true only with -std1. */
4757 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4759 int test (int i, double x);
4760 struct s1 {int (*f) (int a);};
4761 struct s2 {int (*f) (double a);};
4762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4768 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4773 # Don't try gcc -ansi; that turns off useful extensions and
4774 # breaks some systems' header files.
4775 # AIX -qlanglvl=ansi
4776 # Ultrix and OSF/1 -std1
4777 # HP-UX 10.20 and later -Ae
4778 # HP-UX older versions -Aa -D_HPUX_SOURCE
4779 # SVR4 -Xc -D__EXTENSIONS__
4780 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4782 CC="$ac_save_CC $ac_arg"
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>conftest.er1
4787 grep -v '^ *+' conftest.er1 >conftest.err
4789 cat conftest.err >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -z "$ac_c_werror_flag"
4793 || test ! -s conftest.err'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_cv_prog_cc_stdc=$ac_arg
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4812 rm -f conftest.err conftest.$ac_objext
4814 rm -f conftest.$ac_ext conftest.$ac_objext
4819 case "x$ac_cv_prog_cc_stdc" in
4821 echo "$as_me:$LINENO: result: none needed" >&5
4822 echo "${ECHO_T}none needed" >&6 ;;
4824 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4825 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4826 CC="$CC $ac_cv_prog_cc_stdc" ;;
4829 # Some people use a C++ compiler to compile C. Since we use `exit',
4830 # in C++ we need to declare it. In case someone uses the same compiler
4831 # for both compiling C and C++ we need to have the C++ compiler decide
4832 # the declaration of exit, since it's the most demanding environment.
4833 cat >conftest.$ac_ext <<_ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840 (eval $ac_compile) 2>conftest.er1
4842 grep -v '^ *+' conftest.er1 >conftest.err
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -z "$ac_c_werror_flag"
4848 || test ! -s conftest.err'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 for ac_declaration in \
4862 'extern "C" void std::exit (int) throw (); using std::exit;' \
4863 'extern "C" void std::exit (int); using std::exit;' \
4864 'extern "C" void exit (int) throw ();' \
4865 'extern "C" void exit (int);' \
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4884 rm -f conftest.$ac_objext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest.$ac_objext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4914 cat >conftest.$ac_ext <<_ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4931 (eval $ac_compile) 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -z "$ac_c_werror_flag"
4939 || test ! -s conftest.err'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; } &&
4945 { ac_try='test -s conftest.$ac_objext'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }; then
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4960 if test -n "$ac_declaration"; then
4961 echo '#ifdef __cplusplus' >>confdefs.h
4962 echo $ac_declaration >>confdefs.h
4963 echo '#endif' >>confdefs.h
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 depcc="$CC" am_compiler_list=
4980 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4981 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4982 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4986 # We make a subdir and do the tests there. Otherwise we can end up
4987 # making bogus files that we don't know about and never remove. For
4988 # instance it was reported that on HP-UX the gcc test will end up
4989 # making a dummy file named `D' -- because `-MD' means `put the output
4992 # Copy depcomp to subdir because otherwise we won't find it if we're
4993 # using a relative directory.
4994 cp "$am_depcomp" conftest.dir
4996 # We will build objects and dependencies in a subdirectory because
4997 # it helps to detect inapplicable dependency modes. For instance
4998 # both Tru64's cc and ICC support -MD to output dependencies as a
4999 # side effect of compilation, but ICC will put the dependencies in
5000 # the current directory while Tru64 will put them in the object
5004 am_cv_CC_dependencies_compiler_type=none
5005 if test "$am_compiler_list" = ""; then
5006 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5008 for depmode in $am_compiler_list; do
5009 # Setup a source with many dependencies, because some compilers
5010 # like to wrap large dependency lists on column 80 (with \), and
5011 # we should not choose a depcomp mode which is confused by this.
5013 # We need to recreate these files for each test, as the compiler may
5014 # overwrite some of them when testing with obscure command lines.
5015 # This happens at least with the AIX C compiler.
5017 for i in 1 2 3 4 5 6; do
5018 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5019 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5020 # Solaris 8's {/usr,}/bin/sh.
5021 touch sub/conftst$i.h
5023 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5027 # after this tag, mechanisms are not by side-effect, so they'll
5028 # only be used when explicitly requested
5029 if test "x$enable_dependency_tracking" = xyes; then
5037 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle `-M -o', and we need to detect this.
5040 if depmode=$depmode \
5041 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5043 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5044 >/dev/null 2>conftest.err &&
5045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5057 am_cv_CC_dependencies_compiler_type=$depmode
5066 am_cv_CC_dependencies_compiler_type=none
5070 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5071 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5072 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5077 test "x$enable_dependency_tracking" != xno \
5078 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5080 am__fastdepCC_FALSE='#'
5082 am__fastdepCC_TRUE='#'
5083 am__fastdepCC_FALSE=
5087 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5088 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5089 if test "${lt_cv_path_SED+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 # Loop through the user's path and test for sed and gsed.
5093 # Then use that list of sed's as ones to test for truncation.
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir=.
5099 for lt_ac_prog in sed gsed; do
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5102 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5109 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5110 # along with /bin/sed that truncates output.
5111 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5112 test ! -f $lt_ac_sed && continue
5113 cat /dev/null > conftest.in
5115 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5116 # Check for GNU sed and select it if it is found.
5117 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5118 lt_cv_path_SED=$lt_ac_sed
5122 cat conftest.in conftest.in >conftest.tmp
5123 mv conftest.tmp conftest.in
5124 cp conftest.in conftest.nl
5126 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5127 cmp -s conftest.out conftest.nl || break
5128 # 10000 chars as input seems more than enough
5129 test $lt_ac_count -gt 10 && break
5130 lt_ac_count=`expr $lt_ac_count + 1`
5131 if test $lt_ac_count -gt $lt_ac_max; then
5132 lt_ac_max=$lt_ac_count
5133 lt_cv_path_SED=$lt_ac_sed
5141 echo "$as_me:$LINENO: result: $SED" >&5
5142 echo "${ECHO_T}$SED" >&6
5144 echo "$as_me:$LINENO: checking for egrep" >&5
5145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5146 if test "${ac_cv_prog_egrep+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5150 then ac_cv_prog_egrep='grep -E'
5151 else ac_cv_prog_egrep='egrep'
5154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5156 EGREP=$ac_cv_prog_egrep
5160 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5161 if test "${with_gnu_ld+set}" = set; then
5162 withval="$with_gnu_ld"
5163 test "$withval" = no || with_gnu_ld=yes
5168 if test "$GCC" = yes; then
5169 # Check if gcc -print-prog-name=ld gives a path.
5170 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5171 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5174 # gcc leaves a trailing carriage return which upsets mingw
5175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5180 # Accept absolute paths.
5182 re_direlt='/[^/][^/]*/\.\./'
5183 # Canonicalize the pathname of ld
5184 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5185 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5186 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5188 test -z "$LD" && LD="$ac_prog"
5191 # If it fails, then pretend we aren't using GCC.
5195 # If it is relative, then search for the first ld in PATH.
5199 elif test "$with_gnu_ld" = yes; then
5200 echo "$as_me:$LINENO: checking for GNU ld" >&5
5201 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5203 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5204 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5206 if test "${lt_cv_path_LD+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 if test -z "$LD"; then
5210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5211 for ac_dir in $PATH; do
5213 test -z "$ac_dir" && ac_dir=.
5214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5215 lt_cv_path_LD="$ac_dir/$ac_prog"
5216 # Check to see if the program is GNU ld. I'd rather use --version,
5217 # but apparently some variants of GNU ld only accept -v.
5218 # Break only if it was the GNU/non-GNU ld that we prefer.
5219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5220 *GNU* | *'with BFD'*)
5221 test "$with_gnu_ld" != no && break
5224 test "$with_gnu_ld" != yes && break
5231 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5236 if test -n "$LD"; then
5237 echo "$as_me:$LINENO: result: $LD" >&5
5238 echo "${ECHO_T}$LD" >&6
5240 echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6
5243 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5244 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5245 { (exit 1); exit 1; }; }
5246 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5247 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5248 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5252 case `$LD -v 2>&1 </dev/null` in
5253 *GNU* | *'with BFD'*)
5254 lt_cv_prog_gnu_ld=yes
5257 lt_cv_prog_gnu_ld=no
5261 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5262 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5263 with_gnu_ld=$lt_cv_prog_gnu_ld
5266 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5267 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5268 if test "${lt_cv_ld_reload_flag+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 lt_cv_ld_reload_flag='-r'
5273 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5274 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5275 reload_flag=$lt_cv_ld_reload_flag
5276 case $reload_flag in
5278 *) reload_flag=" $reload_flag" ;;
5280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5283 if test "$GCC" = yes; then
5284 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5291 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5292 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5293 if test "${lt_cv_path_NM+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 if test -n "$NM"; then
5297 # Let the user override the test.
5300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5301 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5303 test -z "$ac_dir" && ac_dir=.
5304 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5305 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5306 # Check to see if the nm accepts a BSD-compat flag.
5307 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5308 # nm: unknown option "B" ignored
5309 # Tru64's nm complains that /dev/null is an invalid object file
5310 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5311 */dev/null* | *'Invalid file or object type'*)
5312 lt_cv_path_NM="$tmp_nm -B"
5316 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5318 lt_cv_path_NM="$tmp_nm -p"
5322 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5323 continue # so that we can try to find one that supports BSD flags
5330 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5333 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5334 echo "${ECHO_T}$lt_cv_path_NM" >&6
5337 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5338 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5340 if test "$LN_S" = "ln -s"; then
5341 echo "$as_me:$LINENO: result: yes" >&5
5342 echo "${ECHO_T}yes" >&6
5344 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5345 echo "${ECHO_T}no, using $LN_S" >&6
5348 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5349 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5350 if test "${lt_cv_deplibs_check_method+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 lt_cv_file_magic_cmd='$MAGIC_CMD'
5354 lt_cv_file_magic_test_file=
5355 lt_cv_deplibs_check_method='unknown'
5356 # Need to set the preceding variable on all platforms that support
5357 # interlibrary dependencies.
5358 # 'none' -- dependencies not supported.
5359 # `unknown' -- same as none, but documents that we really don't know.
5360 # 'pass_all' -- all dependencies passed with no checks.
5361 # 'test_compile' -- check by making test program.
5362 # 'file_magic [[regex]]' -- check by looking for files in library path
5363 # which responds to the $file_magic_cmd with a given extended regex.
5364 # If you have `file' or equivalent on your system and you're not sure
5365 # whether `pass_all' will *always* work, you probably want this one.
5369 lt_cv_deplibs_check_method=pass_all
5373 lt_cv_deplibs_check_method=pass_all
5377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5378 lt_cv_file_magic_cmd='/usr/bin/file -L'
5379 lt_cv_file_magic_test_file=/shlib/libc.so
5383 # func_win32_libid is a shell function defined in ltmain.sh
5384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5385 lt_cv_file_magic_cmd='func_win32_libid'
5389 # Base MSYS/MinGW do not provide the 'file' command needed by
5390 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5391 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5392 lt_cv_file_magic_cmd='$OBJDUMP -f'
5395 darwin* | rhapsody*)
5396 lt_cv_deplibs_check_method=pass_all
5399 freebsd* | kfreebsd*-gnu | dragonfly*)
5400 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5403 # Not sure whether the presence of OpenBSD here was a mistake.
5404 # Let's accept both of them until this is cleared up.
5405 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5406 lt_cv_file_magic_cmd=/usr/bin/file
5407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5411 lt_cv_deplibs_check_method=pass_all
5416 lt_cv_deplibs_check_method=pass_all
5419 hpux10.20* | hpux11*)
5420 lt_cv_file_magic_cmd=/usr/bin/file
5423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5424 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5427 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]'
5428 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5432 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5437 irix5* | irix6* | nonstopux*)
5439 *-32|*"-32 ") libmagic=32-bit;;
5440 *-n32|*"-n32 ") libmagic=N32;;
5441 *-64|*"-64 ") libmagic=64-bit;;
5442 *) libmagic=never-match;;
5444 lt_cv_deplibs_check_method=pass_all
5447 # This must be Linux ELF.
5449 lt_cv_deplibs_check_method=pass_all
5453 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5462 lt_cv_file_magic_cmd=/usr/bin/file
5463 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5467 lt_cv_deplibs_check_method=unknown
5471 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5478 osf3* | osf4* | osf5*)
5479 lt_cv_deplibs_check_method=pass_all
5483 lt_cv_deplibs_check_method=pass_all
5487 lt_cv_deplibs_check_method=pass_all
5490 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5491 case $host_vendor in
5493 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]'
5494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5497 lt_cv_deplibs_check_method=pass_all
5500 lt_cv_file_magic_cmd='/bin/file'
5501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5504 lt_cv_file_magic_cmd='/bin/file'
5505 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5506 lt_cv_file_magic_test_file=/lib/libc.so
5509 lt_cv_deplibs_check_method=pass_all
5514 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5515 lt_cv_deplibs_check_method=pass_all
5520 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5521 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5522 file_magic_cmd=$lt_cv_file_magic_cmd
5523 deplibs_check_method=$lt_cv_deplibs_check_method
5524 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5529 # If no C compiler was specified, use CC.
5532 # Allow CC to be a program name with arguments.
5536 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5537 if test "${enable_libtool_lock+set}" = set; then
5538 enableval="$enable_libtool_lock"
5541 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5543 # Some flags need to be propagated to the compiler or linker for good
5547 # Find out which ABI we are using.
5548 echo 'int i;' > conftest.$ac_ext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550 (eval $ac_compile) 2>&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; then
5554 case `/usr/bin/file conftest.$ac_objext` in
5566 # Find out which ABI we are using.
5567 echo '#line 5567 "configure"' > conftest.$ac_ext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; then
5573 if test "$lt_cv_prog_gnu_ld" = yes; then
5574 case `/usr/bin/file conftest.$ac_objext` in
5576 LD="${LD-ld} -melf32bsmip"
5579 LD="${LD-ld} -melf32bmipn32"
5582 LD="${LD-ld} -melf64bmip"
5586 case `/usr/bin/file conftest.$ac_objext` in
5602 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5603 # Find out which ABI we are using.
5604 echo 'int i;' > conftest.$ac_ext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; then
5610 case `/usr/bin/file conftest.o` in
5614 LD="${LD-ld} -m elf_i386"
5616 ppc64-*linux*|powerpc64-*linux*)
5617 LD="${LD-ld} -m elf32ppclinux"
5620 LD="${LD-ld} -m elf_s390"
5623 LD="${LD-ld} -m elf32_sparc"
5630 LD="${LD-ld} -m elf_x86_64"
5632 ppc*-*linux*|powerpc*-*linux*)
5633 LD="${LD-ld} -m elf64ppc"
5636 LD="${LD-ld} -m elf64_s390"
5639 LD="${LD-ld} -m elf64_sparc"
5649 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5650 SAVE_CFLAGS="$CFLAGS"
5651 CFLAGS="$CFLAGS -belf"
5652 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5653 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5654 if test "${lt_cv_cc_needs_belf+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5678 rm -f conftest.$ac_objext conftest$ac_exeext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5680 (eval $ac_link) 2>conftest.er1
5682 grep -v '^ *+' conftest.er1 >conftest.err
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -z "$ac_c_werror_flag"
5688 || test ! -s conftest.err'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; } &&
5694 { ac_try='test -s conftest$ac_exeext'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5700 lt_cv_cc_needs_belf=yes
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 lt_cv_cc_needs_belf=no
5707 rm -f conftest.err conftest.$ac_objext \
5708 conftest$ac_exeext conftest.$ac_ext
5710 ac_cpp='$CPP $CPPFLAGS'
5711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5716 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5717 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5718 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5719 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5720 CFLAGS="$SAVE_CFLAGS"
5723 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5724 if test -n "$ac_tool_prefix"; then
5725 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5727 echo "$as_me:$LINENO: checking for $ac_word" >&5
5728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5729 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 if test -n "$DLLTOOL"; then
5733 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 DLLTOOL=$ac_cv_prog_DLLTOOL
5752 if test -n "$DLLTOOL"; then
5753 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5754 echo "${ECHO_T}$DLLTOOL" >&6
5756 echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5761 if test -z "$ac_cv_prog_DLLTOOL"; then
5762 ac_ct_DLLTOOL=$DLLTOOL
5763 # Extract the first word of "dlltool", so it can be a program name with args.
5764 set dummy dlltool; ac_word=$2
5765 echo "$as_me:$LINENO: checking for $ac_word" >&5
5766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 if test -n "$ac_ct_DLLTOOL"; then
5771 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5790 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5791 if test -n "$ac_ct_DLLTOOL"; then
5792 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5793 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5795 echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5799 DLLTOOL=$ac_ct_DLLTOOL
5801 DLLTOOL="$ac_cv_prog_DLLTOOL"
5804 if test -n "$ac_tool_prefix"; then
5805 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5806 set dummy ${ac_tool_prefix}as; ac_word=$2
5807 echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5809 if test "${ac_cv_prog_AS+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 if test -n "$AS"; then
5813 ac_cv_prog_AS="$AS" # Let the user override the test.
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_AS="${ac_tool_prefix}as"
5823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 if test -n "$AS"; then
5833 echo "$as_me:$LINENO: result: $AS" >&5
5834 echo "${ECHO_T}$AS" >&6
5836 echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5841 if test -z "$ac_cv_prog_AS"; then
5843 # Extract the first word of "as", so it can be a program name with args.
5844 set dummy as; ac_word=$2
5845 echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5847 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 if test -n "$ac_ct_AS"; then
5851 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860 ac_cv_prog_ac_ct_AS="as"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5870 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5871 if test -n "$ac_ct_AS"; then
5872 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5873 echo "${ECHO_T}$ac_ct_AS" >&6
5875 echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 if test -n "$OBJDUMP"; then
5893 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 OBJDUMP=$ac_cv_prog_OBJDUMP
5912 if test -n "$OBJDUMP"; then
5913 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5914 echo "${ECHO_T}$OBJDUMP" >&6
5916 echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5921 if test -z "$ac_cv_prog_OBJDUMP"; then
5922 ac_ct_OBJDUMP=$OBJDUMP
5923 # Extract the first word of "objdump", so it can be a program name with args.
5924 set dummy objdump; ac_word=$2
5925 echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 if test -n "$ac_ct_OBJDUMP"; then
5931 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5950 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5951 if test -n "$ac_ct_OBJDUMP"; then
5952 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5953 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5955 echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5959 OBJDUMP=$ac_ct_OBJDUMP
5961 OBJDUMP="$ac_cv_prog_OBJDUMP"
5968 need_locks="$enable_libtool_lock"
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5977 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5978 # On Suns, sometimes $CPP names a directory.
5979 if test -n "$CPP" && test -d "$CPP"; then
5982 if test -z "$CPP"; then
5983 if test "${ac_cv_prog_CPP+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 # Double quotes because CPP needs to be expanded
5987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5990 for ac_c_preproc_warn_flag in '' yes
5992 # Use a header file that comes with gcc, so configuring glibc
5993 # with a fresh cross-compiler works.
5994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995 # <limits.h> exists even on freestanding compilers.
5996 # On the NeXT, cc -E runs the code through the compiler's parser,
5997 # not just through cpp. "Syntax error" is here to catch this case.
5998 cat >conftest.$ac_ext <<_ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6005 # include <limits.h>
6007 # include <assert.h>
6011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev/null; then
6019 if test -s conftest.err; then
6020 ac_cpp_err=$ac_c_preproc_warn_flag
6021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6028 if test -z "$ac_cpp_err"; then
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 # Broken: fails on valid input.
6037 rm -f conftest.err conftest.$ac_ext
6039 # OK, works on sane cases. Now check whether non-existent headers
6040 # can be detected and how.
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <ac_nonexistent.h>
6049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } >/dev/null; then
6057 if test -s conftest.err; then
6058 ac_cpp_err=$ac_c_preproc_warn_flag
6059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6066 if test -z "$ac_cpp_err"; then
6067 # Broken: success on invalid input.
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 # Passes both tests.
6077 rm -f conftest.err conftest.$ac_ext
6080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6081 rm -f conftest.err conftest.$ac_ext
6082 if $ac_preproc_ok; then
6094 echo "$as_me:$LINENO: result: $CPP" >&5
6095 echo "${ECHO_T}$CPP" >&6
6097 for ac_c_preproc_warn_flag in '' yes
6099 # Use a header file that comes with gcc, so configuring glibc
6100 # with a fresh cross-compiler works.
6101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102 # <limits.h> exists even on freestanding compilers.
6103 # On the NeXT, cc -E runs the code through the compiler's parser,
6104 # not just through cpp. "Syntax error" is here to catch this case.
6105 cat >conftest.$ac_ext <<_ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6112 # include <limits.h>
6114 # include <assert.h>
6118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null; then
6126 if test -s conftest.err; then
6127 ac_cpp_err=$ac_c_preproc_warn_flag
6128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6135 if test -z "$ac_cpp_err"; then
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 # Broken: fails on valid input.
6144 rm -f conftest.err conftest.$ac_ext
6146 # OK, works on sane cases. Now check whether non-existent headers
6147 # can be detected and how.
6148 cat >conftest.$ac_ext <<_ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6154 #include <ac_nonexistent.h>
6156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6159 grep -v '^ *+' conftest.er1 >conftest.err
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null; then
6164 if test -s conftest.err; then
6165 ac_cpp_err=$ac_c_preproc_warn_flag
6166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6173 if test -z "$ac_cpp_err"; then
6174 # Broken: success on invalid input.
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6180 # Passes both tests.
6184 rm -f conftest.err conftest.$ac_ext
6187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6188 rm -f conftest.err conftest.$ac_ext
6189 if $ac_preproc_ok; then
6192 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6193 See \`config.log' for more details." >&5
6194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6195 See \`config.log' for more details." >&2;}
6196 { (exit 1); exit 1; }; }
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6208 if test "${ac_cv_header_stdc+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 cat >conftest.$ac_ext <<_ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_header_stdc=yes
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 ac_cv_header_stdc=no
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261 if test $ac_cv_header_stdc = yes; then
6262 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6263 cat >conftest.$ac_ext <<_ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273 $EGREP "memchr" >/dev/null 2>&1; then
6276 ac_cv_header_stdc=no
6282 if test $ac_cv_header_stdc = yes; then
6283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6294 $EGREP "free" >/dev/null 2>&1; then
6297 ac_cv_header_stdc=no
6303 if test $ac_cv_header_stdc = yes; then
6304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6305 if test "$cross_compiling" = yes; then
6308 cat >conftest.$ac_ext <<_ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6315 #if ((' ' & 0x0FF) == 0x020)
6316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6319 # define ISLOWER(c) \
6320 (('a' <= (c) && (c) <= 'i') \
6321 || ('j' <= (c) && (c) <= 'r') \
6322 || ('s' <= (c) && (c) <= 'z'))
6323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6331 for (i = 0; i < 256; i++)
6332 if (XOR (islower (i), ISLOWER (i))
6333 || toupper (i) != TOUPPER (i))
6338 rm -f conftest$ac_exeext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340 (eval $ac_link) 2>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; }; then
6351 echo "$as_me: program exited with status $ac_status" >&5
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6356 ac_cv_header_stdc=no
6358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6363 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6364 if test $ac_cv_header_stdc = yes; then
6366 cat >>confdefs.h <<\_ACEOF
6367 #define STDC_HEADERS 1
6372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6383 inttypes.h stdint.h unistd.h
6385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6386 echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6399 #include <$ac_header>
6401 rm -f conftest.$ac_objext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6405 grep -v '^ *+' conftest.er1 >conftest.err
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 eval "$as_ac_Header=yes"
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 eval "$as_ac_Header=no"
6430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435 cat >>confdefs.h <<_ACEOF
6436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 for ac_header in dlfcn.h
6447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6449 echo "$as_me:$LINENO: checking for $ac_header" >&5
6450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6457 # Is the header compilable?
6458 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6467 #include <$ac_header>
6469 rm -f conftest.$ac_objext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -z "$ac_c_werror_flag"
6479 || test ! -s conftest.err'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; } &&
6485 { ac_try='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_header_compiler=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6496 ac_header_compiler=no
6498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6500 echo "${ECHO_T}$ac_header_compiler" >&6
6502 # Is the header present?
6503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6505 cat >conftest.$ac_ext <<_ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6511 #include <$ac_header>
6513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6516 grep -v '^ *+' conftest.er1 >conftest.err
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } >/dev/null; then
6521 if test -s conftest.err; then
6522 ac_cpp_err=$ac_c_preproc_warn_flag
6523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6530 if test -z "$ac_cpp_err"; then
6531 ac_header_preproc=yes
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_header_preproc=no
6538 rm -f conftest.err conftest.$ac_ext
6539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6540 echo "${ECHO_T}$ac_header_preproc" >&6
6542 # So? What about this header?
6543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6549 ac_header_preproc=yes
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6566 ## --------------------------------------------- ##
6567 ## Report this to <http://www.openldap.org/its/> ##
6568 ## --------------------------------------------- ##
6571 sed "s/^/$as_me: WARNING: /" >&2
6574 echo "$as_me:$LINENO: checking for $ac_header" >&5
6575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 eval "$as_ac_Header=\$ac_header_preproc"
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6586 cat >>confdefs.h <<_ACEOF
6587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6595 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6597 # find the maximum length of command line arguments
6598 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6599 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6600 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 # On DJGPP, this test can blow up pretty badly due to problems in libc
6609 # (any single argument exceeding 2000 bytes causes a buffer overrun
6610 # during glob expansion). Even if it were fixed, the result of this
6611 # check would be larger than it should be.
6612 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6616 # Under GNU Hurd, this test is not required because there is
6617 # no limit to the length of command line arguments.
6618 # Libtool will interpret -1 as no limit whatsoever
6619 lt_cv_sys_max_cmd_len=-1;
6623 # On Win9x/ME, this test blows up -- it succeeds, but takes
6624 # about 5 minutes as the teststring grows exponentially.
6625 # Worse, since 9x/ME are not pre-emptively multitasking,
6626 # you end up with a "frozen" computer, even though with patience
6627 # the test eventually succeeds (with a max line length of 256k).
6628 # Instead, let's just punt: use the minimum linelength reported by
6629 # all of the supported platforms: 8192 (on NT/2K/XP).
6630 lt_cv_sys_max_cmd_len=8192;
6634 # On AmigaOS with pdksh, this test takes hours, literally.
6635 # So we just punt and use a minimum line length of 8192.
6636 lt_cv_sys_max_cmd_len=8192;
6639 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6640 # This has been around since 386BSD, at least. Likely further.
6641 if test -x /sbin/sysctl; then
6642 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6643 elif test -x /usr/sbin/sysctl; then
6644 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6646 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6648 # And add a safety zone
6649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6653 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6654 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6655 # nice to cause kernel panics so lets avoid the loop below.
6656 # First set a reasonable default.
6657 lt_cv_sys_max_cmd_len=16384
6659 if test -x /sbin/sysconfig; then
6660 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6661 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6666 # If test is not a shell built-in, we'll probably end up computing a
6667 # maximum length that is only half of the actual maximum length, but
6669 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6670 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6671 = "XX$teststring") >/dev/null 2>&1 &&
6672 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6673 lt_cv_sys_max_cmd_len=$new_result &&
6674 test $i != 17 # 1/2 MB should be enough
6677 teststring=$teststring$teststring
6680 # Add a significant safety factor because C++ compilers can tack on massive
6681 # amounts of additional arguments before passing them to the linker.
6682 # It appears as though 1/2 is a usable value.
6683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6689 if test -n $lt_cv_sys_max_cmd_len ; then
6690 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6691 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6693 echo "$as_me:$LINENO: result: none" >&5
6694 echo "${ECHO_T}none" >&6
6700 # Check for command to grab the raw symbol name followed by C symbol from nm.
6701 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6702 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6703 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 # These are sane defaults that work on at least a few old systems.
6708 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6710 # Character class describing NM global symbol codes.
6711 symcode='[BCDEGRST]'
6713 # Regexp to match symbols that can be accessed directly from C.
6714 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6716 # Transform an extracted symbol line into a proper C declaration
6717 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6719 # Transform an extracted symbol line into symbol name and symbol address
6720 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'"
6722 # Define system-specific variables.
6727 cygwin* | mingw* | pw32*)
6728 symcode='[ABCDGISTW]'
6730 hpux*) # Its linker distinguishes data from code symbols
6731 if test "$host_cpu" = ia64; then
6732 symcode='[ABCDEGRST]'
6734 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6735 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'"
6738 if test "$host_cpu" = ia64; then
6739 symcode='[ABCDGIRSTW]'
6740 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6741 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'"
6745 symcode='[BCDEGRST]'
6748 symcode='[BCDEGQRST]'
6758 # Handle CRLF in mingw tool chain
6762 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6766 # If we're using GNU nm, then use its standard symbol codes.
6767 case `$NM -V 2>&1` in
6768 *GNU* | *'with BFD'*)
6769 symcode='[ABCDGIRSTW]' ;;
6772 # Try without a prefix undercore, then with it.
6773 for ac_symprfx in "" "_"; do
6775 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6776 symxfrm="\\1 $ac_symprfx\\2 \\2"
6778 # Write the raw and C identifiers.
6779 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6781 # Check to see that the pipe works correctly.
6785 cat > conftest.$ac_ext <<EOF
6790 void nm_test_func(){}
6794 int main(){nm_test_var='a';nm_test_func();return(0);}
6797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798 (eval $ac_compile) 2>&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; then
6802 # Now try to grab the symbols.
6804 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6805 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && test -s "$nlist"; then
6809 # Try sorting and uniquifying the output.
6810 if sort "$nlist" | uniq > "$nlist"T; then
6811 mv -f "$nlist"T "$nlist"
6816 # Make sure that we snagged all the symbols we need.
6817 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6818 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6819 cat <<EOF > conftest.$ac_ext
6825 # Now generate the symbol file.
6826 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6828 cat <<EOF >> conftest.$ac_ext
6829 #if defined (__STDC__) && __STDC__
6830 # define lt_ptr_t void *
6832 # define lt_ptr_t char *
6836 /* The mapping between symbol names and symbols. */
6841 lt_preloaded_symbols[] =
6844 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6845 cat <<\EOF >> conftest.$ac_ext
6853 # Now try linking the two files.
6854 mv conftest.$ac_objext conftstm.$ac_objext
6855 lt_save_LIBS="$LIBS"
6856 lt_save_CFLAGS="$CFLAGS"
6857 LIBS="conftstm.$ac_objext"
6858 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860 (eval $ac_link) 2>&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6866 LIBS="$lt_save_LIBS"
6867 CFLAGS="$lt_save_CFLAGS"
6869 echo "cannot find nm_test_func in $nlist" >&5
6872 echo "cannot find nm_test_var in $nlist" >&5
6875 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6878 echo "$progname: failed program was:" >&5
6879 cat conftest.$ac_ext >&5
6881 rm -f conftest* conftst*
6883 # Do not use the global_symbol_pipe unless it works.
6884 if test "$pipe_works" = yes; then
6887 lt_cv_sys_global_symbol_pipe=
6893 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6894 lt_cv_sys_global_symbol_to_cdecl=
6896 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6897 echo "$as_me:$LINENO: result: failed" >&5
6898 echo "${ECHO_T}failed" >&6
6900 echo "$as_me:$LINENO: result: ok" >&5
6901 echo "${ECHO_T}ok" >&6
6904 echo "$as_me:$LINENO: checking for objdir" >&5
6905 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6906 if test "${lt_cv_objdir+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 rm -f .libs 2>/dev/null
6910 mkdir .libs 2>/dev/null
6911 if test -d .libs; then
6914 # MS-DOS does not allow filenames that begin with a dot.
6917 rmdir .libs 2>/dev/null
6919 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6920 echo "${ECHO_T}$lt_cv_objdir" >&6
6921 objdir=$lt_cv_objdir
6929 # AIX sometimes has problems with the GCC collect2 program. For some
6930 # reason, if we set the COLLECT_NAMES environment variable, the problems
6931 # vanish in a puff of smoke.
6932 if test "X${COLLECT_NAMES+set}" != Xset; then
6934 export COLLECT_NAMES
6939 # Sed substitution that helps us do robust quoting. It backslashifies
6940 # metacharacters that are still active within double-quoted strings.
6941 Xsed='sed -e 1s/^X//'
6942 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6944 # Same as above, but do not quote variable references.
6945 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6947 # Sed substitution to delay expansion of an escaped shell variable in a
6948 # double_quote_subst'ed string.
6949 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6951 # Sed substitution to avoid accidental globbing in evaled expressions
6952 no_glob_subst='s/\*/\\\*/g'
6958 default_ofile=libtool
6959 can_build_shared=yes
6961 # All known linkers require a `.a' archive for static linking (except MSVC,
6962 # which needs '.lib').
6964 ltmain="$ac_aux_dir/ltmain.sh"
6965 ofile="$default_ofile"
6966 with_gnu_ld="$lt_cv_prog_gnu_ld"
6968 if test -n "$ac_tool_prefix"; then
6969 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6970 set dummy ${ac_tool_prefix}ar; ac_word=$2
6971 echo "$as_me:$LINENO: checking for $ac_word" >&5
6972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6973 if test "${ac_cv_prog_AR+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 if test -n "$AR"; then
6977 ac_cv_prog_AR="$AR" # Let the user override the test.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_AR="${ac_tool_prefix}ar"
6987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 if test -n "$AR"; then
6997 echo "$as_me:$LINENO: result: $AR" >&5
6998 echo "${ECHO_T}$AR" >&6
7000 echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7005 if test -z "$ac_cv_prog_AR"; then
7007 # Extract the first word of "ar", so it can be a program name with args.
7008 set dummy ar; ac_word=$2
7009 echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7011 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 if test -n "$ac_ct_AR"; then
7015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7024 ac_cv_prog_ac_ct_AR="ar"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7034 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7035 if test -n "$ac_ct_AR"; then
7036 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7037 echo "${ECHO_T}$ac_ct_AR" >&6
7039 echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6
7048 if test -n "$ac_tool_prefix"; then
7049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7051 echo "$as_me:$LINENO: checking for $ac_word" >&5
7052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7053 if test "${ac_cv_prog_RANLIB+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 if test -n "$RANLIB"; then
7057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 RANLIB=$ac_cv_prog_RANLIB
7076 if test -n "$RANLIB"; then
7077 echo "$as_me:$LINENO: result: $RANLIB" >&5
7078 echo "${ECHO_T}$RANLIB" >&6
7080 echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6
7085 if test -z "$ac_cv_prog_RANLIB"; then
7086 ac_ct_RANLIB=$RANLIB
7087 # Extract the first word of "ranlib", so it can be a program name with args.
7088 set dummy ranlib; ac_word=$2
7089 echo "$as_me:$LINENO: checking for $ac_word" >&5
7090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 if test -n "$ac_ct_RANLIB"; then
7095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_ac_ct_RANLIB="ranlib"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7115 if test -n "$ac_ct_RANLIB"; then
7116 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7117 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7119 echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6
7123 RANLIB=$ac_ct_RANLIB
7125 RANLIB="$ac_cv_prog_RANLIB"
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}strip; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_STRIP+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 if test -n "$STRIP"; then
7137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 STRIP=$ac_cv_prog_STRIP
7156 if test -n "$STRIP"; then
7157 echo "$as_me:$LINENO: result: $STRIP" >&5
7158 echo "${ECHO_T}$STRIP" >&6
7160 echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7165 if test -z "$ac_cv_prog_STRIP"; then
7167 # Extract the first word of "strip", so it can be a program name with args.
7168 set dummy strip; ac_word=$2
7169 echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7171 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 if test -n "$ac_ct_STRIP"; then
7175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_ac_ct_STRIP="strip"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7195 if test -n "$ac_ct_STRIP"; then
7196 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7197 echo "${ECHO_T}$ac_ct_STRIP" >&6
7199 echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6
7205 STRIP="$ac_cv_prog_STRIP"
7210 old_CFLAGS="$CFLAGS"
7212 # Set sane defaults for various variables
7213 test -z "$AR" && AR=ar
7214 test -z "$AR_FLAGS" && AR_FLAGS=cru
7215 test -z "$AS" && AS=as
7216 test -z "$CC" && CC=cc
7217 test -z "$LTCC" && LTCC=$CC
7218 test -z "$DLLTOOL" && DLLTOOL=dlltool
7219 test -z "$LD" && LD=ld
7220 test -z "$LN_S" && LN_S="ln -s"
7221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7222 test -z "$NM" && NM=nm
7223 test -z "$SED" && SED=sed
7224 test -z "$OBJDUMP" && OBJDUMP=objdump
7225 test -z "$RANLIB" && RANLIB=:
7226 test -z "$STRIP" && STRIP=:
7227 test -z "$ac_objext" && ac_objext=o
7229 # Determine commands to create old-style static archives.
7230 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7231 old_postinstall_cmds='chmod 644 $oldlib'
7232 old_postuninstall_cmds=
7234 if test -n "$RANLIB"; then
7237 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7240 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7243 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7246 for cc_temp in $compiler""; do
7248 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7249 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7254 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7257 # Only perform the check for file, if the check method requires it
7258 case $deplibs_check_method in
7260 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7261 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7262 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7263 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7271 lt_save_MAGIC_CMD="$MAGIC_CMD"
7272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7273 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7274 for ac_dir in $ac_dummy; do
7276 test -z "$ac_dir" && ac_dir=.
7277 if test -f $ac_dir/${ac_tool_prefix}file; then
7278 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7279 if test -n "$file_magic_test_file"; then
7280 case $deplibs_check_method in
7282 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7284 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7285 $EGREP "$file_magic_regex" > /dev/null; then
7290 *** Warning: the command libtool uses to detect shared libraries,
7291 *** $file_magic_cmd, produces output that libtool cannot recognize.
7292 *** The result is that libtool may fail to recognize shared libraries
7293 *** as such. This will affect the creation of libtool libraries that
7294 *** depend on shared libraries, but programs linked with such libtool
7295 *** libraries will work regardless of this problem. Nevertheless, you
7296 *** may want to report the problem to your system manager and/or to
7297 *** bug-libtool@gnu.org
7307 MAGIC_CMD="$lt_save_MAGIC_CMD"
7312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7313 if test -n "$MAGIC_CMD"; then
7314 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7315 echo "${ECHO_T}$MAGIC_CMD" >&6
7317 echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6
7321 if test -z "$lt_cv_path_MAGIC_CMD"; then
7322 if test -n "$ac_tool_prefix"; then
7323 echo "$as_me:$LINENO: checking for file" >&5
7324 echo $ECHO_N "checking for file... $ECHO_C" >&6
7325 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7333 lt_save_MAGIC_CMD="$MAGIC_CMD"
7334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336 for ac_dir in $ac_dummy; do
7338 test -z "$ac_dir" && ac_dir=.
7339 if test -f $ac_dir/file; then
7340 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7341 if test -n "$file_magic_test_file"; then
7342 case $deplibs_check_method in
7344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347 $EGREP "$file_magic_regex" > /dev/null; then
7352 *** Warning: the command libtool uses to detect shared libraries,
7353 *** $file_magic_cmd, produces output that libtool cannot recognize.
7354 *** The result is that libtool may fail to recognize shared libraries
7355 *** as such. This will affect the creation of libtool libraries that
7356 *** depend on shared libraries, but programs linked with such libtool
7357 *** libraries will work regardless of this problem. Nevertheless, you
7358 *** may want to report the problem to your system manager and/or to
7359 *** bug-libtool@gnu.org
7369 MAGIC_CMD="$lt_save_MAGIC_CMD"
7374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375 if test -n "$MAGIC_CMD"; then
7376 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7377 echo "${ECHO_T}$MAGIC_CMD" >&6
7379 echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6
7393 enable_win32_dll=yes
7395 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7396 if test "${enable_libtool_lock+set}" = set; then
7397 enableval="$enable_libtool_lock"
7400 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7403 # Check whether --with-pic or --without-pic was given.
7404 if test "${with_pic+set}" = set; then
7410 test -z "$pic_mode" && pic_mode=default
7412 # Use C for the default configuration in the libtool script
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7422 # Source file extension for C test sources.
7425 # Object file extension for compiled C test sources.
7429 # Code to be used in simple compile tests
7430 lt_simple_compile_test_code="int some_variable = 0;\n"
7432 # Code to be used in simple link tests
7433 lt_simple_link_test_code='int main(){return(0);}\n'
7436 # If no C compiler was specified, use CC.
7439 # Allow CC to be a program name with arguments.
7443 # save warnings/boilerplate of simple test code
7444 ac_outfile=conftest.$ac_objext
7445 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7447 _lt_compiler_boilerplate=`cat conftest.err`
7450 ac_outfile=conftest.$ac_objext
7451 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7453 _lt_linker_boilerplate=`cat conftest.err`
7458 # Check for any special shared library compilation flags.
7461 if test "$GCC" = no; then
7464 lt_prog_cc_shlib='-belf'
7468 if test -n "$lt_prog_cc_shlib"; then
7469 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7470 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7471 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7473 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7474 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7475 lt_cv_prog_cc_can_build_shared=no
7481 # Check to make sure the static flag actually works.
7483 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7484 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7485 if test "${lt_prog_compiler_static_works+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 lt_prog_compiler_static_works=no
7489 save_LDFLAGS="$LDFLAGS"
7490 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7491 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7493 # The linker can only warn and ignore the option if not recognized
7494 # So say no if there are warnings
7495 if test -s conftest.err; then
7496 # Append any errors to the config.log.
7497 cat conftest.err 1>&5
7498 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7499 $SED '/^$/d' conftest.err >conftest.er2
7500 if diff conftest.exp conftest.er2 >/dev/null; then
7501 lt_prog_compiler_static_works=yes
7504 lt_prog_compiler_static_works=yes
7508 LDFLAGS="$save_LDFLAGS"
7511 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7512 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7514 if test x"$lt_prog_compiler_static_works" = xyes; then
7517 lt_prog_compiler_static=
7523 lt_prog_compiler_no_builtin_flag=
7525 if test "$GCC" = yes; then
7526 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7529 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7530 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7531 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 lt_cv_prog_compiler_rtti_exceptions=no
7535 ac_outfile=conftest.$ac_objext
7536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7537 lt_compiler_flag="-fno-rtti -fno-exceptions"
7538 # Insert the option either (1) after the last *FLAGS variable, or
7539 # (2) before a word containing "conftest.", or (3) at the end.
7540 # Note that $ac_compile itself does not contain backslashes and begins
7541 # with a dollar sign (not a hyphen), so the echo should work correctly.
7542 # The option is referenced via a variable to avoid confusing sed.
7543 lt_compile=`echo "$ac_compile" | $SED \
7544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546 -e 's:$: $lt_compiler_flag:'`
7547 (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
7548 (eval "$lt_compile" 2>conftest.err)
7550 cat conftest.err >&5
7551 echo "$as_me:7551: \$? = $ac_status" >&5
7552 if (exit $ac_status) && test -s "$ac_outfile"; then
7553 # The compiler can only warn and ignore the option if not recognized
7554 # So say no if there are warnings other than the usual output.
7555 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7556 $SED '/^$/d' conftest.err >conftest.er2
7557 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7558 lt_cv_prog_compiler_rtti_exceptions=yes
7564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7575 lt_prog_compiler_wl=
7576 lt_prog_compiler_pic=
7577 lt_prog_compiler_static=
7579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7582 if test "$GCC" = yes; then
7583 lt_prog_compiler_wl='-Wl,'
7584 lt_prog_compiler_static='-static'
7588 # All AIX code is PIC.
7589 if test "$host_cpu" = ia64; then
7590 # AIX 5 now supports IA64 processor
7591 lt_prog_compiler_static='-Bstatic'
7596 # FIXME: we need at least 68020 code to build shared libraries, but
7597 # adding the `-m68020' flag to GCC prevents building anything better,
7599 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7602 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7603 # PIC is the default for these OSes.
7606 mingw* | pw32* | os2*)
7607 # This hack is so that the source file can tell whether it is being
7608 # built for inclusion in a dll (and should export symbols for example).
7609 lt_prog_compiler_pic='-DDLL_EXPORT'
7612 darwin* | rhapsody*)
7613 # PIC is the default on this platform
7614 # Common symbols not allowed in MH_DYLIB files
7615 lt_prog_compiler_pic='-fno-common'
7619 # Just because we use GCC doesn't mean we suddenly get shared libraries
7620 # on systems that don't support them.
7621 lt_prog_compiler_can_build_shared=no
7626 if test -d /usr/nec; then
7627 lt_prog_compiler_pic=-Kconform_pic
7632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7639 lt_prog_compiler_pic='-fPIC'
7645 lt_prog_compiler_pic='-fPIC'
7649 # PORTME Check for flag to pass linker flags through the system compiler.
7652 lt_prog_compiler_wl='-Wl,'
7653 if test "$host_cpu" = ia64; then
7654 # AIX 5 now supports IA64 processor
7655 lt_prog_compiler_static='-Bstatic'
7657 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7661 # PIC is the default on this platform
7662 # Common symbols not allowed in MH_DYLIB files
7663 case $cc_basename in
7665 lt_prog_compiler_pic='-qnocommon'
7666 lt_prog_compiler_wl='-Wl,'
7671 mingw* | pw32* | os2*)
7672 # This hack is so that the source file can tell whether it is being
7673 # built for inclusion in a dll (and should export symbols for example).
7674 lt_prog_compiler_pic='-DDLL_EXPORT'
7677 hpux9* | hpux10* | hpux11*)
7678 lt_prog_compiler_wl='-Wl,'
7679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7686 lt_prog_compiler_pic='+Z'
7689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7690 lt_prog_compiler_static='${wl}-a ${wl}archive'
7693 irix5* | irix6* | nonstopux*)
7694 lt_prog_compiler_wl='-Wl,'
7695 # PIC (with -KPIC) is the default.
7696 lt_prog_compiler_static='-non_shared'
7700 lt_prog_compiler_pic='-KPIC'
7701 lt_prog_compiler_static='-Bstatic'
7705 case $cc_basename in
7707 lt_prog_compiler_wl='-Wl,'
7708 lt_prog_compiler_pic='-KPIC'
7709 lt_prog_compiler_static='-static'
7711 pgcc* | pgf77* | pgf90* | pgf95*)
7712 # Portland Group compilers (*not* the Pentium gcc compiler,
7713 # which looks to be a dead project)
7714 lt_prog_compiler_wl='-Wl,'
7715 lt_prog_compiler_pic='-fpic'
7716 lt_prog_compiler_static='-Bstatic'
7719 lt_prog_compiler_wl='-Wl,'
7720 # All Alpha code is PIC.
7721 lt_prog_compiler_static='-non_shared'
7726 osf3* | osf4* | osf5*)
7727 lt_prog_compiler_wl='-Wl,'
7728 # All OSF/1 code is PIC.
7729 lt_prog_compiler_static='-non_shared'
7733 lt_prog_compiler_pic='-Kpic'
7734 lt_prog_compiler_static='-dn'
7738 lt_prog_compiler_pic='-KPIC'
7739 lt_prog_compiler_static='-Bstatic'
7740 case $cc_basename in
7742 lt_prog_compiler_wl='-Qoption ld ';;
7744 lt_prog_compiler_wl='-Wl,';;
7749 lt_prog_compiler_wl='-Qoption ld '
7750 lt_prog_compiler_pic='-PIC'
7751 lt_prog_compiler_static='-Bstatic'
7754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7755 lt_prog_compiler_wl='-Wl,'
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-Bstatic'
7761 if test -d /usr/nec ;then
7762 lt_prog_compiler_pic='-Kconform_pic'
7763 lt_prog_compiler_static='-Bstatic'
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_can_build_shared=no
7773 lt_prog_compiler_pic='-pic'
7774 lt_prog_compiler_static='-Bstatic'
7778 lt_prog_compiler_can_build_shared=no
7783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7784 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7787 # Check to make sure the PIC flag actually works.
7789 if test -n "$lt_prog_compiler_pic"; then
7791 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7792 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7793 if test "${lt_prog_compiler_pic_works+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 lt_prog_compiler_pic_works=no
7797 ac_outfile=conftest.$ac_objext
7798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7799 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7800 # Insert the option either (1) after the last *FLAGS variable, or
7801 # (2) before a word containing "conftest.", or (3) at the end.
7802 # Note that $ac_compile itself does not contain backslashes and begins
7803 # with a dollar sign (not a hyphen), so the echo should work correctly.
7804 # The option is referenced via a variable to avoid confusing sed.
7805 lt_compile=`echo "$ac_compile" | $SED \
7806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7808 -e 's:$: $lt_compiler_flag:'`
7809 (eval echo "\"\$as_me:7809: $lt_compile\"" >&5)
7810 (eval "$lt_compile" 2>conftest.err)
7812 cat conftest.err >&5
7813 echo "$as_me:7813: \$? = $ac_status" >&5
7814 if (exit $ac_status) && test -s "$ac_outfile"; then
7815 # The compiler can only warn and ignore the option if not recognized
7816 # So say no if there are warnings other than the usual output.
7817 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7818 $SED '/^$/d' conftest.err >conftest.er2
7819 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7820 lt_prog_compiler_pic_works=yes
7826 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7827 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7829 if test x"$lt_prog_compiler_pic_works" = xyes; then
7830 case $lt_prog_compiler_pic in
7832 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7835 lt_prog_compiler_pic=
7836 lt_prog_compiler_can_build_shared=no
7841 # For platforms which do not support PIC, -DPIC is meaningless:
7843 lt_prog_compiler_pic=
7846 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7850 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7851 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7852 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 lt_cv_prog_compiler_c_o=no
7856 $rm -r conftest 2>/dev/null
7860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7862 lt_compiler_flag="-o out/conftest2.$ac_objext"
7863 # Insert the option either (1) after the last *FLAGS variable, or
7864 # (2) before a word containing "conftest.", or (3) at the end.
7865 # Note that $ac_compile itself does not contain backslashes and begins
7866 # with a dollar sign (not a hyphen), so the echo should work correctly.
7867 lt_compile=`echo "$ac_compile" | $SED \
7868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7870 -e 's:$: $lt_compiler_flag:'`
7871 (eval echo "\"\$as_me:7871: $lt_compile\"" >&5)
7872 (eval "$lt_compile" 2>out/conftest.err)
7874 cat out/conftest.err >&5
7875 echo "$as_me:7875: \$? = $ac_status" >&5
7876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7878 # The compiler can only warn and ignore the option if not recognized
7879 # So say no if there are warnings
7880 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7881 $SED '/^$/d' out/conftest.err >out/conftest.er2
7882 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7883 lt_cv_prog_compiler_c_o=yes
7888 # SGI C++ compiler will create directory out/ii_files/ for
7889 # template instantiation
7890 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7891 $rm out/* && rmdir out
7897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7898 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7901 hard_links="nottested"
7902 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7903 # do not overwrite the value of need_locks provided by the user
7904 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7905 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7910 ln conftest.a conftest.b 2>&5 || hard_links=no
7911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7912 echo "$as_me:$LINENO: result: $hard_links" >&5
7913 echo "${ECHO_T}$hard_links" >&6
7914 if test "$hard_links" = no; then
7915 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7916 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7923 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7927 allow_undefined_flag=
7928 enable_shared_with_static_runtimes=no
7930 archive_expsym_cmds=
7931 old_archive_From_new_cmds=
7932 old_archive_from_expsyms_cmds=
7933 export_dynamic_flag_spec=
7934 whole_archive_flag_spec=
7935 thread_safe_flag_spec=
7936 hardcode_libdir_flag_spec=
7937 hardcode_libdir_flag_spec_ld=
7938 hardcode_libdir_separator=
7941 hardcode_shlibpath_var=unsupported
7942 link_all_deplibs=unknown
7943 hardcode_automatic=no
7946 always_export_symbols=no
7947 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7948 # include_expsyms should be a list of space-separated symbols to be *always*
7949 # included in the symbol list
7951 # exclude_expsyms can be an extended regexp of symbols to exclude
7952 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7953 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7954 # as well as any symbol that contains `d'.
7955 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7956 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7957 # platforms (ab)use it in PIC code, but their linkers get confused if
7958 # the symbol is explicitly referenced. Since portable code cannot
7959 # rely on this symbol name, it's probably fine to never include it in
7960 # preloaded symbol tables.
7961 extract_expsyms_cmds=
7962 # Just being paranoid about ensuring that cc_basename is set.
7963 for cc_temp in $compiler""; do
7965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7974 cygwin* | mingw* | pw32*)
7975 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7976 # When not using gcc, we currently assume that we are using
7977 # Microsoft Visual C++.
7978 if test "$GCC" != yes; then
7988 if test "$with_gnu_ld" = yes; then
7989 # If archive_cmds runs LD, not CC, wlarc should be empty
7992 # Set some defaults for GNU ld with shared library support. These
7993 # are reset later if shared libraries are not supported. Putting them
7994 # here allows them to be overridden if necessary.
7995 runpath_var=LD_RUN_PATH
7996 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7997 export_dynamic_flag_spec='${wl}--export-dynamic'
7998 # ancient GNU ld didn't support --whole-archive et. al.
7999 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8000 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8002 whole_archive_flag_spec=
8004 supports_anon_versioning=no
8005 case `$LD -v 2>/dev/null` in
8006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8009 *\ 2.11.*) ;; # other 2.11 versions
8010 *) supports_anon_versioning=yes ;;
8013 # See if GNU ld supports shared libraries.
8015 aix3* | aix4* | aix5*)
8016 # On AIX/PPC, the GNU linker is very broken
8017 if test "$host_cpu" != ia64; then
8021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8022 *** to be unable to reliably create shared libraries on AIX.
8023 *** Therefore, libtool is disabling shared libraries support. If you
8024 *** really care for shared libraries, you may want to modify your PATH
8025 *** so that a non-GNU linker is found, and then restart.
8032 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)'
8033 hardcode_libdir_flag_spec='-L$libdir'
8034 hardcode_minus_L=yes
8036 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8037 # that the semantics of dynamic libraries on AmigaOS, at least up
8038 # to version 4, is to share data among multiple programs linked
8039 # with the same dynamic library. Since this doesn't match the
8040 # behavior of shared libraries on other platforms, we can't use
8046 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8047 allow_undefined_flag=unsupported
8048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8049 # support --undefined. This deserves some investigation. FIXME
8050 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8056 cygwin* | mingw* | pw32*)
8057 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8058 # as there is no search path for DLLs.
8059 hardcode_libdir_flag_spec='-L$libdir'
8060 allow_undefined_flag=unsupported
8061 always_export_symbols=no
8062 enable_shared_with_static_runtimes=yes
8063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8065 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8067 # If the export-symbols file already is a .def file (1st line
8068 # is EXPORTS), use it as is; otherwise, prepend...
8069 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8070 cp $export_symbols $output_objdir/$soname.def;
8072 echo EXPORTS > $output_objdir/$soname.def;
8073 cat $export_symbols >> $output_objdir/$soname.def;
8075 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8084 case $cc_basename,$host_cpu in
8085 pgcc*) # Portland Group C compiler
8086 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'
8087 tmp_addflag=' $pic_flag'
8089 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8090 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'
8091 tmp_addflag=' $pic_flag -Mnomain' ;;
8092 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8093 tmp_addflag=' -i_dynamic' ;;
8094 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8095 tmp_addflag=' -i_dynamic -nofor_main' ;;
8096 ifc* | ifort*) # Intel Fortran compiler
8097 tmp_addflag=' -nofor_main' ;;
8099 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8101 if test $supports_anon_versioning = yes; then
8102 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8104 $echo "local: *; };" >> $output_objdir/$libname.ver~
8105 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8113 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8114 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8123 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8128 *** create shared libraries on Solaris systems. Therefore, libtool
8129 *** is disabling shared libraries support. We urge you to upgrade GNU
8130 *** binutils to release 2.9.1 or newer. Another option is to modify
8131 *** your PATH or compiler configuration so that the native linker is
8132 *** used, and then restart.
8135 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8144 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8147 hardcode_shlibpath_var=no
8151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8160 if test "$ld_shlibs" = no; then
8162 hardcode_libdir_flag_spec=
8163 export_dynamic_flag_spec=
8164 whole_archive_flag_spec=
8167 # PORTME fill in a description of your system's linker (not GNU ld)
8170 allow_undefined_flag=unsupported
8171 always_export_symbols=yes
8172 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'
8173 # Note: this linker hardcodes the directories in LIBPATH if there
8174 # are no directories specified by -L.
8175 hardcode_minus_L=yes
8176 if test "$GCC" = yes && test -z "$link_static_flag"; then
8177 # Neither direct hardcoding nor static linking is supported with a
8179 hardcode_direct=unsupported
8184 if test "$host_cpu" = ia64; then
8185 # On IA64, the linker does run time linking by default, so we don't
8186 # have to do anything special.
8187 aix_use_runtimelinking=no
8188 exp_sym_flag='-Bexport'
8191 # If we're using GNU nm, then we don't want the "-C" option.
8192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8193 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8194 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'
8196 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'
8198 aix_use_runtimelinking=no
8200 # Test if we are trying to use run time linking or normal
8201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8202 # need to do runtime linking.
8203 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8204 for ld_flag in $LDFLAGS; do
8205 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8206 aix_use_runtimelinking=yes
8212 exp_sym_flag='-bexport'
8213 no_entry_flag='-bnoentry'
8216 # When large executables or shared objects are built, AIX ld can
8217 # have problems creating the table of contents. If linking a library
8218 # or program results in "error TOC overflow" add -mminimal-toc to
8219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8224 hardcode_libdir_separator=':'
8225 link_all_deplibs=yes
8227 if test "$GCC" = yes; then
8228 case $host_os in aix4.[012]|aix4.[012].*)
8229 # We only want to do this on AIX 4.2 and lower, the check
8230 # below for broken collect2 doesn't work under 4.3+
8231 collect2name=`${CC} -print-prog-name=collect2`
8232 if test -f "$collect2name" && \
8233 strings "$collect2name" | grep resolve_lib_name >/dev/null
8235 # We have reworked collect2
8238 # We have old collect2
8239 hardcode_direct=unsupported
8240 # It fails to find uninstalled libraries when the uninstalled
8241 # path is not listed in the libpath. Setting hardcode_minus_L
8242 # to unsupported forces relinking
8243 hardcode_minus_L=yes
8244 hardcode_libdir_flag_spec='-L$libdir'
8245 hardcode_libdir_separator=
8248 shared_flag='-shared'
8249 if test "$aix_use_runtimelinking" = yes; then
8250 shared_flag="$shared_flag "'${wl}-G'
8254 if test "$host_cpu" = ia64; then
8255 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8256 # chokes on -Wl,-G. The following line is correct:
8259 if test "$aix_use_runtimelinking" = yes; then
8260 shared_flag='${wl}-G'
8262 shared_flag='${wl}-bM:SRE'
8267 # It seems that -bexpall does not export symbols beginning with
8268 # underscore (_), so it is better to generate a list of symbols to export.
8269 always_export_symbols=yes
8270 if test "$aix_use_runtimelinking" = yes; then
8271 # Warning - without using the other runtime loading flags (-brtl),
8272 # -berok will link without error, but may produce a broken library.
8273 allow_undefined_flag='-berok'
8274 # Determine the default libpath from the value encoded in an empty executable.
8275 cat >conftest.$ac_ext <<_ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8292 (eval $ac_link) 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag"
8300 || test ! -s conftest.err'
8301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; } &&
8306 { ac_try='test -s conftest$ac_exeext'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8315 # Check for a 64-bit object if we didn't find anything.
8316 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; }
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8323 rm -f conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8327 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8328 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"
8330 if test "$host_cpu" = ia64; then
8331 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8332 allow_undefined_flag="-z nodefs"
8333 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"
8335 # Determine the default libpath from the value encoded in an empty executable.
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8351 rm -f conftest.$ac_objext conftest$ac_exeext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8353 (eval $ac_link) 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag"
8361 || test ! -s conftest.err'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest$ac_exeext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8376 # Check for a 64-bit object if we didn't find anything.
8377 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; }
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8389 # Warning - without using the other run time loading flags,
8390 # -berok will link without error, but may produce a broken library.
8391 no_undefined_flag=' ${wl}-bernotok'
8392 allow_undefined_flag=' ${wl}-berok'
8393 # -bexpall does not export symbols beginning with underscore (_)
8394 always_export_symbols=yes
8395 # Exported symbols can be pulled into shared objects from archives
8396 whole_archive_flag_spec=' '
8397 archive_cmds_need_lc=yes
8398 # This is similar to how AIX traditionally builds its shared libraries.
8399 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'
8405 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)'
8406 hardcode_libdir_flag_spec='-L$libdir'
8407 hardcode_minus_L=yes
8408 # see comment about different semantics on the GNU ld section
8413 export_dynamic_flag_spec=-rdynamic
8416 cygwin* | mingw* | pw32*)
8417 # When not using gcc, we currently assume that we are using
8418 # Microsoft Visual C++.
8419 # hardcode_libdir_flag_spec is actually meaningless, as there is
8420 # no search path for DLLs.
8421 hardcode_libdir_flag_spec=' '
8422 allow_undefined_flag=unsupported
8423 # Tell ltmain to make .lib files, not .a files.
8425 # Tell ltmain to make .dll files, not .so files.
8427 # FIXME: Setting linknames here is a bad hack.
8428 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8429 # The linker will automatically build a .lib file if we build a DLL.
8430 old_archive_From_new_cmds='true'
8431 # FIXME: Should let the user specify the lib program.
8432 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8433 fix_srcfile_path='`cygpath -w "$srcfile"`'
8434 enable_shared_with_static_runtimes=yes
8437 darwin* | rhapsody*)
8439 rhapsody* | darwin1.[012])
8440 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8443 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8444 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8446 case ${MACOSX_DEPLOYMENT_TARGET} in
8448 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8451 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8457 archive_cmds_need_lc=no
8459 hardcode_automatic=yes
8460 hardcode_shlibpath_var=unsupported
8461 whole_archive_flag_spec=''
8462 link_all_deplibs=yes
8463 if test "$GCC" = yes ; then
8464 output_verbose_link_cmd='echo'
8465 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8466 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8467 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8468 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}'
8469 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}'
8471 case $cc_basename in
8473 output_verbose_link_cmd='echo'
8474 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8475 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8476 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8477 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}'
8478 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}'
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_libdir_flag_spec='-L$libdir'
8490 hardcode_shlibpath_var=no
8497 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8498 # support. Future versions do this automatically, but an explicit c++rt0.o
8499 # does not break anything, and helps significantly (at the cost of a little
8502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8503 hardcode_libdir_flag_spec='-R$libdir'
8505 hardcode_shlibpath_var=no
8508 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8512 hardcode_minus_L=yes
8513 hardcode_shlibpath_var=no
8516 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8517 freebsd* | kfreebsd*-gnu | dragonfly*)
8518 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8519 hardcode_libdir_flag_spec='-R$libdir'
8521 hardcode_shlibpath_var=no
8525 if test "$GCC" = yes; then
8526 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'
8528 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'
8530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8531 hardcode_libdir_separator=:
8534 # hardcode_minus_L: Not really in the search PATH,
8535 # but as the default location of the library.
8536 hardcode_minus_L=yes
8537 export_dynamic_flag_spec='${wl}-E'
8541 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8544 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8547 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8553 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8560 if test "$with_gnu_ld" = no; then
8563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8564 hardcode_libdir_flag_spec_ld='+b $libdir'
8565 hardcode_libdir_separator=:
8567 hardcode_shlibpath_var=no
8570 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_shlibpath_var=no
8574 # hardcode_minus_L: Not really in the search PATH,
8575 # but as the default location of the library.
8576 hardcode_minus_L=yes
8579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580 hardcode_libdir_separator=:
8582 export_dynamic_flag_spec='${wl}-E'
8584 # hardcode_minus_L: Not really in the search PATH,
8585 # but as the default location of the library.
8586 hardcode_minus_L=yes
8592 irix5* | irix6* | nonstopux*)
8593 if test "$GCC" = yes; then
8594 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'
8596 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'
8597 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600 hardcode_libdir_separator=:
8601 link_all_deplibs=yes
8605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8608 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8610 hardcode_libdir_flag_spec='-R$libdir'
8612 hardcode_shlibpath_var=no
8616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8619 hardcode_libdir_separator=:
8620 hardcode_shlibpath_var=no
8625 hardcode_shlibpath_var=no
8626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8628 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8630 export_dynamic_flag_spec='${wl}-E'
8633 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_libdir_flag_spec='-R$libdir'
8638 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8646 hardcode_libdir_flag_spec='-L$libdir'
8647 hardcode_minus_L=yes
8648 allow_undefined_flag=unsupported
8649 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'
8650 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8654 if test "$GCC" = yes; then
8655 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8656 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'
8658 allow_undefined_flag=' -expect_unresolved \*'
8659 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'
8661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8662 hardcode_libdir_separator=:
8665 osf4* | osf5*) # as osf3* with the addition of -msym flag
8666 if test "$GCC" = yes; then
8667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8668 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'
8669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8671 allow_undefined_flag=' -expect_unresolved \*'
8672 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'
8673 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8674 $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'
8676 # Both c and cxx compiler support -rpath directly
8677 hardcode_libdir_flag_spec='-rpath $libdir'
8679 hardcode_libdir_separator=:
8683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_shlibpath_var=no
8685 export_dynamic_flag_spec='${wl}-Bexport'
8686 runpath_var=LD_RUN_PATH
8687 hardcode_runpath_var=yes
8691 no_undefined_flag=' -z text'
8692 if test "$GCC" = yes; then
8694 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8695 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8696 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8699 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8703 hardcode_libdir_flag_spec='-R$libdir'
8704 hardcode_shlibpath_var=no
8706 solaris2.[0-5] | solaris2.[0-5].*) ;;
8708 # The compiler driver will combine linker options so we
8709 # cannot just pass the convience library names through
8710 # without $wl, iff we do not link with $LD.
8711 # Luckily, gcc supports the same syntax we need for Sun Studio.
8712 # Supported since Solaris 2.6 (maybe 2.5.1?)
8715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8717 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' ;;
8720 link_all_deplibs=yes
8724 if test "x$host_vendor" = xsequent; then
8725 # Use $CC to link under sequent, because it throws in some extra .o
8726 # files that make .init and .fini sections work.
8727 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8729 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8731 hardcode_libdir_flag_spec='-L$libdir'
8733 hardcode_minus_L=yes
8734 hardcode_shlibpath_var=no
8738 case $host_vendor in
8740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741 hardcode_direct=yes # is this really true???
8744 ## LD is ld it makes a PLAMLIB
8745 ## CC just makes a GrossModule.
8746 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8747 reload_cmds='$CC -r -o $output$reload_objs'
8751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8752 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8755 runpath_var='LD_RUN_PATH'
8756 hardcode_shlibpath_var=no
8760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8761 hardcode_shlibpath_var=no
8762 export_dynamic_flag_spec='-Bexport'
8766 if test -d /usr/nec; then
8767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8768 hardcode_shlibpath_var=no
8769 runpath_var=LD_RUN_PATH
8770 hardcode_runpath_var=yes
8776 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8779 hardcode_shlibpath_var=no
8780 hardcode_runpath_var=yes
8781 runpath_var=LD_RUN_PATH
8784 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8785 no_undefined_flag='${wl}-z ${wl}text'
8786 if test "$GCC" = yes; then
8787 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8789 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791 runpath_var='LD_RUN_PATH'
8792 hardcode_shlibpath_var=no
8796 no_undefined_flag=' -z text'
8797 # $CC -shared without GNU ld will not create a library from C++
8798 # object files and a static libstdc++, better avoid it by now
8799 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8802 hardcode_libdir_flag_spec=
8803 hardcode_shlibpath_var=no
8804 runpath_var='LD_RUN_PATH'
8808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_libdir_flag_spec='-L$libdir'
8810 hardcode_shlibpath_var=no
8819 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8820 echo "${ECHO_T}$ld_shlibs" >&6
8821 test "$ld_shlibs" = no && can_build_shared=no
8823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8824 if test "$GCC" = yes; then
8825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8829 # Do we need to explicitly link libc?
8831 case "x$archive_cmds_need_lc" in
8833 # Assume -lc should be added
8834 archive_cmds_need_lc=yes
8836 if test "$enable_shared" = yes && test "$GCC" = yes; then
8837 case $archive_cmds in
8839 # FIXME: we may have to deal with multi-command sequences.
8842 # Test whether the compiler implicitly links with -lc since on some
8843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8844 # to ld, don't add -lc before -lgcc.
8845 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8846 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8851 (eval $ac_compile) 2>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } 2>conftest.err; then
8857 libobjs=conftest.$ac_objext
8859 wl=$lt_prog_compiler_wl
8865 lt_save_allow_undefined_flag=$allow_undefined_flag
8866 allow_undefined_flag=
8867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8868 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }
8873 archive_cmds_need_lc=no
8875 archive_cmds_need_lc=yes
8877 allow_undefined_flag=$lt_save_allow_undefined_flag
8879 cat conftest.err 1>&5
8882 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8883 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8890 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8891 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8893 libname_spec='lib$name'
8901 shlibpath_overrides_runpath=unknown
8903 dynamic_linker="$host_os ld.so"
8904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8905 if test "$GCC" = yes; then
8906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8907 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8908 # if the path contains ";" then we assume it to be the separator
8909 # otherwise default to the standard path separator (i.e. ":") - it is
8910 # assumed that no part of a normal pathname contains ";" but that should
8911 # okay in the real world where ";" in dirpaths is itself problematic.
8912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8919 need_lib_prefix=unknown
8920 hardcode_into_libs=no
8922 # when you set need_version to no, make sure it does not cause -set_version
8923 # flags to be left without arguments
8924 need_version=unknown
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8930 shlibpath_var=LIBPATH
8932 # AIX 3 has no versioning support, so we append a major version to the name.
8933 soname_spec='${libname}${release}${shared_ext}$major'
8940 hardcode_into_libs=yes
8941 if test "$host_cpu" = ia64; then
8942 # AIX 5 supports IA64
8943 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8944 shlibpath_var=LD_LIBRARY_PATH
8946 # With GCC up to 2.95.x, collect2 would create an import file
8947 # for dependence libraries. The import file would start with
8948 # the line `#! .'. This would cause the generated library to
8949 # depend on `.', always an invalid library. This was fixed in
8950 # development snapshots of GCC prior to 3.0.
8952 aix4 | aix4.[01] | aix4.[01].*)
8953 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8955 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8962 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8963 # soname into executable. Probably we can add versioning support to
8964 # collect2, so additional links can be useful in future.
8965 if test "$aix_use_runtimelinking" = yes; then
8966 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8967 # instead of lib<name>.a to let people know that these are not
8968 # typical AIX shared libraries.
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 # We preserve .a as extension for shared libraries through AIX4.2
8972 # and later when we are not doing run time linking.
8973 library_names_spec='${libname}${release}.a $libname.a'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8976 shlibpath_var=LIBPATH
8981 library_names_spec='$libname.ixlibrary $libname.a'
8982 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8983 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'
8987 library_names_spec='${libname}${shared_ext}'
8988 dynamic_linker="$host_os ld.so"
8989 shlibpath_var=LIBRARY_PATH
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9001 # the default ld.so.conf also contains /usr/contrib/lib and
9002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9003 # libtool to hard-code these into programs
9006 cygwin* | mingw* | pw32*)
9007 version_type=windows
9012 case $GCC,$host_os in
9013 yes,cygwin* | yes,mingw* | yes,pw32*)
9014 library_names_spec='$libname.dll.a'
9015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9016 postinstall_cmds='base_file=`basename \${file}`~
9017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9018 dldir=$destdir/`dirname \$dlpath`~
9019 test -d \$dldir || mkdir -p \$dldir~
9020 $install_prog $dir/$dlname \$dldir/$dlname~
9021 chmod a+x \$dldir/$dlname'
9022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9023 dlpath=$dir/\$dldll~
9025 shlibpath_overrides_runpath=yes
9029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9031 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9034 # MinGW DLLs use traditional 'lib' prefix
9035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9037 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9038 # It is most probably a Windows format PATH printed by
9039 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9040 # path with ; separators, and with drive letters. We can handle the
9041 # drive letters (cygwin fileutils understands them), so leave them,
9042 # especially as we might pass files found there to a mingw objdump,
9043 # which wouldn't understand a cygwinified path. Ahh.
9044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9050 # pw32 DLLs use 'pw' prefix rather than 'lib'
9051 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9057 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9060 dynamic_linker='Win32 ld.exe'
9061 # FIXME: first we should search . and the directory the executable is in
9065 darwin* | rhapsody*)
9066 dynamic_linker="$host_os dyld"
9070 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9071 soname_spec='${libname}${release}${major}$shared_ext'
9072 shlibpath_overrides_runpath=yes
9073 shlibpath_var=DYLD_LIBRARY_PATH
9074 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9075 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9076 if test "$GCC" = yes; then
9077 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"`
9079 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9081 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9089 soname_spec='${libname}${release}${shared_ext}$major'
9090 shlibpath_var=LD_LIBRARY_PATH
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath=no
9105 hardcode_into_libs=yes
9106 dynamic_linker='GNU ld.so'
9109 freebsd* | dragonfly*)
9110 # DragonFly does not have aout. When/if they implement a new
9111 # versioning mechanism, adjust this.
9112 if test -x /usr/bin/objformat; then
9113 objformat=`/usr/bin/objformat`
9116 freebsd[123]*) objformat=aout ;;
9120 version_type=freebsd-$objformat
9121 case $version_type in
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9132 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=yes
9137 freebsd3.[01]* | freebsdelf3.[01]*)
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9142 shlibpath_overrides_runpath=no
9143 hardcode_into_libs=yes
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 hardcode_into_libs=yes
9158 hpux9* | hpux10* | hpux11*)
9159 # Give a soname corresponding to the major version so that dld.sl refuses to
9160 # link against other versions.
9167 hardcode_into_libs=yes
9168 dynamic_linker="$host_os dld.so"
9169 shlibpath_var=LD_LIBRARY_PATH
9170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 if test "X$HPUX_IA64_MODE" = X32; then
9174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9182 hardcode_into_libs=yes
9183 dynamic_linker="$host_os dld.sl"
9184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9193 dynamic_linker="$host_os dld.sl"
9194 shlibpath_var=SHLIB_PATH
9195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9200 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9201 postinstall_cmds='chmod 555 $lib'
9204 irix5* | irix6* | nonstopux*)
9206 nonstopux*) version_type=nonstopux ;;
9208 if test "$lt_cv_prog_gnu_ld" = yes; then
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9219 irix5* | nonstopux*)
9223 case $LD in # libtool.m4 will add one of these switches to LD
9224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9225 libsuff= shlibsuff= libmagic=32-bit;;
9226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9227 libsuff=32 shlibsuff=N32 libmagic=N32;;
9228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9230 *) libsuff= shlibsuff= libmagic=never-match;;
9234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9235 shlibpath_overrides_runpath=no
9236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9238 hardcode_into_libs=yes
9241 # No shared lib support for Linux oldld, aout, or coff.
9242 linux*oldld* | linux*aout* | linux*coff*)
9246 # This must be Linux ELF.
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252 soname_spec='${libname}${release}${shared_ext}$major'
9253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=no
9256 # This implies no fast_install, which is unacceptable.
9257 # Some rework will be needed to allow for fast_install
9258 # before this can be enabled.
9259 hardcode_into_libs=yes
9261 # Append ld.so.conf contents to the search path
9262 if test -f /etc/ld.so.conf; then
9263 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' ' '`
9264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9267 # We used to test for /lib/ld.so.1 and disable shared libraries on
9268 # powerpc, because MkLinux only supported shared libraries with the
9269 # GNU dynamic linker. Since this was broken with cross compilers,
9270 # most powerpc-linux boxes support dynamic linking these days and
9271 # people can always --disable-shared, the test was removed, and we
9272 # assume the GNU/Linux dynamic linker is in use.
9273 dynamic_linker='GNU/Linux ld.so'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=no
9284 hardcode_into_libs=yes
9285 dynamic_linker='GNU ld.so'
9292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9295 dynamic_linker='NetBSD (a.out) ld.so'
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 dynamic_linker='NetBSD ld.elf_so'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=yes
9303 hardcode_into_libs=yes
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=yes
9326 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9328 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9329 *) need_version=no ;;
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9336 openbsd2.[89] | openbsd2.[89].*)
9337 shlibpath_overrides_runpath=no
9340 shlibpath_overrides_runpath=yes
9344 shlibpath_overrides_runpath=yes
9349 libname_spec='$name'
9352 library_names_spec='$libname${shared_ext} $libname.a'
9353 dynamic_linker='OS/2 ld.exe'
9354 shlibpath_var=LIBPATH
9357 osf3* | osf4* | osf5*)
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 shlibpath_var=LD_LIBRARY_PATH
9364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9365 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 shlibpath_var=LD_LIBRARY_PATH
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 shlibpath_var=LD_LIBRARY_PATH
9382 shlibpath_overrides_runpath=yes
9383 hardcode_into_libs=yes
9384 # ldd complains unless libraries are executable
9385 postinstall_cmds='chmod +x $lib'
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9391 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 shlibpath_overrides_runpath=yes
9394 if test "$with_gnu_ld" = yes; then
9400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 case $host_vendor in
9407 shlibpath_overrides_runpath=no
9409 export_dynamic_flag_spec='${wl}-Blargedynsym'
9410 runpath_var=LD_RUN_PATH
9418 shlibpath_overrides_runpath=no
9419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9425 if test -d /usr/nec ;then
9427 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9428 soname_spec='$libname${shared_ext}.$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 shlibpath_var=LD_LIBRARY_PATH
9444 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9445 echo "${ECHO_T}$dynamic_linker" >&6
9446 test "$dynamic_linker" = no && can_build_shared=no
9448 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9449 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9451 if test -n "$hardcode_libdir_flag_spec" || \
9452 test -n "$runpath_var" || \
9453 test "X$hardcode_automatic" = "Xyes" ; then
9455 # We can hardcode non-existant directories.
9456 if test "$hardcode_direct" != no &&
9457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9458 # have to relink, otherwise we might link with an installed library
9459 # when we should be linking with a yet-to-be-installed one
9460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9461 test "$hardcode_minus_L" != no; then
9462 # Linking always hardcodes the temporary library directory.
9463 hardcode_action=relink
9465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9466 hardcode_action=immediate
9469 # We cannot hardcode anything, or else we can only hardcode existing
9471 hardcode_action=unsupported
9473 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9474 echo "${ECHO_T}$hardcode_action" >&6
9476 if test "$hardcode_action" = relink; then
9477 # Fast installation is not supported
9478 enable_fast_install=no
9479 elif test "$shlibpath_overrides_runpath" = yes ||
9480 test "$enable_shared" = no; then
9481 # Fast installation is not necessary
9482 enable_fast_install=needless
9487 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9489 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9491 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9492 echo "$as_me:$LINENO: result: yes" >&5
9493 echo "${ECHO_T}yes" >&6
9495 # FIXME - insert some real tests, host_os isn't really good enough
9498 if test -n "$STRIP" ; then
9499 striplib="$STRIP -x"
9500 echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6
9503 echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6
9508 echo "$as_me:$LINENO: result: no" >&5
9509 echo "${ECHO_T}no" >&6
9514 if test "x$enable_dlopen" != xyes; then
9515 enable_dlopen=unknown
9516 enable_dlopen_self=unknown
9517 enable_dlopen_self_static=unknown
9524 lt_cv_dlopen="load_add_on"
9526 lt_cv_dlopen_self=yes
9530 lt_cv_dlopen="LoadLibrary"
9535 lt_cv_dlopen="dlopen"
9540 # if libdl is installed we need to link against it
9541 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 ac_check_lib_save_LIBS=$LIBS
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9555 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>conftest.er1
9574 grep -v '^ *+' conftest.er1 >conftest.err
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -z "$ac_c_werror_flag"
9580 || test ! -s conftest.err'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest$ac_exeext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_lib_dl_dlopen=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_cv_lib_dl_dlopen=no
9599 rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601 LIBS=$ac_check_lib_save_LIBS
9603 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9604 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9605 if test $ac_cv_lib_dl_dlopen = yes; then
9606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9611 lt_cv_dlopen_self=yes
9618 echo "$as_me:$LINENO: checking for shl_load" >&5
9619 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9620 if test "${ac_cv_func_shl_load+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 cat >conftest.$ac_ext <<_ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9631 #define shl_load innocuous_shl_load
9633 /* System header to define __stub macros and hopefully few prototypes,
9634 which can conflict with char shl_load (); below.
9635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636 <limits.h> exists even on freestanding compilers. */
9639 # include <limits.h>
9641 # include <assert.h>
9646 /* Override any gcc2 internal prototype to avoid an error. */
9651 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9654 /* The GNU C library defines this for functions which it implements
9655 to always fail with ENOSYS. Some functions are actually named
9656 something starting with __ and the normal name is an alias. */
9657 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9660 char (*f) () = shl_load;
9669 return f != shl_load;
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>conftest.er1
9678 grep -v '^ *+' conftest.er1 >conftest.err
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag"
9684 || test ! -s conftest.err'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest$ac_exeext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_func_shl_load=yes
9698 echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ac_cv_func_shl_load=no
9703 rm -f conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9706 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9707 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9708 if test $ac_cv_func_shl_load = yes; then
9709 lt_cv_dlopen="shl_load"
9711 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9712 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9713 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 ac_check_lib_save_LIBS=$LIBS
9718 cat >conftest.$ac_ext <<_ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9725 /* Override any gcc2 internal prototype to avoid an error. */
9729 /* We use char because int might match the return type of a gcc2
9730 builtin and then its argument prototype would still apply. */
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -z "$ac_c_werror_flag"
9750 || test ! -s conftest.err'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_lib_dld_shl_load=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_cv_lib_dld_shl_load=no
9769 rm -f conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_lib_save_LIBS
9773 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9774 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9775 if test $ac_cv_lib_dld_shl_load = yes; then
9776 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9778 echo "$as_me:$LINENO: checking for dlopen" >&5
9779 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9780 if test "${ac_cv_func_dlopen+set}" = set; then
9781 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 cat >conftest.$ac_ext <<_ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9791 #define dlopen innocuous_dlopen
9793 /* System header to define __stub macros and hopefully few prototypes,
9794 which can conflict with char dlopen (); below.
9795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9796 <limits.h> exists even on freestanding compilers. */
9799 # include <limits.h>
9801 # include <assert.h>
9806 /* Override any gcc2 internal prototype to avoid an error. */
9811 /* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9814 /* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
9817 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9820 char (*f) () = dlopen;
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836 (eval $ac_link) 2>conftest.er1
9838 grep -v '^ *+' conftest.er1 >conftest.err
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -z "$ac_c_werror_flag"
9844 || test ! -s conftest.err'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; } &&
9850 { ac_try='test -s conftest$ac_exeext'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; }; then
9856 ac_cv_func_dlopen=yes
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9861 ac_cv_func_dlopen=no
9863 rm -f conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9867 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9868 if test $ac_cv_func_dlopen = yes; then
9869 lt_cv_dlopen="dlopen"
9871 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 ac_check_lib_save_LIBS=$LIBS
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -z "$ac_c_werror_flag"
9910 || test ! -s conftest.err'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 ac_cv_lib_dl_dlopen=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_cv_lib_dl_dlopen=no
9929 rm -f conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9933 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9934 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9935 if test $ac_cv_lib_dl_dlopen = yes; then
9936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9938 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9939 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9940 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 ac_check_lib_save_LIBS=$LIBS
9945 cat >conftest.$ac_ext <<_ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9952 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9971 grep -v '^ *+' conftest.er1 >conftest.err
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_lib_svld_dlopen=yes
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_cv_lib_svld_dlopen=no
9996 rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
10000 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10001 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10002 if test $ac_cv_lib_svld_dlopen = yes; then
10003 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10005 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10006 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10007 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 ac_check_lib_save_LIBS=$LIBS
10012 cat >conftest.$ac_ext <<_ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10019 /* Override any gcc2 internal prototype to avoid an error. */
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>conftest.er1
10038 grep -v '^ *+' conftest.er1 >conftest.err
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag"
10044 || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest$ac_exeext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_cv_lib_dld_dld_link=yes
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_cv_lib_dld_dld_link=no
10063 rm -f conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10067 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10068 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10069 if test $ac_cv_lib_dld_dld_link = yes; then
10070 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10091 if test "x$lt_cv_dlopen" != xno; then
10097 case $lt_cv_dlopen in
10099 save_CPPFLAGS="$CPPFLAGS"
10100 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10102 save_LDFLAGS="$LDFLAGS"
10103 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10106 LIBS="$lt_cv_dlopen_libs $LIBS"
10108 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10109 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10110 if test "${lt_cv_dlopen_self+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 if test "$cross_compiling" = yes; then :
10114 lt_cv_dlopen_self=cross
10116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10117 lt_status=$lt_dlunknown
10118 cat > conftest.$ac_ext <<EOF
10119 #line 10119 "configure"
10120 #include "confdefs.h"
10129 # define LT_DLGLOBAL RTLD_GLOBAL
10132 # define LT_DLGLOBAL DL_GLOBAL
10134 # define LT_DLGLOBAL 0
10138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10139 find out it does not work in some platform. */
10140 #ifndef LT_DLLAZY_OR_NOW
10142 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10145 # define LT_DLLAZY_OR_NOW DL_LAZY
10148 # define LT_DLLAZY_OR_NOW RTLD_NOW
10151 # define LT_DLLAZY_OR_NOW DL_NOW
10153 # define LT_DLLAZY_OR_NOW 0
10161 extern "C" void exit (int);
10164 void fnord() { int i=42;}
10167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10168 int status = $lt_dlunknown;
10172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10173 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10174 /* dlclose (self); */
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10185 (./conftest; exit; ) >&5 2>/dev/null
10187 case x$lt_status in
10188 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10189 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10190 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10193 # compilation failed
10194 lt_cv_dlopen_self=no
10201 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10202 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10204 if test "x$lt_cv_dlopen_self" = xyes; then
10205 LDFLAGS="$LDFLAGS $link_static_flag"
10206 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10207 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10208 if test "${lt_cv_dlopen_self_static+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 if test "$cross_compiling" = yes; then :
10212 lt_cv_dlopen_self_static=cross
10214 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10215 lt_status=$lt_dlunknown
10216 cat > conftest.$ac_ext <<EOF
10217 #line 10217 "configure"
10218 #include "confdefs.h"
10227 # define LT_DLGLOBAL RTLD_GLOBAL
10230 # define LT_DLGLOBAL DL_GLOBAL
10232 # define LT_DLGLOBAL 0
10236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10237 find out it does not work in some platform. */
10238 #ifndef LT_DLLAZY_OR_NOW
10240 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10243 # define LT_DLLAZY_OR_NOW DL_LAZY
10246 # define LT_DLLAZY_OR_NOW RTLD_NOW
10249 # define LT_DLLAZY_OR_NOW DL_NOW
10251 # define LT_DLLAZY_OR_NOW 0
10259 extern "C" void exit (int);
10262 void fnord() { int i=42;}
10265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10266 int status = $lt_dlunknown;
10270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10271 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10272 /* dlclose (self); */
10278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10283 (./conftest; exit; ) >&5 2>/dev/null
10285 case x$lt_status in
10286 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10287 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10288 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10291 # compilation failed
10292 lt_cv_dlopen_self_static=no
10299 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10300 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10303 CPPFLAGS="$save_CPPFLAGS"
10304 LDFLAGS="$save_LDFLAGS"
10309 case $lt_cv_dlopen_self in
10310 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10311 *) enable_dlopen_self=unknown ;;
10314 case $lt_cv_dlopen_self_static in
10315 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10316 *) enable_dlopen_self_static=unknown ;;
10321 # Report which librarie types wil actually be built
10322 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10323 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10324 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10325 echo "${ECHO_T}$can_build_shared" >&6
10327 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10328 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10329 test "$can_build_shared" = "no" && enable_shared=no
10331 # On AIX, shared libraries and static libraries use the same namespace, and
10332 # are all built from PIC.
10335 test "$enable_shared" = yes && enable_static=no
10336 if test -n "$RANLIB"; then
10337 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10338 postinstall_cmds='$RANLIB $lib'
10343 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10344 test "$enable_shared" = yes && enable_static=no
10348 echo "$as_me:$LINENO: result: $enable_shared" >&5
10349 echo "${ECHO_T}$enable_shared" >&6
10351 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10352 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10353 # Make sure either enable_shared or enable_static is yes.
10354 test "$enable_shared" = yes || enable_static=yes
10355 echo "$as_me:$LINENO: result: $enable_static" >&5
10356 echo "${ECHO_T}$enable_static" >&6
10358 # The else clause should only fire when bootstrapping the
10359 # libtool distribution, otherwise you forgot to ship ltmain.sh
10360 # with your package, and you will get complaints that there are
10361 # no rules to generate ltmain.sh.
10362 if test -f "$ltmain"; then
10363 # See if we are running on zsh, and set the options which allow our commands through
10364 # without removal of \ escapes.
10365 if test -n "${ZSH_VERSION+set}" ; then
10366 setopt NO_GLOB_SUBST
10368 # Now quote all the things that may contain metacharacters while being
10369 # careful not to overquote the AC_SUBSTed values. We take copies of the
10370 # variables and quote the copies for generation of the libtool script.
10371 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10373 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10374 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10375 deplibs_check_method reload_flag reload_cmds need_locks \
10376 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10377 lt_cv_sys_global_symbol_to_c_name_address \
10378 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10379 old_postinstall_cmds old_postuninstall_cmds \
10383 lt_prog_compiler_wl \
10384 lt_prog_compiler_pic \
10385 lt_prog_compiler_static \
10386 lt_prog_compiler_no_builtin_flag \
10387 export_dynamic_flag_spec \
10388 thread_safe_flag_spec \
10389 whole_archive_flag_spec \
10390 enable_shared_with_static_runtimes \
10392 old_archive_from_new_cmds \
10397 compiler_lib_search_path \
10399 archive_expsym_cmds \
10401 postuninstall_cmds \
10402 old_archive_from_expsyms_cmds \
10403 allow_undefined_flag \
10404 no_undefined_flag \
10405 export_symbols_cmds \
10406 hardcode_libdir_flag_spec \
10407 hardcode_libdir_flag_spec_ld \
10408 hardcode_libdir_separator \
10409 hardcode_automatic \
10411 module_expsym_cmds \
10412 lt_cv_prog_compiler_c_o \
10414 include_expsyms; do
10417 old_archive_cmds | \
10418 old_archive_from_new_cmds | \
10420 archive_expsym_cmds | \
10422 module_expsym_cmds | \
10423 old_archive_from_expsyms_cmds | \
10424 export_symbols_cmds | \
10425 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10426 postinstall_cmds | postuninstall_cmds | \
10427 old_postinstall_cmds | old_postuninstall_cmds | \
10428 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10429 # Double-quote double-evaled strings.
10430 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10433 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10439 *'\$0 --fallback-echo"')
10440 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10444 cfgfile="${ofile}T"
10445 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10447 { echo "$as_me:$LINENO: creating $ofile" >&5
10448 echo "$as_me: creating $ofile" >&6;}
10450 cat <<__EOF__ >> "$cfgfile"
10453 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10454 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10455 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10457 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10458 # Free Software Foundation, Inc.
10460 # This file is part of GNU Libtool:
10461 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10463 # This program is free software; you can redistribute it and/or modify
10464 # it under the terms of the GNU General Public License as published by
10465 # the Free Software Foundation; either version 2 of the License, or
10466 # (at your option) any later version.
10468 # This program is distributed in the hope that it will be useful, but
10469 # WITHOUT ANY WARRANTY; without even the implied warranty of
10470 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10471 # General Public License for more details.
10473 # You should have received a copy of the GNU General Public License
10474 # along with this program; if not, write to the Free Software
10475 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10477 # As a special exception to the GNU General Public License, if you
10478 # distribute this file as part of a program that contains a
10479 # configuration script generated by Autoconf, you may include it under
10480 # the same distribution terms that you use for the rest of that program.
10482 # A sed program that does not truncate output.
10485 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10486 Xsed="$SED -e 1s/^X//"
10488 # The HP-UX ksh and POSIX shell print the target directory to stdout
10489 # if CDPATH is set.
10490 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10492 # The names of the tagged configurations supported by this script.
10495 # ### BEGIN LIBTOOL CONFIG
10497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10499 # Shell to use when invoking shell scripts.
10502 # Whether or not to build shared libraries.
10503 build_libtool_libs=$enable_shared
10505 # Whether or not to build static libraries.
10506 build_old_libs=$enable_static
10508 # Whether or not to add -lc for building shared libraries.
10509 build_libtool_need_lc=$archive_cmds_need_lc
10511 # Whether or not to disallow shared libs when runtime libs are static
10512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10514 # Whether or not to optimize for fast installation.
10515 fast_install=$enable_fast_install
10518 host_alias=$host_alias
10522 # The build system.
10523 build_alias=$build_alias
10527 # An echo program that does not interpret backslashes.
10532 AR_FLAGS=$lt_AR_FLAGS
10537 # A language-specific compiler.
10540 # Is the compiler the GNU C compiler?
10546 # The linker used to build libraries.
10549 # Whether we need hard or soft links.
10552 # A BSD-compatible nm program.
10555 # A symbol stripping program
10558 # Used to examine libraries when file_magic_cmd begins "file"
10559 MAGIC_CMD=$MAGIC_CMD
10561 # Used on cygwin: DLL creation program.
10564 # Used on cygwin: object dumper.
10567 # Used on cygwin: assembler.
10570 # The name of the directory that contains temporary libtool files.
10573 # How to create reloadable object files.
10574 reload_flag=$lt_reload_flag
10575 reload_cmds=$lt_reload_cmds
10577 # How to pass a linker flag through the compiler.
10578 wl=$lt_lt_prog_compiler_wl
10580 # Object file suffix (normally "o").
10581 objext="$ac_objext"
10583 # Old archive suffix (normally "a").
10586 # Shared library suffix (normally ".so").
10587 shrext_cmds='$shrext_cmds'
10589 # Executable file suffix (normally "").
10592 # Additional compiler flags for building library objects.
10593 pic_flag=$lt_lt_prog_compiler_pic
10596 # What is the maximum length of a command?
10597 max_cmd_len=$lt_cv_sys_max_cmd_len
10599 # Does compiler simultaneously support -c and -o options?
10600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10602 # Must we lock files when doing compilation?
10603 need_locks=$lt_need_locks
10605 # Do we need the lib prefix for modules?
10606 need_lib_prefix=$need_lib_prefix
10608 # Do we need a version for libraries?
10609 need_version=$need_version
10611 # Whether dlopen is supported.
10612 dlopen_support=$enable_dlopen
10614 # Whether dlopen of programs is supported.
10615 dlopen_self=$enable_dlopen_self
10617 # Whether dlopen of statically linked programs is supported.
10618 dlopen_self_static=$enable_dlopen_self_static
10620 # Compiler flag to prevent dynamic linking.
10621 link_static_flag=$lt_lt_prog_compiler_static
10623 # Compiler flag to turn off builtin functions.
10624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10626 # Compiler flag to allow reflexive dlopens.
10627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10629 # Compiler flag to generate shared objects directly from archives.
10630 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10632 # Compiler flag to generate thread-safe objects.
10633 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10635 # Library versioning type.
10636 version_type=$version_type
10638 # Format of library name prefix.
10639 libname_spec=$lt_libname_spec
10641 # List of archive names. First name is the real one, the rest are links.
10642 # The last name is the one that the linker finds with -lNAME.
10643 library_names_spec=$lt_library_names_spec
10645 # The coded name of the library, if different from the real name.
10646 soname_spec=$lt_soname_spec
10648 # Commands used to build and install an old-style archive.
10650 old_archive_cmds=$lt_old_archive_cmds
10651 old_postinstall_cmds=$lt_old_postinstall_cmds
10652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10654 # Create an old-style archive from a shared archive.
10655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10657 # Create a temporary old-style archive to link instead of a shared archive.
10658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10660 # Commands used to build and install a shared archive.
10661 archive_cmds=$lt_archive_cmds
10662 archive_expsym_cmds=$lt_archive_expsym_cmds
10663 postinstall_cmds=$lt_postinstall_cmds
10664 postuninstall_cmds=$lt_postuninstall_cmds
10666 # Commands used to build a loadable module (assumed same as above if empty)
10667 module_cmds=$lt_module_cmds
10668 module_expsym_cmds=$lt_module_expsym_cmds
10670 # Commands to strip libraries.
10671 old_striplib=$lt_old_striplib
10672 striplib=$lt_striplib
10674 # Dependencies to place before the objects being linked to create a
10676 predep_objects=$lt_predep_objects
10678 # Dependencies to place after the objects being linked to create a
10680 postdep_objects=$lt_postdep_objects
10682 # Dependencies to place before the objects being linked to create a
10684 predeps=$lt_predeps
10686 # Dependencies to place after the objects being linked to create a
10688 postdeps=$lt_postdeps
10690 # The library search path used internally by the compiler when linking
10691 # a shared library.
10692 compiler_lib_search_path=$lt_compiler_lib_search_path
10694 # Method to check whether dependent libraries are shared objects.
10695 deplibs_check_method=$lt_deplibs_check_method
10697 # Command to use when deplibs_check_method == file_magic.
10698 file_magic_cmd=$lt_file_magic_cmd
10700 # Flag that allows shared libraries with undefined symbols to be built.
10701 allow_undefined_flag=$lt_allow_undefined_flag
10703 # Flag that forces no undefined symbols.
10704 no_undefined_flag=$lt_no_undefined_flag
10706 # Commands used to finish a libtool library installation in a directory.
10707 finish_cmds=$lt_finish_cmds
10709 # Same as above, but a single script fragment to be evaled but not shown.
10710 finish_eval=$lt_finish_eval
10712 # Take the output of nm and produce a listing of raw symbols and C names.
10713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10715 # Transform the output of nm in a proper C declaration
10716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10718 # Transform the output of nm in a C name address pair
10719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10721 # This is the shared library runtime path variable.
10722 runpath_var=$runpath_var
10724 # This is the shared library path variable.
10725 shlibpath_var=$shlibpath_var
10727 # Is shlibpath searched before the hard-coded library search path?
10728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10730 # How to hardcode a shared library path into an executable.
10731 hardcode_action=$hardcode_action
10733 # Whether we should hardcode library paths into libraries.
10734 hardcode_into_libs=$hardcode_into_libs
10736 # Flag to hardcode \$libdir into a binary during linking.
10737 # This must work even if \$libdir does not exist.
10738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10740 # If ld is used when linking, flag to hardcode \$libdir into
10741 # a binary during linking. This must work even if \$libdir does
10743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10745 # Whether we need a single -rpath flag with a separated argument.
10746 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10749 # resulting binary.
10750 hardcode_direct=$hardcode_direct
10752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10753 # resulting binary.
10754 hardcode_minus_L=$hardcode_minus_L
10756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10757 # the resulting binary.
10758 hardcode_shlibpath_var=$hardcode_shlibpath_var
10760 # Set to yes if building a shared library automatically hardcodes DIR into the library
10761 # and all subsequent libraries and executables linked against it.
10762 hardcode_automatic=$hardcode_automatic
10764 # Variables whose values should be saved in libtool wrapper scripts and
10765 # restored at relink time.
10766 variables_saved_for_relink="$variables_saved_for_relink"
10768 # Whether libtool must link a program against all its dependency libraries.
10769 link_all_deplibs=$link_all_deplibs
10771 # Compile-time system search path for libraries
10772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10774 # Run-time system search path for libraries
10775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10777 # Fix the shell variable \$srcfile for the compiler.
10778 fix_srcfile_path="$fix_srcfile_path"
10780 # Set to yes if exported symbols are required.
10781 always_export_symbols=$always_export_symbols
10783 # The commands to list exported symbols.
10784 export_symbols_cmds=$lt_export_symbols_cmds
10786 # The commands to extract the exported symbol list from a shared archive.
10787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10789 # Symbols that should not be listed in the preloaded symbols.
10790 exclude_expsyms=$lt_exclude_expsyms
10792 # Symbols that must always be exported.
10793 include_expsyms=$lt_include_expsyms
10795 # ### END LIBTOOL CONFIG
10802 cat <<\EOF >> "$cfgfile"
10804 # AIX sometimes has problems with the GCC collect2 program. For some
10805 # reason, if we set the COLLECT_NAMES environment variable, the problems
10806 # vanish in a puff of smoke.
10807 if test "X${COLLECT_NAMES+set}" != Xset; then
10809 export COLLECT_NAMES
10815 # We use sed instead of cat because bash on DJGPP gets confused if
10816 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10817 # text mode, it properly converts lines to CR/LF. This bash problem
10818 # is reportedly fixed, but why not run on old versions too?
10819 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10821 mv -f "$cfgfile" "$ofile" || \
10822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10826 # If there is no Makefile yet, we rely on a make rule to execute
10827 # `config.status --recheck' to rerun these tests and create the
10828 # libtool script then.
10829 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10830 if test -f "$ltmain_in"; then
10831 test -f Makefile && make "$ltmain"
10837 ac_cpp='$CPP $CPPFLAGS'
10838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10845 # Check whether --with-tags or --without-tags was given.
10846 if test "${with_tags+set}" = set; then
10847 withval="$with_tags"
10848 tagnames="$withval"
10851 if test -f "$ltmain" && test -n "$tagnames"; then
10852 if test ! -f "${ofile}"; then
10853 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10854 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10857 if test -z "$LTCC"; then
10858 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10859 if test -z "$LTCC"; then
10860 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10861 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10864 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10868 # Extract list of available tagged configurations in $ofile.
10869 # Note that this assumes the entire list is on one line.
10870 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10873 for tagname in $tagnames; do
10875 # Check whether tagname contains only valid characters
10876 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10878 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10879 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10880 { (exit 1); exit 1; }; }
10884 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10886 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10887 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10888 { (exit 1); exit 1; }; }
10891 # Update the list of available tags.
10892 if test -n "$tagname"; then
10893 echo appending configuration tag \"$tagname\" to $ofile
10897 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10898 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10899 (test "X$CXX" != "Xg++"))) ; then
10907 if test -n "$F77" && test "X$F77" != "Xno"; then
10915 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10926 # Source file extension for RC test sources.
10929 # Object file extension for compiled RC test sources.
10933 # Code to be used in simple compile tests
10934 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10936 # Code to be used in simple link tests
10937 lt_simple_link_test_code="$lt_simple_compile_test_code"
10939 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10941 # If no C compiler was specified, use CC.
10944 # Allow CC to be a program name with arguments.
10948 # save warnings/boilerplate of simple test code
10949 ac_outfile=conftest.$ac_objext
10950 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10952 _lt_compiler_boilerplate=`cat conftest.err`
10955 ac_outfile=conftest.$ac_objext
10956 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10958 _lt_linker_boilerplate=`cat conftest.err`
10962 # Allow CC to be a program name with arguments.
10967 for cc_temp in $compiler""; do
10969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10975 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10977 lt_cv_prog_compiler_c_o_RC=yes
10979 # The else clause should only fire when bootstrapping the
10980 # libtool distribution, otherwise you forgot to ship ltmain.sh
10981 # with your package, and you will get complaints that there are
10982 # no rules to generate ltmain.sh.
10983 if test -f "$ltmain"; then
10984 # See if we are running on zsh, and set the options which allow our commands through
10985 # without removal of \ escapes.
10986 if test -n "${ZSH_VERSION+set}" ; then
10987 setopt NO_GLOB_SUBST
10989 # Now quote all the things that may contain metacharacters while being
10990 # careful not to overquote the AC_SUBSTed values. We take copies of the
10991 # variables and quote the copies for generation of the libtool script.
10992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10994 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10995 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10996 deplibs_check_method reload_flag reload_cmds need_locks \
10997 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10998 lt_cv_sys_global_symbol_to_c_name_address \
10999 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11000 old_postinstall_cmds old_postuninstall_cmds \
11004 lt_prog_compiler_wl_RC \
11005 lt_prog_compiler_pic_RC \
11006 lt_prog_compiler_static_RC \
11007 lt_prog_compiler_no_builtin_flag_RC \
11008 export_dynamic_flag_spec_RC \
11009 thread_safe_flag_spec_RC \
11010 whole_archive_flag_spec_RC \
11011 enable_shared_with_static_runtimes_RC \
11012 old_archive_cmds_RC \
11013 old_archive_from_new_cmds_RC \
11014 predep_objects_RC \
11015 postdep_objects_RC \
11018 compiler_lib_search_path_RC \
11020 archive_expsym_cmds_RC \
11021 postinstall_cmds_RC \
11022 postuninstall_cmds_RC \
11023 old_archive_from_expsyms_cmds_RC \
11024 allow_undefined_flag_RC \
11025 no_undefined_flag_RC \
11026 export_symbols_cmds_RC \
11027 hardcode_libdir_flag_spec_RC \
11028 hardcode_libdir_flag_spec_ld_RC \
11029 hardcode_libdir_separator_RC \
11030 hardcode_automatic_RC \
11032 module_expsym_cmds_RC \
11033 lt_cv_prog_compiler_c_o_RC \
11034 exclude_expsyms_RC \
11035 include_expsyms_RC; do
11038 old_archive_cmds_RC | \
11039 old_archive_from_new_cmds_RC | \
11040 archive_cmds_RC | \
11041 archive_expsym_cmds_RC | \
11043 module_expsym_cmds_RC | \
11044 old_archive_from_expsyms_cmds_RC | \
11045 export_symbols_cmds_RC | \
11046 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11047 postinstall_cmds | postuninstall_cmds | \
11048 old_postinstall_cmds | old_postuninstall_cmds | \
11049 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11050 # Double-quote double-evaled strings.
11051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11060 *'\$0 --fallback-echo"')
11061 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11067 cat <<__EOF__ >> "$cfgfile"
11068 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11072 # Shell to use when invoking shell scripts.
11075 # Whether or not to build shared libraries.
11076 build_libtool_libs=$enable_shared
11078 # Whether or not to build static libraries.
11079 build_old_libs=$enable_static
11081 # Whether or not to add -lc for building shared libraries.
11082 build_libtool_need_lc=$archive_cmds_need_lc_RC
11084 # Whether or not to disallow shared libs when runtime libs are static
11085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11087 # Whether or not to optimize for fast installation.
11088 fast_install=$enable_fast_install
11091 host_alias=$host_alias
11095 # The build system.
11096 build_alias=$build_alias
11100 # An echo program that does not interpret backslashes.
11105 AR_FLAGS=$lt_AR_FLAGS
11110 # A language-specific compiler.
11113 # Is the compiler the GNU C compiler?
11119 # The linker used to build libraries.
11122 # Whether we need hard or soft links.
11125 # A BSD-compatible nm program.
11128 # A symbol stripping program
11131 # Used to examine libraries when file_magic_cmd begins "file"
11132 MAGIC_CMD=$MAGIC_CMD
11134 # Used on cygwin: DLL creation program.
11137 # Used on cygwin: object dumper.
11140 # Used on cygwin: assembler.
11143 # The name of the directory that contains temporary libtool files.
11146 # How to create reloadable object files.
11147 reload_flag=$lt_reload_flag
11148 reload_cmds=$lt_reload_cmds
11150 # How to pass a linker flag through the compiler.
11151 wl=$lt_lt_prog_compiler_wl_RC
11153 # Object file suffix (normally "o").
11154 objext="$ac_objext"
11156 # Old archive suffix (normally "a").
11159 # Shared library suffix (normally ".so").
11160 shrext_cmds='$shrext_cmds'
11162 # Executable file suffix (normally "").
11165 # Additional compiler flags for building library objects.
11166 pic_flag=$lt_lt_prog_compiler_pic_RC
11169 # What is the maximum length of a command?
11170 max_cmd_len=$lt_cv_sys_max_cmd_len
11172 # Does compiler simultaneously support -c and -o options?
11173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11175 # Must we lock files when doing compilation?
11176 need_locks=$lt_need_locks
11178 # Do we need the lib prefix for modules?
11179 need_lib_prefix=$need_lib_prefix
11181 # Do we need a version for libraries?
11182 need_version=$need_version
11184 # Whether dlopen is supported.
11185 dlopen_support=$enable_dlopen
11187 # Whether dlopen of programs is supported.
11188 dlopen_self=$enable_dlopen_self
11190 # Whether dlopen of statically linked programs is supported.
11191 dlopen_self_static=$enable_dlopen_self_static
11193 # Compiler flag to prevent dynamic linking.
11194 link_static_flag=$lt_lt_prog_compiler_static_RC
11196 # Compiler flag to turn off builtin functions.
11197 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11199 # Compiler flag to allow reflexive dlopens.
11200 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11202 # Compiler flag to generate shared objects directly from archives.
11203 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11205 # Compiler flag to generate thread-safe objects.
11206 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11208 # Library versioning type.
11209 version_type=$version_type
11211 # Format of library name prefix.
11212 libname_spec=$lt_libname_spec
11214 # List of archive names. First name is the real one, the rest are links.
11215 # The last name is the one that the linker finds with -lNAME.
11216 library_names_spec=$lt_library_names_spec
11218 # The coded name of the library, if different from the real name.
11219 soname_spec=$lt_soname_spec
11221 # Commands used to build and install an old-style archive.
11223 old_archive_cmds=$lt_old_archive_cmds_RC
11224 old_postinstall_cmds=$lt_old_postinstall_cmds
11225 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11227 # Create an old-style archive from a shared archive.
11228 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11230 # Create a temporary old-style archive to link instead of a shared archive.
11231 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11233 # Commands used to build and install a shared archive.
11234 archive_cmds=$lt_archive_cmds_RC
11235 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11236 postinstall_cmds=$lt_postinstall_cmds
11237 postuninstall_cmds=$lt_postuninstall_cmds
11239 # Commands used to build a loadable module (assumed same as above if empty)
11240 module_cmds=$lt_module_cmds_RC
11241 module_expsym_cmds=$lt_module_expsym_cmds_RC
11243 # Commands to strip libraries.
11244 old_striplib=$lt_old_striplib
11245 striplib=$lt_striplib
11247 # Dependencies to place before the objects being linked to create a
11249 predep_objects=$lt_predep_objects_RC
11251 # Dependencies to place after the objects being linked to create a
11253 postdep_objects=$lt_postdep_objects_RC
11255 # Dependencies to place before the objects being linked to create a
11257 predeps=$lt_predeps_RC
11259 # Dependencies to place after the objects being linked to create a
11261 postdeps=$lt_postdeps_RC
11263 # The library search path used internally by the compiler when linking
11264 # a shared library.
11265 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11267 # Method to check whether dependent libraries are shared objects.
11268 deplibs_check_method=$lt_deplibs_check_method
11270 # Command to use when deplibs_check_method == file_magic.
11271 file_magic_cmd=$lt_file_magic_cmd
11273 # Flag that allows shared libraries with undefined symbols to be built.
11274 allow_undefined_flag=$lt_allow_undefined_flag_RC
11276 # Flag that forces no undefined symbols.
11277 no_undefined_flag=$lt_no_undefined_flag_RC
11279 # Commands used to finish a libtool library installation in a directory.
11280 finish_cmds=$lt_finish_cmds
11282 # Same as above, but a single script fragment to be evaled but not shown.
11283 finish_eval=$lt_finish_eval
11285 # Take the output of nm and produce a listing of raw symbols and C names.
11286 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11288 # Transform the output of nm in a proper C declaration
11289 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11291 # Transform the output of nm in a C name address pair
11292 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11294 # This is the shared library runtime path variable.
11295 runpath_var=$runpath_var
11297 # This is the shared library path variable.
11298 shlibpath_var=$shlibpath_var
11300 # Is shlibpath searched before the hard-coded library search path?
11301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11303 # How to hardcode a shared library path into an executable.
11304 hardcode_action=$hardcode_action_RC
11306 # Whether we should hardcode library paths into libraries.
11307 hardcode_into_libs=$hardcode_into_libs
11309 # Flag to hardcode \$libdir into a binary during linking.
11310 # This must work even if \$libdir does not exist.
11311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11313 # If ld is used when linking, flag to hardcode \$libdir into
11314 # a binary during linking. This must work even if \$libdir does
11316 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11318 # Whether we need a single -rpath flag with a separated argument.
11319 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11321 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11322 # resulting binary.
11323 hardcode_direct=$hardcode_direct_RC
11325 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11326 # resulting binary.
11327 hardcode_minus_L=$hardcode_minus_L_RC
11329 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11330 # the resulting binary.
11331 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11333 # Set to yes if building a shared library automatically hardcodes DIR into the library
11334 # and all subsequent libraries and executables linked against it.
11335 hardcode_automatic=$hardcode_automatic_RC
11337 # Variables whose values should be saved in libtool wrapper scripts and
11338 # restored at relink time.
11339 variables_saved_for_relink="$variables_saved_for_relink"
11341 # Whether libtool must link a program against all its dependency libraries.
11342 link_all_deplibs=$link_all_deplibs_RC
11344 # Compile-time system search path for libraries
11345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11347 # Run-time system search path for libraries
11348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11350 # Fix the shell variable \$srcfile for the compiler.
11351 fix_srcfile_path="$fix_srcfile_path_RC"
11353 # Set to yes if exported symbols are required.
11354 always_export_symbols=$always_export_symbols_RC
11356 # The commands to list exported symbols.
11357 export_symbols_cmds=$lt_export_symbols_cmds_RC
11359 # The commands to extract the exported symbol list from a shared archive.
11360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11362 # Symbols that should not be listed in the preloaded symbols.
11363 exclude_expsyms=$lt_exclude_expsyms_RC
11365 # Symbols that must always be exported.
11366 include_expsyms=$lt_include_expsyms_RC
11368 # ### END LIBTOOL TAG CONFIG: $tagname
11374 # If there is no Makefile yet, we rely on a make rule to execute
11375 # `config.status --recheck' to rerun these tests and create the
11376 # libtool script then.
11377 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11378 if test -f "$ltmain_in"; then
11379 test -f Makefile && make "$ltmain"
11385 ac_cpp='$CPP $CPPFLAGS'
11386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11395 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11396 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11397 { (exit 1); exit 1; }; }
11401 # Append the new tag name to the list of available tags.
11402 if test -n "$tagname" ; then
11403 available_tags="$available_tags $tagname"
11409 # Now substitute the updated list of available tags.
11410 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11411 mv "${ofile}T" "$ofile"
11415 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11416 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11417 { (exit 1); exit 1; }; }
11423 # This can be used to rebuild libtool when needed
11424 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11426 # Always use our own libtool.
11427 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11429 # Prevent multiple expansion
11441 if test $ol_enable_perl != no ; then
11442 # Extract the first word of "perl", so it can be a program name with args.
11443 set dummy perl; ac_word=$2
11444 echo "$as_me:$LINENO: checking for $ac_word" >&5
11445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11446 if test "${ac_cv_path_PERLBIN+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11458 test -z "$as_dir" && as_dir=.
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11472 PERLBIN=$ac_cv_path_PERLBIN
11474 if test -n "$PERLBIN"; then
11475 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11476 echo "${ECHO_T}$PERLBIN" >&6
11478 echo "$as_me:$LINENO: result: no" >&5
11479 echo "${ECHO_T}no" >&6
11483 if test "no$PERLBIN" = "no" ; then
11484 if test $ol_enable_perl = yes ; then
11485 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11486 echo "$as_me: error: could not locate perl" >&2;}
11487 { (exit 1); exit 1; }; }
11491 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11492 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11494 if test x"$ol_enable_perl" = "xyes" ; then
11495 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11497 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11504 ac_cpp='$CPP $CPPFLAGS'
11505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11508 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11510 # On Suns, sometimes $CPP names a directory.
11511 if test -n "$CPP" && test -d "$CPP"; then
11514 if test -z "$CPP"; then
11515 if test "${ac_cv_prog_CPP+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 # Double quotes because CPP needs to be expanded
11519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11521 ac_preproc_ok=false
11522 for ac_c_preproc_warn_flag in '' yes
11524 # Use a header file that comes with gcc, so configuring glibc
11525 # with a fresh cross-compiler works.
11526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11527 # <limits.h> exists even on freestanding compilers.
11528 # On the NeXT, cc -E runs the code through the compiler's parser,
11529 # not just through cpp. "Syntax error" is here to catch this case.
11530 cat >conftest.$ac_ext <<_ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11537 # include <limits.h>
11539 # include <assert.h>
11543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11546 grep -v '^ *+' conftest.er1 >conftest.err
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } >/dev/null; then
11551 if test -s conftest.err; then
11552 ac_cpp_err=$ac_c_preproc_warn_flag
11553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11560 if test -z "$ac_cpp_err"; then
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 # Broken: fails on valid input.
11569 rm -f conftest.err conftest.$ac_ext
11571 # OK, works on sane cases. Now check whether non-existent headers
11572 # can be detected and how.
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 #include <ac_nonexistent.h>
11581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null; then
11589 if test -s conftest.err; then
11590 ac_cpp_err=$ac_c_preproc_warn_flag
11591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11598 if test -z "$ac_cpp_err"; then
11599 # Broken: success on invalid input.
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 # Passes both tests.
11609 rm -f conftest.err conftest.$ac_ext
11612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11613 rm -f conftest.err conftest.$ac_ext
11614 if $ac_preproc_ok; then
11619 ac_cv_prog_CPP=$CPP
11622 CPP=$ac_cv_prog_CPP
11624 ac_cv_prog_CPP=$CPP
11626 echo "$as_me:$LINENO: result: $CPP" >&5
11627 echo "${ECHO_T}$CPP" >&6
11628 ac_preproc_ok=false
11629 for ac_c_preproc_warn_flag in '' yes
11631 # Use a header file that comes with gcc, so configuring glibc
11632 # with a fresh cross-compiler works.
11633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634 # <limits.h> exists even on freestanding compilers.
11635 # On the NeXT, cc -E runs the code through the compiler's parser,
11636 # not just through cpp. "Syntax error" is here to catch this case.
11637 cat >conftest.$ac_ext <<_ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11644 # include <limits.h>
11646 # include <assert.h>
11650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11653 grep -v '^ *+' conftest.er1 >conftest.err
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } >/dev/null; then
11658 if test -s conftest.err; then
11659 ac_cpp_err=$ac_c_preproc_warn_flag
11660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11667 if test -z "$ac_cpp_err"; then
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 # Broken: fails on valid input.
11676 rm -f conftest.err conftest.$ac_ext
11678 # OK, works on sane cases. Now check whether non-existent headers
11679 # can be detected and how.
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 #include <ac_nonexistent.h>
11688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } >/dev/null; then
11696 if test -s conftest.err; then
11697 ac_cpp_err=$ac_c_preproc_warn_flag
11698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11705 if test -z "$ac_cpp_err"; then
11706 # Broken: success on invalid input.
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 # Passes both tests.
11716 rm -f conftest.err conftest.$ac_ext
11719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11720 rm -f conftest.err conftest.$ac_ext
11721 if $ac_preproc_ok; then
11724 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11725 See \`config.log' for more details." >&5
11726 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11727 See \`config.log' for more details." >&2;}
11728 { (exit 1); exit 1; }; }
11732 ac_cpp='$CPP $CPPFLAGS'
11733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11739 *mingw32* ) ac_cv_mingw32=yes ;;
11740 *cygwin* ) ac_cv_cygwin=yes ;;
11746 cat >>confdefs.h <<_ACEOF
11747 #define EXEEXT "${EXEEXT}"
11751 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11752 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11753 if test "${ac_cv_lib_be_be_app+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-lbe -lroot -lnet $LIBS"
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11765 /* Override any gcc2 internal prototype to avoid an error. */
11769 /* We use char because int might match the return type of a gcc2
11770 builtin and then its argument prototype would still apply. */
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11782 (eval $ac_link) 2>conftest.er1
11784 grep -v '^ *+' conftest.er1 >conftest.err
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try='test -z "$ac_c_werror_flag"
11790 || test ! -s conftest.err'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try='test -s conftest$ac_exeext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_lib_be_be_app=yes
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_cv_lib_be_be_app=no
11809 rm -f conftest.err conftest.$ac_objext \
11810 conftest$ac_exeext conftest.$ac_ext
11811 LIBS=$ac_check_lib_save_LIBS
11813 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11814 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11815 if test $ac_cv_lib_be_be_app = yes; then
11816 LIBS="$LIBS -lbe -lroot -lnet"
11823 ac_cpp='$CPP $CPPFLAGS'
11824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11827 if test -n "$ac_tool_prefix"; then
11828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11829 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11830 echo "$as_me:$LINENO: checking for $ac_word" >&5
11831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11832 if test "${ac_cv_prog_CC+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 if test -n "$CC"; then
11836 ac_cv_prog_CC="$CC" # Let the user override the test.
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 if test -n "$CC"; then
11856 echo "$as_me:$LINENO: result: $CC" >&5
11857 echo "${ECHO_T}$CC" >&6
11859 echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6
11864 if test -z "$ac_cv_prog_CC"; then
11866 # Extract the first word of "gcc", so it can be a program name with args.
11867 set dummy gcc; ac_word=$2
11868 echo "$as_me:$LINENO: checking for $ac_word" >&5
11869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 if test -n "$ac_ct_CC"; then
11874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877 for as_dir in $PATH
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11883 ac_cv_prog_ac_ct_CC="gcc"
11884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11893 if test -n "$ac_ct_CC"; then
11894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11895 echo "${ECHO_T}$ac_ct_CC" >&6
11897 echo "$as_me:$LINENO: result: no" >&5
11898 echo "${ECHO_T}no" >&6
11903 CC="$ac_cv_prog_CC"
11906 if test -z "$CC"; then
11907 if test -n "$ac_tool_prefix"; then
11908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11909 set dummy ${ac_tool_prefix}cc; ac_word=$2
11910 echo "$as_me:$LINENO: checking for $ac_word" >&5
11911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11912 if test "${ac_cv_prog_CC+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 if test -n "$CC"; then
11916 ac_cv_prog_CC="$CC" # Let the user override the test.
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11922 test -z "$as_dir" && as_dir=.
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11925 ac_cv_prog_CC="${ac_tool_prefix}cc"
11926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 if test -n "$CC"; then
11936 echo "$as_me:$LINENO: result: $CC" >&5
11937 echo "${ECHO_T}$CC" >&6
11939 echo "$as_me:$LINENO: result: no" >&5
11940 echo "${ECHO_T}no" >&6
11944 if test -z "$ac_cv_prog_CC"; then
11946 # Extract the first word of "cc", so it can be a program name with args.
11947 set dummy cc; ac_word=$2
11948 echo "$as_me:$LINENO: checking for $ac_word" >&5
11949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 if test -n "$ac_ct_CC"; then
11954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_ac_ct_CC="cc"
11964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11973 if test -n "$ac_ct_CC"; then
11974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11975 echo "${ECHO_T}$ac_ct_CC" >&6
11977 echo "$as_me:$LINENO: result: no" >&5
11978 echo "${ECHO_T}no" >&6
11983 CC="$ac_cv_prog_CC"
11987 if test -z "$CC"; then
11988 # Extract the first word of "cc", so it can be a program name with args.
11989 set dummy cc; ac_word=$2
11990 echo "$as_me:$LINENO: checking for $ac_word" >&5
11991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11992 if test "${ac_cv_prog_CC+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 if test -n "$CC"; then
11996 ac_cv_prog_CC="$CC" # Let the user override the test.
11998 ac_prog_rejected=no
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12007 ac_prog_rejected=yes
12011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12017 if test $ac_prog_rejected = yes; then
12018 # We found a bogon in the path, so make sure we never use it.
12019 set dummy $ac_cv_prog_CC
12021 if test $# != 0; then
12022 # We chose a different compiler from the bogus one.
12023 # However, it has the same basename, so the bogon will be chosen
12024 # first if we set CC to just the basename; use the full file name.
12026 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12032 if test -n "$CC"; then
12033 echo "$as_me:$LINENO: result: $CC" >&5
12034 echo "${ECHO_T}$CC" >&6
12036 echo "$as_me:$LINENO: result: no" >&5
12037 echo "${ECHO_T}no" >&6
12041 if test -z "$CC"; then
12042 if test -n "$ac_tool_prefix"; then
12045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12047 echo "$as_me:$LINENO: checking for $ac_word" >&5
12048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12049 if test "${ac_cv_prog_CC+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 if test -n "$CC"; then
12053 ac_cv_prog_CC="$CC" # Let the user override the test.
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 if test -n "$CC"; then
12073 echo "$as_me:$LINENO: result: $CC" >&5
12074 echo "${ECHO_T}$CC" >&6
12076 echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6
12080 test -n "$CC" && break
12083 if test -z "$CC"; then
12087 # Extract the first word of "$ac_prog", so it can be a program name with args.
12088 set dummy $ac_prog; ac_word=$2
12089 echo "$as_me:$LINENO: checking for $ac_word" >&5
12090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 if test -n "$ac_ct_CC"; then
12095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 ac_cv_prog_ac_ct_CC="$ac_prog"
12105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12114 if test -n "$ac_ct_CC"; then
12115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12116 echo "${ECHO_T}$ac_ct_CC" >&6
12118 echo "$as_me:$LINENO: result: no" >&5
12119 echo "${ECHO_T}no" >&6
12122 test -n "$ac_ct_CC" && break
12131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12132 See \`config.log' for more details." >&5
12133 echo "$as_me: error: no acceptable C compiler found in \$PATH
12134 See \`config.log' for more details." >&2;}
12135 { (exit 1); exit 1; }; }
12137 # Provide some information about the compiler.
12138 echo "$as_me:$LINENO:" \
12139 "checking for C compiler version" >&5
12140 ac_compiler=`set X $ac_compile; echo $2`
12141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12142 (eval $ac_compiler --version </dev/null >&5) 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }
12146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12147 (eval $ac_compiler -v </dev/null >&5) 2>&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }
12151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12152 (eval $ac_compiler -V </dev/null >&5) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }
12157 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12158 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12159 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 cat >conftest.$ac_ext <<_ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h. */
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 ac_compiler_gnu=yes
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12213 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12215 GCC=`test $ac_compiler_gnu = yes && echo yes`
12216 ac_test_CFLAGS=${CFLAGS+set}
12217 ac_save_CFLAGS=$CFLAGS
12219 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12220 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12221 if test "${ac_cv_prog_cc_g+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 cat >conftest.$ac_ext <<_ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h. */
12239 rm -f conftest.$ac_objext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_c_werror_flag"
12249 || test ! -s conftest.err'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; } &&
12255 { ac_try='test -s conftest.$ac_objext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_prog_cc_g=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12270 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12271 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12272 if test "$ac_test_CFLAGS" = set; then
12273 CFLAGS=$ac_save_CFLAGS
12274 elif test $ac_cv_prog_cc_g = yes; then
12275 if test "$GCC" = yes; then
12281 if test "$GCC" = yes; then
12287 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12288 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12289 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 ac_cv_prog_cc_stdc=no
12294 cat >conftest.$ac_ext <<_ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12300 #include <stdarg.h>
12302 #include <sys/types.h>
12303 #include <sys/stat.h>
12304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12305 struct buf { int x; };
12306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12307 static char *e (p, i)
12313 static char *f (char * (*g) (char **, int), char **p, ...)
12318 s = g (p, va_arg (v,int));
12323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12324 function prototypes and stuff, but not '\xHH' hex character constants.
12325 These don't provoke an error unfortunately, instead are silently treated
12326 as 'x'. The following induces an error, until -std1 is added to get
12327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12328 array size at least. It's necessary to write '\x00'==0 to get something
12329 that's true only with -std1. */
12330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12332 int test (int i, double x);
12333 struct s1 {int (*f) (int a);};
12334 struct s2 {int (*f) (double a);};
12335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12346 # Don't try gcc -ansi; that turns off useful extensions and
12347 # breaks some systems' header files.
12348 # AIX -qlanglvl=ansi
12349 # Ultrix and OSF/1 -std1
12350 # HP-UX 10.20 and later -Ae
12351 # HP-UX older versions -Aa -D_HPUX_SOURCE
12352 # SVR4 -Xc -D__EXTENSIONS__
12353 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12355 CC="$ac_save_CC $ac_arg"
12356 rm -f conftest.$ac_objext
12357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12358 (eval $ac_compile) 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_c_werror_flag"
12366 || test ! -s conftest.err'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378 ac_cv_prog_cc_stdc=$ac_arg
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12385 rm -f conftest.err conftest.$ac_objext
12387 rm -f conftest.$ac_ext conftest.$ac_objext
12392 case "x$ac_cv_prog_cc_stdc" in
12394 echo "$as_me:$LINENO: result: none needed" >&5
12395 echo "${ECHO_T}none needed" >&6 ;;
12397 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12398 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12399 CC="$CC $ac_cv_prog_cc_stdc" ;;
12402 # Some people use a C++ compiler to compile C. Since we use `exit',
12403 # in C++ we need to declare it. In case someone uses the same compiler
12404 # for both compiling C and C++ we need to have the C++ compiler decide
12405 # the declaration of exit, since it's the most demanding environment.
12406 cat >conftest.$ac_ext <<_ACEOF
12407 #ifndef __cplusplus
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 for ac_declaration in \
12435 'extern "C" void std::exit (int) throw (); using std::exit;' \
12436 'extern "C" void std::exit (int); using std::exit;' \
12437 'extern "C" void exit (int) throw ();' \
12438 'extern "C" void exit (int);' \
12441 cat >conftest.$ac_ext <<_ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12448 #include <stdlib.h>
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12461 grep -v '^ *+' conftest.er1 >conftest.err
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -z "$ac_c_werror_flag"
12467 || test ! -s conftest.err'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12533 if test -n "$ac_declaration"; then
12534 echo '#ifdef __cplusplus' >>confdefs.h
12535 echo $ac_declaration >>confdefs.h
12536 echo '#endif' >>confdefs.h
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12546 ac_cpp='$CPP $CPPFLAGS'
12547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12551 depcc="$CC" am_compiler_list=
12553 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12554 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12555 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12559 # We make a subdir and do the tests there. Otherwise we can end up
12560 # making bogus files that we don't know about and never remove. For
12561 # instance it was reported that on HP-UX the gcc test will end up
12562 # making a dummy file named `D' -- because `-MD' means `put the output
12565 # Copy depcomp to subdir because otherwise we won't find it if we're
12566 # using a relative directory.
12567 cp "$am_depcomp" conftest.dir
12569 # We will build objects and dependencies in a subdirectory because
12570 # it helps to detect inapplicable dependency modes. For instance
12571 # both Tru64's cc and ICC support -MD to output dependencies as a
12572 # side effect of compilation, but ICC will put the dependencies in
12573 # the current directory while Tru64 will put them in the object
12577 am_cv_CC_dependencies_compiler_type=none
12578 if test "$am_compiler_list" = ""; then
12579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12581 for depmode in $am_compiler_list; do
12582 # Setup a source with many dependencies, because some compilers
12583 # like to wrap large dependency lists on column 80 (with \), and
12584 # we should not choose a depcomp mode which is confused by this.
12586 # We need to recreate these files for each test, as the compiler may
12587 # overwrite some of them when testing with obscure command lines.
12588 # This happens at least with the AIX C compiler.
12590 for i in 1 2 3 4 5 6; do
12591 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12592 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12593 # Solaris 8's {/usr,}/bin/sh.
12594 touch sub/conftst$i.h
12596 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12600 # after this tag, mechanisms are not by side-effect, so they'll
12601 # only be used when explicitly requested
12602 if test "x$enable_dependency_tracking" = xyes; then
12610 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12611 # mode. It turns out that the SunPro C++ compiler does not properly
12612 # handle `-M -o', and we need to detect this.
12613 if depmode=$depmode \
12614 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12615 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12616 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12617 >/dev/null 2>conftest.err &&
12618 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12619 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12620 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12621 # icc doesn't choke on unknown options, it will just issue warnings
12622 # or remarks (even with -Werror). So we grep stderr for any message
12623 # that says an option was ignored or not supported.
12624 # When given -MP, icc 7.0 and 7.1 complain thusly:
12625 # icc: Command line warning: ignoring option '-M'; no argument required
12626 # The diagnosis changed in icc 8.0:
12627 # icc: Command line remark: option '-MP' not supported
12628 if (grep 'ignoring option' conftest.err ||
12629 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12630 am_cv_CC_dependencies_compiler_type=$depmode
12637 rm -rf conftest.dir
12639 am_cv_CC_dependencies_compiler_type=none
12643 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12644 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12645 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12650 test "x$enable_dependency_tracking" != xno \
12651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12652 am__fastdepCC_TRUE=
12653 am__fastdepCC_FALSE='#'
12655 am__fastdepCC_TRUE='#'
12656 am__fastdepCC_FALSE=
12660 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12661 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12662 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12663 { (exit 1); exit 1; }; }
12666 # test for make depend flag
12669 if test -z "${MKDEP}"; then
12670 OL_MKDEP="${CC-cc}"
12671 if test -z "${MKDEP_FLAGS}"; then
12672 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12673 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12674 if test "${ol_cv_mkdep+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12679 for flag in "-M" "-xM"; do
12680 cat > conftest.c <<EOF
12683 if { ac_try='$OL_MKDEP $flag conftest.c'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } \
12689 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12691 if test ! -f conftest."${ac_object}" ; then
12693 OL_MKDEP_FLAGS="$flag"
12701 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12702 echo "${ECHO_T}$ol_cv_mkdep" >&6
12705 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12709 OL_MKDEP="${MKDEP}"
12710 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12715 if test "${ol_cv_mkdep}" = no ; then
12716 # this will soon become an error
12717 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12718 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12721 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12722 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12723 if test "${ac_cv_lib_s_afopen+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 ac_check_lib_save_LIBS=$LIBS
12728 cat >conftest.$ac_ext <<_ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12735 /* Override any gcc2 internal prototype to avoid an error. */
12739 /* We use char because int might match the return type of a gcc2
12740 builtin and then its argument prototype would still apply. */
12750 rm -f conftest.$ac_objext conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>conftest.er1
12754 grep -v '^ *+' conftest.er1 >conftest.err
12756 cat conftest.err >&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -z "$ac_c_werror_flag"
12760 || test ! -s conftest.err'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest$ac_exeext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 ac_cv_lib_s_afopen=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_cv_lib_s_afopen=no
12779 rm -f conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12783 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12784 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12785 if test $ac_cv_lib_s_afopen = yes; then
12789 cat >>confdefs.h <<\_ACEOF
12790 #define HAVE_AIX_SECURITY 1
12799 ac_cv_func_getopt=no
12801 cat >>confdefs.h <<\_ACEOF
12802 #define BOTH_STRINGS_H 1
12809 WITH_MODULES_ENABLED=no
12810 if test $ol_enable_modules != no ; then
12812 for ac_header in ltdl.h
12814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12816 echo "$as_me:$LINENO: checking for $ac_header" >&5
12817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12824 # Is the header compilable?
12825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12827 cat >conftest.$ac_ext <<_ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 $ac_includes_default
12834 #include <$ac_header>
12836 rm -f conftest.$ac_objext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838 (eval $ac_compile) 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest.$ac_objext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_header_compiler=yes
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12863 ac_header_compiler=no
12865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12867 echo "${ECHO_T}$ac_header_compiler" >&6
12869 # Is the header present?
12870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 #include <$ac_header>
12880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12883 grep -v '^ *+' conftest.er1 >conftest.err
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } >/dev/null; then
12888 if test -s conftest.err; then
12889 ac_cpp_err=$ac_c_preproc_warn_flag
12890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12897 if test -z "$ac_cpp_err"; then
12898 ac_header_preproc=yes
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12903 ac_header_preproc=no
12905 rm -f conftest.err conftest.$ac_ext
12906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12907 echo "${ECHO_T}$ac_header_preproc" >&6
12909 # So? What about this header?
12910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12916 ac_header_preproc=yes
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12933 ## --------------------------------------------- ##
12934 ## Report this to <http://www.openldap.org/its/> ##
12935 ## --------------------------------------------- ##
12938 sed "s/^/$as_me: WARNING: /" >&2
12941 echo "$as_me:$LINENO: checking for $ac_header" >&5
12942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 eval "$as_ac_Header=\$ac_header_preproc"
12948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12953 cat >>confdefs.h <<_ACEOF
12954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12962 if test $ac_cv_header_ltdl_h = no ; then
12963 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
12964 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
12965 { (exit 1); exit 1; }; }
12968 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
12969 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
12970 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 ac_check_lib_save_LIBS=$LIBS
12974 LIBS="-lltdl $LIBS"
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12982 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag"
13007 || test ! -s conftest.err'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } &&
13013 { ac_try='test -s conftest$ac_exeext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_lib_ltdl_lt_dlinit=yes
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 ac_cv_lib_ltdl_lt_dlinit=no
13026 rm -f conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13030 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13031 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13032 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13034 MODULES_LIBS=-lltdl
13036 cat >>confdefs.h <<\_ACEOF
13037 #define HAVE_LIBLTDL 1
13044 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13045 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13046 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13047 { (exit 1); exit 1; }; }
13049 ol_link_modules=yes
13050 WITH_MODULES_ENABLED=yes
13053 for i in $Backends; do
13054 eval "ol_tmp=\$ol_enable_$i"
13055 if test $ol_tmp = mod ; then
13056 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13057 echo "$as_me: WARNING: building static $i backend" >&2;}
13058 eval "ol_enable_$i=yes"
13061 for i in $Overlays; do
13062 eval "ol_tmp=\$ol_enable_$i"
13063 if test $ol_tmp = mod ; then
13064 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13065 echo "$as_me: WARNING: building static $i overlay" >&2;}
13066 eval "ol_enable_$i=yes"
13072 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13073 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13074 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 cat >conftest.$ac_ext <<_ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13086 #include <__ASCII__/generate_error.h>
13090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13093 grep -v '^ *+' conftest.er1 >conftest.err
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } >/dev/null; then
13098 if test -s conftest.err; then
13099 ac_cpp_err=$ac_c_preproc_warn_flag
13100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13107 if test -z "$ac_cpp_err"; then
13108 ol_cv_cpp_ebcdic=yes
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ol_cv_cpp_ebcdic=no
13115 rm -f conftest.err conftest.$ac_ext
13117 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13118 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13119 if test $ol_cv_cpp_ebcdic = yes ; then
13121 cat >>confdefs.h <<\_ACEOF
13122 #define HAVE_EBCDIC 1
13127 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13128 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13129 if test "${ol_cv_header_stdc+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 #include <stdlib.h>
13139 #include <stdarg.h>
13140 #include <string.h>
13143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13146 grep -v '^ *+' conftest.er1 >conftest.err
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } >/dev/null; then
13151 if test -s conftest.err; then
13152 ac_cpp_err=$ac_c_preproc_warn_flag
13153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13160 if test -z "$ac_cpp_err"; then
13161 ol_cv_header_stdc=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ol_cv_header_stdc=no
13168 rm -f conftest.err conftest.$ac_ext
13170 if test $ol_cv_header_stdc = yes; then
13171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13172 cat >conftest.$ac_ext <<_ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 #include <string.h>
13181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13182 $EGREP "memchr" >/dev/null 2>&1; then
13185 ol_cv_header_stdc=no
13191 if test $ol_cv_header_stdc = yes; then
13192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13193 cat >conftest.$ac_ext <<_ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13199 #include <stdlib.h>
13202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13203 $EGREP "free" >/dev/null 2>&1; then
13206 ol_cv_header_stdc=no
13212 if test $ol_cv_header_stdc = yes; then
13213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13214 if test "$cross_compiling" = yes; then
13217 cat >conftest.$ac_ext <<_ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13224 #ifndef HAVE_EBCDIC
13225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13228 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13229 || ('j' <= (c) && (c) <= 'r') \
13230 || ('s' <= (c) && (c) <= 'z'))
13231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13234 int main () { int i; for (i = 0; i < 256; i++)
13235 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13239 rm -f conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241 (eval $ac_link) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13252 echo "$as_me: program exited with status $ac_status" >&5
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ( exit $ac_status )
13257 ol_cv_header_stdc=no
13259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13263 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13264 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13265 if test $ol_cv_header_stdc = yes; then
13266 cat >>confdefs.h <<\_ACEOF
13267 #define STDC_HEADERS 1
13271 ac_cv_header_stdc=disable
13274 if test $ol_cv_header_stdc != yes; then
13275 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13276 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13284 ac_header_dirent=no
13285 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13286 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13287 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13288 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 cat >conftest.$ac_ext <<_ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13298 #include <sys/types.h>
13310 rm -f conftest.$ac_objext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13312 (eval $ac_compile) 2>conftest.er1
13314 grep -v '^ *+' conftest.er1 >conftest.err
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_c_werror_flag"
13320 || test ! -s conftest.err'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest.$ac_objext'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 eval "$as_ac_Header=yes"
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13337 eval "$as_ac_Header=no"
13339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13344 cat >>confdefs.h <<_ACEOF
13345 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13348 ac_header_dirent=$ac_hdr; break
13352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13353 if test $ac_header_dirent = dirent.h; then
13354 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13355 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13356 if test "${ac_cv_search_opendir+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 ac_func_search_save_LIBS=$LIBS
13360 ac_cv_search_opendir=no
13361 cat >conftest.$ac_ext <<_ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13368 /* Override any gcc2 internal prototype to avoid an error. */
13372 /* We use char because int might match the return type of a gcc2
13373 builtin and then its argument prototype would still apply. */
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13385 (eval $ac_link) 2>conftest.er1
13387 grep -v '^ *+' conftest.er1 >conftest.err
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -z "$ac_c_werror_flag"
13393 || test ! -s conftest.err'
13394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395 (eval $ac_try) 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; } &&
13399 { ac_try='test -s conftest$ac_exeext'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; }; then
13405 ac_cv_search_opendir="none required"
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13411 rm -f conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13413 if test "$ac_cv_search_opendir" = no; then
13414 for ac_lib in dir; do
13415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13416 cat >conftest.$ac_ext <<_ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13423 /* Override any gcc2 internal prototype to avoid an error. */
13427 /* We use char because int might match the return type of a gcc2
13428 builtin and then its argument prototype would still apply. */
13438 rm -f conftest.$ac_objext conftest$ac_exeext
13439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13440 (eval $ac_link) 2>conftest.er1
13442 grep -v '^ *+' conftest.er1 >conftest.err
13444 cat conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -z "$ac_c_werror_flag"
13448 || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_cv_search_opendir="-l$ac_lib"
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13467 rm -f conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_func_search_save_LIBS
13473 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13474 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13475 if test "$ac_cv_search_opendir" != no; then
13476 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13481 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13482 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13483 if test "${ac_cv_search_opendir+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 ac_func_search_save_LIBS=$LIBS
13487 ac_cv_search_opendir=no
13488 cat >conftest.$ac_ext <<_ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13495 /* Override any gcc2 internal prototype to avoid an error. */
13499 /* We use char because int might match the return type of a gcc2
13500 builtin and then its argument prototype would still apply. */
13510 rm -f conftest.$ac_objext conftest$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512 (eval $ac_link) 2>conftest.er1
13514 grep -v '^ *+' conftest.er1 >conftest.err
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try='test -z "$ac_c_werror_flag"
13520 || test ! -s conftest.err'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest$ac_exeext'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_cv_search_opendir="none required"
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13538 rm -f conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 if test "$ac_cv_search_opendir" = no; then
13541 for ac_lib in x; do
13542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13543 cat >conftest.$ac_ext <<_ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13550 /* Override any gcc2 internal prototype to avoid an error. */
13554 /* We use char because int might match the return type of a gcc2
13555 builtin and then its argument prototype would still apply. */
13565 rm -f conftest.$ac_objext conftest$ac_exeext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13567 (eval $ac_link) 2>conftest.er1
13569 grep -v '^ *+' conftest.er1 >conftest.err
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_c_werror_flag"
13575 || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_search_opendir="-l$ac_lib"
13590 echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13594 rm -f conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_func_search_save_LIBS
13600 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13601 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13602 if test "$ac_cv_search_opendir" != no; then
13603 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13609 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13610 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13611 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 #include <sys/types.h>
13621 #include <sys/wait.h>
13622 #ifndef WEXITSTATUS
13623 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13626 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13634 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13639 rm -f conftest.$ac_objext
13640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13641 (eval $ac_compile) 2>conftest.er1
13643 grep -v '^ *+' conftest.er1 >conftest.err
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_c_werror_flag"
13649 || test ! -s conftest.err'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_cv_header_sys_wait_h=yes
13663 echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.$ac_ext >&5
13666 ac_cv_header_sys_wait_h=no
13668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13670 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13671 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13672 if test $ac_cv_header_sys_wait_h = yes; then
13674 cat >>confdefs.h <<\_ACEOF
13675 #define HAVE_SYS_WAIT_H 1
13680 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13681 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13682 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13683 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 cat >conftest.$ac_ext <<_ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 #include <sys/types.h>
13692 #include <termios.h>
13698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13699 $EGREP "yes" >/dev/null 2>&1; then
13700 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13702 ac_cv_sys_tiocgwinsz_in_termios_h=no
13707 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13708 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13710 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13711 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13712 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13713 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 #include <sys/types.h>
13723 #include <sys/ioctl.h>
13729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13730 $EGREP "yes" >/dev/null 2>&1; then
13731 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13733 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13738 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13739 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13741 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13743 cat >>confdefs.h <<\_ACEOF
13744 #define GWINSZ_IN_SYS_IOCTL 1
13848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo "$as_me:$LINENO: checking for $ac_header" >&5
13851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13858 # Is the header compilable?
13859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 $ac_includes_default
13868 #include <$ac_header>
13870 rm -f conftest.$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872 (eval $ac_compile) 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -z "$ac_c_werror_flag"
13880 || test ! -s conftest.err'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try='test -s conftest.$ac_objext'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; }; then
13892 ac_header_compiler=yes
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_header_compiler=no
13899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13901 echo "${ECHO_T}$ac_header_compiler" >&6
13903 # Is the header present?
13904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 #include <$ac_header>
13914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13917 grep -v '^ *+' conftest.er1 >conftest.err
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } >/dev/null; then
13922 if test -s conftest.err; then
13923 ac_cpp_err=$ac_c_preproc_warn_flag
13924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13931 if test -z "$ac_cpp_err"; then
13932 ac_header_preproc=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_header_preproc=no
13939 rm -f conftest.err conftest.$ac_ext
13940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941 echo "${ECHO_T}$ac_header_preproc" >&6
13943 # So? What about this header?
13944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13950 ac_header_preproc=yes
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13967 ## --------------------------------------------- ##
13968 ## Report this to <http://www.openldap.org/its/> ##
13969 ## --------------------------------------------- ##
13972 sed "s/^/$as_me: WARNING: /" >&2
13975 echo "$as_me:$LINENO: checking for $ac_header" >&5
13976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 eval "$as_ac_Header=\$ac_header_preproc"
13982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13987 cat >>confdefs.h <<_ACEOF
13988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13996 if test "$ac_cv_mingw32" = yes ; then
13999 for ac_header in winsock.h winsock2.h
14001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14003 echo "$as_me:$LINENO: checking for $ac_header" >&5
14004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14011 # Is the header compilable?
14012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14014 cat >conftest.$ac_ext <<_ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 $ac_includes_default
14021 #include <$ac_header>
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>conftest.er1
14027 grep -v '^ *+' conftest.er1 >conftest.err
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_header_compiler=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_header_compiler=no
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14054 echo "${ECHO_T}$ac_header_compiler" >&6
14056 # Is the header present?
14057 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <$ac_header>
14067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14070 grep -v '^ *+' conftest.er1 >conftest.err
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } >/dev/null; then
14075 if test -s conftest.err; then
14076 ac_cpp_err=$ac_c_preproc_warn_flag
14077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14084 if test -z "$ac_cpp_err"; then
14085 ac_header_preproc=yes
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_header_preproc=no
14092 rm -f conftest.err conftest.$ac_ext
14093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14094 echo "${ECHO_T}$ac_header_preproc" >&6
14096 # So? What about this header?
14097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14103 ac_header_preproc=yes
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14120 ## --------------------------------------------- ##
14121 ## Report this to <http://www.openldap.org/its/> ##
14122 ## --------------------------------------------- ##
14125 sed "s/^/$as_me: WARNING: /" >&2
14128 echo "$as_me:$LINENO: checking for $ac_header" >&5
14129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 eval "$as_ac_Header=\$ac_header_preproc"
14135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14140 cat >>confdefs.h <<_ACEOF
14141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14151 for ac_header in resolv.h
14153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14154 echo "$as_me:$LINENO: checking for $ac_header" >&5
14155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 $ac_includes_default
14166 #include <netinet/in.h>
14169 #include <$ac_header>
14171 rm -f conftest.$ac_objext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14173 (eval $ac_compile) 2>conftest.er1
14175 grep -v '^ *+' conftest.er1 >conftest.err
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest.$ac_objext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 eval "$as_ac_Header=yes"
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 eval "$as_ac_Header=no"
14200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14205 cat >>confdefs.h <<_ACEOF
14206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14215 for ac_header in netinet/tcp.h
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 echo "$as_me:$LINENO: checking for $ac_header" >&5
14219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 $ac_includes_default
14230 #include <netinet/in.h>
14233 #include <$ac_header>
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>conftest.er1
14239 grep -v '^ *+' conftest.er1 >conftest.err
14241 cat conftest.err >&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); } &&
14244 { ac_try='test -z "$ac_c_werror_flag"
14245 || test ! -s conftest.err'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest.$ac_objext'
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; }; then
14257 eval "$as_ac_Header=yes"
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 eval "$as_ac_Header=no"
14264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14269 cat >>confdefs.h <<_ACEOF
14270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14279 for ac_header in sys/ucred.h
14281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14282 echo "$as_me:$LINENO: checking for $ac_header" >&5
14283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 $ac_includes_default
14294 #ifdef HAVE_SYS_PARAM_H
14295 #include <sys/param.h>
14299 #include <$ac_header>
14301 rm -f conftest.$ac_objext
14302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14303 (eval $ac_compile) 2>conftest.er1
14305 grep -v '^ *+' conftest.er1 >conftest.err
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag"
14311 || test ! -s conftest.err'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14323 eval "$as_ac_Header=yes"
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 eval "$as_ac_Header=no"
14330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14335 cat >>confdefs.h <<_ACEOF
14336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14347 for ac_func in sigaction sigset
14349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14350 echo "$as_me:$LINENO: checking for $ac_func" >&5
14351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14352 if eval "test \"\${$as_ac_var+set}\" = set"; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14363 #define $ac_func innocuous_$ac_func
14365 /* System header to define __stub macros and hopefully few prototypes,
14366 which can conflict with char $ac_func (); below.
14367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14368 <limits.h> exists even on freestanding compilers. */
14371 # include <limits.h>
14373 # include <assert.h>
14378 /* Override any gcc2 internal prototype to avoid an error. */
14383 /* We use char because int might match the return type of a gcc2
14384 builtin and then its argument prototype would still apply. */
14386 /* The GNU C library defines this for functions which it implements
14387 to always fail with ENOSYS. Some functions are actually named
14388 something starting with __ and the normal name is an alias. */
14389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14392 char (*f) () = $ac_func;
14401 return f != $ac_func;
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14408 (eval $ac_link) 2>conftest.er1
14410 grep -v '^ *+' conftest.er1 >conftest.err
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } &&
14415 { ac_try='test -z "$ac_c_werror_flag"
14416 || test ! -s conftest.err'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; } &&
14422 { ac_try='test -s conftest$ac_exeext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 eval "$as_ac_var=yes"
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14433 eval "$as_ac_var=no"
14435 rm -f conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
14438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14440 if test `eval echo '${'$as_ac_var'}'` = yes; then
14441 cat >>confdefs.h <<_ACEOF
14442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14449 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14451 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14452 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14453 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 ac_check_lib_save_LIBS=$LIBS
14458 cat >conftest.$ac_ext <<_ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14465 /* Override any gcc2 internal prototype to avoid an error. */
14469 /* We use char because int might match the return type of a gcc2
14470 builtin and then its argument prototype would still apply. */
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14482 (eval $ac_link) 2>conftest.er1
14484 grep -v '^ *+' conftest.er1 >conftest.err
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } &&
14489 { ac_try='test -z "$ac_c_werror_flag"
14490 || test ! -s conftest.err'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; } &&
14496 { ac_try='test -s conftest$ac_exeext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; }; then
14502 ac_cv_lib_V3_sigset=yes
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14507 ac_cv_lib_V3_sigset=no
14509 rm -f conftest.err conftest.$ac_objext \
14510 conftest$ac_exeext conftest.$ac_ext
14511 LIBS=$ac_check_lib_save_LIBS
14513 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14514 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14515 if test $ac_cv_lib_V3_sigset = yes; then
14516 cat >>confdefs.h <<_ACEOF
14517 #define HAVE_LIBV3 1
14526 if test "$ac_cv_header_winsock_h" = yes; then
14527 echo "$as_me:$LINENO: checking for winsock" >&5
14528 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14529 if test "${ol_cv_winsock+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 for curlib in ws2_32 wsock32; do
14534 LIBS="$LIBS -l$curlib"
14535 cat >conftest.$ac_ext <<_ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 #include <winsock.h>
14548 select(0,NULL,NULL,NULL,NULL);
14550 gethostname(NULL,0);
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558 (eval $ac_link) 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try='test -z "$ac_c_werror_flag"
14566 || test ! -s conftest.err'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest$ac_exeext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14585 rm -f conftest.err conftest.$ac_objext \
14586 conftest$ac_exeext conftest.$ac_ext
14588 if test $ol_cv_winsock = yes; then
14590 cat >>confdefs.h <<\_ACEOF
14591 #define HAVE_WINSOCK 1
14594 ac_cv_func_socket=yes
14595 ac_cv_func_select=yes
14596 ac_cv_func_closesocket=yes
14597 ac_cv_func_gethostname=yes
14598 if test $curlib = ws2_32; then
14599 ol_cv_winsock=winsock2
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_WINSOCK2 1
14611 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14612 echo "${ECHO_T}$ol_cv_winsock" >&6
14616 echo "$as_me:$LINENO: checking for socket" >&5
14617 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14618 if test "${ac_cv_func_socket+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 cat >conftest.$ac_ext <<_ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14629 #define socket innocuous_socket
14631 /* System header to define __stub macros and hopefully few prototypes,
14632 which can conflict with char socket (); below.
14633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14634 <limits.h> exists even on freestanding compilers. */
14637 # include <limits.h>
14639 # include <assert.h>
14644 /* Override any gcc2 internal prototype to avoid an error. */
14649 /* We use char because int might match the return type of a gcc2
14650 builtin and then its argument prototype would still apply. */
14652 /* The GNU C library defines this for functions which it implements
14653 to always fail with ENOSYS. Some functions are actually named
14654 something starting with __ and the normal name is an alias. */
14655 #if defined (__stub_socket) || defined (__stub___socket)
14658 char (*f) () = socket;
14667 return f != socket;
14672 rm -f conftest.$ac_objext conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674 (eval $ac_link) 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -z "$ac_c_werror_flag"
14682 || test ! -s conftest.err'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest$ac_exeext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_cv_func_socket=yes
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 ac_cv_func_socket=no
14701 rm -f conftest.err conftest.$ac_objext \
14702 conftest$ac_exeext conftest.$ac_ext
14704 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14705 echo "${ECHO_T}$ac_cv_func_socket" >&6
14706 if test $ac_cv_func_socket = yes; then
14711 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14712 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14713 if test "${ac_cv_lib_socket_main+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 ac_check_lib_save_LIBS=$LIBS
14717 LIBS="-lsocket $LIBS"
14718 cat >conftest.$ac_ext <<_ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14736 (eval $ac_link) 2>conftest.er1
14738 grep -v '^ *+' conftest.er1 >conftest.err
14740 cat conftest.err >&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } &&
14743 { ac_try='test -z "$ac_c_werror_flag"
14744 || test ! -s conftest.err'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; } &&
14750 { ac_try='test -s conftest$ac_exeext'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 ac_cv_lib_socket_main=yes
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14761 ac_cv_lib_socket_main=no
14763 rm -f conftest.err conftest.$ac_objext \
14764 conftest$ac_exeext conftest.$ac_ext
14765 LIBS=$ac_check_lib_save_LIBS
14767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14768 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14769 if test $ac_cv_lib_socket_main = yes; then
14770 cat >>confdefs.h <<_ACEOF
14771 #define HAVE_LIBSOCKET 1
14774 LIBS="-lsocket $LIBS"
14779 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14780 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14781 if test "${ac_cv_lib_net_main+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 ac_check_lib_save_LIBS=$LIBS
14786 cat >conftest.$ac_ext <<_ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14802 rm -f conftest.$ac_objext conftest$ac_exeext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14804 (eval $ac_link) 2>conftest.er1
14806 grep -v '^ *+' conftest.er1 >conftest.err
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -z "$ac_c_werror_flag"
14812 || test ! -s conftest.err'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; } &&
14818 { ac_try='test -s conftest$ac_exeext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_cv_lib_net_main=yes
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_cv_lib_net_main=no
14831 rm -f conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 LIBS=$ac_check_lib_save_LIBS
14835 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14836 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14837 if test $ac_cv_lib_net_main = yes; then
14838 cat >>confdefs.h <<_ACEOF
14839 #define HAVE_LIBNET 1
14847 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14848 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14849 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 ac_check_lib_save_LIBS=$LIBS
14853 LIBS="-lnsl_s $LIBS"
14854 cat >conftest.$ac_ext <<_ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14870 rm -f conftest.$ac_objext conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>conftest.er1
14874 grep -v '^ *+' conftest.er1 >conftest.err
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag"
14880 || test ! -s conftest.err'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest$ac_exeext'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }; then
14892 ac_cv_lib_nsl_s_main=yes
14894 echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ac_cv_lib_nsl_s_main=no
14899 rm -f conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14901 LIBS=$ac_check_lib_save_LIBS
14903 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14904 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14905 if test $ac_cv_lib_nsl_s_main = yes; then
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_LIBNSL_S 1
14910 LIBS="-lnsl_s $LIBS"
14915 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14916 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14917 if test "${ac_cv_lib_nsl_main+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 ac_check_lib_save_LIBS=$LIBS
14922 cat >conftest.$ac_ext <<_ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14940 (eval $ac_link) 2>conftest.er1
14942 grep -v '^ *+' conftest.er1 >conftest.err
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest$ac_exeext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_lib_nsl_main=yes
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_cv_lib_nsl_main=no
14967 rm -f conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext conftest.$ac_ext
14969 LIBS=$ac_check_lib_save_LIBS
14971 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14972 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14973 if test $ac_cv_lib_nsl_main = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_LIBNSL 1
14983 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14984 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14985 if test "${ac_cv_lib_inet_socket+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14988 ac_check_lib_save_LIBS=$LIBS
14989 LIBS="-linet $LIBS"
14990 cat >conftest.$ac_ext <<_ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14997 /* Override any gcc2 internal prototype to avoid an error. */
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15012 rm -f conftest.$ac_objext conftest$ac_exeext
15013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15014 (eval $ac_link) 2>conftest.er1
15016 grep -v '^ *+' conftest.er1 >conftest.err
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
15021 { ac_try='test -z "$ac_c_werror_flag"
15022 || test ! -s conftest.err'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_lib_inet_socket=yes
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15039 ac_cv_lib_inet_socket=no
15041 rm -f conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15043 LIBS=$ac_check_lib_save_LIBS
15045 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15046 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15047 if test $ac_cv_lib_inet_socket = yes; then
15048 cat >>confdefs.h <<_ACEOF
15049 #define HAVE_LIBINET 1
15052 LIBS="-linet $LIBS"
15057 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15058 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15059 if test "${ac_cv_lib_gen_main+set}" = set; then
15060 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 ac_check_lib_save_LIBS=$LIBS
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082 (eval $ac_link) 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_lib_gen_main=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_lib_gen_main=no
15109 rm -f conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15111 LIBS=$ac_check_lib_save_LIBS
15113 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15114 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15115 if test $ac_cv_lib_gen_main = yes; then
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_LIBGEN 1
15128 echo "$as_me:$LINENO: checking for select" >&5
15129 echo $ECHO_N "checking for select... $ECHO_C" >&6
15130 if test "${ac_cv_func_select+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 cat >conftest.$ac_ext <<_ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 /* Define select to an innocuous variant, in case <limits.h> declares select.
15140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15141 #define select innocuous_select
15143 /* System header to define __stub macros and hopefully few prototypes,
15144 which can conflict with char select (); below.
15145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15146 <limits.h> exists even on freestanding compilers. */
15149 # include <limits.h>
15151 # include <assert.h>
15156 /* Override any gcc2 internal prototype to avoid an error. */
15161 /* We use char because int might match the return type of a gcc2
15162 builtin and then its argument prototype would still apply. */
15164 /* The GNU C library defines this for functions which it implements
15165 to always fail with ENOSYS. Some functions are actually named
15166 something starting with __ and the normal name is an alias. */
15167 #if defined (__stub_select) || defined (__stub___select)
15170 char (*f) () = select;
15179 return f != select;
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186 (eval $ac_link) 2>conftest.er1
15188 grep -v '^ *+' conftest.er1 >conftest.err
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try='test -z "$ac_c_werror_flag"
15194 || test ! -s conftest.err'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest$ac_exeext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15206 ac_cv_func_select=yes
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15211 ac_cv_func_select=no
15213 rm -f conftest.err conftest.$ac_objext \
15214 conftest$ac_exeext conftest.$ac_ext
15216 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15217 echo "${ECHO_T}$ac_cv_func_select" >&6
15218 if test $ac_cv_func_select = yes; then
15221 { { echo "$as_me:$LINENO: error: select() required." >&5
15222 echo "$as_me: error: select() required." >&2;}
15223 { (exit 1); exit 1; }; }
15227 if test "${ac_cv_header_winsock_h}" != yes; then
15230 for ac_header in sys/select.h sys/socket.h
15232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15234 echo "$as_me:$LINENO: checking for $ac_header" >&5
15235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15242 # Is the header compilable?
15243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 $ac_includes_default
15252 #include <$ac_header>
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>conftest.er1
15258 grep -v '^ *+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
15263 { ac_try='test -z "$ac_c_werror_flag"
15264 || test ! -s conftest.err'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_header_compiler=yes
15278 echo "$as_me: failed program was:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15281 ac_header_compiler=no
15283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15285 echo "${ECHO_T}$ac_header_compiler" >&6
15287 # Is the header present?
15288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 #include <$ac_header>
15298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15301 grep -v '^ *+' conftest.er1 >conftest.err
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } >/dev/null; then
15306 if test -s conftest.err; then
15307 ac_cpp_err=$ac_c_preproc_warn_flag
15308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15315 if test -z "$ac_cpp_err"; then
15316 ac_header_preproc=yes
15318 echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15321 ac_header_preproc=no
15323 rm -f conftest.err conftest.$ac_ext
15324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15325 echo "${ECHO_T}$ac_header_preproc" >&6
15327 # So? What about this header?
15328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15334 ac_header_preproc=yes
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15344 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15351 ## --------------------------------------------- ##
15352 ## Report this to <http://www.openldap.org/its/> ##
15353 ## --------------------------------------------- ##
15356 sed "s/^/$as_me: WARNING: /" >&2
15359 echo "$as_me:$LINENO: checking for $ac_header" >&5
15360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 eval "$as_ac_Header=\$ac_header_preproc"
15366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15371 cat >>confdefs.h <<_ACEOF
15372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15379 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15380 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15381 if test "${ac_cv_func_select_args+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15385 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15386 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 $ac_includes_default
15394 #if HAVE_SYS_SELECT_H
15395 # include <sys/select.h>
15397 #if HAVE_SYS_SOCKET_H
15398 # include <sys/socket.h>
15404 extern int select ($ac_arg1,
15405 $ac_arg234, $ac_arg234, $ac_arg234,
15411 rm -f conftest.$ac_objext
15412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15413 (eval $ac_compile) 2>conftest.er1
15415 grep -v '^ *+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag"
15421 || test ! -s conftest.err'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try='test -s conftest.$ac_objext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15433 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15435 echo "$as_me: failed program was:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15443 # Provide a safe default value.
15444 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15447 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15448 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15449 ac_save_IFS=$IFS; IFS=','
15450 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15454 cat >>confdefs.h <<_ACEOF
15455 #define SELECT_TYPE_ARG1 $1
15459 cat >>confdefs.h <<_ACEOF
15460 #define SELECT_TYPE_ARG234 ($2)
15464 cat >>confdefs.h <<_ACEOF
15465 #define SELECT_TYPE_ARG5 ($3)
15474 for ac_func in poll
15476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15477 echo "$as_me:$LINENO: checking for $ac_func" >&5
15478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15479 if eval "test \"\${$as_ac_var+set}\" = set"; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 cat >conftest.$ac_ext <<_ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15490 #define $ac_func innocuous_$ac_func
15492 /* System header to define __stub macros and hopefully few prototypes,
15493 which can conflict with char $ac_func (); below.
15494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15495 <limits.h> exists even on freestanding compilers. */
15498 # include <limits.h>
15500 # include <assert.h>
15505 /* Override any gcc2 internal prototype to avoid an error. */
15510 /* We use char because int might match the return type of a gcc2
15511 builtin and then its argument prototype would still apply. */
15513 /* The GNU C library defines this for functions which it implements
15514 to always fail with ENOSYS. Some functions are actually named
15515 something starting with __ and the normal name is an alias. */
15516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15519 char (*f) () = $ac_func;
15528 return f != $ac_func;
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15535 (eval $ac_link) 2>conftest.er1
15537 grep -v '^ *+' conftest.er1 >conftest.err
15539 cat conftest.err >&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } &&
15542 { ac_try='test -z "$ac_c_werror_flag"
15543 || test ! -s conftest.err'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; } &&
15549 { ac_try='test -s conftest$ac_exeext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 eval "$as_ac_var=yes"
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 eval "$as_ac_var=no"
15562 rm -f conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
15565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15568 cat >>confdefs.h <<_ACEOF
15569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15575 if test $ac_cv_func_poll = yes; then
15578 for ac_header in poll.h sys/poll.h
15580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15582 echo "$as_me:$LINENO: checking for $ac_header" >&5
15583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15590 # Is the header compilable?
15591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15593 cat >conftest.$ac_ext <<_ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 $ac_includes_default
15600 #include <$ac_header>
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>conftest.er1
15606 grep -v '^ *+' conftest.er1 >conftest.err
15608 cat conftest.err >&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -z "$ac_c_werror_flag"
15612 || test ! -s conftest.err'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try='test -s conftest.$ac_objext'
15619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15620 (eval $ac_try) 2>&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); }; }; then
15624 ac_header_compiler=yes
15626 echo "$as_me: failed program was:" >&5
15627 sed 's/^/| /' conftest.$ac_ext >&5
15629 ac_header_compiler=no
15631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15633 echo "${ECHO_T}$ac_header_compiler" >&6
15635 # Is the header present?
15636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <$ac_header>
15646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } >/dev/null; then
15654 if test -s conftest.err; then
15655 ac_cpp_err=$ac_c_preproc_warn_flag
15656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15663 if test -z "$ac_cpp_err"; then
15664 ac_header_preproc=yes
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 ac_header_preproc=no
15671 rm -f conftest.err conftest.$ac_ext
15672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15673 echo "${ECHO_T}$ac_header_preproc" >&6
15675 # So? What about this header?
15676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15682 ac_header_preproc=yes
15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15699 ## --------------------------------------------- ##
15700 ## Report this to <http://www.openldap.org/its/> ##
15701 ## --------------------------------------------- ##
15704 sed "s/^/$as_me: WARNING: /" >&2
15707 echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 eval "$as_ac_Header=\$ac_header_preproc"
15714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15719 cat >>confdefs.h <<_ACEOF
15720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15730 for ac_header in sys/epoll.h
15732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15734 echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15742 # Is the header compilable?
15743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 $ac_includes_default
15752 #include <$ac_header>
15754 rm -f conftest.$ac_objext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15756 (eval $ac_compile) 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } &&
15763 { ac_try='test -z "$ac_c_werror_flag"
15764 || test ! -s conftest.err'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; } &&
15770 { ac_try='test -s conftest.$ac_objext'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }; then
15776 ac_header_compiler=yes
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ac_header_compiler=no
15783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15785 echo "${ECHO_T}$ac_header_compiler" >&6
15787 # Is the header present?
15788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15790 cat >conftest.$ac_ext <<_ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h. */
15796 #include <$ac_header>
15798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } >/dev/null; then
15806 if test -s conftest.err; then
15807 ac_cpp_err=$ac_c_preproc_warn_flag
15808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15815 if test -z "$ac_cpp_err"; then
15816 ac_header_preproc=yes
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 ac_header_preproc=no
15823 rm -f conftest.err conftest.$ac_ext
15824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15825 echo "${ECHO_T}$ac_header_preproc" >&6
15827 # So? What about this header?
15828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15834 ac_header_preproc=yes
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15851 ## --------------------------------------------- ##
15852 ## Report this to <http://www.openldap.org/its/> ##
15853 ## --------------------------------------------- ##
15856 sed "s/^/$as_me: WARNING: /" >&2
15859 echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 eval "$as_ac_Header=\$ac_header_preproc"
15866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15879 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15880 echo "$as_me:$LINENO: checking for epoll system call" >&5
15881 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15882 if test "$cross_compiling" = yes; then
15883 echo "$as_me:$LINENO: result: no" >&5
15884 echo "${ECHO_T}no" >&6
15886 cat >conftest.$ac_ext <<_ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 int main(int argc, char **argv)
15894 int epfd = epoll_create(256);
15895 exit (epfd == -1 ? 1 : 0);
15898 rm -f conftest$ac_exeext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15900 (eval $ac_link) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 echo "$as_me:$LINENO: result: yes" >&5
15910 echo "${ECHO_T}yes" >&6
15912 cat >>confdefs.h <<\_ACEOF
15913 #define HAVE_EPOLL 1
15917 echo "$as_me: program exited with status $ac_status" >&5
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 ( exit $ac_status )
15922 echo "$as_me:$LINENO: result: no" >&5
15923 echo "${ECHO_T}no" >&6
15925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15930 for ac_header in sys/devpoll.h
15932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15934 echo "$as_me:$LINENO: checking for $ac_header" >&5
15935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15937 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15942 # Is the header compilable?
15943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 $ac_includes_default
15952 #include <$ac_header>
15954 rm -f conftest.$ac_objext
15955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15956 (eval $ac_compile) 2>conftest.er1
15958 grep -v '^ *+' conftest.er1 >conftest.err
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -z "$ac_c_werror_flag"
15964 || test ! -s conftest.err'
15965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15966 (eval $ac_try) 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try='test -s conftest.$ac_objext'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; }; then
15976 ac_header_compiler=yes
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15981 ac_header_compiler=no
15983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15985 echo "${ECHO_T}$ac_header_compiler" >&6
15987 # Is the header present?
15988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15990 cat >conftest.$ac_ext <<_ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h. */
15996 #include <$ac_header>
15998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_c_preproc_warn_flag
16008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16015 if test -z "$ac_cpp_err"; then
16016 ac_header_preproc=yes
16018 echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 ac_header_preproc=no
16023 rm -f conftest.err conftest.$ac_ext
16024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025 echo "${ECHO_T}$ac_header_preproc" >&6
16027 # So? What about this header?
16028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034 ac_header_preproc=yes
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16051 ## --------------------------------------------- ##
16052 ## Report this to <http://www.openldap.org/its/> ##
16053 ## --------------------------------------------- ##
16056 sed "s/^/$as_me: WARNING: /" >&2
16059 echo "$as_me:$LINENO: checking for $ac_header" >&5
16060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16062 echo $ECHO_N "(cached) $ECHO_C" >&6
16064 eval "$as_ac_Header=\$ac_header_preproc"
16066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16079 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16080 -a "${ac_cv_header_poll_h}" = yes ; \
16082 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16083 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16084 if test "$cross_compiling" = yes; then
16085 echo "$as_me:$LINENO: result: no" >&5
16086 echo "${ECHO_T}no" >&6
16088 cat >conftest.$ac_ext <<_ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 int main(int argc, char **argv)
16096 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16097 exit (devpollfd == -1 ? 1 : 0);
16100 rm -f conftest$ac_exeext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102 (eval $ac_link) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 echo "$as_me:$LINENO: result: yes" >&5
16112 echo "${ECHO_T}yes" >&6
16114 cat >>confdefs.h <<\_ACEOF
16115 #define HAVE_DEVPOLL 1
16119 echo "$as_me: program exited with status $ac_status" >&5
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 ( exit $ac_status )
16124 echo "$as_me:$LINENO: result: no" >&5
16125 echo "${ECHO_T}no" >&6
16127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16132 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16133 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16134 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 cat >conftest.$ac_ext <<_ACEOF
16141 cat confdefs.h >>conftest.$ac_ext
16142 cat >>conftest.$ac_ext <<_ACEOF
16143 /* end confdefs.h. */
16146 #include <sys/types.h>
16149 #include <stdlib.h>
16154 char *c = (char *) *sys_errlist
16159 rm -f conftest.$ac_objext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16161 (eval $ac_compile) 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } &&
16168 { ac_try='test -z "$ac_c_werror_flag"
16169 || test ! -s conftest.err'
16170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171 (eval $ac_try) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; } &&
16175 { ac_try='test -s conftest.$ac_objext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ol_cv_dcl_sys_errlist=yes
16182 ol_cv_have_sys_errlist=yes
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16187 ol_cv_dcl_sys_errlist=no
16189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16191 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16192 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16194 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16195 if test $ol_cv_dcl_sys_errlist = no ; then
16197 cat >>confdefs.h <<\_ACEOF
16198 #define DECL_SYS_ERRLIST 1
16202 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16203 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16204 if test "${ol_cv_have_sys_errlist+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16218 char *c = (char *) *sys_errlist
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16225 (eval $ac_link) 2>conftest.er1
16227 grep -v '^ *+' conftest.er1 >conftest.err
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest$ac_exeext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 ol_cv_have_sys_errlist=yes
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16250 ol_cv_have_sys_errlist=no
16252 rm -f conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16255 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16256 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16258 if test $ol_cv_have_sys_errlist = yes ; then
16260 cat >>confdefs.h <<\_ACEOF
16261 #define HAVE_SYS_ERRLIST 1
16267 for ac_func in strerror strerror_r
16269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16270 echo "$as_me:$LINENO: checking for $ac_func" >&5
16271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16272 if eval "test \"\${$as_ac_var+set}\" = set"; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16283 #define $ac_func innocuous_$ac_func
16285 /* System header to define __stub macros and hopefully few prototypes,
16286 which can conflict with char $ac_func (); below.
16287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16288 <limits.h> exists even on freestanding compilers. */
16291 # include <limits.h>
16293 # include <assert.h>
16298 /* Override any gcc2 internal prototype to avoid an error. */
16303 /* We use char because int might match the return type of a gcc2
16304 builtin and then its argument prototype would still apply. */
16306 /* The GNU C library defines this for functions which it implements
16307 to always fail with ENOSYS. Some functions are actually named
16308 something starting with __ and the normal name is an alias. */
16309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16312 char (*f) () = $ac_func;
16321 return f != $ac_func;
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16328 (eval $ac_link) 2>conftest.er1
16330 grep -v '^ *+' conftest.er1 >conftest.err
16332 cat conftest.err >&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } &&
16335 { ac_try='test -z "$ac_c_werror_flag"
16336 || test ! -s conftest.err'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; } &&
16342 { ac_try='test -s conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 eval "$as_ac_var=yes"
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 eval "$as_ac_var=no"
16355 rm -f conftest.err conftest.$ac_objext \
16356 conftest$ac_exeext conftest.$ac_ext
16358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16360 if test `eval echo '${'$as_ac_var'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16368 ol_cv_func_strerror_r=no
16369 if test "${ac_cv_func_strerror_r}" = yes ; then
16370 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16371 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16372 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 cat >conftest.$ac_ext <<_ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 #include <string.h>
16384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16385 $EGREP "strerror_r" >/dev/null 2>&1; then
16386 ol_decl_strerror_r=yes
16388 ol_decl_strerror_r=no
16392 if test $ol_decl_strerror_r = yes ; then
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <string.h>
16403 /* from autoconf 2.59 */
16405 char x = *strerror_r (0, buf, sizeof buf);
16406 char *p = strerror_r (0, buf, sizeof buf);
16412 rm -f conftest.$ac_objext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16414 (eval $ac_compile) 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } &&
16421 { ac_try='test -z "$ac_c_werror_flag"
16422 || test ! -s conftest.err'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ol_cv_nonposix_strerror_r=yes
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ol_cv_nonposix_strerror_r=no
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16443 if test "$cross_compiling" = yes; then
16444 ol_cv_nonposix_strerror=no
16446 cat >conftest.$ac_ext <<_ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16456 strerror_r( 1, buf, sizeof buf );
16457 exit( buf[0] == 0 );
16461 rm -f conftest$ac_exeext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16463 (eval $ac_link) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468 (eval $ac_try) 2>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; }; then
16472 ol_cv_nonposix_strerror_r=yes
16474 echo "$as_me: program exited with status $ac_status" >&5
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 ( exit $ac_status )
16479 ol_cv_nonposix_strerror=no
16481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16486 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16487 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16488 if test $ol_cv_nonposix_strerror_r = yes ; then
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE_NONPOSIX_STRERROR_R 1
16496 elif test "${ac_cv_func_strerror}" = no ; then
16497 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16498 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16499 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16511 #include <sys/types.h>
16514 #include <stdlib.h>
16519 char *c = (char *) *sys_errlist
16524 rm -f conftest.$ac_objext
16525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16526 (eval $ac_compile) 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -z "$ac_c_werror_flag"
16534 || test ! -s conftest.err'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest.$ac_objext'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ol_cv_dcl_sys_errlist=yes
16547 ol_cv_have_sys_errlist=yes
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 ol_cv_dcl_sys_errlist=no
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16556 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16557 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16559 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16560 if test $ol_cv_dcl_sys_errlist = no ; then
16562 cat >>confdefs.h <<\_ACEOF
16563 #define DECL_SYS_ERRLIST 1
16567 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16568 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16569 if test "${ol_cv_have_sys_errlist+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 cat >conftest.$ac_ext <<_ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16583 char *c = (char *) *sys_errlist
16588 rm -f conftest.$ac_objext conftest$ac_exeext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16590 (eval $ac_link) 2>conftest.er1
16592 grep -v '^ *+' conftest.er1 >conftest.err
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag"
16598 || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ol_cv_have_sys_errlist=yes
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ol_cv_have_sys_errlist=no
16617 rm -f conftest.err conftest.$ac_objext \
16618 conftest$ac_exeext conftest.$ac_ext
16620 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16621 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16623 if test $ol_cv_have_sys_errlist = yes ; then
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_SYS_ERRLIST 1
16635 for ac_header in regex.h
16637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16638 echo "$as_me:$LINENO: checking for $ac_header" >&5
16639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16643 cat >conftest.$ac_ext <<_ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 $ac_includes_default
16650 #ifdef HAVE_SYS_TYPES_H
16651 #include <sys/types.h>
16655 #include <$ac_header>
16657 rm -f conftest.$ac_objext
16658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16659 (eval $ac_compile) 2>conftest.er1
16661 grep -v '^ *+' conftest.er1 >conftest.err
16663 cat conftest.err >&5
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } &&
16666 { ac_try='test -z "$ac_c_werror_flag"
16667 || test ! -s conftest.err'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; } &&
16673 { ac_try='test -s conftest.$ac_objext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 eval "$as_ac_Header=yes"
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 eval "$as_ac_Header=no"
16686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16691 cat >>confdefs.h <<_ACEOF
16692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16700 if test "$ac_cv_header_regex_h" != yes ; then
16701 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16702 echo "$as_me: error: POSIX regex.h required." >&2;}
16703 { (exit 1); exit 1; }; }
16705 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16706 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16707 if test "${ac_cv_search_regfree+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 ac_func_search_save_LIBS=$LIBS
16711 ac_cv_search_regfree=no
16712 cat >conftest.$ac_ext <<_ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16719 /* Override any gcc2 internal prototype to avoid an error. */
16723 /* We use char because int might match the return type of a gcc2
16724 builtin and then its argument prototype would still apply. */
16734 rm -f conftest.$ac_objext conftest$ac_exeext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16736 (eval $ac_link) 2>conftest.er1
16738 grep -v '^ *+' conftest.er1 >conftest.err
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag"
16744 || test ! -s conftest.err'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; } &&
16750 { ac_try='test -s conftest$ac_exeext'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_search_regfree="none required"
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16762 rm -f conftest.err conftest.$ac_objext \
16763 conftest$ac_exeext conftest.$ac_ext
16764 if test "$ac_cv_search_regfree" = no; then
16765 for ac_lib in regex gnuregex; do
16766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16767 cat >conftest.$ac_ext <<_ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16774 /* Override any gcc2 internal prototype to avoid an error. */
16778 /* We use char because int might match the return type of a gcc2
16779 builtin and then its argument prototype would still apply. */
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791 (eval $ac_link) 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -z "$ac_c_werror_flag"
16799 || test ! -s conftest.err'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_cv_search_regfree="-l$ac_lib"
16814 echo "$as_me: failed program was:" >&5
16815 sed 's/^/| /' conftest.$ac_ext >&5
16818 rm -f conftest.err conftest.$ac_objext \
16819 conftest$ac_exeext conftest.$ac_ext
16822 LIBS=$ac_func_search_save_LIBS
16824 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16825 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16826 if test "$ac_cv_search_regfree" != no; then
16827 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16830 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16831 echo "$as_me: error: POSIX regex required." >&2;}
16832 { (exit 1); exit 1; }; }
16837 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16838 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16839 if test "${ol_cv_c_posix_regex+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 if test "$cross_compiling" = yes; then
16844 ol_cv_c_posix_regex=cross
16846 cat >conftest.$ac_ext <<_ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16853 #include <sys/types.h>
16855 static char *pattern, *string;
16863 if(regcomp(&re, pattern, 0)) {
16867 string = "ALL MATCH";
16869 rc = regexec(&re, string, 0, (void*)0, 0);
16876 rm -f conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878 (eval $ac_link) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ol_cv_c_posix_regex=yes
16889 echo "$as_me: program exited with status $ac_status" >&5
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ( exit $ac_status )
16894 ol_cv_c_posix_regex=no
16896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16899 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16900 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16902 if test "$ol_cv_c_posix_regex" = no ; then
16903 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16904 echo "$as_me: error: broken POSIX regex!" >&2;}
16905 { (exit 1); exit 1; }; }
16911 for ac_header in sys/uuid.h
16913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16915 echo "$as_me:$LINENO: checking for $ac_header" >&5
16916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16923 # Is the header compilable?
16924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 $ac_includes_default
16933 #include <$ac_header>
16935 rm -f conftest.$ac_objext
16936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16937 (eval $ac_compile) 2>conftest.er1
16939 grep -v '^ *+' conftest.er1 >conftest.err
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -z "$ac_c_werror_flag"
16945 || test ! -s conftest.err'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 ac_header_compiler=yes
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_header_compiler=no
16964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16966 echo "${ECHO_T}$ac_header_compiler" >&6
16968 # Is the header present?
16969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 #include <$ac_header>
16979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1 >conftest.err
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } >/dev/null; then
16987 if test -s conftest.err; then
16988 ac_cpp_err=$ac_c_preproc_warn_flag
16989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16996 if test -z "$ac_cpp_err"; then
16997 ac_header_preproc=yes
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 ac_header_preproc=no
17004 rm -f conftest.err conftest.$ac_ext
17005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17006 echo "${ECHO_T}$ac_header_preproc" >&6
17008 # So? What about this header?
17009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17015 ac_header_preproc=yes
17018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17032 ## --------------------------------------------- ##
17033 ## Report this to <http://www.openldap.org/its/> ##
17034 ## --------------------------------------------- ##
17037 sed "s/^/$as_me: WARNING: /" >&2
17040 echo "$as_me:$LINENO: checking for $ac_header" >&5
17041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 eval "$as_ac_Header=\$ac_header_preproc"
17047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17052 cat >>confdefs.h <<_ACEOF
17053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17060 if test $ac_cv_header_sys_uuid_h = yes ; then
17062 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17063 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17064 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 ac_func_search_save_LIBS=$LIBS
17068 ac_cv_search_uuid_to_str=no
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17076 /* Override any gcc2 internal prototype to avoid an error. */
17080 /* We use char because int might match the return type of a gcc2
17081 builtin and then its argument prototype would still apply. */
17082 char uuid_to_str ();
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093 (eval $ac_link) 2>conftest.er1
17095 grep -v '^ *+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag"
17101 || test ! -s conftest.err'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest$ac_exeext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_cv_search_uuid_to_str="none required"
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17119 rm -f conftest.err conftest.$ac_objext \
17120 conftest$ac_exeext conftest.$ac_ext
17121 if test "$ac_cv_search_uuid_to_str" = no; then
17122 for ac_lib in uuid; do
17123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17124 cat >conftest.$ac_ext <<_ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17131 /* Override any gcc2 internal prototype to avoid an error. */
17135 /* We use char because int might match the return type of a gcc2
17136 builtin and then its argument prototype would still apply. */
17137 char uuid_to_str ();
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17148 (eval $ac_link) 2>conftest.er1
17150 grep -v '^ *+' conftest.er1 >conftest.err
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest$ac_exeext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_search_uuid_to_str="-l$ac_lib"
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17175 rm -f conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17179 LIBS=$ac_func_search_save_LIBS
17181 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17182 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17183 if test "$ac_cv_search_uuid_to_str" != no; then
17184 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17192 if test have_uuid = yes ; then
17194 cat >>confdefs.h <<\_ACEOF
17195 #define HAVE_UUID_TO_STR 1
17199 test "$ac_cv_search_uuid_to_str" = "none required" || \
17200 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17204 if test $have_uuid = no ; then
17206 for ac_header in uuid/uuid.h
17208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17210 echo "$as_me:$LINENO: checking for $ac_header" >&5
17211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17218 # Is the header compilable?
17219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17221 cat >conftest.$ac_ext <<_ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17227 $ac_includes_default
17228 #include <$ac_header>
17230 rm -f conftest.$ac_objext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17232 (eval $ac_compile) 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -z "$ac_c_werror_flag"
17240 || test ! -s conftest.err'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest.$ac_objext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_header_compiler=yes
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_header_compiler=no
17259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17261 echo "${ECHO_T}$ac_header_compiler" >&6
17263 # Is the header present?
17264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17266 cat >conftest.$ac_ext <<_ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 #include <$ac_header>
17274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } >/dev/null; then
17282 if test -s conftest.err; then
17283 ac_cpp_err=$ac_c_preproc_warn_flag
17284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17291 if test -z "$ac_cpp_err"; then
17292 ac_header_preproc=yes
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17297 ac_header_preproc=no
17299 rm -f conftest.err conftest.$ac_ext
17300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17301 echo "${ECHO_T}$ac_header_preproc" >&6
17303 # So? What about this header?
17304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17310 ac_header_preproc=yes
17313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17327 ## --------------------------------------------- ##
17328 ## Report this to <http://www.openldap.org/its/> ##
17329 ## --------------------------------------------- ##
17332 sed "s/^/$as_me: WARNING: /" >&2
17335 echo "$as_me:$LINENO: checking for $ac_header" >&5
17336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 eval "$as_ac_Header=\$ac_header_preproc"
17342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17347 cat >>confdefs.h <<_ACEOF
17348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17355 if test $ac_cv_header_uuid_uuid_h = yes ; then
17357 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17358 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17359 if test "${ac_cv_search_uuid_generate+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 ac_func_search_save_LIBS=$LIBS
17363 ac_cv_search_uuid_generate=no
17364 cat >conftest.$ac_ext <<_ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h. */
17371 /* Override any gcc2 internal prototype to avoid an error. */
17375 /* We use char because int might match the return type of a gcc2
17376 builtin and then its argument prototype would still apply. */
17377 char uuid_generate ();
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17388 (eval $ac_link) 2>conftest.er1
17390 grep -v '^ *+' conftest.er1 >conftest.err
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag"
17396 || test ! -s conftest.err'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest$ac_exeext'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17408 ac_cv_search_uuid_generate="none required"
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17414 rm -f conftest.err conftest.$ac_objext \
17415 conftest$ac_exeext conftest.$ac_ext
17416 if test "$ac_cv_search_uuid_generate" = no; then
17417 for ac_lib in uuid; do
17418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17419 cat >conftest.$ac_ext <<_ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17426 /* Override any gcc2 internal prototype to avoid an error. */
17430 /* We use char because int might match the return type of a gcc2
17431 builtin and then its argument prototype would still apply. */
17432 char uuid_generate ();
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443 (eval $ac_link) 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag"
17451 || test ! -s conftest.err'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; } &&
17457 { ac_try='test -s conftest$ac_exeext'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 ac_cv_search_uuid_generate="-l$ac_lib"
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17470 rm -f conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17474 LIBS=$ac_func_search_save_LIBS
17476 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17477 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17478 if test "$ac_cv_search_uuid_generate" != no; then
17479 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17487 if test have_uuid = yes ; then
17489 cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_UUID_GENERATE 1
17494 test "$ac_cv_search_uuid_generate" = "none required" || \
17495 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17500 if test $have_uuid = no ; then
17501 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17502 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17504 LIBS="$LIBS -lrpcrt4"
17505 cat >conftest.$ac_ext <<_ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17512 int __stdcall UuidCreate(void *);
17513 int __stdcall UuidToStringA(void *,void **);
17520 UuidToStringA(0,0);
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528 (eval $ac_link) 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -z "$ac_c_werror_flag"
17536 || test ! -s conftest.err'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17555 rm -f conftest.err conftest.$ac_objext \
17556 conftest$ac_exeext conftest.$ac_ext
17557 if test $need_rpcrt = yes; then
17558 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17561 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17562 echo "${ECHO_T}$need_rpcrt" >&6
17565 ol_cv_lib_resolver=no
17566 if test $ol_cv_lib_resolver = no ; then
17567 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17568 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17569 if test "${ol_cv_resolver_none+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17575 LIBS="$ol_RESOLVER_LIB $LIBS"
17577 cat >conftest.$ac_ext <<_ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17584 #ifdef HAVE_SYS_TYPES_H
17585 # include <sys/types.h>
17587 #include <netinet/in.h>
17588 #ifdef HAVE_ARPA_NAMESER_H
17589 # include <arpa/nameser.h>
17591 #ifdef HAVE_RESOLV_H
17592 # include <resolv.h>
17600 char *request = NULL;
17601 unsigned char reply[64*1024];
17602 unsigned char host[64*1024];
17606 /* Bind 8/9 interface */
17607 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17609 /* Bind 4 interface */
17613 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17617 /* Bind 8/9 interface */
17619 #elif defined(HFIXEDSZ)
17620 /* Bind 4 interface w/ HFIXEDSZ */
17623 /* Bind 4 interface w/o HFIXEDSZ */
17624 p += sizeof(HEADER);
17626 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17634 (eval $ac_link) 2>conftest.er1
17636 grep -v '^ *+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } &&
17641 { ac_try='test -z "$ac_c_werror_flag"
17642 || test ! -s conftest.err'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; } &&
17648 { ac_try='test -s conftest$ac_exeext'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 ol_cv_resolver_none=yes
17656 echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17659 ol_cv_resolver_none=no
17661 rm -f conftest.err conftest.$ac_objext \
17662 conftest$ac_exeext conftest.$ac_ext
17667 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17668 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17670 if test $ol_cv_resolver_none = yes ; then
17671 ol_cv_lib_resolver=yes
17675 if test $ol_cv_lib_resolver = no ; then
17676 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17677 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17678 if test "${ol_cv_resolver_resolv+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17682 ol_RESOLVER_LIB=-lresolv
17684 LIBS="$ol_RESOLVER_LIB $LIBS"
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17693 #ifdef HAVE_SYS_TYPES_H
17694 # include <sys/types.h>
17696 #include <netinet/in.h>
17697 #ifdef HAVE_ARPA_NAMESER_H
17698 # include <arpa/nameser.h>
17700 #ifdef HAVE_RESOLV_H
17701 # include <resolv.h>
17709 char *request = NULL;
17710 unsigned char reply[64*1024];
17711 unsigned char host[64*1024];
17715 /* Bind 8/9 interface */
17716 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17718 /* Bind 4 interface */
17722 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17726 /* Bind 8/9 interface */
17728 #elif defined(HFIXEDSZ)
17729 /* Bind 4 interface w/ HFIXEDSZ */
17732 /* Bind 4 interface w/o HFIXEDSZ */
17733 p += sizeof(HEADER);
17735 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17741 rm -f conftest.$ac_objext conftest$ac_exeext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>conftest.er1
17745 grep -v '^ *+' conftest.er1 >conftest.err
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -z "$ac_c_werror_flag"
17751 || test ! -s conftest.err'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest$ac_exeext'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ol_cv_resolver_resolv=yes
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 ol_cv_resolver_resolv=no
17770 rm -f conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17776 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17777 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17779 if test $ol_cv_resolver_resolv = yes ; then
17780 ol_cv_lib_resolver=-lresolv
17784 if test $ol_cv_lib_resolver = no ; then
17785 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17786 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17787 if test "${ol_cv_resolver_bind+set}" = set; then
17788 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 ol_RESOLVER_LIB=-lbind
17793 LIBS="$ol_RESOLVER_LIB $LIBS"
17795 cat >conftest.$ac_ext <<_ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17802 #ifdef HAVE_SYS_TYPES_H
17803 # include <sys/types.h>
17805 #include <netinet/in.h>
17806 #ifdef HAVE_ARPA_NAMESER_H
17807 # include <arpa/nameser.h>
17809 #ifdef HAVE_RESOLV_H
17810 # include <resolv.h>
17818 char *request = NULL;
17819 unsigned char reply[64*1024];
17820 unsigned char host[64*1024];
17824 /* Bind 8/9 interface */
17825 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17827 /* Bind 4 interface */
17831 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17835 /* Bind 8/9 interface */
17837 #elif defined(HFIXEDSZ)
17838 /* Bind 4 interface w/ HFIXEDSZ */
17841 /* Bind 4 interface w/o HFIXEDSZ */
17842 p += sizeof(HEADER);
17844 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17852 (eval $ac_link) 2>conftest.er1
17854 grep -v '^ *+' conftest.er1 >conftest.err
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -z "$ac_c_werror_flag"
17860 || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest$ac_exeext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 ol_cv_resolver_bind=yes
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ol_cv_resolver_bind=no
17879 rm -f conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17885 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17886 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17888 if test $ol_cv_resolver_bind = yes ; then
17889 ol_cv_lib_resolver=-lbind
17896 if test "$ol_cv_lib_resolver" != no ; then
17898 cat >>confdefs.h <<\_ACEOF
17899 #define HAVE_RES_QUERY 1
17903 if test "$ol_enable_dnssrv" != no ; then
17907 if test "$ol_cv_lib_resolver" != yes ; then
17908 LIBS="$ol_cv_lib_resolver $LIBS"
17912 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17913 if test "$ol_link_dnssrv" = no ; then
17914 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17915 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17916 { (exit 1); exit 1; }; }
17919 ol_enable_dnssrv=no
17923 for ac_func in hstrerror
17925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17928 if eval "test \"\${$as_ac_var+set}\" = set"; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 cat >conftest.$ac_ext <<_ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17939 #define $ac_func innocuous_$ac_func
17941 /* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func (); below.
17943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944 <limits.h> exists even on freestanding compilers. */
17947 # include <limits.h>
17949 # include <assert.h>
17954 /* Override any gcc2 internal prototype to avoid an error. */
17959 /* We use char because int might match the return type of a gcc2
17960 builtin and then its argument prototype would still apply. */
17962 /* The GNU C library defines this for functions which it implements
17963 to always fail with ENOSYS. Some functions are actually named
17964 something starting with __ and the normal name is an alias. */
17965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17968 char (*f) () = $ac_func;
17977 return f != $ac_func;
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984 (eval $ac_link) 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag"
17992 || test ! -s conftest.err'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest$ac_exeext'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 eval "$as_ac_var=yes"
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 eval "$as_ac_var=no"
18011 rm -f conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
18014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18016 if test `eval echo '${'$as_ac_var'}'` = yes; then
18017 cat >>confdefs.h <<_ACEOF
18018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18029 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18032 echo "$as_me:$LINENO: checking for $ac_func" >&5
18033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18034 if eval "test \"\${$as_ac_var+set}\" = set"; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18045 #define $ac_func innocuous_$ac_func
18047 /* System header to define __stub macros and hopefully few prototypes,
18048 which can conflict with char $ac_func (); below.
18049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18050 <limits.h> exists even on freestanding compilers. */
18053 # include <limits.h>
18055 # include <assert.h>
18060 /* Override any gcc2 internal prototype to avoid an error. */
18065 /* We use char because int might match the return type of a gcc2
18066 builtin and then its argument prototype would still apply. */
18068 /* The GNU C library defines this for functions which it implements
18069 to always fail with ENOSYS. Some functions are actually named
18070 something starting with __ and the normal name is an alias. */
18071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18074 char (*f) () = $ac_func;
18083 return f != $ac_func;
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18090 (eval $ac_link) 2>conftest.er1
18092 grep -v '^ *+' conftest.er1 >conftest.err
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try='test -z "$ac_c_werror_flag"
18098 || test ! -s conftest.err'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; } &&
18104 { ac_try='test -s conftest$ac_exeext'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 eval "$as_ac_var=yes"
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 eval "$as_ac_var=no"
18117 rm -f conftest.err conftest.$ac_objext \
18118 conftest$ac_exeext conftest.$ac_ext
18120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18122 if test `eval echo '${'$as_ac_var'}'` = yes; then
18123 cat >>confdefs.h <<_ACEOF
18124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18132 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18133 if test $ol_enable_ipv6 = yes ; then
18134 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18135 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18136 { (exit 1); exit 1; }; }
18138 elif test $ol_enable_ipv6 != no ; then
18139 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18140 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18141 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18152 # include <netinet/in.h>
18153 # ifdef INET6_ADDRSTRLEN
18154 __has_inet6_addrstrlen__;
18158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18159 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18160 ol_cv_inet6_addrstrlen=yes
18162 ol_cv_inet6_addrstrlen=no
18167 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18168 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18171 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18172 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18173 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 cat >conftest.$ac_ext <<_ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18184 #include <sys/types.h>
18185 #include <sys/socket.h>
18191 struct sockaddr_storage ss;
18197 rm -f conftest.$ac_objext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18199 (eval $ac_compile) 2>conftest.er1
18201 grep -v '^ *+' conftest.er1 >conftest.err
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try='test -z "$ac_c_werror_flag"
18207 || test ! -s conftest.err'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try='test -s conftest.$ac_objext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ol_cv_struct_sockaddr_storage=yes
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18224 ol_cv_struct_sockaddr_storage=no
18226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18228 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18229 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18231 if test $ol_cv_inet6_addrstrlen = yes &&
18232 test $ol_cv_struct_sockaddr_storage = yes ; then
18234 elif test $ol_enable_ipv6 = yes &&
18235 test $ol_cv_inet6_addrstrlen = no ; then
18236 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18237 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18238 { (exit 1); exit 1; }; }
18239 elif test $ol_enable_ipv6 = yes &&
18240 test $ol_cv_struct_sockaddr_storage = no ; then
18241 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18242 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18243 { (exit 1); exit 1; }; }
18247 if test $ol_enable_local != no ; then
18249 for ac_header in sys/un.h
18251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18253 echo "$as_me:$LINENO: checking for $ac_header" >&5
18254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18261 # Is the header compilable?
18262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18264 cat >conftest.$ac_ext <<_ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 $ac_includes_default
18271 #include <$ac_header>
18273 rm -f conftest.$ac_objext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18275 (eval $ac_compile) 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
18282 { ac_try='test -z "$ac_c_werror_flag"
18283 || test ! -s conftest.err'
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest.$ac_objext'
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 ac_header_compiler=yes
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_header_compiler=no
18302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18304 echo "${ECHO_T}$ac_header_compiler" >&6
18306 # Is the header present?
18307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 #include <$ac_header>
18317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } >/dev/null; then
18325 if test -s conftest.err; then
18326 ac_cpp_err=$ac_c_preproc_warn_flag
18327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18334 if test -z "$ac_cpp_err"; then
18335 ac_header_preproc=yes
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_header_preproc=no
18342 rm -f conftest.err conftest.$ac_ext
18343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18344 echo "${ECHO_T}$ac_header_preproc" >&6
18346 # So? What about this header?
18347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18353 ac_header_preproc=yes
18356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18370 ## --------------------------------------------- ##
18371 ## Report this to <http://www.openldap.org/its/> ##
18372 ## --------------------------------------------- ##
18375 sed "s/^/$as_me: WARNING: /" >&2
18378 echo "$as_me:$LINENO: checking for $ac_header" >&5
18379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 eval "$as_ac_Header=\$ac_header_preproc"
18385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390 cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18399 if test $ol_enable_local = auto ; then
18400 ol_enable_local=$ac_cv_header_sys_un_h
18401 elif test $ac_cv_header_sys_un_h = no ; then
18402 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18403 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18404 { (exit 1); exit 1; }; }
18409 if test $ol_with_tls = yes ; then
18414 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18416 for ac_header in openssl/ssl.h
18418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18420 echo "$as_me:$LINENO: checking for $ac_header" >&5
18421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18428 # Is the header compilable?
18429 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18431 cat >conftest.$ac_ext <<_ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18437 $ac_includes_default
18438 #include <$ac_header>
18440 rm -f conftest.$ac_objext
18441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18442 (eval $ac_compile) 2>conftest.er1
18444 grep -v '^ *+' conftest.er1 >conftest.err
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag"
18450 || test ! -s conftest.err'
18451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452 (eval $ac_try) 2>&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; } &&
18456 { ac_try='test -s conftest.$ac_objext'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; }; then
18462 ac_header_compiler=yes
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.$ac_ext >&5
18467 ac_header_compiler=no
18469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18471 echo "${ECHO_T}$ac_header_compiler" >&6
18473 # Is the header present?
18474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 #include <$ac_header>
18484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } >/dev/null; then
18492 if test -s conftest.err; then
18493 ac_cpp_err=$ac_c_preproc_warn_flag
18494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18501 if test -z "$ac_cpp_err"; then
18502 ac_header_preproc=yes
18504 echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18507 ac_header_preproc=no
18509 rm -f conftest.err conftest.$ac_ext
18510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18511 echo "${ECHO_T}$ac_header_preproc" >&6
18513 # So? What about this header?
18514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18520 ac_header_preproc=yes
18523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18537 ## --------------------------------------------- ##
18538 ## Report this to <http://www.openldap.org/its/> ##
18539 ## --------------------------------------------- ##
18542 sed "s/^/$as_me: WARNING: /" >&2
18545 echo "$as_me:$LINENO: checking for $ac_header" >&5
18546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18548 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 eval "$as_ac_Header=\$ac_header_preproc"
18552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18557 cat >>confdefs.h <<_ACEOF
18558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18566 if test $ac_cv_header_openssl_ssl_h = yes ; then
18567 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18568 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18569 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 ac_check_lib_save_LIBS=$LIBS
18573 LIBS="-lssl -lcrypto $LIBS"
18574 cat >conftest.$ac_ext <<_ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h. */
18581 /* Override any gcc2 internal prototype to avoid an error. */
18585 /* We use char because int might match the return type of a gcc2
18586 builtin and then its argument prototype would still apply. */
18587 char SSL_library_init ();
18591 SSL_library_init ();
18596 rm -f conftest.$ac_objext conftest$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>conftest.er1
18600 grep -v '^ *+' conftest.er1 >conftest.err
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_lib_ssl_SSL_library_init=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_cv_lib_ssl_SSL_library_init=no
18625 rm -f conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18629 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18630 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18631 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18639 if test $have_openssl = no ; then
18640 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18641 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18642 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18654 /* Override any gcc2 internal prototype to avoid an error. */
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18660 char ssl3_accept ();
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag"
18679 || test ! -s conftest.err'
18680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681 (eval $ac_try) 2>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); }; } &&
18685 { ac_try='test -s conftest$ac_exeext'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; }; then
18691 ac_cv_lib_ssl_ssl3_accept=yes
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 ac_cv_lib_ssl_ssl3_accept=no
18698 rm -f conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18702 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18703 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18704 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18713 if test $have_openssl = yes ; then
18714 ol_with_tls=openssl
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE_OPENSSL 1
18723 if test $need_rsaref = yes; then
18725 cat >>confdefs.h <<\_ACEOF
18726 #define HAVE_RSAREF 1
18730 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18732 TLS_LIBS="-lssl -lcrypto"
18735 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18736 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18737 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 cat >conftest.$ac_ext <<_ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18748 #ifdef HAVE_OPENSSL_SSL_H
18749 #include <openssl/ssl.h>
18752 /* Require 0.9.7d+ */
18753 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18754 char *__ssl_compat = "0.9.7d";
18758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18759 $EGREP "__ssl_compat" >/dev/null 2>&1; then
18760 ol_cv_ssl_crl_compat=yes
18762 ol_cv_ssl_crl_compat=no
18767 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18768 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18770 if test $ol_cv_ssl_crl_compat = yes ; then
18772 cat >>confdefs.h <<\_ACEOF
18773 #define HAVE_OPENSSL_CRL 1
18782 if test $ol_link_tls = yes ; then
18784 cat >>confdefs.h <<\_ACEOF
18789 elif test $ol_with_tls = auto ; then
18790 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
18791 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
18792 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18793 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18794 elif test $ol_with_tls != no ; then
18795 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
18796 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
18797 { (exit 1); exit 1; }; }
18799 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18800 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18803 if test $ol_enable_lmpasswd != no; then
18804 if test $ol_link_tls != yes ; then
18805 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
18806 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
18807 { (exit 1); exit 1; }; }
18811 cat >>confdefs.h <<\_ACEOF
18812 #define SLAPD_LMHASH 1
18819 case $ol_with_threads in auto | yes | nt)
18822 echo "$as_me:$LINENO: checking for _beginthread" >&5
18823 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
18824 if test "${ac_cv_func__beginthread+set}" = set; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 cat >conftest.$ac_ext <<_ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
18834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18835 #define _beginthread innocuous__beginthread
18837 /* System header to define __stub macros and hopefully few prototypes,
18838 which can conflict with char _beginthread (); below.
18839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18840 <limits.h> exists even on freestanding compilers. */
18843 # include <limits.h>
18845 # include <assert.h>
18848 #undef _beginthread
18850 /* Override any gcc2 internal prototype to avoid an error. */
18855 /* We use char because int might match the return type of a gcc2
18856 builtin and then its argument prototype would still apply. */
18857 char _beginthread ();
18858 /* The GNU C library defines this for functions which it implements
18859 to always fail with ENOSYS. Some functions are actually named
18860 something starting with __ and the normal name is an alias. */
18861 #if defined (__stub__beginthread) || defined (__stub____beginthread)
18864 char (*f) () = _beginthread;
18873 return f != _beginthread;
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880 (eval $ac_link) 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } &&
18887 { ac_try='test -z "$ac_c_werror_flag"
18888 || test ! -s conftest.err'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest$ac_exeext'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900 ac_cv_func__beginthread=yes
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_cv_func__beginthread=no
18907 rm -f conftest.err conftest.$ac_objext \
18908 conftest$ac_exeext conftest.$ac_ext
18910 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
18911 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
18914 if test $ac_cv_func__beginthread = yes ; then
18916 cat >>confdefs.h <<\_ACEOF
18917 #define HAVE_NT_THREADS 1
18920 ol_cv_nt_threads=yes
18924 if test "$ol_cv_nt_threads" = yes ; then
18926 ol_with_threads=found
18927 ol_with_yielding_select=yes
18930 cat >>confdefs.h <<\_ACEOF
18931 #define HAVE_NT_SERVICE_MANAGER 1
18935 cat >>confdefs.h <<\_ACEOF
18936 #define HAVE_NT_EVENT_LOG 1
18941 if test $ol_with_threads = nt ; then
18942 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
18943 echo "$as_me: error: could not locate NT Threads" >&2;}
18944 { (exit 1); exit 1; }; }
18949 case $ol_with_threads in auto | yes | posix)
18952 for ac_header in pthread.h
18954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18956 echo "$as_me:$LINENO: checking for $ac_header" >&5
18957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18964 # Is the header compilable?
18965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18967 cat >conftest.$ac_ext <<_ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 $ac_includes_default
18974 #include <$ac_header>
18976 rm -f conftest.$ac_objext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978 (eval $ac_compile) 2>conftest.er1
18980 grep -v '^ *+' conftest.er1 >conftest.err
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try='test -z "$ac_c_werror_flag"
18986 || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest.$ac_objext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 ac_header_compiler=yes
19000 echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19003 ac_header_compiler=no
19005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19007 echo "${ECHO_T}$ac_header_compiler" >&6
19009 # Is the header present?
19010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19018 #include <$ac_header>
19020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } >/dev/null; then
19028 if test -s conftest.err; then
19029 ac_cpp_err=$ac_c_preproc_warn_flag
19030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19037 if test -z "$ac_cpp_err"; then
19038 ac_header_preproc=yes
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19043 ac_header_preproc=no
19045 rm -f conftest.err conftest.$ac_ext
19046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19047 echo "${ECHO_T}$ac_header_preproc" >&6
19049 # So? What about this header?
19050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19056 ac_header_preproc=yes
19059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19073 ## --------------------------------------------- ##
19074 ## Report this to <http://www.openldap.org/its/> ##
19075 ## --------------------------------------------- ##
19078 sed "s/^/$as_me: WARNING: /" >&2
19081 echo "$as_me:$LINENO: checking for $ac_header" >&5
19082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19086 eval "$as_ac_Header=\$ac_header_preproc"
19088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19093 cat >>confdefs.h <<_ACEOF
19094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19102 if test $ac_cv_header_pthread_h = yes ; then
19103 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19104 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19105 if test "${ol_cv_pthread_version+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19109 cat >conftest.$ac_ext <<_ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19116 # include <pthread.h>
19122 int i = PTHREAD_CREATE_JOINABLE;
19128 rm -f conftest.$ac_objext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19130 (eval $ac_compile) 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try='test -z "$ac_c_werror_flag"
19138 || test ! -s conftest.err'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest.$ac_objext'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19151 cat >conftest.$ac_ext <<_ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <pthread.h>
19160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19161 $EGREP "pthread_detach" >/dev/null 2>&1; then
19162 ol_cv_pthread_version=10
19164 ol_cv_pthread_version=8
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19180 # include <pthread.h>
19181 # ifdef PTHREAD_CREATE_UNDETACHED
19186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19187 $EGREP "draft7" >/dev/null 2>&1; then
19188 ol_cv_pthread_version=7
19191 cat >conftest.$ac_ext <<_ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h. */
19197 #include <pthread.h>
19200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19201 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19202 ol_cv_pthread_version=6
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19212 # include <pthread.h>
19213 #ifdef PTHREAD_MUTEX_INITIALIZER
19218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19219 $EGREP "draft5" >/dev/null 2>&1; then
19220 ol_cv_pthread_version=5
19222 ol_cv_pthread_version=4
19233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19236 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19237 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19240 if test $ol_cv_pthread_version != 0 ; then
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_PTHREADS $ol_cv_pthread_version
19247 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19248 echo "$as_me: error: unknown pthread version" >&2;}
19249 { (exit 1); exit 1; }; }
19252 # consider threads found
19253 ol_with_threads=found
19256 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19257 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19258 if test "${ol_cv_header_linux_threads+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19261 cat >conftest.$ac_ext <<_ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 #include <pthread.h>
19269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19270 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19271 ol_cv_header_linux_threads=yes
19273 ol_cv_header_linux_threads=no
19279 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19280 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19281 if test $ol_cv_header_linux_threads = yes; then
19283 cat >>confdefs.h <<\_ACEOF
19284 #define HAVE_LINUX_THREADS 1
19290 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19291 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19292 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 #include <pthread.h>
19302 #ifdef _POSIX_THREAD_IS_GNU_PTH
19307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19308 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19309 ol_cv_header_gnu_pth_pthread_h=yes
19311 ol_cv_header_gnu_pth_pthread_h=no
19317 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19318 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19321 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19323 for ac_header in sched.h
19325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19327 echo "$as_me:$LINENO: checking for $ac_header" >&5
19328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19335 # Is the header compilable?
19336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 $ac_includes_default
19345 #include <$ac_header>
19347 rm -f conftest.$ac_objext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19349 (eval $ac_compile) 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -z "$ac_c_werror_flag"
19357 || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest.$ac_objext'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_header_compiler=yes
19371 echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_header_compiler=no
19376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19378 echo "${ECHO_T}$ac_header_compiler" >&6
19380 # Is the header present?
19381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 #include <$ac_header>
19391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } >/dev/null; then
19399 if test -s conftest.err; then
19400 ac_cpp_err=$ac_c_preproc_warn_flag
19401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19408 if test -z "$ac_cpp_err"; then
19409 ac_header_preproc=yes
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19414 ac_header_preproc=no
19416 rm -f conftest.err conftest.$ac_ext
19417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19418 echo "${ECHO_T}$ac_header_preproc" >&6
19420 # So? What about this header?
19421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19427 ac_header_preproc=yes
19430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19444 ## --------------------------------------------- ##
19445 ## Report this to <http://www.openldap.org/its/> ##
19446 ## --------------------------------------------- ##
19449 sed "s/^/$as_me: WARNING: /" >&2
19452 echo "$as_me:$LINENO: checking for $ac_header" >&5
19453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 eval "$as_ac_Header=\$ac_header_preproc"
19459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19464 cat >>confdefs.h <<_ACEOF
19465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19475 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19476 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19477 if test "${ol_cv_pthread_create+set}" = set; then
19478 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 if test "$cross_compiling" = yes; then
19482 cat >conftest.$ac_ext <<_ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h. */
19489 /* pthread test headers */
19490 #include <pthread.h>
19491 #if HAVE_PTHREADS < 7
19495 #define NULL (void*)0
19498 static void *task(p)
19501 return (void *) (p == NULL);
19508 /* pthread test function */
19509 #ifndef PTHREAD_CREATE_DETACHED
19510 #define PTHREAD_CREATE_DETACHED 1
19514 int detach = PTHREAD_CREATE_DETACHED;
19516 #if HAVE_PTHREADS > 4
19517 /* Final pthreads */
19518 pthread_attr_t attr;
19520 status = pthread_attr_init(&attr);
19521 if( status ) return status;
19523 #if HAVE_PTHREADS < 7
19524 status = pthread_attr_setdetachstate(&attr, &detach);
19525 if( status < 0 ) status = errno;
19527 status = pthread_attr_setdetachstate(&attr, detach);
19529 if( status ) return status;
19530 status = pthread_create( &t, &attr, task, NULL );
19531 #if HAVE_PTHREADS < 7
19532 if( status < 0 ) status = errno;
19534 if( status ) return status;
19536 /* Draft 4 pthreads */
19537 status = pthread_create( &t, pthread_attr_default, task, NULL );
19538 if( status ) return errno;
19540 /* give thread a chance to complete */
19541 /* it should remain joinable and hence detachable */
19544 status = pthread_detach( &t );
19545 if( status ) return errno;
19548 #ifdef HAVE_LINUX_THREADS
19549 pthread_kill_other_threads_np();
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19560 (eval $ac_link) 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_c_werror_flag"
19568 || test ! -s conftest.err'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest$ac_exeext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ol_cv_pthread_create=yes
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ol_cv_pthread_create=no
19587 rm -f conftest.err conftest.$ac_objext \
19588 conftest$ac_exeext conftest.$ac_ext
19590 cat >conftest.$ac_ext <<_ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19597 /* pthread test headers */
19598 #include <pthread.h>
19599 #if HAVE_PTHREADS < 7
19603 #define NULL (void*)0
19606 static void *task(p)
19609 return (void *) (p == NULL);
19613 int main(argc, argv)
19618 /* pthread test function */
19619 #ifndef PTHREAD_CREATE_DETACHED
19620 #define PTHREAD_CREATE_DETACHED 1
19624 int detach = PTHREAD_CREATE_DETACHED;
19626 #if HAVE_PTHREADS > 4
19627 /* Final pthreads */
19628 pthread_attr_t attr;
19630 status = pthread_attr_init(&attr);
19631 if( status ) return status;
19633 #if HAVE_PTHREADS < 7
19634 status = pthread_attr_setdetachstate(&attr, &detach);
19635 if( status < 0 ) status = errno;
19637 status = pthread_attr_setdetachstate(&attr, detach);
19639 if( status ) return status;
19640 status = pthread_create( &t, &attr, task, NULL );
19641 #if HAVE_PTHREADS < 7
19642 if( status < 0 ) status = errno;
19644 if( status ) return status;
19646 /* Draft 4 pthreads */
19647 status = pthread_create( &t, pthread_attr_default, task, NULL );
19648 if( status ) return errno;
19650 /* give thread a chance to complete */
19651 /* it should remain joinable and hence detachable */
19654 status = pthread_detach( &t );
19655 if( status ) return errno;
19658 #ifdef HAVE_LINUX_THREADS
19659 pthread_kill_other_threads_np();
19667 rm -f conftest$ac_exeext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19669 (eval $ac_link) 2>&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; }; then
19678 ol_cv_pthread_create=yes
19680 echo "$as_me: program exited with status $ac_status" >&5
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 ( exit $ac_status )
19685 ol_cv_pthread_create=no
19687 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19690 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19691 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19693 if test $ol_cv_pthread_create != no ; then
19694 ol_link_threads=posix
19695 ol_link_pthreads=""
19698 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19699 if test "$ol_link_threads" = no ; then
19701 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19702 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19703 if test "${ol_cv_pthread_kthread+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 LIBS="-kthread $LIBS"
19711 if test "$cross_compiling" = yes; then
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19719 /* pthread test headers */
19720 #include <pthread.h>
19721 #if HAVE_PTHREADS < 7
19725 #define NULL (void*)0
19728 static void *task(p)
19731 return (void *) (p == NULL);
19738 /* pthread test function */
19739 #ifndef PTHREAD_CREATE_DETACHED
19740 #define PTHREAD_CREATE_DETACHED 1
19744 int detach = PTHREAD_CREATE_DETACHED;
19746 #if HAVE_PTHREADS > 4
19747 /* Final pthreads */
19748 pthread_attr_t attr;
19750 status = pthread_attr_init(&attr);
19751 if( status ) return status;
19753 #if HAVE_PTHREADS < 7
19754 status = pthread_attr_setdetachstate(&attr, &detach);
19755 if( status < 0 ) status = errno;
19757 status = pthread_attr_setdetachstate(&attr, detach);
19759 if( status ) return status;
19760 status = pthread_create( &t, &attr, task, NULL );
19761 #if HAVE_PTHREADS < 7
19762 if( status < 0 ) status = errno;
19764 if( status ) return status;
19766 /* Draft 4 pthreads */
19767 status = pthread_create( &t, pthread_attr_default, task, NULL );
19768 if( status ) return errno;
19770 /* give thread a chance to complete */
19771 /* it should remain joinable and hence detachable */
19774 status = pthread_detach( &t );
19775 if( status ) return errno;
19778 #ifdef HAVE_LINUX_THREADS
19779 pthread_kill_other_threads_np();
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>conftest.er1
19792 grep -v '^ *+' conftest.er1 >conftest.err
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } &&
19797 { ac_try='test -z "$ac_c_werror_flag"
19798 || test ! -s conftest.err'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; } &&
19804 { ac_try='test -s conftest$ac_exeext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ol_cv_pthread_kthread=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ol_cv_pthread_kthread=no
19817 rm -f conftest.err conftest.$ac_objext \
19818 conftest$ac_exeext conftest.$ac_ext
19820 cat >conftest.$ac_ext <<_ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19827 /* pthread test headers */
19828 #include <pthread.h>
19829 #if HAVE_PTHREADS < 7
19833 #define NULL (void*)0
19836 static void *task(p)
19839 return (void *) (p == NULL);
19843 int main(argc, argv)
19848 /* pthread test function */
19849 #ifndef PTHREAD_CREATE_DETACHED
19850 #define PTHREAD_CREATE_DETACHED 1
19854 int detach = PTHREAD_CREATE_DETACHED;
19856 #if HAVE_PTHREADS > 4
19857 /* Final pthreads */
19858 pthread_attr_t attr;
19860 status = pthread_attr_init(&attr);
19861 if( status ) return status;
19863 #if HAVE_PTHREADS < 7
19864 status = pthread_attr_setdetachstate(&attr, &detach);
19865 if( status < 0 ) status = errno;
19867 status = pthread_attr_setdetachstate(&attr, detach);
19869 if( status ) return status;
19870 status = pthread_create( &t, &attr, task, NULL );
19871 #if HAVE_PTHREADS < 7
19872 if( status < 0 ) status = errno;
19874 if( status ) return status;
19876 /* Draft 4 pthreads */
19877 status = pthread_create( &t, pthread_attr_default, task, NULL );
19878 if( status ) return errno;
19880 /* give thread a chance to complete */
19881 /* it should remain joinable and hence detachable */
19884 status = pthread_detach( &t );
19885 if( status ) return errno;
19888 #ifdef HAVE_LINUX_THREADS
19889 pthread_kill_other_threads_np();
19897 rm -f conftest$ac_exeext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19899 (eval $ac_link) 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ol_cv_pthread_kthread=yes
19910 echo "$as_me: program exited with status $ac_status" >&5
19911 echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 ( exit $ac_status )
19915 ol_cv_pthread_kthread=no
19917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19924 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
19925 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
19927 if test $ol_cv_pthread_kthread = yes ; then
19928 ol_link_pthreads="-kthread"
19929 ol_link_threads=posix
19933 # Pthread try link: -pthread (ol_cv_pthread_pthread)
19934 if test "$ol_link_threads" = no ; then
19936 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
19937 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
19938 if test "${ol_cv_pthread_pthread+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 LIBS="-pthread $LIBS"
19946 if test "$cross_compiling" = yes; then
19947 cat >conftest.$ac_ext <<_ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19954 /* pthread test headers */
19955 #include <pthread.h>
19956 #if HAVE_PTHREADS < 7
19960 #define NULL (void*)0
19963 static void *task(p)
19966 return (void *) (p == NULL);
19973 /* pthread test function */
19974 #ifndef PTHREAD_CREATE_DETACHED
19975 #define PTHREAD_CREATE_DETACHED 1
19979 int detach = PTHREAD_CREATE_DETACHED;
19981 #if HAVE_PTHREADS > 4
19982 /* Final pthreads */
19983 pthread_attr_t attr;
19985 status = pthread_attr_init(&attr);
19986 if( status ) return status;
19988 #if HAVE_PTHREADS < 7
19989 status = pthread_attr_setdetachstate(&attr, &detach);
19990 if( status < 0 ) status = errno;
19992 status = pthread_attr_setdetachstate(&attr, detach);
19994 if( status ) return status;
19995 status = pthread_create( &t, &attr, task, NULL );
19996 #if HAVE_PTHREADS < 7
19997 if( status < 0 ) status = errno;
19999 if( status ) return status;
20001 /* Draft 4 pthreads */
20002 status = pthread_create( &t, pthread_attr_default, task, NULL );
20003 if( status ) return errno;
20005 /* give thread a chance to complete */
20006 /* it should remain joinable and hence detachable */
20009 status = pthread_detach( &t );
20010 if( status ) return errno;
20013 #ifdef HAVE_LINUX_THREADS
20014 pthread_kill_other_threads_np();
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20025 (eval $ac_link) 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try='test -z "$ac_c_werror_flag"
20033 || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest$ac_exeext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ol_cv_pthread_pthread=yes
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ol_cv_pthread_pthread=no
20052 rm -f conftest.err conftest.$ac_objext \
20053 conftest$ac_exeext conftest.$ac_ext
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20062 /* pthread test headers */
20063 #include <pthread.h>
20064 #if HAVE_PTHREADS < 7
20068 #define NULL (void*)0
20071 static void *task(p)
20074 return (void *) (p == NULL);
20078 int main(argc, argv)
20083 /* pthread test function */
20084 #ifndef PTHREAD_CREATE_DETACHED
20085 #define PTHREAD_CREATE_DETACHED 1
20089 int detach = PTHREAD_CREATE_DETACHED;
20091 #if HAVE_PTHREADS > 4
20092 /* Final pthreads */
20093 pthread_attr_t attr;
20095 status = pthread_attr_init(&attr);
20096 if( status ) return status;
20098 #if HAVE_PTHREADS < 7
20099 status = pthread_attr_setdetachstate(&attr, &detach);
20100 if( status < 0 ) status = errno;
20102 status = pthread_attr_setdetachstate(&attr, detach);
20104 if( status ) return status;
20105 status = pthread_create( &t, &attr, task, NULL );
20106 #if HAVE_PTHREADS < 7
20107 if( status < 0 ) status = errno;
20109 if( status ) return status;
20111 /* Draft 4 pthreads */
20112 status = pthread_create( &t, pthread_attr_default, task, NULL );
20113 if( status ) return errno;
20115 /* give thread a chance to complete */
20116 /* it should remain joinable and hence detachable */
20119 status = pthread_detach( &t );
20120 if( status ) return errno;
20123 #ifdef HAVE_LINUX_THREADS
20124 pthread_kill_other_threads_np();
20132 rm -f conftest$ac_exeext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20134 (eval $ac_link) 2>&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ol_cv_pthread_pthread=yes
20145 echo "$as_me: program exited with status $ac_status" >&5
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20149 ( exit $ac_status )
20150 ol_cv_pthread_pthread=no
20152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20159 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20160 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20162 if test $ol_cv_pthread_pthread = yes ; then
20163 ol_link_pthreads="-pthread"
20164 ol_link_threads=posix
20168 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20169 if test "$ol_link_threads" = no ; then
20171 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20172 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20173 if test "${ol_cv_pthread_pthreads+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 LIBS="-pthreads $LIBS"
20181 if test "$cross_compiling" = yes; then
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20189 /* pthread test headers */
20190 #include <pthread.h>
20191 #if HAVE_PTHREADS < 7
20195 #define NULL (void*)0
20198 static void *task(p)
20201 return (void *) (p == NULL);
20208 /* pthread test function */
20209 #ifndef PTHREAD_CREATE_DETACHED
20210 #define PTHREAD_CREATE_DETACHED 1
20214 int detach = PTHREAD_CREATE_DETACHED;
20216 #if HAVE_PTHREADS > 4
20217 /* Final pthreads */
20218 pthread_attr_t attr;
20220 status = pthread_attr_init(&attr);
20221 if( status ) return status;
20223 #if HAVE_PTHREADS < 7
20224 status = pthread_attr_setdetachstate(&attr, &detach);
20225 if( status < 0 ) status = errno;
20227 status = pthread_attr_setdetachstate(&attr, detach);
20229 if( status ) return status;
20230 status = pthread_create( &t, &attr, task, NULL );
20231 #if HAVE_PTHREADS < 7
20232 if( status < 0 ) status = errno;
20234 if( status ) return status;
20236 /* Draft 4 pthreads */
20237 status = pthread_create( &t, pthread_attr_default, task, NULL );
20238 if( status ) return errno;
20240 /* give thread a chance to complete */
20241 /* it should remain joinable and hence detachable */
20244 status = pthread_detach( &t );
20245 if( status ) return errno;
20248 #ifdef HAVE_LINUX_THREADS
20249 pthread_kill_other_threads_np();
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20260 (eval $ac_link) 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 { ac_try='test -z "$ac_c_werror_flag"
20268 || test ! -s conftest.err'
20269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270 (eval $ac_try) 2>&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); }; } &&
20274 { ac_try='test -s conftest$ac_exeext'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; }; then
20280 ol_cv_pthread_pthreads=yes
20282 echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20285 ol_cv_pthread_pthreads=no
20287 rm -f conftest.err conftest.$ac_objext \
20288 conftest$ac_exeext conftest.$ac_ext
20290 cat >conftest.$ac_ext <<_ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20297 /* pthread test headers */
20298 #include <pthread.h>
20299 #if HAVE_PTHREADS < 7
20303 #define NULL (void*)0
20306 static void *task(p)
20309 return (void *) (p == NULL);
20313 int main(argc, argv)
20318 /* pthread test function */
20319 #ifndef PTHREAD_CREATE_DETACHED
20320 #define PTHREAD_CREATE_DETACHED 1
20324 int detach = PTHREAD_CREATE_DETACHED;
20326 #if HAVE_PTHREADS > 4
20327 /* Final pthreads */
20328 pthread_attr_t attr;
20330 status = pthread_attr_init(&attr);
20331 if( status ) return status;
20333 #if HAVE_PTHREADS < 7
20334 status = pthread_attr_setdetachstate(&attr, &detach);
20335 if( status < 0 ) status = errno;
20337 status = pthread_attr_setdetachstate(&attr, detach);
20339 if( status ) return status;
20340 status = pthread_create( &t, &attr, task, NULL );
20341 #if HAVE_PTHREADS < 7
20342 if( status < 0 ) status = errno;
20344 if( status ) return status;
20346 /* Draft 4 pthreads */
20347 status = pthread_create( &t, pthread_attr_default, task, NULL );
20348 if( status ) return errno;
20350 /* give thread a chance to complete */
20351 /* it should remain joinable and hence detachable */
20354 status = pthread_detach( &t );
20355 if( status ) return errno;
20358 #ifdef HAVE_LINUX_THREADS
20359 pthread_kill_other_threads_np();
20367 rm -f conftest$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ol_cv_pthread_pthreads=yes
20380 echo "$as_me: program exited with status $ac_status" >&5
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ( exit $ac_status )
20385 ol_cv_pthread_pthreads=no
20387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20394 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20395 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20397 if test $ol_cv_pthread_pthreads = yes ; then
20398 ol_link_pthreads="-pthreads"
20399 ol_link_threads=posix
20403 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20404 if test "$ol_link_threads" = no ; then
20406 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20407 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20408 if test "${ol_cv_pthread_mthreads+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 LIBS="-mthreads $LIBS"
20416 if test "$cross_compiling" = yes; then
20417 cat >conftest.$ac_ext <<_ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20424 /* pthread test headers */
20425 #include <pthread.h>
20426 #if HAVE_PTHREADS < 7
20430 #define NULL (void*)0
20433 static void *task(p)
20436 return (void *) (p == NULL);
20443 /* pthread test function */
20444 #ifndef PTHREAD_CREATE_DETACHED
20445 #define PTHREAD_CREATE_DETACHED 1
20449 int detach = PTHREAD_CREATE_DETACHED;
20451 #if HAVE_PTHREADS > 4
20452 /* Final pthreads */
20453 pthread_attr_t attr;
20455 status = pthread_attr_init(&attr);
20456 if( status ) return status;
20458 #if HAVE_PTHREADS < 7
20459 status = pthread_attr_setdetachstate(&attr, &detach);
20460 if( status < 0 ) status = errno;
20462 status = pthread_attr_setdetachstate(&attr, detach);
20464 if( status ) return status;
20465 status = pthread_create( &t, &attr, task, NULL );
20466 #if HAVE_PTHREADS < 7
20467 if( status < 0 ) status = errno;
20469 if( status ) return status;
20471 /* Draft 4 pthreads */
20472 status = pthread_create( &t, pthread_attr_default, task, NULL );
20473 if( status ) return errno;
20475 /* give thread a chance to complete */
20476 /* it should remain joinable and hence detachable */
20479 status = pthread_detach( &t );
20480 if( status ) return errno;
20483 #ifdef HAVE_LINUX_THREADS
20484 pthread_kill_other_threads_np();
20493 rm -f conftest.$ac_objext conftest$ac_exeext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20495 (eval $ac_link) 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } &&
20502 { ac_try='test -z "$ac_c_werror_flag"
20503 || test ! -s conftest.err'
20504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505 (eval $ac_try) 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; } &&
20509 { ac_try='test -s conftest$ac_exeext'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }; then
20515 ol_cv_pthread_mthreads=yes
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ol_cv_pthread_mthreads=no
20522 rm -f conftest.err conftest.$ac_objext \
20523 conftest$ac_exeext conftest.$ac_ext
20525 cat >conftest.$ac_ext <<_ACEOF
20528 cat confdefs.h >>conftest.$ac_ext
20529 cat >>conftest.$ac_ext <<_ACEOF
20530 /* end confdefs.h. */
20532 /* pthread test headers */
20533 #include <pthread.h>
20534 #if HAVE_PTHREADS < 7
20538 #define NULL (void*)0
20541 static void *task(p)
20544 return (void *) (p == NULL);
20548 int main(argc, argv)
20553 /* pthread test function */
20554 #ifndef PTHREAD_CREATE_DETACHED
20555 #define PTHREAD_CREATE_DETACHED 1
20559 int detach = PTHREAD_CREATE_DETACHED;
20561 #if HAVE_PTHREADS > 4
20562 /* Final pthreads */
20563 pthread_attr_t attr;
20565 status = pthread_attr_init(&attr);
20566 if( status ) return status;
20568 #if HAVE_PTHREADS < 7
20569 status = pthread_attr_setdetachstate(&attr, &detach);
20570 if( status < 0 ) status = errno;
20572 status = pthread_attr_setdetachstate(&attr, detach);
20574 if( status ) return status;
20575 status = pthread_create( &t, &attr, task, NULL );
20576 #if HAVE_PTHREADS < 7
20577 if( status < 0 ) status = errno;
20579 if( status ) return status;
20581 /* Draft 4 pthreads */
20582 status = pthread_create( &t, pthread_attr_default, task, NULL );
20583 if( status ) return errno;
20585 /* give thread a chance to complete */
20586 /* it should remain joinable and hence detachable */
20589 status = pthread_detach( &t );
20590 if( status ) return errno;
20593 #ifdef HAVE_LINUX_THREADS
20594 pthread_kill_other_threads_np();
20602 rm -f conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604 (eval $ac_link) 2>&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609 (eval $ac_try) 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; }; then
20613 ol_cv_pthread_mthreads=yes
20615 echo "$as_me: program exited with status $ac_status" >&5
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20619 ( exit $ac_status )
20620 ol_cv_pthread_mthreads=no
20622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20629 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20630 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20632 if test $ol_cv_pthread_mthreads = yes ; then
20633 ol_link_pthreads="-mthreads"
20634 ol_link_threads=posix
20638 # Pthread try link: -thread (ol_cv_pthread_thread)
20639 if test "$ol_link_threads" = no ; then
20641 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20642 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20643 if test "${ol_cv_pthread_thread+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 LIBS="-thread $LIBS"
20651 if test "$cross_compiling" = yes; then
20652 cat >conftest.$ac_ext <<_ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20659 /* pthread test headers */
20660 #include <pthread.h>
20661 #if HAVE_PTHREADS < 7
20665 #define NULL (void*)0
20668 static void *task(p)
20671 return (void *) (p == NULL);
20678 /* pthread test function */
20679 #ifndef PTHREAD_CREATE_DETACHED
20680 #define PTHREAD_CREATE_DETACHED 1
20684 int detach = PTHREAD_CREATE_DETACHED;
20686 #if HAVE_PTHREADS > 4
20687 /* Final pthreads */
20688 pthread_attr_t attr;
20690 status = pthread_attr_init(&attr);
20691 if( status ) return status;
20693 #if HAVE_PTHREADS < 7
20694 status = pthread_attr_setdetachstate(&attr, &detach);
20695 if( status < 0 ) status = errno;
20697 status = pthread_attr_setdetachstate(&attr, detach);
20699 if( status ) return status;
20700 status = pthread_create( &t, &attr, task, NULL );
20701 #if HAVE_PTHREADS < 7
20702 if( status < 0 ) status = errno;
20704 if( status ) return status;
20706 /* Draft 4 pthreads */
20707 status = pthread_create( &t, pthread_attr_default, task, NULL );
20708 if( status ) return errno;
20710 /* give thread a chance to complete */
20711 /* it should remain joinable and hence detachable */
20714 status = pthread_detach( &t );
20715 if( status ) return errno;
20718 #ifdef HAVE_LINUX_THREADS
20719 pthread_kill_other_threads_np();
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20730 (eval $ac_link) 2>conftest.er1
20732 grep -v '^ *+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } &&
20737 { ac_try='test -z "$ac_c_werror_flag"
20738 || test ! -s conftest.err'
20739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20740 (eval $ac_try) 2>&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; } &&
20744 { ac_try='test -s conftest$ac_exeext'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20750 ol_cv_pthread_thread=yes
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ol_cv_pthread_thread=no
20757 rm -f conftest.err conftest.$ac_objext \
20758 conftest$ac_exeext conftest.$ac_ext
20760 cat >conftest.$ac_ext <<_ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20767 /* pthread test headers */
20768 #include <pthread.h>
20769 #if HAVE_PTHREADS < 7
20773 #define NULL (void*)0
20776 static void *task(p)
20779 return (void *) (p == NULL);
20783 int main(argc, argv)
20788 /* pthread test function */
20789 #ifndef PTHREAD_CREATE_DETACHED
20790 #define PTHREAD_CREATE_DETACHED 1
20794 int detach = PTHREAD_CREATE_DETACHED;
20796 #if HAVE_PTHREADS > 4
20797 /* Final pthreads */
20798 pthread_attr_t attr;
20800 status = pthread_attr_init(&attr);
20801 if( status ) return status;
20803 #if HAVE_PTHREADS < 7
20804 status = pthread_attr_setdetachstate(&attr, &detach);
20805 if( status < 0 ) status = errno;
20807 status = pthread_attr_setdetachstate(&attr, detach);
20809 if( status ) return status;
20810 status = pthread_create( &t, &attr, task, NULL );
20811 #if HAVE_PTHREADS < 7
20812 if( status < 0 ) status = errno;
20814 if( status ) return status;
20816 /* Draft 4 pthreads */
20817 status = pthread_create( &t, pthread_attr_default, task, NULL );
20818 if( status ) return errno;
20820 /* give thread a chance to complete */
20821 /* it should remain joinable and hence detachable */
20824 status = pthread_detach( &t );
20825 if( status ) return errno;
20828 #ifdef HAVE_LINUX_THREADS
20829 pthread_kill_other_threads_np();
20837 rm -f conftest$ac_exeext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20839 (eval $ac_link) 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 ol_cv_pthread_thread=yes
20850 echo "$as_me: program exited with status $ac_status" >&5
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20854 ( exit $ac_status )
20855 ol_cv_pthread_thread=no
20857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20864 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
20865 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
20867 if test $ol_cv_pthread_thread = yes ; then
20868 ol_link_pthreads="-thread"
20869 ol_link_threads=posix
20874 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20875 if test "$ol_link_threads" = no ; then
20876 # try -lpthread -lmach -lexc -lc_r
20877 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20878 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
20879 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
20880 echo $ECHO_N "(cached) $ECHO_C" >&6
20885 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20887 if test "$cross_compiling" = yes; then
20888 cat >conftest.$ac_ext <<_ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20895 /* pthread test headers */
20896 #include <pthread.h>
20897 #if HAVE_PTHREADS < 7
20901 #define NULL (void*)0
20904 static void *task(p)
20907 return (void *) (p == NULL);
20914 /* pthread test function */
20915 #ifndef PTHREAD_CREATE_DETACHED
20916 #define PTHREAD_CREATE_DETACHED 1
20920 int detach = PTHREAD_CREATE_DETACHED;
20922 #if HAVE_PTHREADS > 4
20923 /* Final pthreads */
20924 pthread_attr_t attr;
20926 status = pthread_attr_init(&attr);
20927 if( status ) return status;
20929 #if HAVE_PTHREADS < 7
20930 status = pthread_attr_setdetachstate(&attr, &detach);
20931 if( status < 0 ) status = errno;
20933 status = pthread_attr_setdetachstate(&attr, detach);
20935 if( status ) return status;
20936 status = pthread_create( &t, &attr, task, NULL );
20937 #if HAVE_PTHREADS < 7
20938 if( status < 0 ) status = errno;
20940 if( status ) return status;
20942 /* Draft 4 pthreads */
20943 status = pthread_create( &t, pthread_attr_default, task, NULL );
20944 if( status ) return errno;
20946 /* give thread a chance to complete */
20947 /* it should remain joinable and hence detachable */
20950 status = pthread_detach( &t );
20951 if( status ) return errno;
20954 #ifdef HAVE_LINUX_THREADS
20955 pthread_kill_other_threads_np();
20964 rm -f conftest.$ac_objext conftest$ac_exeext
20965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20966 (eval $ac_link) 2>conftest.er1
20968 grep -v '^ *+' conftest.er1 >conftest.err
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
20973 { ac_try='test -z "$ac_c_werror_flag"
20974 || test ! -s conftest.err'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; } &&
20980 { ac_try='test -s conftest$ac_exeext'
20981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20982 (eval $ac_try) 2>&5
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); }; }; then
20986 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20991 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20993 rm -f conftest.err conftest.$ac_objext \
20994 conftest$ac_exeext conftest.$ac_ext
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21003 /* pthread test headers */
21004 #include <pthread.h>
21005 #if HAVE_PTHREADS < 7
21009 #define NULL (void*)0
21012 static void *task(p)
21015 return (void *) (p == NULL);
21019 int main(argc, argv)
21024 /* pthread test function */
21025 #ifndef PTHREAD_CREATE_DETACHED
21026 #define PTHREAD_CREATE_DETACHED 1
21030 int detach = PTHREAD_CREATE_DETACHED;
21032 #if HAVE_PTHREADS > 4
21033 /* Final pthreads */
21034 pthread_attr_t attr;
21036 status = pthread_attr_init(&attr);
21037 if( status ) return status;
21039 #if HAVE_PTHREADS < 7
21040 status = pthread_attr_setdetachstate(&attr, &detach);
21041 if( status < 0 ) status = errno;
21043 status = pthread_attr_setdetachstate(&attr, detach);
21045 if( status ) return status;
21046 status = pthread_create( &t, &attr, task, NULL );
21047 #if HAVE_PTHREADS < 7
21048 if( status < 0 ) status = errno;
21050 if( status ) return status;
21052 /* Draft 4 pthreads */
21053 status = pthread_create( &t, pthread_attr_default, task, NULL );
21054 if( status ) return errno;
21056 /* give thread a chance to complete */
21057 /* it should remain joinable and hence detachable */
21060 status = pthread_detach( &t );
21061 if( status ) return errno;
21064 #ifdef HAVE_LINUX_THREADS
21065 pthread_kill_other_threads_np();
21073 rm -f conftest$ac_exeext
21074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21075 (eval $ac_link) 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21086 echo "$as_me: program exited with status $ac_status" >&5
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 ( exit $ac_status )
21091 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21100 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21101 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21103 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21104 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21105 ol_link_threads=posix
21109 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21110 if test "$ol_link_threads" = no ; then
21111 # try -lpthread -lmach -lexc
21112 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21113 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21114 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 LIBS="-lpthread -lmach -lexc $LIBS"
21122 if test "$cross_compiling" = yes; then
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21130 /* pthread test headers */
21131 #include <pthread.h>
21132 #if HAVE_PTHREADS < 7
21136 #define NULL (void*)0
21139 static void *task(p)
21142 return (void *) (p == NULL);
21149 /* pthread test function */
21150 #ifndef PTHREAD_CREATE_DETACHED
21151 #define PTHREAD_CREATE_DETACHED 1
21155 int detach = PTHREAD_CREATE_DETACHED;
21157 #if HAVE_PTHREADS > 4
21158 /* Final pthreads */
21159 pthread_attr_t attr;
21161 status = pthread_attr_init(&attr);
21162 if( status ) return status;
21164 #if HAVE_PTHREADS < 7
21165 status = pthread_attr_setdetachstate(&attr, &detach);
21166 if( status < 0 ) status = errno;
21168 status = pthread_attr_setdetachstate(&attr, detach);
21170 if( status ) return status;
21171 status = pthread_create( &t, &attr, task, NULL );
21172 #if HAVE_PTHREADS < 7
21173 if( status < 0 ) status = errno;
21175 if( status ) return status;
21177 /* Draft 4 pthreads */
21178 status = pthread_create( &t, pthread_attr_default, task, NULL );
21179 if( status ) return errno;
21181 /* give thread a chance to complete */
21182 /* it should remain joinable and hence detachable */
21185 status = pthread_detach( &t );
21186 if( status ) return errno;
21189 #ifdef HAVE_LINUX_THREADS
21190 pthread_kill_other_threads_np();
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21201 (eval $ac_link) 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_c_werror_flag"
21209 || test ! -s conftest.err'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest$ac_exeext'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21221 ol_cv_pthread_lpthread_lmach_lexc=yes
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 ol_cv_pthread_lpthread_lmach_lexc=no
21228 rm -f conftest.err conftest.$ac_objext \
21229 conftest$ac_exeext conftest.$ac_ext
21231 cat >conftest.$ac_ext <<_ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21238 /* pthread test headers */
21239 #include <pthread.h>
21240 #if HAVE_PTHREADS < 7
21244 #define NULL (void*)0
21247 static void *task(p)
21250 return (void *) (p == NULL);
21254 int main(argc, argv)
21259 /* pthread test function */
21260 #ifndef PTHREAD_CREATE_DETACHED
21261 #define PTHREAD_CREATE_DETACHED 1
21265 int detach = PTHREAD_CREATE_DETACHED;
21267 #if HAVE_PTHREADS > 4
21268 /* Final pthreads */
21269 pthread_attr_t attr;
21271 status = pthread_attr_init(&attr);
21272 if( status ) return status;
21274 #if HAVE_PTHREADS < 7
21275 status = pthread_attr_setdetachstate(&attr, &detach);
21276 if( status < 0 ) status = errno;
21278 status = pthread_attr_setdetachstate(&attr, detach);
21280 if( status ) return status;
21281 status = pthread_create( &t, &attr, task, NULL );
21282 #if HAVE_PTHREADS < 7
21283 if( status < 0 ) status = errno;
21285 if( status ) return status;
21287 /* Draft 4 pthreads */
21288 status = pthread_create( &t, pthread_attr_default, task, NULL );
21289 if( status ) return errno;
21291 /* give thread a chance to complete */
21292 /* it should remain joinable and hence detachable */
21295 status = pthread_detach( &t );
21296 if( status ) return errno;
21299 #ifdef HAVE_LINUX_THREADS
21300 pthread_kill_other_threads_np();
21308 rm -f conftest$ac_exeext
21309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21310 (eval $ac_link) 2>&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ol_cv_pthread_lpthread_lmach_lexc=yes
21321 echo "$as_me: program exited with status $ac_status" >&5
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ( exit $ac_status )
21326 ol_cv_pthread_lpthread_lmach_lexc=no
21328 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21335 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21336 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21338 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21339 ol_link_pthreads="-lpthread -lmach -lexc"
21340 ol_link_threads=posix
21345 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21346 if test "$ol_link_threads" = no ; then
21347 # try -lpthread -Wl,-woff,85
21348 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21349 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21350 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21358 if test "$cross_compiling" = yes; then
21359 cat >conftest.$ac_ext <<_ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21366 /* pthread test headers */
21367 #include <pthread.h>
21368 #if HAVE_PTHREADS < 7
21372 #define NULL (void*)0
21375 static void *task(p)
21378 return (void *) (p == NULL);
21385 /* pthread test function */
21386 #ifndef PTHREAD_CREATE_DETACHED
21387 #define PTHREAD_CREATE_DETACHED 1
21391 int detach = PTHREAD_CREATE_DETACHED;
21393 #if HAVE_PTHREADS > 4
21394 /* Final pthreads */
21395 pthread_attr_t attr;
21397 status = pthread_attr_init(&attr);
21398 if( status ) return status;
21400 #if HAVE_PTHREADS < 7
21401 status = pthread_attr_setdetachstate(&attr, &detach);
21402 if( status < 0 ) status = errno;
21404 status = pthread_attr_setdetachstate(&attr, detach);
21406 if( status ) return status;
21407 status = pthread_create( &t, &attr, task, NULL );
21408 #if HAVE_PTHREADS < 7
21409 if( status < 0 ) status = errno;
21411 if( status ) return status;
21413 /* Draft 4 pthreads */
21414 status = pthread_create( &t, pthread_attr_default, task, NULL );
21415 if( status ) return errno;
21417 /* give thread a chance to complete */
21418 /* it should remain joinable and hence detachable */
21421 status = pthread_detach( &t );
21422 if( status ) return errno;
21425 #ifdef HAVE_LINUX_THREADS
21426 pthread_kill_other_threads_np();
21435 rm -f conftest.$ac_objext conftest$ac_exeext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437 (eval $ac_link) 2>conftest.er1
21439 grep -v '^ *+' conftest.er1 >conftest.err
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } &&
21444 { ac_try='test -z "$ac_c_werror_flag"
21445 || test ! -s conftest.err'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; } &&
21451 { ac_try='test -s conftest$ac_exeext'
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; }; then
21457 ol_cv_pthread_lib_lpthread_woff=yes
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21462 ol_cv_pthread_lib_lpthread_woff=no
21464 rm -f conftest.err conftest.$ac_objext \
21465 conftest$ac_exeext conftest.$ac_ext
21467 cat >conftest.$ac_ext <<_ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21474 /* pthread test headers */
21475 #include <pthread.h>
21476 #if HAVE_PTHREADS < 7
21480 #define NULL (void*)0
21483 static void *task(p)
21486 return (void *) (p == NULL);
21490 int main(argc, argv)
21495 /* pthread test function */
21496 #ifndef PTHREAD_CREATE_DETACHED
21497 #define PTHREAD_CREATE_DETACHED 1
21501 int detach = PTHREAD_CREATE_DETACHED;
21503 #if HAVE_PTHREADS > 4
21504 /* Final pthreads */
21505 pthread_attr_t attr;
21507 status = pthread_attr_init(&attr);
21508 if( status ) return status;
21510 #if HAVE_PTHREADS < 7
21511 status = pthread_attr_setdetachstate(&attr, &detach);
21512 if( status < 0 ) status = errno;
21514 status = pthread_attr_setdetachstate(&attr, detach);
21516 if( status ) return status;
21517 status = pthread_create( &t, &attr, task, NULL );
21518 #if HAVE_PTHREADS < 7
21519 if( status < 0 ) status = errno;
21521 if( status ) return status;
21523 /* Draft 4 pthreads */
21524 status = pthread_create( &t, pthread_attr_default, task, NULL );
21525 if( status ) return errno;
21527 /* give thread a chance to complete */
21528 /* it should remain joinable and hence detachable */
21531 status = pthread_detach( &t );
21532 if( status ) return errno;
21535 #ifdef HAVE_LINUX_THREADS
21536 pthread_kill_other_threads_np();
21544 rm -f conftest$ac_exeext
21545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21546 (eval $ac_link) 2>&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ol_cv_pthread_lib_lpthread_woff=yes
21557 echo "$as_me: program exited with status $ac_status" >&5
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21561 ( exit $ac_status )
21562 ol_cv_pthread_lib_lpthread_woff=no
21564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21571 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21572 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21574 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21575 ol_link_pthreads="-lpthread -Wl,-woff,85"
21576 ol_link_threads=posix
21581 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21582 if test "$ol_link_threads" = no ; then
21584 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21585 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21586 if test "${ol_cv_pthread_lpthread+set}" = set; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 LIBS="-lpthread $LIBS"
21594 if test "$cross_compiling" = yes; then
21595 cat >conftest.$ac_ext <<_ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21602 /* pthread test headers */
21603 #include <pthread.h>
21604 #if HAVE_PTHREADS < 7
21608 #define NULL (void*)0
21611 static void *task(p)
21614 return (void *) (p == NULL);
21621 /* pthread test function */
21622 #ifndef PTHREAD_CREATE_DETACHED
21623 #define PTHREAD_CREATE_DETACHED 1
21627 int detach = PTHREAD_CREATE_DETACHED;
21629 #if HAVE_PTHREADS > 4
21630 /* Final pthreads */
21631 pthread_attr_t attr;
21633 status = pthread_attr_init(&attr);
21634 if( status ) return status;
21636 #if HAVE_PTHREADS < 7
21637 status = pthread_attr_setdetachstate(&attr, &detach);
21638 if( status < 0 ) status = errno;
21640 status = pthread_attr_setdetachstate(&attr, detach);
21642 if( status ) return status;
21643 status = pthread_create( &t, &attr, task, NULL );
21644 #if HAVE_PTHREADS < 7
21645 if( status < 0 ) status = errno;
21647 if( status ) return status;
21649 /* Draft 4 pthreads */
21650 status = pthread_create( &t, pthread_attr_default, task, NULL );
21651 if( status ) return errno;
21653 /* give thread a chance to complete */
21654 /* it should remain joinable and hence detachable */
21657 status = pthread_detach( &t );
21658 if( status ) return errno;
21661 #ifdef HAVE_LINUX_THREADS
21662 pthread_kill_other_threads_np();
21671 rm -f conftest.$ac_objext conftest$ac_exeext
21672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21673 (eval $ac_link) 2>conftest.er1
21675 grep -v '^ *+' conftest.er1 >conftest.err
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } &&
21680 { ac_try='test -z "$ac_c_werror_flag"
21681 || test ! -s conftest.err'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; } &&
21687 { ac_try='test -s conftest$ac_exeext'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 ol_cv_pthread_lpthread=yes
21695 echo "$as_me: failed program was:" >&5
21696 sed 's/^/| /' conftest.$ac_ext >&5
21698 ol_cv_pthread_lpthread=no
21700 rm -f conftest.err conftest.$ac_objext \
21701 conftest$ac_exeext conftest.$ac_ext
21703 cat >conftest.$ac_ext <<_ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21710 /* pthread test headers */
21711 #include <pthread.h>
21712 #if HAVE_PTHREADS < 7
21716 #define NULL (void*)0
21719 static void *task(p)
21722 return (void *) (p == NULL);
21726 int main(argc, argv)
21731 /* pthread test function */
21732 #ifndef PTHREAD_CREATE_DETACHED
21733 #define PTHREAD_CREATE_DETACHED 1
21737 int detach = PTHREAD_CREATE_DETACHED;
21739 #if HAVE_PTHREADS > 4
21740 /* Final pthreads */
21741 pthread_attr_t attr;
21743 status = pthread_attr_init(&attr);
21744 if( status ) return status;
21746 #if HAVE_PTHREADS < 7
21747 status = pthread_attr_setdetachstate(&attr, &detach);
21748 if( status < 0 ) status = errno;
21750 status = pthread_attr_setdetachstate(&attr, detach);
21752 if( status ) return status;
21753 status = pthread_create( &t, &attr, task, NULL );
21754 #if HAVE_PTHREADS < 7
21755 if( status < 0 ) status = errno;
21757 if( status ) return status;
21759 /* Draft 4 pthreads */
21760 status = pthread_create( &t, pthread_attr_default, task, NULL );
21761 if( status ) return errno;
21763 /* give thread a chance to complete */
21764 /* it should remain joinable and hence detachable */
21767 status = pthread_detach( &t );
21768 if( status ) return errno;
21771 #ifdef HAVE_LINUX_THREADS
21772 pthread_kill_other_threads_np();
21780 rm -f conftest$ac_exeext
21781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21782 (eval $ac_link) 2>&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 ol_cv_pthread_lpthread=yes
21793 echo "$as_me: program exited with status $ac_status" >&5
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21797 ( exit $ac_status )
21798 ol_cv_pthread_lpthread=no
21800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21807 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
21808 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
21810 if test $ol_cv_pthread_lpthread = yes ; then
21811 ol_link_pthreads="-lpthread"
21812 ol_link_threads=posix
21816 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21817 if test "$ol_link_threads" = no ; then
21819 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
21820 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
21821 if test "${ol_cv_pthread_lc_r+set}" = set; then
21822 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 if test "$cross_compiling" = yes; then
21830 cat >conftest.$ac_ext <<_ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21837 /* pthread test headers */
21838 #include <pthread.h>
21839 #if HAVE_PTHREADS < 7
21843 #define NULL (void*)0
21846 static void *task(p)
21849 return (void *) (p == NULL);
21856 /* pthread test function */
21857 #ifndef PTHREAD_CREATE_DETACHED
21858 #define PTHREAD_CREATE_DETACHED 1
21862 int detach = PTHREAD_CREATE_DETACHED;
21864 #if HAVE_PTHREADS > 4
21865 /* Final pthreads */
21866 pthread_attr_t attr;
21868 status = pthread_attr_init(&attr);
21869 if( status ) return status;
21871 #if HAVE_PTHREADS < 7
21872 status = pthread_attr_setdetachstate(&attr, &detach);
21873 if( status < 0 ) status = errno;
21875 status = pthread_attr_setdetachstate(&attr, detach);
21877 if( status ) return status;
21878 status = pthread_create( &t, &attr, task, NULL );
21879 #if HAVE_PTHREADS < 7
21880 if( status < 0 ) status = errno;
21882 if( status ) return status;
21884 /* Draft 4 pthreads */
21885 status = pthread_create( &t, pthread_attr_default, task, NULL );
21886 if( status ) return errno;
21888 /* give thread a chance to complete */
21889 /* it should remain joinable and hence detachable */
21892 status = pthread_detach( &t );
21893 if( status ) return errno;
21896 #ifdef HAVE_LINUX_THREADS
21897 pthread_kill_other_threads_np();
21906 rm -f conftest.$ac_objext conftest$ac_exeext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21908 (eval $ac_link) 2>conftest.er1
21910 grep -v '^ *+' conftest.er1 >conftest.err
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } &&
21915 { ac_try='test -z "$ac_c_werror_flag"
21916 || test ! -s conftest.err'
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; } &&
21922 { ac_try='test -s conftest$ac_exeext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 ol_cv_pthread_lc_r=yes
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ol_cv_pthread_lc_r=no
21935 rm -f conftest.err conftest.$ac_objext \
21936 conftest$ac_exeext conftest.$ac_ext
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21945 /* pthread test headers */
21946 #include <pthread.h>
21947 #if HAVE_PTHREADS < 7
21951 #define NULL (void*)0
21954 static void *task(p)
21957 return (void *) (p == NULL);
21961 int main(argc, argv)
21966 /* pthread test function */
21967 #ifndef PTHREAD_CREATE_DETACHED
21968 #define PTHREAD_CREATE_DETACHED 1
21972 int detach = PTHREAD_CREATE_DETACHED;
21974 #if HAVE_PTHREADS > 4
21975 /* Final pthreads */
21976 pthread_attr_t attr;
21978 status = pthread_attr_init(&attr);
21979 if( status ) return status;
21981 #if HAVE_PTHREADS < 7
21982 status = pthread_attr_setdetachstate(&attr, &detach);
21983 if( status < 0 ) status = errno;
21985 status = pthread_attr_setdetachstate(&attr, detach);
21987 if( status ) return status;
21988 status = pthread_create( &t, &attr, task, NULL );
21989 #if HAVE_PTHREADS < 7
21990 if( status < 0 ) status = errno;
21992 if( status ) return status;
21994 /* Draft 4 pthreads */
21995 status = pthread_create( &t, pthread_attr_default, task, NULL );
21996 if( status ) return errno;
21998 /* give thread a chance to complete */
21999 /* it should remain joinable and hence detachable */
22002 status = pthread_detach( &t );
22003 if( status ) return errno;
22006 #ifdef HAVE_LINUX_THREADS
22007 pthread_kill_other_threads_np();
22015 rm -f conftest$ac_exeext
22016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22017 (eval $ac_link) 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22022 (eval $ac_try) 2>&5
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; }; then
22026 ol_cv_pthread_lc_r=yes
22028 echo "$as_me: program exited with status $ac_status" >&5
22029 echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22032 ( exit $ac_status )
22033 ol_cv_pthread_lc_r=no
22035 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22042 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22043 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22045 if test $ol_cv_pthread_lc_r = yes ; then
22046 ol_link_pthreads="-lc_r"
22047 ol_link_threads=posix
22052 # Pthread try link: -threads (ol_cv_pthread_threads)
22053 if test "$ol_link_threads" = no ; then
22055 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22056 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22057 if test "${ol_cv_pthread_threads+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 LIBS="-threads $LIBS"
22065 if test "$cross_compiling" = yes; then
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22073 /* pthread test headers */
22074 #include <pthread.h>
22075 #if HAVE_PTHREADS < 7
22079 #define NULL (void*)0
22082 static void *task(p)
22085 return (void *) (p == NULL);
22092 /* pthread test function */
22093 #ifndef PTHREAD_CREATE_DETACHED
22094 #define PTHREAD_CREATE_DETACHED 1
22098 int detach = PTHREAD_CREATE_DETACHED;
22100 #if HAVE_PTHREADS > 4
22101 /* Final pthreads */
22102 pthread_attr_t attr;
22104 status = pthread_attr_init(&attr);
22105 if( status ) return status;
22107 #if HAVE_PTHREADS < 7
22108 status = pthread_attr_setdetachstate(&attr, &detach);
22109 if( status < 0 ) status = errno;
22111 status = pthread_attr_setdetachstate(&attr, detach);
22113 if( status ) return status;
22114 status = pthread_create( &t, &attr, task, NULL );
22115 #if HAVE_PTHREADS < 7
22116 if( status < 0 ) status = errno;
22118 if( status ) return status;
22120 /* Draft 4 pthreads */
22121 status = pthread_create( &t, pthread_attr_default, task, NULL );
22122 if( status ) return errno;
22124 /* give thread a chance to complete */
22125 /* it should remain joinable and hence detachable */
22128 status = pthread_detach( &t );
22129 if( status ) return errno;
22132 #ifdef HAVE_LINUX_THREADS
22133 pthread_kill_other_threads_np();
22142 rm -f conftest.$ac_objext conftest$ac_exeext
22143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22144 (eval $ac_link) 2>conftest.er1
22146 grep -v '^ *+' conftest.er1 >conftest.err
22148 cat conftest.err >&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } &&
22151 { ac_try='test -z "$ac_c_werror_flag"
22152 || test ! -s conftest.err'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } &&
22158 { ac_try='test -s conftest$ac_exeext'
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 ol_cv_pthread_threads=yes
22166 echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 ol_cv_pthread_threads=no
22171 rm -f conftest.err conftest.$ac_objext \
22172 conftest$ac_exeext conftest.$ac_ext
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22181 /* pthread test headers */
22182 #include <pthread.h>
22183 #if HAVE_PTHREADS < 7
22187 #define NULL (void*)0
22190 static void *task(p)
22193 return (void *) (p == NULL);
22197 int main(argc, argv)
22202 /* pthread test function */
22203 #ifndef PTHREAD_CREATE_DETACHED
22204 #define PTHREAD_CREATE_DETACHED 1
22208 int detach = PTHREAD_CREATE_DETACHED;
22210 #if HAVE_PTHREADS > 4
22211 /* Final pthreads */
22212 pthread_attr_t attr;
22214 status = pthread_attr_init(&attr);
22215 if( status ) return status;
22217 #if HAVE_PTHREADS < 7
22218 status = pthread_attr_setdetachstate(&attr, &detach);
22219 if( status < 0 ) status = errno;
22221 status = pthread_attr_setdetachstate(&attr, detach);
22223 if( status ) return status;
22224 status = pthread_create( &t, &attr, task, NULL );
22225 #if HAVE_PTHREADS < 7
22226 if( status < 0 ) status = errno;
22228 if( status ) return status;
22230 /* Draft 4 pthreads */
22231 status = pthread_create( &t, pthread_attr_default, task, NULL );
22232 if( status ) return errno;
22234 /* give thread a chance to complete */
22235 /* it should remain joinable and hence detachable */
22238 status = pthread_detach( &t );
22239 if( status ) return errno;
22242 #ifdef HAVE_LINUX_THREADS
22243 pthread_kill_other_threads_np();
22251 rm -f conftest$ac_exeext
22252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22253 (eval $ac_link) 2>&5
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; }; then
22262 ol_cv_pthread_threads=yes
22264 echo "$as_me: program exited with status $ac_status" >&5
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ( exit $ac_status )
22269 ol_cv_pthread_threads=no
22271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22278 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22279 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22281 if test $ol_cv_pthread_threads = yes ; then
22282 ol_link_pthreads="-threads"
22283 ol_link_threads=posix
22288 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22289 if test "$ol_link_threads" = no ; then
22290 # try -lpthreads -lmach -lexc -lc_r
22291 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22292 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22293 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22299 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22301 if test "$cross_compiling" = yes; then
22302 cat >conftest.$ac_ext <<_ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22309 /* pthread test headers */
22310 #include <pthread.h>
22311 #if HAVE_PTHREADS < 7
22315 #define NULL (void*)0
22318 static void *task(p)
22321 return (void *) (p == NULL);
22328 /* pthread test function */
22329 #ifndef PTHREAD_CREATE_DETACHED
22330 #define PTHREAD_CREATE_DETACHED 1
22334 int detach = PTHREAD_CREATE_DETACHED;
22336 #if HAVE_PTHREADS > 4
22337 /* Final pthreads */
22338 pthread_attr_t attr;
22340 status = pthread_attr_init(&attr);
22341 if( status ) return status;
22343 #if HAVE_PTHREADS < 7
22344 status = pthread_attr_setdetachstate(&attr, &detach);
22345 if( status < 0 ) status = errno;
22347 status = pthread_attr_setdetachstate(&attr, detach);
22349 if( status ) return status;
22350 status = pthread_create( &t, &attr, task, NULL );
22351 #if HAVE_PTHREADS < 7
22352 if( status < 0 ) status = errno;
22354 if( status ) return status;
22356 /* Draft 4 pthreads */
22357 status = pthread_create( &t, pthread_attr_default, task, NULL );
22358 if( status ) return errno;
22360 /* give thread a chance to complete */
22361 /* it should remain joinable and hence detachable */
22364 status = pthread_detach( &t );
22365 if( status ) return errno;
22368 #ifdef HAVE_LINUX_THREADS
22369 pthread_kill_other_threads_np();
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22380 (eval $ac_link) 2>conftest.er1
22382 grep -v '^ *+' conftest.er1 >conftest.err
22384 cat conftest.err >&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } &&
22387 { ac_try='test -z "$ac_c_werror_flag"
22388 || test ! -s conftest.err'
22389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390 (eval $ac_try) 2>&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; } &&
22394 { ac_try='test -s conftest$ac_exeext'
22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); }; }; then
22400 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22402 echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22405 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22407 rm -f conftest.err conftest.$ac_objext \
22408 conftest$ac_exeext conftest.$ac_ext
22410 cat >conftest.$ac_ext <<_ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22417 /* pthread test headers */
22418 #include <pthread.h>
22419 #if HAVE_PTHREADS < 7
22423 #define NULL (void*)0
22426 static void *task(p)
22429 return (void *) (p == NULL);
22433 int main(argc, argv)
22438 /* pthread test function */
22439 #ifndef PTHREAD_CREATE_DETACHED
22440 #define PTHREAD_CREATE_DETACHED 1
22444 int detach = PTHREAD_CREATE_DETACHED;
22446 #if HAVE_PTHREADS > 4
22447 /* Final pthreads */
22448 pthread_attr_t attr;
22450 status = pthread_attr_init(&attr);
22451 if( status ) return status;
22453 #if HAVE_PTHREADS < 7
22454 status = pthread_attr_setdetachstate(&attr, &detach);
22455 if( status < 0 ) status = errno;
22457 status = pthread_attr_setdetachstate(&attr, detach);
22459 if( status ) return status;
22460 status = pthread_create( &t, &attr, task, NULL );
22461 #if HAVE_PTHREADS < 7
22462 if( status < 0 ) status = errno;
22464 if( status ) return status;
22466 /* Draft 4 pthreads */
22467 status = pthread_create( &t, pthread_attr_default, task, NULL );
22468 if( status ) return errno;
22470 /* give thread a chance to complete */
22471 /* it should remain joinable and hence detachable */
22474 status = pthread_detach( &t );
22475 if( status ) return errno;
22478 #ifdef HAVE_LINUX_THREADS
22479 pthread_kill_other_threads_np();
22487 rm -f conftest$ac_exeext
22488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22489 (eval $ac_link) 2>&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22500 echo "$as_me: program exited with status $ac_status" >&5
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ( exit $ac_status )
22505 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22514 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22515 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22517 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22518 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22519 ol_link_threads=posix
22523 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22524 if test "$ol_link_threads" = no ; then
22525 # try -lpthreads -lmach -lexc
22526 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22527 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22528 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22529 echo $ECHO_N "(cached) $ECHO_C" >&6
22534 LIBS="-lpthreads -lmach -lexc $LIBS"
22536 if test "$cross_compiling" = yes; then
22537 cat >conftest.$ac_ext <<_ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22544 /* pthread test headers */
22545 #include <pthread.h>
22546 #if HAVE_PTHREADS < 7
22550 #define NULL (void*)0
22553 static void *task(p)
22556 return (void *) (p == NULL);
22563 /* pthread test function */
22564 #ifndef PTHREAD_CREATE_DETACHED
22565 #define PTHREAD_CREATE_DETACHED 1
22569 int detach = PTHREAD_CREATE_DETACHED;
22571 #if HAVE_PTHREADS > 4
22572 /* Final pthreads */
22573 pthread_attr_t attr;
22575 status = pthread_attr_init(&attr);
22576 if( status ) return status;
22578 #if HAVE_PTHREADS < 7
22579 status = pthread_attr_setdetachstate(&attr, &detach);
22580 if( status < 0 ) status = errno;
22582 status = pthread_attr_setdetachstate(&attr, detach);
22584 if( status ) return status;
22585 status = pthread_create( &t, &attr, task, NULL );
22586 #if HAVE_PTHREADS < 7
22587 if( status < 0 ) status = errno;
22589 if( status ) return status;
22591 /* Draft 4 pthreads */
22592 status = pthread_create( &t, pthread_attr_default, task, NULL );
22593 if( status ) return errno;
22595 /* give thread a chance to complete */
22596 /* it should remain joinable and hence detachable */
22599 status = pthread_detach( &t );
22600 if( status ) return errno;
22603 #ifdef HAVE_LINUX_THREADS
22604 pthread_kill_other_threads_np();
22613 rm -f conftest.$ac_objext conftest$ac_exeext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22615 (eval $ac_link) 2>conftest.er1
22617 grep -v '^ *+' conftest.er1 >conftest.err
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } &&
22622 { ac_try='test -z "$ac_c_werror_flag"
22623 || test ! -s conftest.err'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; } &&
22629 { ac_try='test -s conftest$ac_exeext'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635 ol_cv_pthread_lpthreads_lmach_lexc=yes
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 ol_cv_pthread_lpthreads_lmach_lexc=no
22642 rm -f conftest.err conftest.$ac_objext \
22643 conftest$ac_exeext conftest.$ac_ext
22645 cat >conftest.$ac_ext <<_ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22652 /* pthread test headers */
22653 #include <pthread.h>
22654 #if HAVE_PTHREADS < 7
22658 #define NULL (void*)0
22661 static void *task(p)
22664 return (void *) (p == NULL);
22668 int main(argc, argv)
22673 /* pthread test function */
22674 #ifndef PTHREAD_CREATE_DETACHED
22675 #define PTHREAD_CREATE_DETACHED 1
22679 int detach = PTHREAD_CREATE_DETACHED;
22681 #if HAVE_PTHREADS > 4
22682 /* Final pthreads */
22683 pthread_attr_t attr;
22685 status = pthread_attr_init(&attr);
22686 if( status ) return status;
22688 #if HAVE_PTHREADS < 7
22689 status = pthread_attr_setdetachstate(&attr, &detach);
22690 if( status < 0 ) status = errno;
22692 status = pthread_attr_setdetachstate(&attr, detach);
22694 if( status ) return status;
22695 status = pthread_create( &t, &attr, task, NULL );
22696 #if HAVE_PTHREADS < 7
22697 if( status < 0 ) status = errno;
22699 if( status ) return status;
22701 /* Draft 4 pthreads */
22702 status = pthread_create( &t, pthread_attr_default, task, NULL );
22703 if( status ) return errno;
22705 /* give thread a chance to complete */
22706 /* it should remain joinable and hence detachable */
22709 status = pthread_detach( &t );
22710 if( status ) return errno;
22713 #ifdef HAVE_LINUX_THREADS
22714 pthread_kill_other_threads_np();
22722 rm -f conftest$ac_exeext
22723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22724 (eval $ac_link) 2>&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; }; then
22733 ol_cv_pthread_lpthreads_lmach_lexc=yes
22735 echo "$as_me: program exited with status $ac_status" >&5
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22739 ( exit $ac_status )
22740 ol_cv_pthread_lpthreads_lmach_lexc=no
22742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22749 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22750 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22752 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22753 ol_link_pthreads="-lpthreads -lmach -lexc"
22754 ol_link_threads=posix
22758 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
22759 if test "$ol_link_threads" = no ; then
22760 # try -lpthreads -lexc
22761 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
22762 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
22763 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 LIBS="-lpthreads -lexc $LIBS"
22771 if test "$cross_compiling" = yes; then
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22779 /* pthread test headers */
22780 #include <pthread.h>
22781 #if HAVE_PTHREADS < 7
22785 #define NULL (void*)0
22788 static void *task(p)
22791 return (void *) (p == NULL);
22798 /* pthread test function */
22799 #ifndef PTHREAD_CREATE_DETACHED
22800 #define PTHREAD_CREATE_DETACHED 1
22804 int detach = PTHREAD_CREATE_DETACHED;
22806 #if HAVE_PTHREADS > 4
22807 /* Final pthreads */
22808 pthread_attr_t attr;
22810 status = pthread_attr_init(&attr);
22811 if( status ) return status;
22813 #if HAVE_PTHREADS < 7
22814 status = pthread_attr_setdetachstate(&attr, &detach);
22815 if( status < 0 ) status = errno;
22817 status = pthread_attr_setdetachstate(&attr, detach);
22819 if( status ) return status;
22820 status = pthread_create( &t, &attr, task, NULL );
22821 #if HAVE_PTHREADS < 7
22822 if( status < 0 ) status = errno;
22824 if( status ) return status;
22826 /* Draft 4 pthreads */
22827 status = pthread_create( &t, pthread_attr_default, task, NULL );
22828 if( status ) return errno;
22830 /* give thread a chance to complete */
22831 /* it should remain joinable and hence detachable */
22834 status = pthread_detach( &t );
22835 if( status ) return errno;
22838 #ifdef HAVE_LINUX_THREADS
22839 pthread_kill_other_threads_np();
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850 (eval $ac_link) 2>conftest.er1
22852 grep -v '^ *+' conftest.er1 >conftest.err
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } &&
22857 { ac_try='test -z "$ac_c_werror_flag"
22858 || test ! -s conftest.err'
22859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860 (eval $ac_try) 2>&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }; } &&
22864 { ac_try='test -s conftest$ac_exeext'
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; }; then
22870 ol_cv_pthread_lpthreads_lexc=yes
22872 echo "$as_me: failed program was:" >&5
22873 sed 's/^/| /' conftest.$ac_ext >&5
22875 ol_cv_pthread_lpthreads_lexc=no
22877 rm -f conftest.err conftest.$ac_objext \
22878 conftest$ac_exeext conftest.$ac_ext
22880 cat >conftest.$ac_ext <<_ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22887 /* pthread test headers */
22888 #include <pthread.h>
22889 #if HAVE_PTHREADS < 7
22893 #define NULL (void*)0
22896 static void *task(p)
22899 return (void *) (p == NULL);
22903 int main(argc, argv)
22908 /* pthread test function */
22909 #ifndef PTHREAD_CREATE_DETACHED
22910 #define PTHREAD_CREATE_DETACHED 1
22914 int detach = PTHREAD_CREATE_DETACHED;
22916 #if HAVE_PTHREADS > 4
22917 /* Final pthreads */
22918 pthread_attr_t attr;
22920 status = pthread_attr_init(&attr);
22921 if( status ) return status;
22923 #if HAVE_PTHREADS < 7
22924 status = pthread_attr_setdetachstate(&attr, &detach);
22925 if( status < 0 ) status = errno;
22927 status = pthread_attr_setdetachstate(&attr, detach);
22929 if( status ) return status;
22930 status = pthread_create( &t, &attr, task, NULL );
22931 #if HAVE_PTHREADS < 7
22932 if( status < 0 ) status = errno;
22934 if( status ) return status;
22936 /* Draft 4 pthreads */
22937 status = pthread_create( &t, pthread_attr_default, task, NULL );
22938 if( status ) return errno;
22940 /* give thread a chance to complete */
22941 /* it should remain joinable and hence detachable */
22944 status = pthread_detach( &t );
22945 if( status ) return errno;
22948 #ifdef HAVE_LINUX_THREADS
22949 pthread_kill_other_threads_np();
22957 rm -f conftest$ac_exeext
22958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22959 (eval $ac_link) 2>&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; }; then
22968 ol_cv_pthread_lpthreads_lexc=yes
22970 echo "$as_me: program exited with status $ac_status" >&5
22971 echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22974 ( exit $ac_status )
22975 ol_cv_pthread_lpthreads_lexc=no
22977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22984 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
22985 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
22987 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22988 ol_link_pthreads="-lpthreads -lexc"
22989 ol_link_threads=posix
22994 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
22995 if test "$ol_link_threads" = no ; then
22997 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
22998 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
22999 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23005 LIBS="-lpthreads $LIBS"
23007 if test "$cross_compiling" = yes; then
23008 cat >conftest.$ac_ext <<_ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23015 /* pthread test headers */
23016 #include <pthread.h>
23017 #if HAVE_PTHREADS < 7
23021 #define NULL (void*)0
23024 static void *task(p)
23027 return (void *) (p == NULL);
23034 /* pthread test function */
23035 #ifndef PTHREAD_CREATE_DETACHED
23036 #define PTHREAD_CREATE_DETACHED 1
23040 int detach = PTHREAD_CREATE_DETACHED;
23042 #if HAVE_PTHREADS > 4
23043 /* Final pthreads */
23044 pthread_attr_t attr;
23046 status = pthread_attr_init(&attr);
23047 if( status ) return status;
23049 #if HAVE_PTHREADS < 7
23050 status = pthread_attr_setdetachstate(&attr, &detach);
23051 if( status < 0 ) status = errno;
23053 status = pthread_attr_setdetachstate(&attr, detach);
23055 if( status ) return status;
23056 status = pthread_create( &t, &attr, task, NULL );
23057 #if HAVE_PTHREADS < 7
23058 if( status < 0 ) status = errno;
23060 if( status ) return status;
23062 /* Draft 4 pthreads */
23063 status = pthread_create( &t, pthread_attr_default, task, NULL );
23064 if( status ) return errno;
23066 /* give thread a chance to complete */
23067 /* it should remain joinable and hence detachable */
23070 status = pthread_detach( &t );
23071 if( status ) return errno;
23074 #ifdef HAVE_LINUX_THREADS
23075 pthread_kill_other_threads_np();
23084 rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23086 (eval $ac_link) 2>conftest.er1
23088 grep -v '^ *+' conftest.er1 >conftest.err
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } &&
23093 { ac_try='test -z "$ac_c_werror_flag"
23094 || test ! -s conftest.err'
23095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23096 (eval $ac_try) 2>&5
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); }; } &&
23100 { ac_try='test -s conftest$ac_exeext'
23101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23102 (eval $ac_try) 2>&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); }; }; then
23106 ol_cv_pthread_lib_lpthreads=yes
23108 echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23111 ol_cv_pthread_lib_lpthreads=no
23113 rm -f conftest.err conftest.$ac_objext \
23114 conftest$ac_exeext conftest.$ac_ext
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23123 /* pthread test headers */
23124 #include <pthread.h>
23125 #if HAVE_PTHREADS < 7
23129 #define NULL (void*)0
23132 static void *task(p)
23135 return (void *) (p == NULL);
23139 int main(argc, argv)
23144 /* pthread test function */
23145 #ifndef PTHREAD_CREATE_DETACHED
23146 #define PTHREAD_CREATE_DETACHED 1
23150 int detach = PTHREAD_CREATE_DETACHED;
23152 #if HAVE_PTHREADS > 4
23153 /* Final pthreads */
23154 pthread_attr_t attr;
23156 status = pthread_attr_init(&attr);
23157 if( status ) return status;
23159 #if HAVE_PTHREADS < 7
23160 status = pthread_attr_setdetachstate(&attr, &detach);
23161 if( status < 0 ) status = errno;
23163 status = pthread_attr_setdetachstate(&attr, detach);
23165 if( status ) return status;
23166 status = pthread_create( &t, &attr, task, NULL );
23167 #if HAVE_PTHREADS < 7
23168 if( status < 0 ) status = errno;
23170 if( status ) return status;
23172 /* Draft 4 pthreads */
23173 status = pthread_create( &t, pthread_attr_default, task, NULL );
23174 if( status ) return errno;
23176 /* give thread a chance to complete */
23177 /* it should remain joinable and hence detachable */
23180 status = pthread_detach( &t );
23181 if( status ) return errno;
23184 #ifdef HAVE_LINUX_THREADS
23185 pthread_kill_other_threads_np();
23193 rm -f conftest$ac_exeext
23194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195 (eval $ac_link) 2>&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200 (eval $ac_try) 2>&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; }; then
23204 ol_cv_pthread_lib_lpthreads=yes
23206 echo "$as_me: program exited with status $ac_status" >&5
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23210 ( exit $ac_status )
23211 ol_cv_pthread_lib_lpthreads=no
23213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23220 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23221 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23223 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23224 ol_link_pthreads="-lpthreads"
23225 ol_link_threads=posix
23230 if test $ol_link_threads != no ; then
23231 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23233 save_CPPFLAGS="$CPPFLAGS"
23235 LIBS="$LTHREAD_LIBS $LIBS"
23240 for ac_func in sched_yield pthread_yield thr_yield
23242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23243 echo "$as_me:$LINENO: checking for $ac_func" >&5
23244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23245 if eval "test \"\${$as_ac_var+set}\" = set"; then
23246 echo $ECHO_N "(cached) $ECHO_C" >&6
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23256 #define $ac_func innocuous_$ac_func
23258 /* System header to define __stub macros and hopefully few prototypes,
23259 which can conflict with char $ac_func (); below.
23260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23261 <limits.h> exists even on freestanding compilers. */
23264 # include <limits.h>
23266 # include <assert.h>
23271 /* Override any gcc2 internal prototype to avoid an error. */
23276 /* We use char because int might match the return type of a gcc2
23277 builtin and then its argument prototype would still apply. */
23279 /* The GNU C library defines this for functions which it implements
23280 to always fail with ENOSYS. Some functions are actually named
23281 something starting with __ and the normal name is an alias. */
23282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23285 char (*f) () = $ac_func;
23294 return f != $ac_func;
23299 rm -f conftest.$ac_objext conftest$ac_exeext
23300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23301 (eval $ac_link) 2>conftest.er1
23303 grep -v '^ *+' conftest.er1 >conftest.err
23305 cat conftest.err >&5
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); } &&
23308 { ac_try='test -z "$ac_c_werror_flag"
23309 || test ! -s conftest.err'
23310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311 (eval $ac_try) 2>&5
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; } &&
23315 { ac_try='test -s conftest$ac_exeext'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; }; then
23321 eval "$as_ac_var=yes"
23323 echo "$as_me: failed program was:" >&5
23324 sed 's/^/| /' conftest.$ac_ext >&5
23326 eval "$as_ac_var=no"
23328 rm -f conftest.err conftest.$ac_objext \
23329 conftest$ac_exeext conftest.$ac_ext
23331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23333 if test `eval echo '${'$as_ac_var'}'` = yes; then
23334 cat >>confdefs.h <<_ACEOF
23335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23342 if test $ac_cv_func_sched_yield = no &&
23343 test $ac_cv_func_pthread_yield = no &&
23344 test $ac_cv_func_thr_yield = no ; then
23345 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23346 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23347 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23350 ac_check_lib_save_LIBS=$LIBS
23352 cat >conftest.$ac_ext <<_ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23359 /* Override any gcc2 internal prototype to avoid an error. */
23363 /* We use char because int might match the return type of a gcc2
23364 builtin and then its argument prototype would still apply. */
23365 char sched_yield ();
23374 rm -f conftest.$ac_objext conftest$ac_exeext
23375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23376 (eval $ac_link) 2>conftest.er1
23378 grep -v '^ *+' conftest.er1 >conftest.err
23380 cat conftest.err >&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } &&
23383 { ac_try='test -z "$ac_c_werror_flag"
23384 || test ! -s conftest.err'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; } &&
23390 { ac_try='test -s conftest$ac_exeext'
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
23396 ac_cv_lib_rt_sched_yield=yes
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23401 ac_cv_lib_rt_sched_yield=no
23403 rm -f conftest.err conftest.$ac_objext \
23404 conftest$ac_exeext conftest.$ac_ext
23405 LIBS=$ac_check_lib_save_LIBS
23407 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23408 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23409 if test $ac_cv_lib_rt_sched_yield = yes; then
23410 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23412 cat >>confdefs.h <<\_ACEOF
23413 #define HAVE_SCHED_YIELD 1
23416 ac_cv_func_sched_yield=yes
23418 ac_cv_func_sched_yield=no
23422 if test $ac_cv_func_sched_yield = no &&
23423 test $ac_cv_func_pthread_yield = no &&
23424 test "$ac_cv_func_thr_yield" = no ; then
23425 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23426 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23430 for ac_func in pthread_kill
23432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23433 echo "$as_me:$LINENO: checking for $ac_func" >&5
23434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23435 if eval "test \"\${$as_ac_var+set}\" = set"; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23446 #define $ac_func innocuous_$ac_func
23448 /* System header to define __stub macros and hopefully few prototypes,
23449 which can conflict with char $ac_func (); below.
23450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23451 <limits.h> exists even on freestanding compilers. */
23454 # include <limits.h>
23456 # include <assert.h>
23461 /* Override any gcc2 internal prototype to avoid an error. */
23466 /* We use char because int might match the return type of a gcc2
23467 builtin and then its argument prototype would still apply. */
23469 /* The GNU C library defines this for functions which it implements
23470 to always fail with ENOSYS. Some functions are actually named
23471 something starting with __ and the normal name is an alias. */
23472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23475 char (*f) () = $ac_func;
23484 return f != $ac_func;
23489 rm -f conftest.$ac_objext conftest$ac_exeext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23491 (eval $ac_link) 2>conftest.er1
23493 grep -v '^ *+' conftest.er1 >conftest.err
23495 cat conftest.err >&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } &&
23498 { ac_try='test -z "$ac_c_werror_flag"
23499 || test ! -s conftest.err'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; } &&
23505 { ac_try='test -s conftest$ac_exeext'
23506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507 (eval $ac_try) 2>&5
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); }; }; then
23511 eval "$as_ac_var=yes"
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 eval "$as_ac_var=no"
23518 rm -f conftest.err conftest.$ac_objext \
23519 conftest$ac_exeext conftest.$ac_ext
23521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23523 if test `eval echo '${'$as_ac_var'}'` = yes; then
23524 cat >>confdefs.h <<_ACEOF
23525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23532 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23533 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23534 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23535 echo $ECHO_N "(cached) $ECHO_C" >&6
23538 cat >conftest.$ac_ext <<_ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h. */
23545 #include <pthread.h>
23546 pthread_rwlock_t rwlock;
23551 pthread_rwlock_destroy(&rwlock);
23556 rm -f conftest.$ac_objext conftest$ac_exeext
23557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23558 (eval $ac_link) 2>conftest.er1
23560 grep -v '^ *+' conftest.er1 >conftest.err
23562 cat conftest.err >&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } &&
23565 { ac_try='test -z "$ac_c_werror_flag"
23566 || test ! -s conftest.err'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; } &&
23572 { ac_try='test -s conftest$ac_exeext'
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; }; then
23578 ol_cv_func_pthread_rwlock_destroy=yes
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23583 ol_cv_func_pthread_rwlock_destroy=no
23585 rm -f conftest.err conftest.$ac_objext \
23586 conftest$ac_exeext conftest.$ac_ext
23589 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23590 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23591 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23593 cat >>confdefs.h <<\_ACEOF
23594 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23599 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23600 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23601 if test "${ol_cv_func_pthread_detach+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23612 #include <pthread.h>
23614 #define NULL (void*)0
23620 pthread_detach(NULL);
23625 rm -f conftest.$ac_objext conftest$ac_exeext
23626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23627 (eval $ac_link) 2>conftest.er1
23629 grep -v '^ *+' conftest.er1 >conftest.err
23631 cat conftest.err >&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } &&
23634 { ac_try='test -z "$ac_c_werror_flag"
23635 || test ! -s conftest.err'
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); }; } &&
23641 { ac_try='test -s conftest$ac_exeext'
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; }; then
23647 ol_cv_func_pthread_detach=yes
23649 echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23652 ol_cv_func_pthread_detach=no
23654 rm -f conftest.err conftest.$ac_objext \
23655 conftest$ac_exeext conftest.$ac_ext
23658 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23659 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23661 if test $ol_cv_func_pthread_detach = no ; then
23662 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23663 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23664 { (exit 1); exit 1; }; }
23668 cat >>confdefs.h <<\_ACEOF
23669 #define HAVE_PTHREAD_DETACH 1
23678 pthread_setconcurrency \
23679 pthread_getconcurrency \
23680 thr_setconcurrency \
23681 thr_getconcurrency \
23684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23685 echo "$as_me:$LINENO: checking for $ac_func" >&5
23686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23687 if eval "test \"\${$as_ac_var+set}\" = set"; then
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23690 cat >conftest.$ac_ext <<_ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23698 #define $ac_func innocuous_$ac_func
23700 /* System header to define __stub macros and hopefully few prototypes,
23701 which can conflict with char $ac_func (); below.
23702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23703 <limits.h> exists even on freestanding compilers. */
23706 # include <limits.h>
23708 # include <assert.h>
23713 /* Override any gcc2 internal prototype to avoid an error. */
23718 /* We use char because int might match the return type of a gcc2
23719 builtin and then its argument prototype would still apply. */
23721 /* The GNU C library defines this for functions which it implements
23722 to always fail with ENOSYS. Some functions are actually named
23723 something starting with __ and the normal name is an alias. */
23724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23727 char (*f) () = $ac_func;
23736 return f != $ac_func;
23741 rm -f conftest.$ac_objext conftest$ac_exeext
23742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23743 (eval $ac_link) 2>conftest.er1
23745 grep -v '^ *+' conftest.er1 >conftest.err
23747 cat conftest.err >&5
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); } &&
23750 { ac_try='test -z "$ac_c_werror_flag"
23751 || test ! -s conftest.err'
23752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23753 (eval $ac_try) 2>&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); }; } &&
23757 { ac_try='test -s conftest$ac_exeext'
23758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23759 (eval $ac_try) 2>&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); }; }; then
23763 eval "$as_ac_var=yes"
23765 echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23768 eval "$as_ac_var=no"
23770 rm -f conftest.err conftest.$ac_objext \
23771 conftest$ac_exeext conftest.$ac_ext
23773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23775 if test `eval echo '${'$as_ac_var'}'` = yes; then
23776 cat >>confdefs.h <<_ACEOF
23777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23786 for ac_func in pthread_kill_other_threads_np
23788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23789 echo "$as_me:$LINENO: checking for $ac_func" >&5
23790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23791 if eval "test \"\${$as_ac_var+set}\" = set"; then
23792 echo $ECHO_N "(cached) $ECHO_C" >&6
23794 cat >conftest.$ac_ext <<_ACEOF
23797 cat confdefs.h >>conftest.$ac_ext
23798 cat >>conftest.$ac_ext <<_ACEOF
23799 /* end confdefs.h. */
23800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23802 #define $ac_func innocuous_$ac_func
23804 /* System header to define __stub macros and hopefully few prototypes,
23805 which can conflict with char $ac_func (); below.
23806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23807 <limits.h> exists even on freestanding compilers. */
23810 # include <limits.h>
23812 # include <assert.h>
23817 /* Override any gcc2 internal prototype to avoid an error. */
23822 /* We use char because int might match the return type of a gcc2
23823 builtin and then its argument prototype would still apply. */
23825 /* The GNU C library defines this for functions which it implements
23826 to always fail with ENOSYS. Some functions are actually named
23827 something starting with __ and the normal name is an alias. */
23828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23831 char (*f) () = $ac_func;
23840 return f != $ac_func;
23845 rm -f conftest.$ac_objext conftest$ac_exeext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23847 (eval $ac_link) 2>conftest.er1
23849 grep -v '^ *+' conftest.er1 >conftest.err
23851 cat conftest.err >&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } &&
23854 { ac_try='test -z "$ac_c_werror_flag"
23855 || test ! -s conftest.err'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; } &&
23861 { ac_try='test -s conftest$ac_exeext'
23862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863 (eval $ac_try) 2>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 eval "$as_ac_var=yes"
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23872 eval "$as_ac_var=no"
23874 rm -f conftest.err conftest.$ac_objext \
23875 conftest$ac_exeext conftest.$ac_ext
23877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23879 if test `eval echo '${'$as_ac_var'}'` = yes; then
23880 cat >>confdefs.h <<_ACEOF
23881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23887 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
23888 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
23889 if test "${ol_cv_sys_linux_threads+set}" = set; then
23890 echo $ECHO_N "(cached) $ECHO_C" >&6
23892 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
23894 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
23895 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
23900 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
23901 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
23902 if test "${ol_cv_linux_threads+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 if test $ol_cv_header_linux_threads = yes &&
23907 test $ol_cv_sys_linux_threads = yes; then
23908 ol_cv_linux_threads=yes
23909 elif test $ol_cv_header_linux_threads = no &&
23910 test $ol_cv_sys_linux_threads = no; then
23911 ol_cv_linux_threads=no
23913 ol_cv_linux_threads=error
23917 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
23918 echo "${ECHO_T}$ol_cv_linux_threads" >&6
23921 if test $ol_cv_linux_threads = error; then
23922 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
23923 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
23924 { (exit 1); exit 1; }; };
23927 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
23928 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
23929 if test "${ol_cv_pthread_create_works+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23933 if test "$cross_compiling" = yes; then
23934 ol_cv_pthread_create_works=yes
23936 cat >conftest.$ac_ext <<_ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h. */
23943 /* pthread test headers */
23944 #include <pthread.h>
23945 #if HAVE_PTHREADS < 7
23949 #define NULL (void*)0
23952 static void *task(p)
23955 return (void *) (p == NULL);
23959 int main(argc, argv)
23964 /* pthread test function */
23965 #ifndef PTHREAD_CREATE_DETACHED
23966 #define PTHREAD_CREATE_DETACHED 1
23970 int detach = PTHREAD_CREATE_DETACHED;
23972 #if HAVE_PTHREADS > 4
23973 /* Final pthreads */
23974 pthread_attr_t attr;
23976 status = pthread_attr_init(&attr);
23977 if( status ) return status;
23979 #if HAVE_PTHREADS < 7
23980 status = pthread_attr_setdetachstate(&attr, &detach);
23981 if( status < 0 ) status = errno;
23983 status = pthread_attr_setdetachstate(&attr, detach);
23985 if( status ) return status;
23986 status = pthread_create( &t, &attr, task, NULL );
23987 #if HAVE_PTHREADS < 7
23988 if( status < 0 ) status = errno;
23990 if( status ) return status;
23992 /* Draft 4 pthreads */
23993 status = pthread_create( &t, pthread_attr_default, task, NULL );
23994 if( status ) return errno;
23996 /* give thread a chance to complete */
23997 /* it should remain joinable and hence detachable */
24000 status = pthread_detach( &t );
24001 if( status ) return errno;
24004 #ifdef HAVE_LINUX_THREADS
24005 pthread_kill_other_threads_np();
24013 rm -f conftest$ac_exeext
24014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24015 (eval $ac_link) 2>&5
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); }; }; then
24024 ol_cv_pthread_create_works=yes
24026 echo "$as_me: program exited with status $ac_status" >&5
24027 echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24030 ( exit $ac_status )
24031 ol_cv_pthread_create_works=no
24033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24036 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24037 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24039 if test $ol_cv_pthread_create_works = no ; then
24040 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24041 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24042 { (exit 1); exit 1; }; }
24045 ol_replace_broken_yield=no
24047 if test $ol_replace_broken_yield = yes ; then
24049 cat >>confdefs.h <<\_ACEOF
24050 #define REPLACE_BROKEN_YIELD 1
24055 if test $ol_with_yielding_select = auto ; then
24056 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24057 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24058 if test "${ol_cv_pthread_select_yields+set}" = set; then
24059 echo $ECHO_N "(cached) $ECHO_C" >&6
24062 if test "$cross_compiling" = yes; then
24063 ol_cv_pthread_select_yields=cross
24065 cat >conftest.$ac_ext <<_ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h. */
24072 #include <sys/types.h>
24073 #include <sys/time.h>
24074 #include <unistd.h>
24075 #include <pthread.h>
24077 #define NULL (void*) 0
24080 static int fildes[2];
24082 static void *task(p)
24094 FD_SET(fildes[0], &rfds);
24096 /* we're not interested in any fds */
24097 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24104 exit(0); /* if we exit here, the select blocked the whole process */
24107 int main(argc, argv)
24113 /* create a pipe to select */
24114 if(pipe(&fildes[0])) {
24119 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24120 (void) pthread_setconcurrency(2);
24122 #ifdef HAVE_THR_SETCONCURRENCY
24123 /* Set Solaris LWP concurrency to 2 */
24124 thr_setconcurrency(2);
24128 #if HAVE_PTHREADS < 6
24129 pthread_create(&t, pthread_attr_default, task, NULL);
24131 pthread_create(&t, NULL, task, NULL);
24134 /* make sure task runs first */
24137 #elif defined( HAVE_SCHED_YIELD )
24139 #elif defined( HAVE_PTHREAD_YIELD )
24146 rm -f conftest$ac_exeext
24147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24148 (eval $ac_link) 2>&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; }; then
24157 ol_cv_pthread_select_yields=no
24159 echo "$as_me: program exited with status $ac_status" >&5
24160 echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24163 ( exit $ac_status )
24164 ol_cv_pthread_select_yields=yes
24166 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24169 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24170 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24172 if test $ol_cv_pthread_select_yields = cross ; then
24173 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24174 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24175 { (exit 1); exit 1; }; }
24178 if test $ol_cv_pthread_select_yields = yes ; then
24179 ol_with_yielding_select=yes
24183 CPPFLAGS="$save_CPPFLAGS"
24186 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24187 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24188 { (exit 1); exit 1; }; }
24192 if test $ol_with_threads = posix ; then
24193 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24194 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24195 { (exit 1); exit 1; }; }
24200 case $ol_with_threads in auto | yes | mach)
24204 for ac_header in mach/cthreads.h cthreads.h
24206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24208 echo "$as_me:$LINENO: checking for $ac_header" >&5
24209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24216 # Is the header compilable?
24217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24219 cat >conftest.$ac_ext <<_ACEOF
24222 cat confdefs.h >>conftest.$ac_ext
24223 cat >>conftest.$ac_ext <<_ACEOF
24224 /* end confdefs.h. */
24225 $ac_includes_default
24226 #include <$ac_header>
24228 rm -f conftest.$ac_objext
24229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24230 (eval $ac_compile) 2>conftest.er1
24232 grep -v '^ *+' conftest.er1 >conftest.err
24234 cat conftest.err >&5
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } &&
24237 { ac_try='test -z "$ac_c_werror_flag"
24238 || test ! -s conftest.err'
24239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24240 (eval $ac_try) 2>&5
24242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24243 (exit $ac_status); }; } &&
24244 { ac_try='test -s conftest.$ac_objext'
24245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246 (eval $ac_try) 2>&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); }; }; then
24250 ac_header_compiler=yes
24252 echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24255 ac_header_compiler=no
24257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24259 echo "${ECHO_T}$ac_header_compiler" >&6
24261 # Is the header present?
24262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24264 cat >conftest.$ac_ext <<_ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h. */
24270 #include <$ac_header>
24272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24275 grep -v '^ *+' conftest.er1 >conftest.err
24277 cat conftest.err >&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); } >/dev/null; then
24280 if test -s conftest.err; then
24281 ac_cpp_err=$ac_c_preproc_warn_flag
24282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24289 if test -z "$ac_cpp_err"; then
24290 ac_header_preproc=yes
24292 echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24295 ac_header_preproc=no
24297 rm -f conftest.err conftest.$ac_ext
24298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24299 echo "${ECHO_T}$ac_header_preproc" >&6
24301 # So? What about this header?
24302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24308 ac_header_preproc=yes
24311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24325 ## --------------------------------------------- ##
24326 ## Report this to <http://www.openldap.org/its/> ##
24327 ## --------------------------------------------- ##
24330 sed "s/^/$as_me: WARNING: /" >&2
24333 echo "$as_me:$LINENO: checking for $ac_header" >&5
24334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24338 eval "$as_ac_Header=\$ac_header_preproc"
24340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24345 cat >>confdefs.h <<_ACEOF
24346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24353 if test $ac_cv_header_mach_cthreads_h = yes ; then
24354 ol_with_threads=found
24356 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24357 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24358 if test "${ac_cv_func_cthread_fork+set}" = set; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24361 cat >conftest.$ac_ext <<_ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24367 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24369 #define cthread_fork innocuous_cthread_fork
24371 /* System header to define __stub macros and hopefully few prototypes,
24372 which can conflict with char cthread_fork (); below.
24373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24374 <limits.h> exists even on freestanding compilers. */
24377 # include <limits.h>
24379 # include <assert.h>
24382 #undef cthread_fork
24384 /* Override any gcc2 internal prototype to avoid an error. */
24389 /* We use char because int might match the return type of a gcc2
24390 builtin and then its argument prototype would still apply. */
24391 char cthread_fork ();
24392 /* The GNU C library defines this for functions which it implements
24393 to always fail with ENOSYS. Some functions are actually named
24394 something starting with __ and the normal name is an alias. */
24395 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24398 char (*f) () = cthread_fork;
24407 return f != cthread_fork;
24412 rm -f conftest.$ac_objext conftest$ac_exeext
24413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24414 (eval $ac_link) 2>conftest.er1
24416 grep -v '^ *+' conftest.er1 >conftest.err
24418 cat conftest.err >&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } &&
24421 { ac_try='test -z "$ac_c_werror_flag"
24422 || test ! -s conftest.err'
24423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424 (eval $ac_try) 2>&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); }; } &&
24428 { ac_try='test -s conftest$ac_exeext'
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; }; then
24434 ac_cv_func_cthread_fork=yes
24436 echo "$as_me: failed program was:" >&5
24437 sed 's/^/| /' conftest.$ac_ext >&5
24439 ac_cv_func_cthread_fork=no
24441 rm -f conftest.err conftest.$ac_objext \
24442 conftest$ac_exeext conftest.$ac_ext
24444 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24445 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24446 if test $ac_cv_func_cthread_fork = yes; then
24447 ol_link_threads=yes
24451 if test $ol_link_threads = no ; then
24452 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24453 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24454 if test "${ol_cv_cthread_all_load+set}" = set; then
24455 echo $ECHO_N "(cached) $ECHO_C" >&6
24459 LIBS="-all_load $LIBS"
24460 cat >conftest.$ac_ext <<_ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h. */
24466 #include <mach/cthreads.h>
24471 cthread_fork((void *)0, (void *)0);
24477 rm -f conftest.$ac_objext conftest$ac_exeext
24478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24479 (eval $ac_link) 2>conftest.er1
24481 grep -v '^ *+' conftest.er1 >conftest.err
24483 cat conftest.err >&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); } &&
24486 { ac_try='test -z "$ac_c_werror_flag"
24487 || test ! -s conftest.err'
24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489 (eval $ac_try) 2>&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; } &&
24493 { ac_try='test -s conftest$ac_exeext'
24494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24495 (eval $ac_try) 2>&5
24497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); }; }; then
24499 ol_cv_cthread_all_load=yes
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24504 ol_cv_cthread_all_load=no
24506 rm -f conftest.err conftest.$ac_objext \
24507 conftest$ac_exeext conftest.$ac_ext
24511 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24512 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24514 if test $ol_cv_cthread_all_load = yes ; then
24515 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24516 ol_link_threads=mach
24517 ol_with_threads=found
24521 elif test $ac_cv_header_cthreads_h = yes ; then
24523 ol_with_threads=found
24526 LIBS="$LIBS -lthreads"
24527 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24528 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24529 if test "${ac_cv_func_cthread_fork+set}" = set; then
24530 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 cat >conftest.$ac_ext <<_ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h. */
24538 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24540 #define cthread_fork innocuous_cthread_fork
24542 /* System header to define __stub macros and hopefully few prototypes,
24543 which can conflict with char cthread_fork (); below.
24544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24545 <limits.h> exists even on freestanding compilers. */
24548 # include <limits.h>
24550 # include <assert.h>
24553 #undef cthread_fork
24555 /* Override any gcc2 internal prototype to avoid an error. */
24560 /* We use char because int might match the return type of a gcc2
24561 builtin and then its argument prototype would still apply. */
24562 char cthread_fork ();
24563 /* The GNU C library defines this for functions which it implements
24564 to always fail with ENOSYS. Some functions are actually named
24565 something starting with __ and the normal name is an alias. */
24566 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24569 char (*f) () = cthread_fork;
24578 return f != cthread_fork;
24583 rm -f conftest.$ac_objext conftest$ac_exeext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24585 (eval $ac_link) 2>conftest.er1
24587 grep -v '^ *+' conftest.er1 >conftest.err
24589 cat conftest.err >&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } &&
24592 { ac_try='test -z "$ac_c_werror_flag"
24593 || test ! -s conftest.err'
24594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595 (eval $ac_try) 2>&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); }; } &&
24599 { ac_try='test -s conftest$ac_exeext'
24600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; }; then
24605 ac_cv_func_cthread_fork=yes
24607 echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24610 ac_cv_func_cthread_fork=no
24612 rm -f conftest.err conftest.$ac_objext \
24613 conftest$ac_exeext conftest.$ac_ext
24615 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24616 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24617 if test $ac_cv_func_cthread_fork = yes; then
24618 ol_link_threads=yes
24623 if test $ol_link_threads = yes ; then
24624 LTHREAD_LIBS="-lthreads"
24625 ol_link_threads=mach
24626 ol_with_threads=found
24628 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24629 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24630 { (exit 1); exit 1; }; }
24633 elif test $ol_with_threads = mach ; then
24634 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24635 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24636 { (exit 1); exit 1; }; }
24639 if test $ol_link_threads = mach ; then
24641 cat >>confdefs.h <<\_ACEOF
24642 #define HAVE_MACH_CTHREADS 1
24645 elif test $ol_with_threads = found ; then
24646 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24647 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24648 { (exit 1); exit 1; }; }
24653 case $ol_with_threads in auto | yes | pth)
24656 for ac_header in pth.h
24658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24660 echo "$as_me:$LINENO: checking for $ac_header" >&5
24661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24663 echo $ECHO_N "(cached) $ECHO_C" >&6
24665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24668 # Is the header compilable?
24669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24671 cat >conftest.$ac_ext <<_ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h. */
24677 $ac_includes_default
24678 #include <$ac_header>
24680 rm -f conftest.$ac_objext
24681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24682 (eval $ac_compile) 2>conftest.er1
24684 grep -v '^ *+' conftest.er1 >conftest.err
24686 cat conftest.err >&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); } &&
24689 { ac_try='test -z "$ac_c_werror_flag"
24690 || test ! -s conftest.err'
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; } &&
24696 { ac_try='test -s conftest.$ac_objext'
24697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698 (eval $ac_try) 2>&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; }; then
24702 ac_header_compiler=yes
24704 echo "$as_me: failed program was:" >&5
24705 sed 's/^/| /' conftest.$ac_ext >&5
24707 ac_header_compiler=no
24709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24711 echo "${ECHO_T}$ac_header_compiler" >&6
24713 # Is the header present?
24714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24722 #include <$ac_header>
24724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24727 grep -v '^ *+' conftest.er1 >conftest.err
24729 cat conftest.err >&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); } >/dev/null; then
24732 if test -s conftest.err; then
24733 ac_cpp_err=$ac_c_preproc_warn_flag
24734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24741 if test -z "$ac_cpp_err"; then
24742 ac_header_preproc=yes
24744 echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24747 ac_header_preproc=no
24749 rm -f conftest.err conftest.$ac_ext
24750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24751 echo "${ECHO_T}$ac_header_preproc" >&6
24753 # So? What about this header?
24754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24760 ac_header_preproc=yes
24763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24777 ## --------------------------------------------- ##
24778 ## Report this to <http://www.openldap.org/its/> ##
24779 ## --------------------------------------------- ##
24782 sed "s/^/$as_me: WARNING: /" >&2
24785 echo "$as_me:$LINENO: checking for $ac_header" >&5
24786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24790 eval "$as_ac_Header=\$ac_header_preproc"
24792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24797 cat >>confdefs.h <<_ACEOF
24798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24806 if test $ac_cv_header_pth_h = yes ; then
24807 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
24808 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
24809 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24812 ac_check_lib_save_LIBS=$LIBS
24814 cat >conftest.$ac_ext <<_ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24821 /* Override any gcc2 internal prototype to avoid an error. */
24825 /* We use char because int might match the return type of a gcc2
24826 builtin and then its argument prototype would still apply. */
24827 char pth_version ();
24836 rm -f conftest.$ac_objext conftest$ac_exeext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24838 (eval $ac_link) 2>conftest.er1
24840 grep -v '^ *+' conftest.er1 >conftest.err
24842 cat conftest.err >&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } &&
24845 { ac_try='test -z "$ac_c_werror_flag"
24846 || test ! -s conftest.err'
24847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848 (eval $ac_try) 2>&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); }; } &&
24852 { ac_try='test -s conftest$ac_exeext'
24853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24854 (eval $ac_try) 2>&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); }; }; then
24858 ac_cv_lib_pth_pth_version=yes
24860 echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24863 ac_cv_lib_pth_pth_version=no
24865 rm -f conftest.err conftest.$ac_objext \
24866 conftest$ac_exeext conftest.$ac_ext
24867 LIBS=$ac_check_lib_save_LIBS
24869 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
24870 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
24871 if test $ac_cv_lib_pth_pth_version = yes; then
24878 if test $have_pth = yes ; then
24880 cat >>confdefs.h <<\_ACEOF
24881 #define HAVE_GNU_PTH 1
24884 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
24885 ol_link_threads=pth
24886 ol_with_threads=found
24888 if test $ol_with_yielding_select = auto ; then
24889 ol_with_yielding_select=yes
24896 case $ol_with_threads in auto | yes | lwp)
24900 for ac_header in thread.h synch.h
24902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24904 echo "$as_me:$LINENO: checking for $ac_header" >&5
24905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24907 echo $ECHO_N "(cached) $ECHO_C" >&6
24909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24912 # Is the header compilable?
24913 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24914 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24915 cat >conftest.$ac_ext <<_ACEOF
24918 cat confdefs.h >>conftest.$ac_ext
24919 cat >>conftest.$ac_ext <<_ACEOF
24920 /* end confdefs.h. */
24921 $ac_includes_default
24922 #include <$ac_header>
24924 rm -f conftest.$ac_objext
24925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24926 (eval $ac_compile) 2>conftest.er1
24928 grep -v '^ *+' conftest.er1 >conftest.err
24930 cat conftest.err >&5
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } &&
24933 { ac_try='test -z "$ac_c_werror_flag"
24934 || test ! -s conftest.err'
24935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest.$ac_objext'
24941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942 (eval $ac_try) 2>&5
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; }; then
24946 ac_header_compiler=yes
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24951 ac_header_compiler=no
24953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24955 echo "${ECHO_T}$ac_header_compiler" >&6
24957 # Is the header present?
24958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24960 cat >conftest.$ac_ext <<_ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 #include <$ac_header>
24968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24971 grep -v '^ *+' conftest.er1 >conftest.err
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } >/dev/null; then
24976 if test -s conftest.err; then
24977 ac_cpp_err=$ac_c_preproc_warn_flag
24978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24985 if test -z "$ac_cpp_err"; then
24986 ac_header_preproc=yes
24988 echo "$as_me: failed program was:" >&5
24989 sed 's/^/| /' conftest.$ac_ext >&5
24991 ac_header_preproc=no
24993 rm -f conftest.err conftest.$ac_ext
24994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24995 echo "${ECHO_T}$ac_header_preproc" >&6
24997 # So? What about this header?
24998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25004 ac_header_preproc=yes
25007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25021 ## --------------------------------------------- ##
25022 ## Report this to <http://www.openldap.org/its/> ##
25023 ## --------------------------------------------- ##
25026 sed "s/^/$as_me: WARNING: /" >&2
25029 echo "$as_me:$LINENO: checking for $ac_header" >&5
25030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25034 eval "$as_ac_Header=\$ac_header_preproc"
25036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25041 cat >>confdefs.h <<_ACEOF
25042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25049 if test $ac_cv_header_thread_h = yes &&
25050 test $ac_cv_header_synch_h = yes ; then
25051 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25052 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25053 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25054 echo $ECHO_N "(cached) $ECHO_C" >&6
25056 ac_check_lib_save_LIBS=$LIBS
25057 LIBS="-lthread $LIBS"
25058 cat >conftest.$ac_ext <<_ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h. */
25065 /* Override any gcc2 internal prototype to avoid an error. */
25069 /* We use char because int might match the return type of a gcc2
25070 builtin and then its argument prototype would still apply. */
25071 char thr_create ();
25080 rm -f conftest.$ac_objext conftest$ac_exeext
25081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25082 (eval $ac_link) 2>conftest.er1
25084 grep -v '^ *+' conftest.er1 >conftest.err
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
25089 { ac_try='test -z "$ac_c_werror_flag"
25090 || test ! -s conftest.err'
25091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25092 (eval $ac_try) 2>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; } &&
25096 { ac_try='test -s conftest$ac_exeext'
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; }; then
25102 ac_cv_lib_thread_thr_create=yes
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25107 ac_cv_lib_thread_thr_create=no
25109 rm -f conftest.err conftest.$ac_objext \
25110 conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25113 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25114 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25115 if test $ac_cv_lib_thread_thr_create = yes; then
25122 if test $have_thr = yes ; then
25124 cat >>confdefs.h <<\_ACEOF
25128 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25129 ol_link_threads=thr
25131 if test $ol_with_yielding_select = auto ; then
25132 ol_with_yielding_select=yes
25138 thr_setconcurrency \
25139 thr_getconcurrency \
25142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25143 echo "$as_me:$LINENO: checking for $ac_func" >&5
25144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25145 if eval "test \"\${$as_ac_var+set}\" = set"; then
25146 echo $ECHO_N "(cached) $ECHO_C" >&6
25148 cat >conftest.$ac_ext <<_ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h. */
25154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25156 #define $ac_func innocuous_$ac_func
25158 /* System header to define __stub macros and hopefully few prototypes,
25159 which can conflict with char $ac_func (); below.
25160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25161 <limits.h> exists even on freestanding compilers. */
25164 # include <limits.h>
25166 # include <assert.h>
25171 /* Override any gcc2 internal prototype to avoid an error. */
25176 /* We use char because int might match the return type of a gcc2
25177 builtin and then its argument prototype would still apply. */
25179 /* The GNU C library defines this for functions which it implements
25180 to always fail with ENOSYS. Some functions are actually named
25181 something starting with __ and the normal name is an alias. */
25182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25185 char (*f) () = $ac_func;
25194 return f != $ac_func;
25199 rm -f conftest.$ac_objext conftest$ac_exeext
25200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25201 (eval $ac_link) 2>conftest.er1
25203 grep -v '^ *+' conftest.er1 >conftest.err
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } &&
25208 { ac_try='test -z "$ac_c_werror_flag"
25209 || test ! -s conftest.err'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; } &&
25215 { ac_try='test -s conftest$ac_exeext'
25216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 eval "$as_ac_var=yes"
25223 echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25226 eval "$as_ac_var=no"
25228 rm -f conftest.err conftest.$ac_objext \
25229 conftest$ac_exeext conftest.$ac_ext
25231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25233 if test `eval echo '${'$as_ac_var'}'` = yes; then
25234 cat >>confdefs.h <<_ACEOF
25235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25245 for ac_header in lwp/lwp.h
25247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25249 echo "$as_me:$LINENO: checking for $ac_header" >&5
25250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25252 echo $ECHO_N "(cached) $ECHO_C" >&6
25254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25257 # Is the header compilable?
25258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25260 cat >conftest.$ac_ext <<_ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25266 $ac_includes_default
25267 #include <$ac_header>
25269 rm -f conftest.$ac_objext
25270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25271 (eval $ac_compile) 2>conftest.er1
25273 grep -v '^ *+' conftest.er1 >conftest.err
25275 cat conftest.err >&5
25276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); } &&
25278 { ac_try='test -z "$ac_c_werror_flag"
25279 || test ! -s conftest.err'
25280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25281 (eval $ac_try) 2>&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); }; } &&
25285 { ac_try='test -s conftest.$ac_objext'
25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287 (eval $ac_try) 2>&5
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; }; then
25291 ac_header_compiler=yes
25293 echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25296 ac_header_compiler=no
25298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25300 echo "${ECHO_T}$ac_header_compiler" >&6
25302 # Is the header present?
25303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25305 cat >conftest.$ac_ext <<_ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 #include <$ac_header>
25313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25316 grep -v '^ *+' conftest.er1 >conftest.err
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } >/dev/null; then
25321 if test -s conftest.err; then
25322 ac_cpp_err=$ac_c_preproc_warn_flag
25323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25330 if test -z "$ac_cpp_err"; then
25331 ac_header_preproc=yes
25333 echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25336 ac_header_preproc=no
25338 rm -f conftest.err conftest.$ac_ext
25339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25340 echo "${ECHO_T}$ac_header_preproc" >&6
25342 # So? What about this header?
25343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25349 ac_header_preproc=yes
25352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25366 ## --------------------------------------------- ##
25367 ## Report this to <http://www.openldap.org/its/> ##
25368 ## --------------------------------------------- ##
25371 sed "s/^/$as_me: WARNING: /" >&2
25374 echo "$as_me:$LINENO: checking for $ac_header" >&5
25375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25379 eval "$as_ac_Header=\$ac_header_preproc"
25381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25386 cat >>confdefs.h <<_ACEOF
25387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25394 if test $ac_cv_header_lwp_lwp_h = yes ; then
25395 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25396 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25397 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25398 echo $ECHO_N "(cached) $ECHO_C" >&6
25400 ac_check_lib_save_LIBS=$LIBS
25402 cat >conftest.$ac_ext <<_ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25409 /* Override any gcc2 internal prototype to avoid an error. */
25413 /* We use char because int might match the return type of a gcc2
25414 builtin and then its argument prototype would still apply. */
25415 char lwp_create ();
25424 rm -f conftest.$ac_objext conftest$ac_exeext
25425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25426 (eval $ac_link) 2>conftest.er1
25428 grep -v '^ *+' conftest.er1 >conftest.err
25430 cat conftest.err >&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
25433 { ac_try='test -z "$ac_c_werror_flag"
25434 || test ! -s conftest.err'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; } &&
25440 { ac_try='test -s conftest$ac_exeext'
25441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; }; then
25446 ac_cv_lib_lwp_lwp_create=yes
25448 echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25451 ac_cv_lib_lwp_lwp_create=no
25453 rm -f conftest.err conftest.$ac_objext \
25454 conftest$ac_exeext conftest.$ac_ext
25455 LIBS=$ac_check_lib_save_LIBS
25457 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25458 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25459 if test $ac_cv_lib_lwp_lwp_create = yes; then
25466 if test $have_lwp = yes ; then
25468 cat >>confdefs.h <<\_ACEOF
25472 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25473 ol_link_threads=lwp
25475 if test $ol_with_yielding_select = auto ; then
25476 ol_with_yielding_select=no
25483 if test $ol_with_yielding_select = yes ; then
25485 cat >>confdefs.h <<\_ACEOF
25486 #define HAVE_YIELDING_SELECT 1
25491 if test $ol_with_threads = manual ; then
25492 ol_link_threads=yes
25494 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25495 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25499 for ac_header in pthread.h sched.h
25501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25503 echo "$as_me:$LINENO: checking for $ac_header" >&5
25504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25506 echo $ECHO_N "(cached) $ECHO_C" >&6
25508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25511 # Is the header compilable?
25512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25514 cat >conftest.$ac_ext <<_ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h. */
25520 $ac_includes_default
25521 #include <$ac_header>
25523 rm -f conftest.$ac_objext
25524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25525 (eval $ac_compile) 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } &&
25532 { ac_try='test -z "$ac_c_werror_flag"
25533 || test ! -s conftest.err'
25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; } &&
25539 { ac_try='test -s conftest.$ac_objext'
25540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25541 (eval $ac_try) 2>&5
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); }; }; then
25545 ac_header_compiler=yes
25547 echo "$as_me: failed program was:" >&5
25548 sed 's/^/| /' conftest.$ac_ext >&5
25550 ac_header_compiler=no
25552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25554 echo "${ECHO_T}$ac_header_compiler" >&6
25556 # Is the header present?
25557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25559 cat >conftest.$ac_ext <<_ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25565 #include <$ac_header>
25567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25570 grep -v '^ *+' conftest.er1 >conftest.err
25572 cat conftest.err >&5
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); } >/dev/null; then
25575 if test -s conftest.err; then
25576 ac_cpp_err=$ac_c_preproc_warn_flag
25577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25584 if test -z "$ac_cpp_err"; then
25585 ac_header_preproc=yes
25587 echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25590 ac_header_preproc=no
25592 rm -f conftest.err conftest.$ac_ext
25593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25594 echo "${ECHO_T}$ac_header_preproc" >&6
25596 # So? What about this header?
25597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25603 ac_header_preproc=yes
25606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25620 ## --------------------------------------------- ##
25621 ## Report this to <http://www.openldap.org/its/> ##
25622 ## --------------------------------------------- ##
25625 sed "s/^/$as_me: WARNING: /" >&2
25628 echo "$as_me:$LINENO: checking for $ac_header" >&5
25629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25631 echo $ECHO_N "(cached) $ECHO_C" >&6
25633 eval "$as_ac_Header=\$ac_header_preproc"
25635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25640 cat >>confdefs.h <<_ACEOF
25641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25650 for ac_func in sched_yield pthread_yield
25652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25653 echo "$as_me:$LINENO: checking for $ac_func" >&5
25654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25655 if eval "test \"\${$as_ac_var+set}\" = set"; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
25658 cat >conftest.$ac_ext <<_ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25666 #define $ac_func innocuous_$ac_func
25668 /* System header to define __stub macros and hopefully few prototypes,
25669 which can conflict with char $ac_func (); below.
25670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25671 <limits.h> exists even on freestanding compilers. */
25674 # include <limits.h>
25676 # include <assert.h>
25681 /* Override any gcc2 internal prototype to avoid an error. */
25686 /* We use char because int might match the return type of a gcc2
25687 builtin and then its argument prototype would still apply. */
25689 /* The GNU C library defines this for functions which it implements
25690 to always fail with ENOSYS. Some functions are actually named
25691 something starting with __ and the normal name is an alias. */
25692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25695 char (*f) () = $ac_func;
25704 return f != $ac_func;
25709 rm -f conftest.$ac_objext conftest$ac_exeext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25711 (eval $ac_link) 2>conftest.er1
25713 grep -v '^ *+' conftest.er1 >conftest.err
25715 cat conftest.err >&5
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); } &&
25718 { ac_try='test -z "$ac_c_werror_flag"
25719 || test ! -s conftest.err'
25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721 (eval $ac_try) 2>&5
25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724 (exit $ac_status); }; } &&
25725 { ac_try='test -s conftest$ac_exeext'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; }; then
25731 eval "$as_ac_var=yes"
25733 echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25736 eval "$as_ac_var=no"
25738 rm -f conftest.err conftest.$ac_objext \
25739 conftest$ac_exeext conftest.$ac_ext
25741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25743 if test `eval echo '${'$as_ac_var'}'` = yes; then
25744 cat >>confdefs.h <<_ACEOF
25745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25752 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25753 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25754 if test "${ol_cv_header_linux_threads+set}" = set; then
25755 echo $ECHO_N "(cached) $ECHO_C" >&6
25757 cat >conftest.$ac_ext <<_ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h. */
25763 #include <pthread.h>
25765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25766 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
25767 ol_cv_header_linux_threads=yes
25769 ol_cv_header_linux_threads=no
25775 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
25776 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
25777 if test $ol_cv_header_linux_threads = yes; then
25779 cat >>confdefs.h <<\_ACEOF
25780 #define HAVE_LINUX_THREADS 1
25787 for ac_header in mach/cthreads.h
25789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25791 echo "$as_me:$LINENO: checking for $ac_header" >&5
25792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25799 # Is the header compilable?
25800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25802 cat >conftest.$ac_ext <<_ACEOF
25805 cat confdefs.h >>conftest.$ac_ext
25806 cat >>conftest.$ac_ext <<_ACEOF
25807 /* end confdefs.h. */
25808 $ac_includes_default
25809 #include <$ac_header>
25811 rm -f conftest.$ac_objext
25812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25813 (eval $ac_compile) 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); } &&
25820 { ac_try='test -z "$ac_c_werror_flag"
25821 || test ! -s conftest.err'
25822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823 (eval $ac_try) 2>&5
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); }; } &&
25827 { ac_try='test -s conftest.$ac_objext'
25828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25829 (eval $ac_try) 2>&5
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); }; }; then
25833 ac_header_compiler=yes
25835 echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25838 ac_header_compiler=no
25840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25842 echo "${ECHO_T}$ac_header_compiler" >&6
25844 # Is the header present?
25845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25847 cat >conftest.$ac_ext <<_ACEOF
25850 cat confdefs.h >>conftest.$ac_ext
25851 cat >>conftest.$ac_ext <<_ACEOF
25852 /* end confdefs.h. */
25853 #include <$ac_header>
25855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25858 grep -v '^ *+' conftest.er1 >conftest.err
25860 cat conftest.err >&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); } >/dev/null; then
25863 if test -s conftest.err; then
25864 ac_cpp_err=$ac_c_preproc_warn_flag
25865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25872 if test -z "$ac_cpp_err"; then
25873 ac_header_preproc=yes
25875 echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25878 ac_header_preproc=no
25880 rm -f conftest.err conftest.$ac_ext
25881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25882 echo "${ECHO_T}$ac_header_preproc" >&6
25884 # So? What about this header?
25885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25891 ac_header_preproc=yes
25894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25908 ## --------------------------------------------- ##
25909 ## Report this to <http://www.openldap.org/its/> ##
25910 ## --------------------------------------------- ##
25913 sed "s/^/$as_me: WARNING: /" >&2
25916 echo "$as_me:$LINENO: checking for $ac_header" >&5
25917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25919 echo $ECHO_N "(cached) $ECHO_C" >&6
25921 eval "$as_ac_Header=\$ac_header_preproc"
25923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25928 cat >>confdefs.h <<_ACEOF
25929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25937 for ac_header in lwp/lwp.h
25939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25941 echo "$as_me:$LINENO: checking for $ac_header" >&5
25942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25944 echo $ECHO_N "(cached) $ECHO_C" >&6
25946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25949 # Is the header compilable?
25950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25952 cat >conftest.$ac_ext <<_ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h. */
25958 $ac_includes_default
25959 #include <$ac_header>
25961 rm -f conftest.$ac_objext
25962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25963 (eval $ac_compile) 2>conftest.er1
25965 grep -v '^ *+' conftest.er1 >conftest.err
25967 cat conftest.err >&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } &&
25970 { ac_try='test -z "$ac_c_werror_flag"
25971 || test ! -s conftest.err'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; } &&
25977 { ac_try='test -s conftest.$ac_objext'
25978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979 (eval $ac_try) 2>&5
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); }; }; then
25983 ac_header_compiler=yes
25985 echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25988 ac_header_compiler=no
25990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25992 echo "${ECHO_T}$ac_header_compiler" >&6
25994 # Is the header present?
25995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25997 cat >conftest.$ac_ext <<_ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h. */
26003 #include <$ac_header>
26005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26008 grep -v '^ *+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } >/dev/null; then
26013 if test -s conftest.err; then
26014 ac_cpp_err=$ac_c_preproc_warn_flag
26015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26022 if test -z "$ac_cpp_err"; then
26023 ac_header_preproc=yes
26025 echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26028 ac_header_preproc=no
26030 rm -f conftest.err conftest.$ac_ext
26031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26032 echo "${ECHO_T}$ac_header_preproc" >&6
26034 # So? What about this header?
26035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26041 ac_header_preproc=yes
26044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26058 ## --------------------------------------------- ##
26059 ## Report this to <http://www.openldap.org/its/> ##
26060 ## --------------------------------------------- ##
26063 sed "s/^/$as_me: WARNING: /" >&2
26066 echo "$as_me:$LINENO: checking for $ac_header" >&5
26067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26069 echo $ECHO_N "(cached) $ECHO_C" >&6
26071 eval "$as_ac_Header=\$ac_header_preproc"
26073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26078 cat >>confdefs.h <<_ACEOF
26079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26088 for ac_header in thread.h synch.h
26090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26092 echo "$as_me:$LINENO: checking for $ac_header" >&5
26093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26100 # Is the header compilable?
26101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26103 cat >conftest.$ac_ext <<_ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h. */
26109 $ac_includes_default
26110 #include <$ac_header>
26112 rm -f conftest.$ac_objext
26113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26114 (eval $ac_compile) 2>conftest.er1
26116 grep -v '^ *+' conftest.er1 >conftest.err
26118 cat conftest.err >&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); } &&
26121 { ac_try='test -z "$ac_c_werror_flag"
26122 || test ! -s conftest.err'
26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124 (eval $ac_try) 2>&5
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); }; } &&
26128 { ac_try='test -s conftest.$ac_objext'
26129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130 (eval $ac_try) 2>&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); }; }; then
26134 ac_header_compiler=yes
26136 echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26139 ac_header_compiler=no
26141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26143 echo "${ECHO_T}$ac_header_compiler" >&6
26145 # Is the header present?
26146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26148 cat >conftest.$ac_ext <<_ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h. */
26154 #include <$ac_header>
26156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26159 grep -v '^ *+' conftest.er1 >conftest.err
26161 cat conftest.err >&5
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); } >/dev/null; then
26164 if test -s conftest.err; then
26165 ac_cpp_err=$ac_c_preproc_warn_flag
26166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26173 if test -z "$ac_cpp_err"; then
26174 ac_header_preproc=yes
26176 echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26179 ac_header_preproc=no
26181 rm -f conftest.err conftest.$ac_ext
26182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26183 echo "${ECHO_T}$ac_header_preproc" >&6
26185 # So? What about this header?
26186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26192 ac_header_preproc=yes
26195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26209 ## --------------------------------------------- ##
26210 ## Report this to <http://www.openldap.org/its/> ##
26211 ## --------------------------------------------- ##
26214 sed "s/^/$as_me: WARNING: /" >&2
26217 echo "$as_me:$LINENO: checking for $ac_header" >&5
26218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26220 echo $ECHO_N "(cached) $ECHO_C" >&6
26222 eval "$as_ac_Header=\$ac_header_preproc"
26224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26229 cat >>confdefs.h <<_ACEOF
26230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26239 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26240 cat >>confdefs.h <<\_ACEOF
26241 #define REENTRANT 1
26244 cat >>confdefs.h <<\_ACEOF
26245 #define _REENTRANT 1
26248 cat >>confdefs.h <<\_ACEOF
26249 #define THREAD_SAFE 1
26252 cat >>confdefs.h <<\_ACEOF
26253 #define _THREAD_SAFE 1
26256 cat >>confdefs.h <<\_ACEOF
26257 #define THREADSAFE 1
26260 cat >>confdefs.h <<\_ACEOF
26261 #define _THREADSAFE 1
26264 cat >>confdefs.h <<\_ACEOF
26265 #define _SGI_MP_SOURCE 1
26269 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26270 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26271 if test "${ol_cv_errno_thread_specific+set}" = set; then
26272 echo $ECHO_N "(cached) $ECHO_C" >&6
26275 cat >conftest.$ac_ext <<_ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26290 rm -f conftest.$ac_objext conftest$ac_exeext
26291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26292 (eval $ac_link) 2>conftest.er1
26294 grep -v '^ *+' conftest.er1 >conftest.err
26296 cat conftest.err >&5
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); } &&
26299 { ac_try='test -z "$ac_c_werror_flag"
26300 || test ! -s conftest.err'
26301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302 (eval $ac_try) 2>&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; } &&
26306 { ac_try='test -s conftest$ac_exeext'
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
26312 ol_cv_errno_thread_specific=yes
26314 echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26317 ol_cv_errno_thread_specific=no
26319 rm -f conftest.err conftest.$ac_objext \
26320 conftest$ac_exeext conftest.$ac_ext
26323 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26324 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26326 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26327 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26328 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26329 echo $ECHO_N "(cached) $ECHO_C" >&6
26332 cat >conftest.$ac_ext <<_ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h. */
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26349 (eval $ac_link) 2>conftest.er1
26351 grep -v '^ *+' conftest.er1 >conftest.err
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } &&
26356 { ac_try='test -z "$ac_c_werror_flag"
26357 || test ! -s conftest.err'
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; } &&
26363 { ac_try='test -s conftest$ac_exeext'
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; }; then
26369 ol_cv_h_errno_thread_specific=yes
26371 echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26374 ol_cv_h_errno_thread_specific=no
26376 rm -f conftest.err conftest.$ac_objext \
26377 conftest$ac_exeext conftest.$ac_ext
26380 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26381 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26383 if test $ol_cv_errno_thread_specific != yes ||
26384 test $ol_cv_h_errno_thread_specific != yes ; then
26385 LIBS="$LTHREAD_LIBS $LIBS"
26391 if test $ol_link_threads = no ; then
26392 if test $ol_with_threads = yes ; then
26393 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26394 echo "$as_me: error: no suitable thread support" >&2;}
26395 { (exit 1); exit 1; }; }
26398 if test $ol_with_threads = auto ; then
26399 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26400 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26405 cat >>confdefs.h <<\_ACEOF
26406 #define NO_THREADS 1
26415 if test $ol_link_threads != no ; then
26417 cat >>confdefs.h <<\_ACEOF
26418 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26428 gethostbyname_r gethostbyaddr_r \
26431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26432 echo "$as_me:$LINENO: checking for $ac_func" >&5
26433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26434 if eval "test \"\${$as_ac_var+set}\" = set"; then
26435 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 cat >conftest.$ac_ext <<_ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h. */
26443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26445 #define $ac_func innocuous_$ac_func
26447 /* System header to define __stub macros and hopefully few prototypes,
26448 which can conflict with char $ac_func (); below.
26449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26450 <limits.h> exists even on freestanding compilers. */
26453 # include <limits.h>
26455 # include <assert.h>
26460 /* Override any gcc2 internal prototype to avoid an error. */
26465 /* We use char because int might match the return type of a gcc2
26466 builtin and then its argument prototype would still apply. */
26468 /* The GNU C library defines this for functions which it implements
26469 to always fail with ENOSYS. Some functions are actually named
26470 something starting with __ and the normal name is an alias. */
26471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26474 char (*f) () = $ac_func;
26483 return f != $ac_func;
26488 rm -f conftest.$ac_objext conftest$ac_exeext
26489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26490 (eval $ac_link) 2>conftest.er1
26492 grep -v '^ *+' conftest.er1 >conftest.err
26494 cat conftest.err >&5
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } &&
26497 { ac_try='test -z "$ac_c_werror_flag"
26498 || test ! -s conftest.err'
26499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500 (eval $ac_try) 2>&5
26502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503 (exit $ac_status); }; } &&
26504 { ac_try='test -s conftest$ac_exeext'
26505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506 (eval $ac_try) 2>&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); }; }; then
26510 eval "$as_ac_var=yes"
26512 echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26515 eval "$as_ac_var=no"
26517 rm -f conftest.err conftest.$ac_objext \
26518 conftest$ac_exeext conftest.$ac_ext
26520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26522 if test `eval echo '${'$as_ac_var'}'` = yes; then
26523 cat >>confdefs.h <<_ACEOF
26524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26531 if test "$ac_cv_func_ctime_r" = no ; then
26532 ol_cv_func_ctime_r_nargs=0
26534 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26535 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26536 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26537 echo $ECHO_N "(cached) $ECHO_C" >&6
26539 cat >conftest.$ac_ext <<_ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h. */
26549 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26554 rm -f conftest.$ac_objext
26555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26556 (eval $ac_compile) 2>conftest.er1
26558 grep -v '^ *+' conftest.er1 >conftest.err
26560 cat conftest.err >&5
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); } &&
26563 { ac_try='test -z "$ac_c_werror_flag"
26564 || test ! -s conftest.err'
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; } &&
26570 { ac_try='test -s conftest.$ac_objext'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; }; then
26576 ol_cv_func_ctime_r_nargs3=yes
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ol_cv_func_ctime_r_nargs3=no
26583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26585 cat >conftest.$ac_ext <<_ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h. */
26595 time_t ti; char *buffer; ctime_r(&ti,buffer);
26600 rm -f conftest.$ac_objext
26601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26602 (eval $ac_compile) 2>conftest.er1
26604 grep -v '^ *+' conftest.er1 >conftest.err
26606 cat conftest.err >&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } &&
26609 { ac_try='test -z "$ac_c_werror_flag"
26610 || test ! -s conftest.err'
26611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612 (eval $ac_try) 2>&5
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); }; } &&
26616 { ac_try='test -s conftest.$ac_objext'
26617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618 (eval $ac_try) 2>&5
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); }; }; then
26622 ol_cv_func_ctime_r_nargs2=yes
26624 echo "$as_me: failed program was:" >&5
26625 sed 's/^/| /' conftest.$ac_ext >&5
26627 ol_cv_func_ctime_r_nargs2=no
26629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26631 if test $ol_cv_func_ctime_r_nargs3 = yes &&
26632 test $ol_cv_func_ctime_r_nargs2 = no ; then
26634 ol_cv_func_ctime_r_nargs=3
26636 elif test $ol_cv_func_ctime_r_nargs3 = no &&
26637 test $ol_cv_func_ctime_r_nargs2 = yes ; then
26639 ol_cv_func_ctime_r_nargs=2
26642 ol_cv_func_ctime_r_nargs=0
26646 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26647 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26649 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26651 cat >>confdefs.h <<_ACEOF
26652 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26659 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26660 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26661 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26662 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26663 echo $ECHO_N "(cached) $ECHO_C" >&6
26665 cat >conftest.$ac_ext <<_ACEOF
26668 cat confdefs.h >>conftest.$ac_ext
26669 cat >>conftest.$ac_ext <<_ACEOF
26670 /* end confdefs.h. */
26671 #include <sys/types.h>
26672 #include <sys/socket.h>
26673 #include <netinet/in.h>
26675 #define BUFSIZE (sizeof(struct hostent)+10)
26679 struct hostent hent; char buffer[BUFSIZE];
26680 int bufsize=BUFSIZE;int h_errno;
26681 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26682 buffer, bufsize, &h_errno);
26687 rm -f conftest.$ac_objext
26688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26689 (eval $ac_compile) 2>conftest.er1
26691 grep -v '^ *+' conftest.er1 >conftest.err
26693 cat conftest.err >&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } &&
26696 { ac_try='test -z "$ac_c_werror_flag"
26697 || test ! -s conftest.err'
26698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699 (eval $ac_try) 2>&5
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); }; } &&
26703 { ac_try='test -s conftest.$ac_objext'
26704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26705 (eval $ac_try) 2>&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); }; }; then
26709 ol_cv_func_gethostbyname_r_nargs5=yes
26711 echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26714 ol_cv_func_gethostbyname_r_nargs5=no
26716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26718 cat >conftest.$ac_ext <<_ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h. */
26724 #include <sys/types.h>
26725 #include <sys/socket.h>
26726 #include <netinet/in.h>
26728 #define BUFSIZE (sizeof(struct hostent)+10)
26732 struct hostent hent;struct hostent *rhent;
26733 char buffer[BUFSIZE];
26734 int bufsize=BUFSIZE;int h_errno;
26735 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26741 rm -f conftest.$ac_objext
26742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26743 (eval $ac_compile) 2>conftest.er1
26745 grep -v '^ *+' conftest.er1 >conftest.err
26747 cat conftest.err >&5
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); } &&
26750 { ac_try='test -z "$ac_c_werror_flag"
26751 || test ! -s conftest.err'
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; } &&
26757 { ac_try='test -s conftest.$ac_objext'
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; }; then
26763 ol_cv_func_gethostbyname_r_nargs6=yes
26765 echo "$as_me: failed program was:" >&5
26766 sed 's/^/| /' conftest.$ac_ext >&5
26768 ol_cv_func_gethostbyname_r_nargs6=no
26770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26772 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
26773 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
26775 ol_cv_func_gethostbyname_r_nargs=5
26777 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
26778 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
26780 ol_cv_func_gethostbyname_r_nargs=6
26783 ol_cv_func_gethostbyname_r_nargs=0
26787 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
26788 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
26789 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
26791 cat >>confdefs.h <<_ACEOF
26792 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
26798 ol_cv_func_gethostbyname_r_nargs=0
26801 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
26802 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
26803 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
26804 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
26805 echo $ECHO_N "(cached) $ECHO_C" >&6
26807 cat >conftest.$ac_ext <<_ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h. */
26813 #include <sys/types.h>
26814 #include <sys/socket.h>
26815 #include <netinet/in.h>
26817 #define BUFSIZE (sizeof(struct hostent)+10)
26821 struct hostent hent; char buffer[BUFSIZE];
26822 struct in_addr add;
26823 size_t alen=sizeof(struct in_addr);
26824 int bufsize=BUFSIZE;int h_errno;
26825 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26826 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
26831 rm -f conftest.$ac_objext
26832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26833 (eval $ac_compile) 2>conftest.er1
26835 grep -v '^ *+' conftest.er1 >conftest.err
26837 cat conftest.err >&5
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); } &&
26840 { ac_try='test -z "$ac_c_werror_flag"
26841 || test ! -s conftest.err'
26842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26843 (eval $ac_try) 2>&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); }; } &&
26847 { ac_try='test -s conftest.$ac_objext'
26848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849 (eval $ac_try) 2>&5
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); }; }; then
26853 ol_cv_func_gethostbyaddr_r_nargs7=yes
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26858 ol_cv_func_gethostbyaddr_r_nargs7=no
26860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26862 cat >conftest.$ac_ext <<_ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h. */
26868 #include <sys/types.h>
26869 #include <sys/socket.h>
26870 #include <netinet/in.h>
26872 #define BUFSIZE (sizeof(struct hostent)+10)
26876 struct hostent hent;
26877 struct hostent *rhent; char buffer[BUFSIZE];
26878 struct in_addr add;
26879 size_t alen=sizeof(struct in_addr);
26880 int bufsize=BUFSIZE;int h_errno;
26881 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26882 alen, AF_INET, &hent, buffer, bufsize,
26888 rm -f conftest.$ac_objext
26889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26890 (eval $ac_compile) 2>conftest.er1
26892 grep -v '^ *+' conftest.er1 >conftest.err
26894 cat conftest.err >&5
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); } &&
26897 { ac_try='test -z "$ac_c_werror_flag"
26898 || test ! -s conftest.err'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; } &&
26904 { ac_try='test -s conftest.$ac_objext'
26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906 (eval $ac_try) 2>&5
26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909 (exit $ac_status); }; }; then
26910 ol_cv_func_gethostbyaddr_r_nargs8=yes
26912 echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26915 ol_cv_func_gethostbyaddr_r_nargs8=no
26917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26919 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
26920 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
26922 ol_cv_func_gethostbyaddr_r_nargs=7
26924 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
26925 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
26927 ol_cv_func_gethostbyaddr_r_nargs=8
26930 ol_cv_func_gethostbyaddr_r_nargs=0
26934 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
26935 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
26936 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
26938 cat >>confdefs.h <<_ACEOF
26939 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
26945 ol_cv_func_gethostbyaddr_r_nargs=0
26950 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
26951 ol_cv_berkeley_db=no
26953 for ac_header in db.h
26955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26957 echo "$as_me:$LINENO: checking for $ac_header" >&5
26958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26960 echo $ECHO_N "(cached) $ECHO_C" >&6
26962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26965 # Is the header compilable?
26966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26968 cat >conftest.$ac_ext <<_ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h. */
26974 $ac_includes_default
26975 #include <$ac_header>
26977 rm -f conftest.$ac_objext
26978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26979 (eval $ac_compile) 2>conftest.er1
26981 grep -v '^ *+' conftest.er1 >conftest.err
26983 cat conftest.err >&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); } &&
26986 { ac_try='test -z "$ac_c_werror_flag"
26987 || test ! -s conftest.err'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; } &&
26993 { ac_try='test -s conftest.$ac_objext'
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; }; then
26999 ac_header_compiler=yes
27001 echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27004 ac_header_compiler=no
27006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27008 echo "${ECHO_T}$ac_header_compiler" >&6
27010 # Is the header present?
27011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27013 cat >conftest.$ac_ext <<_ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h. */
27019 #include <$ac_header>
27021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27024 grep -v '^ *+' conftest.er1 >conftest.err
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } >/dev/null; then
27029 if test -s conftest.err; then
27030 ac_cpp_err=$ac_c_preproc_warn_flag
27031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27038 if test -z "$ac_cpp_err"; then
27039 ac_header_preproc=yes
27041 echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27044 ac_header_preproc=no
27046 rm -f conftest.err conftest.$ac_ext
27047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27048 echo "${ECHO_T}$ac_header_preproc" >&6
27050 # So? What about this header?
27051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27057 ac_header_preproc=yes
27060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27074 ## --------------------------------------------- ##
27075 ## Report this to <http://www.openldap.org/its/> ##
27076 ## --------------------------------------------- ##
27079 sed "s/^/$as_me: WARNING: /" >&2
27082 echo "$as_me:$LINENO: checking for $ac_header" >&5
27083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27087 eval "$as_ac_Header=\$ac_header_preproc"
27089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27094 cat >>confdefs.h <<_ACEOF
27095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27102 if test $ac_cv_header_db_h = yes; then
27105 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27106 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27107 if test "${ol_cv_bdb_major+set}" = set; then
27108 echo $ECHO_N "(cached) $ECHO_C" >&6
27112 if test $ol_cv_bdb_major = 0 ; then
27113 cat >conftest.$ac_ext <<_ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h. */
27121 #ifndef DB_VERSION_MAJOR
27122 # define DB_VERSION_MAJOR 1
27124 #if DB_VERSION_MAJOR == 4
27129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27130 $EGREP "__db_version" >/dev/null 2>&1; then
27138 if test $ol_cv_bdb_major = 0 ; then
27139 cat >conftest.$ac_ext <<_ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27147 #ifndef DB_VERSION_MAJOR
27148 # define DB_VERSION_MAJOR 1
27150 #if DB_VERSION_MAJOR == 3
27155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27156 $EGREP "__db_version" >/dev/null 2>&1; then
27164 if test $ol_cv_bdb_major = 0 ; then
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27173 #ifndef DB_VERSION_MAJOR
27174 # define DB_VERSION_MAJOR 1
27176 #if DB_VERSION_MAJOR == 2
27181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27182 $EGREP "__db_version" >/dev/null 2>&1; then
27190 if test $ol_cv_bdb_major = 0 ; then
27191 cat >conftest.$ac_ext <<_ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h. */
27199 #ifndef DB_VERSION_MAJOR
27200 # define DB_VERSION_MAJOR 1
27202 #if DB_VERSION_MAJOR == 1
27207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27208 $EGREP "__db_version" >/dev/null 2>&1; then
27217 if test $ol_cv_bdb_major = 0 ; then
27218 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27219 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27220 { (exit 1); exit 1; }; }
27224 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27225 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27227 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27228 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27229 if test "${ol_cv_bdb_minor+set}" = set; then
27230 echo $ECHO_N "(cached) $ECHO_C" >&6
27234 if test $ol_cv_bdb_minor = 0 ; then
27235 cat >conftest.$ac_ext <<_ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h. */
27243 #ifndef DB_VERSION_MINOR
27244 # define DB_VERSION_MINOR 0
27246 #if DB_VERSION_MINOR == 9
27251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27252 $EGREP "__db_version" >/dev/null 2>&1; then
27260 if test $ol_cv_bdb_minor = 0 ; then
27261 cat >conftest.$ac_ext <<_ACEOF
27264 cat confdefs.h >>conftest.$ac_ext
27265 cat >>conftest.$ac_ext <<_ACEOF
27266 /* end confdefs.h. */
27269 #ifndef DB_VERSION_MINOR
27270 # define DB_VERSION_MINOR 0
27272 #if DB_VERSION_MINOR == 8
27277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27278 $EGREP "__db_version" >/dev/null 2>&1; then
27286 if test $ol_cv_bdb_minor = 0 ; then
27287 cat >conftest.$ac_ext <<_ACEOF
27290 cat confdefs.h >>conftest.$ac_ext
27291 cat >>conftest.$ac_ext <<_ACEOF
27292 /* end confdefs.h. */
27295 #ifndef DB_VERSION_MINOR
27296 # define DB_VERSION_MINOR 0
27298 #if DB_VERSION_MINOR == 7
27303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27304 $EGREP "__db_version" >/dev/null 2>&1; then
27312 if test $ol_cv_bdb_minor = 0 ; then
27313 cat >conftest.$ac_ext <<_ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h. */
27321 #ifndef DB_VERSION_MINOR
27322 # define DB_VERSION_MINOR 0
27324 #if DB_VERSION_MINOR == 6
27329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27330 $EGREP "__db_version" >/dev/null 2>&1; then
27338 if test $ol_cv_bdb_minor = 0 ; then
27339 cat >conftest.$ac_ext <<_ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h. */
27347 #ifndef DB_VERSION_MINOR
27348 # define DB_VERSION_MINOR 0
27350 #if DB_VERSION_MINOR == 5
27355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27356 $EGREP "__db_version" >/dev/null 2>&1; then
27364 if test $ol_cv_bdb_minor = 0 ; then
27365 cat >conftest.$ac_ext <<_ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h. */
27373 #ifndef DB_VERSION_MINOR
27374 # define DB_VERSION_MINOR 0
27376 #if DB_VERSION_MINOR == 4
27381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27382 $EGREP "__db_version" >/dev/null 2>&1; then
27390 if test $ol_cv_bdb_minor = 0 ; then
27391 cat >conftest.$ac_ext <<_ACEOF
27394 cat confdefs.h >>conftest.$ac_ext
27395 cat >>conftest.$ac_ext <<_ACEOF
27396 /* end confdefs.h. */
27399 #ifndef DB_VERSION_MINOR
27400 # define DB_VERSION_MINOR 0
27402 #if DB_VERSION_MINOR == 3
27407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27408 $EGREP "__db_version" >/dev/null 2>&1; then
27416 if test $ol_cv_bdb_minor = 0 ; then
27417 cat >conftest.$ac_ext <<_ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h. */
27425 #ifndef DB_VERSION_MINOR
27426 # define DB_VERSION_MINOR 0
27428 #if DB_VERSION_MINOR == 2
27433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27434 $EGREP "__db_version" >/dev/null 2>&1; then
27442 if test $ol_cv_bdb_minor = 0 ; then
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27451 #ifndef DB_VERSION_MINOR
27452 # define DB_VERSION_MINOR 0
27454 #if DB_VERSION_MINOR == 1
27459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27460 $EGREP "__db_version" >/dev/null 2>&1; then
27470 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27471 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27473 if test $ol_cv_bdb_major = 4 ; then
27474 if test $ol_cv_bdb_minor = 5 ; then
27475 if test $ol_cv_lib_db = no ; then
27476 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
27477 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
27478 if test "${ol_cv_db_db45+set}" = set; then
27479 echo $ECHO_N "(cached) $ECHO_C" >&6
27484 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27486 cat >conftest.$ac_ext <<_ACEOF
27489 cat confdefs.h >>conftest.$ac_ext
27490 cat >>conftest.$ac_ext <<_ACEOF
27491 /* end confdefs.h. */
27493 #ifdef HAVE_DB_185_H
27494 # include <db_185.h>
27499 #ifndef DB_VERSION_MAJOR
27500 # define DB_VERSION_MAJOR 1
27504 #define NULL ((void*)0)
27511 #if DB_VERSION_MAJOR > 1
27514 int major, minor, patch;
27516 version = db_version( &major, &minor, &patch );
27518 if( major != DB_VERSION_MAJOR ||
27519 minor < DB_VERSION_MINOR )
27521 printf("Berkeley DB version mismatch\n"
27522 "\theader: %s\n\tlibrary: %s\n",
27523 DB_VERSION_STRING, version);
27529 #if DB_VERSION_MAJOR > 2
27530 db_env_create( NULL, 0 );
27531 #elif DB_VERSION_MAJOR > 1
27532 db_appexit( NULL );
27534 (void) dbopen( NULL, 0, 0, 0, NULL);
27541 rm -f conftest.$ac_objext conftest$ac_exeext
27542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27543 (eval $ac_link) 2>conftest.er1
27545 grep -v '^ *+' conftest.er1 >conftest.err
27547 cat conftest.err >&5
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); } &&
27550 { ac_try='test -z "$ac_c_werror_flag"
27551 || test ! -s conftest.err'
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; } &&
27557 { ac_try='test -s conftest$ac_exeext'
27558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27559 (eval $ac_try) 2>&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; }; then
27565 echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27570 rm -f conftest.err conftest.$ac_objext \
27571 conftest$ac_exeext conftest.$ac_ext
27576 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
27577 echo "${ECHO_T}$ol_cv_db_db45" >&6
27579 if test $ol_cv_db_db45 = yes ; then
27580 ol_cv_lib_db=-ldb45
27584 if test $ol_cv_lib_db = no ; then
27585 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
27586 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
27587 if test "${ol_cv_db_db_45+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27595 cat >conftest.$ac_ext <<_ACEOF
27598 cat confdefs.h >>conftest.$ac_ext
27599 cat >>conftest.$ac_ext <<_ACEOF
27600 /* end confdefs.h. */
27602 #ifdef HAVE_DB_185_H
27603 # include <db_185.h>
27608 #ifndef DB_VERSION_MAJOR
27609 # define DB_VERSION_MAJOR 1
27613 #define NULL ((void*)0)
27620 #if DB_VERSION_MAJOR > 1
27623 int major, minor, patch;
27625 version = db_version( &major, &minor, &patch );
27627 if( major != DB_VERSION_MAJOR ||
27628 minor < DB_VERSION_MINOR )
27630 printf("Berkeley DB version mismatch\n"
27631 "\theader: %s\n\tlibrary: %s\n",
27632 DB_VERSION_STRING, version);
27638 #if DB_VERSION_MAJOR > 2
27639 db_env_create( NULL, 0 );
27640 #elif DB_VERSION_MAJOR > 1
27641 db_appexit( NULL );
27643 (void) dbopen( NULL, 0, 0, 0, NULL);
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27652 (eval $ac_link) 2>conftest.er1
27654 grep -v '^ *+' conftest.er1 >conftest.err
27656 cat conftest.err >&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } &&
27659 { ac_try='test -z "$ac_c_werror_flag"
27660 || test ! -s conftest.err'
27661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662 (eval $ac_try) 2>&5
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest$ac_exeext'
27667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668 (eval $ac_try) 2>&5
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; }; then
27674 echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27679 rm -f conftest.err conftest.$ac_objext \
27680 conftest$ac_exeext conftest.$ac_ext
27685 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
27686 echo "${ECHO_T}$ol_cv_db_db_45" >&6
27688 if test $ol_cv_db_db_45 = yes ; then
27689 ol_cv_lib_db=-ldb-45
27693 if test $ol_cv_lib_db = no ; then
27694 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
27695 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
27696 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
27697 echo $ECHO_N "(cached) $ECHO_C" >&6
27702 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27704 cat >conftest.$ac_ext <<_ACEOF
27707 cat confdefs.h >>conftest.$ac_ext
27708 cat >>conftest.$ac_ext <<_ACEOF
27709 /* end confdefs.h. */
27711 #ifdef HAVE_DB_185_H
27712 # include <db_185.h>
27717 #ifndef DB_VERSION_MAJOR
27718 # define DB_VERSION_MAJOR 1
27722 #define NULL ((void*)0)
27729 #if DB_VERSION_MAJOR > 1
27732 int major, minor, patch;
27734 version = db_version( &major, &minor, &patch );
27736 if( major != DB_VERSION_MAJOR ||
27737 minor < DB_VERSION_MINOR )
27739 printf("Berkeley DB version mismatch\n"
27740 "\theader: %s\n\tlibrary: %s\n",
27741 DB_VERSION_STRING, version);
27747 #if DB_VERSION_MAJOR > 2
27748 db_env_create( NULL, 0 );
27749 #elif DB_VERSION_MAJOR > 1
27750 db_appexit( NULL );
27752 (void) dbopen( NULL, 0, 0, 0, NULL);
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27761 (eval $ac_link) 2>conftest.er1
27763 grep -v '^ *+' conftest.er1 >conftest.err
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } &&
27768 { ac_try='test -z "$ac_c_werror_flag"
27769 || test ! -s conftest.err'
27770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771 (eval $ac_try) 2>&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); }; } &&
27775 { ac_try='test -s conftest$ac_exeext'
27776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777 (eval $ac_try) 2>&5
27779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780 (exit $ac_status); }; }; then
27781 ol_cv_db_db_4_dot_5=yes
27783 echo "$as_me: failed program was:" >&5
27784 sed 's/^/| /' conftest.$ac_ext >&5
27786 ol_cv_db_db_4_dot_5=no
27788 rm -f conftest.err conftest.$ac_objext \
27789 conftest$ac_exeext conftest.$ac_ext
27794 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
27795 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
27797 if test $ol_cv_db_db_4_dot_5 = yes ; then
27798 ol_cv_lib_db=-ldb-4.5
27802 if test $ol_cv_lib_db = no ; then
27803 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
27804 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
27805 if test "${ol_cv_db_db_4_5+set}" = set; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27811 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27813 cat >conftest.$ac_ext <<_ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h. */
27820 #ifdef HAVE_DB_185_H
27821 # include <db_185.h>
27826 #ifndef DB_VERSION_MAJOR
27827 # define DB_VERSION_MAJOR 1
27831 #define NULL ((void*)0)
27838 #if DB_VERSION_MAJOR > 1
27841 int major, minor, patch;
27843 version = db_version( &major, &minor, &patch );
27845 if( major != DB_VERSION_MAJOR ||
27846 minor < DB_VERSION_MINOR )
27848 printf("Berkeley DB version mismatch\n"
27849 "\theader: %s\n\tlibrary: %s\n",
27850 DB_VERSION_STRING, version);
27856 #if DB_VERSION_MAJOR > 2
27857 db_env_create( NULL, 0 );
27858 #elif DB_VERSION_MAJOR > 1
27859 db_appexit( NULL );
27861 (void) dbopen( NULL, 0, 0, 0, NULL);
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27870 (eval $ac_link) 2>conftest.er1
27872 grep -v '^ *+' conftest.er1 >conftest.err
27874 cat conftest.err >&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } &&
27877 { ac_try='test -z "$ac_c_werror_flag"
27878 || test ! -s conftest.err'
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; } &&
27884 { ac_try='test -s conftest$ac_exeext'
27885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886 (eval $ac_try) 2>&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; }; then
27890 ol_cv_db_db_4_5=yes
27892 echo "$as_me: failed program was:" >&5
27893 sed 's/^/| /' conftest.$ac_ext >&5
27897 rm -f conftest.err conftest.$ac_objext \
27898 conftest$ac_exeext conftest.$ac_ext
27903 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
27904 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
27906 if test $ol_cv_db_db_4_5 = yes ; then
27907 ol_cv_lib_db=-ldb-4-5
27911 elif test $ol_cv_bdb_minor = 4 ; then
27912 if test $ol_cv_lib_db = no ; then
27913 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
27914 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
27915 if test "${ol_cv_db_db44+set}" = set; then
27916 echo $ECHO_N "(cached) $ECHO_C" >&6
27921 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27923 cat >conftest.$ac_ext <<_ACEOF
27926 cat confdefs.h >>conftest.$ac_ext
27927 cat >>conftest.$ac_ext <<_ACEOF
27928 /* end confdefs.h. */
27930 #ifdef HAVE_DB_185_H
27931 # include <db_185.h>
27936 #ifndef DB_VERSION_MAJOR
27937 # define DB_VERSION_MAJOR 1
27941 #define NULL ((void*)0)
27948 #if DB_VERSION_MAJOR > 1
27951 int major, minor, patch;
27953 version = db_version( &major, &minor, &patch );
27955 if( major != DB_VERSION_MAJOR ||
27956 minor < DB_VERSION_MINOR )
27958 printf("Berkeley DB version mismatch\n"
27959 "\theader: %s\n\tlibrary: %s\n",
27960 DB_VERSION_STRING, version);
27966 #if DB_VERSION_MAJOR > 2
27967 db_env_create( NULL, 0 );
27968 #elif DB_VERSION_MAJOR > 1
27969 db_appexit( NULL );
27971 (void) dbopen( NULL, 0, 0, 0, NULL);
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27980 (eval $ac_link) 2>conftest.er1
27982 grep -v '^ *+' conftest.er1 >conftest.err
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
27987 { ac_try='test -z "$ac_c_werror_flag"
27988 || test ! -s conftest.err'
27989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990 (eval $ac_try) 2>&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); }; } &&
27994 { ac_try='test -s conftest$ac_exeext'
27995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996 (eval $ac_try) 2>&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); }; }; then
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28007 rm -f conftest.err conftest.$ac_objext \
28008 conftest$ac_exeext conftest.$ac_ext
28013 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28014 echo "${ECHO_T}$ol_cv_db_db44" >&6
28016 if test $ol_cv_db_db44 = yes ; then
28017 ol_cv_lib_db=-ldb44
28021 if test $ol_cv_lib_db = no ; then
28022 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28023 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28024 if test "${ol_cv_db_db_44+set}" = set; then
28025 echo $ECHO_N "(cached) $ECHO_C" >&6
28030 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28032 cat >conftest.$ac_ext <<_ACEOF
28035 cat confdefs.h >>conftest.$ac_ext
28036 cat >>conftest.$ac_ext <<_ACEOF
28037 /* end confdefs.h. */
28039 #ifdef HAVE_DB_185_H
28040 # include <db_185.h>
28045 #ifndef DB_VERSION_MAJOR
28046 # define DB_VERSION_MAJOR 1
28050 #define NULL ((void*)0)
28057 #if DB_VERSION_MAJOR > 1
28060 int major, minor, patch;
28062 version = db_version( &major, &minor, &patch );
28064 if( major != DB_VERSION_MAJOR ||
28065 minor < DB_VERSION_MINOR )
28067 printf("Berkeley DB version mismatch\n"
28068 "\theader: %s\n\tlibrary: %s\n",
28069 DB_VERSION_STRING, version);
28075 #if DB_VERSION_MAJOR > 2
28076 db_env_create( NULL, 0 );
28077 #elif DB_VERSION_MAJOR > 1
28078 db_appexit( NULL );
28080 (void) dbopen( NULL, 0, 0, 0, NULL);
28087 rm -f conftest.$ac_objext conftest$ac_exeext
28088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28089 (eval $ac_link) 2>conftest.er1
28091 grep -v '^ *+' conftest.er1 >conftest.err
28093 cat conftest.err >&5
28094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095 (exit $ac_status); } &&
28096 { ac_try='test -z "$ac_c_werror_flag"
28097 || test ! -s conftest.err'
28098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28099 (eval $ac_try) 2>&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); }; } &&
28103 { ac_try='test -s conftest$ac_exeext'
28104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28105 (eval $ac_try) 2>&5
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); }; }; then
28111 echo "$as_me: failed program was:" >&5
28112 sed 's/^/| /' conftest.$ac_ext >&5
28116 rm -f conftest.err conftest.$ac_objext \
28117 conftest$ac_exeext conftest.$ac_ext
28122 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28123 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28125 if test $ol_cv_db_db_44 = yes ; then
28126 ol_cv_lib_db=-ldb-44
28130 if test $ol_cv_lib_db = no ; then
28131 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28132 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28133 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28134 echo $ECHO_N "(cached) $ECHO_C" >&6
28139 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28141 cat >conftest.$ac_ext <<_ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h. */
28148 #ifdef HAVE_DB_185_H
28149 # include <db_185.h>
28154 #ifndef DB_VERSION_MAJOR
28155 # define DB_VERSION_MAJOR 1
28159 #define NULL ((void*)0)
28166 #if DB_VERSION_MAJOR > 1
28169 int major, minor, patch;
28171 version = db_version( &major, &minor, &patch );
28173 if( major != DB_VERSION_MAJOR ||
28174 minor < DB_VERSION_MINOR )
28176 printf("Berkeley DB version mismatch\n"
28177 "\theader: %s\n\tlibrary: %s\n",
28178 DB_VERSION_STRING, version);
28184 #if DB_VERSION_MAJOR > 2
28185 db_env_create( NULL, 0 );
28186 #elif DB_VERSION_MAJOR > 1
28187 db_appexit( NULL );
28189 (void) dbopen( NULL, 0, 0, 0, NULL);
28196 rm -f conftest.$ac_objext conftest$ac_exeext
28197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28198 (eval $ac_link) 2>conftest.er1
28200 grep -v '^ *+' conftest.er1 >conftest.err
28202 cat conftest.err >&5
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); } &&
28205 { ac_try='test -z "$ac_c_werror_flag"
28206 || test ! -s conftest.err'
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; } &&
28212 { ac_try='test -s conftest$ac_exeext'
28213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; }; then
28218 ol_cv_db_db_4_dot_4=yes
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28223 ol_cv_db_db_4_dot_4=no
28225 rm -f conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
28231 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28232 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28234 if test $ol_cv_db_db_4_dot_4 = yes ; then
28235 ol_cv_lib_db=-ldb-4.4
28239 if test $ol_cv_lib_db = no ; then
28240 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28241 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28242 if test "${ol_cv_db_db_4_4+set}" = set; then
28243 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28250 cat >conftest.$ac_ext <<_ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28257 #ifdef HAVE_DB_185_H
28258 # include <db_185.h>
28263 #ifndef DB_VERSION_MAJOR
28264 # define DB_VERSION_MAJOR 1
28268 #define NULL ((void*)0)
28275 #if DB_VERSION_MAJOR > 1
28278 int major, minor, patch;
28280 version = db_version( &major, &minor, &patch );
28282 if( major != DB_VERSION_MAJOR ||
28283 minor < DB_VERSION_MINOR )
28285 printf("Berkeley DB version mismatch\n"
28286 "\theader: %s\n\tlibrary: %s\n",
28287 DB_VERSION_STRING, version);
28293 #if DB_VERSION_MAJOR > 2
28294 db_env_create( NULL, 0 );
28295 #elif DB_VERSION_MAJOR > 1
28296 db_appexit( NULL );
28298 (void) dbopen( NULL, 0, 0, 0, NULL);
28305 rm -f conftest.$ac_objext conftest$ac_exeext
28306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28307 (eval $ac_link) 2>conftest.er1
28309 grep -v '^ *+' conftest.er1 >conftest.err
28311 cat conftest.err >&5
28312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313 (exit $ac_status); } &&
28314 { ac_try='test -z "$ac_c_werror_flag"
28315 || test ! -s conftest.err'
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; } &&
28321 { ac_try='test -s conftest$ac_exeext'
28322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323 (eval $ac_try) 2>&5
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); }; }; then
28327 ol_cv_db_db_4_4=yes
28329 echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28334 rm -f conftest.err conftest.$ac_objext \
28335 conftest$ac_exeext conftest.$ac_ext
28340 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28341 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28343 if test $ol_cv_db_db_4_4 = yes ; then
28344 ol_cv_lib_db=-ldb-4-4
28348 elif test $ol_cv_bdb_minor = 3 ; then
28349 if test $ol_cv_lib_db = no ; then
28350 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28351 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28352 if test "${ol_cv_db_db43+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28358 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28360 cat >conftest.$ac_ext <<_ACEOF
28363 cat confdefs.h >>conftest.$ac_ext
28364 cat >>conftest.$ac_ext <<_ACEOF
28365 /* end confdefs.h. */
28367 #ifdef HAVE_DB_185_H
28368 # include <db_185.h>
28373 #ifndef DB_VERSION_MAJOR
28374 # define DB_VERSION_MAJOR 1
28378 #define NULL ((void*)0)
28385 #if DB_VERSION_MAJOR > 1
28388 int major, minor, patch;
28390 version = db_version( &major, &minor, &patch );
28392 if( major != DB_VERSION_MAJOR ||
28393 minor < DB_VERSION_MINOR )
28395 printf("Berkeley DB version mismatch\n"
28396 "\theader: %s\n\tlibrary: %s\n",
28397 DB_VERSION_STRING, version);
28403 #if DB_VERSION_MAJOR > 2
28404 db_env_create( NULL, 0 );
28405 #elif DB_VERSION_MAJOR > 1
28406 db_appexit( NULL );
28408 (void) dbopen( NULL, 0, 0, 0, NULL);
28415 rm -f conftest.$ac_objext conftest$ac_exeext
28416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28417 (eval $ac_link) 2>conftest.er1
28419 grep -v '^ *+' conftest.er1 >conftest.err
28421 cat conftest.err >&5
28422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423 (exit $ac_status); } &&
28424 { ac_try='test -z "$ac_c_werror_flag"
28425 || test ! -s conftest.err'
28426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427 (eval $ac_try) 2>&5
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); }; } &&
28431 { ac_try='test -s conftest$ac_exeext'
28432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433 (eval $ac_try) 2>&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
28439 echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28444 rm -f conftest.err conftest.$ac_objext \
28445 conftest$ac_exeext conftest.$ac_ext
28450 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28451 echo "${ECHO_T}$ol_cv_db_db43" >&6
28453 if test $ol_cv_db_db43 = yes ; then
28454 ol_cv_lib_db=-ldb43
28458 if test $ol_cv_lib_db = no ; then
28459 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28460 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28461 if test "${ol_cv_db_db_43+set}" = set; then
28462 echo $ECHO_N "(cached) $ECHO_C" >&6
28467 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28469 cat >conftest.$ac_ext <<_ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h. */
28476 #ifdef HAVE_DB_185_H
28477 # include <db_185.h>
28482 #ifndef DB_VERSION_MAJOR
28483 # define DB_VERSION_MAJOR 1
28487 #define NULL ((void*)0)
28494 #if DB_VERSION_MAJOR > 1
28497 int major, minor, patch;
28499 version = db_version( &major, &minor, &patch );
28501 if( major != DB_VERSION_MAJOR ||
28502 minor < DB_VERSION_MINOR )
28504 printf("Berkeley DB version mismatch\n"
28505 "\theader: %s\n\tlibrary: %s\n",
28506 DB_VERSION_STRING, version);
28512 #if DB_VERSION_MAJOR > 2
28513 db_env_create( NULL, 0 );
28514 #elif DB_VERSION_MAJOR > 1
28515 db_appexit( NULL );
28517 (void) dbopen( NULL, 0, 0, 0, NULL);
28524 rm -f conftest.$ac_objext conftest$ac_exeext
28525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28526 (eval $ac_link) 2>conftest.er1
28528 grep -v '^ *+' conftest.er1 >conftest.err
28530 cat conftest.err >&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } &&
28533 { ac_try='test -z "$ac_c_werror_flag"
28534 || test ! -s conftest.err'
28535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; } &&
28540 { ac_try='test -s conftest$ac_exeext'
28541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542 (eval $ac_try) 2>&5
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); }; }; then
28548 echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28553 rm -f conftest.err conftest.$ac_objext \
28554 conftest$ac_exeext conftest.$ac_ext
28559 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28560 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28562 if test $ol_cv_db_db_43 = yes ; then
28563 ol_cv_lib_db=-ldb-43
28567 if test $ol_cv_lib_db = no ; then
28568 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28569 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28570 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28571 echo $ECHO_N "(cached) $ECHO_C" >&6
28576 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28578 cat >conftest.$ac_ext <<_ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h. */
28585 #ifdef HAVE_DB_185_H
28586 # include <db_185.h>
28591 #ifndef DB_VERSION_MAJOR
28592 # define DB_VERSION_MAJOR 1
28596 #define NULL ((void*)0)
28603 #if DB_VERSION_MAJOR > 1
28606 int major, minor, patch;
28608 version = db_version( &major, &minor, &patch );
28610 if( major != DB_VERSION_MAJOR ||
28611 minor < DB_VERSION_MINOR )
28613 printf("Berkeley DB version mismatch\n"
28614 "\theader: %s\n\tlibrary: %s\n",
28615 DB_VERSION_STRING, version);
28621 #if DB_VERSION_MAJOR > 2
28622 db_env_create( NULL, 0 );
28623 #elif DB_VERSION_MAJOR > 1
28624 db_appexit( NULL );
28626 (void) dbopen( NULL, 0, 0, 0, NULL);
28633 rm -f conftest.$ac_objext conftest$ac_exeext
28634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28635 (eval $ac_link) 2>conftest.er1
28637 grep -v '^ *+' conftest.er1 >conftest.err
28639 cat conftest.err >&5
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } &&
28642 { ac_try='test -z "$ac_c_werror_flag"
28643 || test ! -s conftest.err'
28644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645 (eval $ac_try) 2>&5
28647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648 (exit $ac_status); }; } &&
28649 { ac_try='test -s conftest$ac_exeext'
28650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28651 (eval $ac_try) 2>&5
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); }; }; then
28655 ol_cv_db_db_4_dot_3=yes
28657 echo "$as_me: failed program was:" >&5
28658 sed 's/^/| /' conftest.$ac_ext >&5
28660 ol_cv_db_db_4_dot_3=no
28662 rm -f conftest.err conftest.$ac_objext \
28663 conftest$ac_exeext conftest.$ac_ext
28668 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28669 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28671 if test $ol_cv_db_db_4_dot_3 = yes ; then
28672 ol_cv_lib_db=-ldb-4.3
28676 if test $ol_cv_lib_db = no ; then
28677 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28678 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28679 if test "${ol_cv_db_db_4_3+set}" = set; then
28680 echo $ECHO_N "(cached) $ECHO_C" >&6
28685 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28687 cat >conftest.$ac_ext <<_ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h. */
28694 #ifdef HAVE_DB_185_H
28695 # include <db_185.h>
28700 #ifndef DB_VERSION_MAJOR
28701 # define DB_VERSION_MAJOR 1
28705 #define NULL ((void*)0)
28712 #if DB_VERSION_MAJOR > 1
28715 int major, minor, patch;
28717 version = db_version( &major, &minor, &patch );
28719 if( major != DB_VERSION_MAJOR ||
28720 minor < DB_VERSION_MINOR )
28722 printf("Berkeley DB version mismatch\n"
28723 "\theader: %s\n\tlibrary: %s\n",
28724 DB_VERSION_STRING, version);
28730 #if DB_VERSION_MAJOR > 2
28731 db_env_create( NULL, 0 );
28732 #elif DB_VERSION_MAJOR > 1
28733 db_appexit( NULL );
28735 (void) dbopen( NULL, 0, 0, 0, NULL);
28742 rm -f conftest.$ac_objext conftest$ac_exeext
28743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28744 (eval $ac_link) 2>conftest.er1
28746 grep -v '^ *+' conftest.er1 >conftest.err
28748 cat conftest.err >&5
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); } &&
28751 { ac_try='test -z "$ac_c_werror_flag"
28752 || test ! -s conftest.err'
28753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28754 (eval $ac_try) 2>&5
28756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757 (exit $ac_status); }; } &&
28758 { ac_try='test -s conftest$ac_exeext'
28759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28760 (eval $ac_try) 2>&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28764 ol_cv_db_db_4_3=yes
28766 echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28771 rm -f conftest.err conftest.$ac_objext \
28772 conftest$ac_exeext conftest.$ac_ext
28777 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28778 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28780 if test $ol_cv_db_db_4_3 = yes ; then
28781 ol_cv_lib_db=-ldb-4-3
28785 elif test $ol_cv_bdb_minor = 2 ; then
28786 if test $ol_cv_lib_db = no ; then
28787 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28788 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28789 if test "${ol_cv_db_db42+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28795 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28797 cat >conftest.$ac_ext <<_ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h. */
28804 #ifdef HAVE_DB_185_H
28805 # include <db_185.h>
28810 #ifndef DB_VERSION_MAJOR
28811 # define DB_VERSION_MAJOR 1
28815 #define NULL ((void*)0)
28822 #if DB_VERSION_MAJOR > 1
28825 int major, minor, patch;
28827 version = db_version( &major, &minor, &patch );
28829 if( major != DB_VERSION_MAJOR ||
28830 minor < DB_VERSION_MINOR )
28832 printf("Berkeley DB version mismatch\n"
28833 "\theader: %s\n\tlibrary: %s\n",
28834 DB_VERSION_STRING, version);
28840 #if DB_VERSION_MAJOR > 2
28841 db_env_create( NULL, 0 );
28842 #elif DB_VERSION_MAJOR > 1
28843 db_appexit( NULL );
28845 (void) dbopen( NULL, 0, 0, 0, NULL);
28852 rm -f conftest.$ac_objext conftest$ac_exeext
28853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28854 (eval $ac_link) 2>conftest.er1
28856 grep -v '^ *+' conftest.er1 >conftest.err
28858 cat conftest.err >&5
28859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860 (exit $ac_status); } &&
28861 { ac_try='test -z "$ac_c_werror_flag"
28862 || test ! -s conftest.err'
28863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 (eval $ac_try) 2>&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); }; } &&
28868 { ac_try='test -s conftest$ac_exeext'
28869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870 (eval $ac_try) 2>&5
28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); }; }; then
28876 echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28881 rm -f conftest.err conftest.$ac_objext \
28882 conftest$ac_exeext conftest.$ac_ext
28887 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28888 echo "${ECHO_T}$ol_cv_db_db42" >&6
28890 if test $ol_cv_db_db42 = yes ; then
28891 ol_cv_lib_db=-ldb42
28895 if test $ol_cv_lib_db = no ; then
28896 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28897 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28898 if test "${ol_cv_db_db_42+set}" = set; then
28899 echo $ECHO_N "(cached) $ECHO_C" >&6
28904 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28906 cat >conftest.$ac_ext <<_ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h. */
28913 #ifdef HAVE_DB_185_H
28914 # include <db_185.h>
28919 #ifndef DB_VERSION_MAJOR
28920 # define DB_VERSION_MAJOR 1
28924 #define NULL ((void*)0)
28931 #if DB_VERSION_MAJOR > 1
28934 int major, minor, patch;
28936 version = db_version( &major, &minor, &patch );
28938 if( major != DB_VERSION_MAJOR ||
28939 minor < DB_VERSION_MINOR )
28941 printf("Berkeley DB version mismatch\n"
28942 "\theader: %s\n\tlibrary: %s\n",
28943 DB_VERSION_STRING, version);
28949 #if DB_VERSION_MAJOR > 2
28950 db_env_create( NULL, 0 );
28951 #elif DB_VERSION_MAJOR > 1
28952 db_appexit( NULL );
28954 (void) dbopen( NULL, 0, 0, 0, NULL);
28961 rm -f conftest.$ac_objext conftest$ac_exeext
28962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28963 (eval $ac_link) 2>conftest.er1
28965 grep -v '^ *+' conftest.er1 >conftest.err
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969 (exit $ac_status); } &&
28970 { ac_try='test -z "$ac_c_werror_flag"
28971 || test ! -s conftest.err'
28972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973 (eval $ac_try) 2>&5
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); }; } &&
28977 { ac_try='test -s conftest$ac_exeext'
28978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28979 (eval $ac_try) 2>&5
28981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28982 (exit $ac_status); }; }; then
28985 echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28990 rm -f conftest.err conftest.$ac_objext \
28991 conftest$ac_exeext conftest.$ac_ext
28996 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28997 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28999 if test $ol_cv_db_db_42 = yes ; then
29000 ol_cv_lib_db=-ldb-42
29004 if test $ol_cv_lib_db = no ; then
29005 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29006 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29007 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29013 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29015 cat >conftest.$ac_ext <<_ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h. */
29022 #ifdef HAVE_DB_185_H
29023 # include <db_185.h>
29028 #ifndef DB_VERSION_MAJOR
29029 # define DB_VERSION_MAJOR 1
29033 #define NULL ((void*)0)
29040 #if DB_VERSION_MAJOR > 1
29043 int major, minor, patch;
29045 version = db_version( &major, &minor, &patch );
29047 if( major != DB_VERSION_MAJOR ||
29048 minor < DB_VERSION_MINOR )
29050 printf("Berkeley DB version mismatch\n"
29051 "\theader: %s\n\tlibrary: %s\n",
29052 DB_VERSION_STRING, version);
29058 #if DB_VERSION_MAJOR > 2
29059 db_env_create( NULL, 0 );
29060 #elif DB_VERSION_MAJOR > 1
29061 db_appexit( NULL );
29063 (void) dbopen( NULL, 0, 0, 0, NULL);
29070 rm -f conftest.$ac_objext conftest$ac_exeext
29071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29072 (eval $ac_link) 2>conftest.er1
29074 grep -v '^ *+' conftest.er1 >conftest.err
29076 cat conftest.err >&5
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); } &&
29079 { ac_try='test -z "$ac_c_werror_flag"
29080 || test ! -s conftest.err'
29081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29082 (eval $ac_try) 2>&5
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; } &&
29086 { ac_try='test -s conftest$ac_exeext'
29087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29088 (eval $ac_try) 2>&5
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); }; }; then
29092 ol_cv_db_db_4_dot_2=yes
29094 echo "$as_me: failed program was:" >&5
29095 sed 's/^/| /' conftest.$ac_ext >&5
29097 ol_cv_db_db_4_dot_2=no
29099 rm -f conftest.err conftest.$ac_objext \
29100 conftest$ac_exeext conftest.$ac_ext
29105 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29106 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29108 if test $ol_cv_db_db_4_dot_2 = yes ; then
29109 ol_cv_lib_db=-ldb-4.2
29113 if test $ol_cv_lib_db = no ; then
29114 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29115 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29116 if test "${ol_cv_db_db_4_2+set}" = set; then
29117 echo $ECHO_N "(cached) $ECHO_C" >&6
29122 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29124 cat >conftest.$ac_ext <<_ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h. */
29131 #ifdef HAVE_DB_185_H
29132 # include <db_185.h>
29137 #ifndef DB_VERSION_MAJOR
29138 # define DB_VERSION_MAJOR 1
29142 #define NULL ((void*)0)
29149 #if DB_VERSION_MAJOR > 1
29152 int major, minor, patch;
29154 version = db_version( &major, &minor, &patch );
29156 if( major != DB_VERSION_MAJOR ||
29157 minor < DB_VERSION_MINOR )
29159 printf("Berkeley DB version mismatch\n"
29160 "\theader: %s\n\tlibrary: %s\n",
29161 DB_VERSION_STRING, version);
29167 #if DB_VERSION_MAJOR > 2
29168 db_env_create( NULL, 0 );
29169 #elif DB_VERSION_MAJOR > 1
29170 db_appexit( NULL );
29172 (void) dbopen( NULL, 0, 0, 0, NULL);
29179 rm -f conftest.$ac_objext conftest$ac_exeext
29180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29181 (eval $ac_link) 2>conftest.er1
29183 grep -v '^ *+' conftest.er1 >conftest.err
29185 cat conftest.err >&5
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); } &&
29188 { ac_try='test -z "$ac_c_werror_flag"
29189 || test ! -s conftest.err'
29190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29191 (eval $ac_try) 2>&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; } &&
29195 { ac_try='test -s conftest$ac_exeext'
29196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; }; then
29201 ol_cv_db_db_4_2=yes
29203 echo "$as_me: failed program was:" >&5
29204 sed 's/^/| /' conftest.$ac_ext >&5
29208 rm -f conftest.err conftest.$ac_objext \
29209 conftest$ac_exeext conftest.$ac_ext
29214 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29215 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29217 if test $ol_cv_db_db_4_2 = yes ; then
29218 ol_cv_lib_db=-ldb-4-2
29222 elif test $ol_cv_bdb_minor = 1 ; then
29223 if test $ol_cv_lib_db = no ; then
29224 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29225 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29226 if test "${ol_cv_db_db41+set}" = set; then
29227 echo $ECHO_N "(cached) $ECHO_C" >&6
29232 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29234 cat >conftest.$ac_ext <<_ACEOF
29237 cat confdefs.h >>conftest.$ac_ext
29238 cat >>conftest.$ac_ext <<_ACEOF
29239 /* end confdefs.h. */
29241 #ifdef HAVE_DB_185_H
29242 # include <db_185.h>
29247 #ifndef DB_VERSION_MAJOR
29248 # define DB_VERSION_MAJOR 1
29252 #define NULL ((void*)0)
29259 #if DB_VERSION_MAJOR > 1
29262 int major, minor, patch;
29264 version = db_version( &major, &minor, &patch );
29266 if( major != DB_VERSION_MAJOR ||
29267 minor < DB_VERSION_MINOR )
29269 printf("Berkeley DB version mismatch\n"
29270 "\theader: %s\n\tlibrary: %s\n",
29271 DB_VERSION_STRING, version);
29277 #if DB_VERSION_MAJOR > 2
29278 db_env_create( NULL, 0 );
29279 #elif DB_VERSION_MAJOR > 1
29280 db_appexit( NULL );
29282 (void) dbopen( NULL, 0, 0, 0, NULL);
29289 rm -f conftest.$ac_objext conftest$ac_exeext
29290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29291 (eval $ac_link) 2>conftest.er1
29293 grep -v '^ *+' conftest.er1 >conftest.err
29295 cat conftest.err >&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); } &&
29298 { ac_try='test -z "$ac_c_werror_flag"
29299 || test ! -s conftest.err'
29300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29301 (eval $ac_try) 2>&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); }; } &&
29305 { ac_try='test -s conftest$ac_exeext'
29306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; }; then
29313 echo "$as_me: failed program was:" >&5
29314 sed 's/^/| /' conftest.$ac_ext >&5
29318 rm -f conftest.err conftest.$ac_objext \
29319 conftest$ac_exeext conftest.$ac_ext
29324 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29325 echo "${ECHO_T}$ol_cv_db_db41" >&6
29327 if test $ol_cv_db_db41 = yes ; then
29328 ol_cv_lib_db=-ldb41
29332 if test $ol_cv_lib_db = no ; then
29333 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29334 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29335 if test "${ol_cv_db_db_41+set}" = set; then
29336 echo $ECHO_N "(cached) $ECHO_C" >&6
29341 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29343 cat >conftest.$ac_ext <<_ACEOF
29346 cat confdefs.h >>conftest.$ac_ext
29347 cat >>conftest.$ac_ext <<_ACEOF
29348 /* end confdefs.h. */
29350 #ifdef HAVE_DB_185_H
29351 # include <db_185.h>
29356 #ifndef DB_VERSION_MAJOR
29357 # define DB_VERSION_MAJOR 1
29361 #define NULL ((void*)0)
29368 #if DB_VERSION_MAJOR > 1
29371 int major, minor, patch;
29373 version = db_version( &major, &minor, &patch );
29375 if( major != DB_VERSION_MAJOR ||
29376 minor < DB_VERSION_MINOR )
29378 printf("Berkeley DB version mismatch\n"
29379 "\theader: %s\n\tlibrary: %s\n",
29380 DB_VERSION_STRING, version);
29386 #if DB_VERSION_MAJOR > 2
29387 db_env_create( NULL, 0 );
29388 #elif DB_VERSION_MAJOR > 1
29389 db_appexit( NULL );
29391 (void) dbopen( NULL, 0, 0, 0, NULL);
29398 rm -f conftest.$ac_objext conftest$ac_exeext
29399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29400 (eval $ac_link) 2>conftest.er1
29402 grep -v '^ *+' conftest.er1 >conftest.err
29404 cat conftest.err >&5
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
29407 { ac_try='test -z "$ac_c_werror_flag"
29408 || test ! -s conftest.err'
29409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410 (eval $ac_try) 2>&5
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest$ac_exeext'
29415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29416 (eval $ac_try) 2>&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
29422 echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29427 rm -f conftest.err conftest.$ac_objext \
29428 conftest$ac_exeext conftest.$ac_ext
29433 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29434 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29436 if test $ol_cv_db_db_41 = yes ; then
29437 ol_cv_lib_db=-ldb-41
29441 if test $ol_cv_lib_db = no ; then
29442 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29443 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29444 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29445 echo $ECHO_N "(cached) $ECHO_C" >&6
29450 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29452 cat >conftest.$ac_ext <<_ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h. */
29459 #ifdef HAVE_DB_185_H
29460 # include <db_185.h>
29465 #ifndef DB_VERSION_MAJOR
29466 # define DB_VERSION_MAJOR 1
29470 #define NULL ((void*)0)
29477 #if DB_VERSION_MAJOR > 1
29480 int major, minor, patch;
29482 version = db_version( &major, &minor, &patch );
29484 if( major != DB_VERSION_MAJOR ||
29485 minor < DB_VERSION_MINOR )
29487 printf("Berkeley DB version mismatch\n"
29488 "\theader: %s\n\tlibrary: %s\n",
29489 DB_VERSION_STRING, version);
29495 #if DB_VERSION_MAJOR > 2
29496 db_env_create( NULL, 0 );
29497 #elif DB_VERSION_MAJOR > 1
29498 db_appexit( NULL );
29500 (void) dbopen( NULL, 0, 0, 0, NULL);
29507 rm -f conftest.$ac_objext conftest$ac_exeext
29508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29509 (eval $ac_link) 2>conftest.er1
29511 grep -v '^ *+' conftest.er1 >conftest.err
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } &&
29516 { ac_try='test -z "$ac_c_werror_flag"
29517 || test ! -s conftest.err'
29518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519 (eval $ac_try) 2>&5
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; } &&
29523 { ac_try='test -s conftest$ac_exeext'
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; }; then
29529 ol_cv_db_db_4_dot_1=yes
29531 echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29534 ol_cv_db_db_4_dot_1=no
29536 rm -f conftest.err conftest.$ac_objext \
29537 conftest$ac_exeext conftest.$ac_ext
29542 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29543 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29545 if test $ol_cv_db_db_4_dot_1 = yes ; then
29546 ol_cv_lib_db=-ldb-4.1
29550 if test $ol_cv_lib_db = no ; then
29551 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29552 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29553 if test "${ol_cv_db_db_4_1+set}" = set; then
29554 echo $ECHO_N "(cached) $ECHO_C" >&6
29559 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29561 cat >conftest.$ac_ext <<_ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29568 #ifdef HAVE_DB_185_H
29569 # include <db_185.h>
29574 #ifndef DB_VERSION_MAJOR
29575 # define DB_VERSION_MAJOR 1
29579 #define NULL ((void*)0)
29586 #if DB_VERSION_MAJOR > 1
29589 int major, minor, patch;
29591 version = db_version( &major, &minor, &patch );
29593 if( major != DB_VERSION_MAJOR ||
29594 minor < DB_VERSION_MINOR )
29596 printf("Berkeley DB version mismatch\n"
29597 "\theader: %s\n\tlibrary: %s\n",
29598 DB_VERSION_STRING, version);
29604 #if DB_VERSION_MAJOR > 2
29605 db_env_create( NULL, 0 );
29606 #elif DB_VERSION_MAJOR > 1
29607 db_appexit( NULL );
29609 (void) dbopen( NULL, 0, 0, 0, NULL);
29616 rm -f conftest.$ac_objext conftest$ac_exeext
29617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29618 (eval $ac_link) 2>conftest.er1
29620 grep -v '^ *+' conftest.er1 >conftest.err
29622 cat conftest.err >&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); } &&
29625 { ac_try='test -z "$ac_c_werror_flag"
29626 || test ! -s conftest.err'
29627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29628 (eval $ac_try) 2>&5
29630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); }; } &&
29632 { ac_try='test -s conftest$ac_exeext'
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 ol_cv_db_db_4_1=yes
29640 echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29645 rm -f conftest.err conftest.$ac_objext \
29646 conftest$ac_exeext conftest.$ac_ext
29651 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29652 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29654 if test $ol_cv_db_db_4_1 = yes ; then
29655 ol_cv_lib_db=-ldb-4-1
29660 if test $ol_cv_lib_db = no ; then
29661 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29662 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29663 if test "${ol_cv_db_db_4+set}" = set; then
29664 echo $ECHO_N "(cached) $ECHO_C" >&6
29669 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29671 cat >conftest.$ac_ext <<_ACEOF
29674 cat confdefs.h >>conftest.$ac_ext
29675 cat >>conftest.$ac_ext <<_ACEOF
29676 /* end confdefs.h. */
29678 #ifdef HAVE_DB_185_H
29679 # include <db_185.h>
29684 #ifndef DB_VERSION_MAJOR
29685 # define DB_VERSION_MAJOR 1
29689 #define NULL ((void*)0)
29696 #if DB_VERSION_MAJOR > 1
29699 int major, minor, patch;
29701 version = db_version( &major, &minor, &patch );
29703 if( major != DB_VERSION_MAJOR ||
29704 minor < DB_VERSION_MINOR )
29706 printf("Berkeley DB version mismatch\n"
29707 "\theader: %s\n\tlibrary: %s\n",
29708 DB_VERSION_STRING, version);
29714 #if DB_VERSION_MAJOR > 2
29715 db_env_create( NULL, 0 );
29716 #elif DB_VERSION_MAJOR > 1
29717 db_appexit( NULL );
29719 (void) dbopen( NULL, 0, 0, 0, NULL);
29726 rm -f conftest.$ac_objext conftest$ac_exeext
29727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29728 (eval $ac_link) 2>conftest.er1
29730 grep -v '^ *+' conftest.er1 >conftest.err
29732 cat conftest.err >&5
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); } &&
29735 { ac_try='test -z "$ac_c_werror_flag"
29736 || test ! -s conftest.err'
29737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738 (eval $ac_try) 2>&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); }; } &&
29742 { ac_try='test -s conftest$ac_exeext'
29743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29744 (eval $ac_try) 2>&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); }; }; then
29750 echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29755 rm -f conftest.err conftest.$ac_objext \
29756 conftest$ac_exeext conftest.$ac_ext
29761 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29762 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29764 if test $ol_cv_db_db_4 = yes ; then
29765 ol_cv_lib_db=-ldb-4
29769 if test $ol_cv_lib_db = no ; then
29770 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29771 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29772 if test "${ol_cv_db_db4+set}" = set; then
29773 echo $ECHO_N "(cached) $ECHO_C" >&6
29778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29780 cat >conftest.$ac_ext <<_ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h. */
29787 #ifdef HAVE_DB_185_H
29788 # include <db_185.h>
29793 #ifndef DB_VERSION_MAJOR
29794 # define DB_VERSION_MAJOR 1
29798 #define NULL ((void*)0)
29805 #if DB_VERSION_MAJOR > 1
29808 int major, minor, patch;
29810 version = db_version( &major, &minor, &patch );
29812 if( major != DB_VERSION_MAJOR ||
29813 minor < DB_VERSION_MINOR )
29815 printf("Berkeley DB version mismatch\n"
29816 "\theader: %s\n\tlibrary: %s\n",
29817 DB_VERSION_STRING, version);
29823 #if DB_VERSION_MAJOR > 2
29824 db_env_create( NULL, 0 );
29825 #elif DB_VERSION_MAJOR > 1
29826 db_appexit( NULL );
29828 (void) dbopen( NULL, 0, 0, 0, NULL);
29835 rm -f conftest.$ac_objext conftest$ac_exeext
29836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29837 (eval $ac_link) 2>conftest.er1
29839 grep -v '^ *+' conftest.er1 >conftest.err
29841 cat conftest.err >&5
29842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); } &&
29844 { ac_try='test -z "$ac_c_werror_flag"
29845 || test ! -s conftest.err'
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; } &&
29851 { ac_try='test -s conftest$ac_exeext'
29852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853 (eval $ac_try) 2>&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; }; then
29859 echo "$as_me: failed program was:" >&5
29860 sed 's/^/| /' conftest.$ac_ext >&5
29864 rm -f conftest.err conftest.$ac_objext \
29865 conftest$ac_exeext conftest.$ac_ext
29870 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29871 echo "${ECHO_T}$ol_cv_db_db4" >&6
29873 if test $ol_cv_db_db4 = yes ; then
29878 if test $ol_cv_lib_db = no ; then
29879 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29880 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29881 if test "${ol_cv_db_db+set}" = set; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29889 cat >conftest.$ac_ext <<_ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h. */
29896 #ifdef HAVE_DB_185_H
29897 # include <db_185.h>
29902 #ifndef DB_VERSION_MAJOR
29903 # define DB_VERSION_MAJOR 1
29907 #define NULL ((void*)0)
29914 #if DB_VERSION_MAJOR > 1
29917 int major, minor, patch;
29919 version = db_version( &major, &minor, &patch );
29921 if( major != DB_VERSION_MAJOR ||
29922 minor < DB_VERSION_MINOR )
29924 printf("Berkeley DB version mismatch\n"
29925 "\theader: %s\n\tlibrary: %s\n",
29926 DB_VERSION_STRING, version);
29932 #if DB_VERSION_MAJOR > 2
29933 db_env_create( NULL, 0 );
29934 #elif DB_VERSION_MAJOR > 1
29935 db_appexit( NULL );
29937 (void) dbopen( NULL, 0, 0, 0, NULL);
29944 rm -f conftest.$ac_objext conftest$ac_exeext
29945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29946 (eval $ac_link) 2>conftest.er1
29948 grep -v '^ *+' conftest.er1 >conftest.err
29950 cat conftest.err >&5
29951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952 (exit $ac_status); } &&
29953 { ac_try='test -z "$ac_c_werror_flag"
29954 || test ! -s conftest.err'
29955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956 (eval $ac_try) 2>&5
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; } &&
29960 { ac_try='test -s conftest$ac_exeext'
29961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29962 (eval $ac_try) 2>&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); }; }; then
29968 echo "$as_me: failed program was:" >&5
29969 sed 's/^/| /' conftest.$ac_ext >&5
29973 rm -f conftest.err conftest.$ac_objext \
29974 conftest$ac_exeext conftest.$ac_ext
29979 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29980 echo "${ECHO_T}$ol_cv_db_db" >&6
29982 if test $ol_cv_db_db = yes ; then
29988 elif test $ol_cv_bdb_major = 3 ; then
29989 if test $ol_cv_lib_db = no ; then
29990 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29991 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29992 if test "${ol_cv_db_db3+set}" = set; then
29993 echo $ECHO_N "(cached) $ECHO_C" >&6
29998 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30000 cat >conftest.$ac_ext <<_ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h. */
30007 #ifdef HAVE_DB_185_H
30008 # include <db_185.h>
30013 #ifndef DB_VERSION_MAJOR
30014 # define DB_VERSION_MAJOR 1
30018 #define NULL ((void*)0)
30025 #if DB_VERSION_MAJOR > 1
30028 int major, minor, patch;
30030 version = db_version( &major, &minor, &patch );
30032 if( major != DB_VERSION_MAJOR ||
30033 minor < DB_VERSION_MINOR )
30035 printf("Berkeley DB version mismatch\n"
30036 "\theader: %s\n\tlibrary: %s\n",
30037 DB_VERSION_STRING, version);
30043 #if DB_VERSION_MAJOR > 2
30044 db_env_create( NULL, 0 );
30045 #elif DB_VERSION_MAJOR > 1
30046 db_appexit( NULL );
30048 (void) dbopen( NULL, 0, 0, 0, NULL);
30055 rm -f conftest.$ac_objext conftest$ac_exeext
30056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30057 (eval $ac_link) 2>conftest.er1
30059 grep -v '^ *+' conftest.er1 >conftest.err
30061 cat conftest.err >&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } &&
30064 { ac_try='test -z "$ac_c_werror_flag"
30065 || test ! -s conftest.err'
30066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30067 (eval $ac_try) 2>&5
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; } &&
30071 { ac_try='test -s conftest$ac_exeext'
30072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073 (eval $ac_try) 2>&5
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); }; }; then
30079 echo "$as_me: failed program was:" >&5
30080 sed 's/^/| /' conftest.$ac_ext >&5
30084 rm -f conftest.err conftest.$ac_objext \
30085 conftest$ac_exeext conftest.$ac_ext
30090 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30091 echo "${ECHO_T}$ol_cv_db_db3" >&6
30093 if test $ol_cv_db_db3 = yes ; then
30098 if test $ol_cv_lib_db = no ; then
30099 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30100 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30101 if test "${ol_cv_db_db_3+set}" = set; then
30102 echo $ECHO_N "(cached) $ECHO_C" >&6
30107 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30109 cat >conftest.$ac_ext <<_ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h. */
30116 #ifdef HAVE_DB_185_H
30117 # include <db_185.h>
30122 #ifndef DB_VERSION_MAJOR
30123 # define DB_VERSION_MAJOR 1
30127 #define NULL ((void*)0)
30134 #if DB_VERSION_MAJOR > 1
30137 int major, minor, patch;
30139 version = db_version( &major, &minor, &patch );
30141 if( major != DB_VERSION_MAJOR ||
30142 minor < DB_VERSION_MINOR )
30144 printf("Berkeley DB version mismatch\n"
30145 "\theader: %s\n\tlibrary: %s\n",
30146 DB_VERSION_STRING, version);
30152 #if DB_VERSION_MAJOR > 2
30153 db_env_create( NULL, 0 );
30154 #elif DB_VERSION_MAJOR > 1
30155 db_appexit( NULL );
30157 (void) dbopen( NULL, 0, 0, 0, NULL);
30164 rm -f conftest.$ac_objext conftest$ac_exeext
30165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30166 (eval $ac_link) 2>conftest.er1
30168 grep -v '^ *+' conftest.er1 >conftest.err
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } &&
30173 { ac_try='test -z "$ac_c_werror_flag"
30174 || test ! -s conftest.err'
30175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30176 (eval $ac_try) 2>&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; } &&
30180 { ac_try='test -s conftest$ac_exeext'
30181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30182 (eval $ac_try) 2>&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); }; }; then
30188 echo "$as_me: failed program was:" >&5
30189 sed 's/^/| /' conftest.$ac_ext >&5
30193 rm -f conftest.err conftest.$ac_objext \
30194 conftest$ac_exeext conftest.$ac_ext
30199 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30200 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30202 if test $ol_cv_db_db_3 = yes ; then
30203 ol_cv_lib_db=-ldb-3
30208 elif test $ol_cv_bdb_major = 2 ; then
30209 if test $ol_cv_lib_db = no ; then
30210 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30211 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30212 if test "${ol_cv_db_db2+set}" = set; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30218 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30220 cat >conftest.$ac_ext <<_ACEOF
30223 cat confdefs.h >>conftest.$ac_ext
30224 cat >>conftest.$ac_ext <<_ACEOF
30225 /* end confdefs.h. */
30227 #ifdef HAVE_DB_185_H
30228 # include <db_185.h>
30233 #ifndef DB_VERSION_MAJOR
30234 # define DB_VERSION_MAJOR 1
30238 #define NULL ((void*)0)
30245 #if DB_VERSION_MAJOR > 1
30248 int major, minor, patch;
30250 version = db_version( &major, &minor, &patch );
30252 if( major != DB_VERSION_MAJOR ||
30253 minor < DB_VERSION_MINOR )
30255 printf("Berkeley DB version mismatch\n"
30256 "\theader: %s\n\tlibrary: %s\n",
30257 DB_VERSION_STRING, version);
30263 #if DB_VERSION_MAJOR > 2
30264 db_env_create( NULL, 0 );
30265 #elif DB_VERSION_MAJOR > 1
30266 db_appexit( NULL );
30268 (void) dbopen( NULL, 0, 0, 0, NULL);
30275 rm -f conftest.$ac_objext conftest$ac_exeext
30276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30277 (eval $ac_link) 2>conftest.er1
30279 grep -v '^ *+' conftest.er1 >conftest.err
30281 cat conftest.err >&5
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); } &&
30284 { ac_try='test -z "$ac_c_werror_flag"
30285 || test ! -s conftest.err'
30286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287 (eval $ac_try) 2>&5
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); }; } &&
30291 { ac_try='test -s conftest$ac_exeext'
30292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30293 (eval $ac_try) 2>&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); }; }; then
30299 echo "$as_me: failed program was:" >&5
30300 sed 's/^/| /' conftest.$ac_ext >&5
30304 rm -f conftest.err conftest.$ac_objext \
30305 conftest$ac_exeext conftest.$ac_ext
30310 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30311 echo "${ECHO_T}$ol_cv_db_db2" >&6
30313 if test $ol_cv_db_db2 = yes ; then
30318 if test $ol_cv_lib_db = no ; then
30319 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30320 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30321 if test "${ol_cv_db_db_2+set}" = set; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30327 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30329 cat >conftest.$ac_ext <<_ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h. */
30336 #ifdef HAVE_DB_185_H
30337 # include <db_185.h>
30342 #ifndef DB_VERSION_MAJOR
30343 # define DB_VERSION_MAJOR 1
30347 #define NULL ((void*)0)
30354 #if DB_VERSION_MAJOR > 1
30357 int major, minor, patch;
30359 version = db_version( &major, &minor, &patch );
30361 if( major != DB_VERSION_MAJOR ||
30362 minor < DB_VERSION_MINOR )
30364 printf("Berkeley DB version mismatch\n"
30365 "\theader: %s\n\tlibrary: %s\n",
30366 DB_VERSION_STRING, version);
30372 #if DB_VERSION_MAJOR > 2
30373 db_env_create( NULL, 0 );
30374 #elif DB_VERSION_MAJOR > 1
30375 db_appexit( NULL );
30377 (void) dbopen( NULL, 0, 0, 0, NULL);
30384 rm -f conftest.$ac_objext conftest$ac_exeext
30385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30386 (eval $ac_link) 2>conftest.er1
30388 grep -v '^ *+' conftest.er1 >conftest.err
30390 cat conftest.err >&5
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); } &&
30393 { ac_try='test -z "$ac_c_werror_flag"
30394 || test ! -s conftest.err'
30395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30396 (eval $ac_try) 2>&5
30398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30399 (exit $ac_status); }; } &&
30400 { ac_try='test -s conftest$ac_exeext'
30401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30402 (eval $ac_try) 2>&5
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); }; }; then
30408 echo "$as_me: failed program was:" >&5
30409 sed 's/^/| /' conftest.$ac_ext >&5
30413 rm -f conftest.err conftest.$ac_objext \
30414 conftest$ac_exeext conftest.$ac_ext
30419 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30420 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30422 if test $ol_cv_db_db_2 = yes ; then
30423 ol_cv_lib_db=-ldb-2
30428 elif test $ol_cv_bdb_major = 1 ; then
30429 if test $ol_cv_lib_db = no ; then
30430 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30431 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30432 if test "${ol_cv_db_db1+set}" = set; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30438 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30440 cat >conftest.$ac_ext <<_ACEOF
30443 cat confdefs.h >>conftest.$ac_ext
30444 cat >>conftest.$ac_ext <<_ACEOF
30445 /* end confdefs.h. */
30447 #ifdef HAVE_DB_185_H
30448 # include <db_185.h>
30453 #ifndef DB_VERSION_MAJOR
30454 # define DB_VERSION_MAJOR 1
30458 #define NULL ((void*)0)
30465 #if DB_VERSION_MAJOR > 1
30468 int major, minor, patch;
30470 version = db_version( &major, &minor, &patch );
30472 if( major != DB_VERSION_MAJOR ||
30473 minor < DB_VERSION_MINOR )
30475 printf("Berkeley DB version mismatch\n"
30476 "\theader: %s\n\tlibrary: %s\n",
30477 DB_VERSION_STRING, version);
30483 #if DB_VERSION_MAJOR > 2
30484 db_env_create( NULL, 0 );
30485 #elif DB_VERSION_MAJOR > 1
30486 db_appexit( NULL );
30488 (void) dbopen( NULL, 0, 0, 0, NULL);
30495 rm -f conftest.$ac_objext conftest$ac_exeext
30496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30497 (eval $ac_link) 2>conftest.er1
30499 grep -v '^ *+' conftest.er1 >conftest.err
30501 cat conftest.err >&5
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); } &&
30504 { ac_try='test -z "$ac_c_werror_flag"
30505 || test ! -s conftest.err'
30506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30507 (eval $ac_try) 2>&5
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); }; } &&
30511 { ac_try='test -s conftest$ac_exeext'
30512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30513 (eval $ac_try) 2>&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); }; }; then
30519 echo "$as_me: failed program was:" >&5
30520 sed 's/^/| /' conftest.$ac_ext >&5
30524 rm -f conftest.err conftest.$ac_objext \
30525 conftest$ac_exeext conftest.$ac_ext
30530 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30531 echo "${ECHO_T}$ol_cv_db_db1" >&6
30533 if test $ol_cv_db_db1 = yes ; then
30538 if test $ol_cv_lib_db = no ; then
30539 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30540 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30541 if test "${ol_cv_db_db_1+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30547 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30549 cat >conftest.$ac_ext <<_ACEOF
30552 cat confdefs.h >>conftest.$ac_ext
30553 cat >>conftest.$ac_ext <<_ACEOF
30554 /* end confdefs.h. */
30556 #ifdef HAVE_DB_185_H
30557 # include <db_185.h>
30562 #ifndef DB_VERSION_MAJOR
30563 # define DB_VERSION_MAJOR 1
30567 #define NULL ((void*)0)
30574 #if DB_VERSION_MAJOR > 1
30577 int major, minor, patch;
30579 version = db_version( &major, &minor, &patch );
30581 if( major != DB_VERSION_MAJOR ||
30582 minor < DB_VERSION_MINOR )
30584 printf("Berkeley DB version mismatch\n"
30585 "\theader: %s\n\tlibrary: %s\n",
30586 DB_VERSION_STRING, version);
30592 #if DB_VERSION_MAJOR > 2
30593 db_env_create( NULL, 0 );
30594 #elif DB_VERSION_MAJOR > 1
30595 db_appexit( NULL );
30597 (void) dbopen( NULL, 0, 0, 0, NULL);
30604 rm -f conftest.$ac_objext conftest$ac_exeext
30605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30606 (eval $ac_link) 2>conftest.er1
30608 grep -v '^ *+' conftest.er1 >conftest.err
30610 cat conftest.err >&5
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); } &&
30613 { ac_try='test -z "$ac_c_werror_flag"
30614 || test ! -s conftest.err'
30615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30616 (eval $ac_try) 2>&5
30618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); }; } &&
30620 { ac_try='test -s conftest$ac_exeext'
30621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30622 (eval $ac_try) 2>&5
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); }; }; then
30628 echo "$as_me: failed program was:" >&5
30629 sed 's/^/| /' conftest.$ac_ext >&5
30633 rm -f conftest.err conftest.$ac_objext \
30634 conftest$ac_exeext conftest.$ac_ext
30639 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30640 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30642 if test $ol_cv_db_db_1 = yes ; then
30643 ol_cv_lib_db=-ldb-1
30648 if test $ol_cv_lib_db = no ; then
30649 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30650 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30651 if test "${ol_cv_db_none+set}" = set; then
30652 echo $ECHO_N "(cached) $ECHO_C" >&6
30657 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30659 cat >conftest.$ac_ext <<_ACEOF
30662 cat confdefs.h >>conftest.$ac_ext
30663 cat >>conftest.$ac_ext <<_ACEOF
30664 /* end confdefs.h. */
30666 #ifdef HAVE_DB_185_H
30667 # include <db_185.h>
30672 #ifndef DB_VERSION_MAJOR
30673 # define DB_VERSION_MAJOR 1
30677 #define NULL ((void*)0)
30684 #if DB_VERSION_MAJOR > 1
30687 int major, minor, patch;
30689 version = db_version( &major, &minor, &patch );
30691 if( major != DB_VERSION_MAJOR ||
30692 minor < DB_VERSION_MINOR )
30694 printf("Berkeley DB version mismatch\n"
30695 "\theader: %s\n\tlibrary: %s\n",
30696 DB_VERSION_STRING, version);
30702 #if DB_VERSION_MAJOR > 2
30703 db_env_create( NULL, 0 );
30704 #elif DB_VERSION_MAJOR > 1
30705 db_appexit( NULL );
30707 (void) dbopen( NULL, 0, 0, 0, NULL);
30714 rm -f conftest.$ac_objext conftest$ac_exeext
30715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30716 (eval $ac_link) 2>conftest.er1
30718 grep -v '^ *+' conftest.er1 >conftest.err
30720 cat conftest.err >&5
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); } &&
30723 { ac_try='test -z "$ac_c_werror_flag"
30724 || test ! -s conftest.err'
30725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30726 (eval $ac_try) 2>&5
30728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729 (exit $ac_status); }; } &&
30730 { ac_try='test -s conftest$ac_exeext'
30731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30732 (eval $ac_try) 2>&5
30734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735 (exit $ac_status); }; }; then
30738 echo "$as_me: failed program was:" >&5
30739 sed 's/^/| /' conftest.$ac_ext >&5
30743 rm -f conftest.err conftest.$ac_objext \
30744 conftest$ac_exeext conftest.$ac_ext
30749 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30750 echo "${ECHO_T}$ol_cv_db_none" >&6
30752 if test $ol_cv_db_none = yes ; then
30758 if test "$ol_cv_lib_db" != no ; then
30759 ol_cv_berkeley_db=yes
30760 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
30761 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
30762 if test "${ol_cv_berkeley_db_version+set}" = set; then
30763 echo $ECHO_N "(cached) $ECHO_C" >&6
30767 LIBS="$LTHREAD_LIBS $LIBS"
30768 if test $ol_cv_lib_db != yes ; then
30769 LIBS="$ol_cv_lib_db $LIBS"
30772 if test "$cross_compiling" = yes; then
30773 ol_cv_berkeley_db_version=cross
30775 cat >conftest.$ac_ext <<_ACEOF
30778 cat confdefs.h >>conftest.$ac_ext
30779 cat >>conftest.$ac_ext <<_ACEOF
30780 /* end confdefs.h. */
30782 #ifdef HAVE_DB_185_H
30787 #ifndef DB_VERSION_MAJOR
30788 # define DB_VERSION_MAJOR 1
30791 #define NULL ((void *)0)
30795 #if DB_VERSION_MAJOR > 1
30797 int major, minor, patch;
30799 version = db_version( &major, &minor, &patch );
30801 if( major != DB_VERSION_MAJOR ||
30802 minor != DB_VERSION_MINOR ||
30803 patch != DB_VERSION_PATCH )
30805 printf("Berkeley DB version mismatch\n"
30806 "\theader: %s\n\tlibrary: %s\n",
30807 DB_VERSION_STRING, version);
30815 rm -f conftest$ac_exeext
30816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30817 (eval $ac_link) 2>&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30822 (eval $ac_try) 2>&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); }; }; then
30826 ol_cv_berkeley_db_version=yes
30828 echo "$as_me: program exited with status $ac_status" >&5
30829 echo "$as_me: failed program was:" >&5
30830 sed 's/^/| /' conftest.$ac_ext >&5
30832 ( exit $ac_status )
30833 ol_cv_berkeley_db_version=no
30835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30841 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
30842 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
30844 if test $ol_cv_berkeley_db_version = no ; then
30845 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
30846 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
30847 { (exit 1); exit 1; }; }
30850 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
30851 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
30852 if test "${ol_cv_berkeley_db_thread+set}" = set; then
30853 echo $ECHO_N "(cached) $ECHO_C" >&6
30857 LIBS="$LTHREAD_LIBS $LIBS"
30858 if test $ol_cv_lib_db != yes ; then
30859 LIBS="$ol_cv_lib_db $LIBS"
30862 if test "$cross_compiling" = yes; then
30863 ol_cv_berkeley_db_thread=cross
30865 cat >conftest.$ac_ext <<_ACEOF
30868 cat confdefs.h >>conftest.$ac_ext
30869 cat >>conftest.$ac_ext <<_ACEOF
30870 /* end confdefs.h. */
30872 #ifdef HAVE_DB_185_H
30878 #define NULL ((void *)0)
30883 u_int32_t flags = DB_CREATE |
30889 #if DB_VERSION_MAJOR > 2
30890 DB_ENV *env = NULL;
30892 rc = db_env_create( &env, 0 );
30894 flags |= DB_INIT_MPOOL;
30895 #ifdef DB_MPOOL_PRIVATE
30896 flags |= DB_MPOOL_PRIVATE;
30900 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30904 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
30905 rc = env->open( env, NULL, flags, 0 );
30907 rc = env->open( env, NULL, NULL, flags, 0 );
30911 rc = env->close( env, 0 );
30915 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30921 memset( &env, '\0', sizeof(env) );
30923 rc = db_appinit( NULL, NULL, &env, flags );
30926 db_appexit( &env );
30929 unlink("__db_mpool.share");
30930 unlink("__db_lock.share");
30936 rm -f conftest$ac_exeext
30937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30938 (eval $ac_link) 2>&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943 (eval $ac_try) 2>&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); }; }; then
30947 ol_cv_berkeley_db_thread=yes
30949 echo "$as_me: program exited with status $ac_status" >&5
30950 echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30953 ( exit $ac_status )
30954 ol_cv_berkeley_db_thread=no
30956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30962 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
30963 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
30965 if test $ol_cv_berkeley_db_thread != no ; then
30967 cat >>confdefs.h <<\_ACEOF
30968 #define HAVE_BERKELEY_DB_THREAD 1
30977 if test $ol_cv_berkeley_db = no ; then
30978 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
30979 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
30980 { (exit 1); exit 1; }; }
30984 cat >>confdefs.h <<\_ACEOF
30985 #define HAVE_BERKELEY_DB 1
30989 if test $ol_cv_lib_db != yes ; then
30990 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
30993 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
30994 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
30995 if test "${ol_cv_bdb_compat+set}" = set; then
30996 echo $ECHO_N "(cached) $ECHO_C" >&6
30999 cat >conftest.$ac_ext <<_ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h. */
31008 /* this check could be improved */
31009 #ifndef DB_VERSION_MAJOR
31010 # define DB_VERSION_MAJOR 1
31012 #ifndef DB_VERSION_MINOR
31013 # define DB_VERSION_MINOR 0
31016 /* require 4.2 or later, but exclude 4.3 */
31017 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31018 __db_version_compat
31022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31023 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31024 ol_cv_bdb_compat=yes
31026 ol_cv_bdb_compat=no
31031 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31032 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31035 if test $ol_cv_bdb_compat != yes ; then
31036 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31037 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31038 { (exit 1); exit 1; }; }
31041 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31047 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31048 BUILD_LIBS_DYNAMIC=shared
31050 cat >>confdefs.h <<\_ACEOF
31051 #define LDAP_LIBS_DYNAMIC 1
31056 BUILD_LIBS_DYNAMIC=static
31060 if test $ol_enable_wrappers != no ; then
31062 for ac_header in tcpd.h
31064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31066 echo "$as_me:$LINENO: checking for $ac_header" >&5
31067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31069 echo $ECHO_N "(cached) $ECHO_C" >&6
31071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31074 # Is the header compilable?
31075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31077 cat >conftest.$ac_ext <<_ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h. */
31083 $ac_includes_default
31084 #include <$ac_header>
31086 rm -f conftest.$ac_objext
31087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31088 (eval $ac_compile) 2>conftest.er1
31090 grep -v '^ *+' conftest.er1 >conftest.err
31092 cat conftest.err >&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } &&
31095 { ac_try='test -z "$ac_c_werror_flag"
31096 || test ! -s conftest.err'
31097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31098 (eval $ac_try) 2>&5
31100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101 (exit $ac_status); }; } &&
31102 { ac_try='test -s conftest.$ac_objext'
31103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31104 (eval $ac_try) 2>&5
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); }; }; then
31108 ac_header_compiler=yes
31110 echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.$ac_ext >&5
31113 ac_header_compiler=no
31115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31117 echo "${ECHO_T}$ac_header_compiler" >&6
31119 # Is the header present?
31120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31122 cat >conftest.$ac_ext <<_ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h. */
31128 #include <$ac_header>
31130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31133 grep -v '^ *+' conftest.er1 >conftest.err
31135 cat conftest.err >&5
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); } >/dev/null; then
31138 if test -s conftest.err; then
31139 ac_cpp_err=$ac_c_preproc_warn_flag
31140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31147 if test -z "$ac_cpp_err"; then
31148 ac_header_preproc=yes
31150 echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31153 ac_header_preproc=no
31155 rm -f conftest.err conftest.$ac_ext
31156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31157 echo "${ECHO_T}$ac_header_preproc" >&6
31159 # So? What about this header?
31160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31166 ac_header_preproc=yes
31169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31183 ## --------------------------------------------- ##
31184 ## Report this to <http://www.openldap.org/its/> ##
31185 ## --------------------------------------------- ##
31188 sed "s/^/$as_me: WARNING: /" >&2
31191 echo "$as_me:$LINENO: checking for $ac_header" >&5
31192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31194 echo $ECHO_N "(cached) $ECHO_C" >&6
31196 eval "$as_ac_Header=\$ac_header_preproc"
31198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31203 cat >>confdefs.h <<_ACEOF
31204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31207 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31208 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31210 LIBS="$LIBS -lwrap"
31211 cat >conftest.$ac_ext <<_ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h. */
31219 int allow_severity = 0;
31220 int deny_severity = 0;
31222 struct request_info *req;
31234 rm -f conftest.$ac_objext conftest$ac_exeext
31235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31236 (eval $ac_link) 2>conftest.er1
31238 grep -v '^ *+' conftest.er1 >conftest.err
31240 cat conftest.err >&5
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); } &&
31243 { ac_try='test -z "$ac_c_werror_flag"
31244 || test ! -s conftest.err'
31245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246 (eval $ac_try) 2>&5
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; } &&
31250 { ac_try='test -s conftest$ac_exeext'
31251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31252 (eval $ac_try) 2>&5
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); }; }; then
31256 echo "$as_me:$LINENO: result: -lwrap" >&5
31257 echo "${ECHO_T}-lwrap" >&6
31261 echo "$as_me: failed program was:" >&5
31262 sed 's/^/| /' conftest.$ac_ext >&5
31266 cat >conftest.$ac_ext <<_ACEOF
31269 cat confdefs.h >>conftest.$ac_ext
31270 cat >>conftest.$ac_ext <<_ACEOF
31271 /* end confdefs.h. */
31274 int allow_severity = 0;
31275 int deny_severity = 0;
31277 struct request_info *req;
31289 rm -f conftest.$ac_objext conftest$ac_exeext
31290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31291 (eval $ac_link) 2>conftest.er1
31293 grep -v '^ *+' conftest.er1 >conftest.err
31295 cat conftest.err >&5
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } &&
31298 { ac_try='test -z "$ac_c_werror_flag"
31299 || test ! -s conftest.err'
31300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301 (eval $ac_try) 2>&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); }; } &&
31305 { ac_try='test -s conftest$ac_exeext'
31306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31307 (eval $ac_try) 2>&5
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); }; }; then
31311 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31312 echo "${ECHO_T}-lwrap -lnsl" >&6
31314 LIBS="$save_LIBS -lnsl"
31316 echo "$as_me: failed program was:" >&5
31317 sed 's/^/| /' conftest.$ac_ext >&5
31320 echo "$as_me:$LINENO: result: no" >&5
31321 echo "${ECHO_T}no" >&6
31325 rm -f conftest.err conftest.$ac_objext \
31326 conftest$ac_exeext conftest.$ac_ext
31328 rm -f conftest.err conftest.$ac_objext \
31329 conftest$ac_exeext conftest.$ac_ext
31337 if test $have_wrappers = yes ; then
31339 cat >>confdefs.h <<\_ACEOF
31340 #define HAVE_TCPD 1
31344 elif test $ol_enable_wrappers = yes ; then
31345 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31346 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31347 { (exit 1); exit 1; }; }
31349 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31350 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31355 if test $ol_enable_syslog != no ; then
31356 echo "$as_me:$LINENO: checking for openlog" >&5
31357 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31358 if test "${ac_cv_func_openlog+set}" = set; then
31359 echo $ECHO_N "(cached) $ECHO_C" >&6
31361 cat >conftest.$ac_ext <<_ACEOF
31364 cat confdefs.h >>conftest.$ac_ext
31365 cat >>conftest.$ac_ext <<_ACEOF
31366 /* end confdefs.h. */
31367 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31369 #define openlog innocuous_openlog
31371 /* System header to define __stub macros and hopefully few prototypes,
31372 which can conflict with char openlog (); below.
31373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31374 <limits.h> exists even on freestanding compilers. */
31377 # include <limits.h>
31379 # include <assert.h>
31384 /* Override any gcc2 internal prototype to avoid an error. */
31389 /* We use char because int might match the return type of a gcc2
31390 builtin and then its argument prototype would still apply. */
31392 /* The GNU C library defines this for functions which it implements
31393 to always fail with ENOSYS. Some functions are actually named
31394 something starting with __ and the normal name is an alias. */
31395 #if defined (__stub_openlog) || defined (__stub___openlog)
31398 char (*f) () = openlog;
31407 return f != openlog;
31412 rm -f conftest.$ac_objext conftest$ac_exeext
31413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31414 (eval $ac_link) 2>conftest.er1
31416 grep -v '^ *+' conftest.er1 >conftest.err
31418 cat conftest.err >&5
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); } &&
31421 { ac_try='test -z "$ac_c_werror_flag"
31422 || test ! -s conftest.err'
31423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31424 (eval $ac_try) 2>&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); }; } &&
31428 { ac_try='test -s conftest$ac_exeext'
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; }; then
31434 ac_cv_func_openlog=yes
31436 echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.$ac_ext >&5
31439 ac_cv_func_openlog=no
31441 rm -f conftest.err conftest.$ac_objext \
31442 conftest$ac_exeext conftest.$ac_ext
31444 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31445 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31447 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31448 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31449 echo "$as_me: error: could not find syslog" >&2;}
31450 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31452 ol_enable_syslog=$ac_cv_func_openlog
31456 if test $ol_enable_sql != no ; then
31459 for ac_header in sql.h sqlext.h
31461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31463 echo "$as_me:$LINENO: checking for $ac_header" >&5
31464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31466 echo $ECHO_N "(cached) $ECHO_C" >&6
31468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31471 # Is the header compilable?
31472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31474 cat >conftest.$ac_ext <<_ACEOF
31477 cat confdefs.h >>conftest.$ac_ext
31478 cat >>conftest.$ac_ext <<_ACEOF
31479 /* end confdefs.h. */
31480 $ac_includes_default
31481 #include <$ac_header>
31483 rm -f conftest.$ac_objext
31484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31485 (eval $ac_compile) 2>conftest.er1
31487 grep -v '^ *+' conftest.er1 >conftest.err
31489 cat conftest.err >&5
31490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); } &&
31492 { ac_try='test -z "$ac_c_werror_flag"
31493 || test ! -s conftest.err'
31494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31495 (eval $ac_try) 2>&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); }; } &&
31499 { ac_try='test -s conftest.$ac_objext'
31500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31501 (eval $ac_try) 2>&5
31503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504 (exit $ac_status); }; }; then
31505 ac_header_compiler=yes
31507 echo "$as_me: failed program was:" >&5
31508 sed 's/^/| /' conftest.$ac_ext >&5
31510 ac_header_compiler=no
31512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31514 echo "${ECHO_T}$ac_header_compiler" >&6
31516 # Is the header present?
31517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31519 cat >conftest.$ac_ext <<_ACEOF
31522 cat confdefs.h >>conftest.$ac_ext
31523 cat >>conftest.$ac_ext <<_ACEOF
31524 /* end confdefs.h. */
31525 #include <$ac_header>
31527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31530 grep -v '^ *+' conftest.er1 >conftest.err
31532 cat conftest.err >&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); } >/dev/null; then
31535 if test -s conftest.err; then
31536 ac_cpp_err=$ac_c_preproc_warn_flag
31537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31544 if test -z "$ac_cpp_err"; then
31545 ac_header_preproc=yes
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_header_preproc=no
31552 rm -f conftest.err conftest.$ac_ext
31553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31554 echo "${ECHO_T}$ac_header_preproc" >&6
31556 # So? What about this header?
31557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31563 ac_header_preproc=yes
31566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31580 ## --------------------------------------------- ##
31581 ## Report this to <http://www.openldap.org/its/> ##
31582 ## --------------------------------------------- ##
31585 sed "s/^/$as_me: WARNING: /" >&2
31588 echo "$as_me:$LINENO: checking for $ac_header" >&5
31589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31591 echo $ECHO_N "(cached) $ECHO_C" >&6
31593 eval "$as_ac_Header=\$ac_header_preproc"
31595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31600 cat >>confdefs.h <<_ACEOF
31601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31606 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31607 echo "$as_me: error: could not locate SQL headers" >&2;}
31608 { (exit 1); exit 1; }; }
31616 LIBS="$LTHREAD_LIBS"
31618 if test $ol_with_odbc = auto ; then
31619 ol_with_odbc="iodbc unixodbc"
31622 for odbc in $ol_with_odbc ; do
31623 if test $ol_link_sql = no ; then
31626 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31627 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31628 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31631 ac_check_lib_save_LIBS=$LIBS
31632 LIBS="-liodbc $LIBS"
31633 cat >conftest.$ac_ext <<_ACEOF
31636 cat confdefs.h >>conftest.$ac_ext
31637 cat >>conftest.$ac_ext <<_ACEOF
31638 /* end confdefs.h. */
31640 /* Override any gcc2 internal prototype to avoid an error. */
31644 /* We use char because int might match the return type of a gcc2
31645 builtin and then its argument prototype would still apply. */
31646 char SQLDriverConnect ();
31650 SQLDriverConnect ();
31655 rm -f conftest.$ac_objext conftest$ac_exeext
31656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31657 (eval $ac_link) 2>conftest.er1
31659 grep -v '^ *+' conftest.er1 >conftest.err
31661 cat conftest.err >&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); } &&
31664 { ac_try='test -z "$ac_c_werror_flag"
31665 || test ! -s conftest.err'
31666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31667 (eval $ac_try) 2>&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; } &&
31671 { ac_try='test -s conftest$ac_exeext'
31672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31673 (eval $ac_try) 2>&5
31675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676 (exit $ac_status); }; }; then
31677 ac_cv_lib_iodbc_SQLDriverConnect=yes
31679 echo "$as_me: failed program was:" >&5
31680 sed 's/^/| /' conftest.$ac_ext >&5
31682 ac_cv_lib_iodbc_SQLDriverConnect=no
31684 rm -f conftest.err conftest.$ac_objext \
31685 conftest$ac_exeext conftest.$ac_ext
31686 LIBS=$ac_check_lib_save_LIBS
31688 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31689 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31690 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31696 if test $have_iodbc = yes ; then
31697 ol_link_sql="-liodbc"
31702 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31703 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31704 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31705 echo $ECHO_N "(cached) $ECHO_C" >&6
31707 ac_check_lib_save_LIBS=$LIBS
31708 LIBS="-lodbc $LIBS"
31709 cat >conftest.$ac_ext <<_ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h. */
31716 /* Override any gcc2 internal prototype to avoid an error. */
31720 /* We use char because int might match the return type of a gcc2
31721 builtin and then its argument prototype would still apply. */
31722 char SQLDriverConnect ();
31726 SQLDriverConnect ();
31731 rm -f conftest.$ac_objext conftest$ac_exeext
31732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31733 (eval $ac_link) 2>conftest.er1
31735 grep -v '^ *+' conftest.er1 >conftest.err
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } &&
31740 { ac_try='test -z "$ac_c_werror_flag"
31741 || test ! -s conftest.err'
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; } &&
31747 { ac_try='test -s conftest$ac_exeext'
31748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31749 (eval $ac_try) 2>&5
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); }; }; then
31753 ac_cv_lib_odbc_SQLDriverConnect=yes
31755 echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31758 ac_cv_lib_odbc_SQLDriverConnect=no
31760 rm -f conftest.err conftest.$ac_objext \
31761 conftest$ac_exeext conftest.$ac_ext
31762 LIBS=$ac_check_lib_save_LIBS
31764 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
31765 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
31766 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
31772 if test $have_odbc = yes ; then
31773 ol_link_sql="-lodbc"
31778 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
31779 echo "$as_me: error: unknown ODBC library" >&2;}
31780 { (exit 1); exit 1; }; }
31788 if test $ol_link_sql != no ; then
31789 SLAPD_SQL_LIBS="$ol_link_sql"
31791 elif test $ol_enable_sql != auto ; then
31792 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
31793 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
31794 { (exit 1); exit 1; }; }
31800 for ac_header in unicode/utypes.h
31802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31804 echo "$as_me:$LINENO: checking for $ac_header" >&5
31805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31807 echo $ECHO_N "(cached) $ECHO_C" >&6
31809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31812 # Is the header compilable?
31813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31815 cat >conftest.$ac_ext <<_ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h. */
31821 $ac_includes_default
31822 #include <$ac_header>
31824 rm -f conftest.$ac_objext
31825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31826 (eval $ac_compile) 2>conftest.er1
31828 grep -v '^ *+' conftest.er1 >conftest.err
31830 cat conftest.err >&5
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } &&
31833 { ac_try='test -z "$ac_c_werror_flag"
31834 || test ! -s conftest.err'
31835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836 (eval $ac_try) 2>&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; } &&
31840 { ac_try='test -s conftest.$ac_objext'
31841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842 (eval $ac_try) 2>&5
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); }; }; then
31846 ac_header_compiler=yes
31848 echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31851 ac_header_compiler=no
31853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31855 echo "${ECHO_T}$ac_header_compiler" >&6
31857 # Is the header present?
31858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31860 cat >conftest.$ac_ext <<_ACEOF
31863 cat confdefs.h >>conftest.$ac_ext
31864 cat >>conftest.$ac_ext <<_ACEOF
31865 /* end confdefs.h. */
31866 #include <$ac_header>
31868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31871 grep -v '^ *+' conftest.er1 >conftest.err
31873 cat conftest.err >&5
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); } >/dev/null; then
31876 if test -s conftest.err; then
31877 ac_cpp_err=$ac_c_preproc_warn_flag
31878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31885 if test -z "$ac_cpp_err"; then
31886 ac_header_preproc=yes
31888 echo "$as_me: failed program was:" >&5
31889 sed 's/^/| /' conftest.$ac_ext >&5
31891 ac_header_preproc=no
31893 rm -f conftest.err conftest.$ac_ext
31894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31895 echo "${ECHO_T}$ac_header_preproc" >&6
31897 # So? What about this header?
31898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31904 ac_header_preproc=yes
31907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31921 ## --------------------------------------------- ##
31922 ## Report this to <http://www.openldap.org/its/> ##
31923 ## --------------------------------------------- ##
31926 sed "s/^/$as_me: WARNING: /" >&2
31929 echo "$as_me:$LINENO: checking for $ac_header" >&5
31930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31934 eval "$as_ac_Header=\$ac_header_preproc"
31936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31941 cat >>confdefs.h <<_ACEOF
31942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31949 if test $ac_cv_header_unicode_utypes_h = yes ; then
31950 OL_ICULIBS="-licuuc -licudata"
31952 echo "$as_me:$LINENO: checking for ICU libraries" >&5
31953 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
31954 if test "${ol_cv_lib_icu+set}" = set; then
31955 echo $ECHO_N "(cached) $ECHO_C" >&6
31959 LIBS="$OL_ICULIBS $LIBS"
31960 cat >conftest.$ac_ext <<_ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h. */
31967 #include <unicode/utypes.h>
31973 (void) u_errorName(0);
31979 rm -f conftest.$ac_objext conftest$ac_exeext
31980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31981 (eval $ac_link) 2>conftest.er1
31983 grep -v '^ *+' conftest.er1 >conftest.err
31985 cat conftest.err >&5
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); } &&
31988 { ac_try='test -z "$ac_c_werror_flag"
31989 || test ! -s conftest.err'
31990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991 (eval $ac_try) 2>&5
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); }; } &&
31995 { ac_try='test -s conftest$ac_exeext'
31996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997 (eval $ac_try) 2>&5
31999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000 (exit $ac_status); }; }; then
32003 echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32008 rm -f conftest.err conftest.$ac_objext \
32009 conftest$ac_exeext conftest.$ac_ext
32013 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32014 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32016 if test $ol_cv_lib_icu != no ; then
32017 ol_icu="$OL_ICULIBS"
32019 cat >>confdefs.h <<\_ACEOF
32026 if test "$ol_icu" = no ; then
32027 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32028 echo "$as_me: WARNING: ICU not available" >&2;}
32035 if test $ol_with_cyrus_sasl != no ; then
32038 for ac_header in sasl/sasl.h sasl.h
32040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32042 echo "$as_me:$LINENO: checking for $ac_header" >&5
32043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32045 echo $ECHO_N "(cached) $ECHO_C" >&6
32047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32050 # Is the header compilable?
32051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32053 cat >conftest.$ac_ext <<_ACEOF
32056 cat confdefs.h >>conftest.$ac_ext
32057 cat >>conftest.$ac_ext <<_ACEOF
32058 /* end confdefs.h. */
32059 $ac_includes_default
32060 #include <$ac_header>
32062 rm -f conftest.$ac_objext
32063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32064 (eval $ac_compile) 2>conftest.er1
32066 grep -v '^ *+' conftest.er1 >conftest.err
32068 cat conftest.err >&5
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); } &&
32071 { ac_try='test -z "$ac_c_werror_flag"
32072 || test ! -s conftest.err'
32073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32074 (eval $ac_try) 2>&5
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); }; } &&
32078 { ac_try='test -s conftest.$ac_objext'
32079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080 (eval $ac_try) 2>&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); }; }; then
32084 ac_header_compiler=yes
32086 echo "$as_me: failed program was:" >&5
32087 sed 's/^/| /' conftest.$ac_ext >&5
32089 ac_header_compiler=no
32091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32093 echo "${ECHO_T}$ac_header_compiler" >&6
32095 # Is the header present?
32096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32098 cat >conftest.$ac_ext <<_ACEOF
32101 cat confdefs.h >>conftest.$ac_ext
32102 cat >>conftest.$ac_ext <<_ACEOF
32103 /* end confdefs.h. */
32104 #include <$ac_header>
32106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32109 grep -v '^ *+' conftest.er1 >conftest.err
32111 cat conftest.err >&5
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); } >/dev/null; then
32114 if test -s conftest.err; then
32115 ac_cpp_err=$ac_c_preproc_warn_flag
32116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32123 if test -z "$ac_cpp_err"; then
32124 ac_header_preproc=yes
32126 echo "$as_me: failed program was:" >&5
32127 sed 's/^/| /' conftest.$ac_ext >&5
32129 ac_header_preproc=no
32131 rm -f conftest.err conftest.$ac_ext
32132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32133 echo "${ECHO_T}$ac_header_preproc" >&6
32135 # So? What about this header?
32136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32142 ac_header_preproc=yes
32145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32159 ## --------------------------------------------- ##
32160 ## Report this to <http://www.openldap.org/its/> ##
32161 ## --------------------------------------------- ##
32164 sed "s/^/$as_me: WARNING: /" >&2
32167 echo "$as_me:$LINENO: checking for $ac_header" >&5
32168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32170 echo $ECHO_N "(cached) $ECHO_C" >&6
32172 eval "$as_ac_Header=\$ac_header_preproc"
32174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32179 cat >>confdefs.h <<_ACEOF
32180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32188 if test $ac_cv_header_sasl_sasl_h = yes ||
32189 test $ac_cv_header_sasl_h = yes; then
32190 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32191 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32192 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32195 ac_check_lib_save_LIBS=$LIBS
32196 LIBS="-lsasl2 $LIBS"
32197 cat >conftest.$ac_ext <<_ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h. */
32204 /* Override any gcc2 internal prototype to avoid an error. */
32208 /* We use char because int might match the return type of a gcc2
32209 builtin and then its argument prototype would still apply. */
32210 char sasl_client_init ();
32214 sasl_client_init ();
32219 rm -f conftest.$ac_objext conftest$ac_exeext
32220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32221 (eval $ac_link) 2>conftest.er1
32223 grep -v '^ *+' conftest.er1 >conftest.err
32225 cat conftest.err >&5
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); } &&
32228 { ac_try='test -z "$ac_c_werror_flag"
32229 || test ! -s conftest.err'
32230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231 (eval $ac_try) 2>&5
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; } &&
32235 { ac_try='test -s conftest$ac_exeext'
32236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237 (eval $ac_try) 2>&5
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; }; then
32241 ac_cv_lib_sasl2_sasl_client_init=yes
32243 echo "$as_me: failed program was:" >&5
32244 sed 's/^/| /' conftest.$ac_ext >&5
32246 ac_cv_lib_sasl2_sasl_client_init=no
32248 rm -f conftest.err conftest.$ac_objext \
32249 conftest$ac_exeext conftest.$ac_ext
32250 LIBS=$ac_check_lib_save_LIBS
32252 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32253 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32254 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32255 ol_link_sasl="-lsasl2"
32257 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32258 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32259 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32260 echo $ECHO_N "(cached) $ECHO_C" >&6
32262 ac_check_lib_save_LIBS=$LIBS
32263 LIBS="-lsasl $LIBS"
32264 cat >conftest.$ac_ext <<_ACEOF
32267 cat confdefs.h >>conftest.$ac_ext
32268 cat >>conftest.$ac_ext <<_ACEOF
32269 /* end confdefs.h. */
32271 /* Override any gcc2 internal prototype to avoid an error. */
32275 /* We use char because int might match the return type of a gcc2
32276 builtin and then its argument prototype would still apply. */
32277 char sasl_client_init ();
32281 sasl_client_init ();
32286 rm -f conftest.$ac_objext conftest$ac_exeext
32287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32288 (eval $ac_link) 2>conftest.er1
32290 grep -v '^ *+' conftest.er1 >conftest.err
32292 cat conftest.err >&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); } &&
32295 { ac_try='test -z "$ac_c_werror_flag"
32296 || test ! -s conftest.err'
32297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32298 (eval $ac_try) 2>&5
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; } &&
32302 { ac_try='test -s conftest$ac_exeext'
32303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32304 (eval $ac_try) 2>&5
32306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32307 (exit $ac_status); }; }; then
32308 ac_cv_lib_sasl_sasl_client_init=yes
32310 echo "$as_me: failed program was:" >&5
32311 sed 's/^/| /' conftest.$ac_ext >&5
32313 ac_cv_lib_sasl_sasl_client_init=no
32315 rm -f conftest.err conftest.$ac_objext \
32316 conftest$ac_exeext conftest.$ac_ext
32317 LIBS=$ac_check_lib_save_LIBS
32319 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32320 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32321 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32322 ol_link_sasl="-lsasl"
32329 if test $ol_link_sasl = no ; then
32330 if test $ol_with_cyrus_sasl != auto ; then
32331 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32332 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32333 { (exit 1); exit 1; }; }
32335 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32336 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32337 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32338 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32339 if test $ol_link_tls = no ; then
32340 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32341 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32345 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32346 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32347 if test "${ol_cv_sasl_compat+set}" = set; then
32348 echo $ECHO_N "(cached) $ECHO_C" >&6
32351 cat >conftest.$ac_ext <<_ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h. */
32358 #ifdef HAVE_SASL_SASL_H
32359 #include <sasl/sasl.h>
32364 /* Require 2.1.15+ */
32365 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32366 char *__sasl_compat = "2.2+ or better okay (we guess)";
32367 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32368 && SASL_VERSION_STEP >=15
32369 char *__sasl_compat = "2.1.15+ or better okay";
32373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32374 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32375 ol_cv_sasl_compat=yes
32377 ol_cv_sasl_compat=no
32382 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32383 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32385 if test $ol_cv_sasl_compat = no ; then
32387 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32388 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32389 { (exit 1); exit 1; }; }
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_CYRUS_SASL 1
32397 SASL_LIBS="$ol_link_sasl"
32398 if test $ol_enable_spasswd != no ; then
32399 ol_link_spasswd=yes
32402 ac_save_LIBS="$LIBS"
32403 LIBS="$LIBS $ol_link_sasl"
32404 echo "$as_me:$LINENO: checking for sasl_version" >&5
32405 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32406 if test "${ac_cv_func_sasl_version+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32409 cat >conftest.$ac_ext <<_ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h. */
32415 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32417 #define sasl_version innocuous_sasl_version
32419 /* System header to define __stub macros and hopefully few prototypes,
32420 which can conflict with char sasl_version (); below.
32421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32422 <limits.h> exists even on freestanding compilers. */
32425 # include <limits.h>
32427 # include <assert.h>
32430 #undef sasl_version
32432 /* Override any gcc2 internal prototype to avoid an error. */
32437 /* We use char because int might match the return type of a gcc2
32438 builtin and then its argument prototype would still apply. */
32439 char sasl_version ();
32440 /* The GNU C library defines this for functions which it implements
32441 to always fail with ENOSYS. Some functions are actually named
32442 something starting with __ and the normal name is an alias. */
32443 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32446 char (*f) () = sasl_version;
32455 return f != sasl_version;
32460 rm -f conftest.$ac_objext conftest$ac_exeext
32461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32462 (eval $ac_link) 2>conftest.er1
32464 grep -v '^ *+' conftest.er1 >conftest.err
32466 cat conftest.err >&5
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); } &&
32469 { ac_try='test -z "$ac_c_werror_flag"
32470 || test ! -s conftest.err'
32471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472 (eval $ac_try) 2>&5
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; } &&
32476 { ac_try='test -s conftest$ac_exeext'
32477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478 (eval $ac_try) 2>&5
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); }; }; then
32482 ac_cv_func_sasl_version=yes
32484 echo "$as_me: failed program was:" >&5
32485 sed 's/^/| /' conftest.$ac_ext >&5
32487 ac_cv_func_sasl_version=no
32489 rm -f conftest.err conftest.$ac_objext \
32490 conftest$ac_exeext conftest.$ac_ext
32492 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32493 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32494 if test $ac_cv_func_sasl_version = yes; then
32496 cat >>confdefs.h <<\_ACEOF
32497 #define HAVE_SASL_VERSION 1
32502 LIBS="$ac_save_LIBS"
32508 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32509 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32510 if test $ol_link_tls = no ; then
32511 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32512 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32516 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32518 if test -r /dev/urandom ; then
32519 dev="/dev/urandom";
32520 elif test -r /idev/urandom ; then
32521 dev="/idev/urandom";
32522 elif test -r /dev/srandom ; then
32523 dev="/dev/srandom";
32524 elif test -r /dev/random ; then
32526 elif test -r /idev/random ; then
32527 dev="/idev/random";
32530 if test $dev != no ; then
32532 cat >>confdefs.h <<_ACEOF
32533 #define URANDOM_DEVICE "$dev"
32540 if test $ol_with_fetch != no ; then
32542 LIBS="-lfetch -lcom_err $LIBS"
32543 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32544 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32545 if test "${ol_cv_lib_fetch+set}" = set; then
32546 echo $ECHO_N "(cached) $ECHO_C" >&6
32549 cat >conftest.$ac_ext <<_ACEOF
32552 cat confdefs.h >>conftest.$ac_ext
32553 cat >>conftest.$ac_ext <<_ACEOF
32554 /* end confdefs.h. */
32556 #include <sys/param.h>
32562 struct url *u = fetchParseURL("file:///");
32567 rm -f conftest.$ac_objext conftest$ac_exeext
32568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32569 (eval $ac_link) 2>conftest.er1
32571 grep -v '^ *+' conftest.er1 >conftest.err
32573 cat conftest.err >&5
32574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575 (exit $ac_status); } &&
32576 { ac_try='test -z "$ac_c_werror_flag"
32577 || test ! -s conftest.err'
32578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32579 (eval $ac_try) 2>&5
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); }; } &&
32583 { ac_try='test -s conftest$ac_exeext'
32584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585 (eval $ac_try) 2>&5
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; }; then
32589 ol_cv_lib_fetch=yes
32591 echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32596 rm -f conftest.err conftest.$ac_objext \
32597 conftest$ac_exeext conftest.$ac_ext
32599 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32600 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32602 if test $ol_cv_lib_fetch != no ; then
32603 ol_link_fetch="-lfetch -lcom_err"
32605 cat >>confdefs.h <<\_ACEOF
32606 #define HAVE_FETCH 1
32612 if test $ol_cv_lib_fetch != no ; then
32613 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32614 ol_link_fetch=freebsd
32616 elif test $ol_with_fetch != auto ; then
32617 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32618 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32619 { (exit 1); exit 1; }; }
32623 if test $ol_enable_crypt != no ; then
32625 LIBS="$TLS_LIBS $LIBS"
32627 echo "$as_me:$LINENO: checking for crypt" >&5
32628 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32629 if test "${ac_cv_func_crypt+set}" = set; then
32630 echo $ECHO_N "(cached) $ECHO_C" >&6
32632 cat >conftest.$ac_ext <<_ACEOF
32635 cat confdefs.h >>conftest.$ac_ext
32636 cat >>conftest.$ac_ext <<_ACEOF
32637 /* end confdefs.h. */
32638 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32640 #define crypt innocuous_crypt
32642 /* System header to define __stub macros and hopefully few prototypes,
32643 which can conflict with char crypt (); below.
32644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32645 <limits.h> exists even on freestanding compilers. */
32648 # include <limits.h>
32650 # include <assert.h>
32655 /* Override any gcc2 internal prototype to avoid an error. */
32660 /* We use char because int might match the return type of a gcc2
32661 builtin and then its argument prototype would still apply. */
32663 /* The GNU C library defines this for functions which it implements
32664 to always fail with ENOSYS. Some functions are actually named
32665 something starting with __ and the normal name is an alias. */
32666 #if defined (__stub_crypt) || defined (__stub___crypt)
32669 char (*f) () = crypt;
32683 rm -f conftest.$ac_objext conftest$ac_exeext
32684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32685 (eval $ac_link) 2>conftest.er1
32687 grep -v '^ *+' conftest.er1 >conftest.err
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_c_werror_flag"
32693 || test ! -s conftest.err'
32694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32695 (eval $ac_try) 2>&5
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); }; } &&
32699 { ac_try='test -s conftest$ac_exeext'
32700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32701 (eval $ac_try) 2>&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
32705 ac_cv_func_crypt=yes
32707 echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32710 ac_cv_func_crypt=no
32712 rm -f conftest.err conftest.$ac_objext \
32713 conftest$ac_exeext conftest.$ac_ext
32715 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32716 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32717 if test $ac_cv_func_crypt = yes; then
32722 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32723 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32724 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32727 ac_check_lib_save_LIBS=$LIBS
32728 LIBS="-lcrypt $LIBS"
32729 cat >conftest.$ac_ext <<_ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h. */
32736 /* Override any gcc2 internal prototype to avoid an error. */
32740 /* We use char because int might match the return type of a gcc2
32741 builtin and then its argument prototype would still apply. */
32751 rm -f conftest.$ac_objext conftest$ac_exeext
32752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32753 (eval $ac_link) 2>conftest.er1
32755 grep -v '^ *+' conftest.er1 >conftest.err
32757 cat conftest.err >&5
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); } &&
32760 { ac_try='test -z "$ac_c_werror_flag"
32761 || test ! -s conftest.err'
32762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32763 (eval $ac_try) 2>&5
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); }; } &&
32767 { ac_try='test -s conftest$ac_exeext'
32768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32769 (eval $ac_try) 2>&5
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); }; }; then
32773 ac_cv_lib_crypt_crypt=yes
32775 echo "$as_me: failed program was:" >&5
32776 sed 's/^/| /' conftest.$ac_ext >&5
32778 ac_cv_lib_crypt_crypt=no
32780 rm -f conftest.err conftest.$ac_objext \
32781 conftest$ac_exeext conftest.$ac_ext
32782 LIBS=$ac_check_lib_save_LIBS
32784 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
32785 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
32786 if test $ac_cv_lib_crypt_crypt = yes; then
32787 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
32798 if test $have_crypt = yes ; then
32800 cat >>confdefs.h <<\_ACEOF
32801 #define HAVE_CRYPT 1
32805 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
32806 echo "$as_me: WARNING: could not find crypt" >&2;}
32807 if test $ol_enable_crypt = yes ; then
32808 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
32809 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
32810 { (exit 1); exit 1; }; }
32813 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
32814 echo "$as_me: WARNING: disabling crypt support" >&2;}
32819 if test $ol_enable_proctitle != no ; then
32820 echo "$as_me:$LINENO: checking for setproctitle" >&5
32821 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
32822 if test "${ac_cv_func_setproctitle+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32825 cat >conftest.$ac_ext <<_ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h. */
32831 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
32832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32833 #define setproctitle innocuous_setproctitle
32835 /* System header to define __stub macros and hopefully few prototypes,
32836 which can conflict with char setproctitle (); below.
32837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32838 <limits.h> exists even on freestanding compilers. */
32841 # include <limits.h>
32843 # include <assert.h>
32846 #undef setproctitle
32848 /* Override any gcc2 internal prototype to avoid an error. */
32853 /* We use char because int might match the return type of a gcc2
32854 builtin and then its argument prototype would still apply. */
32855 char setproctitle ();
32856 /* The GNU C library defines this for functions which it implements
32857 to always fail with ENOSYS. Some functions are actually named
32858 something starting with __ and the normal name is an alias. */
32859 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
32862 char (*f) () = setproctitle;
32871 return f != setproctitle;
32876 rm -f conftest.$ac_objext conftest$ac_exeext
32877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32878 (eval $ac_link) 2>conftest.er1
32880 grep -v '^ *+' conftest.er1 >conftest.err
32882 cat conftest.err >&5
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } &&
32885 { ac_try='test -z "$ac_c_werror_flag"
32886 || test ! -s conftest.err'
32887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32888 (eval $ac_try) 2>&5
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); }; } &&
32892 { ac_try='test -s conftest$ac_exeext'
32893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32894 (eval $ac_try) 2>&5
32896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32897 (exit $ac_status); }; }; then
32898 ac_cv_func_setproctitle=yes
32900 echo "$as_me: failed program was:" >&5
32901 sed 's/^/| /' conftest.$ac_ext >&5
32903 ac_cv_func_setproctitle=no
32905 rm -f conftest.err conftest.$ac_objext \
32906 conftest$ac_exeext conftest.$ac_ext
32908 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
32909 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
32910 if test $ac_cv_func_setproctitle = yes; then
32911 have_setproctitle=yes
32914 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
32915 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
32916 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32919 ac_check_lib_save_LIBS=$LIBS
32920 LIBS="-lutil $LIBS"
32921 cat >conftest.$ac_ext <<_ACEOF
32924 cat confdefs.h >>conftest.$ac_ext
32925 cat >>conftest.$ac_ext <<_ACEOF
32926 /* end confdefs.h. */
32928 /* Override any gcc2 internal prototype to avoid an error. */
32932 /* We use char because int might match the return type of a gcc2
32933 builtin and then its argument prototype would still apply. */
32934 char setproctitle ();
32943 rm -f conftest.$ac_objext conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945 (eval $ac_link) 2>conftest.er1
32947 grep -v '^ *+' conftest.er1 >conftest.err
32949 cat conftest.err >&5
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); } &&
32952 { ac_try='test -z "$ac_c_werror_flag"
32953 || test ! -s conftest.err'
32954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32955 (eval $ac_try) 2>&5
32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); }; } &&
32959 { ac_try='test -s conftest$ac_exeext'
32960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32961 (eval $ac_try) 2>&5
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; }; then
32965 ac_cv_lib_util_setproctitle=yes
32967 echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32970 ac_cv_lib_util_setproctitle=no
32972 rm -f conftest.err conftest.$ac_objext \
32973 conftest$ac_exeext conftest.$ac_ext
32974 LIBS=$ac_check_lib_save_LIBS
32976 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
32977 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
32978 if test $ac_cv_lib_util_setproctitle = yes; then
32979 have_setproctitle=yes
32980 LUTIL_LIBS="$LUTIL_LIBS -lutil"
32982 have_setproctitle=no
32984 "setproctitle.$ac_objext" | \
32985 *" setproctitle.$ac_objext" | \
32986 "setproctitle.$ac_objext "* | \
32987 *" setproctitle.$ac_objext "* ) ;;
32988 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
32991 LIBSRCS="$LIBSRCS setproctitle.c"
32997 if test $have_setproctitle = yes ; then
32999 cat >>confdefs.h <<\_ACEOF
33000 #define HAVE_SETPROCTITLE 1
33006 if test $ol_enable_slp != no ; then
33008 for ac_header in slp.h
33010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33012 echo "$as_me:$LINENO: checking for $ac_header" >&5
33013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33015 echo $ECHO_N "(cached) $ECHO_C" >&6
33017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33020 # Is the header compilable?
33021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33023 cat >conftest.$ac_ext <<_ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h. */
33029 $ac_includes_default
33030 #include <$ac_header>
33032 rm -f conftest.$ac_objext
33033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33034 (eval $ac_compile) 2>conftest.er1
33036 grep -v '^ *+' conftest.er1 >conftest.err
33038 cat conftest.err >&5
33039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040 (exit $ac_status); } &&
33041 { ac_try='test -z "$ac_c_werror_flag"
33042 || test ! -s conftest.err'
33043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33044 (eval $ac_try) 2>&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047 (exit $ac_status); }; } &&
33048 { ac_try='test -s conftest.$ac_objext'
33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050 (eval $ac_try) 2>&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; }; then
33054 ac_header_compiler=yes
33056 echo "$as_me: failed program was:" >&5
33057 sed 's/^/| /' conftest.$ac_ext >&5
33059 ac_header_compiler=no
33061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33063 echo "${ECHO_T}$ac_header_compiler" >&6
33065 # Is the header present?
33066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33068 cat >conftest.$ac_ext <<_ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h. */
33074 #include <$ac_header>
33076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33079 grep -v '^ *+' conftest.er1 >conftest.err
33081 cat conftest.err >&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } >/dev/null; then
33084 if test -s conftest.err; then
33085 ac_cpp_err=$ac_c_preproc_warn_flag
33086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33093 if test -z "$ac_cpp_err"; then
33094 ac_header_preproc=yes
33096 echo "$as_me: failed program was:" >&5
33097 sed 's/^/| /' conftest.$ac_ext >&5
33099 ac_header_preproc=no
33101 rm -f conftest.err conftest.$ac_ext
33102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33103 echo "${ECHO_T}$ac_header_preproc" >&6
33105 # So? What about this header?
33106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33112 ac_header_preproc=yes
33115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33129 ## --------------------------------------------- ##
33130 ## Report this to <http://www.openldap.org/its/> ##
33131 ## --------------------------------------------- ##
33134 sed "s/^/$as_me: WARNING: /" >&2
33137 echo "$as_me:$LINENO: checking for $ac_header" >&5
33138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33140 echo $ECHO_N "(cached) $ECHO_C" >&6
33142 eval "$as_ac_Header=\$ac_header_preproc"
33144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33149 cat >>confdefs.h <<_ACEOF
33150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33158 if test $ac_cv_header_slp_h = yes ; then
33159 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33160 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33161 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33164 ac_check_lib_save_LIBS=$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. */
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_slp_SLPOpen=yes
33212 echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33215 ac_cv_lib_slp_SLPOpen=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_slp_SLPOpen" >&5
33222 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33223 if test $ac_cv_lib_slp_SLPOpen = yes; then
33229 if test $have_slp = yes ; then
33231 cat >>confdefs.h <<\_ACEOF
33235 SLAPD_SLP_LIBS=-lslp
33238 elif test $ol_enable_slp = yes ; then
33239 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33240 echo "$as_me: error: SLP not found" >&2;}
33241 { (exit 1); exit 1; }; }
33246 echo "$as_me:$LINENO: checking for mode_t" >&5
33247 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33248 if test "${ac_cv_type_mode_t+set}" = set; then
33249 echo $ECHO_N "(cached) $ECHO_C" >&6
33251 cat >conftest.$ac_ext <<_ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h. */
33257 $ac_includes_default
33263 if (sizeof (mode_t))
33269 rm -f conftest.$ac_objext
33270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33271 (eval $ac_compile) 2>conftest.er1
33273 grep -v '^ *+' conftest.er1 >conftest.err
33275 cat conftest.err >&5
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); } &&
33278 { ac_try='test -z "$ac_c_werror_flag"
33279 || test ! -s conftest.err'
33280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33281 (eval $ac_try) 2>&5
33283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284 (exit $ac_status); }; } &&
33285 { ac_try='test -s conftest.$ac_objext'
33286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33287 (eval $ac_try) 2>&5
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
33291 ac_cv_type_mode_t=yes
33293 echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33296 ac_cv_type_mode_t=no
33298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33300 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33301 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33302 if test $ac_cv_type_mode_t = yes; then
33306 cat >>confdefs.h <<_ACEOF
33312 echo "$as_me:$LINENO: checking for off_t" >&5
33313 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33314 if test "${ac_cv_type_off_t+set}" = set; then
33315 echo $ECHO_N "(cached) $ECHO_C" >&6
33317 cat >conftest.$ac_ext <<_ACEOF
33320 cat confdefs.h >>conftest.$ac_ext
33321 cat >>conftest.$ac_ext <<_ACEOF
33322 /* end confdefs.h. */
33323 $ac_includes_default
33329 if (sizeof (off_t))
33335 rm -f conftest.$ac_objext
33336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33337 (eval $ac_compile) 2>conftest.er1
33339 grep -v '^ *+' conftest.er1 >conftest.err
33341 cat conftest.err >&5
33342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343 (exit $ac_status); } &&
33344 { ac_try='test -z "$ac_c_werror_flag"
33345 || test ! -s conftest.err'
33346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347 (eval $ac_try) 2>&5
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); }; } &&
33351 { ac_try='test -s conftest.$ac_objext'
33352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33353 (eval $ac_try) 2>&5
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); }; }; then
33357 ac_cv_type_off_t=yes
33359 echo "$as_me: failed program was:" >&5
33360 sed 's/^/| /' conftest.$ac_ext >&5
33362 ac_cv_type_off_t=no
33364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33366 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33367 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33368 if test $ac_cv_type_off_t = yes; then
33372 cat >>confdefs.h <<_ACEOF
33378 echo "$as_me:$LINENO: checking for pid_t" >&5
33379 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33380 if test "${ac_cv_type_pid_t+set}" = set; then
33381 echo $ECHO_N "(cached) $ECHO_C" >&6
33383 cat >conftest.$ac_ext <<_ACEOF
33386 cat confdefs.h >>conftest.$ac_ext
33387 cat >>conftest.$ac_ext <<_ACEOF
33388 /* end confdefs.h. */
33389 $ac_includes_default
33395 if (sizeof (pid_t))
33401 rm -f conftest.$ac_objext
33402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33403 (eval $ac_compile) 2>conftest.er1
33405 grep -v '^ *+' conftest.er1 >conftest.err
33407 cat conftest.err >&5
33408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409 (exit $ac_status); } &&
33410 { ac_try='test -z "$ac_c_werror_flag"
33411 || test ! -s conftest.err'
33412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33413 (eval $ac_try) 2>&5
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); }; } &&
33417 { ac_try='test -s conftest.$ac_objext'
33418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33419 (eval $ac_try) 2>&5
33421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422 (exit $ac_status); }; }; then
33423 ac_cv_type_pid_t=yes
33425 echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.$ac_ext >&5
33428 ac_cv_type_pid_t=no
33430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33432 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33433 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33434 if test $ac_cv_type_pid_t = yes; then
33438 cat >>confdefs.h <<_ACEOF
33444 echo "$as_me:$LINENO: checking for ssize_t" >&5
33445 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33446 if test "${ac_cv_type_ssize_t+set}" = set; then
33447 echo $ECHO_N "(cached) $ECHO_C" >&6
33449 cat >conftest.$ac_ext <<_ACEOF
33452 cat confdefs.h >>conftest.$ac_ext
33453 cat >>conftest.$ac_ext <<_ACEOF
33454 /* end confdefs.h. */
33455 $ac_includes_default
33461 if (sizeof (ssize_t))
33467 rm -f conftest.$ac_objext
33468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33469 (eval $ac_compile) 2>conftest.er1
33471 grep -v '^ *+' conftest.er1 >conftest.err
33473 cat conftest.err >&5
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); } &&
33476 { ac_try='test -z "$ac_c_werror_flag"
33477 || test ! -s conftest.err'
33478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479 (eval $ac_try) 2>&5
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); }; } &&
33483 { ac_try='test -s conftest.$ac_objext'
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; }; then
33489 ac_cv_type_ssize_t=yes
33491 echo "$as_me: failed program was:" >&5
33492 sed 's/^/| /' conftest.$ac_ext >&5
33494 ac_cv_type_ssize_t=no
33496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33498 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33499 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33500 if test $ac_cv_type_ssize_t = yes; then
33504 cat >>confdefs.h <<_ACEOF
33505 #define ssize_t signed int
33510 echo "$as_me:$LINENO: checking for caddr_t" >&5
33511 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33512 if test "${ac_cv_type_caddr_t+set}" = set; then
33513 echo $ECHO_N "(cached) $ECHO_C" >&6
33515 cat >conftest.$ac_ext <<_ACEOF
33518 cat confdefs.h >>conftest.$ac_ext
33519 cat >>conftest.$ac_ext <<_ACEOF
33520 /* end confdefs.h. */
33521 $ac_includes_default
33527 if (sizeof (caddr_t))
33533 rm -f conftest.$ac_objext
33534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33535 (eval $ac_compile) 2>conftest.er1
33537 grep -v '^ *+' conftest.er1 >conftest.err
33539 cat conftest.err >&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
33542 { ac_try='test -z "$ac_c_werror_flag"
33543 || test ! -s conftest.err'
33544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545 (eval $ac_try) 2>&5
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; } &&
33549 { ac_try='test -s conftest.$ac_objext'
33550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33551 (eval $ac_try) 2>&5
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
33555 ac_cv_type_caddr_t=yes
33557 echo "$as_me: failed program was:" >&5
33558 sed 's/^/| /' conftest.$ac_ext >&5
33560 ac_cv_type_caddr_t=no
33562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33564 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33565 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33566 if test $ac_cv_type_caddr_t = yes; then
33570 cat >>confdefs.h <<_ACEOF
33571 #define caddr_t char *
33576 echo "$as_me:$LINENO: checking for size_t" >&5
33577 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33578 if test "${ac_cv_type_size_t+set}" = set; then
33579 echo $ECHO_N "(cached) $ECHO_C" >&6
33581 cat >conftest.$ac_ext <<_ACEOF
33584 cat confdefs.h >>conftest.$ac_ext
33585 cat >>conftest.$ac_ext <<_ACEOF
33586 /* end confdefs.h. */
33587 $ac_includes_default
33593 if (sizeof (size_t))
33599 rm -f conftest.$ac_objext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33601 (eval $ac_compile) 2>conftest.er1
33603 grep -v '^ *+' conftest.er1 >conftest.err
33605 cat conftest.err >&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
33608 { ac_try='test -z "$ac_c_werror_flag"
33609 || test ! -s conftest.err'
33610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611 (eval $ac_try) 2>&5
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); }; } &&
33615 { ac_try='test -s conftest.$ac_objext'
33616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617 (eval $ac_try) 2>&5
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; }; then
33621 ac_cv_type_size_t=yes
33623 echo "$as_me: failed program was:" >&5
33624 sed 's/^/| /' conftest.$ac_ext >&5
33626 ac_cv_type_size_t=no
33628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33630 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33631 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33632 if test $ac_cv_type_size_t = yes; then
33636 cat >>confdefs.h <<_ACEOF
33637 #define size_t unsigned
33643 echo "$as_me:$LINENO: checking for long long" >&5
33644 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33645 if test "${ac_cv_type_long_long+set}" = set; then
33646 echo $ECHO_N "(cached) $ECHO_C" >&6
33648 cat >conftest.$ac_ext <<_ACEOF
33651 cat confdefs.h >>conftest.$ac_ext
33652 cat >>conftest.$ac_ext <<_ACEOF
33653 /* end confdefs.h. */
33654 $ac_includes_default
33658 if ((long long *) 0)
33660 if (sizeof (long long))
33666 rm -f conftest.$ac_objext
33667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33668 (eval $ac_compile) 2>conftest.er1
33670 grep -v '^ *+' conftest.er1 >conftest.err
33672 cat conftest.err >&5
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); } &&
33675 { ac_try='test -z "$ac_c_werror_flag"
33676 || test ! -s conftest.err'
33677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33678 (eval $ac_try) 2>&5
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; } &&
33682 { ac_try='test -s conftest.$ac_objext'
33683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33684 (eval $ac_try) 2>&5
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); }; }; then
33688 ac_cv_type_long_long=yes
33690 echo "$as_me: failed program was:" >&5
33691 sed 's/^/| /' conftest.$ac_ext >&5
33693 ac_cv_type_long_long=no
33695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33697 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33698 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33699 if test $ac_cv_type_long_long = yes; then
33701 cat >>confdefs.h <<_ACEOF
33702 #define HAVE_LONG_LONG 1
33708 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33709 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33710 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33711 echo $ECHO_N "(cached) $ECHO_C" >&6
33713 cat >conftest.$ac_ext <<_ACEOF
33716 cat confdefs.h >>conftest.$ac_ext
33717 cat >>conftest.$ac_ext <<_ACEOF
33718 /* end confdefs.h. */
33719 $ac_includes_default
33723 if ((ptrdiff_t *) 0)
33725 if (sizeof (ptrdiff_t))
33731 rm -f conftest.$ac_objext
33732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33733 (eval $ac_compile) 2>conftest.er1
33735 grep -v '^ *+' conftest.er1 >conftest.err
33737 cat conftest.err >&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); } &&
33740 { ac_try='test -z "$ac_c_werror_flag"
33741 || test ! -s conftest.err'
33742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33743 (eval $ac_try) 2>&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); }; } &&
33747 { ac_try='test -s conftest.$ac_objext'
33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33749 (eval $ac_try) 2>&5
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); }; }; then
33753 ac_cv_type_ptrdiff_t=yes
33755 echo "$as_me: failed program was:" >&5
33756 sed 's/^/| /' conftest.$ac_ext >&5
33758 ac_cv_type_ptrdiff_t=no
33760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33762 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
33763 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
33764 if test $ac_cv_type_ptrdiff_t = yes; then
33766 cat >>confdefs.h <<_ACEOF
33767 #define HAVE_PTRDIFF_T 1
33774 echo "$as_me:$LINENO: checking for socklen_t" >&5
33775 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
33776 if test "${ac_cv_type_socklen_t+set}" = set; then
33777 echo $ECHO_N "(cached) $ECHO_C" >&6
33779 cat >conftest.$ac_ext <<_ACEOF
33782 cat confdefs.h >>conftest.$ac_ext
33783 cat >>conftest.$ac_ext <<_ACEOF
33784 /* end confdefs.h. */
33785 $ac_includes_default
33786 #ifdef HAVE_SYS_SOCKET_H
33787 #include <sys/socket.h>
33794 if ((socklen_t *) 0)
33796 if (sizeof (socklen_t))
33802 rm -f conftest.$ac_objext
33803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33804 (eval $ac_compile) 2>conftest.er1
33806 grep -v '^ *+' conftest.er1 >conftest.err
33808 cat conftest.err >&5
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } &&
33811 { ac_try='test -z "$ac_c_werror_flag"
33812 || test ! -s conftest.err'
33813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814 (eval $ac_try) 2>&5
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; } &&
33818 { ac_try='test -s conftest.$ac_objext'
33819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820 (eval $ac_try) 2>&5
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); }; }; then
33824 ac_cv_type_socklen_t=yes
33826 echo "$as_me: failed program was:" >&5
33827 sed 's/^/| /' conftest.$ac_ext >&5
33829 ac_cv_type_socklen_t=no
33831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33833 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
33834 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
33835 if test $ac_cv_type_socklen_t = yes; then
33839 cat >>confdefs.h <<_ACEOF
33840 #define socklen_t int
33846 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33847 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
33848 if test "${ac_cv_type_signal+set}" = set; then
33849 echo $ECHO_N "(cached) $ECHO_C" >&6
33851 cat >conftest.$ac_ext <<_ACEOF
33854 cat confdefs.h >>conftest.$ac_ext
33855 cat >>conftest.$ac_ext <<_ACEOF
33856 /* end confdefs.h. */
33857 #include <sys/types.h>
33858 #include <signal.h>
33863 extern "C" void (*signal (int, void (*)(int)))(int);
33865 void (*signal ()) ();
33876 rm -f conftest.$ac_objext
33877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33878 (eval $ac_compile) 2>conftest.er1
33880 grep -v '^ *+' conftest.er1 >conftest.err
33882 cat conftest.err >&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); } &&
33885 { ac_try='test -z "$ac_c_werror_flag"
33886 || test ! -s conftest.err'
33887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888 (eval $ac_try) 2>&5
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); }; } &&
33892 { ac_try='test -s conftest.$ac_objext'
33893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33894 (eval $ac_try) 2>&5
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); }; }; then
33898 ac_cv_type_signal=void
33900 echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33903 ac_cv_type_signal=int
33905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33907 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33908 echo "${ECHO_T}$ac_cv_type_signal" >&6
33910 cat >>confdefs.h <<_ACEOF
33911 #define RETSIGTYPE $ac_cv_type_signal
33916 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
33917 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
33918 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
33919 echo $ECHO_N "(cached) $ECHO_C" >&6
33921 cat >conftest.$ac_ext <<_ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h. */
33927 $ac_includes_default
33928 #include <signal.h>
33934 if ((sig_atomic_t *) 0)
33936 if (sizeof (sig_atomic_t))
33942 rm -f conftest.$ac_objext
33943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33944 (eval $ac_compile) 2>conftest.er1
33946 grep -v '^ *+' conftest.er1 >conftest.err
33948 cat conftest.err >&5
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); } &&
33951 { ac_try='test -z "$ac_c_werror_flag"
33952 || test ! -s conftest.err'
33953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954 (eval $ac_try) 2>&5
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; } &&
33958 { ac_try='test -s conftest.$ac_objext'
33959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33960 (eval $ac_try) 2>&5
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); }; }; then
33964 ac_cv_type_sig_atomic_t=yes
33966 echo "$as_me: failed program was:" >&5
33967 sed 's/^/| /' conftest.$ac_ext >&5
33969 ac_cv_type_sig_atomic_t=no
33971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33973 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
33974 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
33975 if test $ac_cv_type_sig_atomic_t = yes; then
33979 cat >>confdefs.h <<_ACEOF
33980 #define sig_atomic_t int
33986 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33987 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33988 if test "${ac_cv_type_uid_t+set}" = set; then
33989 echo $ECHO_N "(cached) $ECHO_C" >&6
33991 cat >conftest.$ac_ext <<_ACEOF
33994 cat confdefs.h >>conftest.$ac_ext
33995 cat >>conftest.$ac_ext <<_ACEOF
33996 /* end confdefs.h. */
33997 #include <sys/types.h>
34000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34001 $EGREP "uid_t" >/dev/null 2>&1; then
34002 ac_cv_type_uid_t=yes
34004 ac_cv_type_uid_t=no
34009 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34010 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34011 if test $ac_cv_type_uid_t = no; then
34013 cat >>confdefs.h <<\_ACEOF
34018 cat >>confdefs.h <<\_ACEOF
34025 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34026 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34027 if test "${ac_cv_header_time+set}" = set; then
34028 echo $ECHO_N "(cached) $ECHO_C" >&6
34030 cat >conftest.$ac_ext <<_ACEOF
34033 cat confdefs.h >>conftest.$ac_ext
34034 cat >>conftest.$ac_ext <<_ACEOF
34035 /* end confdefs.h. */
34036 #include <sys/types.h>
34037 #include <sys/time.h>
34043 if ((struct tm *) 0)
34049 rm -f conftest.$ac_objext
34050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34051 (eval $ac_compile) 2>conftest.er1
34053 grep -v '^ *+' conftest.er1 >conftest.err
34055 cat conftest.err >&5
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); } &&
34058 { ac_try='test -z "$ac_c_werror_flag"
34059 || test ! -s conftest.err'
34060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061 (eval $ac_try) 2>&5
34063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064 (exit $ac_status); }; } &&
34065 { ac_try='test -s conftest.$ac_objext'
34066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34067 (eval $ac_try) 2>&5
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); }; }; then
34071 ac_cv_header_time=yes
34073 echo "$as_me: failed program was:" >&5
34074 sed 's/^/| /' conftest.$ac_ext >&5
34076 ac_cv_header_time=no
34078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34080 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34081 echo "${ECHO_T}$ac_cv_header_time" >&6
34082 if test $ac_cv_header_time = yes; then
34084 cat >>confdefs.h <<\_ACEOF
34085 #define TIME_WITH_SYS_TIME 1
34090 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34091 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34092 if test "${ac_cv_struct_tm+set}" = set; then
34093 echo $ECHO_N "(cached) $ECHO_C" >&6
34095 cat >conftest.$ac_ext <<_ACEOF
34098 cat confdefs.h >>conftest.$ac_ext
34099 cat >>conftest.$ac_ext <<_ACEOF
34100 /* end confdefs.h. */
34101 #include <sys/types.h>
34107 struct tm *tp; tp->tm_sec;
34112 rm -f conftest.$ac_objext
34113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34114 (eval $ac_compile) 2>conftest.er1
34116 grep -v '^ *+' conftest.er1 >conftest.err
34118 cat conftest.err >&5
34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); } &&
34121 { ac_try='test -z "$ac_c_werror_flag"
34122 || test ! -s conftest.err'
34123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34124 (eval $ac_try) 2>&5
34126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127 (exit $ac_status); }; } &&
34128 { ac_try='test -s conftest.$ac_objext'
34129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34130 (eval $ac_try) 2>&5
34132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133 (exit $ac_status); }; }; then
34134 ac_cv_struct_tm=time.h
34136 echo "$as_me: failed program was:" >&5
34137 sed 's/^/| /' conftest.$ac_ext >&5
34139 ac_cv_struct_tm=sys/time.h
34141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34143 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34144 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34145 if test $ac_cv_struct_tm = sys/time.h; then
34147 cat >>confdefs.h <<\_ACEOF
34148 #define TM_IN_SYS_TIME 1
34153 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34154 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34155 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34158 cat >conftest.$ac_ext <<_ACEOF
34161 cat confdefs.h >>conftest.$ac_ext
34162 cat >>conftest.$ac_ext <<_ACEOF
34163 /* end confdefs.h. */
34164 $ac_includes_default
34168 static struct stat ac_aggr;
34169 if (ac_aggr.st_blksize)
34175 rm -f conftest.$ac_objext
34176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34177 (eval $ac_compile) 2>conftest.er1
34179 grep -v '^ *+' conftest.er1 >conftest.err
34181 cat conftest.err >&5
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183 (exit $ac_status); } &&
34184 { ac_try='test -z "$ac_c_werror_flag"
34185 || test ! -s conftest.err'
34186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34187 (eval $ac_try) 2>&5
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); }; } &&
34191 { ac_try='test -s conftest.$ac_objext'
34192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34193 (eval $ac_try) 2>&5
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
34197 ac_cv_member_struct_stat_st_blksize=yes
34199 echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34202 cat >conftest.$ac_ext <<_ACEOF
34205 cat confdefs.h >>conftest.$ac_ext
34206 cat >>conftest.$ac_ext <<_ACEOF
34207 /* end confdefs.h. */
34208 $ac_includes_default
34212 static struct stat ac_aggr;
34213 if (sizeof ac_aggr.st_blksize)
34219 rm -f conftest.$ac_objext
34220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34221 (eval $ac_compile) 2>conftest.er1
34223 grep -v '^ *+' conftest.er1 >conftest.err
34225 cat conftest.err >&5
34226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 (exit $ac_status); } &&
34228 { ac_try='test -z "$ac_c_werror_flag"
34229 || test ! -s conftest.err'
34230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231 (eval $ac_try) 2>&5
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); }; } &&
34235 { ac_try='test -s conftest.$ac_objext'
34236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34237 (eval $ac_try) 2>&5
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; }; then
34241 ac_cv_member_struct_stat_st_blksize=yes
34243 echo "$as_me: failed program was:" >&5
34244 sed 's/^/| /' conftest.$ac_ext >&5
34246 ac_cv_member_struct_stat_st_blksize=no
34248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34252 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34253 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34254 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34256 cat >>confdefs.h <<_ACEOF
34257 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34263 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34264 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34265 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34266 echo $ECHO_N "(cached) $ECHO_C" >&6
34268 cat >conftest.$ac_ext <<_ACEOF
34271 cat confdefs.h >>conftest.$ac_ext
34272 cat >>conftest.$ac_ext <<_ACEOF
34273 /* end confdefs.h. */
34274 $ac_includes_default
34280 static struct passwd ac_aggr;
34281 if (ac_aggr.pw_gecos)
34287 rm -f conftest.$ac_objext
34288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34289 (eval $ac_compile) 2>conftest.er1
34291 grep -v '^ *+' conftest.er1 >conftest.err
34293 cat conftest.err >&5
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); } &&
34296 { ac_try='test -z "$ac_c_werror_flag"
34297 || test ! -s conftest.err'
34298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34299 (eval $ac_try) 2>&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); }; } &&
34303 { ac_try='test -s conftest.$ac_objext'
34304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305 (eval $ac_try) 2>&5
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); }; }; then
34309 ac_cv_member_struct_passwd_pw_gecos=yes
34311 echo "$as_me: failed program was:" >&5
34312 sed 's/^/| /' conftest.$ac_ext >&5
34314 cat >conftest.$ac_ext <<_ACEOF
34317 cat confdefs.h >>conftest.$ac_ext
34318 cat >>conftest.$ac_ext <<_ACEOF
34319 /* end confdefs.h. */
34320 $ac_includes_default
34326 static struct passwd ac_aggr;
34327 if (sizeof ac_aggr.pw_gecos)
34333 rm -f conftest.$ac_objext
34334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34335 (eval $ac_compile) 2>conftest.er1
34337 grep -v '^ *+' conftest.er1 >conftest.err
34339 cat conftest.err >&5
34340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); } &&
34342 { ac_try='test -z "$ac_c_werror_flag"
34343 || test ! -s conftest.err'
34344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345 (eval $ac_try) 2>&5
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); }; } &&
34349 { ac_try='test -s conftest.$ac_objext'
34350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34351 (eval $ac_try) 2>&5
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); }; }; then
34355 ac_cv_member_struct_passwd_pw_gecos=yes
34357 echo "$as_me: failed program was:" >&5
34358 sed 's/^/| /' conftest.$ac_ext >&5
34360 ac_cv_member_struct_passwd_pw_gecos=no
34362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34366 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34367 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34368 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34370 cat >>confdefs.h <<_ACEOF
34371 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34377 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34378 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34379 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34380 echo $ECHO_N "(cached) $ECHO_C" >&6
34382 cat >conftest.$ac_ext <<_ACEOF
34385 cat confdefs.h >>conftest.$ac_ext
34386 cat >>conftest.$ac_ext <<_ACEOF
34387 /* end confdefs.h. */
34388 $ac_includes_default
34394 static struct passwd ac_aggr;
34395 if (ac_aggr.pw_passwd)
34401 rm -f conftest.$ac_objext
34402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34403 (eval $ac_compile) 2>conftest.er1
34405 grep -v '^ *+' conftest.er1 >conftest.err
34407 cat conftest.err >&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); } &&
34410 { ac_try='test -z "$ac_c_werror_flag"
34411 || test ! -s conftest.err'
34412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413 (eval $ac_try) 2>&5
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); }; } &&
34417 { ac_try='test -s conftest.$ac_objext'
34418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419 (eval $ac_try) 2>&5
34421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422 (exit $ac_status); }; }; then
34423 ac_cv_member_struct_passwd_pw_passwd=yes
34425 echo "$as_me: failed program was:" >&5
34426 sed 's/^/| /' conftest.$ac_ext >&5
34428 cat >conftest.$ac_ext <<_ACEOF
34431 cat confdefs.h >>conftest.$ac_ext
34432 cat >>conftest.$ac_ext <<_ACEOF
34433 /* end confdefs.h. */
34434 $ac_includes_default
34440 static struct passwd ac_aggr;
34441 if (sizeof ac_aggr.pw_passwd)
34447 rm -f conftest.$ac_objext
34448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34449 (eval $ac_compile) 2>conftest.er1
34451 grep -v '^ *+' conftest.er1 >conftest.err
34453 cat conftest.err >&5
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); } &&
34456 { ac_try='test -z "$ac_c_werror_flag"
34457 || test ! -s conftest.err'
34458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34459 (eval $ac_try) 2>&5
34461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462 (exit $ac_status); }; } &&
34463 { ac_try='test -s conftest.$ac_objext'
34464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34465 (eval $ac_try) 2>&5
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34468 (exit $ac_status); }; }; then
34469 ac_cv_member_struct_passwd_pw_passwd=yes
34471 echo "$as_me: failed program was:" >&5
34472 sed 's/^/| /' conftest.$ac_ext >&5
34474 ac_cv_member_struct_passwd_pw_passwd=no
34476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34480 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34481 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34482 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34484 cat >>confdefs.h <<_ACEOF
34485 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34492 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34493 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34494 if test "${ol_cv_c_upper_lower+set}" = set; then
34495 echo $ECHO_N "(cached) $ECHO_C" >&6
34498 if test "$cross_compiling" = yes; then
34499 ol_cv_c_upper_lower=safe
34501 cat >conftest.$ac_ext <<_ACEOF
34504 cat confdefs.h >>conftest.$ac_ext
34505 cat >>conftest.$ac_ext <<_ACEOF
34506 /* end confdefs.h. */
34511 if ('C' == toupper('C'))
34517 rm -f conftest$ac_exeext
34518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34519 (eval $ac_link) 2>&5
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524 (eval $ac_try) 2>&5
34526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); }; }; then
34528 ol_cv_c_upper_lower=no
34530 echo "$as_me: program exited with status $ac_status" >&5
34531 echo "$as_me: failed program was:" >&5
34532 sed 's/^/| /' conftest.$ac_ext >&5
34534 ( exit $ac_status )
34535 ol_cv_c_upper_lower=yes
34537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34540 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34541 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34542 if test $ol_cv_c_upper_lower != no ; then
34544 cat >>confdefs.h <<\_ACEOF
34545 #define C_UPPER_LOWER 1
34550 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34551 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34552 if test "${ac_cv_c_const+set}" = set; then
34553 echo $ECHO_N "(cached) $ECHO_C" >&6
34555 cat >conftest.$ac_ext <<_ACEOF
34558 cat confdefs.h >>conftest.$ac_ext
34559 cat >>conftest.$ac_ext <<_ACEOF
34560 /* end confdefs.h. */
34565 /* FIXME: Include the comments suggested by Paul. */
34566 #ifndef __cplusplus
34567 /* Ultrix mips cc rejects this. */
34568 typedef int charset[2];
34570 /* SunOS 4.1.1 cc rejects this. */
34571 char const *const *ccp;
34573 /* NEC SVR4.0.2 mips cc rejects this. */
34574 struct point {int x, y;};
34575 static struct point const zero = {0,0};
34576 /* AIX XL C 1.02.0.0 rejects this.
34577 It does not let you subtract one const X* pointer from another in
34578 an arm of an if-expression whose if-part is not a constant
34580 const char *g = "string";
34581 ccp = &g + (g ? g-g : 0);
34582 /* HPUX 7.0 cc rejects these. */
34585 ccp = (char const *const *) p;
34586 { /* SCO 3.2v4 cc rejects this. */
34588 char const *s = 0 ? (char *) 0 : (char const *) 0;
34592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34593 int x[] = {25, 17};
34594 const int *foo = &x[0];
34597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34598 typedef const int *iptr;
34602 { /* AIX XL C 1.02.0.0 rejects this saying
34603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34604 struct s { int j; const int *ap[3]; };
34605 struct s *b; b->j = 5;
34607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34608 const int foo = 10;
34616 rm -f conftest.$ac_objext
34617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34618 (eval $ac_compile) 2>conftest.er1
34620 grep -v '^ *+' conftest.er1 >conftest.err
34622 cat conftest.err >&5
34623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624 (exit $ac_status); } &&
34625 { ac_try='test -z "$ac_c_werror_flag"
34626 || test ! -s conftest.err'
34627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34628 (eval $ac_try) 2>&5
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); }; } &&
34632 { ac_try='test -s conftest.$ac_objext'
34633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34634 (eval $ac_try) 2>&5
34636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637 (exit $ac_status); }; }; then
34640 echo "$as_me: failed program was:" >&5
34641 sed 's/^/| /' conftest.$ac_ext >&5
34645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34647 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34648 echo "${ECHO_T}$ac_cv_c_const" >&6
34649 if test $ac_cv_c_const = no; then
34651 cat >>confdefs.h <<\_ACEOF
34657 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34658 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34659 if test "${ol_cv_c_volatile+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34662 cat >conftest.$ac_ext <<_ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h. */
34672 volatile int a; int * volatile b = x ? &y : &z;
34673 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34679 rm -f conftest.$ac_objext
34680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34681 (eval $ac_compile) 2>conftest.er1
34683 grep -v '^ *+' conftest.er1 >conftest.err
34685 cat conftest.err >&5
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); } &&
34688 { ac_try='test -z "$ac_c_werror_flag"
34689 || test ! -s conftest.err'
34690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34691 (eval $ac_try) 2>&5
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); }; } &&
34695 { ac_try='test -s conftest.$ac_objext'
34696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34697 (eval $ac_try) 2>&5
34699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700 (exit $ac_status); }; }; then
34701 ol_cv_c_volatile=yes
34703 echo "$as_me: failed program was:" >&5
34704 sed 's/^/| /' conftest.$ac_ext >&5
34706 ol_cv_c_volatile=no
34708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34710 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
34711 echo "${ECHO_T}$ol_cv_c_volatile" >&6
34712 if test $ol_cv_c_volatile = yes; then
34716 cat >>confdefs.h <<\_ACEOF
34723 if test $cross_compiling = yes ; then
34724 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
34725 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
34727 cat >>confdefs.h <<\_ACEOF
34728 #define CROSS_COMPILING 1
34732 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34733 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
34734 if test "${ac_cv_c_bigendian+set}" = set; then
34735 echo $ECHO_N "(cached) $ECHO_C" >&6
34737 # See if sys/param.h defines the BYTE_ORDER macro.
34738 cat >conftest.$ac_ext <<_ACEOF
34741 cat confdefs.h >>conftest.$ac_ext
34742 cat >>conftest.$ac_ext <<_ACEOF
34743 /* end confdefs.h. */
34744 #include <sys/types.h>
34745 #include <sys/param.h>
34750 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
34751 bogus endian macros
34758 rm -f conftest.$ac_objext
34759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34760 (eval $ac_compile) 2>conftest.er1
34762 grep -v '^ *+' conftest.er1 >conftest.err
34764 cat conftest.err >&5
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); } &&
34767 { ac_try='test -z "$ac_c_werror_flag"
34768 || test ! -s conftest.err'
34769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770 (eval $ac_try) 2>&5
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); }; } &&
34774 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34780 # It does; now see whether it defined to BIG_ENDIAN or not.
34781 cat >conftest.$ac_ext <<_ACEOF
34784 cat confdefs.h >>conftest.$ac_ext
34785 cat >>conftest.$ac_ext <<_ACEOF
34786 /* end confdefs.h. */
34787 #include <sys/types.h>
34788 #include <sys/param.h>
34793 #if BYTE_ORDER != BIG_ENDIAN
34801 rm -f conftest.$ac_objext
34802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34803 (eval $ac_compile) 2>conftest.er1
34805 grep -v '^ *+' conftest.er1 >conftest.err
34807 cat conftest.err >&5
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } &&
34810 { ac_try='test -z "$ac_c_werror_flag"
34811 || test ! -s conftest.err'
34812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34813 (eval $ac_try) 2>&5
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); }; } &&
34817 { ac_try='test -s conftest.$ac_objext'
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; }; then
34823 ac_cv_c_bigendian=yes
34825 echo "$as_me: failed program was:" >&5
34826 sed 's/^/| /' conftest.$ac_ext >&5
34828 ac_cv_c_bigendian=no
34830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34832 echo "$as_me: failed program was:" >&5
34833 sed 's/^/| /' conftest.$ac_ext >&5
34835 # It does not; compile a test program.
34836 if test "$cross_compiling" = yes; then
34837 # try to guess the endianness by grepping values into an object file
34838 ac_cv_c_bigendian=unknown
34839 cat >conftest.$ac_ext <<_ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h. */
34845 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34846 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34847 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
34848 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34849 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34850 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
34854 _ascii (); _ebcdic ();
34859 rm -f conftest.$ac_objext
34860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34861 (eval $ac_compile) 2>conftest.er1
34863 grep -v '^ *+' conftest.er1 >conftest.err
34865 cat conftest.err >&5
34866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 (exit $ac_status); } &&
34868 { ac_try='test -z "$ac_c_werror_flag"
34869 || test ! -s conftest.err'
34870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34871 (eval $ac_try) 2>&5
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); }; } &&
34875 { ac_try='test -s conftest.$ac_objext'
34876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877 (eval $ac_try) 2>&5
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); }; }; then
34881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
34882 ac_cv_c_bigendian=yes
34884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34885 if test "$ac_cv_c_bigendian" = unknown; then
34886 ac_cv_c_bigendian=no
34888 # finding both strings is unlikely to happen, but who knows?
34889 ac_cv_c_bigendian=unknown
34893 echo "$as_me: failed program was:" >&5
34894 sed 's/^/| /' conftest.$ac_ext >&5
34897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34899 cat >conftest.$ac_ext <<_ACEOF
34902 cat confdefs.h >>conftest.$ac_ext
34903 cat >>conftest.$ac_ext <<_ACEOF
34904 /* end confdefs.h. */
34908 /* Are we little or big endian? From Harbison&Steele. */
34912 char c[sizeof (long)];
34915 exit (u.c[sizeof (long) - 1] == 1);
34918 rm -f conftest$ac_exeext
34919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34920 (eval $ac_link) 2>&5
34922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34925 (eval $ac_try) 2>&5
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); }; }; then
34929 ac_cv_c_bigendian=no
34931 echo "$as_me: program exited with status $ac_status" >&5
34932 echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34935 ( exit $ac_status )
34936 ac_cv_c_bigendian=yes
34938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34943 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34944 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
34945 case $ac_cv_c_bigendian in
34948 cat >>confdefs.h <<\_ACEOF
34949 #define WORDS_BIGENDIAN 1
34955 { { echo "$as_me:$LINENO: error: unknown endianness
34956 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34957 echo "$as_me: error: unknown endianness
34958 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34959 { (exit 1); exit 1; }; } ;;
34964 echo "$as_me:$LINENO: checking for short" >&5
34965 echo $ECHO_N "checking for short... $ECHO_C" >&6
34966 if test "${ac_cv_type_short+set}" = set; then
34967 echo $ECHO_N "(cached) $ECHO_C" >&6
34969 cat >conftest.$ac_ext <<_ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h. */
34975 $ac_includes_default
34981 if (sizeof (short))
34987 rm -f conftest.$ac_objext
34988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34989 (eval $ac_compile) 2>conftest.er1
34991 grep -v '^ *+' conftest.er1 >conftest.err
34993 cat conftest.err >&5
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); } &&
34996 { ac_try='test -z "$ac_c_werror_flag"
34997 || test ! -s conftest.err'
34998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34999 (eval $ac_try) 2>&5
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); }; } &&
35003 { ac_try='test -s conftest.$ac_objext'
35004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35005 (eval $ac_try) 2>&5
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); }; }; then
35009 ac_cv_type_short=yes
35011 echo "$as_me: failed program was:" >&5
35012 sed 's/^/| /' conftest.$ac_ext >&5
35014 ac_cv_type_short=no
35016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35018 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35019 echo "${ECHO_T}$ac_cv_type_short" >&6
35021 echo "$as_me:$LINENO: checking size of short" >&5
35022 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35023 if test "${ac_cv_sizeof_short+set}" = set; then
35024 echo $ECHO_N "(cached) $ECHO_C" >&6
35026 if test "$ac_cv_type_short" = yes; then
35027 # The cast to unsigned long works around a bug in the HP C Compiler
35028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35030 # This bug is HP SR number 8606223364.
35031 if test "$cross_compiling" = yes; then
35032 # Depending upon the size, compute the lo and hi bounds.
35033 cat >conftest.$ac_ext <<_ACEOF
35036 cat confdefs.h >>conftest.$ac_ext
35037 cat >>conftest.$ac_ext <<_ACEOF
35038 /* end confdefs.h. */
35039 $ac_includes_default
35043 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35050 rm -f conftest.$ac_objext
35051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35052 (eval $ac_compile) 2>conftest.er1
35054 grep -v '^ *+' conftest.er1 >conftest.err
35056 cat conftest.err >&5
35057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058 (exit $ac_status); } &&
35059 { ac_try='test -z "$ac_c_werror_flag"
35060 || test ! -s conftest.err'
35061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35062 (eval $ac_try) 2>&5
35064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065 (exit $ac_status); }; } &&
35066 { ac_try='test -s conftest.$ac_objext'
35067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35068 (eval $ac_try) 2>&5
35070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071 (exit $ac_status); }; }; then
35074 cat >conftest.$ac_ext <<_ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h. */
35080 $ac_includes_default
35084 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35091 rm -f conftest.$ac_objext
35092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35093 (eval $ac_compile) 2>conftest.er1
35095 grep -v '^ *+' conftest.er1 >conftest.err
35097 cat conftest.err >&5
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } &&
35100 { ac_try='test -z "$ac_c_werror_flag"
35101 || test ! -s conftest.err'
35102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35103 (eval $ac_try) 2>&5
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); }; } &&
35107 { ac_try='test -s conftest.$ac_objext'
35108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109 (eval $ac_try) 2>&5
35111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112 (exit $ac_status); }; }; then
35113 ac_hi=$ac_mid; break
35115 echo "$as_me: failed program was:" >&5
35116 sed 's/^/| /' conftest.$ac_ext >&5
35118 ac_lo=`expr $ac_mid + 1`
35119 if test $ac_lo -le $ac_mid; then
35123 ac_mid=`expr 2 '*' $ac_mid + 1`
35125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35128 echo "$as_me: failed program was:" >&5
35129 sed 's/^/| /' conftest.$ac_ext >&5
35131 cat >conftest.$ac_ext <<_ACEOF
35134 cat confdefs.h >>conftest.$ac_ext
35135 cat >>conftest.$ac_ext <<_ACEOF
35136 /* end confdefs.h. */
35137 $ac_includes_default
35141 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35148 rm -f conftest.$ac_objext
35149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35150 (eval $ac_compile) 2>conftest.er1
35152 grep -v '^ *+' conftest.er1 >conftest.err
35154 cat conftest.err >&5
35155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156 (exit $ac_status); } &&
35157 { ac_try='test -z "$ac_c_werror_flag"
35158 || test ! -s conftest.err'
35159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160 (eval $ac_try) 2>&5
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); }; } &&
35164 { ac_try='test -s conftest.$ac_objext'
35165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35166 (eval $ac_try) 2>&5
35168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169 (exit $ac_status); }; }; then
35172 cat >conftest.$ac_ext <<_ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h. */
35178 $ac_includes_default
35182 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35189 rm -f conftest.$ac_objext
35190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35191 (eval $ac_compile) 2>conftest.er1
35193 grep -v '^ *+' conftest.er1 >conftest.err
35195 cat conftest.err >&5
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); } &&
35198 { ac_try='test -z "$ac_c_werror_flag"
35199 || test ! -s conftest.err'
35200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35201 (eval $ac_try) 2>&5
35203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204 (exit $ac_status); }; } &&
35205 { ac_try='test -s conftest.$ac_objext'
35206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35207 (eval $ac_try) 2>&5
35209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35210 (exit $ac_status); }; }; then
35211 ac_lo=$ac_mid; break
35213 echo "$as_me: failed program was:" >&5
35214 sed 's/^/| /' conftest.$ac_ext >&5
35216 ac_hi=`expr '(' $ac_mid ')' - 1`
35217 if test $ac_mid -le $ac_hi; then
35221 ac_mid=`expr 2 '*' $ac_mid`
35223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35226 echo "$as_me: failed program was:" >&5
35227 sed 's/^/| /' conftest.$ac_ext >&5
35231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35234 # Binary search between lo and hi bounds.
35235 while test "x$ac_lo" != "x$ac_hi"; do
35236 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35237 cat >conftest.$ac_ext <<_ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h. */
35243 $ac_includes_default
35247 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35254 rm -f conftest.$ac_objext
35255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35256 (eval $ac_compile) 2>conftest.er1
35258 grep -v '^ *+' conftest.er1 >conftest.err
35260 cat conftest.err >&5
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); } &&
35263 { ac_try='test -z "$ac_c_werror_flag"
35264 || test ! -s conftest.err'
35265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35266 (eval $ac_try) 2>&5
35268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269 (exit $ac_status); }; } &&
35270 { ac_try='test -s conftest.$ac_objext'
35271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35272 (eval $ac_try) 2>&5
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); }; }; then
35278 echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35281 ac_lo=`expr '(' $ac_mid ')' + 1`
35283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35286 ?*) ac_cv_sizeof_short=$ac_lo;;
35287 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35288 See \`config.log' for more details." >&5
35289 echo "$as_me: error: cannot compute sizeof (short), 77
35290 See \`config.log' for more details." >&2;}
35291 { (exit 1); exit 1; }; } ;;
35294 if test "$cross_compiling" = yes; then
35295 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35296 See \`config.log' for more details." >&5
35297 echo "$as_me: error: cannot run test program while cross compiling
35298 See \`config.log' for more details." >&2;}
35299 { (exit 1); exit 1; }; }
35301 cat >conftest.$ac_ext <<_ACEOF
35304 cat confdefs.h >>conftest.$ac_ext
35305 cat >>conftest.$ac_ext <<_ACEOF
35306 /* end confdefs.h. */
35307 $ac_includes_default
35308 long longval () { return (long) (sizeof (short)); }
35309 unsigned long ulongval () { return (long) (sizeof (short)); }
35311 #include <stdlib.h>
35316 FILE *f = fopen ("conftest.val", "w");
35319 if (((long) (sizeof (short))) < 0)
35321 long i = longval ();
35322 if (i != ((long) (sizeof (short))))
35324 fprintf (f, "%ld\n", i);
35328 unsigned long i = ulongval ();
35329 if (i != ((long) (sizeof (short))))
35331 fprintf (f, "%lu\n", i);
35333 exit (ferror (f) || fclose (f) != 0);
35339 rm -f conftest$ac_exeext
35340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35341 (eval $ac_link) 2>&5
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35346 (eval $ac_try) 2>&5
35348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); }; }; then
35350 ac_cv_sizeof_short=`cat conftest.val`
35352 echo "$as_me: program exited with status $ac_status" >&5
35353 echo "$as_me: failed program was:" >&5
35354 sed 's/^/| /' conftest.$ac_ext >&5
35356 ( exit $ac_status )
35357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35358 See \`config.log' for more details." >&5
35359 echo "$as_me: error: cannot compute sizeof (short), 77
35360 See \`config.log' for more details." >&2;}
35361 { (exit 1); exit 1; }; }
35363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35368 ac_cv_sizeof_short=0
35371 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35372 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35373 cat >>confdefs.h <<_ACEOF
35374 #define SIZEOF_SHORT $ac_cv_sizeof_short
35378 echo "$as_me:$LINENO: checking for int" >&5
35379 echo $ECHO_N "checking for int... $ECHO_C" >&6
35380 if test "${ac_cv_type_int+set}" = set; then
35381 echo $ECHO_N "(cached) $ECHO_C" >&6
35383 cat >conftest.$ac_ext <<_ACEOF
35386 cat confdefs.h >>conftest.$ac_ext
35387 cat >>conftest.$ac_ext <<_ACEOF
35388 /* end confdefs.h. */
35389 $ac_includes_default
35401 rm -f conftest.$ac_objext
35402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35403 (eval $ac_compile) 2>conftest.er1
35405 grep -v '^ *+' conftest.er1 >conftest.err
35407 cat conftest.err >&5
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); } &&
35410 { ac_try='test -z "$ac_c_werror_flag"
35411 || test ! -s conftest.err'
35412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35413 (eval $ac_try) 2>&5
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); }; } &&
35417 { ac_try='test -s conftest.$ac_objext'
35418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35419 (eval $ac_try) 2>&5
35421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35422 (exit $ac_status); }; }; then
35425 echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35432 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35433 echo "${ECHO_T}$ac_cv_type_int" >&6
35435 echo "$as_me:$LINENO: checking size of int" >&5
35436 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35437 if test "${ac_cv_sizeof_int+set}" = set; then
35438 echo $ECHO_N "(cached) $ECHO_C" >&6
35440 if test "$ac_cv_type_int" = yes; then
35441 # The cast to unsigned long works around a bug in the HP C Compiler
35442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35444 # This bug is HP SR number 8606223364.
35445 if test "$cross_compiling" = yes; then
35446 # Depending upon the size, compute the lo and hi bounds.
35447 cat >conftest.$ac_ext <<_ACEOF
35450 cat confdefs.h >>conftest.$ac_ext
35451 cat >>conftest.$ac_ext <<_ACEOF
35452 /* end confdefs.h. */
35453 $ac_includes_default
35457 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35464 rm -f conftest.$ac_objext
35465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35466 (eval $ac_compile) 2>conftest.er1
35468 grep -v '^ *+' conftest.er1 >conftest.err
35470 cat conftest.err >&5
35471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35472 (exit $ac_status); } &&
35473 { ac_try='test -z "$ac_c_werror_flag"
35474 || test ! -s conftest.err'
35475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35476 (eval $ac_try) 2>&5
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); }; } &&
35480 { ac_try='test -s conftest.$ac_objext'
35481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482 (eval $ac_try) 2>&5
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; }; then
35488 cat >conftest.$ac_ext <<_ACEOF
35491 cat confdefs.h >>conftest.$ac_ext
35492 cat >>conftest.$ac_ext <<_ACEOF
35493 /* end confdefs.h. */
35494 $ac_includes_default
35498 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35505 rm -f conftest.$ac_objext
35506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35507 (eval $ac_compile) 2>conftest.er1
35509 grep -v '^ *+' conftest.er1 >conftest.err
35511 cat conftest.err >&5
35512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513 (exit $ac_status); } &&
35514 { ac_try='test -z "$ac_c_werror_flag"
35515 || test ! -s conftest.err'
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; } &&
35521 { ac_try='test -s conftest.$ac_objext'
35522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523 (eval $ac_try) 2>&5
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); }; }; then
35527 ac_hi=$ac_mid; break
35529 echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35532 ac_lo=`expr $ac_mid + 1`
35533 if test $ac_lo -le $ac_mid; then
35537 ac_mid=`expr 2 '*' $ac_mid + 1`
35539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35542 echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35545 cat >conftest.$ac_ext <<_ACEOF
35548 cat confdefs.h >>conftest.$ac_ext
35549 cat >>conftest.$ac_ext <<_ACEOF
35550 /* end confdefs.h. */
35551 $ac_includes_default
35555 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35562 rm -f conftest.$ac_objext
35563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35564 (eval $ac_compile) 2>conftest.er1
35566 grep -v '^ *+' conftest.er1 >conftest.err
35568 cat conftest.err >&5
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); } &&
35571 { ac_try='test -z "$ac_c_werror_flag"
35572 || test ! -s conftest.err'
35573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35574 (eval $ac_try) 2>&5
35576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577 (exit $ac_status); }; } &&
35578 { ac_try='test -s conftest.$ac_objext'
35579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35580 (eval $ac_try) 2>&5
35582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583 (exit $ac_status); }; }; then
35586 cat >conftest.$ac_ext <<_ACEOF
35589 cat confdefs.h >>conftest.$ac_ext
35590 cat >>conftest.$ac_ext <<_ACEOF
35591 /* end confdefs.h. */
35592 $ac_includes_default
35596 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35603 rm -f conftest.$ac_objext
35604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35605 (eval $ac_compile) 2>conftest.er1
35607 grep -v '^ *+' conftest.er1 >conftest.err
35609 cat conftest.err >&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } &&
35612 { ac_try='test -z "$ac_c_werror_flag"
35613 || test ! -s conftest.err'
35614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615 (eval $ac_try) 2>&5
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); }; } &&
35619 { ac_try='test -s conftest.$ac_objext'
35620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621 (eval $ac_try) 2>&5
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; }; then
35625 ac_lo=$ac_mid; break
35627 echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35630 ac_hi=`expr '(' $ac_mid ')' - 1`
35631 if test $ac_mid -le $ac_hi; then
35635 ac_mid=`expr 2 '*' $ac_mid`
35637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35640 echo "$as_me: failed program was:" >&5
35641 sed 's/^/| /' conftest.$ac_ext >&5
35645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35648 # Binary search between lo and hi bounds.
35649 while test "x$ac_lo" != "x$ac_hi"; do
35650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35651 cat >conftest.$ac_ext <<_ACEOF
35654 cat confdefs.h >>conftest.$ac_ext
35655 cat >>conftest.$ac_ext <<_ACEOF
35656 /* end confdefs.h. */
35657 $ac_includes_default
35661 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35668 rm -f conftest.$ac_objext
35669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35670 (eval $ac_compile) 2>conftest.er1
35672 grep -v '^ *+' conftest.er1 >conftest.err
35674 cat conftest.err >&5
35675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676 (exit $ac_status); } &&
35677 { ac_try='test -z "$ac_c_werror_flag"
35678 || test ! -s conftest.err'
35679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35680 (eval $ac_try) 2>&5
35682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683 (exit $ac_status); }; } &&
35684 { ac_try='test -s conftest.$ac_objext'
35685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35686 (eval $ac_try) 2>&5
35688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689 (exit $ac_status); }; }; then
35692 echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35695 ac_lo=`expr '(' $ac_mid ')' + 1`
35697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35700 ?*) ac_cv_sizeof_int=$ac_lo;;
35701 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35702 See \`config.log' for more details." >&5
35703 echo "$as_me: error: cannot compute sizeof (int), 77
35704 See \`config.log' for more details." >&2;}
35705 { (exit 1); exit 1; }; } ;;
35708 if test "$cross_compiling" = yes; then
35709 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35710 See \`config.log' for more details." >&5
35711 echo "$as_me: error: cannot run test program while cross compiling
35712 See \`config.log' for more details." >&2;}
35713 { (exit 1); exit 1; }; }
35715 cat >conftest.$ac_ext <<_ACEOF
35718 cat confdefs.h >>conftest.$ac_ext
35719 cat >>conftest.$ac_ext <<_ACEOF
35720 /* end confdefs.h. */
35721 $ac_includes_default
35722 long longval () { return (long) (sizeof (int)); }
35723 unsigned long ulongval () { return (long) (sizeof (int)); }
35725 #include <stdlib.h>
35730 FILE *f = fopen ("conftest.val", "w");
35733 if (((long) (sizeof (int))) < 0)
35735 long i = longval ();
35736 if (i != ((long) (sizeof (int))))
35738 fprintf (f, "%ld\n", i);
35742 unsigned long i = ulongval ();
35743 if (i != ((long) (sizeof (int))))
35745 fprintf (f, "%lu\n", i);
35747 exit (ferror (f) || fclose (f) != 0);
35753 rm -f conftest$ac_exeext
35754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35755 (eval $ac_link) 2>&5
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760 (eval $ac_try) 2>&5
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); }; }; then
35764 ac_cv_sizeof_int=`cat conftest.val`
35766 echo "$as_me: program exited with status $ac_status" >&5
35767 echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35770 ( exit $ac_status )
35771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35772 See \`config.log' for more details." >&5
35773 echo "$as_me: error: cannot compute sizeof (int), 77
35774 See \`config.log' for more details." >&2;}
35775 { (exit 1); exit 1; }; }
35777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35785 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35786 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
35787 cat >>confdefs.h <<_ACEOF
35788 #define SIZEOF_INT $ac_cv_sizeof_int
35792 echo "$as_me:$LINENO: checking for long" >&5
35793 echo $ECHO_N "checking for long... $ECHO_C" >&6
35794 if test "${ac_cv_type_long+set}" = set; then
35795 echo $ECHO_N "(cached) $ECHO_C" >&6
35797 cat >conftest.$ac_ext <<_ACEOF
35800 cat confdefs.h >>conftest.$ac_ext
35801 cat >>conftest.$ac_ext <<_ACEOF
35802 /* end confdefs.h. */
35803 $ac_includes_default
35815 rm -f conftest.$ac_objext
35816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35817 (eval $ac_compile) 2>conftest.er1
35819 grep -v '^ *+' conftest.er1 >conftest.err
35821 cat conftest.err >&5
35822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823 (exit $ac_status); } &&
35824 { ac_try='test -z "$ac_c_werror_flag"
35825 || test ! -s conftest.err'
35826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35827 (eval $ac_try) 2>&5
35829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 (exit $ac_status); }; } &&
35831 { ac_try='test -s conftest.$ac_objext'
35832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35833 (eval $ac_try) 2>&5
35835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35836 (exit $ac_status); }; }; then
35837 ac_cv_type_long=yes
35839 echo "$as_me: failed program was:" >&5
35840 sed 's/^/| /' conftest.$ac_ext >&5
35844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35846 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
35847 echo "${ECHO_T}$ac_cv_type_long" >&6
35849 echo "$as_me:$LINENO: checking size of long" >&5
35850 echo $ECHO_N "checking size of long... $ECHO_C" >&6
35851 if test "${ac_cv_sizeof_long+set}" = set; then
35852 echo $ECHO_N "(cached) $ECHO_C" >&6
35854 if test "$ac_cv_type_long" = yes; then
35855 # The cast to unsigned long works around a bug in the HP C Compiler
35856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35858 # This bug is HP SR number 8606223364.
35859 if test "$cross_compiling" = yes; then
35860 # Depending upon the size, compute the lo and hi bounds.
35861 cat >conftest.$ac_ext <<_ACEOF
35864 cat confdefs.h >>conftest.$ac_ext
35865 cat >>conftest.$ac_ext <<_ACEOF
35866 /* end confdefs.h. */
35867 $ac_includes_default
35871 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
35878 rm -f conftest.$ac_objext
35879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35880 (eval $ac_compile) 2>conftest.er1
35882 grep -v '^ *+' conftest.er1 >conftest.err
35884 cat conftest.err >&5
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); } &&
35887 { ac_try='test -z "$ac_c_werror_flag"
35888 || test ! -s conftest.err'
35889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35890 (eval $ac_try) 2>&5
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); }; } &&
35894 { ac_try='test -s conftest.$ac_objext'
35895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35896 (eval $ac_try) 2>&5
35898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899 (exit $ac_status); }; }; then
35902 cat >conftest.$ac_ext <<_ACEOF
35905 cat confdefs.h >>conftest.$ac_ext
35906 cat >>conftest.$ac_ext <<_ACEOF
35907 /* end confdefs.h. */
35908 $ac_includes_default
35912 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
35919 rm -f conftest.$ac_objext
35920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35921 (eval $ac_compile) 2>conftest.er1
35923 grep -v '^ *+' conftest.er1 >conftest.err
35925 cat conftest.err >&5
35926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927 (exit $ac_status); } &&
35928 { ac_try='test -z "$ac_c_werror_flag"
35929 || test ! -s conftest.err'
35930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35931 (eval $ac_try) 2>&5
35933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35934 (exit $ac_status); }; } &&
35935 { ac_try='test -s conftest.$ac_objext'
35936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35937 (eval $ac_try) 2>&5
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); }; }; then
35941 ac_hi=$ac_mid; break
35943 echo "$as_me: failed program was:" >&5
35944 sed 's/^/| /' conftest.$ac_ext >&5
35946 ac_lo=`expr $ac_mid + 1`
35947 if test $ac_lo -le $ac_mid; then
35951 ac_mid=`expr 2 '*' $ac_mid + 1`
35953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35956 echo "$as_me: failed program was:" >&5
35957 sed 's/^/| /' conftest.$ac_ext >&5
35959 cat >conftest.$ac_ext <<_ACEOF
35962 cat confdefs.h >>conftest.$ac_ext
35963 cat >>conftest.$ac_ext <<_ACEOF
35964 /* end confdefs.h. */
35965 $ac_includes_default
35969 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
35976 rm -f conftest.$ac_objext
35977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35978 (eval $ac_compile) 2>conftest.er1
35980 grep -v '^ *+' conftest.er1 >conftest.err
35982 cat conftest.err >&5
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); } &&
35985 { ac_try='test -z "$ac_c_werror_flag"
35986 || test ! -s conftest.err'
35987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35988 (eval $ac_try) 2>&5
35990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35991 (exit $ac_status); }; } &&
35992 { ac_try='test -s conftest.$ac_objext'
35993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35994 (eval $ac_try) 2>&5
35996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997 (exit $ac_status); }; }; then
36000 cat >conftest.$ac_ext <<_ACEOF
36003 cat confdefs.h >>conftest.$ac_ext
36004 cat >>conftest.$ac_ext <<_ACEOF
36005 /* end confdefs.h. */
36006 $ac_includes_default
36010 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36017 rm -f conftest.$ac_objext
36018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36019 (eval $ac_compile) 2>conftest.er1
36021 grep -v '^ *+' conftest.er1 >conftest.err
36023 cat conftest.err >&5
36024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025 (exit $ac_status); } &&
36026 { ac_try='test -z "$ac_c_werror_flag"
36027 || test ! -s conftest.err'
36028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36029 (eval $ac_try) 2>&5
36031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36032 (exit $ac_status); }; } &&
36033 { ac_try='test -s conftest.$ac_objext'
36034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36035 (eval $ac_try) 2>&5
36037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038 (exit $ac_status); }; }; then
36039 ac_lo=$ac_mid; break
36041 echo "$as_me: failed program was:" >&5
36042 sed 's/^/| /' conftest.$ac_ext >&5
36044 ac_hi=`expr '(' $ac_mid ')' - 1`
36045 if test $ac_mid -le $ac_hi; then
36049 ac_mid=`expr 2 '*' $ac_mid`
36051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36054 echo "$as_me: failed program was:" >&5
36055 sed 's/^/| /' conftest.$ac_ext >&5
36059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36062 # Binary search between lo and hi bounds.
36063 while test "x$ac_lo" != "x$ac_hi"; do
36064 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36065 cat >conftest.$ac_ext <<_ACEOF
36068 cat confdefs.h >>conftest.$ac_ext
36069 cat >>conftest.$ac_ext <<_ACEOF
36070 /* end confdefs.h. */
36071 $ac_includes_default
36075 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36082 rm -f conftest.$ac_objext
36083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36084 (eval $ac_compile) 2>conftest.er1
36086 grep -v '^ *+' conftest.er1 >conftest.err
36088 cat conftest.err >&5
36089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090 (exit $ac_status); } &&
36091 { ac_try='test -z "$ac_c_werror_flag"
36092 || test ! -s conftest.err'
36093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36094 (eval $ac_try) 2>&5
36096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36097 (exit $ac_status); }; } &&
36098 { ac_try='test -s conftest.$ac_objext'
36099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36100 (eval $ac_try) 2>&5
36102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103 (exit $ac_status); }; }; then
36106 echo "$as_me: failed program was:" >&5
36107 sed 's/^/| /' conftest.$ac_ext >&5
36109 ac_lo=`expr '(' $ac_mid ')' + 1`
36111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36114 ?*) ac_cv_sizeof_long=$ac_lo;;
36115 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36116 See \`config.log' for more details." >&5
36117 echo "$as_me: error: cannot compute sizeof (long), 77
36118 See \`config.log' for more details." >&2;}
36119 { (exit 1); exit 1; }; } ;;
36122 if test "$cross_compiling" = yes; then
36123 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36124 See \`config.log' for more details." >&5
36125 echo "$as_me: error: cannot run test program while cross compiling
36126 See \`config.log' for more details." >&2;}
36127 { (exit 1); exit 1; }; }
36129 cat >conftest.$ac_ext <<_ACEOF
36132 cat confdefs.h >>conftest.$ac_ext
36133 cat >>conftest.$ac_ext <<_ACEOF
36134 /* end confdefs.h. */
36135 $ac_includes_default
36136 long longval () { return (long) (sizeof (long)); }
36137 unsigned long ulongval () { return (long) (sizeof (long)); }
36139 #include <stdlib.h>
36144 FILE *f = fopen ("conftest.val", "w");
36147 if (((long) (sizeof (long))) < 0)
36149 long i = longval ();
36150 if (i != ((long) (sizeof (long))))
36152 fprintf (f, "%ld\n", i);
36156 unsigned long i = ulongval ();
36157 if (i != ((long) (sizeof (long))))
36159 fprintf (f, "%lu\n", i);
36161 exit (ferror (f) || fclose (f) != 0);
36167 rm -f conftest$ac_exeext
36168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36169 (eval $ac_link) 2>&5
36171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36174 (eval $ac_try) 2>&5
36176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177 (exit $ac_status); }; }; then
36178 ac_cv_sizeof_long=`cat conftest.val`
36180 echo "$as_me: program exited with status $ac_status" >&5
36181 echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36184 ( exit $ac_status )
36185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36186 See \`config.log' for more details." >&5
36187 echo "$as_me: error: cannot compute sizeof (long), 77
36188 See \`config.log' for more details." >&2;}
36189 { (exit 1); exit 1; }; }
36191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36196 ac_cv_sizeof_long=0
36199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36200 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36201 cat >>confdefs.h <<_ACEOF
36202 #define SIZEOF_LONG $ac_cv_sizeof_long
36206 echo "$as_me:$LINENO: checking for long long" >&5
36207 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36208 if test "${ac_cv_type_long_long+set}" = set; then
36209 echo $ECHO_N "(cached) $ECHO_C" >&6
36211 cat >conftest.$ac_ext <<_ACEOF
36214 cat confdefs.h >>conftest.$ac_ext
36215 cat >>conftest.$ac_ext <<_ACEOF
36216 /* end confdefs.h. */
36217 $ac_includes_default
36221 if ((long long *) 0)
36223 if (sizeof (long long))
36229 rm -f conftest.$ac_objext
36230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36231 (eval $ac_compile) 2>conftest.er1
36233 grep -v '^ *+' conftest.er1 >conftest.err
36235 cat conftest.err >&5
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); } &&
36238 { ac_try='test -z "$ac_c_werror_flag"
36239 || test ! -s conftest.err'
36240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36241 (eval $ac_try) 2>&5
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); }; } &&
36245 { ac_try='test -s conftest.$ac_objext'
36246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36247 (eval $ac_try) 2>&5
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; }; then
36251 ac_cv_type_long_long=yes
36253 echo "$as_me: failed program was:" >&5
36254 sed 's/^/| /' conftest.$ac_ext >&5
36256 ac_cv_type_long_long=no
36258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36260 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36261 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36263 echo "$as_me:$LINENO: checking size of long long" >&5
36264 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36265 if test "${ac_cv_sizeof_long_long+set}" = set; then
36266 echo $ECHO_N "(cached) $ECHO_C" >&6
36268 if test "$ac_cv_type_long_long" = yes; then
36269 # The cast to unsigned long works around a bug in the HP C Compiler
36270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36272 # This bug is HP SR number 8606223364.
36273 if test "$cross_compiling" = yes; then
36274 # Depending upon the size, compute the lo and hi bounds.
36275 cat >conftest.$ac_ext <<_ACEOF
36278 cat confdefs.h >>conftest.$ac_ext
36279 cat >>conftest.$ac_ext <<_ACEOF
36280 /* end confdefs.h. */
36281 $ac_includes_default
36285 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36292 rm -f conftest.$ac_objext
36293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36294 (eval $ac_compile) 2>conftest.er1
36296 grep -v '^ *+' conftest.er1 >conftest.err
36298 cat conftest.err >&5
36299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36300 (exit $ac_status); } &&
36301 { ac_try='test -z "$ac_c_werror_flag"
36302 || test ! -s conftest.err'
36303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36304 (eval $ac_try) 2>&5
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); }; } &&
36308 { ac_try='test -s conftest.$ac_objext'
36309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36310 (eval $ac_try) 2>&5
36312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); }; }; then
36316 cat >conftest.$ac_ext <<_ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h. */
36322 $ac_includes_default
36326 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36333 rm -f conftest.$ac_objext
36334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36335 (eval $ac_compile) 2>conftest.er1
36337 grep -v '^ *+' conftest.er1 >conftest.err
36339 cat conftest.err >&5
36340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341 (exit $ac_status); } &&
36342 { ac_try='test -z "$ac_c_werror_flag"
36343 || test ! -s conftest.err'
36344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345 (eval $ac_try) 2>&5
36347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348 (exit $ac_status); }; } &&
36349 { ac_try='test -s conftest.$ac_objext'
36350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351 (eval $ac_try) 2>&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); }; }; then
36355 ac_hi=$ac_mid; break
36357 echo "$as_me: failed program was:" >&5
36358 sed 's/^/| /' conftest.$ac_ext >&5
36360 ac_lo=`expr $ac_mid + 1`
36361 if test $ac_lo -le $ac_mid; then
36365 ac_mid=`expr 2 '*' $ac_mid + 1`
36367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36370 echo "$as_me: failed program was:" >&5
36371 sed 's/^/| /' conftest.$ac_ext >&5
36373 cat >conftest.$ac_ext <<_ACEOF
36376 cat confdefs.h >>conftest.$ac_ext
36377 cat >>conftest.$ac_ext <<_ACEOF
36378 /* end confdefs.h. */
36379 $ac_includes_default
36383 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36390 rm -f conftest.$ac_objext
36391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36392 (eval $ac_compile) 2>conftest.er1
36394 grep -v '^ *+' conftest.er1 >conftest.err
36396 cat conftest.err >&5
36397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398 (exit $ac_status); } &&
36399 { ac_try='test -z "$ac_c_werror_flag"
36400 || test ! -s conftest.err'
36401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36402 (eval $ac_try) 2>&5
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); }; } &&
36406 { ac_try='test -s conftest.$ac_objext'
36407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36408 (eval $ac_try) 2>&5
36410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411 (exit $ac_status); }; }; then
36414 cat >conftest.$ac_ext <<_ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h. */
36420 $ac_includes_default
36424 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36431 rm -f conftest.$ac_objext
36432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36433 (eval $ac_compile) 2>conftest.er1
36435 grep -v '^ *+' conftest.er1 >conftest.err
36437 cat conftest.err >&5
36438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36439 (exit $ac_status); } &&
36440 { ac_try='test -z "$ac_c_werror_flag"
36441 || test ! -s conftest.err'
36442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443 (eval $ac_try) 2>&5
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); }; } &&
36447 { ac_try='test -s conftest.$ac_objext'
36448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36449 (eval $ac_try) 2>&5
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); }; }; then
36453 ac_lo=$ac_mid; break
36455 echo "$as_me: failed program was:" >&5
36456 sed 's/^/| /' conftest.$ac_ext >&5
36458 ac_hi=`expr '(' $ac_mid ')' - 1`
36459 if test $ac_mid -le $ac_hi; then
36463 ac_mid=`expr 2 '*' $ac_mid`
36465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36468 echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36476 # Binary search between lo and hi bounds.
36477 while test "x$ac_lo" != "x$ac_hi"; do
36478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36479 cat >conftest.$ac_ext <<_ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h. */
36485 $ac_includes_default
36489 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36496 rm -f conftest.$ac_objext
36497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36498 (eval $ac_compile) 2>conftest.er1
36500 grep -v '^ *+' conftest.er1 >conftest.err
36502 cat conftest.err >&5
36503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36504 (exit $ac_status); } &&
36505 { ac_try='test -z "$ac_c_werror_flag"
36506 || test ! -s conftest.err'
36507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36508 (eval $ac_try) 2>&5
36510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511 (exit $ac_status); }; } &&
36512 { ac_try='test -s conftest.$ac_objext'
36513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36514 (eval $ac_try) 2>&5
36516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517 (exit $ac_status); }; }; then
36520 echo "$as_me: failed program was:" >&5
36521 sed 's/^/| /' conftest.$ac_ext >&5
36523 ac_lo=`expr '(' $ac_mid ')' + 1`
36525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36528 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36529 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36530 See \`config.log' for more details." >&5
36531 echo "$as_me: error: cannot compute sizeof (long long), 77
36532 See \`config.log' for more details." >&2;}
36533 { (exit 1); exit 1; }; } ;;
36536 if test "$cross_compiling" = yes; then
36537 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36538 See \`config.log' for more details." >&5
36539 echo "$as_me: error: cannot run test program while cross compiling
36540 See \`config.log' for more details." >&2;}
36541 { (exit 1); exit 1; }; }
36543 cat >conftest.$ac_ext <<_ACEOF
36546 cat confdefs.h >>conftest.$ac_ext
36547 cat >>conftest.$ac_ext <<_ACEOF
36548 /* end confdefs.h. */
36549 $ac_includes_default
36550 long longval () { return (long) (sizeof (long long)); }
36551 unsigned long ulongval () { return (long) (sizeof (long long)); }
36553 #include <stdlib.h>
36558 FILE *f = fopen ("conftest.val", "w");
36561 if (((long) (sizeof (long long))) < 0)
36563 long i = longval ();
36564 if (i != ((long) (sizeof (long long))))
36566 fprintf (f, "%ld\n", i);
36570 unsigned long i = ulongval ();
36571 if (i != ((long) (sizeof (long long))))
36573 fprintf (f, "%lu\n", i);
36575 exit (ferror (f) || fclose (f) != 0);
36581 rm -f conftest$ac_exeext
36582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36583 (eval $ac_link) 2>&5
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36588 (eval $ac_try) 2>&5
36590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36591 (exit $ac_status); }; }; then
36592 ac_cv_sizeof_long_long=`cat conftest.val`
36594 echo "$as_me: program exited with status $ac_status" >&5
36595 echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36598 ( exit $ac_status )
36599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36600 See \`config.log' for more details." >&5
36601 echo "$as_me: error: cannot compute sizeof (long long), 77
36602 See \`config.log' for more details." >&2;}
36603 { (exit 1); exit 1; }; }
36605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36610 ac_cv_sizeof_long_long=0
36613 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36614 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36615 cat >>confdefs.h <<_ACEOF
36616 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36620 echo "$as_me:$LINENO: checking for wchar_t" >&5
36621 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36622 if test "${ac_cv_type_wchar_t+set}" = set; then
36623 echo $ECHO_N "(cached) $ECHO_C" >&6
36625 cat >conftest.$ac_ext <<_ACEOF
36628 cat confdefs.h >>conftest.$ac_ext
36629 cat >>conftest.$ac_ext <<_ACEOF
36630 /* end confdefs.h. */
36631 $ac_includes_default
36637 if (sizeof (wchar_t))
36643 rm -f conftest.$ac_objext
36644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36645 (eval $ac_compile) 2>conftest.er1
36647 grep -v '^ *+' conftest.er1 >conftest.err
36649 cat conftest.err >&5
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); } &&
36652 { ac_try='test -z "$ac_c_werror_flag"
36653 || test ! -s conftest.err'
36654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36655 (eval $ac_try) 2>&5
36657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36658 (exit $ac_status); }; } &&
36659 { ac_try='test -s conftest.$ac_objext'
36660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36661 (eval $ac_try) 2>&5
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); }; }; then
36665 ac_cv_type_wchar_t=yes
36667 echo "$as_me: failed program was:" >&5
36668 sed 's/^/| /' conftest.$ac_ext >&5
36670 ac_cv_type_wchar_t=no
36672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36674 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36675 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36677 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36678 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36679 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36680 echo $ECHO_N "(cached) $ECHO_C" >&6
36682 if test "$ac_cv_type_wchar_t" = yes; then
36683 # The cast to unsigned long works around a bug in the HP C Compiler
36684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36686 # This bug is HP SR number 8606223364.
36687 if test "$cross_compiling" = yes; then
36688 # Depending upon the size, compute the lo and hi bounds.
36689 cat >conftest.$ac_ext <<_ACEOF
36692 cat confdefs.h >>conftest.$ac_ext
36693 cat >>conftest.$ac_ext <<_ACEOF
36694 /* end confdefs.h. */
36695 $ac_includes_default
36699 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
36706 rm -f conftest.$ac_objext
36707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36708 (eval $ac_compile) 2>conftest.er1
36710 grep -v '^ *+' conftest.er1 >conftest.err
36712 cat conftest.err >&5
36713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714 (exit $ac_status); } &&
36715 { ac_try='test -z "$ac_c_werror_flag"
36716 || test ! -s conftest.err'
36717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36718 (eval $ac_try) 2>&5
36720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721 (exit $ac_status); }; } &&
36722 { ac_try='test -s conftest.$ac_objext'
36723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724 (eval $ac_try) 2>&5
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); }; }; then
36730 cat >conftest.$ac_ext <<_ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h. */
36736 $ac_includes_default
36740 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36747 rm -f conftest.$ac_objext
36748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749 (eval $ac_compile) 2>conftest.er1
36751 grep -v '^ *+' conftest.er1 >conftest.err
36753 cat conftest.err >&5
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); } &&
36756 { ac_try='test -z "$ac_c_werror_flag"
36757 || test ! -s conftest.err'
36758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36759 (eval $ac_try) 2>&5
36761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762 (exit $ac_status); }; } &&
36763 { ac_try='test -s conftest.$ac_objext'
36764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765 (eval $ac_try) 2>&5
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); }; }; then
36769 ac_hi=$ac_mid; break
36771 echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36774 ac_lo=`expr $ac_mid + 1`
36775 if test $ac_lo -le $ac_mid; then
36779 ac_mid=`expr 2 '*' $ac_mid + 1`
36781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36784 echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36787 cat >conftest.$ac_ext <<_ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h. */
36793 $ac_includes_default
36797 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
36804 rm -f conftest.$ac_objext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36806 (eval $ac_compile) 2>conftest.er1
36808 grep -v '^ *+' conftest.er1 >conftest.err
36810 cat conftest.err >&5
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); } &&
36813 { ac_try='test -z "$ac_c_werror_flag"
36814 || test ! -s conftest.err'
36815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816 (eval $ac_try) 2>&5
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); }; } &&
36820 { ac_try='test -s conftest.$ac_objext'
36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822 (eval $ac_try) 2>&5
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; }; then
36828 cat >conftest.$ac_ext <<_ACEOF
36831 cat confdefs.h >>conftest.$ac_ext
36832 cat >>conftest.$ac_ext <<_ACEOF
36833 /* end confdefs.h. */
36834 $ac_includes_default
36838 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
36845 rm -f conftest.$ac_objext
36846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36847 (eval $ac_compile) 2>conftest.er1
36849 grep -v '^ *+' conftest.er1 >conftest.err
36851 cat conftest.err >&5
36852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853 (exit $ac_status); } &&
36854 { ac_try='test -z "$ac_c_werror_flag"
36855 || test ! -s conftest.err'
36856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36857 (eval $ac_try) 2>&5
36859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860 (exit $ac_status); }; } &&
36861 { ac_try='test -s conftest.$ac_objext'
36862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36863 (eval $ac_try) 2>&5
36865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866 (exit $ac_status); }; }; then
36867 ac_lo=$ac_mid; break
36869 echo "$as_me: failed program was:" >&5
36870 sed 's/^/| /' conftest.$ac_ext >&5
36872 ac_hi=`expr '(' $ac_mid ')' - 1`
36873 if test $ac_mid -le $ac_hi; then
36877 ac_mid=`expr 2 '*' $ac_mid`
36879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36882 echo "$as_me: failed program was:" >&5
36883 sed 's/^/| /' conftest.$ac_ext >&5
36887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36890 # Binary search between lo and hi bounds.
36891 while test "x$ac_lo" != "x$ac_hi"; do
36892 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36893 cat >conftest.$ac_ext <<_ACEOF
36896 cat confdefs.h >>conftest.$ac_ext
36897 cat >>conftest.$ac_ext <<_ACEOF
36898 /* end confdefs.h. */
36899 $ac_includes_default
36903 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36910 rm -f conftest.$ac_objext
36911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36912 (eval $ac_compile) 2>conftest.er1
36914 grep -v '^ *+' conftest.er1 >conftest.err
36916 cat conftest.err >&5
36917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918 (exit $ac_status); } &&
36919 { ac_try='test -z "$ac_c_werror_flag"
36920 || test ! -s conftest.err'
36921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36922 (eval $ac_try) 2>&5
36924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36925 (exit $ac_status); }; } &&
36926 { ac_try='test -s conftest.$ac_objext'
36927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36928 (eval $ac_try) 2>&5
36930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931 (exit $ac_status); }; }; then
36934 echo "$as_me: failed program was:" >&5
36935 sed 's/^/| /' conftest.$ac_ext >&5
36937 ac_lo=`expr '(' $ac_mid ')' + 1`
36939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36942 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
36943 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
36944 See \`config.log' for more details." >&5
36945 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
36946 See \`config.log' for more details." >&2;}
36947 { (exit 1); exit 1; }; } ;;
36950 if test "$cross_compiling" = yes; then
36951 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36952 See \`config.log' for more details." >&5
36953 echo "$as_me: error: cannot run test program while cross compiling
36954 See \`config.log' for more details." >&2;}
36955 { (exit 1); exit 1; }; }
36957 cat >conftest.$ac_ext <<_ACEOF
36960 cat confdefs.h >>conftest.$ac_ext
36961 cat >>conftest.$ac_ext <<_ACEOF
36962 /* end confdefs.h. */
36963 $ac_includes_default
36964 long longval () { return (long) (sizeof (wchar_t)); }
36965 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
36967 #include <stdlib.h>
36972 FILE *f = fopen ("conftest.val", "w");
36975 if (((long) (sizeof (wchar_t))) < 0)
36977 long i = longval ();
36978 if (i != ((long) (sizeof (wchar_t))))
36980 fprintf (f, "%ld\n", i);
36984 unsigned long i = ulongval ();
36985 if (i != ((long) (sizeof (wchar_t))))
36987 fprintf (f, "%lu\n", i);
36989 exit (ferror (f) || fclose (f) != 0);
36995 rm -f conftest$ac_exeext
36996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36997 (eval $ac_link) 2>&5
36999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37002 (eval $ac_try) 2>&5
37004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37005 (exit $ac_status); }; }; then
37006 ac_cv_sizeof_wchar_t=`cat conftest.val`
37008 echo "$as_me: program exited with status $ac_status" >&5
37009 echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37012 ( exit $ac_status )
37013 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37014 See \`config.log' for more details." >&5
37015 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37016 See \`config.log' for more details." >&2;}
37017 { (exit 1); exit 1; }; }
37019 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37024 ac_cv_sizeof_wchar_t=0
37027 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37028 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37029 cat >>confdefs.h <<_ACEOF
37030 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37035 if test "$ac_cv_sizeof_int" -lt 4 ; then
37036 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37037 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37040 cat >>confdefs.h <<\_ACEOF
37041 #define LBER_INT_T long
37046 cat >>confdefs.h <<\_ACEOF
37047 #define LBER_INT_T int
37053 cat >>confdefs.h <<\_ACEOF
37054 #define LBER_LEN_T long
37058 cat >>confdefs.h <<\_ACEOF
37059 #define LBER_SOCKET_T int
37063 cat >>confdefs.h <<\_ACEOF
37064 #define LBER_TAG_T long
37068 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37069 if test $ac_cv_sizeof_long_long -gt 4 ; then
37070 ol_with_mp=longlong
37072 cat >>confdefs.h <<\_ACEOF
37073 #define USE_MP_LONG_LONG 1
37076 elif test $ol_with_mp = longlong ; then
37077 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37078 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37079 { (exit 1); exit 1; }; }
37082 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37083 if test $ac_cv_sizeof_long -gt 4 ; then
37086 cat >>confdefs.h <<\_ACEOF
37087 #define USE_MP_LONG 1
37090 elif test $ol_with_mp = long ; then
37091 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37092 echo "$as_me: error: long unusable for multiple precision" >&2;}
37093 { (exit 1); exit 1; }; }
37096 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37098 for ac_header in openssl/bn.h
37100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37102 echo "$as_me:$LINENO: checking for $ac_header" >&5
37103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37105 echo $ECHO_N "(cached) $ECHO_C" >&6
37107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37110 # Is the header compilable?
37111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37113 cat >conftest.$ac_ext <<_ACEOF
37116 cat confdefs.h >>conftest.$ac_ext
37117 cat >>conftest.$ac_ext <<_ACEOF
37118 /* end confdefs.h. */
37119 $ac_includes_default
37120 #include <$ac_header>
37122 rm -f conftest.$ac_objext
37123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37124 (eval $ac_compile) 2>conftest.er1
37126 grep -v '^ *+' conftest.er1 >conftest.err
37128 cat conftest.err >&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } &&
37131 { ac_try='test -z "$ac_c_werror_flag"
37132 || test ! -s conftest.err'
37133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37134 (eval $ac_try) 2>&5
37136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37137 (exit $ac_status); }; } &&
37138 { ac_try='test -s conftest.$ac_objext'
37139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37140 (eval $ac_try) 2>&5
37142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143 (exit $ac_status); }; }; then
37144 ac_header_compiler=yes
37146 echo "$as_me: failed program was:" >&5
37147 sed 's/^/| /' conftest.$ac_ext >&5
37149 ac_header_compiler=no
37151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37153 echo "${ECHO_T}$ac_header_compiler" >&6
37155 # Is the header present?
37156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37158 cat >conftest.$ac_ext <<_ACEOF
37161 cat confdefs.h >>conftest.$ac_ext
37162 cat >>conftest.$ac_ext <<_ACEOF
37163 /* end confdefs.h. */
37164 #include <$ac_header>
37166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37169 grep -v '^ *+' conftest.er1 >conftest.err
37171 cat conftest.err >&5
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); } >/dev/null; then
37174 if test -s conftest.err; then
37175 ac_cpp_err=$ac_c_preproc_warn_flag
37176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37183 if test -z "$ac_cpp_err"; then
37184 ac_header_preproc=yes
37186 echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37189 ac_header_preproc=no
37191 rm -f conftest.err conftest.$ac_ext
37192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37193 echo "${ECHO_T}$ac_header_preproc" >&6
37195 # So? What about this header?
37196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37202 ac_header_preproc=yes
37205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37219 ## --------------------------------------------- ##
37220 ## Report this to <http://www.openldap.org/its/> ##
37221 ## --------------------------------------------- ##
37224 sed "s/^/$as_me: WARNING: /" >&2
37227 echo "$as_me:$LINENO: checking for $ac_header" >&5
37228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37230 echo $ECHO_N "(cached) $ECHO_C" >&6
37232 eval "$as_ac_Header=\$ac_header_preproc"
37234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37239 cat >>confdefs.h <<_ACEOF
37240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37248 for ac_header in openssl/crypto.h
37250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37252 echo "$as_me:$LINENO: checking for $ac_header" >&5
37253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37255 echo $ECHO_N "(cached) $ECHO_C" >&6
37257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37260 # Is the header compilable?
37261 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37262 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37263 cat >conftest.$ac_ext <<_ACEOF
37266 cat confdefs.h >>conftest.$ac_ext
37267 cat >>conftest.$ac_ext <<_ACEOF
37268 /* end confdefs.h. */
37269 $ac_includes_default
37270 #include <$ac_header>
37272 rm -f conftest.$ac_objext
37273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37274 (eval $ac_compile) 2>conftest.er1
37276 grep -v '^ *+' conftest.er1 >conftest.err
37278 cat conftest.err >&5
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); } &&
37281 { ac_try='test -z "$ac_c_werror_flag"
37282 || test ! -s conftest.err'
37283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37284 (eval $ac_try) 2>&5
37286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287 (exit $ac_status); }; } &&
37288 { ac_try='test -s conftest.$ac_objext'
37289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290 (eval $ac_try) 2>&5
37292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293 (exit $ac_status); }; }; then
37294 ac_header_compiler=yes
37296 echo "$as_me: failed program was:" >&5
37297 sed 's/^/| /' conftest.$ac_ext >&5
37299 ac_header_compiler=no
37301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37302 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37303 echo "${ECHO_T}$ac_header_compiler" >&6
37305 # Is the header present?
37306 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37308 cat >conftest.$ac_ext <<_ACEOF
37311 cat confdefs.h >>conftest.$ac_ext
37312 cat >>conftest.$ac_ext <<_ACEOF
37313 /* end confdefs.h. */
37314 #include <$ac_header>
37316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37319 grep -v '^ *+' conftest.er1 >conftest.err
37321 cat conftest.err >&5
37322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323 (exit $ac_status); } >/dev/null; then
37324 if test -s conftest.err; then
37325 ac_cpp_err=$ac_c_preproc_warn_flag
37326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37333 if test -z "$ac_cpp_err"; then
37334 ac_header_preproc=yes
37336 echo "$as_me: failed program was:" >&5
37337 sed 's/^/| /' conftest.$ac_ext >&5
37339 ac_header_preproc=no
37341 rm -f conftest.err conftest.$ac_ext
37342 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37343 echo "${ECHO_T}$ac_header_preproc" >&6
37345 # So? What about this header?
37346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37352 ac_header_preproc=yes
37355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37369 ## --------------------------------------------- ##
37370 ## Report this to <http://www.openldap.org/its/> ##
37371 ## --------------------------------------------- ##
37374 sed "s/^/$as_me: WARNING: /" >&2
37377 echo "$as_me:$LINENO: checking for $ac_header" >&5
37378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37380 echo $ECHO_N "(cached) $ECHO_C" >&6
37382 eval "$as_ac_Header=\$ac_header_preproc"
37384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37389 cat >>confdefs.h <<_ACEOF
37390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37397 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37398 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37399 test "$ol_with_tls" = "found" ; then
37402 cat >>confdefs.h <<\_ACEOF
37403 #define USE_MP_BIGNUM 1
37406 elif test $ol_with_mp = bignum ; then
37407 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37408 echo "$as_me: error: bignum not available" >&2;}
37409 { (exit 1); exit 1; }; }
37412 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37414 for ac_header in gmp.h
37416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37418 echo "$as_me:$LINENO: checking for $ac_header" >&5
37419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37421 echo $ECHO_N "(cached) $ECHO_C" >&6
37423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37426 # Is the header compilable?
37427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37429 cat >conftest.$ac_ext <<_ACEOF
37432 cat confdefs.h >>conftest.$ac_ext
37433 cat >>conftest.$ac_ext <<_ACEOF
37434 /* end confdefs.h. */
37435 $ac_includes_default
37436 #include <$ac_header>
37438 rm -f conftest.$ac_objext
37439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37440 (eval $ac_compile) 2>conftest.er1
37442 grep -v '^ *+' conftest.er1 >conftest.err
37444 cat conftest.err >&5
37445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 (exit $ac_status); } &&
37447 { ac_try='test -z "$ac_c_werror_flag"
37448 || test ! -s conftest.err'
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; } &&
37454 { ac_try='test -s conftest.$ac_objext'
37455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456 (eval $ac_try) 2>&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
37460 ac_header_compiler=yes
37462 echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37465 ac_header_compiler=no
37467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37469 echo "${ECHO_T}$ac_header_compiler" >&6
37471 # Is the header present?
37472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37474 cat >conftest.$ac_ext <<_ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h. */
37480 #include <$ac_header>
37482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37485 grep -v '^ *+' conftest.er1 >conftest.err
37487 cat conftest.err >&5
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); } >/dev/null; then
37490 if test -s conftest.err; then
37491 ac_cpp_err=$ac_c_preproc_warn_flag
37492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37499 if test -z "$ac_cpp_err"; then
37500 ac_header_preproc=yes
37502 echo "$as_me: failed program was:" >&5
37503 sed 's/^/| /' conftest.$ac_ext >&5
37505 ac_header_preproc=no
37507 rm -f conftest.err conftest.$ac_ext
37508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37509 echo "${ECHO_T}$ac_header_preproc" >&6
37511 # So? What about this header?
37512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37518 ac_header_preproc=yes
37521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37535 ## --------------------------------------------- ##
37536 ## Report this to <http://www.openldap.org/its/> ##
37537 ## --------------------------------------------- ##
37540 sed "s/^/$as_me: WARNING: /" >&2
37543 echo "$as_me:$LINENO: checking for $ac_header" >&5
37544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37546 echo $ECHO_N "(cached) $ECHO_C" >&6
37548 eval "$as_ac_Header=\$ac_header_preproc"
37550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37555 cat >>confdefs.h <<_ACEOF
37556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37564 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37565 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37566 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37567 echo $ECHO_N "(cached) $ECHO_C" >&6
37569 ac_check_lib_save_LIBS=$LIBS
37571 cat >conftest.$ac_ext <<_ACEOF
37574 cat confdefs.h >>conftest.$ac_ext
37575 cat >>conftest.$ac_ext <<_ACEOF
37576 /* end confdefs.h. */
37578 /* Override any gcc2 internal prototype to avoid an error. */
37582 /* We use char because int might match the return type of a gcc2
37583 builtin and then its argument prototype would still apply. */
37584 char __gmpz_add_ui ();
37593 rm -f conftest.$ac_objext conftest$ac_exeext
37594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37595 (eval $ac_link) 2>conftest.er1
37597 grep -v '^ *+' conftest.er1 >conftest.err
37599 cat conftest.err >&5
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); } &&
37602 { ac_try='test -z "$ac_c_werror_flag"
37603 || test ! -s conftest.err'
37604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37605 (eval $ac_try) 2>&5
37607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608 (exit $ac_status); }; } &&
37609 { ac_try='test -s conftest$ac_exeext'
37610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37611 (eval $ac_try) 2>&5
37613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614 (exit $ac_status); }; }; then
37615 ac_cv_lib_gmp___gmpz_add_ui=yes
37617 echo "$as_me: failed program was:" >&5
37618 sed 's/^/| /' conftest.$ac_ext >&5
37620 ac_cv_lib_gmp___gmpz_add_ui=no
37622 rm -f conftest.err conftest.$ac_objext \
37623 conftest$ac_exeext conftest.$ac_ext
37624 LIBS=$ac_check_lib_save_LIBS
37626 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37627 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37628 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37629 cat >>confdefs.h <<_ACEOF
37630 #define HAVE_LIBGMP 1
37637 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37639 cat >>confdefs.h <<\_ACEOF
37640 #define USE_MP_GMP 1
37644 elif test $ol_with_mp = gmp ; then
37645 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37646 echo "$as_me: error: gmp not available" >&2;}
37647 { (exit 1); exit 1; }; }
37650 if test $ol_with_mp = auto ; then
37654 echo "$as_me:$LINENO: checking for working memcmp" >&5
37655 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37656 if test "${ac_cv_func_memcmp_working+set}" = set; then
37657 echo $ECHO_N "(cached) $ECHO_C" >&6
37659 if test "$cross_compiling" = yes; then
37660 ac_cv_func_memcmp_working=no
37662 cat >conftest.$ac_ext <<_ACEOF
37665 cat confdefs.h >>conftest.$ac_ext
37666 cat >>conftest.$ac_ext <<_ACEOF
37667 /* end confdefs.h. */
37668 $ac_includes_default
37673 /* Some versions of memcmp are not 8-bit clean. */
37674 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37675 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37678 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37679 or more and with at least one buffer not starting on a 4-byte boundary.
37680 William Lewis provided this test program. */
37685 for (i = 0; i < 4; i++)
37689 strcpy (a, "--------01111111");
37690 strcpy (b, "--------10000000");
37691 if (memcmp (a, b, 16) >= 0)
37701 rm -f conftest$ac_exeext
37702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37703 (eval $ac_link) 2>&5
37705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37708 (eval $ac_try) 2>&5
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); }; }; then
37712 ac_cv_func_memcmp_working=yes
37714 echo "$as_me: program exited with status $ac_status" >&5
37715 echo "$as_me: failed program was:" >&5
37716 sed 's/^/| /' conftest.$ac_ext >&5
37718 ( exit $ac_status )
37719 ac_cv_func_memcmp_working=no
37721 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37724 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
37725 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
37726 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
37727 "memcmp.$ac_objext" | \
37728 *" memcmp.$ac_objext" | \
37729 "memcmp.$ac_objext "* | \
37730 *" memcmp.$ac_objext "* ) ;;
37731 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
37736 if test $ac_cv_func_memcmp_working = no ; then
37738 cat >>confdefs.h <<\_ACEOF
37739 #define NEED_MEMCMP_REPLACEMENT 1
37745 for ac_func in strftime
37747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37748 echo "$as_me:$LINENO: checking for $ac_func" >&5
37749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37750 if eval "test \"\${$as_ac_var+set}\" = set"; then
37751 echo $ECHO_N "(cached) $ECHO_C" >&6
37753 cat >conftest.$ac_ext <<_ACEOF
37756 cat confdefs.h >>conftest.$ac_ext
37757 cat >>conftest.$ac_ext <<_ACEOF
37758 /* end confdefs.h. */
37759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37761 #define $ac_func innocuous_$ac_func
37763 /* System header to define __stub macros and hopefully few prototypes,
37764 which can conflict with char $ac_func (); below.
37765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37766 <limits.h> exists even on freestanding compilers. */
37769 # include <limits.h>
37771 # include <assert.h>
37776 /* Override any gcc2 internal prototype to avoid an error. */
37781 /* We use char because int might match the return type of a gcc2
37782 builtin and then its argument prototype would still apply. */
37784 /* The GNU C library defines this for functions which it implements
37785 to always fail with ENOSYS. Some functions are actually named
37786 something starting with __ and the normal name is an alias. */
37787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37790 char (*f) () = $ac_func;
37799 return f != $ac_func;
37804 rm -f conftest.$ac_objext conftest$ac_exeext
37805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37806 (eval $ac_link) 2>conftest.er1
37808 grep -v '^ *+' conftest.er1 >conftest.err
37810 cat conftest.err >&5
37811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37812 (exit $ac_status); } &&
37813 { ac_try='test -z "$ac_c_werror_flag"
37814 || test ! -s conftest.err'
37815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37816 (eval $ac_try) 2>&5
37818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819 (exit $ac_status); }; } &&
37820 { ac_try='test -s conftest$ac_exeext'
37821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37822 (eval $ac_try) 2>&5
37824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37825 (exit $ac_status); }; }; then
37826 eval "$as_ac_var=yes"
37828 echo "$as_me: failed program was:" >&5
37829 sed 's/^/| /' conftest.$ac_ext >&5
37831 eval "$as_ac_var=no"
37833 rm -f conftest.err conftest.$ac_objext \
37834 conftest$ac_exeext conftest.$ac_ext
37836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37838 if test `eval echo '${'$as_ac_var'}'` = yes; then
37839 cat >>confdefs.h <<_ACEOF
37840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37844 # strftime is in -lintl on SCO UNIX.
37845 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
37846 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
37847 if test "${ac_cv_lib_intl_strftime+set}" = set; then
37848 echo $ECHO_N "(cached) $ECHO_C" >&6
37850 ac_check_lib_save_LIBS=$LIBS
37851 LIBS="-lintl $LIBS"
37852 cat >conftest.$ac_ext <<_ACEOF
37855 cat confdefs.h >>conftest.$ac_ext
37856 cat >>conftest.$ac_ext <<_ACEOF
37857 /* end confdefs.h. */
37859 /* Override any gcc2 internal prototype to avoid an error. */
37863 /* We use char because int might match the return type of a gcc2
37864 builtin and then its argument prototype would still apply. */
37874 rm -f conftest.$ac_objext conftest$ac_exeext
37875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37876 (eval $ac_link) 2>conftest.er1
37878 grep -v '^ *+' conftest.er1 >conftest.err
37880 cat conftest.err >&5
37881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882 (exit $ac_status); } &&
37883 { ac_try='test -z "$ac_c_werror_flag"
37884 || test ! -s conftest.err'
37885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886 (eval $ac_try) 2>&5
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); }; } &&
37890 { ac_try='test -s conftest$ac_exeext'
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; }; then
37896 ac_cv_lib_intl_strftime=yes
37898 echo "$as_me: failed program was:" >&5
37899 sed 's/^/| /' conftest.$ac_ext >&5
37901 ac_cv_lib_intl_strftime=no
37903 rm -f conftest.err conftest.$ac_objext \
37904 conftest$ac_exeext conftest.$ac_ext
37905 LIBS=$ac_check_lib_save_LIBS
37907 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
37908 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
37909 if test $ac_cv_lib_intl_strftime = yes; then
37910 cat >>confdefs.h <<\_ACEOF
37911 #define HAVE_STRFTIME 1
37914 LIBS="-lintl $LIBS"
37921 echo "$as_me:$LINENO: checking for inet_aton()" >&5
37922 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
37923 if test "${ol_cv_func_inet_aton+set}" = set; then
37924 echo $ECHO_N "(cached) $ECHO_C" >&6
37926 cat >conftest.$ac_ext <<_ACEOF
37929 cat confdefs.h >>conftest.$ac_ext
37930 cat >>conftest.$ac_ext <<_ACEOF
37931 /* end confdefs.h. */
37933 #ifdef HAVE_SYS_TYPES_H
37934 # include <sys/types.h>
37936 #ifdef HAVE_SYS_SOCKET_H
37937 # include <sys/socket.h>
37938 # ifdef HAVE_SYS_SELECT_H
37939 # include <sys/select.h>
37941 # include <netinet/in.h>
37942 # ifdef HAVE_ARPA_INET_H
37943 # include <arpa/inet.h>
37951 int rc = inet_aton( "255.255.255.255", &in );
37956 rm -f conftest.$ac_objext conftest$ac_exeext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37958 (eval $ac_link) 2>conftest.er1
37960 grep -v '^ *+' conftest.er1 >conftest.err
37962 cat conftest.err >&5
37963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964 (exit $ac_status); } &&
37965 { ac_try='test -z "$ac_c_werror_flag"
37966 || test ! -s conftest.err'
37967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968 (eval $ac_try) 2>&5
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); }; } &&
37972 { ac_try='test -s conftest$ac_exeext'
37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974 (eval $ac_try) 2>&5
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; }; then
37978 ol_cv_func_inet_aton=yes
37980 echo "$as_me: failed program was:" >&5
37981 sed 's/^/| /' conftest.$ac_ext >&5
37983 ol_cv_func_inet_aton=no
37985 rm -f conftest.err conftest.$ac_objext \
37986 conftest$ac_exeext conftest.$ac_ext
37988 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
37989 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
37990 if test $ol_cv_func_inet_aton != no; then
37992 cat >>confdefs.h <<\_ACEOF
37993 #define HAVE_INET_ATON 1
37999 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38000 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38001 if test "${ac_cv_func__spawnlp+set}" = set; then
38002 echo $ECHO_N "(cached) $ECHO_C" >&6
38004 cat >conftest.$ac_ext <<_ACEOF
38007 cat confdefs.h >>conftest.$ac_ext
38008 cat >>conftest.$ac_ext <<_ACEOF
38009 /* end confdefs.h. */
38010 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38012 #define _spawnlp innocuous__spawnlp
38014 /* System header to define __stub macros and hopefully few prototypes,
38015 which can conflict with char _spawnlp (); below.
38016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38017 <limits.h> exists even on freestanding compilers. */
38020 # include <limits.h>
38022 # include <assert.h>
38027 /* Override any gcc2 internal prototype to avoid an error. */
38032 /* We use char because int might match the return type of a gcc2
38033 builtin and then its argument prototype would still apply. */
38035 /* The GNU C library defines this for functions which it implements
38036 to always fail with ENOSYS. Some functions are actually named
38037 something starting with __ and the normal name is an alias. */
38038 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38041 char (*f) () = _spawnlp;
38050 return f != _spawnlp;
38055 rm -f conftest.$ac_objext conftest$ac_exeext
38056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38057 (eval $ac_link) 2>conftest.er1
38059 grep -v '^ *+' conftest.er1 >conftest.err
38061 cat conftest.err >&5
38062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063 (exit $ac_status); } &&
38064 { ac_try='test -z "$ac_c_werror_flag"
38065 || test ! -s conftest.err'
38066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38067 (eval $ac_try) 2>&5
38069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38070 (exit $ac_status); }; } &&
38071 { ac_try='test -s conftest$ac_exeext'
38072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38073 (eval $ac_try) 2>&5
38075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38076 (exit $ac_status); }; }; then
38077 ac_cv_func__spawnlp=yes
38079 echo "$as_me: failed program was:" >&5
38080 sed 's/^/| /' conftest.$ac_ext >&5
38082 ac_cv_func__spawnlp=no
38084 rm -f conftest.err conftest.$ac_objext \
38085 conftest$ac_exeext conftest.$ac_ext
38087 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38088 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38089 if test $ac_cv_func__spawnlp = yes; then
38091 cat >>confdefs.h <<\_ACEOF
38092 #define HAVE_SPAWNLP 1
38098 echo "$as_me:$LINENO: checking for _snprintf" >&5
38099 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38100 if test "${ac_cv_func__snprintf+set}" = set; then
38101 echo $ECHO_N "(cached) $ECHO_C" >&6
38103 cat >conftest.$ac_ext <<_ACEOF
38106 cat confdefs.h >>conftest.$ac_ext
38107 cat >>conftest.$ac_ext <<_ACEOF
38108 /* end confdefs.h. */
38109 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38111 #define _snprintf innocuous__snprintf
38113 /* System header to define __stub macros and hopefully few prototypes,
38114 which can conflict with char _snprintf (); below.
38115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38116 <limits.h> exists even on freestanding compilers. */
38119 # include <limits.h>
38121 # include <assert.h>
38126 /* Override any gcc2 internal prototype to avoid an error. */
38131 /* We use char because int might match the return type of a gcc2
38132 builtin and then its argument prototype would still apply. */
38134 /* The GNU C library defines this for functions which it implements
38135 to always fail with ENOSYS. Some functions are actually named
38136 something starting with __ and the normal name is an alias. */
38137 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38140 char (*f) () = _snprintf;
38149 return f != _snprintf;
38154 rm -f conftest.$ac_objext conftest$ac_exeext
38155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38156 (eval $ac_link) 2>conftest.er1
38158 grep -v '^ *+' conftest.er1 >conftest.err
38160 cat conftest.err >&5
38161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162 (exit $ac_status); } &&
38163 { ac_try='test -z "$ac_c_werror_flag"
38164 || test ! -s conftest.err'
38165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38166 (eval $ac_try) 2>&5
38168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169 (exit $ac_status); }; } &&
38170 { ac_try='test -s conftest$ac_exeext'
38171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38172 (eval $ac_try) 2>&5
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); }; }; then
38176 ac_cv_func__snprintf=yes
38178 echo "$as_me: failed program was:" >&5
38179 sed 's/^/| /' conftest.$ac_ext >&5
38181 ac_cv_func__snprintf=no
38183 rm -f conftest.err conftest.$ac_objext \
38184 conftest$ac_exeext conftest.$ac_ext
38186 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38187 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38188 if test $ac_cv_func__snprintf = yes; then
38189 ac_cv_func_snprintf=yes
38191 cat >>confdefs.h <<\_ACEOF
38192 #define snprintf _snprintf
38199 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38200 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38201 if test "${ac_cv_func__vsnprintf+set}" = set; then
38202 echo $ECHO_N "(cached) $ECHO_C" >&6
38204 cat >conftest.$ac_ext <<_ACEOF
38207 cat confdefs.h >>conftest.$ac_ext
38208 cat >>conftest.$ac_ext <<_ACEOF
38209 /* end confdefs.h. */
38210 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38212 #define _vsnprintf innocuous__vsnprintf
38214 /* System header to define __stub macros and hopefully few prototypes,
38215 which can conflict with char _vsnprintf (); below.
38216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38217 <limits.h> exists even on freestanding compilers. */
38220 # include <limits.h>
38222 # include <assert.h>
38227 /* Override any gcc2 internal prototype to avoid an error. */
38232 /* We use char because int might match the return type of a gcc2
38233 builtin and then its argument prototype would still apply. */
38234 char _vsnprintf ();
38235 /* The GNU C library defines this for functions which it implements
38236 to always fail with ENOSYS. Some functions are actually named
38237 something starting with __ and the normal name is an alias. */
38238 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38241 char (*f) () = _vsnprintf;
38250 return f != _vsnprintf;
38255 rm -f conftest.$ac_objext conftest$ac_exeext
38256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38257 (eval $ac_link) 2>conftest.er1
38259 grep -v '^ *+' conftest.er1 >conftest.err
38261 cat conftest.err >&5
38262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263 (exit $ac_status); } &&
38264 { ac_try='test -z "$ac_c_werror_flag"
38265 || test ! -s conftest.err'
38266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38267 (eval $ac_try) 2>&5
38269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38270 (exit $ac_status); }; } &&
38271 { ac_try='test -s conftest$ac_exeext'
38272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38273 (eval $ac_try) 2>&5
38275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38276 (exit $ac_status); }; }; then
38277 ac_cv_func__vsnprintf=yes
38279 echo "$as_me: failed program was:" >&5
38280 sed 's/^/| /' conftest.$ac_ext >&5
38282 ac_cv_func__vsnprintf=no
38284 rm -f conftest.err conftest.$ac_objext \
38285 conftest$ac_exeext conftest.$ac_ext
38287 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38288 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38289 if test $ac_cv_func__vsnprintf = yes; then
38290 ac_cv_func_vsnprintf=yes
38292 cat >>confdefs.h <<\_ACEOF
38293 #define vsnprintf _vsnprintf
38301 for ac_func in vprintf
38303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38304 echo "$as_me:$LINENO: checking for $ac_func" >&5
38305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38306 if eval "test \"\${$as_ac_var+set}\" = set"; then
38307 echo $ECHO_N "(cached) $ECHO_C" >&6
38309 cat >conftest.$ac_ext <<_ACEOF
38312 cat confdefs.h >>conftest.$ac_ext
38313 cat >>conftest.$ac_ext <<_ACEOF
38314 /* end confdefs.h. */
38315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38317 #define $ac_func innocuous_$ac_func
38319 /* System header to define __stub macros and hopefully few prototypes,
38320 which can conflict with char $ac_func (); below.
38321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38322 <limits.h> exists even on freestanding compilers. */
38325 # include <limits.h>
38327 # include <assert.h>
38332 /* Override any gcc2 internal prototype to avoid an error. */
38337 /* We use char because int might match the return type of a gcc2
38338 builtin and then its argument prototype would still apply. */
38340 /* The GNU C library defines this for functions which it implements
38341 to always fail with ENOSYS. Some functions are actually named
38342 something starting with __ and the normal name is an alias. */
38343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38346 char (*f) () = $ac_func;
38355 return f != $ac_func;
38360 rm -f conftest.$ac_objext conftest$ac_exeext
38361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38362 (eval $ac_link) 2>conftest.er1
38364 grep -v '^ *+' conftest.er1 >conftest.err
38366 cat conftest.err >&5
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); } &&
38369 { ac_try='test -z "$ac_c_werror_flag"
38370 || test ! -s conftest.err'
38371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38372 (eval $ac_try) 2>&5
38374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375 (exit $ac_status); }; } &&
38376 { ac_try='test -s conftest$ac_exeext'
38377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38378 (eval $ac_try) 2>&5
38380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38381 (exit $ac_status); }; }; then
38382 eval "$as_ac_var=yes"
38384 echo "$as_me: failed program was:" >&5
38385 sed 's/^/| /' conftest.$ac_ext >&5
38387 eval "$as_ac_var=no"
38389 rm -f conftest.err conftest.$ac_objext \
38390 conftest$ac_exeext conftest.$ac_ext
38392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38394 if test `eval echo '${'$as_ac_var'}'` = yes; then
38395 cat >>confdefs.h <<_ACEOF
38396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38399 echo "$as_me:$LINENO: checking for _doprnt" >&5
38400 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38401 if test "${ac_cv_func__doprnt+set}" = set; then
38402 echo $ECHO_N "(cached) $ECHO_C" >&6
38404 cat >conftest.$ac_ext <<_ACEOF
38407 cat confdefs.h >>conftest.$ac_ext
38408 cat >>conftest.$ac_ext <<_ACEOF
38409 /* end confdefs.h. */
38410 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38412 #define _doprnt innocuous__doprnt
38414 /* System header to define __stub macros and hopefully few prototypes,
38415 which can conflict with char _doprnt (); below.
38416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38417 <limits.h> exists even on freestanding compilers. */
38420 # include <limits.h>
38422 # include <assert.h>
38427 /* Override any gcc2 internal prototype to avoid an error. */
38432 /* We use char because int might match the return type of a gcc2
38433 builtin and then its argument prototype would still apply. */
38435 /* The GNU C library defines this for functions which it implements
38436 to always fail with ENOSYS. Some functions are actually named
38437 something starting with __ and the normal name is an alias. */
38438 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38441 char (*f) () = _doprnt;
38450 return f != _doprnt;
38455 rm -f conftest.$ac_objext conftest$ac_exeext
38456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38457 (eval $ac_link) 2>conftest.er1
38459 grep -v '^ *+' conftest.er1 >conftest.err
38461 cat conftest.err >&5
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); } &&
38464 { ac_try='test -z "$ac_c_werror_flag"
38465 || test ! -s conftest.err'
38466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38467 (eval $ac_try) 2>&5
38469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38470 (exit $ac_status); }; } &&
38471 { ac_try='test -s conftest$ac_exeext'
38472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38473 (eval $ac_try) 2>&5
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); }; }; then
38477 ac_cv_func__doprnt=yes
38479 echo "$as_me: failed program was:" >&5
38480 sed 's/^/| /' conftest.$ac_ext >&5
38482 ac_cv_func__doprnt=no
38484 rm -f conftest.err conftest.$ac_objext \
38485 conftest$ac_exeext conftest.$ac_ext
38487 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38488 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38489 if test $ac_cv_func__doprnt = yes; then
38491 cat >>confdefs.h <<\_ACEOF
38492 #define HAVE_DOPRNT 1
38502 if test $ac_cv_func_vprintf = yes ; then
38505 for ac_func in snprintf vsnprintf
38507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38508 echo "$as_me:$LINENO: checking for $ac_func" >&5
38509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38510 if eval "test \"\${$as_ac_var+set}\" = set"; then
38511 echo $ECHO_N "(cached) $ECHO_C" >&6
38513 cat >conftest.$ac_ext <<_ACEOF
38516 cat confdefs.h >>conftest.$ac_ext
38517 cat >>conftest.$ac_ext <<_ACEOF
38518 /* end confdefs.h. */
38519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38521 #define $ac_func innocuous_$ac_func
38523 /* System header to define __stub macros and hopefully few prototypes,
38524 which can conflict with char $ac_func (); below.
38525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38526 <limits.h> exists even on freestanding compilers. */
38529 # include <limits.h>
38531 # include <assert.h>
38536 /* Override any gcc2 internal prototype to avoid an error. */
38541 /* We use char because int might match the return type of a gcc2
38542 builtin and then its argument prototype would still apply. */
38544 /* The GNU C library defines this for functions which it implements
38545 to always fail with ENOSYS. Some functions are actually named
38546 something starting with __ and the normal name is an alias. */
38547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38550 char (*f) () = $ac_func;
38559 return f != $ac_func;
38564 rm -f conftest.$ac_objext conftest$ac_exeext
38565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38566 (eval $ac_link) 2>conftest.er1
38568 grep -v '^ *+' conftest.er1 >conftest.err
38570 cat conftest.err >&5
38571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572 (exit $ac_status); } &&
38573 { ac_try='test -z "$ac_c_werror_flag"
38574 || test ! -s conftest.err'
38575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38576 (eval $ac_try) 2>&5
38578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579 (exit $ac_status); }; } &&
38580 { ac_try='test -s conftest$ac_exeext'
38581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38582 (eval $ac_try) 2>&5
38584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38585 (exit $ac_status); }; }; then
38586 eval "$as_ac_var=yes"
38588 echo "$as_me: failed program was:" >&5
38589 sed 's/^/| /' conftest.$ac_ext >&5
38591 eval "$as_ac_var=no"
38593 rm -f conftest.err conftest.$ac_objext \
38594 conftest$ac_exeext conftest.$ac_ext
38596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38598 if test `eval echo '${'$as_ac_var'}'` = yes; then
38599 cat >>confdefs.h <<_ACEOF
38600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38722 echo "$as_me:$LINENO: checking for $ac_func" >&5
38723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38724 if eval "test \"\${$as_ac_var+set}\" = set"; then
38725 echo $ECHO_N "(cached) $ECHO_C" >&6
38727 cat >conftest.$ac_ext <<_ACEOF
38730 cat confdefs.h >>conftest.$ac_ext
38731 cat >>conftest.$ac_ext <<_ACEOF
38732 /* end confdefs.h. */
38733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38735 #define $ac_func innocuous_$ac_func
38737 /* System header to define __stub macros and hopefully few prototypes,
38738 which can conflict with char $ac_func (); below.
38739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38740 <limits.h> exists even on freestanding compilers. */
38743 # include <limits.h>
38745 # include <assert.h>
38750 /* Override any gcc2 internal prototype to avoid an error. */
38755 /* We use char because int might match the return type of a gcc2
38756 builtin and then its argument prototype would still apply. */
38758 /* The GNU C library defines this for functions which it implements
38759 to always fail with ENOSYS. Some functions are actually named
38760 something starting with __ and the normal name is an alias. */
38761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38764 char (*f) () = $ac_func;
38773 return f != $ac_func;
38778 rm -f conftest.$ac_objext conftest$ac_exeext
38779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38780 (eval $ac_link) 2>conftest.er1
38782 grep -v '^ *+' conftest.er1 >conftest.err
38784 cat conftest.err >&5
38785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786 (exit $ac_status); } &&
38787 { ac_try='test -z "$ac_c_werror_flag"
38788 || test ! -s conftest.err'
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); }; } &&
38794 { ac_try='test -s conftest$ac_exeext'
38795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38796 (eval $ac_try) 2>&5
38798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799 (exit $ac_status); }; }; then
38800 eval "$as_ac_var=yes"
38802 echo "$as_me: failed program was:" >&5
38803 sed 's/^/| /' conftest.$ac_ext >&5
38805 eval "$as_ac_var=no"
38807 rm -f conftest.err conftest.$ac_objext \
38808 conftest$ac_exeext conftest.$ac_ext
38810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38812 if test `eval echo '${'$as_ac_var'}'` = yes; then
38813 cat >>confdefs.h <<_ACEOF
38814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38823 for ac_func in getopt getpeereid
38825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38826 echo "$as_me:$LINENO: checking for $ac_func" >&5
38827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38828 if eval "test \"\${$as_ac_var+set}\" = set"; then
38829 echo $ECHO_N "(cached) $ECHO_C" >&6
38831 cat >conftest.$ac_ext <<_ACEOF
38834 cat confdefs.h >>conftest.$ac_ext
38835 cat >>conftest.$ac_ext <<_ACEOF
38836 /* end confdefs.h. */
38837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38839 #define $ac_func innocuous_$ac_func
38841 /* System header to define __stub macros and hopefully few prototypes,
38842 which can conflict with char $ac_func (); below.
38843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38844 <limits.h> exists even on freestanding compilers. */
38847 # include <limits.h>
38849 # include <assert.h>
38854 /* Override any gcc2 internal prototype to avoid an error. */
38859 /* We use char because int might match the return type of a gcc2
38860 builtin and then its argument prototype would still apply. */
38862 /* The GNU C library defines this for functions which it implements
38863 to always fail with ENOSYS. Some functions are actually named
38864 something starting with __ and the normal name is an alias. */
38865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38868 char (*f) () = $ac_func;
38877 return f != $ac_func;
38882 rm -f conftest.$ac_objext conftest$ac_exeext
38883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38884 (eval $ac_link) 2>conftest.er1
38886 grep -v '^ *+' conftest.er1 >conftest.err
38888 cat conftest.err >&5
38889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890 (exit $ac_status); } &&
38891 { ac_try='test -z "$ac_c_werror_flag"
38892 || test ! -s conftest.err'
38893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38894 (eval $ac_try) 2>&5
38896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897 (exit $ac_status); }; } &&
38898 { ac_try='test -s conftest$ac_exeext'
38899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38900 (eval $ac_try) 2>&5
38902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903 (exit $ac_status); }; }; then
38904 eval "$as_ac_var=yes"
38906 echo "$as_me: failed program was:" >&5
38907 sed 's/^/| /' conftest.$ac_ext >&5
38909 eval "$as_ac_var=no"
38911 rm -f conftest.err conftest.$ac_objext \
38912 conftest$ac_exeext conftest.$ac_ext
38914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38916 if test `eval echo '${'$as_ac_var'}'` = yes; then
38917 cat >>confdefs.h <<_ACEOF
38918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38923 "$ac_func.$ac_objext" | \
38924 *" $ac_func.$ac_objext" | \
38925 "$ac_func.$ac_objext "* | \
38926 *" $ac_func.$ac_objext "* ) ;;
38927 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38935 if test "$ac_cv_func_getopt" != yes; then
38936 LIBSRCS="$LIBSRCS getopt.c"
38939 if test "$ac_cv_func_getpeereid" != yes; then
38941 for ac_func in getpeerucred
38943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38944 echo "$as_me:$LINENO: checking for $ac_func" >&5
38945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38946 if eval "test \"\${$as_ac_var+set}\" = set"; then
38947 echo $ECHO_N "(cached) $ECHO_C" >&6
38949 cat >conftest.$ac_ext <<_ACEOF
38952 cat confdefs.h >>conftest.$ac_ext
38953 cat >>conftest.$ac_ext <<_ACEOF
38954 /* end confdefs.h. */
38955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38957 #define $ac_func innocuous_$ac_func
38959 /* System header to define __stub macros and hopefully few prototypes,
38960 which can conflict with char $ac_func (); below.
38961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38962 <limits.h> exists even on freestanding compilers. */
38965 # include <limits.h>
38967 # include <assert.h>
38972 /* Override any gcc2 internal prototype to avoid an error. */
38977 /* We use char because int might match the return type of a gcc2
38978 builtin and then its argument prototype would still apply. */
38980 /* The GNU C library defines this for functions which it implements
38981 to always fail with ENOSYS. Some functions are actually named
38982 something starting with __ and the normal name is an alias. */
38983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38986 char (*f) () = $ac_func;
38995 return f != $ac_func;
39000 rm -f conftest.$ac_objext conftest$ac_exeext
39001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39002 (eval $ac_link) 2>conftest.er1
39004 grep -v '^ *+' conftest.er1 >conftest.err
39006 cat conftest.err >&5
39007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); } &&
39009 { ac_try='test -z "$ac_c_werror_flag"
39010 || test ! -s conftest.err'
39011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012 (eval $ac_try) 2>&5
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); }; } &&
39016 { ac_try='test -s conftest$ac_exeext'
39017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018 (eval $ac_try) 2>&5
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); }; }; then
39022 eval "$as_ac_var=yes"
39024 echo "$as_me: failed program was:" >&5
39025 sed 's/^/| /' conftest.$ac_ext >&5
39027 eval "$as_ac_var=no"
39029 rm -f conftest.err conftest.$ac_objext \
39030 conftest$ac_exeext conftest.$ac_ext
39032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39034 if test `eval echo '${'$as_ac_var'}'` = yes; then
39035 cat >>confdefs.h <<_ACEOF
39036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39042 if test "$ac_cv_func_getpeerucred" != yes ; then
39043 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39044 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39045 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39046 echo $ECHO_N "(cached) $ECHO_C" >&6
39048 cat >conftest.$ac_ext <<_ACEOF
39051 cat confdefs.h >>conftest.$ac_ext
39052 cat >>conftest.$ac_ext <<_ACEOF
39053 /* end confdefs.h. */
39054 $ac_includes_default
39055 #ifdef HAVE_SYS_SOCKET_H
39056 #include <sys/socket.h>
39062 static struct msghdr ac_aggr;
39063 if (ac_aggr.msg_accrightslen)
39069 rm -f conftest.$ac_objext
39070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39071 (eval $ac_compile) 2>conftest.er1
39073 grep -v '^ *+' conftest.er1 >conftest.err
39075 cat conftest.err >&5
39076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39077 (exit $ac_status); } &&
39078 { ac_try='test -z "$ac_c_werror_flag"
39079 || test ! -s conftest.err'
39080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39081 (eval $ac_try) 2>&5
39083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 (exit $ac_status); }; } &&
39085 { ac_try='test -s conftest.$ac_objext'
39086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39087 (eval $ac_try) 2>&5
39089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090 (exit $ac_status); }; }; then
39091 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39093 echo "$as_me: failed program was:" >&5
39094 sed 's/^/| /' conftest.$ac_ext >&5
39096 cat >conftest.$ac_ext <<_ACEOF
39099 cat confdefs.h >>conftest.$ac_ext
39100 cat >>conftest.$ac_ext <<_ACEOF
39101 /* end confdefs.h. */
39102 $ac_includes_default
39103 #ifdef HAVE_SYS_SOCKET_H
39104 #include <sys/socket.h>
39110 static struct msghdr ac_aggr;
39111 if (sizeof ac_aggr.msg_accrightslen)
39117 rm -f conftest.$ac_objext
39118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39119 (eval $ac_compile) 2>conftest.er1
39121 grep -v '^ *+' conftest.er1 >conftest.err
39123 cat conftest.err >&5
39124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125 (exit $ac_status); } &&
39126 { ac_try='test -z "$ac_c_werror_flag"
39127 || test ! -s conftest.err'
39128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39129 (eval $ac_try) 2>&5
39131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39132 (exit $ac_status); }; } &&
39133 { ac_try='test -s conftest.$ac_objext'
39134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39135 (eval $ac_try) 2>&5
39137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138 (exit $ac_status); }; }; then
39139 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39141 echo "$as_me: failed program was:" >&5
39142 sed 's/^/| /' conftest.$ac_ext >&5
39144 ac_cv_member_struct_msghdr_msg_accrightslen=no
39146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39150 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39151 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39152 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39154 cat >>confdefs.h <<_ACEOF
39155 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39161 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39162 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39163 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39164 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39165 echo $ECHO_N "(cached) $ECHO_C" >&6
39167 cat >conftest.$ac_ext <<_ACEOF
39170 cat confdefs.h >>conftest.$ac_ext
39171 cat >>conftest.$ac_ext <<_ACEOF
39172 /* end confdefs.h. */
39173 $ac_includes_default
39174 #ifdef HAVE_SYS_SOCKET_H
39175 #include <sys/socket.h>
39181 static struct msghdr ac_aggr;
39182 if (ac_aggr.msg_control)
39188 rm -f conftest.$ac_objext
39189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39190 (eval $ac_compile) 2>conftest.er1
39192 grep -v '^ *+' conftest.er1 >conftest.err
39194 cat conftest.err >&5
39195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39196 (exit $ac_status); } &&
39197 { ac_try='test -z "$ac_c_werror_flag"
39198 || test ! -s conftest.err'
39199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39200 (eval $ac_try) 2>&5
39202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203 (exit $ac_status); }; } &&
39204 { ac_try='test -s conftest.$ac_objext'
39205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39206 (eval $ac_try) 2>&5
39208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39209 (exit $ac_status); }; }; then
39210 ac_cv_member_struct_msghdr_msg_control=yes
39212 echo "$as_me: failed program was:" >&5
39213 sed 's/^/| /' conftest.$ac_ext >&5
39215 cat >conftest.$ac_ext <<_ACEOF
39218 cat confdefs.h >>conftest.$ac_ext
39219 cat >>conftest.$ac_ext <<_ACEOF
39220 /* end confdefs.h. */
39221 $ac_includes_default
39222 #ifdef HAVE_SYS_SOCKET_H
39223 #include <sys/socket.h>
39229 static struct msghdr ac_aggr;
39230 if (sizeof ac_aggr.msg_control)
39236 rm -f conftest.$ac_objext
39237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39238 (eval $ac_compile) 2>conftest.er1
39240 grep -v '^ *+' conftest.er1 >conftest.err
39242 cat conftest.err >&5
39243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39244 (exit $ac_status); } &&
39245 { ac_try='test -z "$ac_c_werror_flag"
39246 || test ! -s conftest.err'
39247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39248 (eval $ac_try) 2>&5
39250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39251 (exit $ac_status); }; } &&
39252 { ac_try='test -s conftest.$ac_objext'
39253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39254 (eval $ac_try) 2>&5
39256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257 (exit $ac_status); }; }; then
39258 ac_cv_member_struct_msghdr_msg_control=yes
39260 echo "$as_me: failed program was:" >&5
39261 sed 's/^/| /' conftest.$ac_ext >&5
39263 ac_cv_member_struct_msghdr_msg_control=no
39265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39269 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39270 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39271 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39273 cat >>confdefs.h <<_ACEOF
39274 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39281 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39282 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39283 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39284 echo $ECHO_N "(cached) $ECHO_C" >&6
39286 cat >conftest.$ac_ext <<_ACEOF
39289 cat confdefs.h >>conftest.$ac_ext
39290 cat >>conftest.$ac_ext <<_ACEOF
39291 /* end confdefs.h. */
39292 $ac_includes_default
39296 static struct stat ac_aggr;
39297 if (ac_aggr.st_fstype)
39303 rm -f conftest.$ac_objext
39304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39305 (eval $ac_compile) 2>conftest.er1
39307 grep -v '^ *+' conftest.er1 >conftest.err
39309 cat conftest.err >&5
39310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311 (exit $ac_status); } &&
39312 { ac_try='test -z "$ac_c_werror_flag"
39313 || test ! -s conftest.err'
39314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39315 (eval $ac_try) 2>&5
39317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39318 (exit $ac_status); }; } &&
39319 { ac_try='test -s conftest.$ac_objext'
39320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39321 (eval $ac_try) 2>&5
39323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324 (exit $ac_status); }; }; then
39325 ac_cv_member_struct_stat_st_fstype=yes
39327 echo "$as_me: failed program was:" >&5
39328 sed 's/^/| /' conftest.$ac_ext >&5
39330 cat >conftest.$ac_ext <<_ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h. */
39336 $ac_includes_default
39340 static struct stat ac_aggr;
39341 if (sizeof ac_aggr.st_fstype)
39347 rm -f conftest.$ac_objext
39348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39349 (eval $ac_compile) 2>conftest.er1
39351 grep -v '^ *+' conftest.er1 >conftest.err
39353 cat conftest.err >&5
39354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39355 (exit $ac_status); } &&
39356 { ac_try='test -z "$ac_c_werror_flag"
39357 || test ! -s conftest.err'
39358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39359 (eval $ac_try) 2>&5
39361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362 (exit $ac_status); }; } &&
39363 { ac_try='test -s conftest.$ac_objext'
39364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39365 (eval $ac_try) 2>&5
39367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39368 (exit $ac_status); }; }; then
39369 ac_cv_member_struct_stat_st_fstype=yes
39371 echo "$as_me: failed program was:" >&5
39372 sed 's/^/| /' conftest.$ac_ext >&5
39374 ac_cv_member_struct_stat_st_fstype=no
39376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39380 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39381 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39382 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39384 cat >>confdefs.h <<_ACEOF
39385 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39390 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39391 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39392 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39393 echo $ECHO_N "(cached) $ECHO_C" >&6
39395 cat >conftest.$ac_ext <<_ACEOF
39398 cat confdefs.h >>conftest.$ac_ext
39399 cat >>conftest.$ac_ext <<_ACEOF
39400 /* end confdefs.h. */
39401 $ac_includes_default
39405 static struct stat ac_aggr;
39406 if (ac_aggr.st_vfstype)
39412 rm -f conftest.$ac_objext
39413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39414 (eval $ac_compile) 2>conftest.er1
39416 grep -v '^ *+' conftest.er1 >conftest.err
39418 cat conftest.err >&5
39419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420 (exit $ac_status); } &&
39421 { ac_try='test -z "$ac_c_werror_flag"
39422 || test ! -s conftest.err'
39423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39424 (eval $ac_try) 2>&5
39426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427 (exit $ac_status); }; } &&
39428 { ac_try='test -s conftest.$ac_objext'
39429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39430 (eval $ac_try) 2>&5
39432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433 (exit $ac_status); }; }; then
39434 ac_cv_member_struct_stat_st_vfstype=yes
39436 echo "$as_me: failed program was:" >&5
39437 sed 's/^/| /' conftest.$ac_ext >&5
39439 cat >conftest.$ac_ext <<_ACEOF
39442 cat confdefs.h >>conftest.$ac_ext
39443 cat >>conftest.$ac_ext <<_ACEOF
39444 /* end confdefs.h. */
39445 $ac_includes_default
39449 static struct stat ac_aggr;
39450 if (sizeof ac_aggr.st_vfstype)
39456 rm -f conftest.$ac_objext
39457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39458 (eval $ac_compile) 2>conftest.er1
39460 grep -v '^ *+' conftest.er1 >conftest.err
39462 cat conftest.err >&5
39463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464 (exit $ac_status); } &&
39465 { ac_try='test -z "$ac_c_werror_flag"
39466 || test ! -s conftest.err'
39467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39468 (eval $ac_try) 2>&5
39470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471 (exit $ac_status); }; } &&
39472 { ac_try='test -s conftest.$ac_objext'
39473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474 (eval $ac_try) 2>&5
39476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; }; then
39478 ac_cv_member_struct_stat_st_vfstype=yes
39480 echo "$as_me: failed program was:" >&5
39481 sed 's/^/| /' conftest.$ac_ext >&5
39483 ac_cv_member_struct_stat_st_vfstype=no
39485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39489 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
39490 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
39491 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
39493 cat >>confdefs.h <<_ACEOF
39494 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
39500 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
39501 cat >conftest.$ac_ext <<_ACEOF
39502 struct stat st; char *ptr=st.st_fstype;
39504 rm -f conftest.$ac_objext
39505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39506 (eval $ac_compile) 2>conftest.er1
39508 grep -v '^ *+' conftest.er1 >conftest.err
39510 cat conftest.err >&5
39511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512 (exit $ac_status); } &&
39513 { ac_try='test -z "$ac_c_werror_flag"
39514 || test ! -s conftest.err'
39515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39516 (eval $ac_try) 2>&5
39518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); }; } &&
39520 { ac_try='test -s conftest.$ac_objext'
39521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39522 (eval $ac_try) 2>&5
39524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525 (exit $ac_status); }; }; then
39526 cat >>confdefs.h <<\_ACEOF
39527 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
39531 echo "$as_me: failed program was:" >&5
39532 sed 's/^/| /' conftest.$ac_ext >&5
39534 cat >>confdefs.h <<\_ACEOF
39535 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
39539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39542 LIBSRCS="$LIBSRCS getpeereid.c"
39545 if test "$ac_cv_func_snprintf" != yes ||
39546 test "$ac_cv_func_vsnprintf" != yes; then
39547 if test "$ac_cv_func_snprintf" != yes; then
39549 cat >>confdefs.h <<\_ACEOF
39550 #define snprintf ber_pvt_snprintf
39554 if test "$ac_cv_func_vsnprintf" != yes; then
39556 cat >>confdefs.h <<\_ACEOF
39557 #define vsnprintf ber_pvt_vsnprintf
39564 if test "$ol_enable_slapi" != no ; then
39566 for ac_header in ltdl.h
39568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39570 echo "$as_me:$LINENO: checking for $ac_header" >&5
39571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39573 echo $ECHO_N "(cached) $ECHO_C" >&6
39575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39578 # Is the header compilable?
39579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39581 cat >conftest.$ac_ext <<_ACEOF
39584 cat confdefs.h >>conftest.$ac_ext
39585 cat >>conftest.$ac_ext <<_ACEOF
39586 /* end confdefs.h. */
39587 $ac_includes_default
39588 #include <$ac_header>
39590 rm -f conftest.$ac_objext
39591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39592 (eval $ac_compile) 2>conftest.er1
39594 grep -v '^ *+' conftest.er1 >conftest.err
39596 cat conftest.err >&5
39597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); } &&
39599 { ac_try='test -z "$ac_c_werror_flag"
39600 || test ! -s conftest.err'
39601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39602 (eval $ac_try) 2>&5
39604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605 (exit $ac_status); }; } &&
39606 { ac_try='test -s conftest.$ac_objext'
39607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39608 (eval $ac_try) 2>&5
39610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611 (exit $ac_status); }; }; then
39612 ac_header_compiler=yes
39614 echo "$as_me: failed program was:" >&5
39615 sed 's/^/| /' conftest.$ac_ext >&5
39617 ac_header_compiler=no
39619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39621 echo "${ECHO_T}$ac_header_compiler" >&6
39623 # Is the header present?
39624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39626 cat >conftest.$ac_ext <<_ACEOF
39629 cat confdefs.h >>conftest.$ac_ext
39630 cat >>conftest.$ac_ext <<_ACEOF
39631 /* end confdefs.h. */
39632 #include <$ac_header>
39634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39637 grep -v '^ *+' conftest.er1 >conftest.err
39639 cat conftest.err >&5
39640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641 (exit $ac_status); } >/dev/null; then
39642 if test -s conftest.err; then
39643 ac_cpp_err=$ac_c_preproc_warn_flag
39644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39651 if test -z "$ac_cpp_err"; then
39652 ac_header_preproc=yes
39654 echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39657 ac_header_preproc=no
39659 rm -f conftest.err conftest.$ac_ext
39660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39661 echo "${ECHO_T}$ac_header_preproc" >&6
39663 # So? What about this header?
39664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39670 ac_header_preproc=yes
39673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39687 ## --------------------------------------------- ##
39688 ## Report this to <http://www.openldap.org/its/> ##
39689 ## --------------------------------------------- ##
39692 sed "s/^/$as_me: WARNING: /" >&2
39695 echo "$as_me:$LINENO: checking for $ac_header" >&5
39696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39698 echo $ECHO_N "(cached) $ECHO_C" >&6
39700 eval "$as_ac_Header=\$ac_header_preproc"
39702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39707 cat >>confdefs.h <<_ACEOF
39708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39716 if test $ac_cv_header_ltdl_h != yes ; then
39717 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39718 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
39719 { (exit 1); exit 1; }; }
39721 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
39722 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
39723 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
39724 echo $ECHO_N "(cached) $ECHO_C" >&6
39726 ac_check_lib_save_LIBS=$LIBS
39727 LIBS="-lltdl $LIBS"
39728 cat >conftest.$ac_ext <<_ACEOF
39731 cat confdefs.h >>conftest.$ac_ext
39732 cat >>conftest.$ac_ext <<_ACEOF
39733 /* end confdefs.h. */
39735 /* Override any gcc2 internal prototype to avoid an error. */
39739 /* We use char because int might match the return type of a gcc2
39740 builtin and then its argument prototype would still apply. */
39750 rm -f conftest.$ac_objext conftest$ac_exeext
39751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39752 (eval $ac_link) 2>conftest.er1
39754 grep -v '^ *+' conftest.er1 >conftest.err
39756 cat conftest.err >&5
39757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); } &&
39759 { ac_try='test -z "$ac_c_werror_flag"
39760 || test ! -s conftest.err'
39761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39762 (eval $ac_try) 2>&5
39764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765 (exit $ac_status); }; } &&
39766 { ac_try='test -s conftest$ac_exeext'
39767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768 (eval $ac_try) 2>&5
39770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771 (exit $ac_status); }; }; then
39772 ac_cv_lib_ltdl_lt_dlinit=yes
39774 echo "$as_me: failed program was:" >&5
39775 sed 's/^/| /' conftest.$ac_ext >&5
39777 ac_cv_lib_ltdl_lt_dlinit=no
39779 rm -f conftest.err conftest.$ac_objext \
39780 conftest$ac_exeext conftest.$ac_ext
39781 LIBS=$ac_check_lib_save_LIBS
39783 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
39784 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
39785 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
39788 LIBSLAPI=libslapi.a
39789 LIBSLAPITOOLS=../libslapi.a
39791 cat >>confdefs.h <<\_ACEOF
39792 #define HAVE_LIBLTDL 1
39797 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
39798 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
39799 { (exit 1); exit 1; }; }
39804 cat >>confdefs.h <<\_ACEOF
39805 #define LDAP_SLAPI 1
39810 if test "$ol_enable_debug" != no ; then
39811 if test "$ol_enable_debug" = traditional; then
39813 cat >>confdefs.h <<\_ACEOF
39814 #define OLD_DEBUG 1
39819 cat >>confdefs.h <<\_ACEOF
39820 #define LDAP_DEBUG 1
39824 if test "$ol_enable_syslog" = yes ; then
39826 cat >>confdefs.h <<\_ACEOF
39827 #define LDAP_SYSLOG 1
39831 if test "$ol_enable_proctitle" != no ; then
39833 cat >>confdefs.h <<\_ACEOF
39834 #define LDAP_PROCTITLE 1
39838 if test "$ol_enable_referrals" != no ; then
39840 cat >>confdefs.h <<\_ACEOF
39841 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
39845 if test "$ol_enable_local" != no; then
39847 cat >>confdefs.h <<\_ACEOF
39848 #define LDAP_PF_LOCAL 1
39852 if test "$ol_link_ipv6" != no; then
39854 cat >>confdefs.h <<\_ACEOF
39855 #define LDAP_PF_INET6 1
39859 if test "$ol_enable_cleartext" != no ; then
39861 cat >>confdefs.h <<\_ACEOF
39862 #define SLAPD_CLEARTEXT 1
39866 if test "$ol_enable_crypt" != no ; then
39868 cat >>confdefs.h <<\_ACEOF
39869 #define SLAPD_CRYPT 1
39873 if test "$ol_link_spasswd" != no ; then
39875 cat >>confdefs.h <<\_ACEOF
39876 #define SLAPD_SPASSWD 1
39880 if test "$ol_enable_rlookups" != no ; then
39882 cat >>confdefs.h <<\_ACEOF
39883 #define SLAPD_RLOOKUPS 1
39887 if test "$ol_enable_aci" != no ; then
39888 if test $ol_enable_dynacl = no ; then
39889 ol_enable_dynacl=yes
39890 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
39891 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
39893 if test "$ol_enable_aci" = mod ; then
39894 MFLAG=SLAPD_MOD_DYNAMIC
39895 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
39896 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
39897 { (exit 1); exit 1; }; }
39899 MFLAG=SLAPD_MOD_STATIC
39901 WITH_ACI_ENABLED=$ol_enable_aci
39903 cat >>confdefs.h <<_ACEOF
39904 #define SLAPD_ACI_ENABLED $MFLAG
39908 WITH_ACI_ENABLED=no
39910 if test "$ol_enable_dynacl" != no ; then
39912 cat >>confdefs.h <<\_ACEOF
39913 #define SLAP_DYNACL 1
39918 if test "$ol_link_modules" != no ; then
39920 cat >>confdefs.h <<\_ACEOF
39921 #define SLAPD_MODULES 1
39925 SLAPD_MODULES_LDFLAGS="-dlopen self"
39929 cat >>confdefs.h <<\_ACEOF
39930 #define SLAPD_MOD_STATIC 1
39934 cat >>confdefs.h <<\_ACEOF
39935 #define SLAPD_MOD_DYNAMIC 2
39939 if test "$ol_enable_monitor" != no ; then
39941 BUILD_MONITOR=$ol_enable_monitor
39942 if test "$ol_enable_monitor" = mod ; then
39943 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
39944 MFLAG=SLAPD_MOD_DYNAMIC
39946 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
39947 MFLAG=SLAPD_MOD_STATIC
39950 cat >>confdefs.h <<_ACEOF
39951 #define SLAPD_MONITOR $MFLAG
39956 if test "$ol_enable_bdb" != no ; then
39958 BUILD_BDB=$ol_enable_bdb
39959 if test "$ol_enable_bdb" = mod ; then
39960 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
39961 MFLAG=SLAPD_MOD_DYNAMIC
39963 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
39964 MFLAG=SLAPD_MOD_STATIC
39967 cat >>confdefs.h <<_ACEOF
39968 #define SLAPD_BDB $MFLAG
39973 if test "$ol_enable_dnssrv" != no ; then
39975 BUILD_DNSSRV=$ol_enable_dnssrv
39976 if test "$ol_enable_dnssrv" = mod ; then
39977 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
39978 MFLAG=SLAPD_MOD_DYNAMIC
39980 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
39981 MFLAG=SLAPD_MOD_STATIC
39984 cat >>confdefs.h <<_ACEOF
39985 #define SLAPD_DNSSRV $MFLAG
39990 if test "$ol_enable_hdb" != no ; then
39992 BUILD_HDB=$ol_enable_hdb
39993 if test "$ol_enable_hdb" = mod ; then
39994 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
39995 MFLAG=SLAPD_MOD_DYNAMIC
39997 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
39998 MFLAG=SLAPD_MOD_STATIC
40001 cat >>confdefs.h <<_ACEOF
40002 #define SLAPD_HDB $MFLAG
40007 if test "$ol_enable_ldap" != no ; then
40009 BUILD_LDAP=$ol_enable_ldap
40010 if test "$ol_enable_ldap" = mod ; then
40011 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40012 MFLAG=SLAPD_MOD_DYNAMIC
40014 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40015 MFLAG=SLAPD_MOD_STATIC
40018 cat >>confdefs.h <<_ACEOF
40019 #define SLAPD_LDAP $MFLAG
40024 if test "$ol_enable_meta" != no ; then
40026 BUILD_META=$ol_enable_meta
40028 if test "$ol_enable_meta" = mod ; then
40029 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40030 MFLAG=SLAPD_MOD_DYNAMIC
40032 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40033 MFLAG=SLAPD_MOD_STATIC
40036 cat >>confdefs.h <<_ACEOF
40037 #define SLAPD_META $MFLAG
40042 if test "$ol_enable_null" != no ; then
40044 BUILD_NULL=$ol_enable_null
40045 if test "$ol_enable_null" = mod ; then
40046 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40047 MFLAG=SLAPD_MOD_DYNAMIC
40049 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40050 MFLAG=SLAPD_MOD_STATIC
40053 cat >>confdefs.h <<_ACEOF
40054 #define SLAPD_NULL $MFLAG
40059 if test "$ol_enable_passwd" != no ; then
40061 BUILD_PASSWD=$ol_enable_passwd
40062 if test "$ol_enable_passwd" = mod ; then
40063 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40064 MFLAG=SLAPD_MOD_DYNAMIC
40066 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40067 MFLAG=SLAPD_MOD_STATIC
40070 cat >>confdefs.h <<_ACEOF
40071 #define SLAPD_PASSWD $MFLAG
40076 if test "$ol_link_perl" != no ; then
40078 BUILD_PERL=$ol_enable_perl
40079 if test "$ol_enable_perl" = mod ; then
40080 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40081 MFLAG=SLAPD_MOD_DYNAMIC
40083 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40084 MFLAG=SLAPD_MOD_STATIC
40087 cat >>confdefs.h <<_ACEOF
40088 #define SLAPD_PERL $MFLAG
40093 if test "$ol_enable_relay" != no ; then
40095 BUILD_RELAY=$ol_enable_relay
40096 if test "$ol_enable_relay" = mod ; then
40097 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40098 MFLAG=SLAPD_MOD_DYNAMIC
40100 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40101 MFLAG=SLAPD_MOD_STATIC
40104 cat >>confdefs.h <<_ACEOF
40105 #define SLAPD_RELAY $MFLAG
40110 if test "$ol_enable_shell" != no ; then
40111 if test "$ol_link_threads" != no ; then
40112 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40113 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40116 BUILD_SHELL=$ol_enable_shell
40117 if test "$ol_enable_shell" = mod ; then
40118 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40119 MFLAG=SLAPD_MOD_DYNAMIC
40121 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40122 MFLAG=SLAPD_MOD_STATIC
40125 cat >>confdefs.h <<_ACEOF
40126 #define SLAPD_SHELL $MFLAG
40131 if test "$ol_link_sql" != no ; then
40133 BUILD_SQL=$ol_enable_sql
40134 if test "$ol_enable_sql" = mod; then
40135 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40136 MFLAG=SLAPD_MOD_DYNAMIC
40138 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40139 MFLAG=SLAPD_MOD_STATIC
40142 cat >>confdefs.h <<_ACEOF
40143 #define SLAPD_SQL $MFLAG
40148 if test "$ol_enable_accesslog" != no ; then
40149 BUILD_ACCESSLOG=$ol_enable_accesslog
40150 if test "$ol_enable_accesslog" = mod ; then
40151 MFLAG=SLAPD_MOD_DYNAMIC
40152 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40154 MFLAG=SLAPD_MOD_STATIC
40155 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40158 cat >>confdefs.h <<_ACEOF
40159 #define SLAPD_OVER_ACCESSLOG $MFLAG
40164 if test "$ol_enable_auditlog" != no ; then
40165 BUILD_AUDITLOG=$ol_enable_auditlog
40166 if test "$ol_enable_auditlog" = mod ; then
40167 MFLAG=SLAPD_MOD_DYNAMIC
40168 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40170 MFLAG=SLAPD_MOD_STATIC
40171 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40174 cat >>confdefs.h <<_ACEOF
40175 #define SLAPD_OVER_AUDITLOG $MFLAG
40180 if test "$ol_enable_constraint" != no ; then
40181 BUILD_CONSTRAINT=$ol_enable_constraint
40182 if test "$ol_enable_constraint" = mod ; then
40183 MFLAG=SLAPD_MOD_DYNAMIC
40184 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40186 MFLAG=SLAPD_MOD_STATIC
40187 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40190 cat >>confdefs.h <<_ACEOF
40191 #define SLAPD_OVER_CONSTRAINT $MFLAG
40196 if test "$ol_enable_dds" != no ; then
40197 BUILD_DDS=$ol_enable_dds
40198 if test "$ol_enable_dds" = mod ; then
40199 MFLAG=SLAPD_MOD_DYNAMIC
40200 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40202 MFLAG=SLAPD_MOD_STATIC
40203 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40206 cat >>confdefs.h <<_ACEOF
40207 #define SLAPD_OVER_DDS $MFLAG
40212 if test "$ol_enable_dyngroup" != no ; then
40213 BUILD_DYNGROUP=$ol_enable_dyngroup
40214 if test "$ol_enable_dyngroup" = mod ; then
40215 MFLAG=SLAPD_MOD_DYNAMIC
40216 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40218 MFLAG=SLAPD_MOD_STATIC
40219 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40222 cat >>confdefs.h <<_ACEOF
40223 #define SLAPD_OVER_DYNGROUP $MFLAG
40228 if test "$ol_enable_dynlist" != no ; then
40229 BUILD_DYNLIST=$ol_enable_dynlist
40230 if test "$ol_enable_dynlist" = mod ; then
40231 MFLAG=SLAPD_MOD_DYNAMIC
40232 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40234 MFLAG=SLAPD_MOD_STATIC
40235 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40238 cat >>confdefs.h <<_ACEOF
40239 #define SLAPD_OVER_DYNLIST $MFLAG
40244 if test "$ol_enable_ppolicy" != no ; then
40245 BUILD_PPOLICY=$ol_enable_ppolicy
40246 if test "$ol_enable_ppolicy" = mod ; then
40247 MFLAG=SLAPD_MOD_DYNAMIC
40248 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40250 MFLAG=SLAPD_MOD_STATIC
40251 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40254 cat >>confdefs.h <<_ACEOF
40255 #define SLAPD_OVER_PPOLICY $MFLAG
40260 if test "$ol_enable_proxycache" != no ; then
40261 BUILD_PROXYCACHE=$ol_enable_proxycache
40262 if test "$ol_enable_proxycache" = mod ; then
40263 MFLAG=SLAPD_MOD_DYNAMIC
40264 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40266 MFLAG=SLAPD_MOD_STATIC
40267 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40270 cat >>confdefs.h <<_ACEOF
40271 #define SLAPD_OVER_PROXYCACHE $MFLAG
40276 if test "$ol_enable_refint" != no ; then
40277 BUILD_REFINT=$ol_enable_refint
40278 if test "$ol_enable_refint" = mod ; then
40279 MFLAG=SLAPD_MOD_DYNAMIC
40280 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40282 MFLAG=SLAPD_MOD_STATIC
40283 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40286 cat >>confdefs.h <<_ACEOF
40287 #define SLAPD_OVER_REFINT $MFLAG
40292 if test "$ol_enable_retcode" != no ; then
40293 BUILD_RETCODE=$ol_enable_retcode
40294 if test "$ol_enable_retcode" = mod ; then
40295 MFLAG=SLAPD_MOD_DYNAMIC
40296 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40298 MFLAG=SLAPD_MOD_STATIC
40299 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40302 cat >>confdefs.h <<_ACEOF
40303 #define SLAPD_OVER_RETCODE $MFLAG
40308 if test "$ol_enable_rwm" != no ; then
40310 BUILD_RWM=$ol_enable_rwm
40311 if test "$ol_enable_rwm" = mod ; then
40312 MFLAG=SLAPD_MOD_DYNAMIC
40313 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40315 MFLAG=SLAPD_MOD_STATIC
40316 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40319 cat >>confdefs.h <<_ACEOF
40320 #define SLAPD_OVER_RWM $MFLAG
40325 if test "$ol_enable_seqmod" != no ; then
40326 BUILD_SEQMOD=$ol_enable_seqmod
40327 if test "$ol_enable_seqmod" = mod ; then
40328 MFLAG=SLAPD_MOD_DYNAMIC
40329 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40331 MFLAG=SLAPD_MOD_STATIC
40332 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40335 cat >>confdefs.h <<_ACEOF
40336 #define SLAPD_OVER_SEQMOD $MFLAG
40341 if test "$ol_enable_syncprov" != no ; then
40342 BUILD_SYNCPROV=$ol_enable_syncprov
40343 if test "$ol_enable_syncprov" = mod ; then
40344 MFLAG=SLAPD_MOD_DYNAMIC
40345 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40347 MFLAG=SLAPD_MOD_STATIC
40348 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40351 cat >>confdefs.h <<_ACEOF
40352 #define SLAPD_OVER_SYNCPROV $MFLAG
40357 if test "$ol_enable_translucent" != no ; then
40358 BUILD_TRANSLUCENT=$ol_enable_translucent
40359 if test "$ol_enable_translucent" = mod ; then
40360 MFLAG=SLAPD_MOD_DYNAMIC
40361 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40363 MFLAG=SLAPD_MOD_STATIC
40364 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40367 cat >>confdefs.h <<_ACEOF
40368 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40373 if test "$ol_enable_unique" != no ; then
40374 BUILD_UNIQUE=$ol_enable_unique
40375 if test "$ol_enable_unique" = mod ; then
40376 MFLAG=SLAPD_MOD_DYNAMIC
40377 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40379 MFLAG=SLAPD_MOD_STATIC
40380 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40383 cat >>confdefs.h <<_ACEOF
40384 #define SLAPD_OVER_UNIQUE $MFLAG
40389 if test "$ol_enable_valsort" != no ; then
40390 BUILD_VALSORT=$ol_enable_valsort
40391 if test "$ol_enable_valsort" = mod ; then
40392 MFLAG=SLAPD_MOD_DYNAMIC
40393 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40395 MFLAG=SLAPD_MOD_STATIC
40396 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40399 cat >>confdefs.h <<_ACEOF
40400 #define SLAPD_OVER_VALSORT $MFLAG
40405 if test "$ol_enable_rewrite" != no ; then
40407 cat >>confdefs.h <<\_ACEOF
40408 #define ENABLE_REWRITE 1
40414 if test "$ol_enable_slapi" != no ; then
40416 cat >>confdefs.h <<\_ACEOF
40417 #define ENABLE_SLAPI 1
40421 SLAPD_SLAPI_DEPEND=libslapi.a
40426 if test "$ac_cv_mingw32" = yes ; then
40428 SLAPD_MODULES_LDFLAGS=
40515 # Check whether --with-xxinstall or --without-xxinstall was given.
40516 if test "${with_xxinstall+set}" = set; then
40517 withval="$with_xxinstall"
40522 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"
40525 ac_config_commands="$ac_config_commands default"
40529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40530 # Let make expand exec_prefix.
40531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40535 # trailing colons and then remove the whole line if VPATH becomes empty
40536 # (actually we leave an empty line to preserve line numbers).
40537 if test "x$srcdir" = x.; then
40538 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40539 s/:*\$(srcdir):*/:/;
40540 s/:*\${srcdir}:*/:/;
40542 s/^\([^=]*=[ ]*\):*/\1/;
40548 DEFS=-DHAVE_CONFIG_H
40552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40553 # 1. Remove the extension, and $U if already installed.
40554 ac_i=`echo "$ac_i" |
40555 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40557 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40558 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40560 LIBOBJS=$ac_libobjs
40562 LTLIBOBJS=$ac_ltlibobjs
40565 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40566 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40567 Usually this means the macro was only invoked conditionally." >&5
40568 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40569 Usually this means the macro was only invoked conditionally." >&2;}
40570 { (exit 1); exit 1; }; }
40572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40573 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40574 Usually this means the macro was only invoked conditionally." >&5
40575 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40576 Usually this means the macro was only invoked conditionally." >&2;}
40577 { (exit 1); exit 1; }; }
40579 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40580 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40581 Usually this means the macro was only invoked conditionally." >&5
40582 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40583 Usually this means the macro was only invoked conditionally." >&2;}
40584 { (exit 1); exit 1; }; }
40587 : ${CONFIG_STATUS=./config.status}
40588 ac_clean_files_save=$ac_clean_files
40589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40590 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40591 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40592 cat >$CONFIG_STATUS <<_ACEOF
40594 # Generated by $as_me.
40595 # Run this file to recreate the current configuration.
40596 # Compiler output produced by configure, useful for debugging
40597 # configure, is in config.log if it exists.
40600 ac_cs_recheck=false
40602 SHELL=\${CONFIG_SHELL-$SHELL}
40605 cat >>$CONFIG_STATUS <<\_ACEOF
40606 ## --------------------- ##
40607 ## M4sh Initialization. ##
40608 ## --------------------- ##
40610 # Be Bourne compatible
40611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40614 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40615 # is contrary to our usage. Disable this feature.
40616 alias -g '${1+"$@"}'='"$@"'
40617 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40620 DUALCASE=1; export DUALCASE # for MKS sh
40622 # Support unset when possible.
40623 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40630 # Work around bugs in pre-3.0 UWIN ksh.
40631 $as_unset ENV MAIL MAILPATH
40638 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40639 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40640 LC_TELEPHONE LC_TIME
40642 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40643 eval $as_var=C; export $as_var
40649 # Required to use basename.
40650 if expr a : '\(a\)' >/dev/null 2>&1; then
40656 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40657 as_basename=basename
40663 # Name of the executable.
40664 as_me=`$as_basename "$0" ||
40665 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40666 X"$0" : 'X\(//\)$' \| \
40667 X"$0" : 'X\(/\)$' \| \
40668 . : '\(.\)' 2>/dev/null ||
40670 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40671 /^X\/\(\/\/\)$/{ s//\1/; q; }
40672 /^X\/\(\/\).*/{ s//\1/; q; }
40676 # PATH needs CR, and LINENO needs CR and PATH.
40677 # Avoid depending upon Character Ranges.
40678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40681 as_cr_digits='0123456789'
40682 as_cr_alnum=$as_cr_Letters$as_cr_digits
40684 # The user is always right.
40685 if test "${PATH_SEPARATOR+set}" != set; then
40686 echo "#! /bin/sh" >conf$$.sh
40687 echo "exit 0" >>conf$$.sh
40689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40698 as_lineno_1=$LINENO
40699 as_lineno_2=$LINENO
40700 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40701 test "x$as_lineno_1" != "x$as_lineno_2" &&
40702 test "x$as_lineno_3" = "x$as_lineno_2" || {
40703 # Find who we are. Look in the path if we contain no path at all
40706 *[\\/]* ) as_myself=$0 ;;
40707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40708 for as_dir in $PATH
40711 test -z "$as_dir" && as_dir=.
40712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40717 # We did not find ourselves, most probably we were run as `sh COMMAND'
40718 # in which case we are not to be found in the path.
40719 if test "x$as_myself" = x; then
40722 if test ! -f "$as_myself"; then
40723 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40724 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40725 { (exit 1); exit 1; }; }
40727 case $CONFIG_SHELL in
40729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40730 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40733 test -z "$as_dir" && as_dir=.
40734 for as_base in sh bash ksh sh5; do
40737 if ("$as_dir/$as_base" -c '
40738 as_lineno_1=$LINENO
40739 as_lineno_2=$LINENO
40740 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40741 test "x$as_lineno_1" != "x$as_lineno_2" &&
40742 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40743 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40744 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40745 CONFIG_SHELL=$as_dir/$as_base
40746 export CONFIG_SHELL
40747 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40755 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40756 # uniformly replaced by the line number. The first 'sed' inserts a
40757 # line-number line before each line; the second 'sed' does the real
40758 # work. The second script uses 'N' to pair each line-number line
40759 # with the numbered line, and appends trailing '-' during
40760 # substitution so that $LINENO is not a special case at line end.
40761 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40762 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40763 sed '=' <$as_myself |
40768 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40771 s,^['$as_cr_digits']*\n,,
40772 ' >$as_me.lineno &&
40773 chmod +x $as_me.lineno ||
40774 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40775 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40776 { (exit 1); exit 1; }; }
40778 # Don't try to exec as it changes $[0], causing all sort of problems
40779 # (the dirname of $[0] is not the place where we might find the
40780 # original and so on. Autoconf is especially sensible to this).
40782 # Exit status is that of the last command.
40787 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40788 *c*,-n*) ECHO_N= ECHO_C='
40790 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40791 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40794 if expr a : '\(a\)' >/dev/null 2>&1; then
40800 rm -f conf$$ conf$$.exe conf$$.file
40802 if ln -s conf$$.file conf$$ 2>/dev/null; then
40803 # We could just check for DJGPP; but this test a) works b) is more generic
40804 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40805 if test -f conf$$.exe; then
40806 # Don't use ln at all; we don't have any links
40811 elif ln conf$$.file conf$$ 2>/dev/null; then
40816 rm -f conf$$ conf$$.exe conf$$.file
40818 if mkdir -p . 2>/dev/null; then
40821 test -d ./-p && rmdir ./-p
40825 as_executable_p="test -f"
40827 # Sed expression to map a string onto a valid CPP name.
40828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40830 # Sed expression to map a string onto a valid variable name.
40831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40835 # We need space, tab and new line, in precisely that order.
40845 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40846 # report actual input values of CONFIG_FILES etc. instead of their
40847 # values after options handling. Logging --version etc. is OK.
40851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40852 ## Running $as_me. ##
40857 This file was extended by $as_me, which was
40858 generated by GNU Autoconf 2.59. Invocation command line was
40860 CONFIG_FILES = $CONFIG_FILES
40861 CONFIG_HEADERS = $CONFIG_HEADERS
40862 CONFIG_LINKS = $CONFIG_LINKS
40863 CONFIG_COMMANDS = $CONFIG_COMMANDS
40867 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40871 # Files that config.status was made for.
40872 if test -n "$ac_config_files"; then
40873 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40876 if test -n "$ac_config_headers"; then
40877 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40880 if test -n "$ac_config_links"; then
40881 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40884 if test -n "$ac_config_commands"; then
40885 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40888 cat >>$CONFIG_STATUS <<\_ACEOF
40891 \`$as_me' instantiates files from templates according to the
40892 current configuration.
40894 Usage: $0 [OPTIONS] [FILE]...
40896 -h, --help print this help, then exit
40897 -V, --version print version number, then exit
40898 -q, --quiet do not print progress messages
40899 -d, --debug don't remove temporary files
40900 --recheck update $as_me by reconfiguring in the same conditions
40901 --file=FILE[:TEMPLATE]
40902 instantiate the configuration file FILE
40903 --header=FILE[:TEMPLATE]
40904 instantiate the configuration header FILE
40906 Configuration files:
40909 Configuration headers:
40912 Configuration commands:
40915 Report bugs to <bug-autoconf@gnu.org>."
40918 cat >>$CONFIG_STATUS <<_ACEOF
40921 configured by $0, generated by GNU Autoconf 2.59,
40922 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40924 Copyright (C) 2003 Free Software Foundation, Inc.
40925 This config.status script is free software; the Free Software Foundation
40926 gives unlimited permission to copy, distribute and modify it."
40931 cat >>$CONFIG_STATUS <<\_ACEOF
40932 # If no file are specified by the user, then we need to provide default
40933 # value. By we need to know if files were specified by the user.
40939 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40940 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40948 *) # This is not an option, so the user has probably given explicit
40951 ac_need_defaults=false;;
40955 # Handling of the options.
40957 cat >>$CONFIG_STATUS <<\_ACEOF
40958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40960 --version | --vers* | -V )
40961 echo "$ac_cs_version"; exit 0 ;;
40963 # Conflict between --help and --header
40964 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40965 Try \`$0 --help' for more information." >&5
40966 echo "$as_me: error: ambiguous option: $1
40967 Try \`$0 --help' for more information." >&2;}
40968 { (exit 1); exit 1; }; };;
40969 --help | --hel | -h )
40970 echo "$ac_cs_usage"; exit 0 ;;
40971 --debug | --d* | -d )
40973 --file | --fil | --fi | --f )
40975 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40976 ac_need_defaults=false;;
40977 --header | --heade | --head | --hea )
40979 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40980 ac_need_defaults=false;;
40981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40982 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40985 # This is an error.
40986 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40987 Try \`$0 --help' for more information." >&5
40988 echo "$as_me: error: unrecognized option: $1
40989 Try \`$0 --help' for more information." >&2;}
40990 { (exit 1); exit 1; }; } ;;
40992 *) ac_config_targets="$ac_config_targets $1" ;;
40998 ac_configure_extra_args=
41000 if $ac_cs_silent; then
41002 ac_configure_extra_args="$ac_configure_extra_args --silent"
41006 cat >>$CONFIG_STATUS <<_ACEOF
41007 if \$ac_cs_recheck; then
41008 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41009 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41014 cat >>$CONFIG_STATUS <<_ACEOF
41016 # INIT-COMMANDS section.
41019 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41021 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41022 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41029 cat >>$CONFIG_STATUS <<\_ACEOF
41030 for ac_config_target in $ac_config_targets
41032 case "$ac_config_target" in
41033 # Handling of arguments.
41034 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41035 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41036 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41037 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41038 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41039 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41040 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41041 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41042 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41043 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41044 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41045 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41046 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41047 "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" ;;
41048 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41049 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41050 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41051 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41052 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41053 "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" ;;
41054 "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" ;;
41055 "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" ;;
41056 "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" ;;
41057 "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" ;;
41058 "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" ;;
41059 "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" ;;
41060 "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" ;;
41061 "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" ;;
41062 "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" ;;
41063 "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" ;;
41064 "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" ;;
41065 "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" ;;
41066 "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" ;;
41067 "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" ;;
41068 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41069 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41070 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41071 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41072 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41073 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41074 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41075 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41076 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41077 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41079 { (exit 1); exit 1; }; };;
41083 # If the user did not use the arguments to specify the items to instantiate,
41084 # then the envvar interface is used. Set only those that are not.
41085 # We use the long form for the default assignment because of an extremely
41086 # bizarre bug on SunOS 4.1.3.
41087 if $ac_need_defaults; then
41088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41093 # Have a temporary directory for convenience. Make it in the build tree
41094 # simply because there is no reason to put it here, and in addition,
41095 # creating and moving files from /tmp can sometimes cause problems.
41096 # Create a temporary directory, and hook for its removal unless debugging.
41099 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41100 trap '{ (exit 1); exit 1; }' 1 2 13 15
41103 # Create a (secure) tmp directory for tmp files.
41106 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41107 test -n "$tmp" && test -d "$tmp"
41110 tmp=./confstat$$-$RANDOM
41111 (umask 077 && mkdir $tmp)
41114 echo "$me: cannot create a temporary directory in ." >&2
41115 { (exit 1); exit 1; }
41120 cat >>$CONFIG_STATUS <<_ACEOF
41123 # CONFIG_FILES section.
41126 # No need to generate the scripts if there are no CONFIG_FILES.
41127 # This happens for instance when ./config.status config.h
41128 if test -n "\$CONFIG_FILES"; then
41129 # Protect against being on the right side of a sed subst in config.status.
41130 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41131 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41132 s,@SHELL@,$SHELL,;t t
41133 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41134 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41135 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41136 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41137 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41138 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41139 s,@exec_prefix@,$exec_prefix,;t t
41140 s,@prefix@,$prefix,;t t
41141 s,@program_transform_name@,$program_transform_name,;t t
41142 s,@bindir@,$bindir,;t t
41143 s,@sbindir@,$sbindir,;t t
41144 s,@libexecdir@,$libexecdir,;t t
41145 s,@datadir@,$datadir,;t t
41146 s,@sysconfdir@,$sysconfdir,;t t
41147 s,@sharedstatedir@,$sharedstatedir,;t t
41148 s,@localstatedir@,$localstatedir,;t t
41149 s,@libdir@,$libdir,;t t
41150 s,@includedir@,$includedir,;t t
41151 s,@oldincludedir@,$oldincludedir,;t t
41152 s,@infodir@,$infodir,;t t
41153 s,@mandir@,$mandir,;t t
41154 s,@build_alias@,$build_alias,;t t
41155 s,@host_alias@,$host_alias,;t t
41156 s,@target_alias@,$target_alias,;t t
41157 s,@DEFS@,$DEFS,;t t
41158 s,@ECHO_C@,$ECHO_C,;t t
41159 s,@ECHO_N@,$ECHO_N,;t t
41160 s,@ECHO_T@,$ECHO_T,;t t
41161 s,@LIBS@,$LIBS,;t t
41162 s,@build@,$build,;t t
41163 s,@build_cpu@,$build_cpu,;t t
41164 s,@build_vendor@,$build_vendor,;t t
41165 s,@build_os@,$build_os,;t t
41166 s,@host@,$host,;t t
41167 s,@host_cpu@,$host_cpu,;t t
41168 s,@host_vendor@,$host_vendor,;t t
41169 s,@host_os@,$host_os,;t t
41170 s,@target@,$target,;t t
41171 s,@target_cpu@,$target_cpu,;t t
41172 s,@target_vendor@,$target_vendor,;t t
41173 s,@target_os@,$target_os,;t t
41174 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41175 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41176 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41177 s,@CYGPATH_W@,$CYGPATH_W,;t t
41178 s,@PACKAGE@,$PACKAGE,;t t
41179 s,@VERSION@,$VERSION,;t t
41180 s,@ACLOCAL@,$ACLOCAL,;t t
41181 s,@AUTOCONF@,$AUTOCONF,;t t
41182 s,@AUTOMAKE@,$AUTOMAKE,;t t
41183 s,@AUTOHEADER@,$AUTOHEADER,;t t
41184 s,@MAKEINFO@,$MAKEINFO,;t t
41185 s,@install_sh@,$install_sh,;t t
41186 s,@STRIP@,$STRIP,;t t
41187 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41188 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41189 s,@mkdir_p@,$mkdir_p,;t t
41191 s,@SET_MAKE@,$SET_MAKE,;t t
41192 s,@am__leading_dot@,$am__leading_dot,;t t
41193 s,@AMTAR@,$AMTAR,;t t
41194 s,@am__tar@,$am__tar,;t t
41195 s,@am__untar@,$am__untar,;t t
41196 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41197 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41198 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41199 s,@top_builddir@,$top_builddir,;t t
41200 s,@ldap_subdir@,$ldap_subdir,;t t
41203 s,@CFLAGS@,$CFLAGS,;t t
41204 s,@LDFLAGS@,$LDFLAGS,;t t
41205 s,@CPPFLAGS@,$CPPFLAGS,;t t
41206 s,@ac_ct_CC@,$ac_ct_CC,;t t
41207 s,@EXEEXT@,$EXEEXT,;t t
41208 s,@OBJEXT@,$OBJEXT,;t t
41209 s,@DEPDIR@,$DEPDIR,;t t
41210 s,@am__include@,$am__include,;t t
41211 s,@am__quote@,$am__quote,;t t
41212 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41213 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41214 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41215 s,@CCDEPMODE@,$CCDEPMODE,;t t
41216 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41217 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41218 s,@EGREP@,$EGREP,;t t
41219 s,@LN_S@,$LN_S,;t t
41220 s,@ECHO@,$ECHO,;t t
41221 s,@ac_ct_AR@,$ac_ct_AR,;t t
41222 s,@RANLIB@,$RANLIB,;t t
41223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41224 s,@DLLTOOL@,$DLLTOOL,;t t
41225 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41227 s,@ac_ct_AS@,$ac_ct_AS,;t t
41228 s,@OBJDUMP@,$OBJDUMP,;t t
41229 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41231 s,@LIBTOOL@,$LIBTOOL,;t t
41232 s,@PERLBIN@,$PERLBIN,;t t
41233 s,@OL_MKDEP@,$OL_MKDEP,;t t
41234 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41235 s,@LTSTATIC@,$LTSTATIC,;t t
41236 s,@LIBOBJS@,$LIBOBJS,;t t
41237 s,@LIBSRCS@,$LIBSRCS,;t t
41238 s,@PLAT@,$PLAT,;t t
41239 s,@WITH_SASL@,$WITH_SASL,;t t
41240 s,@WITH_TLS@,$WITH_TLS,;t t
41241 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41242 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41243 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41244 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41245 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41246 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41247 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41248 s,@BUILD_BDB@,$BUILD_BDB,;t t
41249 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41250 s,@BUILD_HDB@,$BUILD_HDB,;t t
41251 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41252 s,@BUILD_META@,$BUILD_META,;t t
41253 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41254 s,@BUILD_NULL@,$BUILD_NULL,;t t
41255 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41256 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41257 s,@BUILD_PERL@,$BUILD_PERL,;t t
41258 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41259 s,@BUILD_SQL@,$BUILD_SQL,;t t
41260 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41261 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41262 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41263 s,@BUILD_DDS@,$BUILD_DDS,;t t
41264 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41265 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41266 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41267 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41268 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41269 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41270 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41271 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41272 s,@BUILD_RWM@,$BUILD_RWM,;t t
41273 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41274 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41275 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41276 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41277 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41278 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41279 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41280 s,@BDB_LIBS@,$BDB_LIBS,;t t
41281 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41282 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41283 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41284 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41285 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41286 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41287 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41288 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41289 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41290 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41291 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41292 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41293 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41294 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41295 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41296 s,@SASL_LIBS@,$SASL_LIBS,;t t
41297 s,@TLS_LIBS@,$TLS_LIBS,;t t
41298 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41299 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41300 s,@LIBSLAPI@,$LIBSLAPI,;t t
41301 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41302 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41303 s,@ICU_LIBS@,$ICU_LIBS,;t t
41304 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41305 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41306 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41307 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41308 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41309 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41314 cat >>$CONFIG_STATUS <<\_ACEOF
41315 # Split the substitutions into bite-sized pieces for seds with
41316 # small command number limits, like on Digital OSF/1 and HP-UX.
41317 ac_max_sed_lines=48
41318 ac_sed_frag=1 # Number of current file.
41319 ac_beg=1 # First line for current file.
41320 ac_end=$ac_max_sed_lines # Line after last line for current file.
41323 while $ac_more_lines; do
41324 if test $ac_beg -gt 1; then
41325 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41327 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41329 if test ! -s $tmp/subs.frag; then
41330 ac_more_lines=false
41332 # The purpose of the label and of the branching condition is to
41333 # speed up the sed processing (if there are no `@' at all, there
41334 # is no need to browse any of the substitutions).
41335 # These are the two extra sed commands mentioned above.
41337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41338 if test -z "$ac_sed_cmds"; then
41339 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41341 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41343 ac_sed_frag=`expr $ac_sed_frag + 1`
41345 ac_end=`expr $ac_end + $ac_max_sed_lines`
41348 if test -z "$ac_sed_cmds"; then
41351 fi # test -n "$CONFIG_FILES"
41354 cat >>$CONFIG_STATUS <<\_ACEOF
41355 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41356 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41358 - | *:- | *:-:* ) # input from stdin
41360 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41362 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41363 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41364 * ) ac_file_in=$ac_file.in ;;
41367 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41368 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41369 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41370 X"$ac_file" : 'X\(//\)[^/]' \| \
41371 X"$ac_file" : 'X\(//\)$' \| \
41372 X"$ac_file" : 'X\(/\)' \| \
41373 . : '\(.\)' 2>/dev/null ||
41375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41377 /^X\(\/\/\)$/{ s//\1/; q; }
41378 /^X\(\/\).*/{ s//\1/; q; }
41380 { if $as_mkdir_p; then
41385 while test ! -d "$as_dir"; do
41386 as_dirs="$as_dir $as_dirs"
41387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41389 X"$as_dir" : 'X\(//\)[^/]' \| \
41390 X"$as_dir" : 'X\(//\)$' \| \
41391 X"$as_dir" : 'X\(/\)' \| \
41392 . : '\(.\)' 2>/dev/null ||
41394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41396 /^X\(\/\/\)$/{ s//\1/; q; }
41397 /^X\(\/\).*/{ s//\1/; q; }
41400 test ! -n "$as_dirs" || mkdir $as_dirs
41401 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41402 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41403 { (exit 1); exit 1; }; }; }
41407 if test "$ac_dir" != .; then
41408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41409 # A "../" for each directory in $ac_dir_suffix.
41410 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41412 ac_dir_suffix= ac_top_builddir=
41416 .) # No --srcdir option. We are building in place.
41418 if test -z "$ac_top_builddir"; then
41421 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41423 [\\/]* | ?:[\\/]* ) # Absolute path.
41424 ac_srcdir=$srcdir$ac_dir_suffix;
41425 ac_top_srcdir=$srcdir ;;
41426 *) # Relative path.
41427 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41428 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41431 # Do not use `cd foo && pwd` to compute absolute paths, because
41432 # the directories may not exist.
41434 .) ac_abs_builddir="$ac_dir";;
41437 .) ac_abs_builddir=`pwd`;;
41438 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41439 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41442 case $ac_abs_builddir in
41443 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41445 case ${ac_top_builddir}. in
41446 .) ac_abs_top_builddir=$ac_abs_builddir;;
41447 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41448 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41451 case $ac_abs_builddir in
41452 .) ac_abs_srcdir=$ac_srcdir;;
41455 .) ac_abs_srcdir=$ac_abs_builddir;;
41456 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41457 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41460 case $ac_abs_builddir in
41461 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41463 case $ac_top_srcdir in
41464 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41465 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41466 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41472 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41473 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41476 if test x"$ac_file" != x-; then
41477 { echo "$as_me:$LINENO: creating $ac_file" >&5
41478 echo "$as_me: creating $ac_file" >&6;}
41481 # Let's still pretend it is `configure' which instantiates (i.e., don't
41482 # use $as_me), people would be surprised to read:
41483 # /* config.h. Generated by config.status. */
41484 if test x"$ac_file" = x-; then
41487 configure_input="$ac_file. "
41489 configure_input=$configure_input"Generated from `echo $ac_file_in |
41490 sed 's,.*/,,'` by configure."
41492 # First look for the input files in the build tree, otherwise in the
41494 ac_file_inputs=`IFS=:
41495 for f in $ac_file_in; do
41497 -) echo $tmp/stdin ;;
41499 # Absolute (can't be DOS-style, as IFS=:)
41500 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41501 echo "$as_me: error: cannot find input file: $f" >&2;}
41502 { (exit 1); exit 1; }; }
41505 if test -f "$f"; then
41508 elif test -f "$srcdir/$f"; then
41513 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41514 echo "$as_me: error: cannot find input file: $f" >&2;}
41515 { (exit 1); exit 1; }; }
41518 done` || { (exit 1); exit 1; }
41520 cat >>$CONFIG_STATUS <<_ACEOF
41524 cat >>$CONFIG_STATUS <<\_ACEOF
41526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41527 s,@configure_input@,$configure_input,;t t
41528 s,@srcdir@,$ac_srcdir,;t t
41529 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41530 s,@top_srcdir@,$ac_top_srcdir,;t t
41531 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41532 s,@builddir@,$ac_builddir,;t t
41533 s,@abs_builddir@,$ac_abs_builddir,;t t
41534 s,@top_builddir@,$ac_top_builddir,;t t
41535 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41536 s,@INSTALL@,$ac_INSTALL,;t t
41537 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41539 if test x"$ac_file" != x-; then
41540 mv $tmp/out $ac_file
41548 cat >>$CONFIG_STATUS <<\_ACEOF
41551 # CONFIG_HEADER section.
41554 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41555 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41557 # ac_d sets the value in "#define NAME VALUE" lines.
41558 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41559 ac_dB='[ ].*$,\1#\2'
41562 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41563 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41564 ac_uB='$,\1#\2define\3'
41568 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41569 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41571 - | *:- | *:-:* ) # input from stdin
41573 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41574 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41575 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41576 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41577 * ) ac_file_in=$ac_file.in ;;
41580 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41581 echo "$as_me: creating $ac_file" >&6;}
41583 # First look for the input files in the build tree, otherwise in the
41585 ac_file_inputs=`IFS=:
41586 for f in $ac_file_in; do
41588 -) echo $tmp/stdin ;;
41590 # Absolute (can't be DOS-style, as IFS=:)
41591 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41592 echo "$as_me: error: cannot find input file: $f" >&2;}
41593 { (exit 1); exit 1; }; }
41594 # Do quote $f, to prevent DOS paths from being IFS'd.
41597 if test -f "$f"; then
41600 elif test -f "$srcdir/$f"; then
41605 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41606 echo "$as_me: error: cannot find input file: $f" >&2;}
41607 { (exit 1); exit 1; }; }
41610 done` || { (exit 1); exit 1; }
41611 # Remove the trailing spaces.
41612 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41616 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41617 # `conftest.undefs', that substitutes the proper values into
41618 # config.h.in to produce config.h. The first handles `#define'
41619 # templates, and the second `#undef' templates.
41620 # And first: Protect against being on the right side of a sed subst in
41621 # config.status. Protect against being in an unquoted here document
41622 # in config.status.
41623 rm -f conftest.defines conftest.undefs
41624 # Using a here document instead of a string reduces the quoting nightmare.
41625 # Putting comments in sed scripts is not portable.
41627 # `end' is used to avoid that the second main sed command (meant for
41628 # 0-ary CPP macros) applies to n-ary macro definitions.
41629 # See the Autoconf documentation for `clear'.
41630 cat >confdef2sed.sed <<\_ACEOF
41635 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41637 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41640 # If some macros were called several times there might be several times
41641 # the same #defines, which is useless. Nevertheless, we may not want to
41642 # sort them, since we want the *last* AC-DEFINE to be honored.
41643 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41644 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41645 rm -f confdef2sed.sed
41647 # This sed command replaces #undef with comments. This is necessary, for
41648 # example, in the case of _POSIX_SOURCE, which is predefined and required
41649 # on some systems where configure will not decide to define it.
41650 cat >>conftest.undefs <<\_ACEOF
41651 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41654 # Break up conftest.defines because some shells have a limit on the size
41655 # of here documents, and old seds have small limits too (100 cmds).
41656 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41657 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41658 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41659 echo ' :' >>$CONFIG_STATUS
41660 rm -f conftest.tail
41661 while grep . conftest.defines >/dev/null
41663 # Write a limited-size here document to $tmp/defines.sed.
41664 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41665 # Speed up: don't consider the non `#define' lines.
41666 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41667 # Work around the forget-to-reset-the-flag bug.
41668 echo 't clr' >>$CONFIG_STATUS
41669 echo ': clr' >>$CONFIG_STATUS
41670 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41672 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41674 mv $tmp/out $tmp/in
41676 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41677 rm -f conftest.defines
41678 mv conftest.tail conftest.defines
41680 rm -f conftest.defines
41681 echo ' fi # grep' >>$CONFIG_STATUS
41682 echo >>$CONFIG_STATUS
41684 # Break up conftest.undefs because some shells have a limit on the size
41685 # of here documents, and old seds have small limits too (100 cmds).
41686 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41687 rm -f conftest.tail
41688 while grep . conftest.undefs >/dev/null
41690 # Write a limited-size here document to $tmp/undefs.sed.
41691 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41692 # Speed up: don't consider the non `#undef'
41693 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41694 # Work around the forget-to-reset-the-flag bug.
41695 echo 't clr' >>$CONFIG_STATUS
41696 echo ': clr' >>$CONFIG_STATUS
41697 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41699 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41701 mv $tmp/out $tmp/in
41703 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41704 rm -f conftest.undefs
41705 mv conftest.tail conftest.undefs
41707 rm -f conftest.undefs
41709 cat >>$CONFIG_STATUS <<\_ACEOF
41710 # Let's still pretend it is `configure' which instantiates (i.e., don't
41711 # use $as_me), people would be surprised to read:
41712 # /* config.h. Generated by config.status. */
41713 if test x"$ac_file" = x-; then
41714 echo "/* Generated by configure. */" >$tmp/config.h
41716 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41718 cat $tmp/in >>$tmp/config.h
41720 if test x"$ac_file" != x-; then
41721 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41722 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41723 echo "$as_me: $ac_file is unchanged" >&6;}
41725 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41727 X"$ac_file" : 'X\(//\)[^/]' \| \
41728 X"$ac_file" : 'X\(//\)$' \| \
41729 X"$ac_file" : 'X\(/\)' \| \
41730 . : '\(.\)' 2>/dev/null ||
41732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41734 /^X\(\/\/\)$/{ s//\1/; q; }
41735 /^X\(\/\).*/{ s//\1/; q; }
41737 { if $as_mkdir_p; then
41742 while test ! -d "$as_dir"; do
41743 as_dirs="$as_dir $as_dirs"
41744 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41746 X"$as_dir" : 'X\(//\)[^/]' \| \
41747 X"$as_dir" : 'X\(//\)$' \| \
41748 X"$as_dir" : 'X\(/\)' \| \
41749 . : '\(.\)' 2>/dev/null ||
41751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41753 /^X\(\/\/\)$/{ s//\1/; q; }
41754 /^X\(\/\).*/{ s//\1/; q; }
41757 test ! -n "$as_dirs" || mkdir $as_dirs
41758 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41759 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41760 { (exit 1); exit 1; }; }; }
41763 mv $tmp/config.h $ac_file
41767 rm -f $tmp/config.h
41769 # Compute $ac_file's index in $config_headers.
41771 for _am_header in $config_headers :; do
41772 case $_am_header in
41773 $ac_file | $ac_file:* )
41776 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41779 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
41780 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41781 X$ac_file : 'X\(//\)[^/]' \| \
41782 X$ac_file : 'X\(//\)$' \| \
41783 X$ac_file : 'X\(/\)' \| \
41784 . : '\(.\)' 2>/dev/null ||
41786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41788 /^X\(\/\/\)$/{ s//\1/; q; }
41789 /^X\(\/\).*/{ s//\1/; q; }
41790 s/.*/./; q'`/stamp-h$_am_stamp_count
41793 cat >>$CONFIG_STATUS <<\_ACEOF
41796 # CONFIG_COMMANDS section.
41798 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41799 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41800 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41801 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41802 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41803 X"$ac_dest" : 'X\(//\)[^/]' \| \
41804 X"$ac_dest" : 'X\(//\)$' \| \
41805 X"$ac_dest" : 'X\(/\)' \| \
41806 . : '\(.\)' 2>/dev/null ||
41808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41810 /^X\(\/\/\)$/{ s//\1/; q; }
41811 /^X\(\/\).*/{ s//\1/; q; }
41813 { if $as_mkdir_p; then
41818 while test ! -d "$as_dir"; do
41819 as_dirs="$as_dir $as_dirs"
41820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41822 X"$as_dir" : 'X\(//\)[^/]' \| \
41823 X"$as_dir" : 'X\(//\)$' \| \
41824 X"$as_dir" : 'X\(/\)' \| \
41825 . : '\(.\)' 2>/dev/null ||
41827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41829 /^X\(\/\/\)$/{ s//\1/; q; }
41830 /^X\(\/\).*/{ s//\1/; q; }
41833 test ! -n "$as_dirs" || mkdir $as_dirs
41834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41836 { (exit 1); exit 1; }; }; }
41840 if test "$ac_dir" != .; then
41841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41842 # A "../" for each directory in $ac_dir_suffix.
41843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41845 ac_dir_suffix= ac_top_builddir=
41849 .) # No --srcdir option. We are building in place.
41851 if test -z "$ac_top_builddir"; then
41854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41856 [\\/]* | ?:[\\/]* ) # Absolute path.
41857 ac_srcdir=$srcdir$ac_dir_suffix;
41858 ac_top_srcdir=$srcdir ;;
41859 *) # Relative path.
41860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41864 # Do not use `cd foo && pwd` to compute absolute paths, because
41865 # the directories may not exist.
41867 .) ac_abs_builddir="$ac_dir";;
41870 .) ac_abs_builddir=`pwd`;;
41871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41875 case $ac_abs_builddir in
41876 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41878 case ${ac_top_builddir}. in
41879 .) ac_abs_top_builddir=$ac_abs_builddir;;
41880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41884 case $ac_abs_builddir in
41885 .) ac_abs_srcdir=$ac_srcdir;;
41888 .) ac_abs_srcdir=$ac_abs_builddir;;
41889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41893 case $ac_abs_builddir in
41894 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41896 case $ac_top_srcdir in
41897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41904 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41905 echo "$as_me: executing $ac_dest commands" >&6;}
41907 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
41908 # Strip MF so we end up with the name of the file.
41909 mf=`echo "$mf" | sed -e 's/:.*$//'`
41910 # Check whether this is an Automake generated Makefile or not.
41911 # We used to match only the files named `Makefile.in', but
41912 # some people rename them; so instead we look at the file content.
41913 # Grep'ing the first line is not enough: some people post-process
41914 # each Makefile.in and add a new line on top of each file to say so.
41915 # So let's grep whole file.
41916 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
41917 dirpart=`(dirname "$mf") 2>/dev/null ||
41918 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41919 X"$mf" : 'X\(//\)[^/]' \| \
41920 X"$mf" : 'X\(//\)$' \| \
41921 X"$mf" : 'X\(/\)' \| \
41922 . : '\(.\)' 2>/dev/null ||
41924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41926 /^X\(\/\/\)$/{ s//\1/; q; }
41927 /^X\(\/\).*/{ s//\1/; q; }
41932 # Extract the definition of DEPDIR, am__include, and am__quote
41933 # from the Makefile without running `make'.
41934 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41935 test -z "$DEPDIR" && continue
41936 am__include=`sed -n 's/^am__include = //p' < "$mf"`
41937 test -z "am__include" && continue
41938 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41939 # When using ansi2knr, U may be empty or an underscore; expand it
41940 U=`sed -n 's/^U = //p' < "$mf"`
41941 # Find all dependency output files, they are included files with
41942 # $(DEPDIR) in their names. We invoke sed twice because it is the
41943 # simplest approach to changing $(DEPDIR) to its actual value in the
41945 for file in `sed -n "
41946 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41947 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
41948 # Make sure the directory exists.
41949 test -f "$dirpart/$file" && continue
41950 fdir=`(dirname "$file") 2>/dev/null ||
41951 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41952 X"$file" : 'X\(//\)[^/]' \| \
41953 X"$file" : 'X\(//\)$' \| \
41954 X"$file" : 'X\(/\)' \| \
41955 . : '\(.\)' 2>/dev/null ||
41957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41959 /^X\(\/\/\)$/{ s//\1/; q; }
41960 /^X\(\/\).*/{ s//\1/; q; }
41962 { if $as_mkdir_p; then
41963 mkdir -p $dirpart/$fdir
41965 as_dir=$dirpart/$fdir
41967 while test ! -d "$as_dir"; do
41968 as_dirs="$as_dir $as_dirs"
41969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41971 X"$as_dir" : 'X\(//\)[^/]' \| \
41972 X"$as_dir" : 'X\(//\)$' \| \
41973 X"$as_dir" : 'X\(/\)' \| \
41974 . : '\(.\)' 2>/dev/null ||
41976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41978 /^X\(\/\/\)$/{ s//\1/; q; }
41979 /^X\(\/\).*/{ s//\1/; q; }
41982 test ! -n "$as_dirs" || mkdir $as_dirs
41983 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
41984 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
41985 { (exit 1); exit 1; }; }; }
41987 # echo "creating $dirpart/$file"
41988 echo '# dummy' > "$dirpart/$file"
41995 BACKENDSC="servers/slapd/backends.c"
41996 echo "Making $BACKENDSC"
41998 cat > $BACKENDSC << ENDX
41999 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42001 * Copyright 1998-2007 The OpenLDAP Foundation.
42002 * All rights reserved.
42004 * Redistribution and use in source and binary forms, with or without
42005 * modification, are permitted only as authorized by the OpenLDAP
42008 * A copy of this license is available in the file LICENSE in the
42009 * top-level directory of the distribution or, alternatively, at
42010 * <http://www.OpenLDAP.org/license.html>.
42012 /* This file is automatically generated by configure; please do not edit. */
42014 #include "portable.h"
42018 if test "${STATIC_BACKENDS}"; then
42019 for b in config ${STATIC_BACKENDS}; do
42020 bb=`echo "${b}" | sed -e 's/back-//'`
42021 cat >> $BACKENDSC << ENDX
42022 extern BI_init ${bb}_back_initialize;
42026 cat >> $BACKENDSC << ENDX
42028 BackendInfo slap_binfo[] = {
42031 for b in config ${STATIC_BACKENDS}; do
42032 bb=`echo "${b}" | sed -e 's/back-//'`
42033 echo " Add ${bb} ..."
42034 cat >> $BACKENDSC << ENDX
42035 { "${bb}", ${bb}_back_initialize },
42039 cat >> $BACKENDSC << ENDX
42043 /* end of generated file */
42046 OVERLAYSC="servers/slapd/overlays/statover.c"
42047 echo "Making $OVERLAYSC"
42049 cat > $OVERLAYSC << ENDX
42050 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42052 * Copyright 1998-2007 The OpenLDAP Foundation.
42053 * All rights reserved.
42055 * Redistribution and use in source and binary forms, with or without
42056 * modification, are permitted only as authorized by the OpenLDAP
42059 * A copy of this license is available in the file LICENSE in the
42060 * top-level directory of the distribution or, alternatively, at
42061 * <http://www.OpenLDAP.org/license.html>.
42063 /* This file is automatically generated by configure; please do not edit. */
42065 #include "portable.h"
42069 if test "${STATIC_OVERLAYS}"; then
42070 for o in ${STATIC_OVERLAYS}; do
42071 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42072 cat >> $OVERLAYSC << ENDX
42073 extern OV_init ${oo}_initialize;
42078 cat >> $OVERLAYSC << ENDX
42080 OverlayInit slap_oinfo[] = {
42083 if test "${STATIC_OVERLAYS}"; then
42084 for o in ${STATIC_OVERLAYS}; do
42085 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42086 echo " Add ${oo} ..."
42087 cat >> $OVERLAYSC << ENDX
42088 { "${oo}", ${oo}_initialize },
42093 cat >> $OVERLAYSC << ENDX
42097 /* end of generated file */
42100 echo Please run \"make depend\" to build dependencies
42106 cat >>$CONFIG_STATUS <<\_ACEOF
42108 { (exit 0); exit 0; }
42110 chmod +x $CONFIG_STATUS
42111 ac_clean_files=$ac_clean_files_save
42114 # configure is writing to config.log, and then calls config.status.
42115 # config.status does its own redirection, appending to config.log.
42116 # Unfortunately, on DOS this fails, as config.log is still kept open
42117 # by configure, so config.status won't be able to write to it; its
42118 # output is simply discarded. So we exec the FD to /dev/null,
42119 # effectively closing config.log, so it can be properly (re)opened and
42120 # appended to by config.status. When coming back to configure, we
42121 # need to make the FD available again.
42122 if test "$no_create" != yes; then
42124 ac_config_status_args=
42125 test "$silent" = yes &&
42126 ac_config_status_args="$ac_config_status_args --quiet"
42128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42131 # would make configure fail if this is the last instruction.
42132 $ac_cs_success || { (exit 1); exit 1; }