2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631 2006/02/27 10:20:08 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2006 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_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 BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_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-dds Dynamic Directory Services overlay no|yes|mod [no]
1051 --enable-denyop Deny Operation 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-lastmod Last Modification overlay no|yes|mod [no]
1055 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1056 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1057 --enable-refint Referential Integrity overlay no|yes|mod [no]
1058 --enable-retcode Return Code testing overlay no|yes|mod [no]
1059 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1060 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1061 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1062 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1063 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1064 --enable-valsort Value Sorting overlay no|yes|mod [no]
1066 SLURPD (Replication Daemon) Options:
1067 --enable-slurpd enable building slurpd [auto]
1069 Library Generation & Linking Options
1070 --enable-static[=PKGS]
1071 build static libraries [default=yes]
1072 --enable-shared[=PKGS]
1073 build shared libraries [default=yes]
1074 --enable-fast-install[=PKGS]
1075 optimize for fast installation [default=yes]
1076 --disable-dependency-tracking speeds up one-time build
1077 --enable-dependency-tracking do not reject slow dependency extractors
1078 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1082 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1083 --with-subdir=DIR change default subdirectory used for installs
1084 --with-cyrus-sasl with Cyrus SASL support [auto]
1085 --with-fetch with fetch(3) URL support [auto]
1086 --with-threads with threads [auto]
1087 --with-tls with TLS/SSL support [auto]
1088 --with-yielding-select with implicitly yielding select [auto]
1089 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1090 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1091 --with-pic try to use only PIC/non-PIC objects [default=use
1094 include additional configurations [automatic]
1096 See INSTALL file for further details.
1098 Some influential environment variables:
1099 CC C compiler command
1100 CFLAGS C compiler flags
1101 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1102 nonstandard directory <lib dir>
1103 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104 headers in a nonstandard directory <include dir>
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1113 if test "$ac_init_help" = "recursive"; then
1114 # If there are subdirs, report their specific --help.
1116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117 test -d $ac_dir || continue
1120 if test "$ac_dir" != .; then
1121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122 # A "../" for each directory in $ac_dir_suffix.
1123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 ac_dir_suffix= ac_top_builddir=
1129 .) # No --srcdir option. We are building in place.
1131 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136 [\\/]* | ?:[\\/]* ) # Absolute path.
1137 ac_srcdir=$srcdir$ac_dir_suffix;
1138 ac_top_srcdir=$srcdir ;;
1140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1147 .) ac_abs_builddir="$ac_dir";;
1150 .) ac_abs_builddir=`pwd`;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 case ${ac_top_builddir}. in
1159 .) ac_abs_top_builddir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1168 .) ac_abs_srcdir=$ac_abs_builddir;;
1169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 case $ac_top_srcdir in
1177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 # Check for guested configure; otherwise get Cygnus style configure.
1185 if test -f $ac_srcdir/configure.gnu; then
1187 $SHELL $ac_srcdir/configure.gnu --help=recursive
1188 elif test -f $ac_srcdir/configure; then
1190 $SHELL $ac_srcdir/configure --help=recursive
1191 elif test -f $ac_srcdir/configure.ac ||
1192 test -f $ac_srcdir/configure.in; then
1194 $ac_configure --help
1196 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1210 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59. Invocation command line was
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 test -z "$as_dir" && as_dir=.
1256 echo "PATH: $as_dir"
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_must_keep_next=false
1286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297 if test $ac_must_keep_next = true; then
1298 ac_must_keep_next=false # Got value, back to normal.
1301 *=* | --config-cache | -C | -disable-* | --disable-* \
1302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304 | -with-* | --with-* | -without-* | --without-* | --x)
1305 case "$ac_configure_args0 " in
1306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309 -* ) ac_must_keep_next=true ;;
1312 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313 # Get rid of the leading space.
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log. We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328 # Save into config.log some information that might help in debugging.
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1338 # The following way of writing the cache mishandles newlines in values,
1341 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1361 for ac_var in $ac_subst_vars
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1368 if test -n "$ac_subst_files"; then
1375 for ac_var in $ac_subst_files
1377 eval ac_val=$`echo $ac_var`
1378 echo "$ac_var='"'"'$ac_val'"'"'"
1383 if test -s confdefs.h; then
1390 sed "/^$/d" confdefs.h | sort
1393 test "$ac_signal" != 0 &&
1394 echo "$as_me: caught signal $ac_signal"
1395 echo "$as_me: exit $exit_status"
1397 rm -f core *.core &&
1398 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401 for ac_signal in 1 2 13 15; do
1402 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 # Predefined preprocessor variables.
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441 if test "x$prefix" != xNONE; then
1442 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447 for ac_site_file in $CONFIG_SITE; do
1448 if test -r "$ac_site_file"; then
1449 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451 sed 's/^/| /' "$ac_site_file" >&5
1457 # Check that the precious variables saved in the cache have kept the same
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463 eval ac_new_set=\$ac_env_${ac_var}_set
1464 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465 eval ac_new_val="\$ac_env_${ac_var}_value"
1466 case $ac_old_set,$ac_new_set in
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1477 if test "x$ac_old_val" != "x$ac_new_val"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481 echo "$as_me: former value: $ac_old_val" >&2;}
1482 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483 echo "$as_me: current value: $ac_new_val" >&2;}
1484 ac_cache_corrupted=:
1487 # Pass precious variables to config.status.
1488 if test "$ac_new_set" = set; then
1490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 *) ac_arg=$ac_var=$ac_new_val ;;
1494 case " $ac_configure_args " in
1495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500 if $ac_cache_corrupted; then
1501 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505 { (exit 1); exit 1; }; }
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557 for ac_dir in build $srcdir/build; do
1558 if test -f $ac_dir/install-sh; then
1560 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 elif test -f $ac_dir/install.sh; then
1564 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 elif test -f $ac_dir/shtool; then
1568 ac_install_sh="$ac_aux_dir/shtool install -c"
1572 if test -z "$ac_aux_dir"; then
1573 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575 { (exit 1); exit 1; }; }
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585 { (exit 1); exit 1; }; }
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589 ac_cv_shtool="$ac_aux_dir/shtool"
1591 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593 { (exit 1); exit 1; }; }
1596 SHTOOL="$ac_cv_shtool"
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602 if test -d $ac_aux_dir/CVS; then
1603 OPENLDAP_CVS="(from CVS sources) "
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669 ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687 test "$program_prefix$program_suffix$program_transform_name" = \
1689 program_prefix=${target_alias}-
1691 am__api_version="1.9"
1692 # Find a good install program. We prefer a C program (faster),
1693 # so one script is as good as another. But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 test -z "$as_dir" && as_dir=.
1716 # Account for people who put trailing slashes in PATH elements.
1718 ./ | .// | /cC/* | \
1719 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723 # OSF1 and SCO ODT 3.0 have their own names for install.
1724 # Don't use installbsd from OSF since it installs stuff as root
1726 for ac_prog in ginstall scoinst install; do
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729 if test $ac_prog = install &&
1730 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731 # AIX install. It has an incompatible calling convention.
1733 elif test $ac_prog = install &&
1734 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735 # program-specific install script used by HP pwplus--don't use.
1738 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1750 if test "${ac_cv_path_install+set}" = set; then
1751 INSTALL=$ac_cv_path_install
1753 # As a last resort, use the slow shell script. We don't cache a
1754 # path for INSTALL within a source directory, because that will
1755 # break other packages using the cache if that directory is
1756 # removed, or if the path is relative.
1757 INSTALL=$ac_install_sh
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments. Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1782 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783 if test "$*" = "X"; then
1785 set X `ls -t $srcdir/configure conftest.file`
1788 if test "$*" != "X $srcdir/configure conftest.file" \
1789 && test "$*" != "X conftest.file $srcdir/configure"; then
1791 # If neither matched, then we have a broken ls. This can happen
1792 # if, for instance, CONFIG_SHELL is bash and it inherits a
1793 # broken ls alias from the environment. This has actually
1794 # happened. Such a system could not be considered "sane".
1795 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&2;}
1799 { (exit 1); exit 1; }; }
1802 test "$2" = conftest.file
1808 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812 { (exit 1); exit 1; }; }
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $. echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835 am_missing_run="$MISSING --run "
1838 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843 # We used to keeping the `.' as first argument, in order to
1844 # allow $(mkdir_p) to be used without argument. As in
1845 # $(mkdir_p) $(somedir)
1846 # where $(somedir) is conditionally defined. However this is wrong
1848 # 1. if the package is installed by a user who cannot write `.'
1849 # make install will fail,
1850 # 2. the above comment should most certainly read
1851 # $(mkdir_p) $(DESTDIR)$(somedir)
1852 # so it does not work when $(somedir) is undefined and
1853 # $(DESTDIR) is not.
1854 # To support the latter case, we have to write
1855 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856 # so the `.' trick is pointless.
1857 mkdir_p='mkdir -p --'
1859 # On NextStep and OpenStep, the `mkdir' command does not
1860 # recognize any option. It will interpret all options as
1861 # directories to create, and then abort because `.' already
1863 for d in ./-p ./--version;
1865 test -d $d && rmdir $d
1867 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868 if test -f "$ac_aux_dir/mkinstalldirs"; then
1869 mkdir_p='$(mkinstalldirs)'
1871 mkdir_p='$(install_sh) -d'
1875 for ac_prog in gawk mawk nawk awk
1877 # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$AWK"; then
1885 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_AWK="$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$AWK"; then
1905 echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$AWK" && break
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.make <<\_ACEOF
1923 @echo 'ac_maketemp="$(MAKE)"'
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928 eval ac_cv_prog_make_${ac_make}_set=yes
1930 eval ac_cv_prog_make_${ac_make}_set=no
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935 echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 SET_MAKE="MAKE=${MAKE-make}"
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1951 rmdir .tst 2>/dev/null
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955 test -f $srcdir/config.status; then
1956 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963 if (cygpath --version) >/dev/null 2>/dev/null; then
1964 CYGPATH_W='cygpath -w'
1971 # Define the identity of the package.
1976 # Some tools Automake needs.
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'. However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999 if test -n "$ac_tool_prefix"; then
2000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$STRIP"; then
2008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 test -z "$as_dir" && as_dir=.
2015 for ac_exec_ext in '' $ac_executable_extensions; do
2016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028 echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$ac_cv_prog_STRIP"; then
2038 # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_STRIP"; then
2046 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055 ac_cv_prog_ac_ct_STRIP="strip"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2076 STRIP="$ac_cv_prog_STRIP"
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082 # We need awk for the "check" target. The system "awk" is bad on
2084 # Always define AMTAR for backward compatibility.
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2137 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2150 ldap_subdir="/openldap"
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155 withval="$with_subdir"
2162 ldap_subdir="$withval"
2165 ldap_subdir="/$withval"
2171 # OpenLDAP --enable-debug
2173 # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175 enableval="$enable_debug"
2178 for ol_val in no yes traditional ; do
2179 if test "$enableval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186 { (exit 1); exit 1; }; }
2188 ol_enable_debug="$ol_arg"
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2196 # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198 enableval="$enable_dynamic"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209 { (exit 1); exit 1; }; }
2211 ol_enable_dynamic="$ol_arg"
2214 ol_enable_dynamic=no
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2219 # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221 enableval="$enable_syslog"
2224 for ol_val in auto yes no ; do
2225 if test "$enableval" = "$ol_val" ; then
2229 if test "$ol_arg" = "invalid" ; then
2230 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232 { (exit 1); exit 1; }; }
2234 ol_enable_syslog="$ol_arg"
2237 ol_enable_syslog=auto
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2242 # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244 enableval="$enable_proctitle"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255 { (exit 1); exit 1; }; }
2257 ol_enable_proctitle="$ol_arg"
2260 ol_enable_proctitle=yes
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2267 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269 enableval="$enable_ipv6"
2272 for ol_val in auto yes no ; do
2273 if test "$enableval" = "$ol_val" ; then
2277 if test "$ol_arg" = "invalid" ; then
2278 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280 { (exit 1); exit 1; }; }
2282 ol_enable_ipv6="$ol_arg"
2288 # OpenLDAP --enable-local
2290 # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292 enableval="$enable_local"
2295 for ol_val in auto yes no ; do
2296 if test "$enableval" = "$ol_val" ; then
2300 if test "$ol_arg" = "invalid" ; then
2301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303 { (exit 1); exit 1; }; }
2305 ol_enable_local="$ol_arg"
2308 ol_enable_local=auto
2310 # end --enable-local
2312 # OpenLDAP --with-cyrus_sasl
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316 withval="$with_cyrus_sasl"
2319 for ol_val in auto yes no ; do
2320 if test "$withval" = "$ol_val" ; then
2324 if test "$ol_arg" = "invalid" ; then
2325 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327 { (exit 1); exit 1; }; }
2329 ol_with_cyrus_sasl="$ol_arg"
2332 ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2335 # OpenLDAP --with-fetch
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339 withval="$with_fetch"
2342 for ol_val in auto yes no ; do
2343 if test "$withval" = "$ol_val" ; then
2347 if test "$ol_arg" = "invalid" ; then
2348 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350 { (exit 1); exit 1; }; }
2352 ol_with_fetch="$ol_arg"
2355 ol_with_fetch="auto"
2356 fi; # end --with-fetch
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363 withval="$with_threads"
2366 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2367 if test "$withval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374 { (exit 1); exit 1; }; }
2376 ol_with_threads="$ol_arg"
2379 ol_with_threads="auto"
2380 fi; # end --with-threads
2382 # OpenLDAP --with-tls
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2389 for ol_val in auto openssl yes no ; do
2390 if test "$withval" = "$ol_val" ; then
2394 if test "$ol_arg" = "invalid" ; then
2395 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397 { (exit 1); exit 1; }; }
2399 ol_with_tls="$ol_arg"
2403 fi; # end --with-tls
2405 # OpenLDAP --with-yielding_select
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409 withval="$with_yielding_select"
2412 for ol_val in auto yes no manual ; do
2413 if test "$withval" = "$ol_val" ; then
2417 if test "$ol_arg" = "invalid" ; then
2418 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420 { (exit 1); exit 1; }; }
2422 ol_with_yielding_select="$ol_arg"
2425 ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2428 # OpenLDAP --with-mp
2430 # Check whether --with-mp or --without-mp was given.
2431 if test "${with_mp+set}" = set; then
2435 for ol_val in auto longlong long bignum gmp yes no ; do
2436 if test "$withval" = "$ol_val" ; then
2440 if test "$ol_arg" = "invalid" ; then
2441 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2442 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2443 { (exit 1); exit 1; }; }
2445 ol_with_mp="$ol_arg"
2453 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2454 if test "${enable_xxslapdoptions+set}" = set; then
2455 enableval="$enable_xxslapdoptions"
2458 # OpenLDAP --enable-slapd
2460 # Check whether --enable-slapd or --disable-slapd was given.
2461 if test "${enable_slapd+set}" = set; then
2462 enableval="$enable_slapd"
2465 for ol_val in auto yes no ; do
2466 if test "$enableval" = "$ol_val" ; then
2470 if test "$ol_arg" = "invalid" ; then
2471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2472 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2473 { (exit 1); exit 1; }; }
2475 ol_enable_slapd="$ol_arg"
2480 # end --enable-slapd
2481 # OpenLDAP --enable-dynacl
2483 # Check whether --enable-dynacl or --disable-dynacl was given.
2484 if test "${enable_dynacl+set}" = set; then
2485 enableval="$enable_dynacl"
2488 for ol_val in auto yes no ; do
2489 if test "$enableval" = "$ol_val" ; then
2493 if test "$ol_arg" = "invalid" ; then
2494 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2496 { (exit 1); exit 1; }; }
2498 ol_enable_dynacl="$ol_arg"
2503 # end --enable-dynacl
2504 # OpenLDAP --enable-aci
2506 # Check whether --enable-aci or --disable-aci was given.
2507 if test "${enable_aci+set}" = set; then
2508 enableval="$enable_aci"
2511 for ol_val in no yes mod ; do
2512 if test "$enableval" = "$ol_val" ; then
2516 if test "$ol_arg" = "invalid" ; then
2517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2519 { (exit 1); exit 1; }; }
2521 ol_enable_aci="$ol_arg"
2527 # OpenLDAP --enable-cleartext
2529 # Check whether --enable-cleartext or --disable-cleartext was given.
2530 if test "${enable_cleartext+set}" = set; then
2531 enableval="$enable_cleartext"
2534 for ol_val in auto yes no ; do
2535 if test "$enableval" = "$ol_val" ; then
2539 if test "$ol_arg" = "invalid" ; then
2540 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2542 { (exit 1); exit 1; }; }
2544 ol_enable_cleartext="$ol_arg"
2547 ol_enable_cleartext=yes
2549 # end --enable-cleartext
2550 # OpenLDAP --enable-crypt
2552 # Check whether --enable-crypt or --disable-crypt was given.
2553 if test "${enable_crypt+set}" = set; then
2554 enableval="$enable_crypt"
2557 for ol_val in auto yes no ; do
2558 if test "$enableval" = "$ol_val" ; then
2562 if test "$ol_arg" = "invalid" ; then
2563 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2565 { (exit 1); exit 1; }; }
2567 ol_enable_crypt="$ol_arg"
2572 # end --enable-crypt
2573 # OpenLDAP --enable-lmpasswd
2575 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2576 if test "${enable_lmpasswd+set}" = set; then
2577 enableval="$enable_lmpasswd"
2580 for ol_val in auto yes no ; do
2581 if test "$enableval" = "$ol_val" ; then
2585 if test "$ol_arg" = "invalid" ; then
2586 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2588 { (exit 1); exit 1; }; }
2590 ol_enable_lmpasswd="$ol_arg"
2593 ol_enable_lmpasswd=no
2595 # end --enable-lmpasswd
2596 # OpenLDAP --enable-spasswd
2598 # Check whether --enable-spasswd or --disable-spasswd was given.
2599 if test "${enable_spasswd+set}" = set; then
2600 enableval="$enable_spasswd"
2603 for ol_val in auto yes no ; do
2604 if test "$enableval" = "$ol_val" ; then
2608 if test "$ol_arg" = "invalid" ; then
2609 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2611 { (exit 1); exit 1; }; }
2613 ol_enable_spasswd="$ol_arg"
2616 ol_enable_spasswd=no
2618 # end --enable-spasswd
2619 # OpenLDAP --enable-modules
2621 # Check whether --enable-modules or --disable-modules was given.
2622 if test "${enable_modules+set}" = set; then
2623 enableval="$enable_modules"
2626 for ol_val in auto yes no ; do
2627 if test "$enableval" = "$ol_val" ; then
2631 if test "$ol_arg" = "invalid" ; then
2632 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2633 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2634 { (exit 1); exit 1; }; }
2636 ol_enable_modules="$ol_arg"
2639 ol_enable_modules=no
2641 # end --enable-modules
2642 # OpenLDAP --enable-rewrite
2644 # Check whether --enable-rewrite or --disable-rewrite was given.
2645 if test "${enable_rewrite+set}" = set; then
2646 enableval="$enable_rewrite"
2649 for ol_val in auto yes no ; do
2650 if test "$enableval" = "$ol_val" ; then
2654 if test "$ol_arg" = "invalid" ; then
2655 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2656 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2657 { (exit 1); exit 1; }; }
2659 ol_enable_rewrite="$ol_arg"
2662 ol_enable_rewrite=auto
2664 # end --enable-rewrite
2665 # OpenLDAP --enable-rlookups
2667 # Check whether --enable-rlookups or --disable-rlookups was given.
2668 if test "${enable_rlookups+set}" = set; then
2669 enableval="$enable_rlookups"
2672 for ol_val in auto yes no ; do
2673 if test "$enableval" = "$ol_val" ; then
2677 if test "$ol_arg" = "invalid" ; then
2678 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2679 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2680 { (exit 1); exit 1; }; }
2682 ol_enable_rlookups="$ol_arg"
2685 ol_enable_rlookups=no
2687 # end --enable-rlookups
2688 # OpenLDAP --enable-slapi
2690 # Check whether --enable-slapi or --disable-slapi was given.
2691 if test "${enable_slapi+set}" = set; then
2692 enableval="$enable_slapi"
2695 for ol_val in auto yes no ; do
2696 if test "$enableval" = "$ol_val" ; then
2700 if test "$ol_arg" = "invalid" ; then
2701 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2702 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2703 { (exit 1); exit 1; }; }
2705 ol_enable_slapi="$ol_arg"
2710 # end --enable-slapi
2711 # OpenLDAP --enable-slp
2713 # Check whether --enable-slp or --disable-slp was given.
2714 if test "${enable_slp+set}" = set; then
2715 enableval="$enable_slp"
2718 for ol_val in auto yes no ; do
2719 if test "$enableval" = "$ol_val" ; then
2723 if test "$ol_arg" = "invalid" ; then
2724 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2725 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2726 { (exit 1); exit 1; }; }
2728 ol_enable_slp="$ol_arg"
2734 # OpenLDAP --enable-wrappers
2736 # Check whether --enable-wrappers or --disable-wrappers was given.
2737 if test "${enable_wrappers+set}" = set; then
2738 enableval="$enable_wrappers"
2741 for ol_val in auto yes no ; do
2742 if test "$enableval" = "$ol_val" ; then
2746 if test "$ol_arg" = "invalid" ; then
2747 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2748 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2749 { (exit 1); exit 1; }; }
2751 ol_enable_wrappers="$ol_arg"
2754 ol_enable_wrappers=no
2756 # end --enable-wrappers
2771 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2772 if test "${enable_xxslapbackends+set}" = set; then
2773 enableval="$enable_xxslapbackends"
2777 # OpenLDAP --enable-backends
2779 # Check whether --enable-backends or --disable-backends was given.
2780 if test "${enable_backends+set}" = set; then
2781 enableval="$enable_backends"
2784 for ol_val in no yes mod ; do
2785 if test "$enableval" = "$ol_val" ; then
2789 if test "$ol_arg" = "invalid" ; then
2790 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2791 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2792 { (exit 1); exit 1; }; }
2794 ol_enable_backends="$ol_arg"
2797 # end --enable-backends
2798 # OpenLDAP --enable-bdb
2800 # Check whether --enable-bdb or --disable-bdb was given.
2801 if test "${enable_bdb+set}" = set; then
2802 enableval="$enable_bdb"
2805 for ol_val in no yes mod ; do
2806 if test "$enableval" = "$ol_val" ; then
2810 if test "$ol_arg" = "invalid" ; then
2811 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2812 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2813 { (exit 1); exit 1; }; }
2815 ol_enable_bdb="$ol_arg"
2818 ol_enable_bdb=${ol_enable_backends:-yes}
2821 # OpenLDAP --enable-dnssrv
2823 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2824 if test "${enable_dnssrv+set}" = set; then
2825 enableval="$enable_dnssrv"
2828 for ol_val in no yes mod ; do
2829 if test "$enableval" = "$ol_val" ; then
2833 if test "$ol_arg" = "invalid" ; then
2834 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2835 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2836 { (exit 1); exit 1; }; }
2838 ol_enable_dnssrv="$ol_arg"
2841 ol_enable_dnssrv=${ol_enable_backends:-no}
2843 # end --enable-dnssrv
2844 # OpenLDAP --enable-hdb
2846 # Check whether --enable-hdb or --disable-hdb was given.
2847 if test "${enable_hdb+set}" = set; then
2848 enableval="$enable_hdb"
2851 for ol_val in no yes mod ; do
2852 if test "$enableval" = "$ol_val" ; then
2856 if test "$ol_arg" = "invalid" ; then
2857 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2858 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2859 { (exit 1); exit 1; }; }
2861 ol_enable_hdb="$ol_arg"
2864 ol_enable_hdb=${ol_enable_backends:-yes}
2867 # OpenLDAP --enable-ldap
2869 # Check whether --enable-ldap or --disable-ldap was given.
2870 if test "${enable_ldap+set}" = set; then
2871 enableval="$enable_ldap"
2874 for ol_val in no yes mod ; do
2875 if test "$enableval" = "$ol_val" ; then
2879 if test "$ol_arg" = "invalid" ; then
2880 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2881 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2882 { (exit 1); exit 1; }; }
2884 ol_enable_ldap="$ol_arg"
2887 ol_enable_ldap=${ol_enable_backends:-no}
2890 # OpenLDAP --enable-meta
2892 # Check whether --enable-meta or --disable-meta was given.
2893 if test "${enable_meta+set}" = set; then
2894 enableval="$enable_meta"
2897 for ol_val in no yes mod ; do
2898 if test "$enableval" = "$ol_val" ; then
2902 if test "$ol_arg" = "invalid" ; then
2903 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2904 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2905 { (exit 1); exit 1; }; }
2907 ol_enable_meta="$ol_arg"
2910 ol_enable_meta=${ol_enable_backends:-no}
2913 # OpenLDAP --enable-monitor
2915 # Check whether --enable-monitor or --disable-monitor was given.
2916 if test "${enable_monitor+set}" = set; then
2917 enableval="$enable_monitor"
2920 for ol_val in no yes mod ; do
2921 if test "$enableval" = "$ol_val" ; then
2925 if test "$ol_arg" = "invalid" ; then
2926 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2927 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2928 { (exit 1); exit 1; }; }
2930 ol_enable_monitor="$ol_arg"
2933 ol_enable_monitor=${ol_enable_backends:-yes}
2935 # end --enable-monitor
2936 # OpenLDAP --enable-null
2938 # Check whether --enable-null or --disable-null was given.
2939 if test "${enable_null+set}" = set; then
2940 enableval="$enable_null"
2943 for ol_val in no yes mod ; do
2944 if test "$enableval" = "$ol_val" ; then
2948 if test "$ol_arg" = "invalid" ; then
2949 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2950 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2951 { (exit 1); exit 1; }; }
2953 ol_enable_null="$ol_arg"
2956 ol_enable_null=${ol_enable_backends:-no}
2959 # OpenLDAP --enable-passwd
2961 # Check whether --enable-passwd or --disable-passwd was given.
2962 if test "${enable_passwd+set}" = set; then
2963 enableval="$enable_passwd"
2966 for ol_val in no yes mod ; do
2967 if test "$enableval" = "$ol_val" ; then
2971 if test "$ol_arg" = "invalid" ; then
2972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2974 { (exit 1); exit 1; }; }
2976 ol_enable_passwd="$ol_arg"
2979 ol_enable_passwd=${ol_enable_backends:-no}
2981 # end --enable-passwd
2982 # OpenLDAP --enable-perl
2984 # Check whether --enable-perl or --disable-perl was given.
2985 if test "${enable_perl+set}" = set; then
2986 enableval="$enable_perl"
2989 for ol_val in no yes mod ; do
2990 if test "$enableval" = "$ol_val" ; then
2994 if test "$ol_arg" = "invalid" ; then
2995 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2997 { (exit 1); exit 1; }; }
2999 ol_enable_perl="$ol_arg"
3002 ol_enable_perl=${ol_enable_backends:-no}
3005 # OpenLDAP --enable-relay
3007 # Check whether --enable-relay or --disable-relay was given.
3008 if test "${enable_relay+set}" = set; then
3009 enableval="$enable_relay"
3012 for ol_val in no yes mod ; do
3013 if test "$enableval" = "$ol_val" ; then
3017 if test "$ol_arg" = "invalid" ; then
3018 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3020 { (exit 1); exit 1; }; }
3022 ol_enable_relay="$ol_arg"
3025 ol_enable_relay=${ol_enable_backends:-yes}
3027 # end --enable-relay
3028 # OpenLDAP --enable-shell
3030 # Check whether --enable-shell or --disable-shell was given.
3031 if test "${enable_shell+set}" = set; then
3032 enableval="$enable_shell"
3035 for ol_val in no yes mod ; do
3036 if test "$enableval" = "$ol_val" ; then
3040 if test "$ol_arg" = "invalid" ; then
3041 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3042 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3043 { (exit 1); exit 1; }; }
3045 ol_enable_shell="$ol_arg"
3048 ol_enable_shell=${ol_enable_backends:-no}
3050 # end --enable-shell
3051 # OpenLDAP --enable-sql
3053 # Check whether --enable-sql or --disable-sql was given.
3054 if test "${enable_sql+set}" = set; then
3055 enableval="$enable_sql"
3058 for ol_val in no yes mod ; do
3059 if test "$enableval" = "$ol_val" ; then
3063 if test "$ol_arg" = "invalid" ; then
3064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3065 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3066 { (exit 1); exit 1; }; }
3068 ol_enable_sql="$ol_arg"
3071 ol_enable_sql=${ol_enable_backends:-no}
3075 Overlays="accesslog \
3093 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3094 if test "${enable_xxslapoverlays+set}" = set; then
3095 enableval="$enable_xxslapoverlays"
3099 # OpenLDAP --enable-overlays
3101 # Check whether --enable-overlays or --disable-overlays was given.
3102 if test "${enable_overlays+set}" = set; then
3103 enableval="$enable_overlays"
3106 for ol_val in no yes mod ; do
3107 if test "$enableval" = "$ol_val" ; then
3111 if test "$ol_arg" = "invalid" ; then
3112 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3113 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3114 { (exit 1); exit 1; }; }
3116 ol_enable_overlays="$ol_arg"
3119 # end --enable-overlays
3120 # OpenLDAP --enable-accesslog
3122 # Check whether --enable-accesslog or --disable-accesslog was given.
3123 if test "${enable_accesslog+set}" = set; then
3124 enableval="$enable_accesslog"
3127 for ol_val in no yes mod ; do
3128 if test "$enableval" = "$ol_val" ; then
3132 if test "$ol_arg" = "invalid" ; then
3133 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3134 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3135 { (exit 1); exit 1; }; }
3137 ol_enable_accesslog="$ol_arg"
3140 ol_enable_accesslog=${ol_enable_overlays:-no}
3142 # end --enable-accesslog
3144 # OpenLDAP --enable-auditlog
3146 # Check whether --enable-auditlog or --disable-auditlog was given.
3147 if test "${enable_auditlog+set}" = set; then
3148 enableval="$enable_auditlog"
3151 for ol_val in no yes mod ; do
3152 if test "$enableval" = "$ol_val" ; then
3156 if test "$ol_arg" = "invalid" ; then
3157 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3159 { (exit 1); exit 1; }; }
3161 ol_enable_auditlog="$ol_arg"
3164 ol_enable_auditlog=${ol_enable_overlays:-no}
3166 # end --enable-auditlog
3168 # OpenLDAP --enable-dds
3170 # Check whether --enable-dds or --disable-dds was given.
3171 if test "${enable_dds+set}" = set; then
3172 enableval="$enable_dds"
3175 for ol_val in no yes mod ; do
3176 if test "$enableval" = "$ol_val" ; then
3180 if test "$ol_arg" = "invalid" ; then
3181 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3182 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3183 { (exit 1); exit 1; }; }
3185 ol_enable_dds="$ol_arg"
3188 ol_enable_dds=${ol_enable_overlays:-no}
3192 # OpenLDAP --enable-denyop
3194 # Check whether --enable-denyop or --disable-denyop was given.
3195 if test "${enable_denyop+set}" = set; then
3196 enableval="$enable_denyop"
3199 for ol_val in no yes mod ; do
3200 if test "$enableval" = "$ol_val" ; then
3204 if test "$ol_arg" = "invalid" ; then
3205 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3207 { (exit 1); exit 1; }; }
3209 ol_enable_denyop="$ol_arg"
3212 ol_enable_denyop=${ol_enable_overlays:-no}
3214 # end --enable-denyop
3216 # OpenLDAP --enable-dyngroup
3218 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3219 if test "${enable_dyngroup+set}" = set; then
3220 enableval="$enable_dyngroup"
3223 for ol_val in no yes mod ; do
3224 if test "$enableval" = "$ol_val" ; then
3228 if test "$ol_arg" = "invalid" ; then
3229 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3231 { (exit 1); exit 1; }; }
3233 ol_enable_dyngroup="$ol_arg"
3236 ol_enable_dyngroup=${ol_enable_overlays:-no}
3238 # end --enable-dyngroup
3240 # OpenLDAP --enable-dynlist
3242 # Check whether --enable-dynlist or --disable-dynlist was given.
3243 if test "${enable_dynlist+set}" = set; then
3244 enableval="$enable_dynlist"
3247 for ol_val in no yes mod ; do
3248 if test "$enableval" = "$ol_val" ; then
3252 if test "$ol_arg" = "invalid" ; then
3253 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3254 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3255 { (exit 1); exit 1; }; }
3257 ol_enable_dynlist="$ol_arg"
3260 ol_enable_dynlist=${ol_enable_overlays:-no}
3262 # end --enable-dynlist
3264 # OpenLDAP --enable-lastmod
3266 # Check whether --enable-lastmod or --disable-lastmod was given.
3267 if test "${enable_lastmod+set}" = set; then
3268 enableval="$enable_lastmod"
3271 for ol_val in no yes mod ; do
3272 if test "$enableval" = "$ol_val" ; then
3276 if test "$ol_arg" = "invalid" ; then
3277 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3278 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3279 { (exit 1); exit 1; }; }
3281 ol_enable_lastmod="$ol_arg"
3284 ol_enable_lastmod=${ol_enable_overlays:-no}
3286 # end --enable-lastmod
3288 # OpenLDAP --enable-ppolicy
3290 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3291 if test "${enable_ppolicy+set}" = set; then
3292 enableval="$enable_ppolicy"
3295 for ol_val in no yes mod ; do
3296 if test "$enableval" = "$ol_val" ; then
3300 if test "$ol_arg" = "invalid" ; then
3301 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3302 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3303 { (exit 1); exit 1; }; }
3305 ol_enable_ppolicy="$ol_arg"
3308 ol_enable_ppolicy=${ol_enable_overlays:-no}
3310 # end --enable-ppolicy
3312 # OpenLDAP --enable-proxycache
3314 # Check whether --enable-proxycache or --disable-proxycache was given.
3315 if test "${enable_proxycache+set}" = set; then
3316 enableval="$enable_proxycache"
3319 for ol_val in no yes mod ; do
3320 if test "$enableval" = "$ol_val" ; then
3324 if test "$ol_arg" = "invalid" ; then
3325 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3326 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3327 { (exit 1); exit 1; }; }
3329 ol_enable_proxycache="$ol_arg"
3332 ol_enable_proxycache=${ol_enable_overlays:-no}
3334 # end --enable-proxycache
3336 # OpenLDAP --enable-refint
3338 # Check whether --enable-refint or --disable-refint was given.
3339 if test "${enable_refint+set}" = set; then
3340 enableval="$enable_refint"
3343 for ol_val in no yes mod ; do
3344 if test "$enableval" = "$ol_val" ; then
3348 if test "$ol_arg" = "invalid" ; then
3349 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3350 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3351 { (exit 1); exit 1; }; }
3353 ol_enable_refint="$ol_arg"
3356 ol_enable_refint=${ol_enable_overlays:-no}
3358 # end --enable-refint
3360 # OpenLDAP --enable-retcode
3362 # Check whether --enable-retcode or --disable-retcode was given.
3363 if test "${enable_retcode+set}" = set; then
3364 enableval="$enable_retcode"
3367 for ol_val in no yes mod ; do
3368 if test "$enableval" = "$ol_val" ; then
3372 if test "$ol_arg" = "invalid" ; then
3373 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3374 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3375 { (exit 1); exit 1; }; }
3377 ol_enable_retcode="$ol_arg"
3380 ol_enable_retcode=${ol_enable_overlays:-no}
3382 # end --enable-retcode
3384 # OpenLDAP --enable-rwm
3386 # Check whether --enable-rwm or --disable-rwm was given.
3387 if test "${enable_rwm+set}" = set; then
3388 enableval="$enable_rwm"
3391 for ol_val in no yes mod ; do
3392 if test "$enableval" = "$ol_val" ; then
3396 if test "$ol_arg" = "invalid" ; then
3397 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3398 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3399 { (exit 1); exit 1; }; }
3401 ol_enable_rwm="$ol_arg"
3404 ol_enable_rwm=${ol_enable_overlays:-no}
3408 # OpenLDAP --enable-seqmod
3410 # Check whether --enable-seqmod or --disable-seqmod was given.
3411 if test "${enable_seqmod+set}" = set; then
3412 enableval="$enable_seqmod"
3415 for ol_val in no yes mod ; do
3416 if test "$enableval" = "$ol_val" ; then
3420 if test "$ol_arg" = "invalid" ; then
3421 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3422 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3423 { (exit 1); exit 1; }; }
3425 ol_enable_seqmod="$ol_arg"
3428 ol_enable_seqmod=${ol_enable_overlays:-yes}
3430 # end --enable-seqmod
3432 # OpenLDAP --enable-syncprov
3434 # Check whether --enable-syncprov or --disable-syncprov was given.
3435 if test "${enable_syncprov+set}" = set; then
3436 enableval="$enable_syncprov"
3439 for ol_val in no yes mod ; do
3440 if test "$enableval" = "$ol_val" ; then
3444 if test "$ol_arg" = "invalid" ; then
3445 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3446 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3447 { (exit 1); exit 1; }; }
3449 ol_enable_syncprov="$ol_arg"
3452 ol_enable_syncprov=${ol_enable_overlays:-yes}
3454 # end --enable-syncprov
3456 # OpenLDAP --enable-translucent
3458 # Check whether --enable-translucent or --disable-translucent was given.
3459 if test "${enable_translucent+set}" = set; then
3460 enableval="$enable_translucent"
3463 for ol_val in no yes mod ; do
3464 if test "$enableval" = "$ol_val" ; then
3468 if test "$ol_arg" = "invalid" ; then
3469 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3470 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3471 { (exit 1); exit 1; }; }
3473 ol_enable_translucent="$ol_arg"
3476 ol_enable_translucent=${ol_enable_overlays:-no}
3478 # end --enable-translucent
3480 # OpenLDAP --enable-unique
3482 # Check whether --enable-unique or --disable-unique was given.
3483 if test "${enable_unique+set}" = set; then
3484 enableval="$enable_unique"
3487 for ol_val in no yes mod ; do
3488 if test "$enableval" = "$ol_val" ; then
3492 if test "$ol_arg" = "invalid" ; then
3493 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3494 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3495 { (exit 1); exit 1; }; }
3497 ol_enable_unique="$ol_arg"
3500 ol_enable_unique=${ol_enable_overlays:-no}
3502 # end --enable-unique
3504 # OpenLDAP --enable-valsort
3506 # Check whether --enable-valsort or --disable-valsort was given.
3507 if test "${enable_valsort+set}" = set; then
3508 enableval="$enable_valsort"
3511 for ol_val in no yes mod ; do
3512 if test "$enableval" = "$ol_val" ; then
3516 if test "$ol_arg" = "invalid" ; then
3517 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3518 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3519 { (exit 1); exit 1; }; }
3521 ol_enable_valsort="$ol_arg"
3524 ol_enable_valsort=${ol_enable_overlays:-no}
3526 # end --enable-valsort
3529 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3530 if test "${enable_xxslurpdoptions+set}" = set; then
3531 enableval="$enable_xxslurpdoptions"
3534 # OpenLDAP --enable-slurpd
3536 # Check whether --enable-slurpd or --disable-slurpd was given.
3537 if test "${enable_slurpd+set}" = set; then
3538 enableval="$enable_slurpd"
3541 for ol_val in auto yes no ; do
3542 if test "$enableval" = "$ol_val" ; then
3546 if test "$ol_arg" = "invalid" ; then
3547 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3549 { (exit 1); exit 1; }; }
3551 ol_enable_slurpd="$ol_arg"
3554 ol_enable_slurpd=auto
3556 # end --enable-slurpd
3558 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3559 if test "${enable_xxliboptions+set}" = set; then
3560 enableval="$enable_xxliboptions"
3563 # Check whether --enable-static or --disable-static was given.
3564 if test "${enable_static+set}" = set; then
3565 enableval="$enable_static"
3566 p=${PACKAGE-default}
3568 yes) enable_static=yes ;;
3569 no) enable_static=no ;;
3572 # Look at the argument we got. We use all the common list separators.
3573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3574 for pkg in $enableval; do
3576 if test "X$pkg" = "X$p"; then
3587 # Check whether --enable-shared or --disable-shared was given.
3588 if test "${enable_shared+set}" = set; then
3589 enableval="$enable_shared"
3590 p=${PACKAGE-default}
3592 yes) enable_shared=yes ;;
3593 no) enable_shared=no ;;
3596 # Look at the argument we got. We use all the common list separators.
3597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3598 for pkg in $enableval; do
3600 if test "X$pkg" = "X$p"; then
3614 if test $ol_enable_slapd = no ; then
3615 if test $ol_enable_slapi = yes ; then
3616 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3617 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3619 case "$ol_enable_backends" in yes | mod)
3620 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3623 for i in $Backends; 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"
3631 if test $ol_enable_modules = yes ; then
3632 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3633 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3635 if test $ol_enable_wrappers = yes ; then
3636 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3637 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3639 if test $ol_enable_rlookups = yes ; then
3640 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3641 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3643 if test $ol_enable_dynacl = yes ; then
3644 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3645 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3647 if test $ol_enable_aci != no ; then
3648 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3649 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3651 if test $ol_enable_slurpd = yes ; then
3652 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3653 echo "$as_me: error: slurpd requires slapd" >&2;}
3654 { (exit 1); exit 1; }; }
3656 if test $ol_enable_rewrite = yes ; then
3657 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3658 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3660 case "$ol_enable_overlays" in yes | mod)
3661 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3662 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3664 for i in $Overlays; do
3665 eval "ol_tmp=\$ol_enable_$i"
3666 if test $ol_tmp != no ; then
3667 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3668 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3669 eval "ol_enable_$i=no"
3673 # force settings to no
3678 ol_enable_modules=no
3679 ol_enable_rlookups=no
3682 ol_enable_wrappers=no
3686 ol_enable_rewrite=no
3688 elif test $ol_enable_modules != yes &&
3689 test $ol_enable_bdb = no &&
3690 test $ol_enable_dnssrv = no &&
3691 test $ol_enable_hdb = no &&
3692 test $ol_enable_ldap = no &&
3693 test $ol_enable_meta = no &&
3694 test $ol_enable_monitor = no &&
3695 test $ol_enable_null = no &&
3696 test $ol_enable_passwd = no &&
3697 test $ol_enable_perl = no &&
3698 test $ol_enable_relay = no &&
3699 test $ol_enable_shell = no &&
3700 test $ol_enable_sql = no ; then
3702 if test $ol_enable_slapd = yes ; then
3703 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3704 echo "$as_me: error: slapd requires a backend" >&2;}
3705 { (exit 1); exit 1; }; }
3707 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3708 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3713 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3714 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3715 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3716 { (exit 1); exit 1; }; }
3719 if test $ol_enable_slurpd = yes ; then
3720 if test $ol_with_threads = no ; then
3721 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3722 echo "$as_me: error: slurpd requires threads" >&2;}
3723 { (exit 1); exit 1; }; }
3727 if test $ol_enable_lmpasswd = yes ; then
3728 if test $ol_with_tls = no ; then
3729 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3730 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3731 { (exit 1); exit 1; }; }
3735 if test $ol_enable_kbind = yes ; then
3736 if test $ol_with_kerberos = no ; then
3737 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3738 echo "$as_me: error: options require --with-kerberos" >&2;}
3739 { (exit 1); exit 1; }; }
3740 elif test $ol_with_kerberos = auto ; then
3741 ol_with_kerberos=yes
3744 elif test $ol_enable_kbind = no ; then
3745 if test $ol_with_kerberos = auto ; then
3747 elif test $ol_with_kerberos != no ; then
3748 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3749 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3754 if test $ol_enable_spasswd = yes ; then
3755 if test $ol_with_cyrus_sasl = no ; then
3756 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3757 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3758 { (exit 1); exit 1; }; }
3760 ol_with_cyrus_sasl=yes
3763 echo "$as_me:$LINENO: result: done" >&5
3764 echo "${ECHO_T}done" >&6
3809 BUILD_TRANSLUCENT=no
3813 SLAPD_STATIC_OVERLAYS=
3814 SLAPD_DYNAMIC_OVERLAYS=
3816 SLAPD_MODULES_LDFLAGS=
3817 SLAPD_MODULES_CPPFLAGS=
3819 SLAPD_STATIC_BACKENDS=back-ldif
3820 SLAPD_DYNAMIC_BACKENDS=
3846 cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_MKVERSION 1
3855 *-*-aix*) if test -z "$CC" ; then
3856 case "$ol_with_threads" in
3857 auto | yes | posix) ol_aix_threads=yes ;;
3863 if test $ol_aix_threads = yes ; then
3864 if test -z "${CC}" ; then
3865 for ac_prog in cc_r xlc_r cc
3867 # Extract the first word of "$ac_prog", so it can be a program name with args.
3868 set dummy $ac_prog; ac_word=$2
3869 echo "$as_me:$LINENO: checking for $ac_word" >&5
3870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3871 if test "${ac_cv_prog_CC+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 if test -n "$CC"; then
3875 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_CC="$ac_prog"
3885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 if test -n "$CC"; then
3895 echo "$as_me:$LINENO: result: $CC" >&5
3896 echo "${ECHO_T}$CC" >&6
3898 echo "$as_me:$LINENO: result: no" >&5
3899 echo "${ECHO_T}no" >&6
3902 test -n "$CC" && break
3906 if test "$CC" = cc ; then
3907 if test $ol_with_threads != auto ; then
3908 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3909 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3910 { (exit 1); exit 1; }; }
3912 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3913 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3919 case ${CC} in cc_r | xlc_r)
3920 ol_with_threads=posix
3921 ol_cv_pthread_create=yes
3926 if test -z "${CC}"; then
3927 for ac_prog in cc gcc
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930 set dummy $ac_prog; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_CC+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_CC="$ac_prog"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 if test -n "$CC"; then
3957 echo "$as_me:$LINENO: result: $CC" >&5
3958 echo "${ECHO_T}$CC" >&6
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3964 test -n "$CC" && break
3966 test -n "$CC" || CC="missing"
3969 if test "${CC}" = "missing" ; then
3970 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3971 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3972 { (exit 1); exit 1; }; }
3976 if test -z "${AR}"; then
3977 for ac_prog in ar gar
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_AR+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 if test -n "$AR"; then
3987 ac_cv_prog_AR="$AR" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_AR="$ac_prog"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 if test -n "$AR"; then
4007 echo "$as_me:$LINENO: result: $AR" >&5
4008 echo "${ECHO_T}$AR" >&6
4010 echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4014 test -n "$AR" && break
4016 test -n "$AR" || AR="missing"
4019 if test "${AR}" = "missing" ; then
4020 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4021 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4022 { (exit 1); exit 1; }; }
4030 # Check whether --enable-fast-install or --disable-fast-install was given.
4031 if test "${enable_fast_install+set}" = set; then
4032 enableval="$enable_fast_install"
4033 p=${PACKAGE-default}
4035 yes) enable_fast_install=yes ;;
4036 no) enable_fast_install=no ;;
4038 enable_fast_install=no
4039 # Look at the argument we got. We use all the common list separators.
4040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4041 for pkg in $enableval; do
4043 if test "X$pkg" = "X$p"; then
4044 enable_fast_install=yes
4051 enable_fast_install=yes
4054 DEPDIR="${am__leading_dot}deps"
4056 ac_config_commands="$ac_config_commands depfiles"
4059 am_make=${MAKE-make}
4060 cat > confinc << 'END'
4065 # If we don't find an include directive, just comment out the code.
4066 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4067 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4071 # First try GNU make style include.
4072 echo "include confinc" > confmf
4073 # We grep out `Entering directory' and `Leaving directory'
4074 # messages which can occur if `w' ends up in MAKEFLAGS.
4075 # In particular we don't look at `^make:' because GNU make might
4076 # be invoked under some other name (usually "gmake"), in which
4077 # case it prints its new name instead of `make'.
4078 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4083 # Now try BSD make style include.
4084 if test "$am__include" = "#"; then
4085 echo '.include "confinc"' > confmf
4086 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4087 am__include=.include
4094 echo "$as_me:$LINENO: result: $_am_result" >&5
4095 echo "${ECHO_T}$_am_result" >&6
4096 rm -f confinc confmf
4098 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4099 if test "${enable_dependency_tracking+set}" = set; then
4100 enableval="$enable_dependency_tracking"
4103 if test "x$enable_dependency_tracking" != xno; then
4104 am_depcomp="$ac_aux_dir/depcomp"
4109 if test "x$enable_dependency_tracking" != xno; then
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124 if test -n "$ac_tool_prefix"; then
4125 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4127 echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129 if test "${ac_cv_prog_CC+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 if test -n "$CC"; then
4133 ac_cv_prog_CC="$CC" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 if test -n "$CC"; then
4153 echo "$as_me:$LINENO: result: $CC" >&5
4154 echo "${ECHO_T}$CC" >&6
4156 echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4161 if test -z "$ac_cv_prog_CC"; then
4163 # Extract the first word of "gcc", so it can be a program name with args.
4164 set dummy gcc; ac_word=$2
4165 echo "$as_me:$LINENO: checking for $ac_word" >&5
4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 if test -n "$ac_ct_CC"; then
4171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_CC="gcc"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4190 if test -n "$ac_ct_CC"; then
4191 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4192 echo "${ECHO_T}$ac_ct_CC" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4203 if test -z "$CC"; then
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}cc; ac_word=$2
4207 echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209 if test "${ac_cv_prog_CC+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 if test -n "$CC"; then
4213 ac_cv_prog_CC="$CC" # Let the user override the test.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_CC="${ac_tool_prefix}cc"
4223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 if test -n "$CC"; then
4233 echo "$as_me:$LINENO: result: $CC" >&5
4234 echo "${ECHO_T}$CC" >&6
4236 echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4241 if test -z "$ac_cv_prog_CC"; then
4243 # Extract the first word of "cc", so it can be a program name with args.
4244 set dummy cc; ac_word=$2
4245 echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_ac_ct_CC="cc"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4272 echo "${ECHO_T}$ac_ct_CC" >&6
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4284 if test -z "$CC"; then
4285 # Extract the first word of "cc", so it can be a program name with args.
4286 set dummy cc; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_prog_CC+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 if test -n "$CC"; then
4293 ac_cv_prog_CC="$CC" # Let the user override the test.
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4304 ac_prog_rejected=yes
4308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test $ac_prog_rejected = yes; then
4315 # We found a bogon in the path, so make sure we never use it.
4316 set dummy $ac_cv_prog_CC
4318 if test $# != 0; then
4319 # We chose a different compiler from the bogus one.
4320 # However, it has the same basename, so the bogon will be chosen
4321 # first if we set CC to just the basename; use the full file name.
4323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4329 if test -n "$CC"; then
4330 echo "$as_me:$LINENO: result: $CC" >&5
4331 echo "${ECHO_T}$CC" >&6
4333 echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6
4338 if test -z "$CC"; then
4339 if test -n "$ac_tool_prefix"; then
4342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4344 echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346 if test "${ac_cv_prog_CC+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$CC"; then
4350 ac_cv_prog_CC="$CC" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 if test -n "$CC"; then
4370 echo "$as_me:$LINENO: result: $CC" >&5
4371 echo "${ECHO_T}$CC" >&6
4373 echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6
4377 test -n "$CC" && break
4380 if test -z "$CC"; then
4384 # Extract the first word of "$ac_prog", so it can be a program name with args.
4385 set dummy $ac_prog; ac_word=$2
4386 echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$ac_ct_CC"; then
4392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401 ac_cv_prog_ac_ct_CC="$ac_prog"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4411 if test -n "$ac_ct_CC"; then
4412 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4413 echo "${ECHO_T}$ac_ct_CC" >&6
4415 echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6
4419 test -n "$ac_ct_CC" && break
4428 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4429 See \`config.log' for more details." >&5
4430 echo "$as_me: error: no acceptable C compiler found in \$PATH
4431 See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }
4434 # Provide some information about the compiler.
4435 echo "$as_me:$LINENO:" \
4436 "checking for C compiler version" >&5
4437 ac_compiler=`set X $ac_compile; echo $2`
4438 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4439 (eval $ac_compiler --version </dev/null >&5) 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }
4443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4444 (eval $ac_compiler -v </dev/null >&5) 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }
4448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4449 (eval $ac_compiler -V </dev/null >&5) 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4469 ac_clean_files_save=$ac_clean_files
4470 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4471 # Try to create an executable without -o first, disregard a.out.
4472 # It will help us diagnose broken compilers, and finding out an intuition
4474 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4475 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4477 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4478 (eval $ac_link_default) 2>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; then
4482 # Find the output, starting from the most likely. This scheme is
4483 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4486 # Be careful to initialize this variable, since it used to be cached.
4487 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4489 # b.out is created by i960 compilers.
4490 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4492 test -f "$ac_file" || continue
4494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4497 # This is the source file.
4500 # We found the default executable, but exeext='' is most
4504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4505 # FIXME: I believe we export ac_cv_exeext for Libtool,
4506 # but it would be cool to find out if it's true. Does anybody
4507 # maintain Libtool? --akim.
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4519 See \`config.log' for more details." >&5
4520 echo "$as_me: error: C compiler cannot create executables
4521 See \`config.log' for more details." >&2;}
4522 { (exit 77); exit 77; }; }
4525 ac_exeext=$ac_cv_exeext
4526 echo "$as_me:$LINENO: result: $ac_file" >&5
4527 echo "${ECHO_T}$ac_file" >&6
4529 # Check the compiler produces executables we can run. If not, either
4530 # the compiler is broken, or we cross compile.
4531 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4532 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4533 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4534 # If not cross compiling, check that we can run a simple program.
4535 if test "$cross_compiling" != yes; then
4536 if { ac_try='./$ac_file'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4544 if test "$cross_compiling" = maybe; then
4547 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4548 If you meant to cross compile, use \`--host'.
4549 See \`config.log' for more details." >&5
4550 echo "$as_me: error: cannot run C compiled programs.
4551 If you meant to cross compile, use \`--host'.
4552 See \`config.log' for more details." >&2;}
4553 { (exit 1); exit 1; }; }
4557 echo "$as_me:$LINENO: result: yes" >&5
4558 echo "${ECHO_T}yes" >&6
4560 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4561 ac_clean_files=$ac_clean_files_save
4562 # Check the compiler produces executables we can run. If not, either
4563 # the compiler is broken, or we cross compile.
4564 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4565 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4566 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4567 echo "${ECHO_T}$cross_compiling" >&6
4569 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4570 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4572 (eval $ac_link) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4577 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4578 # work properly (i.e., refer to `conftest.exe'), while it won't with
4580 for ac_file in conftest.exe conftest conftest.*; do
4581 test -f "$ac_file" || continue
4583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4591 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4592 See \`config.log' for more details." >&5
4593 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4594 See \`config.log' for more details." >&2;}
4595 { (exit 1); exit 1; }; }
4598 rm -f conftest$ac_cv_exeext
4599 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4600 echo "${ECHO_T}$ac_cv_exeext" >&6
4602 rm -f conftest.$ac_ext
4603 EXEEXT=$ac_cv_exeext
4605 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4606 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4607 if test "${ac_cv_objext+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4625 rm -f conftest.o conftest.obj
4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; then
4631 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4645 See \`config.log' for more details." >&2;}
4646 { (exit 1); exit 1; }; }
4649 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4651 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4652 echo "${ECHO_T}$ac_cv_objext" >&6
4653 OBJEXT=$ac_cv_objext
4655 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4656 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4657 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4678 rm -f conftest.$ac_objext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680 (eval $ac_compile) 2>conftest.er1
4682 grep -v '^ *+' conftest.er1 >conftest.err
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } &&
4687 { ac_try='test -z "$ac_c_werror_flag"
4688 || test ! -s conftest.err'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4711 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4712 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4713 GCC=`test $ac_compiler_gnu = yes && echo yes`
4714 ac_test_CFLAGS=${CFLAGS+set}
4715 ac_save_CFLAGS=$CFLAGS
4717 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4718 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4719 if test "${ac_cv_prog_cc_g+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4737 rm -f conftest.$ac_objext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4739 (eval $ac_compile) 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4769 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4770 if test "$ac_test_CFLAGS" = set; then
4771 CFLAGS=$ac_save_CFLAGS
4772 elif test $ac_cv_prog_cc_g = yes; then
4773 if test "$GCC" = yes; then
4779 if test "$GCC" = yes; then
4785 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4786 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4787 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 ac_cv_prog_cc_stdc=no
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4800 #include <sys/types.h>
4801 #include <sys/stat.h>
4802 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4803 struct buf { int x; };
4804 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4805 static char *e (p, i)
4811 static char *f (char * (*g) (char **, int), char **p, ...)
4816 s = g (p, va_arg (v,int));
4821 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4822 function prototypes and stuff, but not '\xHH' hex character constants.
4823 These don't provoke an error unfortunately, instead are silently treated
4824 as 'x'. The following induces an error, until -std1 is added to get
4825 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4826 array size at least. It's necessary to write '\x00'==0 to get something
4827 that's true only with -std1. */
4828 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4830 int test (int i, double x);
4831 struct s1 {int (*f) (int a);};
4832 struct s2 {int (*f) (double a);};
4833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4844 # Don't try gcc -ansi; that turns off useful extensions and
4845 # breaks some systems' header files.
4846 # AIX -qlanglvl=ansi
4847 # Ultrix and OSF/1 -std1
4848 # HP-UX 10.20 and later -Ae
4849 # HP-UX older versions -Aa -D_HPUX_SOURCE
4850 # SVR4 -Xc -D__EXTENSIONS__
4851 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4853 CC="$ac_save_CC $ac_arg"
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_cv_prog_cc_stdc=$ac_arg
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4883 rm -f conftest.err conftest.$ac_objext
4885 rm -f conftest.$ac_ext conftest.$ac_objext
4890 case "x$ac_cv_prog_cc_stdc" in
4892 echo "$as_me:$LINENO: result: none needed" >&5
4893 echo "${ECHO_T}none needed" >&6 ;;
4895 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4896 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4897 CC="$CC $ac_cv_prog_cc_stdc" ;;
4900 # Some people use a C++ compiler to compile C. Since we use `exit',
4901 # in C++ we need to declare it. In case someone uses the same compiler
4902 # for both compiling C and C++ we need to have the C++ compiler decide
4903 # the declaration of exit, since it's the most demanding environment.
4904 cat >conftest.$ac_ext <<_ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>conftest.er1
4913 grep -v '^ *+' conftest.er1 >conftest.err
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -z "$ac_c_werror_flag"
4919 || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 for ac_declaration in \
4933 'extern "C" void std::exit (int) throw (); using std::exit;' \
4934 'extern "C" void std::exit (int); using std::exit;' \
4935 'extern "C" void exit (int) throw ();' \
4936 'extern "C" void exit (int);' \
4939 cat >conftest.$ac_ext <<_ACEOF
4942 cat confdefs.h >>conftest.$ac_ext
4943 cat >>conftest.$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4955 rm -f conftest.$ac_objext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4957 (eval $ac_compile) 2>conftest.er1
4959 grep -v '^ *+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } &&
4964 { ac_try='test -z "$ac_c_werror_flag"
4965 || test ! -s conftest.err'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; } &&
4971 { ac_try='test -s conftest.$ac_objext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031 if test -n "$ac_declaration"; then
5032 echo '#ifdef __cplusplus' >>confdefs.h
5033 echo $ac_declaration >>confdefs.h
5034 echo '#endif' >>confdefs.h
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044 ac_cpp='$CPP $CPPFLAGS'
5045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 depcc="$CC" am_compiler_list=
5051 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5052 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5053 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5057 # We make a subdir and do the tests there. Otherwise we can end up
5058 # making bogus files that we don't know about and never remove. For
5059 # instance it was reported that on HP-UX the gcc test will end up
5060 # making a dummy file named `D' -- because `-MD' means `put the output
5063 # Copy depcomp to subdir because otherwise we won't find it if we're
5064 # using a relative directory.
5065 cp "$am_depcomp" conftest.dir
5067 # We will build objects and dependencies in a subdirectory because
5068 # it helps to detect inapplicable dependency modes. For instance
5069 # both Tru64's cc and ICC support -MD to output dependencies as a
5070 # side effect of compilation, but ICC will put the dependencies in
5071 # the current directory while Tru64 will put them in the object
5075 am_cv_CC_dependencies_compiler_type=none
5076 if test "$am_compiler_list" = ""; then
5077 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5079 for depmode in $am_compiler_list; do
5080 # Setup a source with many dependencies, because some compilers
5081 # like to wrap large dependency lists on column 80 (with \), and
5082 # we should not choose a depcomp mode which is confused by this.
5084 # We need to recreate these files for each test, as the compiler may
5085 # overwrite some of them when testing with obscure command lines.
5086 # This happens at least with the AIX C compiler.
5088 for i in 1 2 3 4 5 6; do
5089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5090 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5091 # Solaris 8's {/usr,}/bin/sh.
5092 touch sub/conftst$i.h
5094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5098 # after this tag, mechanisms are not by side-effect, so they'll
5099 # only be used when explicitly requested
5100 if test "x$enable_dependency_tracking" = xyes; then
5108 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5109 # mode. It turns out that the SunPro C++ compiler does not properly
5110 # handle `-M -o', and we need to detect this.
5111 if depmode=$depmode \
5112 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5113 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5114 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5115 >/dev/null 2>conftest.err &&
5116 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5117 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5118 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5119 # icc doesn't choke on unknown options, it will just issue warnings
5120 # or remarks (even with -Werror). So we grep stderr for any message
5121 # that says an option was ignored or not supported.
5122 # When given -MP, icc 7.0 and 7.1 complain thusly:
5123 # icc: Command line warning: ignoring option '-M'; no argument required
5124 # The diagnosis changed in icc 8.0:
5125 # icc: Command line remark: option '-MP' not supported
5126 if (grep 'ignoring option' conftest.err ||
5127 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5128 am_cv_CC_dependencies_compiler_type=$depmode
5137 am_cv_CC_dependencies_compiler_type=none
5141 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5142 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5143 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5148 test "x$enable_dependency_tracking" != xno \
5149 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5151 am__fastdepCC_FALSE='#'
5153 am__fastdepCC_TRUE='#'
5154 am__fastdepCC_FALSE=
5158 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5159 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5160 if test "${lt_cv_path_SED+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5163 # Loop through the user's path and test for sed and gsed.
5164 # Then use that list of sed's as ones to test for truncation.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 test -z "$as_dir" && as_dir=.
5170 for lt_ac_prog in sed gsed; do
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5173 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5180 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5181 # along with /bin/sed that truncates output.
5182 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5183 test ! -f $lt_ac_sed && continue
5184 cat /dev/null > conftest.in
5186 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5187 # Check for GNU sed and select it if it is found.
5188 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5189 lt_cv_path_SED=$lt_ac_sed
5193 cat conftest.in conftest.in >conftest.tmp
5194 mv conftest.tmp conftest.in
5195 cp conftest.in conftest.nl
5197 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5198 cmp -s conftest.out conftest.nl || break
5199 # 10000 chars as input seems more than enough
5200 test $lt_ac_count -gt 10 && break
5201 lt_ac_count=`expr $lt_ac_count + 1`
5202 if test $lt_ac_count -gt $lt_ac_max; then
5203 lt_ac_max=$lt_ac_count
5204 lt_cv_path_SED=$lt_ac_sed
5212 echo "$as_me:$LINENO: result: $SED" >&5
5213 echo "${ECHO_T}$SED" >&6
5215 echo "$as_me:$LINENO: checking for egrep" >&5
5216 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5217 if test "${ac_cv_prog_egrep+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5221 then ac_cv_prog_egrep='grep -E'
5222 else ac_cv_prog_egrep='egrep'
5225 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5226 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5227 EGREP=$ac_cv_prog_egrep
5231 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5232 if test "${with_gnu_ld+set}" = set; then
5233 withval="$with_gnu_ld"
5234 test "$withval" = no || with_gnu_ld=yes
5239 if test "$GCC" = yes; then
5240 # Check if gcc -print-prog-name=ld gives a path.
5241 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5242 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5245 # gcc leaves a trailing carriage return which upsets mingw
5246 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5248 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5251 # Accept absolute paths.
5253 re_direlt='/[^/][^/]*/\.\./'
5254 # Canonicalize the pathname of ld
5255 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5256 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5257 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5259 test -z "$LD" && LD="$ac_prog"
5262 # If it fails, then pretend we aren't using GCC.
5266 # If it is relative, then search for the first ld in PATH.
5270 elif test "$with_gnu_ld" = yes; then
5271 echo "$as_me:$LINENO: checking for GNU ld" >&5
5272 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5274 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5275 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5277 if test "${lt_cv_path_LD+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 if test -z "$LD"; then
5281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5282 for ac_dir in $PATH; do
5284 test -z "$ac_dir" && ac_dir=.
5285 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5286 lt_cv_path_LD="$ac_dir/$ac_prog"
5287 # Check to see if the program is GNU ld. I'd rather use --version,
5288 # but apparently some variants of GNU ld only accept -v.
5289 # Break only if it was the GNU/non-GNU ld that we prefer.
5290 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5291 *GNU* | *'with BFD'*)
5292 test "$with_gnu_ld" != no && break
5295 test "$with_gnu_ld" != yes && break
5302 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5307 if test -n "$LD"; then
5308 echo "$as_me:$LINENO: result: $LD" >&5
5309 echo "${ECHO_T}$LD" >&6
5311 echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6
5314 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5315 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5316 { (exit 1); exit 1; }; }
5317 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5318 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5319 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5323 case `$LD -v 2>&1 </dev/null` in
5324 *GNU* | *'with BFD'*)
5325 lt_cv_prog_gnu_ld=yes
5328 lt_cv_prog_gnu_ld=no
5332 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5333 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5334 with_gnu_ld=$lt_cv_prog_gnu_ld
5337 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5338 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5339 if test "${lt_cv_ld_reload_flag+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 lt_cv_ld_reload_flag='-r'
5344 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5345 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5346 reload_flag=$lt_cv_ld_reload_flag
5347 case $reload_flag in
5349 *) reload_flag=" $reload_flag" ;;
5351 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5354 if test "$GCC" = yes; then
5355 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5357 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5362 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5363 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5364 if test "${lt_cv_path_NM+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 if test -n "$NM"; then
5368 # Let the user override the test.
5371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5372 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5374 test -z "$ac_dir" && ac_dir=.
5375 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5376 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5377 # Check to see if the nm accepts a BSD-compat flag.
5378 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5379 # nm: unknown option "B" ignored
5380 # Tru64's nm complains that /dev/null is an invalid object file
5381 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5382 */dev/null* | *'Invalid file or object type'*)
5383 lt_cv_path_NM="$tmp_nm -B"
5387 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5389 lt_cv_path_NM="$tmp_nm -p"
5393 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5394 continue # so that we can try to find one that supports BSD flags
5401 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5404 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5405 echo "${ECHO_T}$lt_cv_path_NM" >&6
5408 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5409 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5411 if test "$LN_S" = "ln -s"; then
5412 echo "$as_me:$LINENO: result: yes" >&5
5413 echo "${ECHO_T}yes" >&6
5415 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5416 echo "${ECHO_T}no, using $LN_S" >&6
5419 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5420 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5421 if test "${lt_cv_deplibs_check_method+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 lt_cv_file_magic_cmd='$MAGIC_CMD'
5425 lt_cv_file_magic_test_file=
5426 lt_cv_deplibs_check_method='unknown'
5427 # Need to set the preceding variable on all platforms that support
5428 # interlibrary dependencies.
5429 # 'none' -- dependencies not supported.
5430 # `unknown' -- same as none, but documents that we really don't know.
5431 # 'pass_all' -- all dependencies passed with no checks.
5432 # 'test_compile' -- check by making test program.
5433 # 'file_magic [[regex]]' -- check by looking for files in library path
5434 # which responds to the $file_magic_cmd with a given extended regex.
5435 # If you have `file' or equivalent on your system and you're not sure
5436 # whether `pass_all' will *always* work, you probably want this one.
5440 lt_cv_deplibs_check_method=pass_all
5444 lt_cv_deplibs_check_method=pass_all
5448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5449 lt_cv_file_magic_cmd='/usr/bin/file -L'
5450 lt_cv_file_magic_test_file=/shlib/libc.so
5454 # func_win32_libid is a shell function defined in ltmain.sh
5455 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5456 lt_cv_file_magic_cmd='func_win32_libid'
5460 # Base MSYS/MinGW do not provide the 'file' command needed by
5461 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5462 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5463 lt_cv_file_magic_cmd='$OBJDUMP -f'
5466 darwin* | rhapsody*)
5467 lt_cv_deplibs_check_method=pass_all
5470 freebsd* | kfreebsd*-gnu | dragonfly*)
5471 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5474 # Not sure whether the presence of OpenBSD here was a mistake.
5475 # Let's accept both of them until this is cleared up.
5476 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5482 lt_cv_deplibs_check_method=pass_all
5487 lt_cv_deplibs_check_method=pass_all
5490 hpux10.20* | hpux11*)
5491 lt_cv_file_magic_cmd=/usr/bin/file
5494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5495 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5498 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]'
5499 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5502 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5503 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5508 irix5* | irix6* | nonstopux*)
5510 *-32|*"-32 ") libmagic=32-bit;;
5511 *-n32|*"-n32 ") libmagic=N32;;
5512 *-64|*"-64 ") libmagic=64-bit;;
5513 *) libmagic=never-match;;
5515 lt_cv_deplibs_check_method=pass_all
5518 # This must be Linux ELF.
5520 lt_cv_deplibs_check_method=pass_all
5524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5533 lt_cv_file_magic_cmd=/usr/bin/file
5534 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5538 lt_cv_deplibs_check_method=unknown
5542 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5549 osf3* | osf4* | osf5*)
5550 lt_cv_deplibs_check_method=pass_all
5554 lt_cv_deplibs_check_method=pass_all
5558 lt_cv_deplibs_check_method=pass_all
5561 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5562 case $host_vendor in
5564 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]'
5565 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5568 lt_cv_deplibs_check_method=pass_all
5571 lt_cv_file_magic_cmd='/bin/file'
5572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5575 lt_cv_file_magic_cmd='/bin/file'
5576 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5577 lt_cv_file_magic_test_file=/lib/libc.so
5580 lt_cv_deplibs_check_method=pass_all
5585 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5586 lt_cv_deplibs_check_method=pass_all
5591 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5592 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5593 file_magic_cmd=$lt_cv_file_magic_cmd
5594 deplibs_check_method=$lt_cv_deplibs_check_method
5595 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5600 # If no C compiler was specified, use CC.
5603 # Allow CC to be a program name with arguments.
5607 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5608 if test "${enable_libtool_lock+set}" = set; then
5609 enableval="$enable_libtool_lock"
5612 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5614 # Some flags need to be propagated to the compiler or linker for good
5618 # Find out which ABI we are using.
5619 echo 'int i;' > conftest.$ac_ext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; then
5625 case `/usr/bin/file conftest.$ac_objext` in
5637 # Find out which ABI we are using.
5638 echo '#line 5638 "configure"' > conftest.$ac_ext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; then
5644 if test "$lt_cv_prog_gnu_ld" = yes; then
5645 case `/usr/bin/file conftest.$ac_objext` in
5647 LD="${LD-ld} -melf32bsmip"
5650 LD="${LD-ld} -melf32bmipn32"
5653 LD="${LD-ld} -melf64bmip"
5657 case `/usr/bin/file conftest.$ac_objext` in
5673 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5674 # Find out which ABI we are using.
5675 echo 'int i;' > conftest.$ac_ext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5677 (eval $ac_compile) 2>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; then
5681 case `/usr/bin/file conftest.o` in
5685 LD="${LD-ld} -m elf_i386"
5687 ppc64-*linux*|powerpc64-*linux*)
5688 LD="${LD-ld} -m elf32ppclinux"
5691 LD="${LD-ld} -m elf_s390"
5694 LD="${LD-ld} -m elf32_sparc"
5701 LD="${LD-ld} -m elf_x86_64"
5703 ppc*-*linux*|powerpc*-*linux*)
5704 LD="${LD-ld} -m elf64ppc"
5707 LD="${LD-ld} -m elf64_s390"
5710 LD="${LD-ld} -m elf64_sparc"
5720 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5721 SAVE_CFLAGS="$CFLAGS"
5722 CFLAGS="$CFLAGS -belf"
5723 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5724 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5725 if test "${lt_cv_cc_needs_belf+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5749 rm -f conftest.$ac_objext conftest$ac_exeext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5751 (eval $ac_link) 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -z "$ac_c_werror_flag"
5759 || test ! -s conftest.err'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest$ac_exeext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 lt_cv_cc_needs_belf=yes
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5776 lt_cv_cc_needs_belf=no
5778 rm -f conftest.err conftest.$ac_objext \
5779 conftest$ac_exeext conftest.$ac_ext
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5788 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5789 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5790 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5791 CFLAGS="$SAVE_CFLAGS"
5794 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5795 if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5798 echo "$as_me:$LINENO: checking for $ac_word" >&5
5799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 if test -n "$DLLTOOL"; then
5804 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 DLLTOOL=$ac_cv_prog_DLLTOOL
5823 if test -n "$DLLTOOL"; then
5824 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5825 echo "${ECHO_T}$DLLTOOL" >&6
5827 echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5832 if test -z "$ac_cv_prog_DLLTOOL"; then
5833 ac_ct_DLLTOOL=$DLLTOOL
5834 # Extract the first word of "dlltool", so it can be a program name with args.
5835 set dummy dlltool; ac_word=$2
5836 echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 if test -n "$ac_ct_DLLTOOL"; then
5842 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5861 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5862 if test -n "$ac_ct_DLLTOOL"; then
5863 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5864 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5866 echo "$as_me:$LINENO: result: no" >&5
5867 echo "${ECHO_T}no" >&6
5870 DLLTOOL=$ac_ct_DLLTOOL
5872 DLLTOOL="$ac_cv_prog_DLLTOOL"
5875 if test -n "$ac_tool_prefix"; then
5876 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5877 set dummy ${ac_tool_prefix}as; ac_word=$2
5878 echo "$as_me:$LINENO: checking for $ac_word" >&5
5879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5880 if test "${ac_cv_prog_AS+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 if test -n "$AS"; then
5884 ac_cv_prog_AS="$AS" # Let the user override the test.
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5893 ac_cv_prog_AS="${ac_tool_prefix}as"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 if test -n "$AS"; then
5904 echo "$as_me:$LINENO: result: $AS" >&5
5905 echo "${ECHO_T}$AS" >&6
5907 echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6
5912 if test -z "$ac_cv_prog_AS"; then
5914 # Extract the first word of "as", so it can be a program name with args.
5915 set dummy as; ac_word=$2
5916 echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 if test -n "$ac_ct_AS"; then
5922 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_ac_ct_AS="as"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5941 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5942 if test -n "$ac_ct_AS"; then
5943 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5944 echo "${ECHO_T}$ac_ct_AS" >&6
5946 echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6
5955 if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5958 echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5960 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 if test -n "$OBJDUMP"; then
5964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 OBJDUMP=$ac_cv_prog_OBJDUMP
5983 if test -n "$OBJDUMP"; then
5984 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5985 echo "${ECHO_T}$OBJDUMP" >&6
5987 echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5992 if test -z "$ac_cv_prog_OBJDUMP"; then
5993 ac_ct_OBJDUMP=$OBJDUMP
5994 # Extract the first word of "objdump", so it can be a program name with args.
5995 set dummy objdump; ac_word=$2
5996 echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 if test -n "$ac_ct_OBJDUMP"; then
6002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6021 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6024 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6026 echo "$as_me:$LINENO: result: no" >&5
6027 echo "${ECHO_T}no" >&6
6030 OBJDUMP=$ac_ct_OBJDUMP
6032 OBJDUMP="$ac_cv_prog_OBJDUMP"
6039 need_locks="$enable_libtool_lock"
6043 ac_cpp='$CPP $CPPFLAGS'
6044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6048 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6049 # On Suns, sometimes $CPP names a directory.
6050 if test -n "$CPP" && test -d "$CPP"; then
6053 if test -z "$CPP"; then
6054 if test "${ac_cv_prog_CPP+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 # Double quotes because CPP needs to be expanded
6058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6061 for ac_c_preproc_warn_flag in '' yes
6063 # Use a header file that comes with gcc, so configuring glibc
6064 # with a fresh cross-compiler works.
6065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6066 # <limits.h> exists even on freestanding compilers.
6067 # On the NeXT, cc -E runs the code through the compiler's parser,
6068 # not just through cpp. "Syntax error" is here to catch this case.
6069 cat >conftest.$ac_ext <<_ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6076 # include <limits.h>
6078 # include <assert.h>
6082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6085 grep -v '^ *+' conftest.er1 >conftest.err
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } >/dev/null; then
6090 if test -s conftest.err; then
6091 ac_cpp_err=$ac_c_preproc_warn_flag
6092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6099 if test -z "$ac_cpp_err"; then
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 # Broken: fails on valid input.
6108 rm -f conftest.err conftest.$ac_ext
6110 # OK, works on sane cases. Now check whether non-existent headers
6111 # can be detected and how.
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <ac_nonexistent.h>
6120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6123 grep -v '^ *+' conftest.er1 >conftest.err
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } >/dev/null; then
6128 if test -s conftest.err; then
6129 ac_cpp_err=$ac_c_preproc_warn_flag
6130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6137 if test -z "$ac_cpp_err"; then
6138 # Broken: success on invalid input.
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 # Passes both tests.
6148 rm -f conftest.err conftest.$ac_ext
6151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6152 rm -f conftest.err conftest.$ac_ext
6153 if $ac_preproc_ok; then
6165 echo "$as_me:$LINENO: result: $CPP" >&5
6166 echo "${ECHO_T}$CPP" >&6
6168 for ac_c_preproc_warn_flag in '' yes
6170 # Use a header file that comes with gcc, so configuring glibc
6171 # with a fresh cross-compiler works.
6172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6173 # <limits.h> exists even on freestanding compilers.
6174 # On the NeXT, cc -E runs the code through the compiler's parser,
6175 # not just through cpp. "Syntax error" is here to catch this case.
6176 cat >conftest.$ac_ext <<_ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6183 # include <limits.h>
6185 # include <assert.h>
6189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6192 grep -v '^ *+' conftest.er1 >conftest.err
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } >/dev/null; then
6197 if test -s conftest.err; then
6198 ac_cpp_err=$ac_c_preproc_warn_flag
6199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6206 if test -z "$ac_cpp_err"; then
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 # Broken: fails on valid input.
6215 rm -f conftest.err conftest.$ac_ext
6217 # OK, works on sane cases. Now check whether non-existent headers
6218 # can be detected and how.
6219 cat >conftest.$ac_ext <<_ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <ac_nonexistent.h>
6227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } >/dev/null; then
6235 if test -s conftest.err; then
6236 ac_cpp_err=$ac_c_preproc_warn_flag
6237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6244 if test -z "$ac_cpp_err"; then
6245 # Broken: success on invalid input.
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 # Passes both tests.
6255 rm -f conftest.err conftest.$ac_ext
6258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6259 rm -f conftest.err conftest.$ac_ext
6260 if $ac_preproc_ok; then
6263 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6264 See \`config.log' for more details." >&5
6265 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6266 See \`config.log' for more details." >&2;}
6267 { (exit 1); exit 1; }; }
6271 ac_cpp='$CPP $CPPFLAGS'
6272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6278 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6279 if test "${ac_cv_header_stdc+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6301 rm -f conftest.$ac_objext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6303 (eval $ac_compile) 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_cv_header_stdc=yes
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_cv_header_stdc=no
6330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6332 if test $ac_cv_header_stdc = yes; then
6333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6344 $EGREP "memchr" >/dev/null 2>&1; then
6347 ac_cv_header_stdc=no
6353 if test $ac_cv_header_stdc = yes; then
6354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6355 cat >conftest.$ac_ext <<_ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6365 $EGREP "free" >/dev/null 2>&1; then
6368 ac_cv_header_stdc=no
6374 if test $ac_cv_header_stdc = yes; then
6375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6376 if test "$cross_compiling" = yes; then
6379 cat >conftest.$ac_ext <<_ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6386 #if ((' ' & 0x0FF) == 0x020)
6387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6390 # define ISLOWER(c) \
6391 (('a' <= (c) && (c) <= 'i') \
6392 || ('j' <= (c) && (c) <= 'r') \
6393 || ('s' <= (c) && (c) <= 'z'))
6394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6402 for (i = 0; i < 256; i++)
6403 if (XOR (islower (i), ISLOWER (i))
6404 || toupper (i) != TOUPPER (i))
6409 rm -f conftest$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411 (eval $ac_link) 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6422 echo "$as_me: program exited with status $ac_status" >&5
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6427 ac_cv_header_stdc=no
6429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6433 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6434 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6435 if test $ac_cv_header_stdc = yes; then
6437 cat >>confdefs.h <<\_ACEOF
6438 #define STDC_HEADERS 1
6443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6454 inttypes.h stdint.h unistd.h
6456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6457 echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 $ac_includes_default
6470 #include <$ac_header>
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474 (eval $ac_compile) 2>conftest.er1
6476 grep -v '^ *+' conftest.er1 >conftest.err
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
6481 { ac_try='test -z "$ac_c_werror_flag"
6482 || test ! -s conftest.err'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; } &&
6488 { ac_try='test -s conftest.$ac_objext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 eval "$as_ac_Header=yes"
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6499 eval "$as_ac_Header=no"
6501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6506 cat >>confdefs.h <<_ACEOF
6507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6516 for ac_header in dlfcn.h
6518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6528 # Is the header compilable?
6529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 #include <$ac_header>
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6544 grep -v '^ *+' conftest.er1 >conftest.err
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest.$ac_objext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_header_compiler=yes
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_header_compiler=no
6569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6571 echo "${ECHO_T}$ac_header_compiler" >&6
6573 # Is the header present?
6574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <$ac_header>
6584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null; then
6592 if test -s conftest.err; then
6593 ac_cpp_err=$ac_c_preproc_warn_flag
6594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6601 if test -z "$ac_cpp_err"; then
6602 ac_header_preproc=yes
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_header_preproc=no
6609 rm -f conftest.err conftest.$ac_ext
6610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6611 echo "${ECHO_T}$ac_header_preproc" >&6
6613 # So? What about this header?
6614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6620 ac_header_preproc=yes
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6637 ## --------------------------------------------- ##
6638 ## Report this to <http://www.openldap.org/its/> ##
6639 ## --------------------------------------------- ##
6642 sed "s/^/$as_me: WARNING: /" >&2
6645 echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 eval "$as_ac_Header=\$ac_header_preproc"
6652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6668 # find the maximum length of command line arguments
6669 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6670 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6671 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 # On DJGPP, this test can blow up pretty badly due to problems in libc
6680 # (any single argument exceeding 2000 bytes causes a buffer overrun
6681 # during glob expansion). Even if it were fixed, the result of this
6682 # check would be larger than it should be.
6683 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6687 # Under GNU Hurd, this test is not required because there is
6688 # no limit to the length of command line arguments.
6689 # Libtool will interpret -1 as no limit whatsoever
6690 lt_cv_sys_max_cmd_len=-1;
6694 # On Win9x/ME, this test blows up -- it succeeds, but takes
6695 # about 5 minutes as the teststring grows exponentially.
6696 # Worse, since 9x/ME are not pre-emptively multitasking,
6697 # you end up with a "frozen" computer, even though with patience
6698 # the test eventually succeeds (with a max line length of 256k).
6699 # Instead, let's just punt: use the minimum linelength reported by
6700 # all of the supported platforms: 8192 (on NT/2K/XP).
6701 lt_cv_sys_max_cmd_len=8192;
6705 # On AmigaOS with pdksh, this test takes hours, literally.
6706 # So we just punt and use a minimum line length of 8192.
6707 lt_cv_sys_max_cmd_len=8192;
6710 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6711 # This has been around since 386BSD, at least. Likely further.
6712 if test -x /sbin/sysctl; then
6713 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6714 elif test -x /usr/sbin/sysctl; then
6715 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6717 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6719 # And add a safety zone
6720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6724 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6725 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6726 # nice to cause kernel panics so lets avoid the loop below.
6727 # First set a reasonable default.
6728 lt_cv_sys_max_cmd_len=16384
6730 if test -x /sbin/sysconfig; then
6731 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6732 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6737 # If test is not a shell built-in, we'll probably end up computing a
6738 # maximum length that is only half of the actual maximum length, but
6740 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6741 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6742 = "XX$teststring") >/dev/null 2>&1 &&
6743 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6744 lt_cv_sys_max_cmd_len=$new_result &&
6745 test $i != 17 # 1/2 MB should be enough
6748 teststring=$teststring$teststring
6751 # Add a significant safety factor because C++ compilers can tack on massive
6752 # amounts of additional arguments before passing them to the linker.
6753 # It appears as though 1/2 is a usable value.
6754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6760 if test -n $lt_cv_sys_max_cmd_len ; then
6761 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6762 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6764 echo "$as_me:$LINENO: result: none" >&5
6765 echo "${ECHO_T}none" >&6
6771 # Check for command to grab the raw symbol name followed by C symbol from nm.
6772 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6773 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6774 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 # These are sane defaults that work on at least a few old systems.
6779 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6781 # Character class describing NM global symbol codes.
6782 symcode='[BCDEGRST]'
6784 # Regexp to match symbols that can be accessed directly from C.
6785 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6787 # Transform an extracted symbol line into a proper C declaration
6788 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6790 # Transform an extracted symbol line into symbol name and symbol address
6791 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'"
6793 # Define system-specific variables.
6798 cygwin* | mingw* | pw32*)
6799 symcode='[ABCDGISTW]'
6801 hpux*) # Its linker distinguishes data from code symbols
6802 if test "$host_cpu" = ia64; then
6803 symcode='[ABCDEGRST]'
6805 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6806 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'"
6809 if test "$host_cpu" = ia64; then
6810 symcode='[ABCDGIRSTW]'
6811 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6812 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'"
6816 symcode='[BCDEGRST]'
6819 symcode='[BCDEGQRST]'
6829 # Handle CRLF in mingw tool chain
6833 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6837 # If we're using GNU nm, then use its standard symbol codes.
6838 case `$NM -V 2>&1` in
6839 *GNU* | *'with BFD'*)
6840 symcode='[ABCDGIRSTW]' ;;
6843 # Try without a prefix undercore, then with it.
6844 for ac_symprfx in "" "_"; do
6846 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6847 symxfrm="\\1 $ac_symprfx\\2 \\2"
6849 # Write the raw and C identifiers.
6850 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6852 # Check to see that the pipe works correctly.
6856 cat > conftest.$ac_ext <<EOF
6861 void nm_test_func(){}
6865 int main(){nm_test_var='a';nm_test_func();return(0);}
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; then
6873 # Now try to grab the symbols.
6875 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6876 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && test -s "$nlist"; then
6880 # Try sorting and uniquifying the output.
6881 if sort "$nlist" | uniq > "$nlist"T; then
6882 mv -f "$nlist"T "$nlist"
6887 # Make sure that we snagged all the symbols we need.
6888 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6889 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6890 cat <<EOF > conftest.$ac_ext
6896 # Now generate the symbol file.
6897 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6899 cat <<EOF >> conftest.$ac_ext
6900 #if defined (__STDC__) && __STDC__
6901 # define lt_ptr_t void *
6903 # define lt_ptr_t char *
6907 /* The mapping between symbol names and symbols. */
6912 lt_preloaded_symbols[] =
6915 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6916 cat <<\EOF >> conftest.$ac_ext
6924 # Now try linking the two files.
6925 mv conftest.$ac_objext conftstm.$ac_objext
6926 lt_save_LIBS="$LIBS"
6927 lt_save_CFLAGS="$CFLAGS"
6928 LIBS="conftstm.$ac_objext"
6929 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6931 (eval $ac_link) 2>&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6937 LIBS="$lt_save_LIBS"
6938 CFLAGS="$lt_save_CFLAGS"
6940 echo "cannot find nm_test_func in $nlist" >&5
6943 echo "cannot find nm_test_var in $nlist" >&5
6946 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6949 echo "$progname: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6952 rm -f conftest* conftst*
6954 # Do not use the global_symbol_pipe unless it works.
6955 if test "$pipe_works" = yes; then
6958 lt_cv_sys_global_symbol_pipe=
6964 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6965 lt_cv_sys_global_symbol_to_cdecl=
6967 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6968 echo "$as_me:$LINENO: result: failed" >&5
6969 echo "${ECHO_T}failed" >&6
6971 echo "$as_me:$LINENO: result: ok" >&5
6972 echo "${ECHO_T}ok" >&6
6975 echo "$as_me:$LINENO: checking for objdir" >&5
6976 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6977 if test "${lt_cv_objdir+set}" = set; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 rm -f .libs 2>/dev/null
6981 mkdir .libs 2>/dev/null
6982 if test -d .libs; then
6985 # MS-DOS does not allow filenames that begin with a dot.
6988 rmdir .libs 2>/dev/null
6990 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6991 echo "${ECHO_T}$lt_cv_objdir" >&6
6992 objdir=$lt_cv_objdir
7000 # AIX sometimes has problems with the GCC collect2 program. For some
7001 # reason, if we set the COLLECT_NAMES environment variable, the problems
7002 # vanish in a puff of smoke.
7003 if test "X${COLLECT_NAMES+set}" != Xset; then
7005 export COLLECT_NAMES
7010 # Sed substitution that helps us do robust quoting. It backslashifies
7011 # metacharacters that are still active within double-quoted strings.
7012 Xsed='sed -e 1s/^X//'
7013 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7015 # Same as above, but do not quote variable references.
7016 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7018 # Sed substitution to delay expansion of an escaped shell variable in a
7019 # double_quote_subst'ed string.
7020 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7022 # Sed substitution to avoid accidental globbing in evaled expressions
7023 no_glob_subst='s/\*/\\\*/g'
7029 default_ofile=libtool
7030 can_build_shared=yes
7032 # All known linkers require a `.a' archive for static linking (except MSVC,
7033 # which needs '.lib').
7035 ltmain="$ac_aux_dir/ltmain.sh"
7036 ofile="$default_ofile"
7037 with_gnu_ld="$lt_cv_prog_gnu_ld"
7039 if test -n "$ac_tool_prefix"; then
7040 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7041 set dummy ${ac_tool_prefix}ar; ac_word=$2
7042 echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7044 if test "${ac_cv_prog_AR+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 if test -n "$AR"; then
7048 ac_cv_prog_AR="$AR" # Let the user override the test.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_AR="${ac_tool_prefix}ar"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 if test -n "$AR"; then
7068 echo "$as_me:$LINENO: result: $AR" >&5
7069 echo "${ECHO_T}$AR" >&6
7071 echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6
7076 if test -z "$ac_cv_prog_AR"; then
7078 # Extract the first word of "ar", so it can be a program name with args.
7079 set dummy ar; ac_word=$2
7080 echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7082 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 if test -n "$ac_ct_AR"; then
7086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_ac_ct_AR="ar"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7105 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7106 if test -n "$ac_ct_AR"; then
7107 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7108 echo "${ECHO_T}$ac_ct_AR" >&6
7110 echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7122 echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7124 if test "${ac_cv_prog_RANLIB+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 if test -n "$RANLIB"; then
7128 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 RANLIB=$ac_cv_prog_RANLIB
7147 if test -n "$RANLIB"; then
7148 echo "$as_me:$LINENO: result: $RANLIB" >&5
7149 echo "${ECHO_T}$RANLIB" >&6
7151 echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6
7156 if test -z "$ac_cv_prog_RANLIB"; then
7157 ac_ct_RANLIB=$RANLIB
7158 # Extract the first word of "ranlib", so it can be a program name with args.
7159 set dummy ranlib; ac_word=$2
7160 echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 if test -n "$ac_ct_RANLIB"; then
7166 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_ac_ct_RANLIB="ranlib"
7176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7185 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7186 if test -n "$ac_ct_RANLIB"; then
7187 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7188 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7190 echo "$as_me:$LINENO: result: no" >&5
7191 echo "${ECHO_T}no" >&6
7194 RANLIB=$ac_ct_RANLIB
7196 RANLIB="$ac_cv_prog_RANLIB"
7199 if test -n "$ac_tool_prefix"; then
7200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7201 set dummy ${ac_tool_prefix}strip; ac_word=$2
7202 echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7204 if test "${ac_cv_prog_STRIP+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 if test -n "$STRIP"; then
7208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 STRIP=$ac_cv_prog_STRIP
7227 if test -n "$STRIP"; then
7228 echo "$as_me:$LINENO: result: $STRIP" >&5
7229 echo "${ECHO_T}$STRIP" >&6
7231 echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6
7236 if test -z "$ac_cv_prog_STRIP"; then
7238 # Extract the first word of "strip", so it can be a program name with args.
7239 set dummy strip; ac_word=$2
7240 echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7242 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 if test -n "$ac_ct_STRIP"; then
7246 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255 ac_cv_prog_ac_ct_STRIP="strip"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7265 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7266 if test -n "$ac_ct_STRIP"; then
7267 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7268 echo "${ECHO_T}$ac_ct_STRIP" >&6
7270 echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6
7276 STRIP="$ac_cv_prog_STRIP"
7281 old_CFLAGS="$CFLAGS"
7283 # Set sane defaults for various variables
7284 test -z "$AR" && AR=ar
7285 test -z "$AR_FLAGS" && AR_FLAGS=cru
7286 test -z "$AS" && AS=as
7287 test -z "$CC" && CC=cc
7288 test -z "$LTCC" && LTCC=$CC
7289 test -z "$DLLTOOL" && DLLTOOL=dlltool
7290 test -z "$LD" && LD=ld
7291 test -z "$LN_S" && LN_S="ln -s"
7292 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7293 test -z "$NM" && NM=nm
7294 test -z "$SED" && SED=sed
7295 test -z "$OBJDUMP" && OBJDUMP=objdump
7296 test -z "$RANLIB" && RANLIB=:
7297 test -z "$STRIP" && STRIP=:
7298 test -z "$ac_objext" && ac_objext=o
7300 # Determine commands to create old-style static archives.
7301 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7302 old_postinstall_cmds='chmod 644 $oldlib'
7303 old_postuninstall_cmds=
7305 if test -n "$RANLIB"; then
7308 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7311 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7314 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7317 for cc_temp in $compiler""; do
7319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7328 # Only perform the check for file, if the check method requires it
7329 case $deplibs_check_method in
7331 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7332 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7333 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7334 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7342 lt_save_MAGIC_CMD="$MAGIC_CMD"
7343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7344 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7345 for ac_dir in $ac_dummy; do
7347 test -z "$ac_dir" && ac_dir=.
7348 if test -f $ac_dir/${ac_tool_prefix}file; then
7349 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7350 if test -n "$file_magic_test_file"; then
7351 case $deplibs_check_method in
7353 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7354 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7355 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7356 $EGREP "$file_magic_regex" > /dev/null; then
7361 *** Warning: the command libtool uses to detect shared libraries,
7362 *** $file_magic_cmd, produces output that libtool cannot recognize.
7363 *** The result is that libtool may fail to recognize shared libraries
7364 *** as such. This will affect the creation of libtool libraries that
7365 *** depend on shared libraries, but programs linked with such libtool
7366 *** libraries will work regardless of this problem. Nevertheless, you
7367 *** may want to report the problem to your system manager and/or to
7368 *** bug-libtool@gnu.org
7378 MAGIC_CMD="$lt_save_MAGIC_CMD"
7383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7384 if test -n "$MAGIC_CMD"; then
7385 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7386 echo "${ECHO_T}$MAGIC_CMD" >&6
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7392 if test -z "$lt_cv_path_MAGIC_CMD"; then
7393 if test -n "$ac_tool_prefix"; then
7394 echo "$as_me:$LINENO: checking for file" >&5
7395 echo $ECHO_N "checking for file... $ECHO_C" >&6
7396 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7404 lt_save_MAGIC_CMD="$MAGIC_CMD"
7405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7406 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7407 for ac_dir in $ac_dummy; do
7409 test -z "$ac_dir" && ac_dir=.
7410 if test -f $ac_dir/file; then
7411 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7412 if test -n "$file_magic_test_file"; then
7413 case $deplibs_check_method in
7415 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7417 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7418 $EGREP "$file_magic_regex" > /dev/null; then
7423 *** Warning: the command libtool uses to detect shared libraries,
7424 *** $file_magic_cmd, produces output that libtool cannot recognize.
7425 *** The result is that libtool may fail to recognize shared libraries
7426 *** as such. This will affect the creation of libtool libraries that
7427 *** depend on shared libraries, but programs linked with such libtool
7428 *** libraries will work regardless of this problem. Nevertheless, you
7429 *** may want to report the problem to your system manager and/or to
7430 *** bug-libtool@gnu.org
7440 MAGIC_CMD="$lt_save_MAGIC_CMD"
7445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7446 if test -n "$MAGIC_CMD"; then
7447 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7448 echo "${ECHO_T}$MAGIC_CMD" >&6
7450 echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6
7464 enable_win32_dll=yes
7466 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7467 if test "${enable_libtool_lock+set}" = set; then
7468 enableval="$enable_libtool_lock"
7471 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7474 # Check whether --with-pic or --without-pic was given.
7475 if test "${with_pic+set}" = set; then
7481 test -z "$pic_mode" && pic_mode=default
7483 # Use C for the default configuration in the libtool script
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493 # Source file extension for C test sources.
7496 # Object file extension for compiled C test sources.
7500 # Code to be used in simple compile tests
7501 lt_simple_compile_test_code="int some_variable = 0;\n"
7503 # Code to be used in simple link tests
7504 lt_simple_link_test_code='int main(){return(0);}\n'
7507 # If no C compiler was specified, use CC.
7510 # Allow CC to be a program name with arguments.
7514 # save warnings/boilerplate of simple test code
7515 ac_outfile=conftest.$ac_objext
7516 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7518 _lt_compiler_boilerplate=`cat conftest.err`
7521 ac_outfile=conftest.$ac_objext
7522 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7524 _lt_linker_boilerplate=`cat conftest.err`
7529 # Check for any special shared library compilation flags.
7532 if test "$GCC" = no; then
7535 lt_prog_cc_shlib='-belf'
7539 if test -n "$lt_prog_cc_shlib"; then
7540 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7541 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7542 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7544 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7545 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7546 lt_cv_prog_cc_can_build_shared=no
7552 # Check to make sure the static flag actually works.
7554 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7555 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7556 if test "${lt_prog_compiler_static_works+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 lt_prog_compiler_static_works=no
7560 save_LDFLAGS="$LDFLAGS"
7561 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7562 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7563 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7564 # The linker can only warn and ignore the option if not recognized
7565 # So say no if there are warnings
7566 if test -s conftest.err; then
7567 # Append any errors to the config.log.
7568 cat conftest.err 1>&5
7569 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7570 $SED '/^$/d' conftest.err >conftest.er2
7571 if diff conftest.exp conftest.er2 >/dev/null; then
7572 lt_prog_compiler_static_works=yes
7575 lt_prog_compiler_static_works=yes
7579 LDFLAGS="$save_LDFLAGS"
7582 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7583 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7585 if test x"$lt_prog_compiler_static_works" = xyes; then
7588 lt_prog_compiler_static=
7594 lt_prog_compiler_no_builtin_flag=
7596 if test "$GCC" = yes; then
7597 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7600 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7601 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7602 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 lt_cv_prog_compiler_rtti_exceptions=no
7606 ac_outfile=conftest.$ac_objext
7607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7608 lt_compiler_flag="-fno-rtti -fno-exceptions"
7609 # Insert the option either (1) after the last *FLAGS variable, or
7610 # (2) before a word containing "conftest.", or (3) at the end.
7611 # Note that $ac_compile itself does not contain backslashes and begins
7612 # with a dollar sign (not a hyphen), so the echo should work correctly.
7613 # The option is referenced via a variable to avoid confusing sed.
7614 lt_compile=`echo "$ac_compile" | $SED \
7615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617 -e 's:$: $lt_compiler_flag:'`
7618 (eval echo "\"\$as_me:7618: $lt_compile\"" >&5)
7619 (eval "$lt_compile" 2>conftest.err)
7621 cat conftest.err >&5
7622 echo "$as_me:7622: \$? = $ac_status" >&5
7623 if (exit $ac_status) && test -s "$ac_outfile"; then
7624 # The compiler can only warn and ignore the option if not recognized
7625 # So say no if there are warnings other than the usual output.
7626 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7627 $SED '/^$/d' conftest.err >conftest.er2
7628 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7629 lt_cv_prog_compiler_rtti_exceptions=yes
7635 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7636 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7638 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7639 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7646 lt_prog_compiler_wl=
7647 lt_prog_compiler_pic=
7648 lt_prog_compiler_static=
7650 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7651 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7653 if test "$GCC" = yes; then
7654 lt_prog_compiler_wl='-Wl,'
7655 lt_prog_compiler_static='-static'
7659 # All AIX code is PIC.
7660 if test "$host_cpu" = ia64; then
7661 # AIX 5 now supports IA64 processor
7662 lt_prog_compiler_static='-Bstatic'
7667 # FIXME: we need at least 68020 code to build shared libraries, but
7668 # adding the `-m68020' flag to GCC prevents building anything better,
7670 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7673 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7674 # PIC is the default for these OSes.
7677 mingw* | pw32* | os2*)
7678 # This hack is so that the source file can tell whether it is being
7679 # built for inclusion in a dll (and should export symbols for example).
7680 lt_prog_compiler_pic='-DDLL_EXPORT'
7683 darwin* | rhapsody*)
7684 # PIC is the default on this platform
7685 # Common symbols not allowed in MH_DYLIB files
7686 lt_prog_compiler_pic='-fno-common'
7690 # Just because we use GCC doesn't mean we suddenly get shared libraries
7691 # on systems that don't support them.
7692 lt_prog_compiler_can_build_shared=no
7697 if test -d /usr/nec; then
7698 lt_prog_compiler_pic=-Kconform_pic
7703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7710 lt_prog_compiler_pic='-fPIC'
7716 lt_prog_compiler_pic='-fPIC'
7720 # PORTME Check for flag to pass linker flags through the system compiler.
7723 lt_prog_compiler_wl='-Wl,'
7724 if test "$host_cpu" = ia64; then
7725 # AIX 5 now supports IA64 processor
7726 lt_prog_compiler_static='-Bstatic'
7728 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7732 # PIC is the default on this platform
7733 # Common symbols not allowed in MH_DYLIB files
7734 case $cc_basename in
7736 lt_prog_compiler_pic='-qnocommon'
7737 lt_prog_compiler_wl='-Wl,'
7742 mingw* | pw32* | os2*)
7743 # This hack is so that the source file can tell whether it is being
7744 # built for inclusion in a dll (and should export symbols for example).
7745 lt_prog_compiler_pic='-DDLL_EXPORT'
7748 hpux9* | hpux10* | hpux11*)
7749 lt_prog_compiler_wl='-Wl,'
7750 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7757 lt_prog_compiler_pic='+Z'
7760 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7761 lt_prog_compiler_static='${wl}-a ${wl}archive'
7764 irix5* | irix6* | nonstopux*)
7765 lt_prog_compiler_wl='-Wl,'
7766 # PIC (with -KPIC) is the default.
7767 lt_prog_compiler_static='-non_shared'
7771 lt_prog_compiler_pic='-KPIC'
7772 lt_prog_compiler_static='-Bstatic'
7776 case $cc_basename in
7778 lt_prog_compiler_wl='-Wl,'
7779 lt_prog_compiler_pic='-KPIC'
7780 lt_prog_compiler_static='-static'
7782 pgcc* | pgf77* | pgf90* | pgf95*)
7783 # Portland Group compilers (*not* the Pentium gcc compiler,
7784 # which looks to be a dead project)
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_pic='-fpic'
7787 lt_prog_compiler_static='-Bstatic'
7790 lt_prog_compiler_wl='-Wl,'
7791 # All Alpha code is PIC.
7792 lt_prog_compiler_static='-non_shared'
7797 osf3* | osf4* | osf5*)
7798 lt_prog_compiler_wl='-Wl,'
7799 # All OSF/1 code is PIC.
7800 lt_prog_compiler_static='-non_shared'
7804 lt_prog_compiler_pic='-Kpic'
7805 lt_prog_compiler_static='-dn'
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 case $cc_basename in
7813 lt_prog_compiler_wl='-Qoption ld ';;
7815 lt_prog_compiler_wl='-Wl,';;
7820 lt_prog_compiler_wl='-Qoption ld '
7821 lt_prog_compiler_pic='-PIC'
7822 lt_prog_compiler_static='-Bstatic'
7825 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_pic='-KPIC'
7828 lt_prog_compiler_static='-Bstatic'
7832 if test -d /usr/nec ;then
7833 lt_prog_compiler_pic='-Kconform_pic'
7834 lt_prog_compiler_static='-Bstatic'
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_can_build_shared=no
7844 lt_prog_compiler_pic='-pic'
7845 lt_prog_compiler_static='-Bstatic'
7849 lt_prog_compiler_can_build_shared=no
7854 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7855 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7858 # Check to make sure the PIC flag actually works.
7860 if test -n "$lt_prog_compiler_pic"; then
7862 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7863 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7864 if test "${lt_prog_compiler_pic_works+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7867 lt_prog_compiler_pic_works=no
7868 ac_outfile=conftest.$ac_objext
7869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7870 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7871 # Insert the option either (1) after the last *FLAGS variable, or
7872 # (2) before a word containing "conftest.", or (3) at the end.
7873 # Note that $ac_compile itself does not contain backslashes and begins
7874 # with a dollar sign (not a hyphen), so the echo should work correctly.
7875 # The option is referenced via a variable to avoid confusing sed.
7876 lt_compile=`echo "$ac_compile" | $SED \
7877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7879 -e 's:$: $lt_compiler_flag:'`
7880 (eval echo "\"\$as_me:7880: $lt_compile\"" >&5)
7881 (eval "$lt_compile" 2>conftest.err)
7883 cat conftest.err >&5
7884 echo "$as_me:7884: \$? = $ac_status" >&5
7885 if (exit $ac_status) && test -s "$ac_outfile"; then
7886 # The compiler can only warn and ignore the option if not recognized
7887 # So say no if there are warnings other than the usual output.
7888 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7889 $SED '/^$/d' conftest.err >conftest.er2
7890 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7891 lt_prog_compiler_pic_works=yes
7897 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7898 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7900 if test x"$lt_prog_compiler_pic_works" = xyes; then
7901 case $lt_prog_compiler_pic in
7903 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7906 lt_prog_compiler_pic=
7907 lt_prog_compiler_can_build_shared=no
7912 # For platforms which do not support PIC, -DPIC is meaningless:
7914 lt_prog_compiler_pic=
7917 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7921 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7922 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7923 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 lt_cv_prog_compiler_c_o=no
7927 $rm -r conftest 2>/dev/null
7931 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7933 lt_compiler_flag="-o out/conftest2.$ac_objext"
7934 # Insert the option either (1) after the last *FLAGS variable, or
7935 # (2) before a word containing "conftest.", or (3) at the end.
7936 # Note that $ac_compile itself does not contain backslashes and begins
7937 # with a dollar sign (not a hyphen), so the echo should work correctly.
7938 lt_compile=`echo "$ac_compile" | $SED \
7939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7941 -e 's:$: $lt_compiler_flag:'`
7942 (eval echo "\"\$as_me:7942: $lt_compile\"" >&5)
7943 (eval "$lt_compile" 2>out/conftest.err)
7945 cat out/conftest.err >&5
7946 echo "$as_me:7946: \$? = $ac_status" >&5
7947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7949 # The compiler can only warn and ignore the option if not recognized
7950 # So say no if there are warnings
7951 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7952 $SED '/^$/d' out/conftest.err >out/conftest.er2
7953 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7954 lt_cv_prog_compiler_c_o=yes
7959 # SGI C++ compiler will create directory out/ii_files/ for
7960 # template instantiation
7961 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7962 $rm out/* && rmdir out
7968 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7969 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7972 hard_links="nottested"
7973 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7974 # do not overwrite the value of need_locks provided by the user
7975 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7976 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7981 ln conftest.a conftest.b 2>&5 || hard_links=no
7982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7983 echo "$as_me:$LINENO: result: $hard_links" >&5
7984 echo "${ECHO_T}$hard_links" >&6
7985 if test "$hard_links" = no; then
7986 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7987 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7994 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7995 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7998 allow_undefined_flag=
7999 enable_shared_with_static_runtimes=no
8001 archive_expsym_cmds=
8002 old_archive_From_new_cmds=
8003 old_archive_from_expsyms_cmds=
8004 export_dynamic_flag_spec=
8005 whole_archive_flag_spec=
8006 thread_safe_flag_spec=
8007 hardcode_libdir_flag_spec=
8008 hardcode_libdir_flag_spec_ld=
8009 hardcode_libdir_separator=
8012 hardcode_shlibpath_var=unsupported
8013 link_all_deplibs=unknown
8014 hardcode_automatic=no
8017 always_export_symbols=no
8018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8019 # include_expsyms should be a list of space-separated symbols to be *always*
8020 # included in the symbol list
8022 # exclude_expsyms can be an extended regexp of symbols to exclude
8023 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8024 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8025 # as well as any symbol that contains `d'.
8026 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8027 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8028 # platforms (ab)use it in PIC code, but their linkers get confused if
8029 # the symbol is explicitly referenced. Since portable code cannot
8030 # rely on this symbol name, it's probably fine to never include it in
8031 # preloaded symbol tables.
8032 extract_expsyms_cmds=
8033 # Just being paranoid about ensuring that cc_basename is set.
8034 for cc_temp in $compiler""; do
8036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8045 cygwin* | mingw* | pw32*)
8046 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8047 # When not using gcc, we currently assume that we are using
8048 # Microsoft Visual C++.
8049 if test "$GCC" != yes; then
8059 if test "$with_gnu_ld" = yes; then
8060 # If archive_cmds runs LD, not CC, wlarc should be empty
8063 # Set some defaults for GNU ld with shared library support. These
8064 # are reset later if shared libraries are not supported. Putting them
8065 # here allows them to be overridden if necessary.
8066 runpath_var=LD_RUN_PATH
8067 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8068 export_dynamic_flag_spec='${wl}--export-dynamic'
8069 # ancient GNU ld didn't support --whole-archive et. al.
8070 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8071 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8073 whole_archive_flag_spec=
8075 supports_anon_versioning=no
8076 case `$LD -v 2>/dev/null` in
8077 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8078 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8079 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8080 *\ 2.11.*) ;; # other 2.11 versions
8081 *) supports_anon_versioning=yes ;;
8084 # See if GNU ld supports shared libraries.
8086 aix3* | aix4* | aix5*)
8087 # On AIX/PPC, the GNU linker is very broken
8088 if test "$host_cpu" != ia64; then
8092 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8093 *** to be unable to reliably create shared libraries on AIX.
8094 *** Therefore, libtool is disabling shared libraries support. If you
8095 *** really care for shared libraries, you may want to modify your PATH
8096 *** so that a non-GNU linker is found, and then restart.
8103 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)'
8104 hardcode_libdir_flag_spec='-L$libdir'
8105 hardcode_minus_L=yes
8107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8108 # that the semantics of dynamic libraries on AmigaOS, at least up
8109 # to version 4, is to share data among multiple programs linked
8110 # with the same dynamic library. Since this doesn't match the
8111 # behavior of shared libraries on other platforms, we can't use
8117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8118 allow_undefined_flag=unsupported
8119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8120 # support --undefined. This deserves some investigation. FIXME
8121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127 cygwin* | mingw* | pw32*)
8128 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8129 # as there is no search path for DLLs.
8130 hardcode_libdir_flag_spec='-L$libdir'
8131 allow_undefined_flag=unsupported
8132 always_export_symbols=no
8133 enable_shared_with_static_runtimes=yes
8134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8136 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8138 # If the export-symbols file already is a .def file (1st line
8139 # is EXPORTS), use it as is; otherwise, prepend...
8140 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8141 cp $export_symbols $output_objdir/$soname.def;
8143 echo EXPORTS > $output_objdir/$soname.def;
8144 cat $export_symbols >> $output_objdir/$soname.def;
8146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155 case $cc_basename,$host_cpu in
8156 pgcc*) # Portland Group C compiler
8157 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'
8158 tmp_addflag=' $pic_flag'
8160 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8161 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'
8162 tmp_addflag=' $pic_flag -Mnomain' ;;
8163 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8164 tmp_addflag=' -i_dynamic' ;;
8165 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8166 tmp_addflag=' -i_dynamic -nofor_main' ;;
8167 ifc* | ifort*) # Intel Fortran compiler
8168 tmp_addflag=' -nofor_main' ;;
8170 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8172 if test $supports_anon_versioning = yes; then
8173 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8175 $echo "local: *; };" >> $output_objdir/$libname.ver~
8176 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8185 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8194 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8198 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8199 *** create shared libraries on Solaris systems. Therefore, libtool
8200 *** is disabling shared libraries support. We urge you to upgrade GNU
8201 *** binutils to release 2.9.1 or newer. Another option is to modify
8202 *** your PATH or compiler configuration so that the native linker is
8203 *** used, and then restart.
8206 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8215 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_shlibpath_var=no
8222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231 if test "$ld_shlibs" = no; then
8233 hardcode_libdir_flag_spec=
8234 export_dynamic_flag_spec=
8235 whole_archive_flag_spec=
8238 # PORTME fill in a description of your system's linker (not GNU ld)
8241 allow_undefined_flag=unsupported
8242 always_export_symbols=yes
8243 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'
8244 # Note: this linker hardcodes the directories in LIBPATH if there
8245 # are no directories specified by -L.
8246 hardcode_minus_L=yes
8247 if test "$GCC" = yes && test -z "$link_static_flag"; then
8248 # Neither direct hardcoding nor static linking is supported with a
8250 hardcode_direct=unsupported
8255 if test "$host_cpu" = ia64; then
8256 # On IA64, the linker does run time linking by default, so we don't
8257 # have to do anything special.
8258 aix_use_runtimelinking=no
8259 exp_sym_flag='-Bexport'
8262 # If we're using GNU nm, then we don't want the "-C" option.
8263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8264 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8265 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'
8267 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'
8269 aix_use_runtimelinking=no
8271 # Test if we are trying to use run time linking or normal
8272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8273 # need to do runtime linking.
8274 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8275 for ld_flag in $LDFLAGS; do
8276 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8277 aix_use_runtimelinking=yes
8283 exp_sym_flag='-bexport'
8284 no_entry_flag='-bnoentry'
8287 # When large executables or shared objects are built, AIX ld can
8288 # have problems creating the table of contents. If linking a library
8289 # or program results in "error TOC overflow" add -mminimal-toc to
8290 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8291 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8295 hardcode_libdir_separator=':'
8296 link_all_deplibs=yes
8298 if test "$GCC" = yes; then
8299 case $host_os in aix4.[012]|aix4.[012].*)
8300 # We only want to do this on AIX 4.2 and lower, the check
8301 # below for broken collect2 doesn't work under 4.3+
8302 collect2name=`${CC} -print-prog-name=collect2`
8303 if test -f "$collect2name" && \
8304 strings "$collect2name" | grep resolve_lib_name >/dev/null
8306 # We have reworked collect2
8309 # We have old collect2
8310 hardcode_direct=unsupported
8311 # It fails to find uninstalled libraries when the uninstalled
8312 # path is not listed in the libpath. Setting hardcode_minus_L
8313 # to unsupported forces relinking
8314 hardcode_minus_L=yes
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_libdir_separator=
8319 shared_flag='-shared'
8320 if test "$aix_use_runtimelinking" = yes; then
8321 shared_flag="$shared_flag "'${wl}-G'
8325 if test "$host_cpu" = ia64; then
8326 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8327 # chokes on -Wl,-G. The following line is correct:
8330 if test "$aix_use_runtimelinking" = yes; then
8331 shared_flag='${wl}-G'
8333 shared_flag='${wl}-bM:SRE'
8338 # It seems that -bexpall does not export symbols beginning with
8339 # underscore (_), so it is better to generate a list of symbols to export.
8340 always_export_symbols=yes
8341 if test "$aix_use_runtimelinking" = yes; then
8342 # Warning - without using the other runtime loading flags (-brtl),
8343 # -berok will link without error, but may produce a broken library.
8344 allow_undefined_flag='-berok'
8345 # Determine the default libpath from the value encoded in an empty executable.
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8361 rm -f conftest.$ac_objext conftest$ac_exeext
8362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8363 (eval $ac_link) 2>conftest.er1
8365 grep -v '^ *+' conftest.er1 >conftest.err
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -z "$ac_c_werror_flag"
8371 || test ! -s conftest.err'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest$ac_exeext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8386 # Check for a 64-bit object if we didn't find anything.
8387 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; }
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8394 rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8398 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8399 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"
8401 if test "$host_cpu" = ia64; then
8402 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8403 allow_undefined_flag="-z nodefs"
8404 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"
8406 # Determine the default libpath from the value encoded in an empty executable.
8407 cat >conftest.$ac_ext <<_ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8447 # Check for a 64-bit object if we didn't find anything.
8448 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; }
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8455 rm -f conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8459 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8460 # Warning - without using the other run time loading flags,
8461 # -berok will link without error, but may produce a broken library.
8462 no_undefined_flag=' ${wl}-bernotok'
8463 allow_undefined_flag=' ${wl}-berok'
8464 # -bexpall does not export symbols beginning with underscore (_)
8465 always_export_symbols=yes
8466 # Exported symbols can be pulled into shared objects from archives
8467 whole_archive_flag_spec=' '
8468 archive_cmds_need_lc=yes
8469 # This is similar to how AIX traditionally builds its shared libraries.
8470 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'
8476 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)'
8477 hardcode_libdir_flag_spec='-L$libdir'
8478 hardcode_minus_L=yes
8479 # see comment about different semantics on the GNU ld section
8484 export_dynamic_flag_spec=-rdynamic
8487 cygwin* | mingw* | pw32*)
8488 # When not using gcc, we currently assume that we are using
8489 # Microsoft Visual C++.
8490 # hardcode_libdir_flag_spec is actually meaningless, as there is
8491 # no search path for DLLs.
8492 hardcode_libdir_flag_spec=' '
8493 allow_undefined_flag=unsupported
8494 # Tell ltmain to make .lib files, not .a files.
8496 # Tell ltmain to make .dll files, not .so files.
8498 # FIXME: Setting linknames here is a bad hack.
8499 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8500 # The linker will automatically build a .lib file if we build a DLL.
8501 old_archive_From_new_cmds='true'
8502 # FIXME: Should let the user specify the lib program.
8503 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8504 fix_srcfile_path='`cygpath -w "$srcfile"`'
8505 enable_shared_with_static_runtimes=yes
8508 darwin* | rhapsody*)
8510 rhapsody* | darwin1.[012])
8511 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8514 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8515 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8517 case ${MACOSX_DEPLOYMENT_TARGET} in
8519 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8522 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8528 archive_cmds_need_lc=no
8530 hardcode_automatic=yes
8531 hardcode_shlibpath_var=unsupported
8532 whole_archive_flag_spec=''
8533 link_all_deplibs=yes
8534 if test "$GCC" = yes ; then
8535 output_verbose_link_cmd='echo'
8536 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8537 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8539 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}'
8540 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}'
8542 case $cc_basename in
8544 output_verbose_link_cmd='echo'
8545 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8546 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8547 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8548 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}'
8549 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}'
8559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8560 hardcode_libdir_flag_spec='-L$libdir'
8561 hardcode_shlibpath_var=no
8568 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8569 # support. Future versions do this automatically, but an explicit c++rt0.o
8570 # does not break anything, and helps significantly (at the cost of a little
8573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8574 hardcode_libdir_flag_spec='-R$libdir'
8576 hardcode_shlibpath_var=no
8579 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8583 hardcode_minus_L=yes
8584 hardcode_shlibpath_var=no
8587 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8588 freebsd* | kfreebsd*-gnu | dragonfly*)
8589 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8590 hardcode_libdir_flag_spec='-R$libdir'
8592 hardcode_shlibpath_var=no
8596 if test "$GCC" = yes; then
8597 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'
8599 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'
8601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8602 hardcode_libdir_separator=:
8605 # hardcode_minus_L: Not really in the search PATH,
8606 # but as the default location of the library.
8607 hardcode_minus_L=yes
8608 export_dynamic_flag_spec='${wl}-E'
8612 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8615 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8618 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8624 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8627 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8631 if test "$with_gnu_ld" = no; then
8634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8635 hardcode_libdir_flag_spec_ld='+b $libdir'
8636 hardcode_libdir_separator=:
8638 hardcode_shlibpath_var=no
8641 hardcode_libdir_flag_spec='-L$libdir'
8643 hardcode_shlibpath_var=no
8645 # hardcode_minus_L: Not really in the search PATH,
8646 # but as the default location of the library.
8647 hardcode_minus_L=yes
8650 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8651 hardcode_libdir_separator=:
8653 export_dynamic_flag_spec='${wl}-E'
8655 # hardcode_minus_L: Not really in the search PATH,
8656 # but as the default location of the library.
8657 hardcode_minus_L=yes
8663 irix5* | irix6* | nonstopux*)
8664 if test "$GCC" = yes; then
8665 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'
8667 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'
8668 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8671 hardcode_libdir_separator=:
8672 link_all_deplibs=yes
8676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8679 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8681 hardcode_libdir_flag_spec='-R$libdir'
8683 hardcode_shlibpath_var=no
8687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690 hardcode_libdir_separator=:
8691 hardcode_shlibpath_var=no
8696 hardcode_shlibpath_var=no
8697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8699 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8701 export_dynamic_flag_spec='${wl}-E'
8704 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8706 hardcode_libdir_flag_spec='-R$libdir'
8709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8717 hardcode_libdir_flag_spec='-L$libdir'
8718 hardcode_minus_L=yes
8719 allow_undefined_flag=unsupported
8720 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'
8721 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8725 if test "$GCC" = yes; then
8726 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8727 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'
8729 allow_undefined_flag=' -expect_unresolved \*'
8730 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'
8732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8733 hardcode_libdir_separator=:
8736 osf4* | osf5*) # as osf3* with the addition of -msym flag
8737 if test "$GCC" = yes; then
8738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8739 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'
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742 allow_undefined_flag=' -expect_unresolved \*'
8743 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'
8744 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8745 $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'
8747 # Both c and cxx compiler support -rpath directly
8748 hardcode_libdir_flag_spec='-rpath $libdir'
8750 hardcode_libdir_separator=:
8754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755 hardcode_shlibpath_var=no
8756 export_dynamic_flag_spec='${wl}-Bexport'
8757 runpath_var=LD_RUN_PATH
8758 hardcode_runpath_var=yes
8762 no_undefined_flag=' -z text'
8763 if test "$GCC" = yes; then
8765 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8767 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8770 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8774 hardcode_libdir_flag_spec='-R$libdir'
8775 hardcode_shlibpath_var=no
8777 solaris2.[0-5] | solaris2.[0-5].*) ;;
8779 # The compiler driver will combine linker options so we
8780 # cannot just pass the convience library names through
8781 # without $wl, iff we do not link with $LD.
8782 # Luckily, gcc supports the same syntax we need for Sun Studio.
8783 # Supported since Solaris 2.6 (maybe 2.5.1?)
8786 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8788 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' ;;
8791 link_all_deplibs=yes
8795 if test "x$host_vendor" = xsequent; then
8796 # Use $CC to link under sequent, because it throws in some extra .o
8797 # files that make .init and .fini sections work.
8798 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8800 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_libdir_flag_spec='-L$libdir'
8804 hardcode_minus_L=yes
8805 hardcode_shlibpath_var=no
8809 case $host_vendor in
8811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_direct=yes # is this really true???
8815 ## LD is ld it makes a PLAMLIB
8816 ## CC just makes a GrossModule.
8817 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8818 reload_cmds='$CC -r -o $output$reload_objs'
8822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8826 runpath_var='LD_RUN_PATH'
8827 hardcode_shlibpath_var=no
8831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832 hardcode_shlibpath_var=no
8833 export_dynamic_flag_spec='-Bexport'
8837 if test -d /usr/nec; then
8838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839 hardcode_shlibpath_var=no
8840 runpath_var=LD_RUN_PATH
8841 hardcode_runpath_var=yes
8847 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8850 hardcode_shlibpath_var=no
8851 hardcode_runpath_var=yes
8852 runpath_var=LD_RUN_PATH
8855 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8856 no_undefined_flag='${wl}-z ${wl}text'
8857 if test "$GCC" = yes; then
8858 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862 runpath_var='LD_RUN_PATH'
8863 hardcode_shlibpath_var=no
8867 no_undefined_flag=' -z text'
8868 # $CC -shared without GNU ld will not create a library from C++
8869 # object files and a static libstdc++, better avoid it by now
8870 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8871 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8872 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8873 hardcode_libdir_flag_spec=
8874 hardcode_shlibpath_var=no
8875 runpath_var='LD_RUN_PATH'
8879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880 hardcode_libdir_flag_spec='-L$libdir'
8881 hardcode_shlibpath_var=no
8890 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8891 echo "${ECHO_T}$ld_shlibs" >&6
8892 test "$ld_shlibs" = no && can_build_shared=no
8894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8895 if test "$GCC" = yes; then
8896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8900 # Do we need to explicitly link libc?
8902 case "x$archive_cmds_need_lc" in
8904 # Assume -lc should be added
8905 archive_cmds_need_lc=yes
8907 if test "$enable_shared" = yes && test "$GCC" = yes; then
8908 case $archive_cmds in
8910 # FIXME: we may have to deal with multi-command sequences.
8913 # Test whether the compiler implicitly links with -lc since on some
8914 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8915 # to ld, don't add -lc before -lgcc.
8916 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8917 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922 (eval $ac_compile) 2>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } 2>conftest.err; then
8928 libobjs=conftest.$ac_objext
8930 wl=$lt_prog_compiler_wl
8936 lt_save_allow_undefined_flag=$allow_undefined_flag
8937 allow_undefined_flag=
8938 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8939 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }
8944 archive_cmds_need_lc=no
8946 archive_cmds_need_lc=yes
8948 allow_undefined_flag=$lt_save_allow_undefined_flag
8950 cat conftest.err 1>&5
8953 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8954 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8961 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8962 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8964 libname_spec='lib$name'
8972 shlibpath_overrides_runpath=unknown
8974 dynamic_linker="$host_os ld.so"
8975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8976 if test "$GCC" = yes; then
8977 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8978 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8979 # if the path contains ";" then we assume it to be the separator
8980 # otherwise default to the standard path separator (i.e. ":") - it is
8981 # assumed that no part of a normal pathname contains ";" but that should
8982 # okay in the real world where ";" in dirpaths is itself problematic.
8983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8990 need_lib_prefix=unknown
8991 hardcode_into_libs=no
8993 # when you set need_version to no, make sure it does not cause -set_version
8994 # flags to be left without arguments
8995 need_version=unknown
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9001 shlibpath_var=LIBPATH
9003 # AIX 3 has no versioning support, so we append a major version to the name.
9004 soname_spec='${libname}${release}${shared_ext}$major'
9011 hardcode_into_libs=yes
9012 if test "$host_cpu" = ia64; then
9013 # AIX 5 supports IA64
9014 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9015 shlibpath_var=LD_LIBRARY_PATH
9017 # With GCC up to 2.95.x, collect2 would create an import file
9018 # for dependence libraries. The import file would start with
9019 # the line `#! .'. This would cause the generated library to
9020 # depend on `.', always an invalid library. This was fixed in
9021 # development snapshots of GCC prior to 3.0.
9023 aix4 | aix4.[01] | aix4.[01].*)
9024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9026 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9033 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9034 # soname into executable. Probably we can add versioning support to
9035 # collect2, so additional links can be useful in future.
9036 if test "$aix_use_runtimelinking" = yes; then
9037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9038 # instead of lib<name>.a to let people know that these are not
9039 # typical AIX shared libraries.
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 # We preserve .a as extension for shared libraries through AIX4.2
9043 # and later when we are not doing run time linking.
9044 library_names_spec='${libname}${release}.a $libname.a'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9047 shlibpath_var=LIBPATH
9052 library_names_spec='$libname.ixlibrary $libname.a'
9053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9054 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'
9058 library_names_spec='${libname}${shared_ext}'
9059 dynamic_linker="$host_os ld.so"
9060 shlibpath_var=LIBRARY_PATH
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9071 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9072 # the default ld.so.conf also contains /usr/contrib/lib and
9073 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9074 # libtool to hard-code these into programs
9077 cygwin* | mingw* | pw32*)
9078 version_type=windows
9083 case $GCC,$host_os in
9084 yes,cygwin* | yes,mingw* | yes,pw32*)
9085 library_names_spec='$libname.dll.a'
9086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9087 postinstall_cmds='base_file=`basename \${file}`~
9088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9089 dldir=$destdir/`dirname \$dlpath`~
9090 test -d \$dldir || mkdir -p \$dldir~
9091 $install_prog $dir/$dlname \$dldir/$dlname~
9092 chmod a+x \$dldir/$dlname'
9093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9094 dlpath=$dir/\$dldll~
9096 shlibpath_overrides_runpath=yes
9100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9102 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9105 # MinGW DLLs use traditional 'lib' prefix
9106 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9107 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9108 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9109 # It is most probably a Windows format PATH printed by
9110 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9111 # path with ; separators, and with drive letters. We can handle the
9112 # drive letters (cygwin fileutils understands them), so leave them,
9113 # especially as we might pass files found there to a mingw objdump,
9114 # which wouldn't understand a cygwinified path. Ahh.
9115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9121 # pw32 DLLs use 'pw' prefix rather than 'lib'
9122 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9128 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9131 dynamic_linker='Win32 ld.exe'
9132 # FIXME: first we should search . and the directory the executable is in
9136 darwin* | rhapsody*)
9137 dynamic_linker="$host_os dyld"
9141 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9142 soname_spec='${libname}${release}${major}$shared_ext'
9143 shlibpath_overrides_runpath=yes
9144 shlibpath_var=DYLD_LIBRARY_PATH
9145 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9146 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9147 if test "$GCC" = yes; then
9148 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"`
9150 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9152 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 shlibpath_overrides_runpath=no
9176 hardcode_into_libs=yes
9177 dynamic_linker='GNU ld.so'
9180 freebsd* | dragonfly*)
9181 # DragonFly does not have aout. When/if they implement a new
9182 # versioning mechanism, adjust this.
9183 if test -x /usr/bin/objformat; then
9184 objformat=`/usr/bin/objformat`
9187 freebsd[123]*) objformat=aout ;;
9191 version_type=freebsd-$objformat
9192 case $version_type in
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9203 shlibpath_var=LD_LIBRARY_PATH
9206 shlibpath_overrides_runpath=yes
9208 freebsd3.[01]* | freebsdelf3.[01]*)
9209 shlibpath_overrides_runpath=yes
9210 hardcode_into_libs=yes
9213 shlibpath_overrides_runpath=no
9214 hardcode_into_libs=yes
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 hardcode_into_libs=yes
9229 hpux9* | hpux10* | hpux11*)
9230 # Give a soname corresponding to the major version so that dld.sl refuses to
9231 # link against other versions.
9238 hardcode_into_libs=yes
9239 dynamic_linker="$host_os dld.so"
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 if test "X$HPUX_IA64_MODE" = X32; then
9245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9253 hardcode_into_libs=yes
9254 dynamic_linker="$host_os dld.sl"
9255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9264 dynamic_linker="$host_os dld.sl"
9265 shlibpath_var=SHLIB_PATH
9266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9271 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9272 postinstall_cmds='chmod 555 $lib'
9275 irix5* | irix6* | nonstopux*)
9277 nonstopux*) version_type=nonstopux ;;
9279 if test "$lt_cv_prog_gnu_ld" = yes; then
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9290 irix5* | nonstopux*)
9294 case $LD in # libtool.m4 will add one of these switches to LD
9295 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9296 libsuff= shlibsuff= libmagic=32-bit;;
9297 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9298 libsuff=32 shlibsuff=N32 libmagic=N32;;
9299 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9300 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9301 *) libsuff= shlibsuff= libmagic=never-match;;
9305 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9306 shlibpath_overrides_runpath=no
9307 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9308 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9309 hardcode_into_libs=yes
9312 # No shared lib support for Linux oldld, aout, or coff.
9313 linux*oldld* | linux*aout* | linux*coff*)
9317 # This must be Linux ELF.
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 shlibpath_overrides_runpath=no
9327 # This implies no fast_install, which is unacceptable.
9328 # Some rework will be needed to allow for fast_install
9329 # before this can be enabled.
9330 hardcode_into_libs=yes
9332 # Append ld.so.conf contents to the search path
9333 if test -f /etc/ld.so.conf; then
9334 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' ' '`
9335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9338 # We used to test for /lib/ld.so.1 and disable shared libraries on
9339 # powerpc, because MkLinux only supported shared libraries with the
9340 # GNU dynamic linker. Since this was broken with cross compilers,
9341 # most powerpc-linux boxes support dynamic linking these days and
9342 # people can always --disable-shared, the test was removed, and we
9343 # assume the GNU/Linux dynamic linker is in use.
9344 dynamic_linker='GNU/Linux ld.so'
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 shlibpath_overrides_runpath=no
9355 hardcode_into_libs=yes
9356 dynamic_linker='GNU ld.so'
9363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9366 dynamic_linker='NetBSD (a.out) ld.so'
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 dynamic_linker='NetBSD ld.elf_so'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 shlibpath_overrides_runpath=yes
9374 hardcode_into_libs=yes
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 shlibpath_overrides_runpath=yes
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 shlibpath_var=LD_LIBRARY_PATH
9391 shlibpath_overrides_runpath=yes
9397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9400 *) need_version=no ;;
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9407 openbsd2.[89] | openbsd2.[89].*)
9408 shlibpath_overrides_runpath=no
9411 shlibpath_overrides_runpath=yes
9415 shlibpath_overrides_runpath=yes
9420 libname_spec='$name'
9423 library_names_spec='$libname${shared_ext} $libname.a'
9424 dynamic_linker='OS/2 ld.exe'
9425 shlibpath_var=LIBPATH
9428 osf3* | osf4* | osf5*)
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9441 soname_spec='${libname}${release}${shared_ext}$major'
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9443 shlibpath_var=LD_LIBRARY_PATH
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=yes
9454 hardcode_into_libs=yes
9455 # ldd complains unless libraries are executable
9456 postinstall_cmds='chmod +x $lib'
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=yes
9465 if test "$with_gnu_ld" = yes; then
9471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 case $host_vendor in
9478 shlibpath_overrides_runpath=no
9480 export_dynamic_flag_spec='${wl}-Blargedynsym'
9481 runpath_var=LD_RUN_PATH
9489 shlibpath_overrides_runpath=no
9490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9496 if test -d /usr/nec ;then
9498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9499 soname_spec='$libname${shared_ext}.$major'
9500 shlibpath_var=LD_LIBRARY_PATH
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 shlibpath_var=LD_LIBRARY_PATH
9515 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9516 echo "${ECHO_T}$dynamic_linker" >&6
9517 test "$dynamic_linker" = no && can_build_shared=no
9519 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9522 if test -n "$hardcode_libdir_flag_spec" || \
9523 test -n "$runpath_var" || \
9524 test "X$hardcode_automatic" = "Xyes" ; then
9526 # We can hardcode non-existant directories.
9527 if test "$hardcode_direct" != no &&
9528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9529 # have to relink, otherwise we might link with an installed library
9530 # when we should be linking with a yet-to-be-installed one
9531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9532 test "$hardcode_minus_L" != no; then
9533 # Linking always hardcodes the temporary library directory.
9534 hardcode_action=relink
9536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9537 hardcode_action=immediate
9540 # We cannot hardcode anything, or else we can only hardcode existing
9542 hardcode_action=unsupported
9544 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9545 echo "${ECHO_T}$hardcode_action" >&6
9547 if test "$hardcode_action" = relink; then
9548 # Fast installation is not supported
9549 enable_fast_install=no
9550 elif test "$shlibpath_overrides_runpath" = yes ||
9551 test "$enable_shared" = no; then
9552 # Fast installation is not necessary
9553 enable_fast_install=needless
9558 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9559 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9560 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9561 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9562 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9563 echo "$as_me:$LINENO: result: yes" >&5
9564 echo "${ECHO_T}yes" >&6
9566 # FIXME - insert some real tests, host_os isn't really good enough
9569 if test -n "$STRIP" ; then
9570 striplib="$STRIP -x"
9571 echo "$as_me:$LINENO: result: yes" >&5
9572 echo "${ECHO_T}yes" >&6
9574 echo "$as_me:$LINENO: result: no" >&5
9575 echo "${ECHO_T}no" >&6
9579 echo "$as_me:$LINENO: result: no" >&5
9580 echo "${ECHO_T}no" >&6
9585 if test "x$enable_dlopen" != xyes; then
9586 enable_dlopen=unknown
9587 enable_dlopen_self=unknown
9588 enable_dlopen_self_static=unknown
9595 lt_cv_dlopen="load_add_on"
9597 lt_cv_dlopen_self=yes
9601 lt_cv_dlopen="LoadLibrary"
9606 lt_cv_dlopen="dlopen"
9611 # if libdl is installed we need to link against it
9612 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9613 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 ac_check_lib_save_LIBS=$LIBS
9619 cat >conftest.$ac_ext <<_ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9626 /* Override any gcc2 internal prototype to avoid an error. */
9630 /* We use char because int might match the return type of a gcc2
9631 builtin and then its argument prototype would still apply. */
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9643 (eval $ac_link) 2>conftest.er1
9645 grep -v '^ *+' conftest.er1 >conftest.err
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag"
9651 || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest$ac_exeext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_lib_dl_dlopen=yes
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9668 ac_cv_lib_dl_dlopen=no
9670 rm -f conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9672 LIBS=$ac_check_lib_save_LIBS
9674 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9675 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9676 if test $ac_cv_lib_dl_dlopen = yes; then
9677 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9682 lt_cv_dlopen_self=yes
9689 echo "$as_me:$LINENO: checking for shl_load" >&5
9690 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9691 if test "${ac_cv_func_shl_load+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702 #define shl_load innocuous_shl_load
9704 /* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char shl_load (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9710 # include <limits.h>
9712 # include <assert.h>
9717 /* Override any gcc2 internal prototype to avoid an error. */
9722 /* We use char because int might match the return type of a gcc2
9723 builtin and then its argument prototype would still apply. */
9725 /* The GNU C library defines this for functions which it implements
9726 to always fail with ENOSYS. Some functions are actually named
9727 something starting with __ and the normal name is an alias. */
9728 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9731 char (*f) () = shl_load;
9740 return f != shl_load;
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>conftest.er1
9749 grep -v '^ *+' conftest.er1 >conftest.err
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_func_shl_load=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_cv_func_shl_load=no
9774 rm -f conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9777 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9779 if test $ac_cv_func_shl_load = yes; then
9780 lt_cv_dlopen="shl_load"
9782 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_check_lib_save_LIBS=$LIBS
9789 cat >conftest.$ac_ext <<_ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9796 /* Override any gcc2 internal prototype to avoid an error. */
9800 /* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9813 (eval $ac_link) 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag"
9821 || test ! -s conftest.err'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_lib_dld_shl_load=yes
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 ac_cv_lib_dld_shl_load=no
9840 rm -f conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9844 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9845 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9846 if test $ac_cv_lib_dld_shl_load = yes; then
9847 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9849 echo "$as_me:$LINENO: checking for dlopen" >&5
9850 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9851 if test "${ac_cv_func_dlopen+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9862 #define dlopen innocuous_dlopen
9864 /* System header to define __stub macros and hopefully few prototypes,
9865 which can conflict with char dlopen (); below.
9866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9867 <limits.h> exists even on freestanding compilers. */
9870 # include <limits.h>
9872 # include <assert.h>
9877 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9885 /* The GNU C library defines this for functions which it implements
9886 to always fail with ENOSYS. Some functions are actually named
9887 something starting with __ and the normal name is an alias. */
9888 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9891 char (*f) () = dlopen;
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_func_dlopen=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_func_dlopen=no
9934 rm -f conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9937 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9938 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9939 if test $ac_cv_func_dlopen = yes; then
9940 lt_cv_dlopen="dlopen"
9942 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 ac_check_lib_save_LIBS=$LIBS
9949 cat >conftest.$ac_ext <<_ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9956 /* Override any gcc2 internal prototype to avoid an error. */
9960 /* We use char because int might match the return type of a gcc2
9961 builtin and then its argument prototype would still apply. */
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>conftest.er1
9975 grep -v '^ *+' conftest.er1 >conftest.err
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try='test -z "$ac_c_werror_flag"
9981 || test ! -s conftest.err'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest$ac_exeext'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_lib_dl_dlopen=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_lib_dl_dlopen=no
10000 rm -f conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10004 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10005 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10006 if test $ac_cv_lib_dl_dlopen = yes; then
10007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10009 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10010 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 ac_check_lib_save_LIBS=$LIBS
10015 LIBS="-lsvld $LIBS"
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10023 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10040 (eval $ac_link) 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_c_werror_flag"
10048 || test ! -s conftest.err'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; } &&
10054 { ac_try='test -s conftest$ac_exeext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_lib_svld_dlopen=yes
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 ac_cv_lib_svld_dlopen=no
10067 rm -f conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 LIBS=$ac_check_lib_save_LIBS
10071 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10072 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10073 if test $ac_cv_lib_svld_dlopen = yes; then
10074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10076 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10077 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 ac_check_lib_save_LIBS=$LIBS
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10090 /* Override any gcc2 internal prototype to avoid an error. */
10094 /* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10107 (eval $ac_link) 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -z "$ac_c_werror_flag"
10115 || test ! -s conftest.err'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_lib_dld_dld_link=yes
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_cv_lib_dld_dld_link=no
10134 rm -f conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10138 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10139 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10140 if test $ac_cv_lib_dld_dld_link = yes; then
10141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10162 if test "x$lt_cv_dlopen" != xno; then
10168 case $lt_cv_dlopen in
10170 save_CPPFLAGS="$CPPFLAGS"
10171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10173 save_LDFLAGS="$LDFLAGS"
10174 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10177 LIBS="$lt_cv_dlopen_libs $LIBS"
10179 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10180 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10181 if test "${lt_cv_dlopen_self+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10184 if test "$cross_compiling" = yes; then :
10185 lt_cv_dlopen_self=cross
10187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10188 lt_status=$lt_dlunknown
10189 cat > conftest.$ac_ext <<EOF
10190 #line 10190 "configure"
10191 #include "confdefs.h"
10200 # define LT_DLGLOBAL RTLD_GLOBAL
10203 # define LT_DLGLOBAL DL_GLOBAL
10205 # define LT_DLGLOBAL 0
10209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10210 find out it does not work in some platform. */
10211 #ifndef LT_DLLAZY_OR_NOW
10213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10216 # define LT_DLLAZY_OR_NOW DL_LAZY
10219 # define LT_DLLAZY_OR_NOW RTLD_NOW
10222 # define LT_DLLAZY_OR_NOW DL_NOW
10224 # define LT_DLLAZY_OR_NOW 0
10232 extern "C" void exit (int);
10235 void fnord() { int i=42;}
10238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10239 int status = $lt_dlunknown;
10243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10245 /* dlclose (self); */
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252 (eval $ac_link) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10256 (./conftest; exit; ) >&5 2>/dev/null
10258 case x$lt_status in
10259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10261 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10264 # compilation failed
10265 lt_cv_dlopen_self=no
10272 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10275 if test "x$lt_cv_dlopen_self" = xyes; then
10276 LDFLAGS="$LDFLAGS $link_static_flag"
10277 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10279 if test "${lt_cv_dlopen_self_static+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 if test "$cross_compiling" = yes; then :
10283 lt_cv_dlopen_self_static=cross
10285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10286 lt_status=$lt_dlunknown
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10298 # define LT_DLGLOBAL RTLD_GLOBAL
10301 # define LT_DLGLOBAL DL_GLOBAL
10303 # define LT_DLGLOBAL 0
10307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10308 find out it does not work in some platform. */
10309 #ifndef LT_DLLAZY_OR_NOW
10311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10314 # define LT_DLLAZY_OR_NOW DL_LAZY
10317 # define LT_DLLAZY_OR_NOW RTLD_NOW
10320 # define LT_DLLAZY_OR_NOW DL_NOW
10322 # define LT_DLLAZY_OR_NOW 0
10330 extern "C" void exit (int);
10333 void fnord() { int i=42;}
10336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10337 int status = $lt_dlunknown;
10341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10343 /* dlclose (self); */
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10354 (./conftest; exit; ) >&5 2>/dev/null
10356 case x$lt_status in
10357 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10358 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10359 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10362 # compilation failed
10363 lt_cv_dlopen_self_static=no
10370 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10371 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10374 CPPFLAGS="$save_CPPFLAGS"
10375 LDFLAGS="$save_LDFLAGS"
10380 case $lt_cv_dlopen_self in
10381 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10382 *) enable_dlopen_self=unknown ;;
10385 case $lt_cv_dlopen_self_static in
10386 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10387 *) enable_dlopen_self_static=unknown ;;
10392 # Report which librarie types wil actually be built
10393 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10394 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10395 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10396 echo "${ECHO_T}$can_build_shared" >&6
10398 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10399 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10400 test "$can_build_shared" = "no" && enable_shared=no
10402 # On AIX, shared libraries and static libraries use the same namespace, and
10403 # are all built from PIC.
10406 test "$enable_shared" = yes && enable_static=no
10407 if test -n "$RANLIB"; then
10408 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10409 postinstall_cmds='$RANLIB $lib'
10414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10415 test "$enable_shared" = yes && enable_static=no
10419 echo "$as_me:$LINENO: result: $enable_shared" >&5
10420 echo "${ECHO_T}$enable_shared" >&6
10422 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10423 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10424 # Make sure either enable_shared or enable_static is yes.
10425 test "$enable_shared" = yes || enable_static=yes
10426 echo "$as_me:$LINENO: result: $enable_static" >&5
10427 echo "${ECHO_T}$enable_static" >&6
10429 # The else clause should only fire when bootstrapping the
10430 # libtool distribution, otherwise you forgot to ship ltmain.sh
10431 # with your package, and you will get complaints that there are
10432 # no rules to generate ltmain.sh.
10433 if test -f "$ltmain"; then
10434 # See if we are running on zsh, and set the options which allow our commands through
10435 # without removal of \ escapes.
10436 if test -n "${ZSH_VERSION+set}" ; then
10437 setopt NO_GLOB_SUBST
10439 # Now quote all the things that may contain metacharacters while being
10440 # careful not to overquote the AC_SUBSTed values. We take copies of the
10441 # variables and quote the copies for generation of the libtool script.
10442 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10444 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10445 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10446 deplibs_check_method reload_flag reload_cmds need_locks \
10447 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10448 lt_cv_sys_global_symbol_to_c_name_address \
10449 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10450 old_postinstall_cmds old_postuninstall_cmds \
10454 lt_prog_compiler_wl \
10455 lt_prog_compiler_pic \
10456 lt_prog_compiler_static \
10457 lt_prog_compiler_no_builtin_flag \
10458 export_dynamic_flag_spec \
10459 thread_safe_flag_spec \
10460 whole_archive_flag_spec \
10461 enable_shared_with_static_runtimes \
10463 old_archive_from_new_cmds \
10468 compiler_lib_search_path \
10470 archive_expsym_cmds \
10472 postuninstall_cmds \
10473 old_archive_from_expsyms_cmds \
10474 allow_undefined_flag \
10475 no_undefined_flag \
10476 export_symbols_cmds \
10477 hardcode_libdir_flag_spec \
10478 hardcode_libdir_flag_spec_ld \
10479 hardcode_libdir_separator \
10480 hardcode_automatic \
10482 module_expsym_cmds \
10483 lt_cv_prog_compiler_c_o \
10485 include_expsyms; do
10488 old_archive_cmds | \
10489 old_archive_from_new_cmds | \
10491 archive_expsym_cmds | \
10493 module_expsym_cmds | \
10494 old_archive_from_expsyms_cmds | \
10495 export_symbols_cmds | \
10496 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10497 postinstall_cmds | postuninstall_cmds | \
10498 old_postinstall_cmds | old_postuninstall_cmds | \
10499 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10500 # Double-quote double-evaled strings.
10501 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10504 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10510 *'\$0 --fallback-echo"')
10511 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10515 cfgfile="${ofile}T"
10516 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10518 { echo "$as_me:$LINENO: creating $ofile" >&5
10519 echo "$as_me: creating $ofile" >&6;}
10521 cat <<__EOF__ >> "$cfgfile"
10524 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10525 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10526 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10528 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10529 # Free Software Foundation, Inc.
10531 # This file is part of GNU Libtool:
10532 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10534 # This program is free software; you can redistribute it and/or modify
10535 # it under the terms of the GNU General Public License as published by
10536 # the Free Software Foundation; either version 2 of the License, or
10537 # (at your option) any later version.
10539 # This program is distributed in the hope that it will be useful, but
10540 # WITHOUT ANY WARRANTY; without even the implied warranty of
10541 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10542 # General Public License for more details.
10544 # You should have received a copy of the GNU General Public License
10545 # along with this program; if not, write to the Free Software
10546 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10548 # As a special exception to the GNU General Public License, if you
10549 # distribute this file as part of a program that contains a
10550 # configuration script generated by Autoconf, you may include it under
10551 # the same distribution terms that you use for the rest of that program.
10553 # A sed program that does not truncate output.
10556 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10557 Xsed="$SED -e 1s/^X//"
10559 # The HP-UX ksh and POSIX shell print the target directory to stdout
10560 # if CDPATH is set.
10561 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10563 # The names of the tagged configurations supported by this script.
10566 # ### BEGIN LIBTOOL CONFIG
10568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10570 # Shell to use when invoking shell scripts.
10573 # Whether or not to build shared libraries.
10574 build_libtool_libs=$enable_shared
10576 # Whether or not to build static libraries.
10577 build_old_libs=$enable_static
10579 # Whether or not to add -lc for building shared libraries.
10580 build_libtool_need_lc=$archive_cmds_need_lc
10582 # Whether or not to disallow shared libs when runtime libs are static
10583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10585 # Whether or not to optimize for fast installation.
10586 fast_install=$enable_fast_install
10589 host_alias=$host_alias
10593 # The build system.
10594 build_alias=$build_alias
10598 # An echo program that does not interpret backslashes.
10603 AR_FLAGS=$lt_AR_FLAGS
10608 # A language-specific compiler.
10611 # Is the compiler the GNU C compiler?
10617 # The linker used to build libraries.
10620 # Whether we need hard or soft links.
10623 # A BSD-compatible nm program.
10626 # A symbol stripping program
10629 # Used to examine libraries when file_magic_cmd begins "file"
10630 MAGIC_CMD=$MAGIC_CMD
10632 # Used on cygwin: DLL creation program.
10635 # Used on cygwin: object dumper.
10638 # Used on cygwin: assembler.
10641 # The name of the directory that contains temporary libtool files.
10644 # How to create reloadable object files.
10645 reload_flag=$lt_reload_flag
10646 reload_cmds=$lt_reload_cmds
10648 # How to pass a linker flag through the compiler.
10649 wl=$lt_lt_prog_compiler_wl
10651 # Object file suffix (normally "o").
10652 objext="$ac_objext"
10654 # Old archive suffix (normally "a").
10657 # Shared library suffix (normally ".so").
10658 shrext_cmds='$shrext_cmds'
10660 # Executable file suffix (normally "").
10663 # Additional compiler flags for building library objects.
10664 pic_flag=$lt_lt_prog_compiler_pic
10667 # What is the maximum length of a command?
10668 max_cmd_len=$lt_cv_sys_max_cmd_len
10670 # Does compiler simultaneously support -c and -o options?
10671 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10673 # Must we lock files when doing compilation?
10674 need_locks=$lt_need_locks
10676 # Do we need the lib prefix for modules?
10677 need_lib_prefix=$need_lib_prefix
10679 # Do we need a version for libraries?
10680 need_version=$need_version
10682 # Whether dlopen is supported.
10683 dlopen_support=$enable_dlopen
10685 # Whether dlopen of programs is supported.
10686 dlopen_self=$enable_dlopen_self
10688 # Whether dlopen of statically linked programs is supported.
10689 dlopen_self_static=$enable_dlopen_self_static
10691 # Compiler flag to prevent dynamic linking.
10692 link_static_flag=$lt_lt_prog_compiler_static
10694 # Compiler flag to turn off builtin functions.
10695 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10697 # Compiler flag to allow reflexive dlopens.
10698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10700 # Compiler flag to generate shared objects directly from archives.
10701 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10703 # Compiler flag to generate thread-safe objects.
10704 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10706 # Library versioning type.
10707 version_type=$version_type
10709 # Format of library name prefix.
10710 libname_spec=$lt_libname_spec
10712 # List of archive names. First name is the real one, the rest are links.
10713 # The last name is the one that the linker finds with -lNAME.
10714 library_names_spec=$lt_library_names_spec
10716 # The coded name of the library, if different from the real name.
10717 soname_spec=$lt_soname_spec
10719 # Commands used to build and install an old-style archive.
10721 old_archive_cmds=$lt_old_archive_cmds
10722 old_postinstall_cmds=$lt_old_postinstall_cmds
10723 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10725 # Create an old-style archive from a shared archive.
10726 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10728 # Create a temporary old-style archive to link instead of a shared archive.
10729 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10731 # Commands used to build and install a shared archive.
10732 archive_cmds=$lt_archive_cmds
10733 archive_expsym_cmds=$lt_archive_expsym_cmds
10734 postinstall_cmds=$lt_postinstall_cmds
10735 postuninstall_cmds=$lt_postuninstall_cmds
10737 # Commands used to build a loadable module (assumed same as above if empty)
10738 module_cmds=$lt_module_cmds
10739 module_expsym_cmds=$lt_module_expsym_cmds
10741 # Commands to strip libraries.
10742 old_striplib=$lt_old_striplib
10743 striplib=$lt_striplib
10745 # Dependencies to place before the objects being linked to create a
10747 predep_objects=$lt_predep_objects
10749 # Dependencies to place after the objects being linked to create a
10751 postdep_objects=$lt_postdep_objects
10753 # Dependencies to place before the objects being linked to create a
10755 predeps=$lt_predeps
10757 # Dependencies to place after the objects being linked to create a
10759 postdeps=$lt_postdeps
10761 # The library search path used internally by the compiler when linking
10762 # a shared library.
10763 compiler_lib_search_path=$lt_compiler_lib_search_path
10765 # Method to check whether dependent libraries are shared objects.
10766 deplibs_check_method=$lt_deplibs_check_method
10768 # Command to use when deplibs_check_method == file_magic.
10769 file_magic_cmd=$lt_file_magic_cmd
10771 # Flag that allows shared libraries with undefined symbols to be built.
10772 allow_undefined_flag=$lt_allow_undefined_flag
10774 # Flag that forces no undefined symbols.
10775 no_undefined_flag=$lt_no_undefined_flag
10777 # Commands used to finish a libtool library installation in a directory.
10778 finish_cmds=$lt_finish_cmds
10780 # Same as above, but a single script fragment to be evaled but not shown.
10781 finish_eval=$lt_finish_eval
10783 # Take the output of nm and produce a listing of raw symbols and C names.
10784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10786 # Transform the output of nm in a proper C declaration
10787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10789 # Transform the output of nm in a C name address pair
10790 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10792 # This is the shared library runtime path variable.
10793 runpath_var=$runpath_var
10795 # This is the shared library path variable.
10796 shlibpath_var=$shlibpath_var
10798 # Is shlibpath searched before the hard-coded library search path?
10799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10801 # How to hardcode a shared library path into an executable.
10802 hardcode_action=$hardcode_action
10804 # Whether we should hardcode library paths into libraries.
10805 hardcode_into_libs=$hardcode_into_libs
10807 # Flag to hardcode \$libdir into a binary during linking.
10808 # This must work even if \$libdir does not exist.
10809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10811 # If ld is used when linking, flag to hardcode \$libdir into
10812 # a binary during linking. This must work even if \$libdir does
10814 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10816 # Whether we need a single -rpath flag with a separated argument.
10817 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10819 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10820 # resulting binary.
10821 hardcode_direct=$hardcode_direct
10823 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10824 # resulting binary.
10825 hardcode_minus_L=$hardcode_minus_L
10827 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10828 # the resulting binary.
10829 hardcode_shlibpath_var=$hardcode_shlibpath_var
10831 # Set to yes if building a shared library automatically hardcodes DIR into the library
10832 # and all subsequent libraries and executables linked against it.
10833 hardcode_automatic=$hardcode_automatic
10835 # Variables whose values should be saved in libtool wrapper scripts and
10836 # restored at relink time.
10837 variables_saved_for_relink="$variables_saved_for_relink"
10839 # Whether libtool must link a program against all its dependency libraries.
10840 link_all_deplibs=$link_all_deplibs
10842 # Compile-time system search path for libraries
10843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10845 # Run-time system search path for libraries
10846 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10848 # Fix the shell variable \$srcfile for the compiler.
10849 fix_srcfile_path="$fix_srcfile_path"
10851 # Set to yes if exported symbols are required.
10852 always_export_symbols=$always_export_symbols
10854 # The commands to list exported symbols.
10855 export_symbols_cmds=$lt_export_symbols_cmds
10857 # The commands to extract the exported symbol list from a shared archive.
10858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10860 # Symbols that should not be listed in the preloaded symbols.
10861 exclude_expsyms=$lt_exclude_expsyms
10863 # Symbols that must always be exported.
10864 include_expsyms=$lt_include_expsyms
10866 # ### END LIBTOOL CONFIG
10873 cat <<\EOF >> "$cfgfile"
10875 # AIX sometimes has problems with the GCC collect2 program. For some
10876 # reason, if we set the COLLECT_NAMES environment variable, the problems
10877 # vanish in a puff of smoke.
10878 if test "X${COLLECT_NAMES+set}" != Xset; then
10880 export COLLECT_NAMES
10886 # We use sed instead of cat because bash on DJGPP gets confused if
10887 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10888 # text mode, it properly converts lines to CR/LF. This bash problem
10889 # is reportedly fixed, but why not run on old versions too?
10890 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10892 mv -f "$cfgfile" "$ofile" || \
10893 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10897 # If there is no Makefile yet, we rely on a make rule to execute
10898 # `config.status --recheck' to rerun these tests and create the
10899 # libtool script then.
10900 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10901 if test -f "$ltmain_in"; then
10902 test -f Makefile && make "$ltmain"
10908 ac_cpp='$CPP $CPPFLAGS'
10909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10916 # Check whether --with-tags or --without-tags was given.
10917 if test "${with_tags+set}" = set; then
10918 withval="$with_tags"
10919 tagnames="$withval"
10922 if test -f "$ltmain" && test -n "$tagnames"; then
10923 if test ! -f "${ofile}"; then
10924 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10925 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10928 if test -z "$LTCC"; then
10929 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10930 if test -z "$LTCC"; then
10931 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10932 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10935 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10939 # Extract list of available tagged configurations in $ofile.
10940 # Note that this assumes the entire list is on one line.
10941 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10944 for tagname in $tagnames; do
10946 # Check whether tagname contains only valid characters
10947 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10949 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10950 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10951 { (exit 1); exit 1; }; }
10955 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10957 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10958 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10959 { (exit 1); exit 1; }; }
10962 # Update the list of available tags.
10963 if test -n "$tagname"; then
10964 echo appending configuration tag \"$tagname\" to $ofile
10968 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10969 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10970 (test "X$CXX" != "Xg++"))) ; then
10978 if test -n "$F77" && test "X$F77" != "Xno"; then
10986 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10997 # Source file extension for RC test sources.
11000 # Object file extension for compiled RC test sources.
11004 # Code to be used in simple compile tests
11005 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11007 # Code to be used in simple link tests
11008 lt_simple_link_test_code="$lt_simple_compile_test_code"
11010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11012 # If no C compiler was specified, use CC.
11015 # Allow CC to be a program name with arguments.
11019 # save warnings/boilerplate of simple test code
11020 ac_outfile=conftest.$ac_objext
11021 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11023 _lt_compiler_boilerplate=`cat conftest.err`
11026 ac_outfile=conftest.$ac_objext
11027 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11029 _lt_linker_boilerplate=`cat conftest.err`
11033 # Allow CC to be a program name with arguments.
11038 for cc_temp in $compiler""; do
11040 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11041 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11046 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11048 lt_cv_prog_compiler_c_o_RC=yes
11050 # The else clause should only fire when bootstrapping the
11051 # libtool distribution, otherwise you forgot to ship ltmain.sh
11052 # with your package, and you will get complaints that there are
11053 # no rules to generate ltmain.sh.
11054 if test -f "$ltmain"; then
11055 # See if we are running on zsh, and set the options which allow our commands through
11056 # without removal of \ escapes.
11057 if test -n "${ZSH_VERSION+set}" ; then
11058 setopt NO_GLOB_SUBST
11060 # Now quote all the things that may contain metacharacters while being
11061 # careful not to overquote the AC_SUBSTed values. We take copies of the
11062 # variables and quote the copies for generation of the libtool script.
11063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11067 deplibs_check_method reload_flag reload_cmds need_locks \
11068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11069 lt_cv_sys_global_symbol_to_c_name_address \
11070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11071 old_postinstall_cmds old_postuninstall_cmds \
11075 lt_prog_compiler_wl_RC \
11076 lt_prog_compiler_pic_RC \
11077 lt_prog_compiler_static_RC \
11078 lt_prog_compiler_no_builtin_flag_RC \
11079 export_dynamic_flag_spec_RC \
11080 thread_safe_flag_spec_RC \
11081 whole_archive_flag_spec_RC \
11082 enable_shared_with_static_runtimes_RC \
11083 old_archive_cmds_RC \
11084 old_archive_from_new_cmds_RC \
11085 predep_objects_RC \
11086 postdep_objects_RC \
11089 compiler_lib_search_path_RC \
11091 archive_expsym_cmds_RC \
11092 postinstall_cmds_RC \
11093 postuninstall_cmds_RC \
11094 old_archive_from_expsyms_cmds_RC \
11095 allow_undefined_flag_RC \
11096 no_undefined_flag_RC \
11097 export_symbols_cmds_RC \
11098 hardcode_libdir_flag_spec_RC \
11099 hardcode_libdir_flag_spec_ld_RC \
11100 hardcode_libdir_separator_RC \
11101 hardcode_automatic_RC \
11103 module_expsym_cmds_RC \
11104 lt_cv_prog_compiler_c_o_RC \
11105 exclude_expsyms_RC \
11106 include_expsyms_RC; do
11109 old_archive_cmds_RC | \
11110 old_archive_from_new_cmds_RC | \
11111 archive_cmds_RC | \
11112 archive_expsym_cmds_RC | \
11114 module_expsym_cmds_RC | \
11115 old_archive_from_expsyms_cmds_RC | \
11116 export_symbols_cmds_RC | \
11117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11118 postinstall_cmds | postuninstall_cmds | \
11119 old_postinstall_cmds | old_postuninstall_cmds | \
11120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11121 # Double-quote double-evaled strings.
11122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11131 *'\$0 --fallback-echo"')
11132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11138 cat <<__EOF__ >> "$cfgfile"
11139 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11143 # Shell to use when invoking shell scripts.
11146 # Whether or not to build shared libraries.
11147 build_libtool_libs=$enable_shared
11149 # Whether or not to build static libraries.
11150 build_old_libs=$enable_static
11152 # Whether or not to add -lc for building shared libraries.
11153 build_libtool_need_lc=$archive_cmds_need_lc_RC
11155 # Whether or not to disallow shared libs when runtime libs are static
11156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11158 # Whether or not to optimize for fast installation.
11159 fast_install=$enable_fast_install
11162 host_alias=$host_alias
11166 # The build system.
11167 build_alias=$build_alias
11171 # An echo program that does not interpret backslashes.
11176 AR_FLAGS=$lt_AR_FLAGS
11181 # A language-specific compiler.
11184 # Is the compiler the GNU C compiler?
11190 # The linker used to build libraries.
11193 # Whether we need hard or soft links.
11196 # A BSD-compatible nm program.
11199 # A symbol stripping program
11202 # Used to examine libraries when file_magic_cmd begins "file"
11203 MAGIC_CMD=$MAGIC_CMD
11205 # Used on cygwin: DLL creation program.
11208 # Used on cygwin: object dumper.
11211 # Used on cygwin: assembler.
11214 # The name of the directory that contains temporary libtool files.
11217 # How to create reloadable object files.
11218 reload_flag=$lt_reload_flag
11219 reload_cmds=$lt_reload_cmds
11221 # How to pass a linker flag through the compiler.
11222 wl=$lt_lt_prog_compiler_wl_RC
11224 # Object file suffix (normally "o").
11225 objext="$ac_objext"
11227 # Old archive suffix (normally "a").
11230 # Shared library suffix (normally ".so").
11231 shrext_cmds='$shrext_cmds'
11233 # Executable file suffix (normally "").
11236 # Additional compiler flags for building library objects.
11237 pic_flag=$lt_lt_prog_compiler_pic_RC
11240 # What is the maximum length of a command?
11241 max_cmd_len=$lt_cv_sys_max_cmd_len
11243 # Does compiler simultaneously support -c and -o options?
11244 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11246 # Must we lock files when doing compilation?
11247 need_locks=$lt_need_locks
11249 # Do we need the lib prefix for modules?
11250 need_lib_prefix=$need_lib_prefix
11252 # Do we need a version for libraries?
11253 need_version=$need_version
11255 # Whether dlopen is supported.
11256 dlopen_support=$enable_dlopen
11258 # Whether dlopen of programs is supported.
11259 dlopen_self=$enable_dlopen_self
11261 # Whether dlopen of statically linked programs is supported.
11262 dlopen_self_static=$enable_dlopen_self_static
11264 # Compiler flag to prevent dynamic linking.
11265 link_static_flag=$lt_lt_prog_compiler_static_RC
11267 # Compiler flag to turn off builtin functions.
11268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11270 # Compiler flag to allow reflexive dlopens.
11271 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11273 # Compiler flag to generate shared objects directly from archives.
11274 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11276 # Compiler flag to generate thread-safe objects.
11277 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11279 # Library versioning type.
11280 version_type=$version_type
11282 # Format of library name prefix.
11283 libname_spec=$lt_libname_spec
11285 # List of archive names. First name is the real one, the rest are links.
11286 # The last name is the one that the linker finds with -lNAME.
11287 library_names_spec=$lt_library_names_spec
11289 # The coded name of the library, if different from the real name.
11290 soname_spec=$lt_soname_spec
11292 # Commands used to build and install an old-style archive.
11294 old_archive_cmds=$lt_old_archive_cmds_RC
11295 old_postinstall_cmds=$lt_old_postinstall_cmds
11296 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11298 # Create an old-style archive from a shared archive.
11299 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11301 # Create a temporary old-style archive to link instead of a shared archive.
11302 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11304 # Commands used to build and install a shared archive.
11305 archive_cmds=$lt_archive_cmds_RC
11306 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11307 postinstall_cmds=$lt_postinstall_cmds
11308 postuninstall_cmds=$lt_postuninstall_cmds
11310 # Commands used to build a loadable module (assumed same as above if empty)
11311 module_cmds=$lt_module_cmds_RC
11312 module_expsym_cmds=$lt_module_expsym_cmds_RC
11314 # Commands to strip libraries.
11315 old_striplib=$lt_old_striplib
11316 striplib=$lt_striplib
11318 # Dependencies to place before the objects being linked to create a
11320 predep_objects=$lt_predep_objects_RC
11322 # Dependencies to place after the objects being linked to create a
11324 postdep_objects=$lt_postdep_objects_RC
11326 # Dependencies to place before the objects being linked to create a
11328 predeps=$lt_predeps_RC
11330 # Dependencies to place after the objects being linked to create a
11332 postdeps=$lt_postdeps_RC
11334 # The library search path used internally by the compiler when linking
11335 # a shared library.
11336 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11338 # Method to check whether dependent libraries are shared objects.
11339 deplibs_check_method=$lt_deplibs_check_method
11341 # Command to use when deplibs_check_method == file_magic.
11342 file_magic_cmd=$lt_file_magic_cmd
11344 # Flag that allows shared libraries with undefined symbols to be built.
11345 allow_undefined_flag=$lt_allow_undefined_flag_RC
11347 # Flag that forces no undefined symbols.
11348 no_undefined_flag=$lt_no_undefined_flag_RC
11350 # Commands used to finish a libtool library installation in a directory.
11351 finish_cmds=$lt_finish_cmds
11353 # Same as above, but a single script fragment to be evaled but not shown.
11354 finish_eval=$lt_finish_eval
11356 # Take the output of nm and produce a listing of raw symbols and C names.
11357 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11359 # Transform the output of nm in a proper C declaration
11360 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11362 # Transform the output of nm in a C name address pair
11363 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11365 # This is the shared library runtime path variable.
11366 runpath_var=$runpath_var
11368 # This is the shared library path variable.
11369 shlibpath_var=$shlibpath_var
11371 # Is shlibpath searched before the hard-coded library search path?
11372 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11374 # How to hardcode a shared library path into an executable.
11375 hardcode_action=$hardcode_action_RC
11377 # Whether we should hardcode library paths into libraries.
11378 hardcode_into_libs=$hardcode_into_libs
11380 # Flag to hardcode \$libdir into a binary during linking.
11381 # This must work even if \$libdir does not exist.
11382 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11384 # If ld is used when linking, flag to hardcode \$libdir into
11385 # a binary during linking. This must work even if \$libdir does
11387 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11389 # Whether we need a single -rpath flag with a separated argument.
11390 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11392 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11393 # resulting binary.
11394 hardcode_direct=$hardcode_direct_RC
11396 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11397 # resulting binary.
11398 hardcode_minus_L=$hardcode_minus_L_RC
11400 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11401 # the resulting binary.
11402 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11404 # Set to yes if building a shared library automatically hardcodes DIR into the library
11405 # and all subsequent libraries and executables linked against it.
11406 hardcode_automatic=$hardcode_automatic_RC
11408 # Variables whose values should be saved in libtool wrapper scripts and
11409 # restored at relink time.
11410 variables_saved_for_relink="$variables_saved_for_relink"
11412 # Whether libtool must link a program against all its dependency libraries.
11413 link_all_deplibs=$link_all_deplibs_RC
11415 # Compile-time system search path for libraries
11416 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11418 # Run-time system search path for libraries
11419 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11421 # Fix the shell variable \$srcfile for the compiler.
11422 fix_srcfile_path="$fix_srcfile_path_RC"
11424 # Set to yes if exported symbols are required.
11425 always_export_symbols=$always_export_symbols_RC
11427 # The commands to list exported symbols.
11428 export_symbols_cmds=$lt_export_symbols_cmds_RC
11430 # The commands to extract the exported symbol list from a shared archive.
11431 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11433 # Symbols that should not be listed in the preloaded symbols.
11434 exclude_expsyms=$lt_exclude_expsyms_RC
11436 # Symbols that must always be exported.
11437 include_expsyms=$lt_include_expsyms_RC
11439 # ### END LIBTOOL TAG CONFIG: $tagname
11445 # If there is no Makefile yet, we rely on a make rule to execute
11446 # `config.status --recheck' to rerun these tests and create the
11447 # libtool script then.
11448 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11449 if test -f "$ltmain_in"; then
11450 test -f Makefile && make "$ltmain"
11456 ac_cpp='$CPP $CPPFLAGS'
11457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11466 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11467 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11468 { (exit 1); exit 1; }; }
11472 # Append the new tag name to the list of available tags.
11473 if test -n "$tagname" ; then
11474 available_tags="$available_tags $tagname"
11480 # Now substitute the updated list of available tags.
11481 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11482 mv "${ofile}T" "$ofile"
11486 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11487 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11488 { (exit 1); exit 1; }; }
11494 # This can be used to rebuild libtool when needed
11495 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11497 # Always use our own libtool.
11498 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11500 # Prevent multiple expansion
11512 if test $ol_enable_perl != no ; then
11513 # Extract the first word of "perl", so it can be a program name with args.
11514 set dummy perl; ac_word=$2
11515 echo "$as_me:$LINENO: checking for $ac_word" >&5
11516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11517 if test "${ac_cv_path_PERLBIN+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11539 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11543 PERLBIN=$ac_cv_path_PERLBIN
11545 if test -n "$PERLBIN"; then
11546 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11547 echo "${ECHO_T}$PERLBIN" >&6
11549 echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6
11554 if test "no$PERLBIN" = "no" ; then
11555 if test $ol_enable_perl = yes ; then
11556 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11557 echo "$as_me: error: could not locate perl" >&2;}
11558 { (exit 1); exit 1; }; }
11562 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11563 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11565 if test x"$ol_enable_perl" = "xyes" ; then
11566 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11568 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11575 ac_cpp='$CPP $CPPFLAGS'
11576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11579 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11580 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11581 # On Suns, sometimes $CPP names a directory.
11582 if test -n "$CPP" && test -d "$CPP"; then
11585 if test -z "$CPP"; then
11586 if test "${ac_cv_prog_CPP+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 # Double quotes because CPP needs to be expanded
11590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11592 ac_preproc_ok=false
11593 for ac_c_preproc_warn_flag in '' yes
11595 # Use a header file that comes with gcc, so configuring glibc
11596 # with a fresh cross-compiler works.
11597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11598 # <limits.h> exists even on freestanding compilers.
11599 # On the NeXT, cc -E runs the code through the compiler's parser,
11600 # not just through cpp. "Syntax error" is here to catch this case.
11601 cat >conftest.$ac_ext <<_ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11608 # include <limits.h>
11610 # include <assert.h>
11614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11617 grep -v '^ *+' conftest.er1 >conftest.err
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } >/dev/null; then
11622 if test -s conftest.err; then
11623 ac_cpp_err=$ac_c_preproc_warn_flag
11624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11631 if test -z "$ac_cpp_err"; then
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 # Broken: fails on valid input.
11640 rm -f conftest.err conftest.$ac_ext
11642 # OK, works on sane cases. Now check whether non-existent headers
11643 # can be detected and how.
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 #include <ac_nonexistent.h>
11652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } >/dev/null; then
11660 if test -s conftest.err; then
11661 ac_cpp_err=$ac_c_preproc_warn_flag
11662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11669 if test -z "$ac_cpp_err"; then
11670 # Broken: success on invalid input.
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 # Passes both tests.
11680 rm -f conftest.err conftest.$ac_ext
11683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11684 rm -f conftest.err conftest.$ac_ext
11685 if $ac_preproc_ok; then
11690 ac_cv_prog_CPP=$CPP
11693 CPP=$ac_cv_prog_CPP
11695 ac_cv_prog_CPP=$CPP
11697 echo "$as_me:$LINENO: result: $CPP" >&5
11698 echo "${ECHO_T}$CPP" >&6
11699 ac_preproc_ok=false
11700 for ac_c_preproc_warn_flag in '' yes
11702 # Use a header file that comes with gcc, so configuring glibc
11703 # with a fresh cross-compiler works.
11704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11705 # <limits.h> exists even on freestanding compilers.
11706 # On the NeXT, cc -E runs the code through the compiler's parser,
11707 # not just through cpp. "Syntax error" is here to catch this case.
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11715 # include <limits.h>
11717 # include <assert.h>
11721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } >/dev/null; then
11729 if test -s conftest.err; then
11730 ac_cpp_err=$ac_c_preproc_warn_flag
11731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11738 if test -z "$ac_cpp_err"; then
11741 echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11744 # Broken: fails on valid input.
11747 rm -f conftest.err conftest.$ac_ext
11749 # OK, works on sane cases. Now check whether non-existent headers
11750 # can be detected and how.
11751 cat >conftest.$ac_ext <<_ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h. */
11757 #include <ac_nonexistent.h>
11759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11762 grep -v '^ *+' conftest.er1 >conftest.err
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } >/dev/null; then
11767 if test -s conftest.err; then
11768 ac_cpp_err=$ac_c_preproc_warn_flag
11769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11776 if test -z "$ac_cpp_err"; then
11777 # Broken: success on invalid input.
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 # Passes both tests.
11787 rm -f conftest.err conftest.$ac_ext
11790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11791 rm -f conftest.err conftest.$ac_ext
11792 if $ac_preproc_ok; then
11795 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11796 See \`config.log' for more details." >&5
11797 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11798 See \`config.log' for more details." >&2;}
11799 { (exit 1); exit 1; }; }
11803 ac_cpp='$CPP $CPPFLAGS'
11804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11810 *mingw32* ) ac_cv_mingw32=yes ;;
11811 *cygwin* ) ac_cv_cygwin=yes ;;
11817 cat >>confdefs.h <<_ACEOF
11818 #define EXEEXT "${EXEEXT}"
11822 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11823 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11824 if test "${ac_cv_lib_be_be_app+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 ac_check_lib_save_LIBS=$LIBS
11828 LIBS="-lbe -lroot -lnet $LIBS"
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11836 /* Override any gcc2 internal prototype to avoid an error. */
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_cv_lib_be_be_app=yes
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_lib_be_be_app=no
11880 rm -f conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11885 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11886 if test $ac_cv_lib_be_be_app = yes; then
11887 LIBS="$LIBS -lbe -lroot -lnet"
11894 ac_cpp='$CPP $CPPFLAGS'
11895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11898 if test -n "$ac_tool_prefix"; then
11899 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11900 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11901 echo "$as_me:$LINENO: checking for $ac_word" >&5
11902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11903 if test "${ac_cv_prog_CC+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11906 if test -n "$CC"; then
11907 ac_cv_prog_CC="$CC" # Let the user override the test.
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 if test -n "$CC"; then
11927 echo "$as_me:$LINENO: result: $CC" >&5
11928 echo "${ECHO_T}$CC" >&6
11930 echo "$as_me:$LINENO: result: no" >&5
11931 echo "${ECHO_T}no" >&6
11935 if test -z "$ac_cv_prog_CC"; then
11937 # Extract the first word of "gcc", so it can be a program name with args.
11938 set dummy gcc; ac_word=$2
11939 echo "$as_me:$LINENO: checking for $ac_word" >&5
11940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 if test -n "$ac_ct_CC"; then
11945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11954 ac_cv_prog_ac_ct_CC="gcc"
11955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11964 if test -n "$ac_ct_CC"; then
11965 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11966 echo "${ECHO_T}$ac_ct_CC" >&6
11968 echo "$as_me:$LINENO: result: no" >&5
11969 echo "${ECHO_T}no" >&6
11974 CC="$ac_cv_prog_CC"
11977 if test -z "$CC"; then
11978 if test -n "$ac_tool_prefix"; then
11979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11980 set dummy ${ac_tool_prefix}cc; ac_word=$2
11981 echo "$as_me:$LINENO: checking for $ac_word" >&5
11982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11983 if test "${ac_cv_prog_CC+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 if test -n "$CC"; then
11987 ac_cv_prog_CC="$CC" # Let the user override the test.
11989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11990 for as_dir in $PATH
11993 test -z "$as_dir" && as_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11996 ac_cv_prog_CC="${ac_tool_prefix}cc"
11997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 if test -n "$CC"; then
12007 echo "$as_me:$LINENO: result: $CC" >&5
12008 echo "${ECHO_T}$CC" >&6
12010 echo "$as_me:$LINENO: result: no" >&5
12011 echo "${ECHO_T}no" >&6
12015 if test -z "$ac_cv_prog_CC"; then
12017 # Extract the first word of "cc", so it can be a program name with args.
12018 set dummy cc; ac_word=$2
12019 echo "$as_me:$LINENO: checking for $ac_word" >&5
12020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 if test -n "$ac_ct_CC"; then
12025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_prog_ac_ct_CC="cc"
12035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12044 if test -n "$ac_ct_CC"; then
12045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12046 echo "${ECHO_T}$ac_ct_CC" >&6
12048 echo "$as_me:$LINENO: result: no" >&5
12049 echo "${ECHO_T}no" >&6
12054 CC="$ac_cv_prog_CC"
12058 if test -z "$CC"; then
12059 # Extract the first word of "cc", so it can be a program name with args.
12060 set dummy cc; ac_word=$2
12061 echo "$as_me:$LINENO: checking for $ac_word" >&5
12062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12063 if test "${ac_cv_prog_CC+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 if test -n "$CC"; then
12067 ac_cv_prog_CC="$CC" # Let the user override the test.
12069 ac_prog_rejected=no
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12078 ac_prog_rejected=yes
12082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 if test $ac_prog_rejected = yes; then
12089 # We found a bogon in the path, so make sure we never use it.
12090 set dummy $ac_cv_prog_CC
12092 if test $# != 0; then
12093 # We chose a different compiler from the bogus one.
12094 # However, it has the same basename, so the bogon will be chosen
12095 # first if we set CC to just the basename; use the full file name.
12097 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12103 if test -n "$CC"; then
12104 echo "$as_me:$LINENO: result: $CC" >&5
12105 echo "${ECHO_T}$CC" >&6
12107 echo "$as_me:$LINENO: result: no" >&5
12108 echo "${ECHO_T}no" >&6
12112 if test -z "$CC"; then
12113 if test -n "$ac_tool_prefix"; then
12116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12118 echo "$as_me:$LINENO: checking for $ac_word" >&5
12119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12120 if test "${ac_cv_prog_CC+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 if test -n "$CC"; then
12124 ac_cv_prog_CC="$CC" # Let the user override the test.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 if test -n "$CC"; then
12144 echo "$as_me:$LINENO: result: $CC" >&5
12145 echo "${ECHO_T}$CC" >&6
12147 echo "$as_me:$LINENO: result: no" >&5
12148 echo "${ECHO_T}no" >&6
12151 test -n "$CC" && break
12154 if test -z "$CC"; then
12158 # Extract the first word of "$ac_prog", so it can be a program name with args.
12159 set dummy $ac_prog; ac_word=$2
12160 echo "$as_me:$LINENO: checking for $ac_word" >&5
12161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 if test -n "$ac_ct_CC"; then
12166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_prog_ac_ct_CC="$ac_prog"
12176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12185 if test -n "$ac_ct_CC"; then
12186 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12187 echo "${ECHO_T}$ac_ct_CC" >&6
12189 echo "$as_me:$LINENO: result: no" >&5
12190 echo "${ECHO_T}no" >&6
12193 test -n "$ac_ct_CC" && break
12202 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12203 See \`config.log' for more details." >&5
12204 echo "$as_me: error: no acceptable C compiler found in \$PATH
12205 See \`config.log' for more details." >&2;}
12206 { (exit 1); exit 1; }; }
12208 # Provide some information about the compiler.
12209 echo "$as_me:$LINENO:" \
12210 "checking for C compiler version" >&5
12211 ac_compiler=`set X $ac_compile; echo $2`
12212 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12213 (eval $ac_compiler --version </dev/null >&5) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }
12217 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12218 (eval $ac_compiler -v </dev/null >&5) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }
12222 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12223 (eval $ac_compiler -V </dev/null >&5) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }
12228 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12229 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12230 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>conftest.er1
12255 grep -v '^ *+' conftest.er1 >conftest.err
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_compiler_gnu=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12281 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12284 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12285 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12286 GCC=`test $ac_compiler_gnu = yes && echo yes`
12287 ac_test_CFLAGS=${CFLAGS+set}
12288 ac_save_CFLAGS=$CFLAGS
12290 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12291 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12292 if test "${ac_cv_prog_cc_g+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -z "$ac_c_werror_flag"
12320 || test ! -s conftest.err'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; } &&
12326 { ac_try='test -s conftest.$ac_objext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_prog_cc_g=yes
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12342 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12343 if test "$ac_test_CFLAGS" = set; then
12344 CFLAGS=$ac_save_CFLAGS
12345 elif test $ac_cv_prog_cc_g = yes; then
12346 if test "$GCC" = yes; then
12352 if test "$GCC" = yes; then
12358 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12359 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12360 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 ac_cv_prog_cc_stdc=no
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #include <stdarg.h>
12373 #include <sys/types.h>
12374 #include <sys/stat.h>
12375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12376 struct buf { int x; };
12377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12378 static char *e (p, i)
12384 static char *f (char * (*g) (char **, int), char **p, ...)
12389 s = g (p, va_arg (v,int));
12394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12395 function prototypes and stuff, but not '\xHH' hex character constants.
12396 These don't provoke an error unfortunately, instead are silently treated
12397 as 'x'. The following induces an error, until -std1 is added to get
12398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12399 array size at least. It's necessary to write '\x00'==0 to get something
12400 that's true only with -std1. */
12401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12403 int test (int i, double x);
12404 struct s1 {int (*f) (int a);};
12405 struct s2 {int (*f) (double a);};
12406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12417 # Don't try gcc -ansi; that turns off useful extensions and
12418 # breaks some systems' header files.
12419 # AIX -qlanglvl=ansi
12420 # Ultrix and OSF/1 -std1
12421 # HP-UX 10.20 and later -Ae
12422 # HP-UX older versions -Aa -D_HPUX_SOURCE
12423 # SVR4 -Xc -D__EXTENSIONS__
12424 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12426 CC="$ac_save_CC $ac_arg"
12427 rm -f conftest.$ac_objext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429 (eval $ac_compile) 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest.$ac_objext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_prog_cc_stdc=$ac_arg
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12456 rm -f conftest.err conftest.$ac_objext
12458 rm -f conftest.$ac_ext conftest.$ac_objext
12463 case "x$ac_cv_prog_cc_stdc" in
12465 echo "$as_me:$LINENO: result: none needed" >&5
12466 echo "${ECHO_T}none needed" >&6 ;;
12468 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12469 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12470 CC="$CC $ac_cv_prog_cc_stdc" ;;
12473 # Some people use a C++ compiler to compile C. Since we use `exit',
12474 # in C++ we need to declare it. In case someone uses the same compiler
12475 # for both compiling C and C++ we need to have the C++ compiler decide
12476 # the declaration of exit, since it's the most demanding environment.
12477 cat >conftest.$ac_ext <<_ACEOF
12478 #ifndef __cplusplus
12482 rm -f conftest.$ac_objext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>conftest.er1
12486 grep -v '^ *+' conftest.er1 >conftest.err
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_c_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 for ac_declaration in \
12506 'extern "C" void std::exit (int) throw (); using std::exit;' \
12507 'extern "C" void std::exit (int); using std::exit;' \
12508 'extern "C" void exit (int) throw ();' \
12509 'extern "C" void exit (int);' \
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 #include <stdlib.h>
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530 (eval $ac_compile) 2>conftest.er1
12532 grep -v '^ *+' conftest.er1 >conftest.err
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -z "$ac_c_werror_flag"
12538 || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12573 rm -f conftest.$ac_objext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>conftest.er1
12577 grep -v '^ *+' conftest.er1 >conftest.err
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -z "$ac_c_werror_flag"
12583 || test ! -s conftest.err'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest.$ac_objext'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12604 if test -n "$ac_declaration"; then
12605 echo '#ifdef __cplusplus' >>confdefs.h
12606 echo $ac_declaration >>confdefs.h
12607 echo '#endif' >>confdefs.h
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12617 ac_cpp='$CPP $CPPFLAGS'
12618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12622 depcc="$CC" am_compiler_list=
12624 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12625 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12626 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12630 # We make a subdir and do the tests there. Otherwise we can end up
12631 # making bogus files that we don't know about and never remove. For
12632 # instance it was reported that on HP-UX the gcc test will end up
12633 # making a dummy file named `D' -- because `-MD' means `put the output
12636 # Copy depcomp to subdir because otherwise we won't find it if we're
12637 # using a relative directory.
12638 cp "$am_depcomp" conftest.dir
12640 # We will build objects and dependencies in a subdirectory because
12641 # it helps to detect inapplicable dependency modes. For instance
12642 # both Tru64's cc and ICC support -MD to output dependencies as a
12643 # side effect of compilation, but ICC will put the dependencies in
12644 # the current directory while Tru64 will put them in the object
12648 am_cv_CC_dependencies_compiler_type=none
12649 if test "$am_compiler_list" = ""; then
12650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12652 for depmode in $am_compiler_list; do
12653 # Setup a source with many dependencies, because some compilers
12654 # like to wrap large dependency lists on column 80 (with \), and
12655 # we should not choose a depcomp mode which is confused by this.
12657 # We need to recreate these files for each test, as the compiler may
12658 # overwrite some of them when testing with obscure command lines.
12659 # This happens at least with the AIX C compiler.
12661 for i in 1 2 3 4 5 6; do
12662 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12663 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12664 # Solaris 8's {/usr,}/bin/sh.
12665 touch sub/conftst$i.h
12667 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12671 # after this tag, mechanisms are not by side-effect, so they'll
12672 # only be used when explicitly requested
12673 if test "x$enable_dependency_tracking" = xyes; then
12681 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12682 # mode. It turns out that the SunPro C++ compiler does not properly
12683 # handle `-M -o', and we need to detect this.
12684 if depmode=$depmode \
12685 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12687 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12688 >/dev/null 2>conftest.err &&
12689 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12690 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12691 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12692 # icc doesn't choke on unknown options, it will just issue warnings
12693 # or remarks (even with -Werror). So we grep stderr for any message
12694 # that says an option was ignored or not supported.
12695 # When given -MP, icc 7.0 and 7.1 complain thusly:
12696 # icc: Command line warning: ignoring option '-M'; no argument required
12697 # The diagnosis changed in icc 8.0:
12698 # icc: Command line remark: option '-MP' not supported
12699 if (grep 'ignoring option' conftest.err ||
12700 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12701 am_cv_CC_dependencies_compiler_type=$depmode
12708 rm -rf conftest.dir
12710 am_cv_CC_dependencies_compiler_type=none
12714 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12715 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12716 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12721 test "x$enable_dependency_tracking" != xno \
12722 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12723 am__fastdepCC_TRUE=
12724 am__fastdepCC_FALSE='#'
12726 am__fastdepCC_TRUE='#'
12727 am__fastdepCC_FALSE=
12731 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12732 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12733 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12734 { (exit 1); exit 1; }; }
12737 # test for make depend flag
12740 if test -z "${MKDEP}"; then
12741 OL_MKDEP="${CC-cc}"
12742 if test -z "${MKDEP_FLAGS}"; then
12743 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12744 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12745 if test "${ol_cv_mkdep+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 for flag in "-M" "-xM"; do
12751 cat > conftest.c <<EOF
12754 if { ac_try='$OL_MKDEP $flag conftest.c'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } \
12760 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12762 if test ! -f conftest."${ac_object}" ; then
12764 OL_MKDEP_FLAGS="$flag"
12772 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12773 echo "${ECHO_T}$ol_cv_mkdep" >&6
12776 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12780 OL_MKDEP="${MKDEP}"
12781 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12786 if test "${ol_cv_mkdep}" = no ; then
12787 # this will soon become an error
12788 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12789 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12792 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12793 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12794 if test "${ac_cv_lib_s_afopen+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 ac_check_lib_save_LIBS=$LIBS
12799 cat >conftest.$ac_ext <<_ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12806 /* Override any gcc2 internal prototype to avoid an error. */
12810 /* We use char because int might match the return type of a gcc2
12811 builtin and then its argument prototype would still apply. */
12821 rm -f conftest.$ac_objext conftest$ac_exeext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823 (eval $ac_link) 2>conftest.er1
12825 grep -v '^ *+' conftest.er1 >conftest.err
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest$ac_exeext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_cv_lib_s_afopen=yes
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ac_cv_lib_s_afopen=no
12850 rm -f conftest.err conftest.$ac_objext \
12851 conftest$ac_exeext conftest.$ac_ext
12852 LIBS=$ac_check_lib_save_LIBS
12854 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12855 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12856 if test $ac_cv_lib_s_afopen = yes; then
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_AIX_SECURITY 1
12870 ac_cv_func_getopt=no
12872 cat >>confdefs.h <<\_ACEOF
12873 #define BOTH_STRINGS_H 1
12880 WITH_MODULES_ENABLED=no
12881 if test $ol_enable_modules != no ; then
12883 for ac_header in ltdl.h
12885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12887 echo "$as_me:$LINENO: checking for $ac_header" >&5
12888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12895 # Is the header compilable?
12896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12898 cat >conftest.$ac_ext <<_ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 $ac_includes_default
12905 #include <$ac_header>
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>conftest.er1
12911 grep -v '^ *+' conftest.er1 >conftest.err
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest.$ac_objext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_header_compiler=yes
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_header_compiler=no
12936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12938 echo "${ECHO_T}$ac_header_compiler" >&6
12940 # Is the header present?
12941 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 #include <$ac_header>
12951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12954 grep -v '^ *+' conftest.er1 >conftest.err
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } >/dev/null; then
12959 if test -s conftest.err; then
12960 ac_cpp_err=$ac_c_preproc_warn_flag
12961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12968 if test -z "$ac_cpp_err"; then
12969 ac_header_preproc=yes
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 ac_header_preproc=no
12976 rm -f conftest.err conftest.$ac_ext
12977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12978 echo "${ECHO_T}$ac_header_preproc" >&6
12980 # So? What about this header?
12981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12987 ac_header_preproc=yes
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13004 ## --------------------------------------------- ##
13005 ## Report this to <http://www.openldap.org/its/> ##
13006 ## --------------------------------------------- ##
13009 sed "s/^/$as_me: WARNING: /" >&2
13012 echo "$as_me:$LINENO: checking for $ac_header" >&5
13013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 eval "$as_ac_Header=\$ac_header_preproc"
13019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13024 cat >>confdefs.h <<_ACEOF
13025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13033 if test $ac_cv_header_ltdl_h = no ; then
13034 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13035 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13036 { (exit 1); exit 1; }; }
13039 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13040 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13041 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 ac_check_lib_save_LIBS=$LIBS
13045 LIBS="-lltdl $LIBS"
13046 cat >conftest.$ac_ext <<_ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13053 /* Override any gcc2 internal prototype to avoid an error. */
13057 /* We use char because int might match the return type of a gcc2
13058 builtin and then its argument prototype would still apply. */
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13070 (eval $ac_link) 2>conftest.er1
13072 grep -v '^ *+' conftest.er1 >conftest.err
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -z "$ac_c_werror_flag"
13078 || test ! -s conftest.err'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 ac_cv_lib_ltdl_lt_dlinit=yes
13092 echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13095 ac_cv_lib_ltdl_lt_dlinit=no
13097 rm -f conftest.err conftest.$ac_objext \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13101 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13102 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13103 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13105 MODULES_LIBS=-lltdl
13107 cat >>confdefs.h <<\_ACEOF
13108 #define HAVE_LIBLTDL 1
13115 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13116 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13117 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13118 { (exit 1); exit 1; }; }
13120 ol_link_modules=yes
13121 WITH_MODULES_ENABLED=yes
13124 for i in $Backends; do
13125 eval "ol_tmp=\$ol_enable_$i"
13126 if test $ol_tmp = mod ; then
13127 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13128 echo "$as_me: WARNING: building static $i backend" >&2;}
13129 eval "ol_enable_$i=yes"
13132 for i in $Overlays; do
13133 eval "ol_tmp=\$ol_enable_$i"
13134 if test $ol_tmp = mod ; then
13135 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13136 echo "$as_me: WARNING: building static $i overlay" >&2;}
13137 eval "ol_enable_$i=yes"
13143 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13144 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13145 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13146 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13157 #include <__ASCII__/generate_error.h>
13161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13164 grep -v '^ *+' conftest.er1 >conftest.err
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } >/dev/null; then
13169 if test -s conftest.err; then
13170 ac_cpp_err=$ac_c_preproc_warn_flag
13171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13178 if test -z "$ac_cpp_err"; then
13179 ol_cv_cpp_ebcdic=yes
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 ol_cv_cpp_ebcdic=no
13186 rm -f conftest.err conftest.$ac_ext
13188 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13189 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13190 if test $ol_cv_cpp_ebcdic = yes ; then
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_EBCDIC 1
13198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13200 if test "${ol_cv_header_stdc+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 cat >conftest.$ac_ext <<_ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <stdlib.h>
13210 #include <stdarg.h>
13211 #include <string.h>
13214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13217 grep -v '^ *+' conftest.er1 >conftest.err
13219 cat conftest.err >&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } >/dev/null; then
13222 if test -s conftest.err; then
13223 ac_cpp_err=$ac_c_preproc_warn_flag
13224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13231 if test -z "$ac_cpp_err"; then
13232 ol_cv_header_stdc=yes
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ol_cv_header_stdc=no
13239 rm -f conftest.err conftest.$ac_ext
13241 if test $ol_cv_header_stdc = yes; then
13242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13243 cat >conftest.$ac_ext <<_ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 #include <string.h>
13252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13253 $EGREP "memchr" >/dev/null 2>&1; then
13256 ol_cv_header_stdc=no
13262 if test $ol_cv_header_stdc = yes; then
13263 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 #include <stdlib.h>
13273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13274 $EGREP "free" >/dev/null 2>&1; then
13277 ol_cv_header_stdc=no
13283 if test $ol_cv_header_stdc = yes; then
13284 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13285 if test "$cross_compiling" = yes; then
13288 cat >conftest.$ac_ext <<_ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13295 #ifndef HAVE_EBCDIC
13296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13299 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13300 || ('j' <= (c) && (c) <= 'r') \
13301 || ('s' <= (c) && (c) <= 'z'))
13302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13305 int main () { int i; for (i = 0; i < 256; i++)
13306 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13310 rm -f conftest$ac_exeext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13323 echo "$as_me: program exited with status $ac_status" >&5
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 ( exit $ac_status )
13328 ol_cv_header_stdc=no
13330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13334 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13335 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13336 if test $ol_cv_header_stdc = yes; then
13337 cat >>confdefs.h <<\_ACEOF
13338 #define STDC_HEADERS 1
13342 ac_cv_header_stdc=disable
13345 if test $ol_cv_header_stdc != yes; then
13346 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13347 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13355 ac_header_dirent=no
13356 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13357 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13358 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13359 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 #include <sys/types.h>
13381 rm -f conftest.$ac_objext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13383 (eval $ac_compile) 2>conftest.er1
13385 grep -v '^ *+' conftest.er1 >conftest.err
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 eval "$as_ac_Header=yes"
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13408 eval "$as_ac_Header=no"
13410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13415 cat >>confdefs.h <<_ACEOF
13416 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13419 ac_header_dirent=$ac_hdr; break
13423 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13424 if test $ac_header_dirent = dirent.h; then
13425 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13426 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13427 if test "${ac_cv_search_opendir+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 ac_func_search_save_LIBS=$LIBS
13431 ac_cv_search_opendir=no
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13439 /* Override any gcc2 internal prototype to avoid an error. */
13443 /* We use char because int might match the return type of a gcc2
13444 builtin and then its argument prototype would still apply. */
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13456 (eval $ac_link) 2>conftest.er1
13458 grep -v '^ *+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -z "$ac_c_werror_flag"
13464 || test ! -s conftest.err'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; } &&
13470 { ac_try='test -s conftest$ac_exeext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_cv_search_opendir="none required"
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13482 rm -f conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 if test "$ac_cv_search_opendir" = no; then
13485 for ac_lib in dir; do
13486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13487 cat >conftest.$ac_ext <<_ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13494 /* Override any gcc2 internal prototype to avoid an error. */
13498 /* We use char because int might match the return type of a gcc2
13499 builtin and then its argument prototype would still apply. */
13509 rm -f conftest.$ac_objext conftest$ac_exeext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_search_opendir="-l$ac_lib"
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
13542 LIBS=$ac_func_search_save_LIBS
13544 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13545 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13546 if test "$ac_cv_search_opendir" != no; then
13547 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13552 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13553 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13554 if test "${ac_cv_search_opendir+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 ac_func_search_save_LIBS=$LIBS
13558 ac_cv_search_opendir=no
13559 cat >conftest.$ac_ext <<_ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13566 /* Override any gcc2 internal prototype to avoid an error. */
13570 /* We use char because int might match the return type of a gcc2
13571 builtin and then its argument prototype would still apply. */
13581 rm -f conftest.$ac_objext conftest$ac_exeext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13583 (eval $ac_link) 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -z "$ac_c_werror_flag"
13591 || test ! -s conftest.err'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest$ac_exeext'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_cv_search_opendir="none required"
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13609 rm -f conftest.err conftest.$ac_objext \
13610 conftest$ac_exeext conftest.$ac_ext
13611 if test "$ac_cv_search_opendir" = no; then
13612 for ac_lib in x; do
13613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13621 /* Override any gcc2 internal prototype to avoid an error. */
13625 /* We use char because int might match the return type of a gcc2
13626 builtin and then its argument prototype would still apply. */
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13638 (eval $ac_link) 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -z "$ac_c_werror_flag"
13646 || test ! -s conftest.err'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; } &&
13652 { ac_try='test -s conftest$ac_exeext'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658 ac_cv_search_opendir="-l$ac_lib"
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13665 rm -f conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
13669 LIBS=$ac_func_search_save_LIBS
13671 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13672 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13673 if test "$ac_cv_search_opendir" != no; then
13674 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13680 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13681 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13682 if test "${ac_cv_header_sys_wait_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 <sys/wait.h>
13693 #ifndef WEXITSTATUS
13694 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13697 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13705 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13710 rm -f conftest.$ac_objext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13712 (eval $ac_compile) 2>conftest.er1
13714 grep -v '^ *+' conftest.er1 >conftest.err
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -z "$ac_c_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_header_sys_wait_h=yes
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 ac_cv_header_sys_wait_h=no
13739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13741 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13742 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13743 if test $ac_cv_header_sys_wait_h = yes; then
13745 cat >>confdefs.h <<\_ACEOF
13746 #define HAVE_SYS_WAIT_H 1
13751 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13752 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13753 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13762 #include <sys/types.h>
13763 #include <termios.h>
13769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13770 $EGREP "yes" >/dev/null 2>&1; then
13771 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13773 ac_cv_sys_tiocgwinsz_in_termios_h=no
13778 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13779 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13781 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13782 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13783 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13784 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <sys/types.h>
13794 #include <sys/ioctl.h>
13800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13801 $EGREP "yes" >/dev/null 2>&1; then
13802 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13804 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13809 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13810 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13812 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13814 cat >>confdefs.h <<\_ACEOF
13815 #define GWINSZ_IN_SYS_IOCTL 1
13917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13919 echo "$as_me:$LINENO: checking for $ac_header" >&5
13920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13927 # Is the header compilable?
13928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13930 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 $ac_includes_default
13937 #include <$ac_header>
13939 rm -f conftest.$ac_objext
13940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941 (eval $ac_compile) 2>conftest.er1
13943 grep -v '^ *+' conftest.er1 >conftest.err
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag"
13949 || test ! -s conftest.err'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; } &&
13955 { ac_try='test -s conftest.$ac_objext'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13961 ac_header_compiler=yes
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_header_compiler=no
13968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13970 echo "${ECHO_T}$ac_header_compiler" >&6
13972 # Is the header present?
13973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h. */
13981 #include <$ac_header>
13983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } >/dev/null; then
13991 if test -s conftest.err; then
13992 ac_cpp_err=$ac_c_preproc_warn_flag
13993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14000 if test -z "$ac_cpp_err"; then
14001 ac_header_preproc=yes
14003 echo "$as_me: failed program was:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_header_preproc=no
14008 rm -f conftest.err conftest.$ac_ext
14009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14010 echo "${ECHO_T}$ac_header_preproc" >&6
14012 # So? What about this header?
14013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14019 ac_header_preproc=yes
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14036 ## --------------------------------------------- ##
14037 ## Report this to <http://www.openldap.org/its/> ##
14038 ## --------------------------------------------- ##
14041 sed "s/^/$as_me: WARNING: /" >&2
14044 echo "$as_me:$LINENO: checking for $ac_header" >&5
14045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 eval "$as_ac_Header=\$ac_header_preproc"
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14056 cat >>confdefs.h <<_ACEOF
14057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14066 for ac_header in resolv.h
14068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069 echo "$as_me:$LINENO: checking for $ac_header" >&5
14070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 cat >conftest.$ac_ext <<_ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 $ac_includes_default
14081 #include <netinet/in.h>
14084 #include <$ac_header>
14086 rm -f conftest.$ac_objext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14088 (eval $ac_compile) 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag"
14096 || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest.$ac_objext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 eval "$as_ac_Header=yes"
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 eval "$as_ac_Header=no"
14115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14130 for ac_header in netinet/tcp.h
14132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14133 echo "$as_me:$LINENO: checking for $ac_header" >&5
14134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 cat >conftest.$ac_ext <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 $ac_includes_default
14145 #include <netinet/in.h>
14148 #include <$ac_header>
14150 rm -f conftest.$ac_objext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14152 (eval $ac_compile) 2>conftest.er1
14154 grep -v '^ *+' conftest.er1 >conftest.err
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -z "$ac_c_werror_flag"
14160 || test ! -s conftest.err'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; } &&
14166 { ac_try='test -s conftest.$ac_objext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 eval "$as_ac_Header=yes"
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 eval "$as_ac_Header=no"
14179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14184 cat >>confdefs.h <<_ACEOF
14185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14194 for ac_header in sys/ucred.h
14196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14197 echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 $ac_includes_default
14209 #ifdef HAVE_SYS_PARAM_H
14210 #include <sys/param.h>
14214 #include <$ac_header>
14216 rm -f conftest.$ac_objext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14218 (eval $ac_compile) 2>conftest.er1
14220 grep -v '^ *+' conftest.er1 >conftest.err
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try='test -s conftest.$ac_objext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 eval "$as_ac_Header=yes"
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 eval "$as_ac_Header=no"
14245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14250 cat >>confdefs.h <<_ACEOF
14251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14262 for ac_func in sigaction sigset
14264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14265 echo "$as_me:$LINENO: checking for $ac_func" >&5
14266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14267 if eval "test \"\${$as_ac_var+set}\" = set"; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14278 #define $ac_func innocuous_$ac_func
14280 /* System header to define __stub macros and hopefully few prototypes,
14281 which can conflict with char $ac_func (); below.
14282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14283 <limits.h> exists even on freestanding compilers. */
14286 # include <limits.h>
14288 # include <assert.h>
14293 /* Override any gcc2 internal prototype to avoid an error. */
14298 /* We use char because int might match the return type of a gcc2
14299 builtin and then its argument prototype would still apply. */
14301 /* The GNU C library defines this for functions which it implements
14302 to always fail with ENOSYS. Some functions are actually named
14303 something starting with __ and the normal name is an alias. */
14304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14307 char (*f) () = $ac_func;
14316 return f != $ac_func;
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14323 (eval $ac_link) 2>conftest.er1
14325 grep -v '^ *+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest$ac_exeext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 eval "$as_ac_var=yes"
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 eval "$as_ac_var=no"
14350 rm -f conftest.err conftest.$ac_objext \
14351 conftest$ac_exeext conftest.$ac_ext
14353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14355 if test `eval echo '${'$as_ac_var'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14364 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14366 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14367 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14368 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 ac_check_lib_save_LIBS=$LIBS
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14380 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14397 (eval $ac_link) 2>conftest.er1
14399 grep -v '^ *+' conftest.er1 >conftest.err
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try='test -z "$ac_c_werror_flag"
14405 || test ! -s conftest.err'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; } &&
14411 { ac_try='test -s conftest$ac_exeext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_cv_lib_V3_sigset=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_cv_lib_V3_sigset=no
14424 rm -f conftest.err conftest.$ac_objext \
14425 conftest$ac_exeext conftest.$ac_ext
14426 LIBS=$ac_check_lib_save_LIBS
14428 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14429 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14430 if test $ac_cv_lib_V3_sigset = yes; then
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_LIBV3 1
14441 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14442 echo "$as_me:$LINENO: checking for winsock" >&5
14443 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14444 if test "${ol_cv_winsock+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14448 for curlib in ws2_32 wsock32; do
14449 LIBS="$LIBS -l$curlib"
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 #include <winsock.h>
14463 select(0,NULL,NULL,NULL,NULL);
14465 gethostname(NULL,0);
14471 rm -f conftest.$ac_objext conftest$ac_exeext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14473 (eval $ac_link) 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -z "$ac_c_werror_flag"
14481 || test ! -s conftest.err'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; } &&
14487 { ac_try='test -s conftest$ac_exeext'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14495 echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14500 rm -f conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14503 if test $ol_cv_winsock = yes; then
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_WINSOCK 1
14509 ac_cv_func_socket=yes
14510 ac_cv_func_select=yes
14511 ac_cv_func_closesocket=yes
14512 ac_cv_func_gethostname=yes
14513 if test $curlib = ws2_32; then
14514 ol_cv_winsock=winsock2
14516 cat >>confdefs.h <<\_ACEOF
14517 #define HAVE_WINSOCK2 1
14526 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14527 echo "${ECHO_T}$ol_cv_winsock" >&6
14531 echo "$as_me:$LINENO: checking for socket" >&5
14532 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14533 if test "${ac_cv_func_socket+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14542 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14544 #define socket innocuous_socket
14546 /* System header to define __stub macros and hopefully few prototypes,
14547 which can conflict with char socket (); below.
14548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14549 <limits.h> exists even on freestanding compilers. */
14552 # include <limits.h>
14554 # include <assert.h>
14559 /* Override any gcc2 internal prototype to avoid an error. */
14564 /* We use char because int might match the return type of a gcc2
14565 builtin and then its argument prototype would still apply. */
14567 /* The GNU C library defines this for functions which it implements
14568 to always fail with ENOSYS. Some functions are actually named
14569 something starting with __ and the normal name is an alias. */
14570 #if defined (__stub_socket) || defined (__stub___socket)
14573 char (*f) () = socket;
14582 return f != socket;
14587 rm -f conftest.$ac_objext conftest$ac_exeext
14588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14589 (eval $ac_link) 2>conftest.er1
14591 grep -v '^ *+' conftest.er1 >conftest.err
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -z "$ac_c_werror_flag"
14597 || test ! -s conftest.err'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; } &&
14603 { ac_try='test -s conftest$ac_exeext'
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
14609 ac_cv_func_socket=yes
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14614 ac_cv_func_socket=no
14616 rm -f conftest.err conftest.$ac_objext \
14617 conftest$ac_exeext conftest.$ac_ext
14619 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14620 echo "${ECHO_T}$ac_cv_func_socket" >&6
14621 if test $ac_cv_func_socket = yes; then
14626 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14627 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14628 if test "${ac_cv_lib_socket_main+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 ac_check_lib_save_LIBS=$LIBS
14632 LIBS="-lsocket $LIBS"
14633 cat >conftest.$ac_ext <<_ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14649 rm -f conftest.$ac_objext conftest$ac_exeext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14651 (eval $ac_link) 2>conftest.er1
14653 grep -v '^ *+' conftest.er1 >conftest.err
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
14658 { ac_try='test -z "$ac_c_werror_flag"
14659 || test ! -s conftest.err'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest$ac_exeext'
14666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14671 ac_cv_lib_socket_main=yes
14673 echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14676 ac_cv_lib_socket_main=no
14678 rm -f conftest.err conftest.$ac_objext \
14679 conftest$ac_exeext conftest.$ac_ext
14680 LIBS=$ac_check_lib_save_LIBS
14682 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14683 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14684 if test $ac_cv_lib_socket_main = yes; then
14685 cat >>confdefs.h <<_ACEOF
14686 #define HAVE_LIBSOCKET 1
14689 LIBS="-lsocket $LIBS"
14694 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14695 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14696 if test "${ac_cv_lib_net_main+set}" = set; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 ac_check_lib_save_LIBS=$LIBS
14701 cat >conftest.$ac_ext <<_ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14719 (eval $ac_link) 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag"
14727 || test ! -s conftest.err'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest$ac_exeext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 ac_cv_lib_net_main=yes
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_cv_lib_net_main=no
14746 rm -f conftest.err conftest.$ac_objext \
14747 conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14750 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14751 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14752 if test $ac_cv_lib_net_main = yes; then
14753 cat >>confdefs.h <<_ACEOF
14754 #define HAVE_LIBNET 1
14762 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14763 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14764 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 ac_check_lib_save_LIBS=$LIBS
14768 LIBS="-lnsl_s $LIBS"
14769 cat >conftest.$ac_ext <<_ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787 (eval $ac_link) 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_c_werror_flag"
14795 || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_lib_nsl_s_main=yes
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_cv_lib_nsl_s_main=no
14814 rm -f conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14816 LIBS=$ac_check_lib_save_LIBS
14818 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14819 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14820 if test $ac_cv_lib_nsl_s_main = yes; then
14821 cat >>confdefs.h <<_ACEOF
14822 #define HAVE_LIBNSL_S 1
14825 LIBS="-lnsl_s $LIBS"
14830 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14831 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14832 if test "${ac_cv_lib_nsl_main+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 ac_check_lib_save_LIBS=$LIBS
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14853 rm -f conftest.$ac_objext conftest$ac_exeext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14855 (eval $ac_link) 2>conftest.er1
14857 grep -v '^ *+' conftest.er1 >conftest.err
14859 cat conftest.err >&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } &&
14862 { ac_try='test -z "$ac_c_werror_flag"
14863 || test ! -s conftest.err'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } &&
14869 { ac_try='test -s conftest$ac_exeext'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14875 ac_cv_lib_nsl_main=yes
14877 echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 ac_cv_lib_nsl_main=no
14882 rm -f conftest.err conftest.$ac_objext \
14883 conftest$ac_exeext conftest.$ac_ext
14884 LIBS=$ac_check_lib_save_LIBS
14886 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14887 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14888 if test $ac_cv_lib_nsl_main = yes; then
14889 cat >>confdefs.h <<_ACEOF
14890 #define HAVE_LIBNSL 1
14898 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14899 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14900 if test "${ac_cv_lib_inet_socket+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 ac_check_lib_save_LIBS=$LIBS
14904 LIBS="-linet $LIBS"
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14912 /* Override any gcc2 internal prototype to avoid an error. */
14916 /* We use char because int might match the return type of a gcc2
14917 builtin and then its argument prototype would still apply. */
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14929 (eval $ac_link) 2>conftest.er1
14931 grep -v '^ *+' conftest.er1 >conftest.err
14933 cat conftest.err >&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } &&
14936 { ac_try='test -z "$ac_c_werror_flag"
14937 || test ! -s conftest.err'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; } &&
14943 { ac_try='test -s conftest$ac_exeext'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_cv_lib_inet_socket=yes
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 ac_cv_lib_inet_socket=no
14956 rm -f conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_check_lib_save_LIBS
14960 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14961 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14962 if test $ac_cv_lib_inet_socket = yes; then
14963 cat >>confdefs.h <<_ACEOF
14964 #define HAVE_LIBINET 1
14967 LIBS="-linet $LIBS"
14972 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14973 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14974 if test "${ac_cv_lib_gen_main+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 ac_check_lib_save_LIBS=$LIBS
14979 cat >conftest.$ac_ext <<_ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997 (eval $ac_link) 2>conftest.er1
14999 grep -v '^ *+' conftest.er1 >conftest.err
15001 cat conftest.err >&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_lib_gen_main=yes
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_cv_lib_gen_main=no
15024 rm -f conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
15026 LIBS=$ac_check_lib_save_LIBS
15028 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15029 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15030 if test $ac_cv_lib_gen_main = yes; then
15031 cat >>confdefs.h <<_ACEOF
15032 #define HAVE_LIBGEN 1
15043 echo "$as_me:$LINENO: checking for select" >&5
15044 echo $ECHO_N "checking for select... $ECHO_C" >&6
15045 if test "${ac_cv_func_select+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 cat >conftest.$ac_ext <<_ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 /* Define select to an innocuous variant, in case <limits.h> declares select.
15055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15056 #define select innocuous_select
15058 /* System header to define __stub macros and hopefully few prototypes,
15059 which can conflict with char select (); below.
15060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15061 <limits.h> exists even on freestanding compilers. */
15064 # include <limits.h>
15066 # include <assert.h>
15071 /* Override any gcc2 internal prototype to avoid an error. */
15076 /* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15079 /* The GNU C library defines this for functions which it implements
15080 to always fail with ENOSYS. Some functions are actually named
15081 something starting with __ and the normal name is an alias. */
15082 #if defined (__stub_select) || defined (__stub___select)
15085 char (*f) () = select;
15094 return f != select;
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101 (eval $ac_link) 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_func_select=yes
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_cv_func_select=no
15128 rm -f conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15131 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15132 echo "${ECHO_T}$ac_cv_func_select" >&6
15133 if test $ac_cv_func_select = yes; then
15136 { { echo "$as_me:$LINENO: error: select() required." >&5
15137 echo "$as_me: error: select() required." >&2;}
15138 { (exit 1); exit 1; }; }
15142 if test "${ac_cv_header_winsock_h}" != yes; then
15145 for ac_header in sys/select.h sys/socket.h
15147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15149 echo "$as_me:$LINENO: checking for $ac_header" >&5
15150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15157 # Is the header compilable?
15158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15160 cat >conftest.$ac_ext <<_ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 $ac_includes_default
15167 #include <$ac_header>
15169 rm -f conftest.$ac_objext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15171 (eval $ac_compile) 2>conftest.er1
15173 grep -v '^ *+' conftest.er1 >conftest.err
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -z "$ac_c_werror_flag"
15179 || test ! -s conftest.err'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 ac_header_compiler=yes
15193 echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 ac_header_compiler=no
15198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15200 echo "${ECHO_T}$ac_header_compiler" >&6
15202 # Is the header present?
15203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15205 cat >conftest.$ac_ext <<_ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 #include <$ac_header>
15213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15216 grep -v '^ *+' conftest.er1 >conftest.err
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } >/dev/null; then
15221 if test -s conftest.err; then
15222 ac_cpp_err=$ac_c_preproc_warn_flag
15223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15230 if test -z "$ac_cpp_err"; then
15231 ac_header_preproc=yes
15233 echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 ac_header_preproc=no
15238 rm -f conftest.err conftest.$ac_ext
15239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240 echo "${ECHO_T}$ac_header_preproc" >&6
15242 # So? What about this header?
15243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15249 ac_header_preproc=yes
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15266 ## --------------------------------------------- ##
15267 ## Report this to <http://www.openldap.org/its/> ##
15268 ## --------------------------------------------- ##
15271 sed "s/^/$as_me: WARNING: /" >&2
15274 echo "$as_me:$LINENO: checking for $ac_header" >&5
15275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 eval "$as_ac_Header=\$ac_header_preproc"
15281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15286 cat >>confdefs.h <<_ACEOF
15287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15294 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15295 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15296 if test "${ac_cv_func_select_args+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15300 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15301 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15302 cat >conftest.$ac_ext <<_ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 $ac_includes_default
15309 #if HAVE_SYS_SELECT_H
15310 # include <sys/select.h>
15312 #if HAVE_SYS_SOCKET_H
15313 # include <sys/socket.h>
15319 extern int select ($ac_arg1,
15320 $ac_arg234, $ac_arg234, $ac_arg234,
15326 rm -f conftest.$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>conftest.er1
15330 grep -v '^ *+' conftest.er1 >conftest.err
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15358 # Provide a safe default value.
15359 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15362 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15363 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15364 ac_save_IFS=$IFS; IFS=','
15365 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15369 cat >>confdefs.h <<_ACEOF
15370 #define SELECT_TYPE_ARG1 $1
15374 cat >>confdefs.h <<_ACEOF
15375 #define SELECT_TYPE_ARG234 ($2)
15379 cat >>confdefs.h <<_ACEOF
15380 #define SELECT_TYPE_ARG5 ($3)
15389 for ac_func in poll
15391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15392 echo "$as_me:$LINENO: checking for $ac_func" >&5
15393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15394 if eval "test \"\${$as_ac_var+set}\" = set"; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15405 #define $ac_func innocuous_$ac_func
15407 /* System header to define __stub macros and hopefully few prototypes,
15408 which can conflict with char $ac_func (); below.
15409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15410 <limits.h> exists even on freestanding compilers. */
15413 # include <limits.h>
15415 # include <assert.h>
15420 /* Override any gcc2 internal prototype to avoid an error. */
15425 /* We use char because int might match the return type of a gcc2
15426 builtin and then its argument prototype would still apply. */
15428 /* The GNU C library defines this for functions which it implements
15429 to always fail with ENOSYS. Some functions are actually named
15430 something starting with __ and the normal name is an alias. */
15431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15434 char (*f) () = $ac_func;
15443 return f != $ac_func;
15448 rm -f conftest.$ac_objext conftest$ac_exeext
15449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15450 (eval $ac_link) 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag"
15458 || test ! -s conftest.err'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest$ac_exeext'
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
15470 eval "$as_ac_var=yes"
15472 echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15475 eval "$as_ac_var=no"
15477 rm -f conftest.err conftest.$ac_objext \
15478 conftest$ac_exeext conftest.$ac_ext
15480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15482 if test `eval echo '${'$as_ac_var'}'` = yes; then
15483 cat >>confdefs.h <<_ACEOF
15484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15491 for ac_header in poll.h
15493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15495 echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15503 # Is the header compilable?
15504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15506 cat >conftest.$ac_ext <<_ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 $ac_includes_default
15513 #include <$ac_header>
15515 rm -f conftest.$ac_objext
15516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15517 (eval $ac_compile) 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
15524 { ac_try='test -z "$ac_c_werror_flag"
15525 || test ! -s conftest.err'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; } &&
15531 { ac_try='test -s conftest.$ac_objext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_header_compiler=yes
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542 ac_header_compiler=no
15544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15546 echo "${ECHO_T}$ac_header_compiler" >&6
15548 # Is the header present?
15549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 #include <$ac_header>
15559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15576 if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_preproc=no
15584 rm -f conftest.err conftest.$ac_ext
15585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15586 echo "${ECHO_T}$ac_header_preproc" >&6
15588 # So? What about this header?
15589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15595 ac_header_preproc=yes
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612 ## --------------------------------------------- ##
15613 ## Report this to <http://www.openldap.org/its/> ##
15614 ## --------------------------------------------- ##
15617 sed "s/^/$as_me: WARNING: /" >&2
15620 echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 eval "$as_ac_Header=\$ac_header_preproc"
15627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15642 for ac_header in sys/epoll.h
15644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15646 echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15654 # Is the header compilable?
15655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15657 cat >conftest.$ac_ext <<_ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 $ac_includes_default
15664 #include <$ac_header>
15666 rm -f conftest.$ac_objext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668 (eval $ac_compile) 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag"
15676 || test ! -s conftest.err'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; } &&
15682 { ac_try='test -s conftest.$ac_objext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_header_compiler=yes
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 ac_header_compiler=no
15695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15697 echo "${ECHO_T}$ac_header_compiler" >&6
15699 # Is the header present?
15700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15702 cat >conftest.$ac_ext <<_ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h. */
15708 #include <$ac_header>
15710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } >/dev/null; then
15718 if test -s conftest.err; then
15719 ac_cpp_err=$ac_c_preproc_warn_flag
15720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15727 if test -z "$ac_cpp_err"; then
15728 ac_header_preproc=yes
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_header_preproc=no
15735 rm -f conftest.err conftest.$ac_ext
15736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15737 echo "${ECHO_T}$ac_header_preproc" >&6
15739 # So? What about this header?
15740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15746 ac_header_preproc=yes
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15756 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15763 ## --------------------------------------------- ##
15764 ## Report this to <http://www.openldap.org/its/> ##
15765 ## --------------------------------------------- ##
15768 sed "s/^/$as_me: WARNING: /" >&2
15771 echo "$as_me:$LINENO: checking for $ac_header" >&5
15772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 eval "$as_ac_Header=\$ac_header_preproc"
15778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15791 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15792 echo "$as_me:$LINENO: checking for epoll system call" >&5
15793 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15794 if test "$cross_compiling" = yes; then
15795 echo "$as_me:$LINENO: result: no" >&5
15796 echo "${ECHO_T}no" >&6
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 int main(int argc, char *argv)
15806 int epfd = epoll_create(256);
15807 exit (epfd == -1 ? 1 : 0);
15810 rm -f conftest$ac_exeext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812 (eval $ac_link) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15821 echo "$as_me:$LINENO: result: yes" >&5
15822 echo "${ECHO_T}yes" >&6
15824 cat >>confdefs.h <<\_ACEOF
15825 #define HAVE_EPOLL 1
15829 echo "$as_me: program exited with status $ac_status" >&5
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ( exit $ac_status )
15834 echo "$as_me:$LINENO: result: no" >&5
15835 echo "${ECHO_T}no" >&6
15837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15842 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15843 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15844 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 cat >conftest.$ac_ext <<_ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15856 #include <sys/types.h>
15859 #include <stdlib.h>
15864 char *c = (char *) *sys_errlist
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 ol_cv_dcl_sys_errlist=yes
15892 ol_cv_have_sys_errlist=yes
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ol_cv_dcl_sys_errlist=no
15899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15902 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15904 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15905 if test $ol_cv_dcl_sys_errlist = no ; then
15907 cat >>confdefs.h <<\_ACEOF
15908 #define DECL_SYS_ERRLIST 1
15912 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15913 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15914 if test "${ol_cv_have_sys_errlist+set}" = set; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15928 char *c = (char *) *sys_errlist
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935 (eval $ac_link) 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -z "$ac_c_werror_flag"
15943 || test ! -s conftest.err'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 ol_cv_have_sys_errlist=yes
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 ol_cv_have_sys_errlist=no
15962 rm -f conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
15965 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15966 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15968 if test $ol_cv_have_sys_errlist = yes ; then
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_SYS_ERRLIST 1
15977 for ac_func in strerror strerror_r
15979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15980 echo "$as_me:$LINENO: checking for $ac_func" >&5
15981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15982 if eval "test \"\${$as_ac_var+set}\" = set"; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15993 #define $ac_func innocuous_$ac_func
15995 /* System header to define __stub macros and hopefully few prototypes,
15996 which can conflict with char $ac_func (); below.
15997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15998 <limits.h> exists even on freestanding compilers. */
16001 # include <limits.h>
16003 # include <assert.h>
16008 /* Override any gcc2 internal prototype to avoid an error. */
16013 /* We use char because int might match the return type of a gcc2
16014 builtin and then its argument prototype would still apply. */
16016 /* The GNU C library defines this for functions which it implements
16017 to always fail with ENOSYS. Some functions are actually named
16018 something starting with __ and the normal name is an alias. */
16019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16022 char (*f) () = $ac_func;
16031 return f != $ac_func;
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038 (eval $ac_link) 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -z "$ac_c_werror_flag"
16046 || test ! -s conftest.err'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 eval "$as_ac_var=yes"
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 eval "$as_ac_var=no"
16065 rm -f conftest.err conftest.$ac_objext \
16066 conftest$ac_exeext conftest.$ac_ext
16068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16070 if test `eval echo '${'$as_ac_var'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16078 ol_cv_func_strerror_r=no
16079 if test "${ac_cv_func_strerror_r}" = yes ; then
16080 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16081 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16082 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16092 #include <string.h>
16094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16095 $EGREP "strerror_r" >/dev/null 2>&1; then
16096 ol_decl_strerror_r=yes
16098 ol_decl_strerror_r=no
16102 if test $ol_decl_strerror_r = yes ; then
16103 cat >conftest.$ac_ext <<_ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 #include <string.h>
16113 /* from autoconf 2.59 */
16115 char x = *strerror_r (0, buf, sizeof buf);
16116 char *p = strerror_r (0, buf, sizeof buf);
16122 rm -f conftest.$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124 (eval $ac_compile) 2>conftest.er1
16126 grep -v '^ *+' conftest.er1 >conftest.err
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ol_cv_nonposix_strerror_r=yes
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ol_cv_nonposix_strerror_r=no
16151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16153 if test "$cross_compiling" = yes; then
16154 ol_cv_nonposix_strerror=no
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16166 strerror_r( 1, buf, sizeof buf );
16167 exit( buf[0] == 0 );
16171 rm -f conftest$ac_exeext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16182 ol_cv_nonposix_strerror_r=yes
16184 echo "$as_me: program exited with status $ac_status" >&5
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 ( exit $ac_status )
16189 ol_cv_nonposix_strerror=no
16191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16196 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16197 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16198 if test $ol_cv_nonposix_strerror_r = yes ; then
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_NONPOSIX_STRERROR_R 1
16206 elif test "${ac_cv_func_strerror}" = no ; then
16207 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16208 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16209 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16221 #include <sys/types.h>
16224 #include <stdlib.h>
16229 char *c = (char *) *sys_errlist
16234 rm -f conftest.$ac_objext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>conftest.er1
16238 grep -v '^ *+' conftest.er1 >conftest.err
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } &&
16243 { ac_try='test -z "$ac_c_werror_flag"
16244 || test ! -s conftest.err'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 ol_cv_dcl_sys_errlist=yes
16257 ol_cv_have_sys_errlist=yes
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 ol_cv_dcl_sys_errlist=no
16264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16266 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16267 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16269 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16270 if test $ol_cv_dcl_sys_errlist = no ; then
16272 cat >>confdefs.h <<\_ACEOF
16273 #define DECL_SYS_ERRLIST 1
16277 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16278 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16279 if test "${ol_cv_have_sys_errlist+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16283 cat >conftest.$ac_ext <<_ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16293 char *c = (char *) *sys_errlist
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16300 (eval $ac_link) 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag"
16308 || test ! -s conftest.err'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest$ac_exeext'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 ol_cv_have_sys_errlist=yes
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16325 ol_cv_have_sys_errlist=no
16327 rm -f conftest.err conftest.$ac_objext \
16328 conftest$ac_exeext conftest.$ac_ext
16330 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16331 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16333 if test $ol_cv_have_sys_errlist = yes ; then
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_SYS_ERRLIST 1
16345 for ac_header in regex.h
16347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16349 echo "$as_me:$LINENO: checking for $ac_header" >&5
16350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16357 # Is the header compilable?
16358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16360 cat >conftest.$ac_ext <<_ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 $ac_includes_default
16367 #include <$ac_header>
16369 rm -f conftest.$ac_objext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>conftest.er1
16373 grep -v '^ *+' conftest.er1 >conftest.err
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } &&
16378 { ac_try='test -z "$ac_c_werror_flag"
16379 || test ! -s conftest.err'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_header_compiler=yes
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 ac_header_compiler=no
16398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16400 echo "${ECHO_T}$ac_header_compiler" >&6
16402 # Is the header present?
16403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 #include <$ac_header>
16413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16414 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
16421 if test -s conftest.err; then
16422 ac_cpp_err=$ac_c_preproc_warn_flag
16423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16430 if test -z "$ac_cpp_err"; then
16431 ac_header_preproc=yes
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_header_preproc=no
16438 rm -f conftest.err conftest.$ac_ext
16439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16440 echo "${ECHO_T}$ac_header_preproc" >&6
16442 # So? What about this header?
16443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16449 ac_header_preproc=yes
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16466 ## --------------------------------------------- ##
16467 ## Report this to <http://www.openldap.org/its/> ##
16468 ## --------------------------------------------- ##
16471 sed "s/^/$as_me: WARNING: /" >&2
16474 echo "$as_me:$LINENO: checking for $ac_header" >&5
16475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 eval "$as_ac_Header=\$ac_header_preproc"
16481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16486 cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16494 if test "$ac_cv_header_regex_h" != yes ; then
16495 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16496 echo "$as_me: error: POSIX regex.h required." >&2;}
16497 { (exit 1); exit 1; }; }
16499 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16500 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16501 if test "${ac_cv_search_regfree+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 ac_func_search_save_LIBS=$LIBS
16505 ac_cv_search_regfree=no
16506 cat >conftest.$ac_ext <<_ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16513 /* Override any gcc2 internal prototype to avoid an error. */
16517 /* We use char because int might match the return type of a gcc2
16518 builtin and then its argument prototype would still apply. */
16528 rm -f conftest.$ac_objext conftest$ac_exeext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16530 (eval $ac_link) 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest$ac_exeext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_cv_search_regfree="none required"
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16556 rm -f conftest.err conftest.$ac_objext \
16557 conftest$ac_exeext conftest.$ac_ext
16558 if test "$ac_cv_search_regfree" = no; then
16559 for ac_lib in regex gnuregex; do
16560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16561 cat >conftest.$ac_ext <<_ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16568 /* Override any gcc2 internal prototype to avoid an error. */
16572 /* We use char because int might match the return type of a gcc2
16573 builtin and then its argument prototype would still apply. */
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>conftest.er1
16587 grep -v '^ *+' conftest.er1 >conftest.err
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag"
16593 || test ! -s conftest.err'
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; } &&
16599 { ac_try='test -s conftest$ac_exeext'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_search_regfree="-l$ac_lib"
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16612 rm -f conftest.err conftest.$ac_objext \
16613 conftest$ac_exeext conftest.$ac_ext
16616 LIBS=$ac_func_search_save_LIBS
16618 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16619 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16620 if test "$ac_cv_search_regfree" != no; then
16621 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16624 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16625 echo "$as_me: error: POSIX regex required." >&2;}
16626 { (exit 1); exit 1; }; }
16631 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16632 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16633 if test "${ol_cv_c_posix_regex+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 if test "$cross_compiling" = yes; then
16638 ol_cv_c_posix_regex=cross
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16647 #include <sys/types.h>
16649 static char *pattern, *string;
16657 if(regcomp(&re, pattern, 0)) {
16661 string = "ALL MATCH";
16663 rc = regexec(&re, string, 0, (void*)0, 0);
16670 rm -f conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); }; }; then
16681 ol_cv_c_posix_regex=yes
16683 echo "$as_me: program exited with status $ac_status" >&5
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 ( exit $ac_status )
16688 ol_cv_c_posix_regex=no
16690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16693 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16694 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16696 if test "$ol_cv_c_posix_regex" = no ; then
16697 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16698 echo "$as_me: error: broken POSIX regex!" >&2;}
16699 { (exit 1); exit 1; }; }
16705 for ac_header in sys/uuid.h
16707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16709 echo "$as_me:$LINENO: checking for $ac_header" >&5
16710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16717 # Is the header compilable?
16718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16720 cat >conftest.$ac_ext <<_ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 $ac_includes_default
16727 #include <$ac_header>
16729 rm -f conftest.$ac_objext
16730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16731 (eval $ac_compile) 2>conftest.er1
16733 grep -v '^ *+' conftest.er1 >conftest.err
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -z "$ac_c_werror_flag"
16739 || test ! -s conftest.err'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest.$ac_objext'
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_header_compiler=yes
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16756 ac_header_compiler=no
16758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16759 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16760 echo "${ECHO_T}$ac_header_compiler" >&6
16762 # Is the header present?
16763 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16765 cat >conftest.$ac_ext <<_ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 #include <$ac_header>
16773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); } >/dev/null; then
16781 if test -s conftest.err; then
16782 ac_cpp_err=$ac_c_preproc_warn_flag
16783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16790 if test -z "$ac_cpp_err"; then
16791 ac_header_preproc=yes
16793 echo "$as_me: failed program was:" >&5
16794 sed 's/^/| /' conftest.$ac_ext >&5
16796 ac_header_preproc=no
16798 rm -f conftest.err conftest.$ac_ext
16799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16800 echo "${ECHO_T}$ac_header_preproc" >&6
16802 # So? What about this header?
16803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16809 ac_header_preproc=yes
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16826 ## --------------------------------------------- ##
16827 ## Report this to <http://www.openldap.org/its/> ##
16828 ## --------------------------------------------- ##
16831 sed "s/^/$as_me: WARNING: /" >&2
16834 echo "$as_me:$LINENO: checking for $ac_header" >&5
16835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 eval "$as_ac_Header=\$ac_header_preproc"
16841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16846 cat >>confdefs.h <<_ACEOF
16847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16854 if test $ac_cv_header_sys_uuid_h = yes ; then
16856 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16857 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16858 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 ac_func_search_save_LIBS=$LIBS
16862 ac_cv_search_uuid_to_str=no
16863 cat >conftest.$ac_ext <<_ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16870 /* Override any gcc2 internal prototype to avoid an error. */
16874 /* We use char because int might match the return type of a gcc2
16875 builtin and then its argument prototype would still apply. */
16876 char uuid_to_str ();
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16887 (eval $ac_link) 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest$ac_exeext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_search_uuid_to_str="none required"
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16913 rm -f conftest.err conftest.$ac_objext \
16914 conftest$ac_exeext conftest.$ac_ext
16915 if test "$ac_cv_search_uuid_to_str" = no; then
16916 for ac_lib in uuid; do
16917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16925 /* Override any gcc2 internal prototype to avoid an error. */
16929 /* We use char because int might match the return type of a gcc2
16930 builtin and then its argument prototype would still apply. */
16931 char uuid_to_str ();
16940 rm -f conftest.$ac_objext conftest$ac_exeext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942 (eval $ac_link) 2>conftest.er1
16944 grep -v '^ *+' conftest.er1 >conftest.err
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
16949 { ac_try='test -z "$ac_c_werror_flag"
16950 || test ! -s conftest.err'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; } &&
16956 { ac_try='test -s conftest$ac_exeext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_search_uuid_to_str="-l$ac_lib"
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16969 rm -f conftest.err conftest.$ac_objext \
16970 conftest$ac_exeext conftest.$ac_ext
16973 LIBS=$ac_func_search_save_LIBS
16975 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16976 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16977 if test "$ac_cv_search_uuid_to_str" != no; then
16978 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16986 if test have_uuid = yes ; then
16988 cat >>confdefs.h <<\_ACEOF
16989 #define HAVE_UUID_TO_STR 1
16993 test "$ac_cv_search_uuid_to_str" = "none required" || \
16994 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16998 if test $have_uuid = no ; then
16999 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17000 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17002 LIBS="$LIBS -lrpcrt4"
17003 cat >conftest.$ac_ext <<_ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17010 int __stdcall UuidCreate(void *);
17011 int __stdcall UuidToStringA(void *,void **);
17018 UuidToStringA(0,0);
17024 rm -f conftest.$ac_objext conftest$ac_exeext
17025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17026 (eval $ac_link) 2>conftest.er1
17028 grep -v '^ *+' conftest.er1 >conftest.err
17030 cat conftest.err >&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); } &&
17033 { ac_try='test -z "$ac_c_werror_flag"
17034 || test ! -s conftest.err'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; } &&
17040 { ac_try='test -s conftest$ac_exeext'
17041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042 (eval $ac_try) 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17053 rm -f conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055 if test $need_rpcrt = yes; then
17056 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17059 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17060 echo "${ECHO_T}$need_rpcrt" >&6
17063 ol_cv_lib_resolver=no
17064 if test $ol_cv_lib_resolver = no ; then
17065 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17066 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17067 if test "${ol_cv_resolver_none+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 LIBS="$ol_RESOLVER_LIB $LIBS"
17075 cat >conftest.$ac_ext <<_ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17082 #ifdef HAVE_SYS_TYPES_H
17083 # include <sys/types.h>
17085 #include <netinet/in.h>
17086 #ifdef HAVE_ARPA_NAMESER_H
17087 # include <arpa/nameser.h>
17089 #ifdef HAVE_RESOLV_H
17090 # include <resolv.h>
17098 char *request = NULL;
17099 unsigned char reply[64*1024];
17100 unsigned char host[64*1024];
17104 /* Bind 8/9 interface */
17105 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17107 /* Bind 4 interface */
17111 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17115 /* Bind 8/9 interface */
17117 #elif defined(HFIXEDSZ)
17118 /* Bind 4 interface w/ HFIXEDSZ */
17121 /* Bind 4 interface w/o HFIXEDSZ */
17122 p += sizeof(HEADER);
17124 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17130 rm -f conftest.$ac_objext conftest$ac_exeext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17132 (eval $ac_link) 2>conftest.er1
17134 grep -v '^ *+' conftest.er1 >conftest.err
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try='test -z "$ac_c_werror_flag"
17140 || test ! -s conftest.err'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ol_cv_resolver_none=yes
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 ol_cv_resolver_none=no
17159 rm -f conftest.err conftest.$ac_objext \
17160 conftest$ac_exeext conftest.$ac_ext
17165 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17166 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17168 if test $ol_cv_resolver_none = yes ; then
17169 ol_cv_lib_resolver=yes
17173 if test $ol_cv_lib_resolver = no ; then
17174 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17175 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17176 if test "${ol_cv_resolver_resolv+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 ol_RESOLVER_LIB=-lresolv
17182 LIBS="$ol_RESOLVER_LIB $LIBS"
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17191 #ifdef HAVE_SYS_TYPES_H
17192 # include <sys/types.h>
17194 #include <netinet/in.h>
17195 #ifdef HAVE_ARPA_NAMESER_H
17196 # include <arpa/nameser.h>
17198 #ifdef HAVE_RESOLV_H
17199 # include <resolv.h>
17207 char *request = NULL;
17208 unsigned char reply[64*1024];
17209 unsigned char host[64*1024];
17213 /* Bind 8/9 interface */
17214 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17216 /* Bind 4 interface */
17220 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17224 /* Bind 8/9 interface */
17226 #elif defined(HFIXEDSZ)
17227 /* Bind 4 interface w/ HFIXEDSZ */
17230 /* Bind 4 interface w/o HFIXEDSZ */
17231 p += sizeof(HEADER);
17233 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17239 rm -f conftest.$ac_objext conftest$ac_exeext
17240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17241 (eval $ac_link) 2>conftest.er1
17243 grep -v '^ *+' conftest.er1 >conftest.err
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } &&
17248 { ac_try='test -z "$ac_c_werror_flag"
17249 || test ! -s conftest.err'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; } &&
17255 { ac_try='test -s conftest$ac_exeext'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ol_cv_resolver_resolv=yes
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 ol_cv_resolver_resolv=no
17268 rm -f conftest.err conftest.$ac_objext \
17269 conftest$ac_exeext conftest.$ac_ext
17274 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17275 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17277 if test $ol_cv_resolver_resolv = yes ; then
17278 ol_cv_lib_resolver=-lresolv
17282 if test $ol_cv_lib_resolver = no ; then
17283 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17284 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17285 if test "${ol_cv_resolver_bind+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 ol_RESOLVER_LIB=-lbind
17291 LIBS="$ol_RESOLVER_LIB $LIBS"
17293 cat >conftest.$ac_ext <<_ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17300 #ifdef HAVE_SYS_TYPES_H
17301 # include <sys/types.h>
17303 #include <netinet/in.h>
17304 #ifdef HAVE_ARPA_NAMESER_H
17305 # include <arpa/nameser.h>
17307 #ifdef HAVE_RESOLV_H
17308 # include <resolv.h>
17316 char *request = NULL;
17317 unsigned char reply[64*1024];
17318 unsigned char host[64*1024];
17322 /* Bind 8/9 interface */
17323 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17325 /* Bind 4 interface */
17329 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17333 /* Bind 8/9 interface */
17335 #elif defined(HFIXEDSZ)
17336 /* Bind 4 interface w/ HFIXEDSZ */
17339 /* Bind 4 interface w/o HFIXEDSZ */
17340 p += sizeof(HEADER);
17342 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ol_cv_resolver_bind=yes
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ol_cv_resolver_bind=no
17377 rm -f conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17383 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17384 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17386 if test $ol_cv_resolver_bind = yes ; then
17387 ol_cv_lib_resolver=-lbind
17394 if test "$ol_cv_lib_resolver" != no ; then
17396 cat >>confdefs.h <<\_ACEOF
17397 #define HAVE_RES_QUERY 1
17401 if test "$ol_enable_dnssrv" != no ; then
17405 if test "$ol_cv_lib_resolver" != yes ; then
17406 LIBS="$ol_cv_lib_resolver $LIBS"
17410 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17411 if test "$ol_link_dnssrv" = no ; then
17412 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17413 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17414 { (exit 1); exit 1; }; }
17417 ol_enable_dnssrv=no
17421 for ac_func in hstrerror
17423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424 echo "$as_me:$LINENO: checking for $ac_func" >&5
17425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17426 if eval "test \"\${$as_ac_var+set}\" = set"; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 cat >conftest.$ac_ext <<_ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437 #define $ac_func innocuous_$ac_func
17439 /* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char $ac_func (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17445 # include <limits.h>
17447 # include <assert.h>
17452 /* Override any gcc2 internal prototype to avoid an error. */
17457 /* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17460 /* The GNU C library defines this for functions which it implements
17461 to always fail with ENOSYS. Some functions are actually named
17462 something starting with __ and the normal name is an alias. */
17463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17466 char (*f) () = $ac_func;
17475 return f != $ac_func;
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 eval "$as_ac_var=yes"
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 eval "$as_ac_var=no"
17509 rm -f conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17514 if test `eval echo '${'$as_ac_var'}'` = yes; then
17515 cat >>confdefs.h <<_ACEOF
17516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17527 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17530 echo "$as_me:$LINENO: checking for $ac_func" >&5
17531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17532 if eval "test \"\${$as_ac_var+set}\" = set"; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 cat >conftest.$ac_ext <<_ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17543 #define $ac_func innocuous_$ac_func
17545 /* System header to define __stub macros and hopefully few prototypes,
17546 which can conflict with char $ac_func (); below.
17547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17548 <limits.h> exists even on freestanding compilers. */
17551 # include <limits.h>
17553 # include <assert.h>
17558 /* Override any gcc2 internal prototype to avoid an error. */
17563 /* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17566 /* The GNU C library defines this for functions which it implements
17567 to always fail with ENOSYS. Some functions are actually named
17568 something starting with __ and the normal name is an alias. */
17569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17572 char (*f) () = $ac_func;
17581 return f != $ac_func;
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest$ac_exeext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 eval "$as_ac_var=yes"
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 eval "$as_ac_var=no"
17615 rm -f conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17620 if test `eval echo '${'$as_ac_var'}'` = yes; then
17621 cat >>confdefs.h <<_ACEOF
17622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17630 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17631 if test $ol_enable_ipv6 = yes ; then
17632 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17633 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17634 { (exit 1); exit 1; }; }
17636 elif test $ol_enable_ipv6 != no ; then
17637 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17638 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17639 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 cat >conftest.$ac_ext <<_ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17650 # include <netinet/in.h>
17651 # ifdef INET6_ADDRSTRLEN
17652 __has_inet6_addrstrlen__;
17656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17657 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17658 ol_cv_inet6_addrstrlen=yes
17660 ol_cv_inet6_addrstrlen=no
17665 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17666 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17669 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17670 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17671 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 cat >conftest.$ac_ext <<_ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17682 #include <sys/types.h>
17683 #include <sys/socket.h>
17689 struct sockaddr_storage ss;
17695 rm -f conftest.$ac_objext
17696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17697 (eval $ac_compile) 2>conftest.er1
17699 grep -v '^ *+' conftest.er1 >conftest.err
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } &&
17704 { ac_try='test -z "$ac_c_werror_flag"
17705 || test ! -s conftest.err'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; } &&
17711 { ac_try='test -s conftest.$ac_objext'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 ol_cv_struct_sockaddr_storage=yes
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ol_cv_struct_sockaddr_storage=no
17724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17726 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17727 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17729 if test $ol_cv_inet6_addrstrlen = yes &&
17730 test $ol_cv_struct_sockaddr_storage = yes ; then
17732 elif test $ol_enable_ipv6 = yes &&
17733 test $ol_cv_inet6_addrstrlen = no ; then
17734 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17735 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17736 { (exit 1); exit 1; }; }
17737 elif test $ol_enable_ipv6 = yes &&
17738 test $ol_cv_struct_sockaddr_storage = no ; then
17739 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17740 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17741 { (exit 1); exit 1; }; }
17745 if test $ol_enable_local != no ; then
17747 for ac_header in sys/un.h
17749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17751 echo "$as_me:$LINENO: checking for $ac_header" >&5
17752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17759 # Is the header compilable?
17760 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17762 cat >conftest.$ac_ext <<_ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 $ac_includes_default
17769 #include <$ac_header>
17771 rm -f conftest.$ac_objext
17772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17773 (eval $ac_compile) 2>conftest.er1
17775 grep -v '^ *+' conftest.er1 >conftest.err
17777 cat conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -z "$ac_c_werror_flag"
17781 || test ! -s conftest.err'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; } &&
17787 { ac_try='test -s conftest.$ac_objext'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 ac_header_compiler=yes
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ac_header_compiler=no
17800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17802 echo "${ECHO_T}$ac_header_compiler" >&6
17804 # Is the header present?
17805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17807 cat >conftest.$ac_ext <<_ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 #include <$ac_header>
17815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } >/dev/null; then
17823 if test -s conftest.err; then
17824 ac_cpp_err=$ac_c_preproc_warn_flag
17825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17832 if test -z "$ac_cpp_err"; then
17833 ac_header_preproc=yes
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_header_preproc=no
17840 rm -f conftest.err conftest.$ac_ext
17841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17842 echo "${ECHO_T}$ac_header_preproc" >&6
17844 # So? What about this header?
17845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17851 ac_header_preproc=yes
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17868 ## --------------------------------------------- ##
17869 ## Report this to <http://www.openldap.org/its/> ##
17870 ## --------------------------------------------- ##
17873 sed "s/^/$as_me: WARNING: /" >&2
17876 echo "$as_me:$LINENO: checking for $ac_header" >&5
17877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 eval "$as_ac_Header=\$ac_header_preproc"
17883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17888 cat >>confdefs.h <<_ACEOF
17889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17897 if test $ol_enable_local = auto ; then
17898 ol_enable_local=$ac_cv_header_sys_un_h
17899 elif test $ac_cv_header_sys_un_h = no ; then
17900 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17901 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17902 { (exit 1); exit 1; }; }
17910 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17913 for ac_header in krb5.h
17915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17917 echo "$as_me:$LINENO: checking for $ac_header" >&5
17918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17925 # Is the header compilable?
17926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17928 cat >conftest.$ac_ext <<_ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 $ac_includes_default
17935 #include <$ac_header>
17937 rm -f conftest.$ac_objext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17939 (eval $ac_compile) 2>conftest.er1
17941 grep -v '^ *+' conftest.er1 >conftest.err
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest.$ac_objext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 ac_header_compiler=yes
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 ac_header_compiler=no
17966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17968 echo "${ECHO_T}$ac_header_compiler" >&6
17970 # Is the header present?
17971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17973 cat >conftest.$ac_ext <<_ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h. */
17979 #include <$ac_header>
17981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17984 grep -v '^ *+' conftest.er1 >conftest.err
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } >/dev/null; then
17989 if test -s conftest.err; then
17990 ac_cpp_err=$ac_c_preproc_warn_flag
17991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17998 if test -z "$ac_cpp_err"; then
17999 ac_header_preproc=yes
18001 echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18004 ac_header_preproc=no
18006 rm -f conftest.err conftest.$ac_ext
18007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18008 echo "${ECHO_T}$ac_header_preproc" >&6
18010 # So? What about this header?
18011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18017 ac_header_preproc=yes
18020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18034 ## --------------------------------------------- ##
18035 ## Report this to <http://www.openldap.org/its/> ##
18036 ## --------------------------------------------- ##
18039 sed "s/^/$as_me: WARNING: /" >&2
18042 echo "$as_me:$LINENO: checking for $ac_header" >&5
18043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 eval "$as_ac_Header=\$ac_header_preproc"
18049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18054 cat >>confdefs.h <<_ACEOF
18055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18063 if test $ac_cv_header_krb5_h = yes ; then
18065 for ac_header in heim_err.h
18067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18069 echo "$as_me:$LINENO: checking for $ac_header" >&5
18070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18077 # Is the header compilable?
18078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18080 cat >conftest.$ac_ext <<_ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086 $ac_includes_default
18087 #include <$ac_header>
18089 rm -f conftest.$ac_objext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18091 (eval $ac_compile) 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); } &&
18098 { ac_try='test -z "$ac_c_werror_flag"
18099 || test ! -s conftest.err'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try='test -s conftest.$ac_objext'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18111 ac_header_compiler=yes
18113 echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18116 ac_header_compiler=no
18118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18120 echo "${ECHO_T}$ac_header_compiler" >&6
18122 # Is the header present?
18123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 #include <$ac_header>
18133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } >/dev/null; then
18141 if test -s conftest.err; then
18142 ac_cpp_err=$ac_c_preproc_warn_flag
18143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18150 if test -z "$ac_cpp_err"; then
18151 ac_header_preproc=yes
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_header_preproc=no
18158 rm -f conftest.err conftest.$ac_ext
18159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18160 echo "${ECHO_T}$ac_header_preproc" >&6
18162 # So? What about this header?
18163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18169 ac_header_preproc=yes
18172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18186 ## --------------------------------------------- ##
18187 ## Report this to <http://www.openldap.org/its/> ##
18188 ## --------------------------------------------- ##
18191 sed "s/^/$as_me: WARNING: /" >&2
18194 echo "$as_me:$LINENO: checking for $ac_header" >&5
18195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18197 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 eval "$as_ac_Header=\$ac_header_preproc"
18201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18206 cat >>confdefs.h <<_ACEOF
18207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18214 if test $ac_cv_header_heim_err_h = yes ; then
18220 if test $krb5_impl = mit; then
18221 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18222 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18223 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 ac_check_lib_save_LIBS=$LIBS
18227 LIBS="-lk5crypto $LIBS"
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18246 (eval $ac_link) 2>conftest.er1
18248 grep -v '^ *+' conftest.er1 >conftest.err
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
18253 { ac_try='test -z "$ac_c_werror_flag"
18254 || test ! -s conftest.err'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest$ac_exeext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 ac_cv_lib_k5crypto_main=yes
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 ac_cv_lib_k5crypto_main=no
18273 rm -f conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275 LIBS=$ac_check_lib_save_LIBS
18277 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18278 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18279 if test $ac_cv_lib_k5crypto_main = yes; then
18280 krb5crypto=k5crypto
18286 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18287 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18288 if test "${ac_cv_lib_krb5_main+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18291 ac_check_lib_save_LIBS=$LIBS
18292 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18293 cat >conftest.$ac_ext <<_ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18311 (eval $ac_link) 2>conftest.er1
18313 grep -v '^ *+' conftest.er1 >conftest.err
18315 cat conftest.err >&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } &&
18318 { ac_try='test -z "$ac_c_werror_flag"
18319 || test ! -s conftest.err'
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; } &&
18325 { ac_try='test -s conftest$ac_exeext'
18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327 (eval $ac_try) 2>&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; }; then
18331 ac_cv_lib_krb5_main=yes
18333 echo "$as_me: failed program was:" >&5
18334 sed 's/^/| /' conftest.$ac_ext >&5
18336 ac_cv_lib_krb5_main=no
18338 rm -f conftest.err conftest.$ac_objext \
18339 conftest$ac_exeext conftest.$ac_ext
18340 LIBS=$ac_check_lib_save_LIBS
18342 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18343 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18344 if test $ac_cv_lib_krb5_main = yes; then
18346 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18352 elif test $krb5_impl = heimdal; then
18353 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18354 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18355 if test "${ac_cv_lib_des_main+set}" = set; then
18356 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 ac_check_lib_save_LIBS=$LIBS
18360 cat >conftest.$ac_ext <<_ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18376 rm -f conftest.$ac_objext conftest$ac_exeext
18377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18378 (eval $ac_link) 2>conftest.er1
18380 grep -v '^ *+' conftest.er1 >conftest.err
18382 cat conftest.err >&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } &&
18385 { ac_try='test -z "$ac_c_werror_flag"
18386 || test ! -s conftest.err'
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest$ac_exeext'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
18398 ac_cv_lib_des_main=yes
18400 echo "$as_me: failed program was:" >&5
18401 sed 's/^/| /' conftest.$ac_ext >&5
18403 ac_cv_lib_des_main=no
18405 rm -f conftest.err conftest.$ac_objext \
18406 conftest$ac_exeext conftest.$ac_ext
18407 LIBS=$ac_check_lib_save_LIBS
18409 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18410 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18411 if test $ac_cv_lib_des_main = yes; then
18418 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18419 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18420 if test "${ac_cv_lib_krb5_main+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 ac_check_lib_save_LIBS=$LIBS
18424 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18441 rm -f conftest.$ac_objext conftest$ac_exeext
18442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18443 (eval $ac_link) 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } &&
18450 { ac_try='test -z "$ac_c_werror_flag"
18451 || test ! -s conftest.err'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest$ac_exeext'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; }; then
18463 ac_cv_lib_krb5_main=yes
18465 echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18468 ac_cv_lib_krb5_main=no
18470 rm -f conftest.err conftest.$ac_objext \
18471 conftest$ac_exeext conftest.$ac_ext
18472 LIBS=$ac_check_lib_save_LIBS
18474 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18475 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18476 if test $ac_cv_lib_krb5_main = yes; then
18478 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18485 cat >>confdefs.h <<\_ACEOF
18486 #define HAVE_HEIMDAL_KERBEROS 1
18492 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18493 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18496 if test $have_krb5 = yes ; then
18500 cat >>confdefs.h <<\_ACEOF
18501 #define HAVE_KRB5 1
18505 if test $ol_with_kerberos = k5only ; then
18506 ol_with_kerberos=found
18509 elif test $ol_with_kerberos != auto ; then
18510 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18511 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18512 { (exit 1); exit 1; }; }
18519 if test $ol_link_krb5 = yes &&
18520 { test $ol_with_kerberos = yes ||
18521 test $ol_with_kerberos = auto ||
18522 test $ol_with_kerberos = k425; }; then
18526 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18530 echo "$as_me:$LINENO: checking for $ac_header" >&5
18531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18538 # Is the header compilable?
18539 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18541 cat >conftest.$ac_ext <<_ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 $ac_includes_default
18548 #include <$ac_header>
18550 rm -f conftest.$ac_objext
18551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18552 (eval $ac_compile) 2>conftest.er1
18554 grep -v '^ *+' conftest.er1 >conftest.err
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -z "$ac_c_werror_flag"
18560 || test ! -s conftest.err'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18572 ac_header_compiler=yes
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 ac_header_compiler=no
18579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18581 echo "${ECHO_T}$ac_header_compiler" >&6
18583 # Is the header present?
18584 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592 #include <$ac_header>
18594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } >/dev/null; then
18602 if test -s conftest.err; then
18603 ac_cpp_err=$ac_c_preproc_warn_flag
18604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18611 if test -z "$ac_cpp_err"; then
18612 ac_header_preproc=yes
18614 echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18617 ac_header_preproc=no
18619 rm -f conftest.err conftest.$ac_ext
18620 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18621 echo "${ECHO_T}$ac_header_preproc" >&6
18623 # So? What about this header?
18624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18630 ac_header_preproc=yes
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18647 ## --------------------------------------------- ##
18648 ## Report this to <http://www.openldap.org/its/> ##
18649 ## --------------------------------------------- ##
18652 sed "s/^/$as_me: WARNING: /" >&2
18655 echo "$as_me:$LINENO: checking for $ac_header" >&5
18656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 eval "$as_ac_Header=\$ac_header_preproc"
18662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18667 cat >>confdefs.h <<_ACEOF
18668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18676 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18677 if test $krb5_impl = mit; then
18678 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18679 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18680 if test "${ac_cv_lib_krb4_main+set}" = set; then
18681 echo $ECHO_N "(cached) $ECHO_C" >&6
18683 ac_check_lib_save_LIBS=$LIBS
18684 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18685 cat >conftest.$ac_ext <<_ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18701 rm -f conftest.$ac_objext conftest$ac_exeext
18702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18703 (eval $ac_link) 2>conftest.er1
18705 grep -v '^ *+' conftest.er1 >conftest.err
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try='test -z "$ac_c_werror_flag"
18711 || test ! -s conftest.err'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest$ac_exeext'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 ac_cv_lib_krb4_main=yes
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 ac_cv_lib_krb4_main=no
18730 rm -f conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18734 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18735 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18736 if test $ac_cv_lib_krb4_main = yes; then
18738 KRB4_LIBS="-lkrb4 -ldes425"
18744 elif test $krb5_impl = heimdal; then
18745 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18746 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18747 if test "${ac_cv_lib_krb4_main+set}" = set; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 ac_check_lib_save_LIBS=$LIBS
18751 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18752 cat >conftest.$ac_ext <<_ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18770 (eval $ac_link) 2>conftest.er1
18772 grep -v '^ *+' conftest.er1 >conftest.err
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
18777 { ac_try='test -z "$ac_c_werror_flag"
18778 || test ! -s conftest.err'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; } &&
18784 { ac_try='test -s conftest$ac_exeext'
18785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786 (eval $ac_try) 2>&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); }; }; then
18790 ac_cv_lib_krb4_main=yes
18792 echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 ac_cv_lib_krb4_main=no
18797 rm -f conftest.err conftest.$ac_objext \
18798 conftest$ac_exeext conftest.$ac_ext
18799 LIBS=$ac_check_lib_save_LIBS
18801 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18802 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18803 if test $ac_cv_lib_krb4_main = yes; then
18813 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18814 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18817 if test $have_k425 = yes ; then
18818 ol_with_kerberos=found
18822 cat >>confdefs.h <<\_ACEOF
18823 #define HAVE_KRB425 1
18827 cat >>confdefs.h <<\_ACEOF
18828 #define HAVE_KRB4 1
18832 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18833 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18834 if test "${ol_cv_var_des_debug+set}" = set; then
18835 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18847 #include <kerberosIV/krb.h>
18848 #include <kerberosIV/des.h>
18849 extern int des_debug;
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18863 (eval $ac_link) 2>conftest.er1
18865 grep -v '^ *+' conftest.er1 >conftest.err
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
18870 { ac_try='test -z "$ac_c_werror_flag"
18871 || test ! -s conftest.err'
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest$ac_exeext'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ol_cv_var_des_debug=yes
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ol_cv_var_des_debug=no
18890 rm -f conftest.err conftest.$ac_objext \
18891 conftest$ac_exeext conftest.$ac_ext
18895 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18896 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18898 if test $ol_cv_var_des_debug = yes ; then
18900 cat >>confdefs.h <<\_ACEOF
18901 #define HAVE_DES_DEBUG 1
18911 if test $ol_link_krb5 = yes ; then
18912 ol_with_kerberos=found
18915 case $ol_with_kerberos in yes | auto | k4 | kth)
18920 for ac_header in krb.h des.h krb-archaeology.h
18922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18924 echo "$as_me:$LINENO: checking for $ac_header" >&5
18925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18932 # Is the header compilable?
18933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18935 cat >conftest.$ac_ext <<_ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 $ac_includes_default
18942 #include <$ac_header>
18944 rm -f conftest.$ac_objext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946 (eval $ac_compile) 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_header_compiler=yes
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 ac_header_compiler=no
18973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975 echo "${ECHO_T}$ac_header_compiler" >&6
18977 # Is the header present?
18978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 #include <$ac_header>
18988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null; then
18996 if test -s conftest.err; then
18997 ac_cpp_err=$ac_c_preproc_warn_flag
18998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19005 if test -z "$ac_cpp_err"; then
19006 ac_header_preproc=yes
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_header_preproc=no
19013 rm -f conftest.err conftest.$ac_ext
19014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015 echo "${ECHO_T}$ac_header_preproc" >&6
19017 # So? What about this header?
19018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19024 ac_header_preproc=yes
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19041 ## --------------------------------------------- ##
19042 ## Report this to <http://www.openldap.org/its/> ##
19043 ## --------------------------------------------- ##
19046 sed "s/^/$as_me: WARNING: /" >&2
19049 echo "$as_me:$LINENO: checking for $ac_header" >&5
19050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 eval "$as_ac_Header=\$ac_header_preproc"
19056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19061 cat >>confdefs.h <<_ACEOF
19062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19070 if test $ac_cv_header_krb_h = yes ; then
19071 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19072 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19073 if test "${ac_cv_lib_krb_main+set}" = set; then
19074 echo $ECHO_N "(cached) $ECHO_C" >&6
19076 ac_check_lib_save_LIBS=$LIBS
19077 LIBS="-lkrb -ldes $LIBS"
19078 cat >conftest.$ac_ext <<_ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19096 (eval $ac_link) 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag"
19104 || test ! -s conftest.err'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest$ac_exeext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_lib_krb_main=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_lib_krb_main=no
19123 rm -f conftest.err conftest.$ac_objext \
19124 conftest$ac_exeext conftest.$ac_ext
19125 LIBS=$ac_check_lib_save_LIBS
19127 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19128 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19129 if test $ac_cv_lib_krb_main = yes; then
19136 if test $have_k4 = yes ; then
19137 ol_with_kerberos=found
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_KRB4 1
19146 KRB4_LIBS="-lkrb -ldes"
19148 if test $ac_cv_header_krb_archaeology_h = yes ; then
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_KTH_KERBEROS 1
19160 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19163 elif test $ol_enable_kbind = yes ; then
19164 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19165 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19166 { (exit 1); exit 1; }; }
19169 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19171 cat >>confdefs.h <<\_ACEOF
19172 #define HAVE_KERBEROS 1
19176 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19177 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19178 echo "$as_me: error: Kerberos detection failed" >&2;}
19179 { (exit 1); exit 1; }; }
19183 if test $ol_with_tls = yes ; then
19188 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19190 for ac_header in openssl/ssl.h
19192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19194 echo "$as_me:$LINENO: checking for $ac_header" >&5
19195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19202 # Is the header compilable?
19203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 $ac_includes_default
19212 #include <$ac_header>
19214 rm -f conftest.$ac_objext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216 (eval $ac_compile) 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
19223 { ac_try='test -z "$ac_c_werror_flag"
19224 || test ! -s conftest.err'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest.$ac_objext'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_header_compiler=yes
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_header_compiler=no
19243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19245 echo "${ECHO_T}$ac_header_compiler" >&6
19247 # Is the header present?
19248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 #include <$ac_header>
19258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } >/dev/null; then
19266 if test -s conftest.err; then
19267 ac_cpp_err=$ac_c_preproc_warn_flag
19268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19275 if test -z "$ac_cpp_err"; then
19276 ac_header_preproc=yes
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_header_preproc=no
19283 rm -f conftest.err conftest.$ac_ext
19284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19285 echo "${ECHO_T}$ac_header_preproc" >&6
19287 # So? What about this header?
19288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19294 ac_header_preproc=yes
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19311 ## --------------------------------------------- ##
19312 ## Report this to <http://www.openldap.org/its/> ##
19313 ## --------------------------------------------- ##
19316 sed "s/^/$as_me: WARNING: /" >&2
19319 echo "$as_me:$LINENO: checking for $ac_header" >&5
19320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 eval "$as_ac_Header=\$ac_header_preproc"
19326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19331 cat >>confdefs.h <<_ACEOF
19332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19340 if test $ac_cv_header_openssl_ssl_h = yes ; then
19341 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19342 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19343 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19344 echo $ECHO_N "(cached) $ECHO_C" >&6
19346 ac_check_lib_save_LIBS=$LIBS
19347 LIBS="-lssl -lcrypto $LIBS"
19348 cat >conftest.$ac_ext <<_ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19355 /* Override any gcc2 internal prototype to avoid an error. */
19359 /* We use char because int might match the return type of a gcc2
19360 builtin and then its argument prototype would still apply. */
19361 char SSL_library_init ();
19365 SSL_library_init ();
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19372 (eval $ac_link) 2>conftest.er1
19374 grep -v '^ *+' conftest.er1 >conftest.err
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } &&
19379 { ac_try='test -z "$ac_c_werror_flag"
19380 || test ! -s conftest.err'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; } &&
19386 { ac_try='test -s conftest$ac_exeext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_lib_ssl_SSL_library_init=yes
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_cv_lib_ssl_SSL_library_init=no
19399 rm -f conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19401 LIBS=$ac_check_lib_save_LIBS
19403 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19404 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19405 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19413 if test $have_openssl = no ; then
19414 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19415 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19416 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19417 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 ac_check_lib_save_LIBS=$LIBS
19420 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19421 cat >conftest.$ac_ext <<_ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19428 /* Override any gcc2 internal prototype to avoid an error. */
19432 /* We use char because int might match the return type of a gcc2
19433 builtin and then its argument prototype would still apply. */
19434 char ssl3_accept ();
19443 rm -f conftest.$ac_objext conftest$ac_exeext
19444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445 (eval $ac_link) 2>conftest.er1
19447 grep -v '^ *+' conftest.er1 >conftest.err
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } &&
19452 { ac_try='test -z "$ac_c_werror_flag"
19453 || test ! -s conftest.err'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; } &&
19459 { ac_try='test -s conftest$ac_exeext'
19460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461 (eval $ac_try) 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; }; then
19465 ac_cv_lib_ssl_ssl3_accept=yes
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19470 ac_cv_lib_ssl_ssl3_accept=no
19472 rm -f conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474 LIBS=$ac_check_lib_save_LIBS
19476 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19477 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19478 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19487 if test $have_openssl = yes ; then
19488 ol_with_tls=openssl
19492 cat >>confdefs.h <<\_ACEOF
19493 #define HAVE_OPENSSL 1
19497 if test $need_rsaref = yes; then
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE_RSAREF 1
19504 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19506 TLS_LIBS="-lssl -lcrypto"
19509 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19510 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19511 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 #ifdef HAVE_OPENSSL_SSL_H
19523 #include <openssl/ssl.h>
19526 /* Require 0.9.7d+ */
19527 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19528 char *__ssl_compat = "0.9.7d";
19532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19533 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19534 ol_cv_ssl_crl_compat=yes
19536 ol_cv_ssl_crl_compat=no
19541 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19542 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19544 if test $ol_cv_ssl_crl_compat = yes ; then
19546 cat >>confdefs.h <<\_ACEOF
19547 #define HAVE_OPENSSL_CRL 1
19556 if test $ol_link_tls = yes ; then
19558 cat >>confdefs.h <<\_ACEOF
19563 elif test $ol_with_tls = auto ; then
19564 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19565 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19567 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19568 elif test $ol_with_tls != no ; then
19569 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19570 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19571 { (exit 1); exit 1; }; }
19573 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19574 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19577 if test $ol_enable_lmpasswd != no; then
19578 if test $ol_link_tls != yes ; then
19579 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19580 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19581 { (exit 1); exit 1; }; }
19585 cat >>confdefs.h <<\_ACEOF
19586 #define SLAPD_LMHASH 1
19593 case $ol_with_threads in auto | yes | nt)
19596 echo "$as_me:$LINENO: checking for _beginthread" >&5
19597 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19598 if test "${ac_cv_func__beginthread+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19609 #define _beginthread innocuous__beginthread
19611 /* System header to define __stub macros and hopefully few prototypes,
19612 which can conflict with char _beginthread (); below.
19613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19614 <limits.h> exists even on freestanding compilers. */
19617 # include <limits.h>
19619 # include <assert.h>
19622 #undef _beginthread
19624 /* Override any gcc2 internal prototype to avoid an error. */
19629 /* We use char because int might match the return type of a gcc2
19630 builtin and then its argument prototype would still apply. */
19631 char _beginthread ();
19632 /* The GNU C library defines this for functions which it implements
19633 to always fail with ENOSYS. Some functions are actually named
19634 something starting with __ and the normal name is an alias. */
19635 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19638 char (*f) () = _beginthread;
19647 return f != _beginthread;
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654 (eval $ac_link) 2>conftest.er1
19656 grep -v '^ *+' conftest.er1 >conftest.err
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -z "$ac_c_werror_flag"
19662 || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest$ac_exeext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_cv_func__beginthread=yes
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_cv_func__beginthread=no
19681 rm -f conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
19684 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19685 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19688 if test $ac_cv_func__beginthread = yes ; then
19690 cat >>confdefs.h <<\_ACEOF
19691 #define HAVE_NT_THREADS 1
19694 ol_cv_nt_threads=yes
19698 if test "$ol_cv_nt_threads" = yes ; then
19700 ol_with_threads=found
19701 ol_with_yielding_select=yes
19704 cat >>confdefs.h <<\_ACEOF
19705 #define HAVE_NT_SERVICE_MANAGER 1
19709 cat >>confdefs.h <<\_ACEOF
19710 #define HAVE_NT_EVENT_LOG 1
19715 if test $ol_with_threads = nt ; then
19716 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19717 echo "$as_me: error: could not locate NT Threads" >&2;}
19718 { (exit 1); exit 1; }; }
19723 case $ol_with_threads in auto | yes | posix)
19726 for ac_header in pthread.h
19728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19730 echo "$as_me:$LINENO: checking for $ac_header" >&5
19731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19738 # Is the header compilable?
19739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19741 cat >conftest.$ac_ext <<_ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19747 $ac_includes_default
19748 #include <$ac_header>
19750 rm -f conftest.$ac_objext
19751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19752 (eval $ac_compile) 2>conftest.er1
19754 grep -v '^ *+' conftest.er1 >conftest.err
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -z "$ac_c_werror_flag"
19760 || test ! -s conftest.err'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; } &&
19766 { ac_try='test -s conftest.$ac_objext'
19767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19768 (eval $ac_try) 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; }; then
19772 ac_header_compiler=yes
19774 echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19777 ac_header_compiler=no
19779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19781 echo "${ECHO_T}$ac_header_compiler" >&6
19783 # Is the header present?
19784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19786 cat >conftest.$ac_ext <<_ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19792 #include <$ac_header>
19794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19797 grep -v '^ *+' conftest.er1 >conftest.err
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } >/dev/null; then
19802 if test -s conftest.err; then
19803 ac_cpp_err=$ac_c_preproc_warn_flag
19804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19811 if test -z "$ac_cpp_err"; then
19812 ac_header_preproc=yes
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_header_preproc=no
19819 rm -f conftest.err conftest.$ac_ext
19820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19821 echo "${ECHO_T}$ac_header_preproc" >&6
19823 # So? What about this header?
19824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19830 ac_header_preproc=yes
19833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19847 ## --------------------------------------------- ##
19848 ## Report this to <http://www.openldap.org/its/> ##
19849 ## --------------------------------------------- ##
19852 sed "s/^/$as_me: WARNING: /" >&2
19855 echo "$as_me:$LINENO: checking for $ac_header" >&5
19856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 eval "$as_ac_Header=\$ac_header_preproc"
19862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19867 cat >>confdefs.h <<_ACEOF
19868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19876 if test $ac_cv_header_pthread_h = yes ; then
19877 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19878 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19879 if test "${ol_cv_pthread_version+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19890 # include <pthread.h>
19896 int i = PTHREAD_CREATE_JOINABLE;
19902 rm -f conftest.$ac_objext
19903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19904 (eval $ac_compile) 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } &&
19911 { ac_try='test -z "$ac_c_werror_flag"
19912 || test ! -s conftest.err'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; } &&
19918 { ac_try='test -s conftest.$ac_objext'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 #include <pthread.h>
19934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19935 $EGREP "pthread_detach" >/dev/null 2>&1; then
19936 ol_cv_pthread_version=10
19938 ol_cv_pthread_version=8
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19947 cat >conftest.$ac_ext <<_ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19954 # include <pthread.h>
19955 # ifdef PTHREAD_CREATE_UNDETACHED
19960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19961 $EGREP "draft7" >/dev/null 2>&1; then
19962 ol_cv_pthread_version=7
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 #include <pthread.h>
19974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19975 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19976 ol_cv_pthread_version=6
19979 cat >conftest.$ac_ext <<_ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19986 # include <pthread.h>
19987 #ifdef PTHREAD_MUTEX_INITIALIZER
19992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19993 $EGREP "draft5" >/dev/null 2>&1; then
19994 ol_cv_pthread_version=5
19996 ol_cv_pthread_version=4
20007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20010 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20011 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20014 if test $ol_cv_pthread_version != 0 ; then
20016 cat >>confdefs.h <<_ACEOF
20017 #define HAVE_PTHREADS $ol_cv_pthread_version
20021 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20022 echo "$as_me: error: unknown pthread version" >&2;}
20023 { (exit 1); exit 1; }; }
20026 # consider threads found
20027 ol_with_threads=found
20030 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20031 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20032 if test "${ol_cv_header_linux_threads+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 #include <pthread.h>
20043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20045 ol_cv_header_linux_threads=yes
20047 ol_cv_header_linux_threads=no
20053 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20054 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20055 if test $ol_cv_header_linux_threads = yes; then
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_LINUX_THREADS 1
20064 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20065 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20066 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 cat >conftest.$ac_ext <<_ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075 #include <pthread.h>
20076 #ifdef _POSIX_THREAD_IS_GNU_PTH
20081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20082 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20083 ol_cv_header_gnu_pth_pthread_h=yes
20085 ol_cv_header_gnu_pth_pthread_h=no
20091 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20092 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20095 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20097 for ac_header in sched.h
20099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20101 echo "$as_me:$LINENO: checking for $ac_header" >&5
20102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20109 # Is the header compilable?
20110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20112 cat >conftest.$ac_ext <<_ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 $ac_includes_default
20119 #include <$ac_header>
20121 rm -f conftest.$ac_objext
20122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20123 (eval $ac_compile) 2>conftest.er1
20125 grep -v '^ *+' conftest.er1 >conftest.err
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
20130 { ac_try='test -z "$ac_c_werror_flag"
20131 || test ! -s conftest.err'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_header_compiler=no
20150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20152 echo "${ECHO_T}$ac_header_compiler" >&6
20154 # Is the header present?
20155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <$ac_header>
20165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20168 grep -v '^ *+' conftest.er1 >conftest.err
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } >/dev/null; then
20173 if test -s conftest.err; then
20174 ac_cpp_err=$ac_c_preproc_warn_flag
20175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20182 if test -z "$ac_cpp_err"; then
20183 ac_header_preproc=yes
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 ac_header_preproc=no
20190 rm -f conftest.err conftest.$ac_ext
20191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20192 echo "${ECHO_T}$ac_header_preproc" >&6
20194 # So? What about this header?
20195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20201 ac_header_preproc=yes
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20218 ## --------------------------------------------- ##
20219 ## Report this to <http://www.openldap.org/its/> ##
20220 ## --------------------------------------------- ##
20223 sed "s/^/$as_me: WARNING: /" >&2
20226 echo "$as_me:$LINENO: checking for $ac_header" >&5
20227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 eval "$as_ac_Header=\$ac_header_preproc"
20233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20238 cat >>confdefs.h <<_ACEOF
20239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20249 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20250 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20251 if test "${ol_cv_pthread_create+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20255 if test "$cross_compiling" = yes; then
20256 cat >conftest.$ac_ext <<_ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20263 /* pthread test headers */
20264 #include <pthread.h>
20265 #if HAVE_PTHREADS < 7
20269 #define NULL (void*)0
20272 static void *task(p)
20275 return (void *) (p == NULL);
20282 /* pthread test function */
20283 #ifndef PTHREAD_CREATE_DETACHED
20284 #define PTHREAD_CREATE_DETACHED 1
20288 int detach = PTHREAD_CREATE_DETACHED;
20290 #if HAVE_PTHREADS > 4
20291 /* Final pthreads */
20292 pthread_attr_t attr;
20294 status = pthread_attr_init(&attr);
20295 if( status ) return status;
20297 #if HAVE_PTHREADS < 7
20298 status = pthread_attr_setdetachstate(&attr, &detach);
20299 if( status < 0 ) status = errno;
20301 status = pthread_attr_setdetachstate(&attr, detach);
20303 if( status ) return status;
20304 status = pthread_create( &t, &attr, task, NULL );
20305 #if HAVE_PTHREADS < 7
20306 if( status < 0 ) status = errno;
20308 if( status ) return status;
20310 /* Draft 4 pthreads */
20311 status = pthread_create( &t, pthread_attr_default, task, NULL );
20312 if( status ) return errno;
20314 /* give thread a chance to complete */
20315 /* it should remain joinable and hence detachable */
20318 status = pthread_detach( &t );
20319 if( status ) return errno;
20322 #ifdef HAVE_LINUX_THREADS
20323 pthread_kill_other_threads_np();
20332 rm -f conftest.$ac_objext conftest$ac_exeext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20334 (eval $ac_link) 2>conftest.er1
20336 grep -v '^ *+' conftest.er1 >conftest.err
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -z "$ac_c_werror_flag"
20342 || test ! -s conftest.err'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try='test -s conftest$ac_exeext'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; }; then
20354 ol_cv_pthread_create=yes
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20359 ol_cv_pthread_create=no
20361 rm -f conftest.err conftest.$ac_objext \
20362 conftest$ac_exeext conftest.$ac_ext
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20371 /* pthread test headers */
20372 #include <pthread.h>
20373 #if HAVE_PTHREADS < 7
20377 #define NULL (void*)0
20380 static void *task(p)
20383 return (void *) (p == NULL);
20387 int main(argc, argv)
20392 /* pthread test function */
20393 #ifndef PTHREAD_CREATE_DETACHED
20394 #define PTHREAD_CREATE_DETACHED 1
20398 int detach = PTHREAD_CREATE_DETACHED;
20400 #if HAVE_PTHREADS > 4
20401 /* Final pthreads */
20402 pthread_attr_t attr;
20404 status = pthread_attr_init(&attr);
20405 if( status ) return status;
20407 #if HAVE_PTHREADS < 7
20408 status = pthread_attr_setdetachstate(&attr, &detach);
20409 if( status < 0 ) status = errno;
20411 status = pthread_attr_setdetachstate(&attr, detach);
20413 if( status ) return status;
20414 status = pthread_create( &t, &attr, task, NULL );
20415 #if HAVE_PTHREADS < 7
20416 if( status < 0 ) status = errno;
20418 if( status ) return status;
20420 /* Draft 4 pthreads */
20421 status = pthread_create( &t, pthread_attr_default, task, NULL );
20422 if( status ) return errno;
20424 /* give thread a chance to complete */
20425 /* it should remain joinable and hence detachable */
20428 status = pthread_detach( &t );
20429 if( status ) return errno;
20432 #ifdef HAVE_LINUX_THREADS
20433 pthread_kill_other_threads_np();
20441 rm -f conftest$ac_exeext
20442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20443 (eval $ac_link) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
20452 ol_cv_pthread_create=yes
20454 echo "$as_me: program exited with status $ac_status" >&5
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ( exit $ac_status )
20459 ol_cv_pthread_create=no
20461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20464 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20465 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20467 if test $ol_cv_pthread_create != no ; then
20468 ol_link_threads=posix
20469 ol_link_pthreads=""
20472 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20473 if test "$ol_link_threads" = no ; then
20475 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20476 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20477 if test "${ol_cv_pthread_kthread+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 LIBS="-kthread $LIBS"
20485 if test "$cross_compiling" = yes; then
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20493 /* pthread test headers */
20494 #include <pthread.h>
20495 #if HAVE_PTHREADS < 7
20499 #define NULL (void*)0
20502 static void *task(p)
20505 return (void *) (p == NULL);
20512 /* pthread test function */
20513 #ifndef PTHREAD_CREATE_DETACHED
20514 #define PTHREAD_CREATE_DETACHED 1
20518 int detach = PTHREAD_CREATE_DETACHED;
20520 #if HAVE_PTHREADS > 4
20521 /* Final pthreads */
20522 pthread_attr_t attr;
20524 status = pthread_attr_init(&attr);
20525 if( status ) return status;
20527 #if HAVE_PTHREADS < 7
20528 status = pthread_attr_setdetachstate(&attr, &detach);
20529 if( status < 0 ) status = errno;
20531 status = pthread_attr_setdetachstate(&attr, detach);
20533 if( status ) return status;
20534 status = pthread_create( &t, &attr, task, NULL );
20535 #if HAVE_PTHREADS < 7
20536 if( status < 0 ) status = errno;
20538 if( status ) return status;
20540 /* Draft 4 pthreads */
20541 status = pthread_create( &t, pthread_attr_default, task, NULL );
20542 if( status ) return errno;
20544 /* give thread a chance to complete */
20545 /* it should remain joinable and hence detachable */
20548 status = pthread_detach( &t );
20549 if( status ) return errno;
20552 #ifdef HAVE_LINUX_THREADS
20553 pthread_kill_other_threads_np();
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20564 (eval $ac_link) 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
20571 { ac_try='test -z "$ac_c_werror_flag"
20572 || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest$ac_exeext'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ol_cv_pthread_kthread=yes
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20589 ol_cv_pthread_kthread=no
20591 rm -f conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext conftest.$ac_ext
20594 cat >conftest.$ac_ext <<_ACEOF
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h. */
20601 /* pthread test headers */
20602 #include <pthread.h>
20603 #if HAVE_PTHREADS < 7
20607 #define NULL (void*)0
20610 static void *task(p)
20613 return (void *) (p == NULL);
20617 int main(argc, argv)
20622 /* pthread test function */
20623 #ifndef PTHREAD_CREATE_DETACHED
20624 #define PTHREAD_CREATE_DETACHED 1
20628 int detach = PTHREAD_CREATE_DETACHED;
20630 #if HAVE_PTHREADS > 4
20631 /* Final pthreads */
20632 pthread_attr_t attr;
20634 status = pthread_attr_init(&attr);
20635 if( status ) return status;
20637 #if HAVE_PTHREADS < 7
20638 status = pthread_attr_setdetachstate(&attr, &detach);
20639 if( status < 0 ) status = errno;
20641 status = pthread_attr_setdetachstate(&attr, detach);
20643 if( status ) return status;
20644 status = pthread_create( &t, &attr, task, NULL );
20645 #if HAVE_PTHREADS < 7
20646 if( status < 0 ) status = errno;
20648 if( status ) return status;
20650 /* Draft 4 pthreads */
20651 status = pthread_create( &t, pthread_attr_default, task, NULL );
20652 if( status ) return errno;
20654 /* give thread a chance to complete */
20655 /* it should remain joinable and hence detachable */
20658 status = pthread_detach( &t );
20659 if( status ) return errno;
20662 #ifdef HAVE_LINUX_THREADS
20663 pthread_kill_other_threads_np();
20671 rm -f conftest$ac_exeext
20672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20673 (eval $ac_link) 2>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 ol_cv_pthread_kthread=yes
20684 echo "$as_me: program exited with status $ac_status" >&5
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ( exit $ac_status )
20689 ol_cv_pthread_kthread=no
20691 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20698 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20699 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20701 if test $ol_cv_pthread_kthread = yes ; then
20702 ol_link_pthreads="-kthread"
20703 ol_link_threads=posix
20707 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20708 if test "$ol_link_threads" = no ; then
20710 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20711 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20712 if test "${ol_cv_pthread_pthread+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 LIBS="-pthread $LIBS"
20720 if test "$cross_compiling" = yes; then
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20728 /* pthread test headers */
20729 #include <pthread.h>
20730 #if HAVE_PTHREADS < 7
20734 #define NULL (void*)0
20737 static void *task(p)
20740 return (void *) (p == NULL);
20747 /* pthread test function */
20748 #ifndef PTHREAD_CREATE_DETACHED
20749 #define PTHREAD_CREATE_DETACHED 1
20753 int detach = PTHREAD_CREATE_DETACHED;
20755 #if HAVE_PTHREADS > 4
20756 /* Final pthreads */
20757 pthread_attr_t attr;
20759 status = pthread_attr_init(&attr);
20760 if( status ) return status;
20762 #if HAVE_PTHREADS < 7
20763 status = pthread_attr_setdetachstate(&attr, &detach);
20764 if( status < 0 ) status = errno;
20766 status = pthread_attr_setdetachstate(&attr, detach);
20768 if( status ) return status;
20769 status = pthread_create( &t, &attr, task, NULL );
20770 #if HAVE_PTHREADS < 7
20771 if( status < 0 ) status = errno;
20773 if( status ) return status;
20775 /* Draft 4 pthreads */
20776 status = pthread_create( &t, pthread_attr_default, task, NULL );
20777 if( status ) return errno;
20779 /* give thread a chance to complete */
20780 /* it should remain joinable and hence detachable */
20783 status = pthread_detach( &t );
20784 if( status ) return errno;
20787 #ifdef HAVE_LINUX_THREADS
20788 pthread_kill_other_threads_np();
20797 rm -f conftest.$ac_objext conftest$ac_exeext
20798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20799 (eval $ac_link) 2>conftest.er1
20801 grep -v '^ *+' conftest.er1 >conftest.err
20803 cat conftest.err >&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } &&
20806 { ac_try='test -z "$ac_c_werror_flag"
20807 || test ! -s conftest.err'
20808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; } &&
20813 { ac_try='test -s conftest$ac_exeext'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; }; then
20819 ol_cv_pthread_pthread=yes
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 ol_cv_pthread_pthread=no
20826 rm -f conftest.err conftest.$ac_objext \
20827 conftest$ac_exeext conftest.$ac_ext
20829 cat >conftest.$ac_ext <<_ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20836 /* pthread test headers */
20837 #include <pthread.h>
20838 #if HAVE_PTHREADS < 7
20842 #define NULL (void*)0
20845 static void *task(p)
20848 return (void *) (p == NULL);
20852 int main(argc, argv)
20857 /* pthread test function */
20858 #ifndef PTHREAD_CREATE_DETACHED
20859 #define PTHREAD_CREATE_DETACHED 1
20863 int detach = PTHREAD_CREATE_DETACHED;
20865 #if HAVE_PTHREADS > 4
20866 /* Final pthreads */
20867 pthread_attr_t attr;
20869 status = pthread_attr_init(&attr);
20870 if( status ) return status;
20872 #if HAVE_PTHREADS < 7
20873 status = pthread_attr_setdetachstate(&attr, &detach);
20874 if( status < 0 ) status = errno;
20876 status = pthread_attr_setdetachstate(&attr, detach);
20878 if( status ) return status;
20879 status = pthread_create( &t, &attr, task, NULL );
20880 #if HAVE_PTHREADS < 7
20881 if( status < 0 ) status = errno;
20883 if( status ) return status;
20885 /* Draft 4 pthreads */
20886 status = pthread_create( &t, pthread_attr_default, task, NULL );
20887 if( status ) return errno;
20889 /* give thread a chance to complete */
20890 /* it should remain joinable and hence detachable */
20893 status = pthread_detach( &t );
20894 if( status ) return errno;
20897 #ifdef HAVE_LINUX_THREADS
20898 pthread_kill_other_threads_np();
20906 rm -f conftest$ac_exeext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20908 (eval $ac_link) 2>&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20917 ol_cv_pthread_pthread=yes
20919 echo "$as_me: program exited with status $ac_status" >&5
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 ( exit $ac_status )
20924 ol_cv_pthread_pthread=no
20926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20933 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20934 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20936 if test $ol_cv_pthread_pthread = yes ; then
20937 ol_link_pthreads="-pthread"
20938 ol_link_threads=posix
20942 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20943 if test "$ol_link_threads" = no ; then
20945 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20946 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20947 if test "${ol_cv_pthread_pthreads+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 LIBS="-pthreads $LIBS"
20955 if test "$cross_compiling" = yes; then
20956 cat >conftest.$ac_ext <<_ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20963 /* pthread test headers */
20964 #include <pthread.h>
20965 #if HAVE_PTHREADS < 7
20969 #define NULL (void*)0
20972 static void *task(p)
20975 return (void *) (p == NULL);
20982 /* pthread test function */
20983 #ifndef PTHREAD_CREATE_DETACHED
20984 #define PTHREAD_CREATE_DETACHED 1
20988 int detach = PTHREAD_CREATE_DETACHED;
20990 #if HAVE_PTHREADS > 4
20991 /* Final pthreads */
20992 pthread_attr_t attr;
20994 status = pthread_attr_init(&attr);
20995 if( status ) return status;
20997 #if HAVE_PTHREADS < 7
20998 status = pthread_attr_setdetachstate(&attr, &detach);
20999 if( status < 0 ) status = errno;
21001 status = pthread_attr_setdetachstate(&attr, detach);
21003 if( status ) return status;
21004 status = pthread_create( &t, &attr, task, NULL );
21005 #if HAVE_PTHREADS < 7
21006 if( status < 0 ) status = errno;
21008 if( status ) return status;
21010 /* Draft 4 pthreads */
21011 status = pthread_create( &t, pthread_attr_default, task, NULL );
21012 if( status ) return errno;
21014 /* give thread a chance to complete */
21015 /* it should remain joinable and hence detachable */
21018 status = pthread_detach( &t );
21019 if( status ) return errno;
21022 #ifdef HAVE_LINUX_THREADS
21023 pthread_kill_other_threads_np();
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21034 (eval $ac_link) 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } &&
21041 { ac_try='test -z "$ac_c_werror_flag"
21042 || test ! -s conftest.err'
21043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); }; } &&
21048 { ac_try='test -s conftest$ac_exeext'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
21054 ol_cv_pthread_pthreads=yes
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21059 ol_cv_pthread_pthreads=no
21061 rm -f conftest.err conftest.$ac_objext \
21062 conftest$ac_exeext conftest.$ac_ext
21064 cat >conftest.$ac_ext <<_ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21071 /* pthread test headers */
21072 #include <pthread.h>
21073 #if HAVE_PTHREADS < 7
21077 #define NULL (void*)0
21080 static void *task(p)
21083 return (void *) (p == NULL);
21087 int main(argc, argv)
21092 /* pthread test function */
21093 #ifndef PTHREAD_CREATE_DETACHED
21094 #define PTHREAD_CREATE_DETACHED 1
21098 int detach = PTHREAD_CREATE_DETACHED;
21100 #if HAVE_PTHREADS > 4
21101 /* Final pthreads */
21102 pthread_attr_t attr;
21104 status = pthread_attr_init(&attr);
21105 if( status ) return status;
21107 #if HAVE_PTHREADS < 7
21108 status = pthread_attr_setdetachstate(&attr, &detach);
21109 if( status < 0 ) status = errno;
21111 status = pthread_attr_setdetachstate(&attr, detach);
21113 if( status ) return status;
21114 status = pthread_create( &t, &attr, task, NULL );
21115 #if HAVE_PTHREADS < 7
21116 if( status < 0 ) status = errno;
21118 if( status ) return status;
21120 /* Draft 4 pthreads */
21121 status = pthread_create( &t, pthread_attr_default, task, NULL );
21122 if( status ) return errno;
21124 /* give thread a chance to complete */
21125 /* it should remain joinable and hence detachable */
21128 status = pthread_detach( &t );
21129 if( status ) return errno;
21132 #ifdef HAVE_LINUX_THREADS
21133 pthread_kill_other_threads_np();
21141 rm -f conftest$ac_exeext
21142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21143 (eval $ac_link) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 ol_cv_pthread_pthreads=yes
21154 echo "$as_me: program exited with status $ac_status" >&5
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ( exit $ac_status )
21159 ol_cv_pthread_pthreads=no
21161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21168 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21169 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21171 if test $ol_cv_pthread_pthreads = yes ; then
21172 ol_link_pthreads="-pthreads"
21173 ol_link_threads=posix
21177 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21178 if test "$ol_link_threads" = no ; then
21180 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21181 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21182 if test "${ol_cv_pthread_mthreads+set}" = set; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 LIBS="-mthreads $LIBS"
21190 if test "$cross_compiling" = yes; then
21191 cat >conftest.$ac_ext <<_ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21198 /* pthread test headers */
21199 #include <pthread.h>
21200 #if HAVE_PTHREADS < 7
21204 #define NULL (void*)0
21207 static void *task(p)
21210 return (void *) (p == NULL);
21217 /* pthread test function */
21218 #ifndef PTHREAD_CREATE_DETACHED
21219 #define PTHREAD_CREATE_DETACHED 1
21223 int detach = PTHREAD_CREATE_DETACHED;
21225 #if HAVE_PTHREADS > 4
21226 /* Final pthreads */
21227 pthread_attr_t attr;
21229 status = pthread_attr_init(&attr);
21230 if( status ) return status;
21232 #if HAVE_PTHREADS < 7
21233 status = pthread_attr_setdetachstate(&attr, &detach);
21234 if( status < 0 ) status = errno;
21236 status = pthread_attr_setdetachstate(&attr, detach);
21238 if( status ) return status;
21239 status = pthread_create( &t, &attr, task, NULL );
21240 #if HAVE_PTHREADS < 7
21241 if( status < 0 ) status = errno;
21243 if( status ) return status;
21245 /* Draft 4 pthreads */
21246 status = pthread_create( &t, pthread_attr_default, task, NULL );
21247 if( status ) return errno;
21249 /* give thread a chance to complete */
21250 /* it should remain joinable and hence detachable */
21253 status = pthread_detach( &t );
21254 if( status ) return errno;
21257 #ifdef HAVE_LINUX_THREADS
21258 pthread_kill_other_threads_np();
21267 rm -f conftest.$ac_objext conftest$ac_exeext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21269 (eval $ac_link) 2>conftest.er1
21271 grep -v '^ *+' conftest.er1 >conftest.err
21273 cat conftest.err >&5
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } &&
21276 { ac_try='test -z "$ac_c_werror_flag"
21277 || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try='test -s conftest$ac_exeext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ol_cv_pthread_mthreads=yes
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ol_cv_pthread_mthreads=no
21296 rm -f conftest.err conftest.$ac_objext \
21297 conftest$ac_exeext conftest.$ac_ext
21299 cat >conftest.$ac_ext <<_ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21306 /* pthread test headers */
21307 #include <pthread.h>
21308 #if HAVE_PTHREADS < 7
21312 #define NULL (void*)0
21315 static void *task(p)
21318 return (void *) (p == NULL);
21322 int main(argc, argv)
21327 /* pthread test function */
21328 #ifndef PTHREAD_CREATE_DETACHED
21329 #define PTHREAD_CREATE_DETACHED 1
21333 int detach = PTHREAD_CREATE_DETACHED;
21335 #if HAVE_PTHREADS > 4
21336 /* Final pthreads */
21337 pthread_attr_t attr;
21339 status = pthread_attr_init(&attr);
21340 if( status ) return status;
21342 #if HAVE_PTHREADS < 7
21343 status = pthread_attr_setdetachstate(&attr, &detach);
21344 if( status < 0 ) status = errno;
21346 status = pthread_attr_setdetachstate(&attr, detach);
21348 if( status ) return status;
21349 status = pthread_create( &t, &attr, task, NULL );
21350 #if HAVE_PTHREADS < 7
21351 if( status < 0 ) status = errno;
21353 if( status ) return status;
21355 /* Draft 4 pthreads */
21356 status = pthread_create( &t, pthread_attr_default, task, NULL );
21357 if( status ) return errno;
21359 /* give thread a chance to complete */
21360 /* it should remain joinable and hence detachable */
21363 status = pthread_detach( &t );
21364 if( status ) return errno;
21367 #ifdef HAVE_LINUX_THREADS
21368 pthread_kill_other_threads_np();
21376 rm -f conftest$ac_exeext
21377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21378 (eval $ac_link) 2>&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 ol_cv_pthread_mthreads=yes
21389 echo "$as_me: program exited with status $ac_status" >&5
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 ( exit $ac_status )
21394 ol_cv_pthread_mthreads=no
21396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21403 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21404 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21406 if test $ol_cv_pthread_mthreads = yes ; then
21407 ol_link_pthreads="-mthreads"
21408 ol_link_threads=posix
21412 # Pthread try link: -thread (ol_cv_pthread_thread)
21413 if test "$ol_link_threads" = no ; then
21415 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21416 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21417 if test "${ol_cv_pthread_thread+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 LIBS="-thread $LIBS"
21425 if test "$cross_compiling" = yes; then
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21433 /* pthread test headers */
21434 #include <pthread.h>
21435 #if HAVE_PTHREADS < 7
21439 #define NULL (void*)0
21442 static void *task(p)
21445 return (void *) (p == NULL);
21452 /* pthread test function */
21453 #ifndef PTHREAD_CREATE_DETACHED
21454 #define PTHREAD_CREATE_DETACHED 1
21458 int detach = PTHREAD_CREATE_DETACHED;
21460 #if HAVE_PTHREADS > 4
21461 /* Final pthreads */
21462 pthread_attr_t attr;
21464 status = pthread_attr_init(&attr);
21465 if( status ) return status;
21467 #if HAVE_PTHREADS < 7
21468 status = pthread_attr_setdetachstate(&attr, &detach);
21469 if( status < 0 ) status = errno;
21471 status = pthread_attr_setdetachstate(&attr, detach);
21473 if( status ) return status;
21474 status = pthread_create( &t, &attr, task, NULL );
21475 #if HAVE_PTHREADS < 7
21476 if( status < 0 ) status = errno;
21478 if( status ) return status;
21480 /* Draft 4 pthreads */
21481 status = pthread_create( &t, pthread_attr_default, task, NULL );
21482 if( status ) return errno;
21484 /* give thread a chance to complete */
21485 /* it should remain joinable and hence detachable */
21488 status = pthread_detach( &t );
21489 if( status ) return errno;
21492 #ifdef HAVE_LINUX_THREADS
21493 pthread_kill_other_threads_np();
21502 rm -f conftest.$ac_objext conftest$ac_exeext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21504 (eval $ac_link) 2>conftest.er1
21506 grep -v '^ *+' conftest.er1 >conftest.err
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
21511 { ac_try='test -z "$ac_c_werror_flag"
21512 || test ! -s conftest.err'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try='test -s conftest$ac_exeext'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524 ol_cv_pthread_thread=yes
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ol_cv_pthread_thread=no
21531 rm -f conftest.err conftest.$ac_objext \
21532 conftest$ac_exeext conftest.$ac_ext
21534 cat >conftest.$ac_ext <<_ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21541 /* pthread test headers */
21542 #include <pthread.h>
21543 #if HAVE_PTHREADS < 7
21547 #define NULL (void*)0
21550 static void *task(p)
21553 return (void *) (p == NULL);
21557 int main(argc, argv)
21562 /* pthread test function */
21563 #ifndef PTHREAD_CREATE_DETACHED
21564 #define PTHREAD_CREATE_DETACHED 1
21568 int detach = PTHREAD_CREATE_DETACHED;
21570 #if HAVE_PTHREADS > 4
21571 /* Final pthreads */
21572 pthread_attr_t attr;
21574 status = pthread_attr_init(&attr);
21575 if( status ) return status;
21577 #if HAVE_PTHREADS < 7
21578 status = pthread_attr_setdetachstate(&attr, &detach);
21579 if( status < 0 ) status = errno;
21581 status = pthread_attr_setdetachstate(&attr, detach);
21583 if( status ) return status;
21584 status = pthread_create( &t, &attr, task, NULL );
21585 #if HAVE_PTHREADS < 7
21586 if( status < 0 ) status = errno;
21588 if( status ) return status;
21590 /* Draft 4 pthreads */
21591 status = pthread_create( &t, pthread_attr_default, task, NULL );
21592 if( status ) return errno;
21594 /* give thread a chance to complete */
21595 /* it should remain joinable and hence detachable */
21598 status = pthread_detach( &t );
21599 if( status ) return errno;
21602 #ifdef HAVE_LINUX_THREADS
21603 pthread_kill_other_threads_np();
21611 rm -f conftest$ac_exeext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613 (eval $ac_link) 2>&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 ol_cv_pthread_thread=yes
21624 echo "$as_me: program exited with status $ac_status" >&5
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21628 ( exit $ac_status )
21629 ol_cv_pthread_thread=no
21631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21638 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21639 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21641 if test $ol_cv_pthread_thread = yes ; then
21642 ol_link_pthreads="-thread"
21643 ol_link_threads=posix
21648 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21649 if test "$ol_link_threads" = no ; then
21650 # try -lpthread -lmach -lexc -lc_r
21651 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21652 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21653 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21661 if test "$cross_compiling" = yes; then
21662 cat >conftest.$ac_ext <<_ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21669 /* pthread test headers */
21670 #include <pthread.h>
21671 #if HAVE_PTHREADS < 7
21675 #define NULL (void*)0
21678 static void *task(p)
21681 return (void *) (p == NULL);
21688 /* pthread test function */
21689 #ifndef PTHREAD_CREATE_DETACHED
21690 #define PTHREAD_CREATE_DETACHED 1
21694 int detach = PTHREAD_CREATE_DETACHED;
21696 #if HAVE_PTHREADS > 4
21697 /* Final pthreads */
21698 pthread_attr_t attr;
21700 status = pthread_attr_init(&attr);
21701 if( status ) return status;
21703 #if HAVE_PTHREADS < 7
21704 status = pthread_attr_setdetachstate(&attr, &detach);
21705 if( status < 0 ) status = errno;
21707 status = pthread_attr_setdetachstate(&attr, detach);
21709 if( status ) return status;
21710 status = pthread_create( &t, &attr, task, NULL );
21711 #if HAVE_PTHREADS < 7
21712 if( status < 0 ) status = errno;
21714 if( status ) return status;
21716 /* Draft 4 pthreads */
21717 status = pthread_create( &t, pthread_attr_default, task, NULL );
21718 if( status ) return errno;
21720 /* give thread a chance to complete */
21721 /* it should remain joinable and hence detachable */
21724 status = pthread_detach( &t );
21725 if( status ) return errno;
21728 #ifdef HAVE_LINUX_THREADS
21729 pthread_kill_other_threads_np();
21738 rm -f conftest.$ac_objext conftest$ac_exeext
21739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21740 (eval $ac_link) 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } &&
21747 { ac_try='test -z "$ac_c_werror_flag"
21748 || test ! -s conftest.err'
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; } &&
21754 { ac_try='test -s conftest$ac_exeext'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21762 echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21765 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21767 rm -f conftest.err conftest.$ac_objext \
21768 conftest$ac_exeext conftest.$ac_ext
21770 cat >conftest.$ac_ext <<_ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21777 /* pthread test headers */
21778 #include <pthread.h>
21779 #if HAVE_PTHREADS < 7
21783 #define NULL (void*)0
21786 static void *task(p)
21789 return (void *) (p == NULL);
21793 int main(argc, argv)
21798 /* pthread test function */
21799 #ifndef PTHREAD_CREATE_DETACHED
21800 #define PTHREAD_CREATE_DETACHED 1
21804 int detach = PTHREAD_CREATE_DETACHED;
21806 #if HAVE_PTHREADS > 4
21807 /* Final pthreads */
21808 pthread_attr_t attr;
21810 status = pthread_attr_init(&attr);
21811 if( status ) return status;
21813 #if HAVE_PTHREADS < 7
21814 status = pthread_attr_setdetachstate(&attr, &detach);
21815 if( status < 0 ) status = errno;
21817 status = pthread_attr_setdetachstate(&attr, detach);
21819 if( status ) return status;
21820 status = pthread_create( &t, &attr, task, NULL );
21821 #if HAVE_PTHREADS < 7
21822 if( status < 0 ) status = errno;
21824 if( status ) return status;
21826 /* Draft 4 pthreads */
21827 status = pthread_create( &t, pthread_attr_default, task, NULL );
21828 if( status ) return errno;
21830 /* give thread a chance to complete */
21831 /* it should remain joinable and hence detachable */
21834 status = pthread_detach( &t );
21835 if( status ) return errno;
21838 #ifdef HAVE_LINUX_THREADS
21839 pthread_kill_other_threads_np();
21847 rm -f conftest$ac_exeext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21849 (eval $ac_link) 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21854 (eval $ac_try) 2>&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; }; then
21858 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21860 echo "$as_me: program exited with status $ac_status" >&5
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ( exit $ac_status )
21865 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21874 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21875 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21877 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21878 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21879 ol_link_threads=posix
21883 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21884 if test "$ol_link_threads" = no ; then
21885 # try -lpthread -lmach -lexc
21886 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21887 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21888 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21894 LIBS="-lpthread -lmach -lexc $LIBS"
21896 if test "$cross_compiling" = yes; then
21897 cat >conftest.$ac_ext <<_ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21904 /* pthread test headers */
21905 #include <pthread.h>
21906 #if HAVE_PTHREADS < 7
21910 #define NULL (void*)0
21913 static void *task(p)
21916 return (void *) (p == NULL);
21923 /* pthread test function */
21924 #ifndef PTHREAD_CREATE_DETACHED
21925 #define PTHREAD_CREATE_DETACHED 1
21929 int detach = PTHREAD_CREATE_DETACHED;
21931 #if HAVE_PTHREADS > 4
21932 /* Final pthreads */
21933 pthread_attr_t attr;
21935 status = pthread_attr_init(&attr);
21936 if( status ) return status;
21938 #if HAVE_PTHREADS < 7
21939 status = pthread_attr_setdetachstate(&attr, &detach);
21940 if( status < 0 ) status = errno;
21942 status = pthread_attr_setdetachstate(&attr, detach);
21944 if( status ) return status;
21945 status = pthread_create( &t, &attr, task, NULL );
21946 #if HAVE_PTHREADS < 7
21947 if( status < 0 ) status = errno;
21949 if( status ) return status;
21951 /* Draft 4 pthreads */
21952 status = pthread_create( &t, pthread_attr_default, task, NULL );
21953 if( status ) return errno;
21955 /* give thread a chance to complete */
21956 /* it should remain joinable and hence detachable */
21959 status = pthread_detach( &t );
21960 if( status ) return errno;
21963 #ifdef HAVE_LINUX_THREADS
21964 pthread_kill_other_threads_np();
21973 rm -f conftest.$ac_objext conftest$ac_exeext
21974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21975 (eval $ac_link) 2>conftest.er1
21977 grep -v '^ *+' conftest.er1 >conftest.err
21979 cat conftest.err >&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } &&
21982 { ac_try='test -z "$ac_c_werror_flag"
21983 || test ! -s conftest.err'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } &&
21989 { ac_try='test -s conftest$ac_exeext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ol_cv_pthread_lpthread_lmach_lexc=yes
21997 echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
22000 ol_cv_pthread_lpthread_lmach_lexc=no
22002 rm -f conftest.err conftest.$ac_objext \
22003 conftest$ac_exeext conftest.$ac_ext
22005 cat >conftest.$ac_ext <<_ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22012 /* pthread test headers */
22013 #include <pthread.h>
22014 #if HAVE_PTHREADS < 7
22018 #define NULL (void*)0
22021 static void *task(p)
22024 return (void *) (p == NULL);
22028 int main(argc, argv)
22033 /* pthread test function */
22034 #ifndef PTHREAD_CREATE_DETACHED
22035 #define PTHREAD_CREATE_DETACHED 1
22039 int detach = PTHREAD_CREATE_DETACHED;
22041 #if HAVE_PTHREADS > 4
22042 /* Final pthreads */
22043 pthread_attr_t attr;
22045 status = pthread_attr_init(&attr);
22046 if( status ) return status;
22048 #if HAVE_PTHREADS < 7
22049 status = pthread_attr_setdetachstate(&attr, &detach);
22050 if( status < 0 ) status = errno;
22052 status = pthread_attr_setdetachstate(&attr, detach);
22054 if( status ) return status;
22055 status = pthread_create( &t, &attr, task, NULL );
22056 #if HAVE_PTHREADS < 7
22057 if( status < 0 ) status = errno;
22059 if( status ) return status;
22061 /* Draft 4 pthreads */
22062 status = pthread_create( &t, pthread_attr_default, task, NULL );
22063 if( status ) return errno;
22065 /* give thread a chance to complete */
22066 /* it should remain joinable and hence detachable */
22069 status = pthread_detach( &t );
22070 if( status ) return errno;
22073 #ifdef HAVE_LINUX_THREADS
22074 pthread_kill_other_threads_np();
22082 rm -f conftest$ac_exeext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22084 (eval $ac_link) 2>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; }; then
22093 ol_cv_pthread_lpthread_lmach_lexc=yes
22095 echo "$as_me: program exited with status $ac_status" >&5
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ( exit $ac_status )
22100 ol_cv_pthread_lpthread_lmach_lexc=no
22102 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22109 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22110 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22112 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22113 ol_link_pthreads="-lpthread -lmach -lexc"
22114 ol_link_threads=posix
22119 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22120 if test "$ol_link_threads" = no ; then
22121 # try -lpthread -Wl,-woff,85
22122 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22123 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22124 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22130 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22132 if test "$cross_compiling" = yes; then
22133 cat >conftest.$ac_ext <<_ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22140 /* pthread test headers */
22141 #include <pthread.h>
22142 #if HAVE_PTHREADS < 7
22146 #define NULL (void*)0
22149 static void *task(p)
22152 return (void *) (p == NULL);
22159 /* pthread test function */
22160 #ifndef PTHREAD_CREATE_DETACHED
22161 #define PTHREAD_CREATE_DETACHED 1
22165 int detach = PTHREAD_CREATE_DETACHED;
22167 #if HAVE_PTHREADS > 4
22168 /* Final pthreads */
22169 pthread_attr_t attr;
22171 status = pthread_attr_init(&attr);
22172 if( status ) return status;
22174 #if HAVE_PTHREADS < 7
22175 status = pthread_attr_setdetachstate(&attr, &detach);
22176 if( status < 0 ) status = errno;
22178 status = pthread_attr_setdetachstate(&attr, detach);
22180 if( status ) return status;
22181 status = pthread_create( &t, &attr, task, NULL );
22182 #if HAVE_PTHREADS < 7
22183 if( status < 0 ) status = errno;
22185 if( status ) return status;
22187 /* Draft 4 pthreads */
22188 status = pthread_create( &t, pthread_attr_default, task, NULL );
22189 if( status ) return errno;
22191 /* give thread a chance to complete */
22192 /* it should remain joinable and hence detachable */
22195 status = pthread_detach( &t );
22196 if( status ) return errno;
22199 #ifdef HAVE_LINUX_THREADS
22200 pthread_kill_other_threads_np();
22209 rm -f conftest.$ac_objext conftest$ac_exeext
22210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22211 (eval $ac_link) 2>conftest.er1
22213 grep -v '^ *+' conftest.er1 >conftest.err
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } &&
22218 { ac_try='test -z "$ac_c_werror_flag"
22219 || test ! -s conftest.err'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; } &&
22225 { ac_try='test -s conftest$ac_exeext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 ol_cv_pthread_lib_lpthread_woff=yes
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 ol_cv_pthread_lib_lpthread_woff=no
22238 rm -f conftest.err conftest.$ac_objext \
22239 conftest$ac_exeext conftest.$ac_ext
22241 cat >conftest.$ac_ext <<_ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22248 /* pthread test headers */
22249 #include <pthread.h>
22250 #if HAVE_PTHREADS < 7
22254 #define NULL (void*)0
22257 static void *task(p)
22260 return (void *) (p == NULL);
22264 int main(argc, argv)
22269 /* pthread test function */
22270 #ifndef PTHREAD_CREATE_DETACHED
22271 #define PTHREAD_CREATE_DETACHED 1
22275 int detach = PTHREAD_CREATE_DETACHED;
22277 #if HAVE_PTHREADS > 4
22278 /* Final pthreads */
22279 pthread_attr_t attr;
22281 status = pthread_attr_init(&attr);
22282 if( status ) return status;
22284 #if HAVE_PTHREADS < 7
22285 status = pthread_attr_setdetachstate(&attr, &detach);
22286 if( status < 0 ) status = errno;
22288 status = pthread_attr_setdetachstate(&attr, detach);
22290 if( status ) return status;
22291 status = pthread_create( &t, &attr, task, NULL );
22292 #if HAVE_PTHREADS < 7
22293 if( status < 0 ) status = errno;
22295 if( status ) return status;
22297 /* Draft 4 pthreads */
22298 status = pthread_create( &t, pthread_attr_default, task, NULL );
22299 if( status ) return errno;
22301 /* give thread a chance to complete */
22302 /* it should remain joinable and hence detachable */
22305 status = pthread_detach( &t );
22306 if( status ) return errno;
22309 #ifdef HAVE_LINUX_THREADS
22310 pthread_kill_other_threads_np();
22318 rm -f conftest$ac_exeext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320 (eval $ac_link) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325 (eval $ac_try) 2>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; }; then
22329 ol_cv_pthread_lib_lpthread_woff=yes
22331 echo "$as_me: program exited with status $ac_status" >&5
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 ( exit $ac_status )
22336 ol_cv_pthread_lib_lpthread_woff=no
22338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22345 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22346 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22348 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22349 ol_link_pthreads="-lpthread -Wl,-woff,85"
22350 ol_link_threads=posix
22355 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22356 if test "$ol_link_threads" = no ; then
22358 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22359 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22360 if test "${ol_cv_pthread_lpthread+set}" = set; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 LIBS="-lpthread $LIBS"
22368 if test "$cross_compiling" = yes; then
22369 cat >conftest.$ac_ext <<_ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22376 /* pthread test headers */
22377 #include <pthread.h>
22378 #if HAVE_PTHREADS < 7
22382 #define NULL (void*)0
22385 static void *task(p)
22388 return (void *) (p == NULL);
22395 /* pthread test function */
22396 #ifndef PTHREAD_CREATE_DETACHED
22397 #define PTHREAD_CREATE_DETACHED 1
22401 int detach = PTHREAD_CREATE_DETACHED;
22403 #if HAVE_PTHREADS > 4
22404 /* Final pthreads */
22405 pthread_attr_t attr;
22407 status = pthread_attr_init(&attr);
22408 if( status ) return status;
22410 #if HAVE_PTHREADS < 7
22411 status = pthread_attr_setdetachstate(&attr, &detach);
22412 if( status < 0 ) status = errno;
22414 status = pthread_attr_setdetachstate(&attr, detach);
22416 if( status ) return status;
22417 status = pthread_create( &t, &attr, task, NULL );
22418 #if HAVE_PTHREADS < 7
22419 if( status < 0 ) status = errno;
22421 if( status ) return status;
22423 /* Draft 4 pthreads */
22424 status = pthread_create( &t, pthread_attr_default, task, NULL );
22425 if( status ) return errno;
22427 /* give thread a chance to complete */
22428 /* it should remain joinable and hence detachable */
22431 status = pthread_detach( &t );
22432 if( status ) return errno;
22435 #ifdef HAVE_LINUX_THREADS
22436 pthread_kill_other_threads_np();
22445 rm -f conftest.$ac_objext conftest$ac_exeext
22446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22447 (eval $ac_link) 2>conftest.er1
22449 grep -v '^ *+' conftest.er1 >conftest.err
22451 cat conftest.err >&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } &&
22454 { ac_try='test -z "$ac_c_werror_flag"
22455 || test ! -s conftest.err'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; } &&
22461 { ac_try='test -s conftest$ac_exeext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ol_cv_pthread_lpthread=yes
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22472 ol_cv_pthread_lpthread=no
22474 rm -f conftest.err conftest.$ac_objext \
22475 conftest$ac_exeext conftest.$ac_ext
22477 cat >conftest.$ac_ext <<_ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22484 /* pthread test headers */
22485 #include <pthread.h>
22486 #if HAVE_PTHREADS < 7
22490 #define NULL (void*)0
22493 static void *task(p)
22496 return (void *) (p == NULL);
22500 int main(argc, argv)
22505 /* pthread test function */
22506 #ifndef PTHREAD_CREATE_DETACHED
22507 #define PTHREAD_CREATE_DETACHED 1
22511 int detach = PTHREAD_CREATE_DETACHED;
22513 #if HAVE_PTHREADS > 4
22514 /* Final pthreads */
22515 pthread_attr_t attr;
22517 status = pthread_attr_init(&attr);
22518 if( status ) return status;
22520 #if HAVE_PTHREADS < 7
22521 status = pthread_attr_setdetachstate(&attr, &detach);
22522 if( status < 0 ) status = errno;
22524 status = pthread_attr_setdetachstate(&attr, detach);
22526 if( status ) return status;
22527 status = pthread_create( &t, &attr, task, NULL );
22528 #if HAVE_PTHREADS < 7
22529 if( status < 0 ) status = errno;
22531 if( status ) return status;
22533 /* Draft 4 pthreads */
22534 status = pthread_create( &t, pthread_attr_default, task, NULL );
22535 if( status ) return errno;
22537 /* give thread a chance to complete */
22538 /* it should remain joinable and hence detachable */
22541 status = pthread_detach( &t );
22542 if( status ) return errno;
22545 #ifdef HAVE_LINUX_THREADS
22546 pthread_kill_other_threads_np();
22554 rm -f conftest$ac_exeext
22555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22556 (eval $ac_link) 2>&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22565 ol_cv_pthread_lpthread=yes
22567 echo "$as_me: program exited with status $ac_status" >&5
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22571 ( exit $ac_status )
22572 ol_cv_pthread_lpthread=no
22574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22581 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22582 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22584 if test $ol_cv_pthread_lpthread = yes ; then
22585 ol_link_pthreads="-lpthread"
22586 ol_link_threads=posix
22590 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22591 if test "$ol_link_threads" = no ; then
22593 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22594 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22595 if test "${ol_cv_pthread_lc_r+set}" = set; then
22596 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 if test "$cross_compiling" = yes; then
22604 cat >conftest.$ac_ext <<_ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22611 /* pthread test headers */
22612 #include <pthread.h>
22613 #if HAVE_PTHREADS < 7
22617 #define NULL (void*)0
22620 static void *task(p)
22623 return (void *) (p == NULL);
22630 /* pthread test function */
22631 #ifndef PTHREAD_CREATE_DETACHED
22632 #define PTHREAD_CREATE_DETACHED 1
22636 int detach = PTHREAD_CREATE_DETACHED;
22638 #if HAVE_PTHREADS > 4
22639 /* Final pthreads */
22640 pthread_attr_t attr;
22642 status = pthread_attr_init(&attr);
22643 if( status ) return status;
22645 #if HAVE_PTHREADS < 7
22646 status = pthread_attr_setdetachstate(&attr, &detach);
22647 if( status < 0 ) status = errno;
22649 status = pthread_attr_setdetachstate(&attr, detach);
22651 if( status ) return status;
22652 status = pthread_create( &t, &attr, task, NULL );
22653 #if HAVE_PTHREADS < 7
22654 if( status < 0 ) status = errno;
22656 if( status ) return status;
22658 /* Draft 4 pthreads */
22659 status = pthread_create( &t, pthread_attr_default, task, NULL );
22660 if( status ) return errno;
22662 /* give thread a chance to complete */
22663 /* it should remain joinable and hence detachable */
22666 status = pthread_detach( &t );
22667 if( status ) return errno;
22670 #ifdef HAVE_LINUX_THREADS
22671 pthread_kill_other_threads_np();
22680 rm -f conftest.$ac_objext conftest$ac_exeext
22681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22682 (eval $ac_link) 2>conftest.er1
22684 grep -v '^ *+' conftest.er1 >conftest.err
22686 cat conftest.err >&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); } &&
22689 { ac_try='test -z "$ac_c_werror_flag"
22690 || test ! -s conftest.err'
22691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692 (eval $ac_try) 2>&5
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); }; } &&
22696 { ac_try='test -s conftest$ac_exeext'
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; }; then
22702 ol_cv_pthread_lc_r=yes
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 ol_cv_pthread_lc_r=no
22709 rm -f conftest.err conftest.$ac_objext \
22710 conftest$ac_exeext conftest.$ac_ext
22712 cat >conftest.$ac_ext <<_ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22719 /* pthread test headers */
22720 #include <pthread.h>
22721 #if HAVE_PTHREADS < 7
22725 #define NULL (void*)0
22728 static void *task(p)
22731 return (void *) (p == NULL);
22735 int main(argc, argv)
22740 /* pthread test function */
22741 #ifndef PTHREAD_CREATE_DETACHED
22742 #define PTHREAD_CREATE_DETACHED 1
22746 int detach = PTHREAD_CREATE_DETACHED;
22748 #if HAVE_PTHREADS > 4
22749 /* Final pthreads */
22750 pthread_attr_t attr;
22752 status = pthread_attr_init(&attr);
22753 if( status ) return status;
22755 #if HAVE_PTHREADS < 7
22756 status = pthread_attr_setdetachstate(&attr, &detach);
22757 if( status < 0 ) status = errno;
22759 status = pthread_attr_setdetachstate(&attr, detach);
22761 if( status ) return status;
22762 status = pthread_create( &t, &attr, task, NULL );
22763 #if HAVE_PTHREADS < 7
22764 if( status < 0 ) status = errno;
22766 if( status ) return status;
22768 /* Draft 4 pthreads */
22769 status = pthread_create( &t, pthread_attr_default, task, NULL );
22770 if( status ) return errno;
22772 /* give thread a chance to complete */
22773 /* it should remain joinable and hence detachable */
22776 status = pthread_detach( &t );
22777 if( status ) return errno;
22780 #ifdef HAVE_LINUX_THREADS
22781 pthread_kill_other_threads_np();
22789 rm -f conftest$ac_exeext
22790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22791 (eval $ac_link) 2>&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 ol_cv_pthread_lc_r=yes
22802 echo "$as_me: program exited with status $ac_status" >&5
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 ( exit $ac_status )
22807 ol_cv_pthread_lc_r=no
22809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22816 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22817 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22819 if test $ol_cv_pthread_lc_r = yes ; then
22820 ol_link_pthreads="-lc_r"
22821 ol_link_threads=posix
22826 # Pthread try link: -threads (ol_cv_pthread_threads)
22827 if test "$ol_link_threads" = no ; then
22829 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22830 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22831 if test "${ol_cv_pthread_threads+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22837 LIBS="-threads $LIBS"
22839 if test "$cross_compiling" = yes; then
22840 cat >conftest.$ac_ext <<_ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22847 /* pthread test headers */
22848 #include <pthread.h>
22849 #if HAVE_PTHREADS < 7
22853 #define NULL (void*)0
22856 static void *task(p)
22859 return (void *) (p == NULL);
22866 /* pthread test function */
22867 #ifndef PTHREAD_CREATE_DETACHED
22868 #define PTHREAD_CREATE_DETACHED 1
22872 int detach = PTHREAD_CREATE_DETACHED;
22874 #if HAVE_PTHREADS > 4
22875 /* Final pthreads */
22876 pthread_attr_t attr;
22878 status = pthread_attr_init(&attr);
22879 if( status ) return status;
22881 #if HAVE_PTHREADS < 7
22882 status = pthread_attr_setdetachstate(&attr, &detach);
22883 if( status < 0 ) status = errno;
22885 status = pthread_attr_setdetachstate(&attr, detach);
22887 if( status ) return status;
22888 status = pthread_create( &t, &attr, task, NULL );
22889 #if HAVE_PTHREADS < 7
22890 if( status < 0 ) status = errno;
22892 if( status ) return status;
22894 /* Draft 4 pthreads */
22895 status = pthread_create( &t, pthread_attr_default, task, NULL );
22896 if( status ) return errno;
22898 /* give thread a chance to complete */
22899 /* it should remain joinable and hence detachable */
22902 status = pthread_detach( &t );
22903 if( status ) return errno;
22906 #ifdef HAVE_LINUX_THREADS
22907 pthread_kill_other_threads_np();
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22918 (eval $ac_link) 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
22925 { ac_try='test -z "$ac_c_werror_flag"
22926 || test ! -s conftest.err'
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; } &&
22932 { ac_try='test -s conftest$ac_exeext'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
22938 ol_cv_pthread_threads=yes
22940 echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22943 ol_cv_pthread_threads=no
22945 rm -f conftest.err conftest.$ac_objext \
22946 conftest$ac_exeext conftest.$ac_ext
22948 cat >conftest.$ac_ext <<_ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22955 /* pthread test headers */
22956 #include <pthread.h>
22957 #if HAVE_PTHREADS < 7
22961 #define NULL (void*)0
22964 static void *task(p)
22967 return (void *) (p == NULL);
22971 int main(argc, argv)
22976 /* pthread test function */
22977 #ifndef PTHREAD_CREATE_DETACHED
22978 #define PTHREAD_CREATE_DETACHED 1
22982 int detach = PTHREAD_CREATE_DETACHED;
22984 #if HAVE_PTHREADS > 4
22985 /* Final pthreads */
22986 pthread_attr_t attr;
22988 status = pthread_attr_init(&attr);
22989 if( status ) return status;
22991 #if HAVE_PTHREADS < 7
22992 status = pthread_attr_setdetachstate(&attr, &detach);
22993 if( status < 0 ) status = errno;
22995 status = pthread_attr_setdetachstate(&attr, detach);
22997 if( status ) return status;
22998 status = pthread_create( &t, &attr, task, NULL );
22999 #if HAVE_PTHREADS < 7
23000 if( status < 0 ) status = errno;
23002 if( status ) return status;
23004 /* Draft 4 pthreads */
23005 status = pthread_create( &t, pthread_attr_default, task, NULL );
23006 if( status ) return errno;
23008 /* give thread a chance to complete */
23009 /* it should remain joinable and hence detachable */
23012 status = pthread_detach( &t );
23013 if( status ) return errno;
23016 #ifdef HAVE_LINUX_THREADS
23017 pthread_kill_other_threads_np();
23025 rm -f conftest$ac_exeext
23026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23027 (eval $ac_link) 2>&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23032 (eval $ac_try) 2>&5
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); }; }; then
23036 ol_cv_pthread_threads=yes
23038 echo "$as_me: program exited with status $ac_status" >&5
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23042 ( exit $ac_status )
23043 ol_cv_pthread_threads=no
23045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23052 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23053 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23055 if test $ol_cv_pthread_threads = yes ; then
23056 ol_link_pthreads="-threads"
23057 ol_link_threads=posix
23062 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23063 if test "$ol_link_threads" = no ; then
23064 # try -lpthreads -lmach -lexc -lc_r
23065 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23066 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23067 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23068 echo $ECHO_N "(cached) $ECHO_C" >&6
23073 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23075 if test "$cross_compiling" = yes; then
23076 cat >conftest.$ac_ext <<_ACEOF
23079 cat confdefs.h >>conftest.$ac_ext
23080 cat >>conftest.$ac_ext <<_ACEOF
23081 /* end confdefs.h. */
23083 /* pthread test headers */
23084 #include <pthread.h>
23085 #if HAVE_PTHREADS < 7
23089 #define NULL (void*)0
23092 static void *task(p)
23095 return (void *) (p == NULL);
23102 /* pthread test function */
23103 #ifndef PTHREAD_CREATE_DETACHED
23104 #define PTHREAD_CREATE_DETACHED 1
23108 int detach = PTHREAD_CREATE_DETACHED;
23110 #if HAVE_PTHREADS > 4
23111 /* Final pthreads */
23112 pthread_attr_t attr;
23114 status = pthread_attr_init(&attr);
23115 if( status ) return status;
23117 #if HAVE_PTHREADS < 7
23118 status = pthread_attr_setdetachstate(&attr, &detach);
23119 if( status < 0 ) status = errno;
23121 status = pthread_attr_setdetachstate(&attr, detach);
23123 if( status ) return status;
23124 status = pthread_create( &t, &attr, task, NULL );
23125 #if HAVE_PTHREADS < 7
23126 if( status < 0 ) status = errno;
23128 if( status ) return status;
23130 /* Draft 4 pthreads */
23131 status = pthread_create( &t, pthread_attr_default, task, NULL );
23132 if( status ) return errno;
23134 /* give thread a chance to complete */
23135 /* it should remain joinable and hence detachable */
23138 status = pthread_detach( &t );
23139 if( status ) return errno;
23142 #ifdef HAVE_LINUX_THREADS
23143 pthread_kill_other_threads_np();
23152 rm -f conftest.$ac_objext conftest$ac_exeext
23153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23154 (eval $ac_link) 2>conftest.er1
23156 grep -v '^ *+' conftest.er1 >conftest.err
23158 cat conftest.err >&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } &&
23161 { ac_try='test -z "$ac_c_werror_flag"
23162 || test ! -s conftest.err'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; } &&
23168 { ac_try='test -s conftest$ac_exeext'
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23181 rm -f conftest.err conftest.$ac_objext \
23182 conftest$ac_exeext conftest.$ac_ext
23184 cat >conftest.$ac_ext <<_ACEOF
23187 cat confdefs.h >>conftest.$ac_ext
23188 cat >>conftest.$ac_ext <<_ACEOF
23189 /* end confdefs.h. */
23191 /* pthread test headers */
23192 #include <pthread.h>
23193 #if HAVE_PTHREADS < 7
23197 #define NULL (void*)0
23200 static void *task(p)
23203 return (void *) (p == NULL);
23207 int main(argc, argv)
23212 /* pthread test function */
23213 #ifndef PTHREAD_CREATE_DETACHED
23214 #define PTHREAD_CREATE_DETACHED 1
23218 int detach = PTHREAD_CREATE_DETACHED;
23220 #if HAVE_PTHREADS > 4
23221 /* Final pthreads */
23222 pthread_attr_t attr;
23224 status = pthread_attr_init(&attr);
23225 if( status ) return status;
23227 #if HAVE_PTHREADS < 7
23228 status = pthread_attr_setdetachstate(&attr, &detach);
23229 if( status < 0 ) status = errno;
23231 status = pthread_attr_setdetachstate(&attr, detach);
23233 if( status ) return status;
23234 status = pthread_create( &t, &attr, task, NULL );
23235 #if HAVE_PTHREADS < 7
23236 if( status < 0 ) status = errno;
23238 if( status ) return status;
23240 /* Draft 4 pthreads */
23241 status = pthread_create( &t, pthread_attr_default, task, NULL );
23242 if( status ) return errno;
23244 /* give thread a chance to complete */
23245 /* it should remain joinable and hence detachable */
23248 status = pthread_detach( &t );
23249 if( status ) return errno;
23252 #ifdef HAVE_LINUX_THREADS
23253 pthread_kill_other_threads_np();
23261 rm -f conftest$ac_exeext
23262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23263 (eval $ac_link) 2>&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268 (eval $ac_try) 2>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; }; then
23272 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23274 echo "$as_me: program exited with status $ac_status" >&5
23275 echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23278 ( exit $ac_status )
23279 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23288 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23289 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23291 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23292 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23293 ol_link_threads=posix
23297 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23298 if test "$ol_link_threads" = no ; then
23299 # try -lpthreads -lmach -lexc
23300 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23301 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23302 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23303 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 LIBS="-lpthreads -lmach -lexc $LIBS"
23310 if test "$cross_compiling" = yes; then
23311 cat >conftest.$ac_ext <<_ACEOF
23314 cat confdefs.h >>conftest.$ac_ext
23315 cat >>conftest.$ac_ext <<_ACEOF
23316 /* end confdefs.h. */
23318 /* pthread test headers */
23319 #include <pthread.h>
23320 #if HAVE_PTHREADS < 7
23324 #define NULL (void*)0
23327 static void *task(p)
23330 return (void *) (p == NULL);
23337 /* pthread test function */
23338 #ifndef PTHREAD_CREATE_DETACHED
23339 #define PTHREAD_CREATE_DETACHED 1
23343 int detach = PTHREAD_CREATE_DETACHED;
23345 #if HAVE_PTHREADS > 4
23346 /* Final pthreads */
23347 pthread_attr_t attr;
23349 status = pthread_attr_init(&attr);
23350 if( status ) return status;
23352 #if HAVE_PTHREADS < 7
23353 status = pthread_attr_setdetachstate(&attr, &detach);
23354 if( status < 0 ) status = errno;
23356 status = pthread_attr_setdetachstate(&attr, detach);
23358 if( status ) return status;
23359 status = pthread_create( &t, &attr, task, NULL );
23360 #if HAVE_PTHREADS < 7
23361 if( status < 0 ) status = errno;
23363 if( status ) return status;
23365 /* Draft 4 pthreads */
23366 status = pthread_create( &t, pthread_attr_default, task, NULL );
23367 if( status ) return errno;
23369 /* give thread a chance to complete */
23370 /* it should remain joinable and hence detachable */
23373 status = pthread_detach( &t );
23374 if( status ) return errno;
23377 #ifdef HAVE_LINUX_THREADS
23378 pthread_kill_other_threads_np();
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23389 (eval $ac_link) 2>conftest.er1
23391 grep -v '^ *+' conftest.er1 >conftest.err
23393 cat conftest.err >&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } &&
23396 { ac_try='test -z "$ac_c_werror_flag"
23397 || test ! -s conftest.err'
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; } &&
23403 { ac_try='test -s conftest$ac_exeext'
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ol_cv_pthread_lpthreads_lmach_lexc=yes
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23414 ol_cv_pthread_lpthreads_lmach_lexc=no
23416 rm -f conftest.err conftest.$ac_objext \
23417 conftest$ac_exeext conftest.$ac_ext
23419 cat >conftest.$ac_ext <<_ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23426 /* pthread test headers */
23427 #include <pthread.h>
23428 #if HAVE_PTHREADS < 7
23432 #define NULL (void*)0
23435 static void *task(p)
23438 return (void *) (p == NULL);
23442 int main(argc, argv)
23447 /* pthread test function */
23448 #ifndef PTHREAD_CREATE_DETACHED
23449 #define PTHREAD_CREATE_DETACHED 1
23453 int detach = PTHREAD_CREATE_DETACHED;
23455 #if HAVE_PTHREADS > 4
23456 /* Final pthreads */
23457 pthread_attr_t attr;
23459 status = pthread_attr_init(&attr);
23460 if( status ) return status;
23462 #if HAVE_PTHREADS < 7
23463 status = pthread_attr_setdetachstate(&attr, &detach);
23464 if( status < 0 ) status = errno;
23466 status = pthread_attr_setdetachstate(&attr, detach);
23468 if( status ) return status;
23469 status = pthread_create( &t, &attr, task, NULL );
23470 #if HAVE_PTHREADS < 7
23471 if( status < 0 ) status = errno;
23473 if( status ) return status;
23475 /* Draft 4 pthreads */
23476 status = pthread_create( &t, pthread_attr_default, task, NULL );
23477 if( status ) return errno;
23479 /* give thread a chance to complete */
23480 /* it should remain joinable and hence detachable */
23483 status = pthread_detach( &t );
23484 if( status ) return errno;
23487 #ifdef HAVE_LINUX_THREADS
23488 pthread_kill_other_threads_np();
23496 rm -f conftest$ac_exeext
23497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23498 (eval $ac_link) 2>&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23503 (eval $ac_try) 2>&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); }; }; then
23507 ol_cv_pthread_lpthreads_lmach_lexc=yes
23509 echo "$as_me: program exited with status $ac_status" >&5
23510 echo "$as_me: failed program was:" >&5
23511 sed 's/^/| /' conftest.$ac_ext >&5
23513 ( exit $ac_status )
23514 ol_cv_pthread_lpthreads_lmach_lexc=no
23516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23523 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23524 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23526 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23527 ol_link_pthreads="-lpthreads -lmach -lexc"
23528 ol_link_threads=posix
23532 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23533 if test "$ol_link_threads" = no ; then
23534 # try -lpthreads -lexc
23535 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23536 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23537 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23543 LIBS="-lpthreads -lexc $LIBS"
23545 if test "$cross_compiling" = yes; then
23546 cat >conftest.$ac_ext <<_ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23553 /* pthread test headers */
23554 #include <pthread.h>
23555 #if HAVE_PTHREADS < 7
23559 #define NULL (void*)0
23562 static void *task(p)
23565 return (void *) (p == NULL);
23572 /* pthread test function */
23573 #ifndef PTHREAD_CREATE_DETACHED
23574 #define PTHREAD_CREATE_DETACHED 1
23578 int detach = PTHREAD_CREATE_DETACHED;
23580 #if HAVE_PTHREADS > 4
23581 /* Final pthreads */
23582 pthread_attr_t attr;
23584 status = pthread_attr_init(&attr);
23585 if( status ) return status;
23587 #if HAVE_PTHREADS < 7
23588 status = pthread_attr_setdetachstate(&attr, &detach);
23589 if( status < 0 ) status = errno;
23591 status = pthread_attr_setdetachstate(&attr, detach);
23593 if( status ) return status;
23594 status = pthread_create( &t, &attr, task, NULL );
23595 #if HAVE_PTHREADS < 7
23596 if( status < 0 ) status = errno;
23598 if( status ) return status;
23600 /* Draft 4 pthreads */
23601 status = pthread_create( &t, pthread_attr_default, task, NULL );
23602 if( status ) return errno;
23604 /* give thread a chance to complete */
23605 /* it should remain joinable and hence detachable */
23608 status = pthread_detach( &t );
23609 if( status ) return errno;
23612 #ifdef HAVE_LINUX_THREADS
23613 pthread_kill_other_threads_np();
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23624 (eval $ac_link) 2>conftest.er1
23626 grep -v '^ *+' conftest.er1 >conftest.err
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } &&
23631 { ac_try='test -z "$ac_c_werror_flag"
23632 || test ! -s conftest.err'
23633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634 (eval $ac_try) 2>&5
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; } &&
23638 { ac_try='test -s conftest$ac_exeext'
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; }; then
23644 ol_cv_pthread_lpthreads_lexc=yes
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23649 ol_cv_pthread_lpthreads_lexc=no
23651 rm -f conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
23654 cat >conftest.$ac_ext <<_ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h. */
23661 /* pthread test headers */
23662 #include <pthread.h>
23663 #if HAVE_PTHREADS < 7
23667 #define NULL (void*)0
23670 static void *task(p)
23673 return (void *) (p == NULL);
23677 int main(argc, argv)
23682 /* pthread test function */
23683 #ifndef PTHREAD_CREATE_DETACHED
23684 #define PTHREAD_CREATE_DETACHED 1
23688 int detach = PTHREAD_CREATE_DETACHED;
23690 #if HAVE_PTHREADS > 4
23691 /* Final pthreads */
23692 pthread_attr_t attr;
23694 status = pthread_attr_init(&attr);
23695 if( status ) return status;
23697 #if HAVE_PTHREADS < 7
23698 status = pthread_attr_setdetachstate(&attr, &detach);
23699 if( status < 0 ) status = errno;
23701 status = pthread_attr_setdetachstate(&attr, detach);
23703 if( status ) return status;
23704 status = pthread_create( &t, &attr, task, NULL );
23705 #if HAVE_PTHREADS < 7
23706 if( status < 0 ) status = errno;
23708 if( status ) return status;
23710 /* Draft 4 pthreads */
23711 status = pthread_create( &t, pthread_attr_default, task, NULL );
23712 if( status ) return errno;
23714 /* give thread a chance to complete */
23715 /* it should remain joinable and hence detachable */
23718 status = pthread_detach( &t );
23719 if( status ) return errno;
23722 #ifdef HAVE_LINUX_THREADS
23723 pthread_kill_other_threads_np();
23731 rm -f conftest$ac_exeext
23732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23733 (eval $ac_link) 2>&5
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738 (eval $ac_try) 2>&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); }; }; then
23742 ol_cv_pthread_lpthreads_lexc=yes
23744 echo "$as_me: program exited with status $ac_status" >&5
23745 echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23748 ( exit $ac_status )
23749 ol_cv_pthread_lpthreads_lexc=no
23751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23758 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23759 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23761 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23762 ol_link_pthreads="-lpthreads -lexc"
23763 ol_link_threads=posix
23768 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23769 if test "$ol_link_threads" = no ; then
23771 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23772 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23773 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
23779 LIBS="-lpthreads $LIBS"
23781 if test "$cross_compiling" = yes; then
23782 cat >conftest.$ac_ext <<_ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h. */
23789 /* pthread test headers */
23790 #include <pthread.h>
23791 #if HAVE_PTHREADS < 7
23795 #define NULL (void*)0
23798 static void *task(p)
23801 return (void *) (p == NULL);
23808 /* pthread test function */
23809 #ifndef PTHREAD_CREATE_DETACHED
23810 #define PTHREAD_CREATE_DETACHED 1
23814 int detach = PTHREAD_CREATE_DETACHED;
23816 #if HAVE_PTHREADS > 4
23817 /* Final pthreads */
23818 pthread_attr_t attr;
23820 status = pthread_attr_init(&attr);
23821 if( status ) return status;
23823 #if HAVE_PTHREADS < 7
23824 status = pthread_attr_setdetachstate(&attr, &detach);
23825 if( status < 0 ) status = errno;
23827 status = pthread_attr_setdetachstate(&attr, detach);
23829 if( status ) return status;
23830 status = pthread_create( &t, &attr, task, NULL );
23831 #if HAVE_PTHREADS < 7
23832 if( status < 0 ) status = errno;
23834 if( status ) return status;
23836 /* Draft 4 pthreads */
23837 status = pthread_create( &t, pthread_attr_default, task, NULL );
23838 if( status ) return errno;
23840 /* give thread a chance to complete */
23841 /* it should remain joinable and hence detachable */
23844 status = pthread_detach( &t );
23845 if( status ) return errno;
23848 #ifdef HAVE_LINUX_THREADS
23849 pthread_kill_other_threads_np();
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23860 (eval $ac_link) 2>conftest.er1
23862 grep -v '^ *+' conftest.er1 >conftest.err
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } &&
23867 { ac_try='test -z "$ac_c_werror_flag"
23868 || test ! -s conftest.err'
23869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23870 (eval $ac_try) 2>&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); }; } &&
23874 { ac_try='test -s conftest$ac_exeext'
23875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876 (eval $ac_try) 2>&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); }; }; then
23880 ol_cv_pthread_lib_lpthreads=yes
23882 echo "$as_me: failed program was:" >&5
23883 sed 's/^/| /' conftest.$ac_ext >&5
23885 ol_cv_pthread_lib_lpthreads=no
23887 rm -f conftest.err conftest.$ac_objext \
23888 conftest$ac_exeext conftest.$ac_ext
23890 cat >conftest.$ac_ext <<_ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h. */
23897 /* pthread test headers */
23898 #include <pthread.h>
23899 #if HAVE_PTHREADS < 7
23903 #define NULL (void*)0
23906 static void *task(p)
23909 return (void *) (p == NULL);
23913 int main(argc, argv)
23918 /* pthread test function */
23919 #ifndef PTHREAD_CREATE_DETACHED
23920 #define PTHREAD_CREATE_DETACHED 1
23924 int detach = PTHREAD_CREATE_DETACHED;
23926 #if HAVE_PTHREADS > 4
23927 /* Final pthreads */
23928 pthread_attr_t attr;
23930 status = pthread_attr_init(&attr);
23931 if( status ) return status;
23933 #if HAVE_PTHREADS < 7
23934 status = pthread_attr_setdetachstate(&attr, &detach);
23935 if( status < 0 ) status = errno;
23937 status = pthread_attr_setdetachstate(&attr, detach);
23939 if( status ) return status;
23940 status = pthread_create( &t, &attr, task, NULL );
23941 #if HAVE_PTHREADS < 7
23942 if( status < 0 ) status = errno;
23944 if( status ) return status;
23946 /* Draft 4 pthreads */
23947 status = pthread_create( &t, pthread_attr_default, task, NULL );
23948 if( status ) return errno;
23950 /* give thread a chance to complete */
23951 /* it should remain joinable and hence detachable */
23954 status = pthread_detach( &t );
23955 if( status ) return errno;
23958 #ifdef HAVE_LINUX_THREADS
23959 pthread_kill_other_threads_np();
23967 rm -f conftest$ac_exeext
23968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23969 (eval $ac_link) 2>&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974 (eval $ac_try) 2>&5
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; }; then
23978 ol_cv_pthread_lib_lpthreads=yes
23980 echo "$as_me: program exited with status $ac_status" >&5
23981 echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23984 ( exit $ac_status )
23985 ol_cv_pthread_lib_lpthreads=no
23987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23994 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23995 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23997 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23998 ol_link_pthreads="-lpthreads"
23999 ol_link_threads=posix
24004 if test $ol_link_threads != no ; then
24005 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24007 save_CPPFLAGS="$CPPFLAGS"
24009 LIBS="$LTHREAD_LIBS $LIBS"
24014 for ac_func in sched_yield pthread_yield thr_yield
24016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24017 echo "$as_me:$LINENO: checking for $ac_func" >&5
24018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24019 if eval "test \"\${$as_ac_var+set}\" = set"; then
24020 echo $ECHO_N "(cached) $ECHO_C" >&6
24022 cat >conftest.$ac_ext <<_ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h. */
24028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24030 #define $ac_func innocuous_$ac_func
24032 /* System header to define __stub macros and hopefully few prototypes,
24033 which can conflict with char $ac_func (); below.
24034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24035 <limits.h> exists even on freestanding compilers. */
24038 # include <limits.h>
24040 # include <assert.h>
24045 /* Override any gcc2 internal prototype to avoid an error. */
24050 /* We use char because int might match the return type of a gcc2
24051 builtin and then its argument prototype would still apply. */
24053 /* The GNU C library defines this for functions which it implements
24054 to always fail with ENOSYS. Some functions are actually named
24055 something starting with __ and the normal name is an alias. */
24056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24059 char (*f) () = $ac_func;
24068 return f != $ac_func;
24073 rm -f conftest.$ac_objext conftest$ac_exeext
24074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24075 (eval $ac_link) 2>conftest.er1
24077 grep -v '^ *+' conftest.er1 >conftest.err
24079 cat conftest.err >&5
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } &&
24082 { ac_try='test -z "$ac_c_werror_flag"
24083 || test ! -s conftest.err'
24084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085 (eval $ac_try) 2>&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); }; } &&
24089 { ac_try='test -s conftest$ac_exeext'
24090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091 (eval $ac_try) 2>&5
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); }; }; then
24095 eval "$as_ac_var=yes"
24097 echo "$as_me: failed program was:" >&5
24098 sed 's/^/| /' conftest.$ac_ext >&5
24100 eval "$as_ac_var=no"
24102 rm -f conftest.err conftest.$ac_objext \
24103 conftest$ac_exeext conftest.$ac_ext
24105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24107 if test `eval echo '${'$as_ac_var'}'` = yes; then
24108 cat >>confdefs.h <<_ACEOF
24109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24116 if test $ac_cv_func_sched_yield = no &&
24117 test $ac_cv_func_pthread_yield = no &&
24118 test $ac_cv_func_thr_yield = no ; then
24119 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24120 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24121 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24122 echo $ECHO_N "(cached) $ECHO_C" >&6
24124 ac_check_lib_save_LIBS=$LIBS
24126 cat >conftest.$ac_ext <<_ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h. */
24133 /* Override any gcc2 internal prototype to avoid an error. */
24137 /* We use char because int might match the return type of a gcc2
24138 builtin and then its argument prototype would still apply. */
24139 char sched_yield ();
24148 rm -f conftest.$ac_objext conftest$ac_exeext
24149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24150 (eval $ac_link) 2>conftest.er1
24152 grep -v '^ *+' conftest.er1 >conftest.err
24154 cat conftest.err >&5
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); } &&
24157 { ac_try='test -z "$ac_c_werror_flag"
24158 || test ! -s conftest.err'
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; } &&
24164 { ac_try='test -s conftest$ac_exeext'
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 ac_cv_lib_rt_sched_yield=yes
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_cv_lib_rt_sched_yield=no
24177 rm -f conftest.err conftest.$ac_objext \
24178 conftest$ac_exeext conftest.$ac_ext
24179 LIBS=$ac_check_lib_save_LIBS
24181 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24182 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24183 if test $ac_cv_lib_rt_sched_yield = yes; then
24184 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24186 cat >>confdefs.h <<\_ACEOF
24187 #define HAVE_SCHED_YIELD 1
24190 ac_cv_func_sched_yield=yes
24192 ac_cv_func_sched_yield=no
24196 if test $ac_cv_func_sched_yield = no &&
24197 test $ac_cv_func_pthread_yield = no &&
24198 test "$ac_cv_func_thr_yield" = no ; then
24199 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24200 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24205 for ac_func in pthread_kill pthread_rwlock_destroy
24207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24208 echo "$as_me:$LINENO: checking for $ac_func" >&5
24209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24210 if eval "test \"\${$as_ac_var+set}\" = set"; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24213 cat >conftest.$ac_ext <<_ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24221 #define $ac_func innocuous_$ac_func
24223 /* System header to define __stub macros and hopefully few prototypes,
24224 which can conflict with char $ac_func (); below.
24225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24226 <limits.h> exists even on freestanding compilers. */
24229 # include <limits.h>
24231 # include <assert.h>
24236 /* Override any gcc2 internal prototype to avoid an error. */
24241 /* We use char because int might match the return type of a gcc2
24242 builtin and then its argument prototype would still apply. */
24244 /* The GNU C library defines this for functions which it implements
24245 to always fail with ENOSYS. Some functions are actually named
24246 something starting with __ and the normal name is an alias. */
24247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24250 char (*f) () = $ac_func;
24259 return f != $ac_func;
24264 rm -f conftest.$ac_objext conftest$ac_exeext
24265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24266 (eval $ac_link) 2>conftest.er1
24268 grep -v '^ *+' conftest.er1 >conftest.err
24270 cat conftest.err >&5
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); } &&
24273 { ac_try='test -z "$ac_c_werror_flag"
24274 || test ! -s conftest.err'
24275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276 (eval $ac_try) 2>&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; } &&
24280 { ac_try='test -s conftest$ac_exeext'
24281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24282 (eval $ac_try) 2>&5
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); }; }; then
24286 eval "$as_ac_var=yes"
24288 echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24291 eval "$as_ac_var=no"
24293 rm -f conftest.err conftest.$ac_objext \
24294 conftest$ac_exeext conftest.$ac_ext
24296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24298 if test `eval echo '${'$as_ac_var'}'` = yes; then
24299 cat >>confdefs.h <<_ACEOF
24300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24307 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24308 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24309 if test "${ol_cv_func_pthread_detach+set}" = set; then
24310 echo $ECHO_N "(cached) $ECHO_C" >&6
24313 cat >conftest.$ac_ext <<_ACEOF
24316 cat confdefs.h >>conftest.$ac_ext
24317 cat >>conftest.$ac_ext <<_ACEOF
24318 /* end confdefs.h. */
24320 #include <pthread.h>
24322 #define NULL (void*)0
24328 pthread_detach(NULL);
24333 rm -f conftest.$ac_objext conftest$ac_exeext
24334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24335 (eval $ac_link) 2>conftest.er1
24337 grep -v '^ *+' conftest.er1 >conftest.err
24339 cat conftest.err >&5
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } &&
24342 { ac_try='test -z "$ac_c_werror_flag"
24343 || test ! -s conftest.err'
24344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24345 (eval $ac_try) 2>&5
24347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); }; } &&
24349 { ac_try='test -s conftest$ac_exeext'
24350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24351 (eval $ac_try) 2>&5
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); }; }; then
24355 ol_cv_func_pthread_detach=yes
24357 echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24360 ol_cv_func_pthread_detach=no
24362 rm -f conftest.err conftest.$ac_objext \
24363 conftest$ac_exeext conftest.$ac_ext
24366 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24367 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24369 if test $ol_cv_func_pthread_detach = no ; then
24370 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24371 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24372 { (exit 1); exit 1; }; }
24376 cat >>confdefs.h <<\_ACEOF
24377 #define HAVE_PTHREAD_DETACH 1
24386 pthread_setconcurrency \
24387 pthread_getconcurrency \
24388 thr_setconcurrency \
24389 thr_getconcurrency \
24392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24393 echo "$as_me:$LINENO: checking for $ac_func" >&5
24394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24395 if eval "test \"\${$as_ac_var+set}\" = set"; then
24396 echo $ECHO_N "(cached) $ECHO_C" >&6
24398 cat >conftest.$ac_ext <<_ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24406 #define $ac_func innocuous_$ac_func
24408 /* System header to define __stub macros and hopefully few prototypes,
24409 which can conflict with char $ac_func (); below.
24410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24411 <limits.h> exists even on freestanding compilers. */
24414 # include <limits.h>
24416 # include <assert.h>
24421 /* Override any gcc2 internal prototype to avoid an error. */
24426 /* We use char because int might match the return type of a gcc2
24427 builtin and then its argument prototype would still apply. */
24429 /* The GNU C library defines this for functions which it implements
24430 to always fail with ENOSYS. Some functions are actually named
24431 something starting with __ and the normal name is an alias. */
24432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24435 char (*f) () = $ac_func;
24444 return f != $ac_func;
24449 rm -f conftest.$ac_objext conftest$ac_exeext
24450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24451 (eval $ac_link) 2>conftest.er1
24453 grep -v '^ *+' conftest.er1 >conftest.err
24455 cat conftest.err >&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } &&
24458 { ac_try='test -z "$ac_c_werror_flag"
24459 || test ! -s conftest.err'
24460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24461 (eval $ac_try) 2>&5
24463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); }; } &&
24465 { ac_try='test -s conftest$ac_exeext'
24466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467 (eval $ac_try) 2>&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); }; }; then
24471 eval "$as_ac_var=yes"
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476 eval "$as_ac_var=no"
24478 rm -f conftest.err conftest.$ac_objext \
24479 conftest$ac_exeext conftest.$ac_ext
24481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24483 if test `eval echo '${'$as_ac_var'}'` = yes; then
24484 cat >>confdefs.h <<_ACEOF
24485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24494 for ac_func in pthread_kill_other_threads_np
24496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24497 echo "$as_me:$LINENO: checking for $ac_func" >&5
24498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24499 if eval "test \"\${$as_ac_var+set}\" = set"; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 cat >conftest.$ac_ext <<_ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h. */
24508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24510 #define $ac_func innocuous_$ac_func
24512 /* System header to define __stub macros and hopefully few prototypes,
24513 which can conflict with char $ac_func (); below.
24514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24515 <limits.h> exists even on freestanding compilers. */
24518 # include <limits.h>
24520 # include <assert.h>
24525 /* Override any gcc2 internal prototype to avoid an error. */
24530 /* We use char because int might match the return type of a gcc2
24531 builtin and then its argument prototype would still apply. */
24533 /* The GNU C library defines this for functions which it implements
24534 to always fail with ENOSYS. Some functions are actually named
24535 something starting with __ and the normal name is an alias. */
24536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24539 char (*f) () = $ac_func;
24548 return f != $ac_func;
24553 rm -f conftest.$ac_objext conftest$ac_exeext
24554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24555 (eval $ac_link) 2>conftest.er1
24557 grep -v '^ *+' conftest.er1 >conftest.err
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } &&
24562 { ac_try='test -z "$ac_c_werror_flag"
24563 || test ! -s conftest.err'
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; } &&
24569 { ac_try='test -s conftest$ac_exeext'
24570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24571 (eval $ac_try) 2>&5
24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 (exit $ac_status); }; }; then
24575 eval "$as_ac_var=yes"
24577 echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24580 eval "$as_ac_var=no"
24582 rm -f conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
24585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24587 if test `eval echo '${'$as_ac_var'}'` = yes; then
24588 cat >>confdefs.h <<_ACEOF
24589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24595 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24596 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24597 if test "${ol_cv_sys_linux_threads+set}" = set; then
24598 echo $ECHO_N "(cached) $ECHO_C" >&6
24600 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24602 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24603 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24608 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24609 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24610 if test "${ol_cv_linux_threads+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24614 if test $ol_cv_header_linux_threads = yes &&
24615 test $ol_cv_sys_linux_threads = yes; then
24616 ol_cv_linux_threads=yes
24617 elif test $ol_cv_header_linux_threads = no &&
24618 test $ol_cv_sys_linux_threads = no; then
24619 ol_cv_linux_threads=no
24621 ol_cv_linux_threads=error
24625 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24626 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24629 if test $ol_cv_linux_threads = error; then
24630 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24631 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24632 { (exit 1); exit 1; }; };
24635 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24636 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24637 if test "${ol_cv_pthread_create_works+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24641 if test "$cross_compiling" = yes; then
24642 ol_cv_pthread_create_works=yes
24644 cat >conftest.$ac_ext <<_ACEOF
24647 cat confdefs.h >>conftest.$ac_ext
24648 cat >>conftest.$ac_ext <<_ACEOF
24649 /* end confdefs.h. */
24651 /* pthread test headers */
24652 #include <pthread.h>
24653 #if HAVE_PTHREADS < 7
24657 #define NULL (void*)0
24660 static void *task(p)
24663 return (void *) (p == NULL);
24667 int main(argc, argv)
24672 /* pthread test function */
24673 #ifndef PTHREAD_CREATE_DETACHED
24674 #define PTHREAD_CREATE_DETACHED 1
24678 int detach = PTHREAD_CREATE_DETACHED;
24680 #if HAVE_PTHREADS > 4
24681 /* Final pthreads */
24682 pthread_attr_t attr;
24684 status = pthread_attr_init(&attr);
24685 if( status ) return status;
24687 #if HAVE_PTHREADS < 7
24688 status = pthread_attr_setdetachstate(&attr, &detach);
24689 if( status < 0 ) status = errno;
24691 status = pthread_attr_setdetachstate(&attr, detach);
24693 if( status ) return status;
24694 status = pthread_create( &t, &attr, task, NULL );
24695 #if HAVE_PTHREADS < 7
24696 if( status < 0 ) status = errno;
24698 if( status ) return status;
24700 /* Draft 4 pthreads */
24701 status = pthread_create( &t, pthread_attr_default, task, NULL );
24702 if( status ) return errno;
24704 /* give thread a chance to complete */
24705 /* it should remain joinable and hence detachable */
24708 status = pthread_detach( &t );
24709 if( status ) return errno;
24712 #ifdef HAVE_LINUX_THREADS
24713 pthread_kill_other_threads_np();
24721 rm -f conftest$ac_exeext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723 (eval $ac_link) 2>&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24728 (eval $ac_try) 2>&5
24730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731 (exit $ac_status); }; }; then
24732 ol_cv_pthread_create_works=yes
24734 echo "$as_me: program exited with status $ac_status" >&5
24735 echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24738 ( exit $ac_status )
24739 ol_cv_pthread_create_works=no
24741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24744 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24745 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24747 if test $ol_cv_pthread_create_works = no ; then
24748 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24749 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24750 { (exit 1); exit 1; }; }
24753 ol_replace_broken_yield=no
24755 if test $ol_replace_broken_yield = yes ; then
24757 cat >>confdefs.h <<\_ACEOF
24758 #define REPLACE_BROKEN_YIELD 1
24763 if test $ol_with_yielding_select = auto ; then
24764 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24765 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24766 if test "${ol_cv_pthread_select_yields+set}" = set; then
24767 echo $ECHO_N "(cached) $ECHO_C" >&6
24770 if test "$cross_compiling" = yes; then
24771 ol_cv_pthread_select_yields=cross
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24780 #include <sys/types.h>
24781 #include <sys/time.h>
24782 #include <unistd.h>
24783 #include <pthread.h>
24785 #define NULL (void*) 0
24788 static int fildes[2];
24790 static void *task(p)
24802 FD_SET(fildes[0], &rfds);
24804 /* we're not interested in any fds */
24805 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24812 exit(0); /* if we exit here, the select blocked the whole process */
24815 int main(argc, argv)
24821 /* create a pipe to select */
24822 if(pipe(&fildes[0])) {
24827 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24828 (void) pthread_setconcurrency(2);
24830 #ifdef HAVE_THR_SETCONCURRENCY
24831 /* Set Solaris LWP concurrency to 2 */
24832 thr_setconcurrency(2);
24836 #if HAVE_PTHREADS < 6
24837 pthread_create(&t, pthread_attr_default, task, NULL);
24839 pthread_create(&t, NULL, task, NULL);
24842 /* make sure task runs first */
24845 #elif defined( HAVE_SCHED_YIELD )
24847 #elif defined( HAVE_PTHREAD_YIELD )
24854 rm -f conftest$ac_exeext
24855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24856 (eval $ac_link) 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24861 (eval $ac_try) 2>&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; }; then
24865 ol_cv_pthread_select_yields=no
24867 echo "$as_me: program exited with status $ac_status" >&5
24868 echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24871 ( exit $ac_status )
24872 ol_cv_pthread_select_yields=yes
24874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24877 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24878 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24880 if test $ol_cv_pthread_select_yields = cross ; then
24881 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24882 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24883 { (exit 1); exit 1; }; }
24886 if test $ol_cv_pthread_select_yields = yes ; then
24887 ol_with_yielding_select=yes
24891 CPPFLAGS="$save_CPPFLAGS"
24894 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24895 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24896 { (exit 1); exit 1; }; }
24900 if test $ol_with_threads = posix ; then
24901 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24902 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24903 { (exit 1); exit 1; }; }
24908 case $ol_with_threads in auto | yes | mach)
24912 for ac_header in mach/cthreads.h cthreads.h
24914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24916 echo "$as_me:$LINENO: checking for $ac_header" >&5
24917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24919 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24924 # Is the header compilable?
24925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24927 cat >conftest.$ac_ext <<_ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24933 $ac_includes_default
24934 #include <$ac_header>
24936 rm -f conftest.$ac_objext
24937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24938 (eval $ac_compile) 2>conftest.er1
24940 grep -v '^ *+' conftest.er1 >conftest.err
24942 cat conftest.err >&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } &&
24945 { ac_try='test -z "$ac_c_werror_flag"
24946 || test ! -s conftest.err'
24947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948 (eval $ac_try) 2>&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); }; } &&
24952 { ac_try='test -s conftest.$ac_objext'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; }; then
24958 ac_header_compiler=yes
24960 echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24963 ac_header_compiler=no
24965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24967 echo "${ECHO_T}$ac_header_compiler" >&6
24969 # Is the header present?
24970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24972 cat >conftest.$ac_ext <<_ACEOF
24975 cat confdefs.h >>conftest.$ac_ext
24976 cat >>conftest.$ac_ext <<_ACEOF
24977 /* end confdefs.h. */
24978 #include <$ac_header>
24980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24983 grep -v '^ *+' conftest.er1 >conftest.err
24985 cat conftest.err >&5
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); } >/dev/null; then
24988 if test -s conftest.err; then
24989 ac_cpp_err=$ac_c_preproc_warn_flag
24990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24997 if test -z "$ac_cpp_err"; then
24998 ac_header_preproc=yes
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 ac_header_preproc=no
25005 rm -f conftest.err conftest.$ac_ext
25006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25007 echo "${ECHO_T}$ac_header_preproc" >&6
25009 # So? What about this header?
25010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25016 ac_header_preproc=yes
25019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25033 ## --------------------------------------------- ##
25034 ## Report this to <http://www.openldap.org/its/> ##
25035 ## --------------------------------------------- ##
25038 sed "s/^/$as_me: WARNING: /" >&2
25041 echo "$as_me:$LINENO: checking for $ac_header" >&5
25042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25044 echo $ECHO_N "(cached) $ECHO_C" >&6
25046 eval "$as_ac_Header=\$ac_header_preproc"
25048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25053 cat >>confdefs.h <<_ACEOF
25054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25061 if test $ac_cv_header_mach_cthreads_h = yes ; then
25062 ol_with_threads=found
25064 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25065 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25066 if test "${ac_cv_func_cthread_fork+set}" = set; then
25067 echo $ECHO_N "(cached) $ECHO_C" >&6
25069 cat >conftest.$ac_ext <<_ACEOF
25072 cat confdefs.h >>conftest.$ac_ext
25073 cat >>conftest.$ac_ext <<_ACEOF
25074 /* end confdefs.h. */
25075 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25077 #define cthread_fork innocuous_cthread_fork
25079 /* System header to define __stub macros and hopefully few prototypes,
25080 which can conflict with char cthread_fork (); below.
25081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25082 <limits.h> exists even on freestanding compilers. */
25085 # include <limits.h>
25087 # include <assert.h>
25090 #undef cthread_fork
25092 /* Override any gcc2 internal prototype to avoid an error. */
25097 /* We use char because int might match the return type of a gcc2
25098 builtin and then its argument prototype would still apply. */
25099 char cthread_fork ();
25100 /* The GNU C library defines this for functions which it implements
25101 to always fail with ENOSYS. Some functions are actually named
25102 something starting with __ and the normal name is an alias. */
25103 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25106 char (*f) () = cthread_fork;
25115 return f != cthread_fork;
25120 rm -f conftest.$ac_objext conftest$ac_exeext
25121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25122 (eval $ac_link) 2>conftest.er1
25124 grep -v '^ *+' conftest.er1 >conftest.err
25126 cat conftest.err >&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } &&
25129 { ac_try='test -z "$ac_c_werror_flag"
25130 || test ! -s conftest.err'
25131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132 (eval $ac_try) 2>&5
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); }; } &&
25136 { ac_try='test -s conftest$ac_exeext'
25137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138 (eval $ac_try) 2>&5
25140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; }; then
25142 ac_cv_func_cthread_fork=yes
25144 echo "$as_me: failed program was:" >&5
25145 sed 's/^/| /' conftest.$ac_ext >&5
25147 ac_cv_func_cthread_fork=no
25149 rm -f conftest.err conftest.$ac_objext \
25150 conftest$ac_exeext conftest.$ac_ext
25152 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25153 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25154 if test $ac_cv_func_cthread_fork = yes; then
25155 ol_link_threads=yes
25159 if test $ol_link_threads = no ; then
25160 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25161 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25162 if test "${ol_cv_cthread_all_load+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25167 LIBS="-all_load $LIBS"
25168 cat >conftest.$ac_ext <<_ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h. */
25174 #include <mach/cthreads.h>
25179 cthread_fork((void *)0, (void *)0);
25185 rm -f conftest.$ac_objext conftest$ac_exeext
25186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25187 (eval $ac_link) 2>conftest.er1
25189 grep -v '^ *+' conftest.er1 >conftest.err
25191 cat conftest.err >&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } &&
25194 { ac_try='test -z "$ac_c_werror_flag"
25195 || test ! -s conftest.err'
25196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25197 (eval $ac_try) 2>&5
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; } &&
25201 { ac_try='test -s conftest$ac_exeext'
25202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; }; then
25207 ol_cv_cthread_all_load=yes
25209 echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25212 ol_cv_cthread_all_load=no
25214 rm -f conftest.err conftest.$ac_objext \
25215 conftest$ac_exeext conftest.$ac_ext
25219 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25220 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25222 if test $ol_cv_cthread_all_load = yes ; then
25223 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25224 ol_link_threads=mach
25225 ol_with_threads=found
25229 elif test $ac_cv_header_cthreads_h = yes ; then
25231 ol_with_threads=found
25234 LIBS="$LIBS -lthreads"
25235 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25236 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25237 if test "${ac_cv_func_cthread_fork+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25248 #define cthread_fork innocuous_cthread_fork
25250 /* System header to define __stub macros and hopefully few prototypes,
25251 which can conflict with char cthread_fork (); below.
25252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25253 <limits.h> exists even on freestanding compilers. */
25256 # include <limits.h>
25258 # include <assert.h>
25261 #undef cthread_fork
25263 /* Override any gcc2 internal prototype to avoid an error. */
25268 /* We use char because int might match the return type of a gcc2
25269 builtin and then its argument prototype would still apply. */
25270 char cthread_fork ();
25271 /* The GNU C library defines this for functions which it implements
25272 to always fail with ENOSYS. Some functions are actually named
25273 something starting with __ and the normal name is an alias. */
25274 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25277 char (*f) () = cthread_fork;
25286 return f != cthread_fork;
25291 rm -f conftest.$ac_objext conftest$ac_exeext
25292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25293 (eval $ac_link) 2>conftest.er1
25295 grep -v '^ *+' conftest.er1 >conftest.err
25297 cat conftest.err >&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } &&
25300 { ac_try='test -z "$ac_c_werror_flag"
25301 || test ! -s conftest.err'
25302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303 (eval $ac_try) 2>&5
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); }; } &&
25307 { ac_try='test -s conftest$ac_exeext'
25308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309 (eval $ac_try) 2>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313 ac_cv_func_cthread_fork=yes
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25318 ac_cv_func_cthread_fork=no
25320 rm -f conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext conftest.$ac_ext
25323 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25324 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25325 if test $ac_cv_func_cthread_fork = yes; then
25326 ol_link_threads=yes
25331 if test $ol_link_threads = yes ; then
25332 LTHREAD_LIBS="-lthreads"
25333 ol_link_threads=mach
25334 ol_with_threads=found
25336 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25337 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25338 { (exit 1); exit 1; }; }
25341 elif test $ol_with_threads = mach ; then
25342 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25343 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25344 { (exit 1); exit 1; }; }
25347 if test $ol_link_threads = mach ; then
25349 cat >>confdefs.h <<\_ACEOF
25350 #define HAVE_MACH_CTHREADS 1
25353 elif test $ol_with_threads = found ; then
25354 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25355 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25356 { (exit 1); exit 1; }; }
25361 case $ol_with_threads in auto | yes | pth)
25364 for ac_header in pth.h
25366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25368 echo "$as_me:$LINENO: checking for $ac_header" >&5
25369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25376 # Is the header compilable?
25377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25379 cat >conftest.$ac_ext <<_ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h. */
25385 $ac_includes_default
25386 #include <$ac_header>
25388 rm -f conftest.$ac_objext
25389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25390 (eval $ac_compile) 2>conftest.er1
25392 grep -v '^ *+' conftest.er1 >conftest.err
25394 cat conftest.err >&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } &&
25397 { ac_try='test -z "$ac_c_werror_flag"
25398 || test ! -s conftest.err'
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest.$ac_objext'
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 ac_header_compiler=yes
25412 echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25415 ac_header_compiler=no
25417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25419 echo "${ECHO_T}$ac_header_compiler" >&6
25421 # Is the header present?
25422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25424 cat >conftest.$ac_ext <<_ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h. */
25430 #include <$ac_header>
25432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } >/dev/null; then
25440 if test -s conftest.err; then
25441 ac_cpp_err=$ac_c_preproc_warn_flag
25442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25449 if test -z "$ac_cpp_err"; then
25450 ac_header_preproc=yes
25452 echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25455 ac_header_preproc=no
25457 rm -f conftest.err conftest.$ac_ext
25458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25459 echo "${ECHO_T}$ac_header_preproc" >&6
25461 # So? What about this header?
25462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25468 ac_header_preproc=yes
25471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25474 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25478 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25485 ## --------------------------------------------- ##
25486 ## Report this to <http://www.openldap.org/its/> ##
25487 ## --------------------------------------------- ##
25490 sed "s/^/$as_me: WARNING: /" >&2
25493 echo "$as_me:$LINENO: checking for $ac_header" >&5
25494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25496 echo $ECHO_N "(cached) $ECHO_C" >&6
25498 eval "$as_ac_Header=\$ac_header_preproc"
25500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25505 cat >>confdefs.h <<_ACEOF
25506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25514 if test $ac_cv_header_pth_h = yes ; then
25515 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25516 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25517 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25518 echo $ECHO_N "(cached) $ECHO_C" >&6
25520 ac_check_lib_save_LIBS=$LIBS
25522 cat >conftest.$ac_ext <<_ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25529 /* Override any gcc2 internal prototype to avoid an error. */
25533 /* We use char because int might match the return type of a gcc2
25534 builtin and then its argument prototype would still apply. */
25535 char pth_version ();
25544 rm -f conftest.$ac_objext conftest$ac_exeext
25545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25546 (eval $ac_link) 2>conftest.er1
25548 grep -v '^ *+' conftest.er1 >conftest.err
25550 cat conftest.err >&5
25551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); } &&
25553 { ac_try='test -z "$ac_c_werror_flag"
25554 || test ! -s conftest.err'
25555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25556 (eval $ac_try) 2>&5
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); }; } &&
25560 { ac_try='test -s conftest$ac_exeext'
25561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25562 (eval $ac_try) 2>&5
25564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565 (exit $ac_status); }; }; then
25566 ac_cv_lib_pth_pth_version=yes
25568 echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25571 ac_cv_lib_pth_pth_version=no
25573 rm -f conftest.err conftest.$ac_objext \
25574 conftest$ac_exeext conftest.$ac_ext
25575 LIBS=$ac_check_lib_save_LIBS
25577 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25578 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25579 if test $ac_cv_lib_pth_pth_version = yes; then
25586 if test $have_pth = yes ; then
25588 cat >>confdefs.h <<\_ACEOF
25589 #define HAVE_GNU_PTH 1
25592 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25593 ol_link_threads=pth
25594 ol_with_threads=found
25596 if test $ol_with_yielding_select = auto ; then
25597 ol_with_yielding_select=yes
25604 case $ol_with_threads in auto | yes | lwp)
25608 for ac_header in thread.h synch.h
25610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25612 echo "$as_me:$LINENO: checking for $ac_header" >&5
25613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25615 echo $ECHO_N "(cached) $ECHO_C" >&6
25617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25620 # Is the header compilable?
25621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25623 cat >conftest.$ac_ext <<_ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25629 $ac_includes_default
25630 #include <$ac_header>
25632 rm -f conftest.$ac_objext
25633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25634 (eval $ac_compile) 2>conftest.er1
25636 grep -v '^ *+' conftest.er1 >conftest.err
25638 cat conftest.err >&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); } &&
25641 { ac_try='test -z "$ac_c_werror_flag"
25642 || test ! -s conftest.err'
25643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25644 (eval $ac_try) 2>&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); }; } &&
25648 { ac_try='test -s conftest.$ac_objext'
25649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650 (eval $ac_try) 2>&5
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); }; }; then
25654 ac_header_compiler=yes
25656 echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25659 ac_header_compiler=no
25661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25663 echo "${ECHO_T}$ac_header_compiler" >&6
25665 # Is the header present?
25666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25668 cat >conftest.$ac_ext <<_ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h. */
25674 #include <$ac_header>
25676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25679 grep -v '^ *+' conftest.er1 >conftest.err
25681 cat conftest.err >&5
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } >/dev/null; then
25684 if test -s conftest.err; then
25685 ac_cpp_err=$ac_c_preproc_warn_flag
25686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25693 if test -z "$ac_cpp_err"; then
25694 ac_header_preproc=yes
25696 echo "$as_me: failed program was:" >&5
25697 sed 's/^/| /' conftest.$ac_ext >&5
25699 ac_header_preproc=no
25701 rm -f conftest.err conftest.$ac_ext
25702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25703 echo "${ECHO_T}$ac_header_preproc" >&6
25705 # So? What about this header?
25706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25712 ac_header_preproc=yes
25715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25729 ## --------------------------------------------- ##
25730 ## Report this to <http://www.openldap.org/its/> ##
25731 ## --------------------------------------------- ##
25734 sed "s/^/$as_me: WARNING: /" >&2
25737 echo "$as_me:$LINENO: checking for $ac_header" >&5
25738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25742 eval "$as_ac_Header=\$ac_header_preproc"
25744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25749 cat >>confdefs.h <<_ACEOF
25750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25757 if test $ac_cv_header_thread_h = yes &&
25758 test $ac_cv_header_synch_h = yes ; then
25759 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25760 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25761 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25762 echo $ECHO_N "(cached) $ECHO_C" >&6
25764 ac_check_lib_save_LIBS=$LIBS
25765 LIBS="-lthread $LIBS"
25766 cat >conftest.$ac_ext <<_ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h. */
25773 /* Override any gcc2 internal prototype to avoid an error. */
25777 /* We use char because int might match the return type of a gcc2
25778 builtin and then its argument prototype would still apply. */
25779 char thr_create ();
25788 rm -f conftest.$ac_objext conftest$ac_exeext
25789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25790 (eval $ac_link) 2>conftest.er1
25792 grep -v '^ *+' conftest.er1 >conftest.err
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } &&
25797 { ac_try='test -z "$ac_c_werror_flag"
25798 || test ! -s conftest.err'
25799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800 (eval $ac_try) 2>&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; } &&
25804 { ac_try='test -s conftest$ac_exeext'
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; }; then
25810 ac_cv_lib_thread_thr_create=yes
25812 echo "$as_me: failed program was:" >&5
25813 sed 's/^/| /' conftest.$ac_ext >&5
25815 ac_cv_lib_thread_thr_create=no
25817 rm -f conftest.err conftest.$ac_objext \
25818 conftest$ac_exeext conftest.$ac_ext
25819 LIBS=$ac_check_lib_save_LIBS
25821 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25822 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25823 if test $ac_cv_lib_thread_thr_create = yes; then
25830 if test $have_thr = yes ; then
25832 cat >>confdefs.h <<\_ACEOF
25836 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25837 ol_link_threads=thr
25839 if test $ol_with_yielding_select = auto ; then
25840 ol_with_yielding_select=yes
25846 thr_setconcurrency \
25847 thr_getconcurrency \
25850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25851 echo "$as_me:$LINENO: checking for $ac_func" >&5
25852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25853 if eval "test \"\${$as_ac_var+set}\" = set"; then
25854 echo $ECHO_N "(cached) $ECHO_C" >&6
25856 cat >conftest.$ac_ext <<_ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h. */
25862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25864 #define $ac_func innocuous_$ac_func
25866 /* System header to define __stub macros and hopefully few prototypes,
25867 which can conflict with char $ac_func (); below.
25868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25869 <limits.h> exists even on freestanding compilers. */
25872 # include <limits.h>
25874 # include <assert.h>
25879 /* Override any gcc2 internal prototype to avoid an error. */
25884 /* We use char because int might match the return type of a gcc2
25885 builtin and then its argument prototype would still apply. */
25887 /* The GNU C library defines this for functions which it implements
25888 to always fail with ENOSYS. Some functions are actually named
25889 something starting with __ and the normal name is an alias. */
25890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25893 char (*f) () = $ac_func;
25902 return f != $ac_func;
25907 rm -f conftest.$ac_objext conftest$ac_exeext
25908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25909 (eval $ac_link) 2>conftest.er1
25911 grep -v '^ *+' conftest.er1 >conftest.err
25913 cat conftest.err >&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } &&
25916 { ac_try='test -z "$ac_c_werror_flag"
25917 || test ! -s conftest.err'
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; } &&
25923 { ac_try='test -s conftest$ac_exeext'
25924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925 (eval $ac_try) 2>&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; }; then
25929 eval "$as_ac_var=yes"
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25934 eval "$as_ac_var=no"
25936 rm -f conftest.err conftest.$ac_objext \
25937 conftest$ac_exeext conftest.$ac_ext
25939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25941 if test `eval echo '${'$as_ac_var'}'` = yes; then
25942 cat >>confdefs.h <<_ACEOF
25943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25953 for ac_header in lwp/lwp.h
25955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25957 echo "$as_me:$LINENO: checking for $ac_header" >&5
25958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25965 # Is the header compilable?
25966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25968 cat >conftest.$ac_ext <<_ACEOF
25971 cat confdefs.h >>conftest.$ac_ext
25972 cat >>conftest.$ac_ext <<_ACEOF
25973 /* end confdefs.h. */
25974 $ac_includes_default
25975 #include <$ac_header>
25977 rm -f conftest.$ac_objext
25978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25979 (eval $ac_compile) 2>conftest.er1
25981 grep -v '^ *+' conftest.er1 >conftest.err
25983 cat conftest.err >&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); } &&
25986 { ac_try='test -z "$ac_c_werror_flag"
25987 || test ! -s conftest.err'
25988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989 (eval $ac_try) 2>&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); }; } &&
25993 { ac_try='test -s conftest.$ac_objext'
25994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25995 (eval $ac_try) 2>&5
25997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998 (exit $ac_status); }; }; then
25999 ac_header_compiler=yes
26001 echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26004 ac_header_compiler=no
26006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26007 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26008 echo "${ECHO_T}$ac_header_compiler" >&6
26010 # Is the header present?
26011 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26013 cat >conftest.$ac_ext <<_ACEOF
26016 cat confdefs.h >>conftest.$ac_ext
26017 cat >>conftest.$ac_ext <<_ACEOF
26018 /* end confdefs.h. */
26019 #include <$ac_header>
26021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26024 grep -v '^ *+' conftest.er1 >conftest.err
26026 cat conftest.err >&5
26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028 (exit $ac_status); } >/dev/null; then
26029 if test -s conftest.err; then
26030 ac_cpp_err=$ac_c_preproc_warn_flag
26031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26038 if test -z "$ac_cpp_err"; then
26039 ac_header_preproc=yes
26041 echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26044 ac_header_preproc=no
26046 rm -f conftest.err conftest.$ac_ext
26047 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26048 echo "${ECHO_T}$ac_header_preproc" >&6
26050 # So? What about this header?
26051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26057 ac_header_preproc=yes
26060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26067 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26074 ## --------------------------------------------- ##
26075 ## Report this to <http://www.openldap.org/its/> ##
26076 ## --------------------------------------------- ##
26079 sed "s/^/$as_me: WARNING: /" >&2
26082 echo "$as_me:$LINENO: checking for $ac_header" >&5
26083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26085 echo $ECHO_N "(cached) $ECHO_C" >&6
26087 eval "$as_ac_Header=\$ac_header_preproc"
26089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26094 cat >>confdefs.h <<_ACEOF
26095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26102 if test $ac_cv_header_lwp_lwp_h = yes ; then
26103 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26104 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26105 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26108 ac_check_lib_save_LIBS=$LIBS
26110 cat >conftest.$ac_ext <<_ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26117 /* Override any gcc2 internal prototype to avoid an error. */
26121 /* We use char because int might match the return type of a gcc2
26122 builtin and then its argument prototype would still apply. */
26123 char lwp_create ();
26132 rm -f conftest.$ac_objext conftest$ac_exeext
26133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26134 (eval $ac_link) 2>conftest.er1
26136 grep -v '^ *+' conftest.er1 >conftest.err
26138 cat conftest.err >&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); } &&
26141 { ac_try='test -z "$ac_c_werror_flag"
26142 || test ! -s conftest.err'
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; } &&
26148 { ac_try='test -s conftest$ac_exeext'
26149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26150 (eval $ac_try) 2>&5
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); }; }; then
26154 ac_cv_lib_lwp_lwp_create=yes
26156 echo "$as_me: failed program was:" >&5
26157 sed 's/^/| /' conftest.$ac_ext >&5
26159 ac_cv_lib_lwp_lwp_create=no
26161 rm -f conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext conftest.$ac_ext
26163 LIBS=$ac_check_lib_save_LIBS
26165 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26166 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26167 if test $ac_cv_lib_lwp_lwp_create = yes; then
26174 if test $have_lwp = yes ; then
26176 cat >>confdefs.h <<\_ACEOF
26180 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26181 ol_link_threads=lwp
26183 if test $ol_with_yielding_select = auto ; then
26184 ol_with_yielding_select=no
26191 if test $ol_with_yielding_select = yes ; then
26193 cat >>confdefs.h <<\_ACEOF
26194 #define HAVE_YIELDING_SELECT 1
26199 if test $ol_with_threads = manual ; then
26200 ol_link_threads=yes
26202 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26203 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26207 for ac_header in pthread.h sched.h
26209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26211 echo "$as_me:$LINENO: checking for $ac_header" >&5
26212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26219 # Is the header compilable?
26220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26222 cat >conftest.$ac_ext <<_ACEOF
26225 cat confdefs.h >>conftest.$ac_ext
26226 cat >>conftest.$ac_ext <<_ACEOF
26227 /* end confdefs.h. */
26228 $ac_includes_default
26229 #include <$ac_header>
26231 rm -f conftest.$ac_objext
26232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26233 (eval $ac_compile) 2>conftest.er1
26235 grep -v '^ *+' conftest.er1 >conftest.err
26237 cat conftest.err >&5
26238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); } &&
26240 { ac_try='test -z "$ac_c_werror_flag"
26241 || test ! -s conftest.err'
26242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246 (exit $ac_status); }; } &&
26247 { ac_try='test -s conftest.$ac_objext'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; }; then
26253 ac_header_compiler=yes
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26258 ac_header_compiler=no
26260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26262 echo "${ECHO_T}$ac_header_compiler" >&6
26264 # Is the header present?
26265 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26267 cat >conftest.$ac_ext <<_ACEOF
26270 cat confdefs.h >>conftest.$ac_ext
26271 cat >>conftest.$ac_ext <<_ACEOF
26272 /* end confdefs.h. */
26273 #include <$ac_header>
26275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26278 grep -v '^ *+' conftest.er1 >conftest.err
26280 cat conftest.err >&5
26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282 (exit $ac_status); } >/dev/null; then
26283 if test -s conftest.err; then
26284 ac_cpp_err=$ac_c_preproc_warn_flag
26285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26292 if test -z "$ac_cpp_err"; then
26293 ac_header_preproc=yes
26295 echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26298 ac_header_preproc=no
26300 rm -f conftest.err conftest.$ac_ext
26301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26302 echo "${ECHO_T}$ac_header_preproc" >&6
26304 # So? What about this header?
26305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26311 ac_header_preproc=yes
26314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26328 ## --------------------------------------------- ##
26329 ## Report this to <http://www.openldap.org/its/> ##
26330 ## --------------------------------------------- ##
26333 sed "s/^/$as_me: WARNING: /" >&2
26336 echo "$as_me:$LINENO: checking for $ac_header" >&5
26337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26339 echo $ECHO_N "(cached) $ECHO_C" >&6
26341 eval "$as_ac_Header=\$ac_header_preproc"
26343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26348 cat >>confdefs.h <<_ACEOF
26349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26358 for ac_func in sched_yield pthread_yield
26360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26361 echo "$as_me:$LINENO: checking for $ac_func" >&5
26362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26363 if eval "test \"\${$as_ac_var+set}\" = set"; then
26364 echo $ECHO_N "(cached) $ECHO_C" >&6
26366 cat >conftest.$ac_ext <<_ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h. */
26372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26374 #define $ac_func innocuous_$ac_func
26376 /* System header to define __stub macros and hopefully few prototypes,
26377 which can conflict with char $ac_func (); below.
26378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26379 <limits.h> exists even on freestanding compilers. */
26382 # include <limits.h>
26384 # include <assert.h>
26389 /* Override any gcc2 internal prototype to avoid an error. */
26394 /* We use char because int might match the return type of a gcc2
26395 builtin and then its argument prototype would still apply. */
26397 /* The GNU C library defines this for functions which it implements
26398 to always fail with ENOSYS. Some functions are actually named
26399 something starting with __ and the normal name is an alias. */
26400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26403 char (*f) () = $ac_func;
26412 return f != $ac_func;
26417 rm -f conftest.$ac_objext conftest$ac_exeext
26418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26419 (eval $ac_link) 2>conftest.er1
26421 grep -v '^ *+' conftest.er1 >conftest.err
26423 cat conftest.err >&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); } &&
26426 { ac_try='test -z "$ac_c_werror_flag"
26427 || test ! -s conftest.err'
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest$ac_exeext'
26434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435 (eval $ac_try) 2>&5
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); }; }; then
26439 eval "$as_ac_var=yes"
26441 echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26444 eval "$as_ac_var=no"
26446 rm -f conftest.err conftest.$ac_objext \
26447 conftest$ac_exeext conftest.$ac_ext
26449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26451 if test `eval echo '${'$as_ac_var'}'` = yes; then
26452 cat >>confdefs.h <<_ACEOF
26453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26460 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26461 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26462 if test "${ol_cv_header_linux_threads+set}" = set; then
26463 echo $ECHO_N "(cached) $ECHO_C" >&6
26465 cat >conftest.$ac_ext <<_ACEOF
26468 cat confdefs.h >>conftest.$ac_ext
26469 cat >>conftest.$ac_ext <<_ACEOF
26470 /* end confdefs.h. */
26471 #include <pthread.h>
26473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26474 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26475 ol_cv_header_linux_threads=yes
26477 ol_cv_header_linux_threads=no
26483 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26484 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26485 if test $ol_cv_header_linux_threads = yes; then
26487 cat >>confdefs.h <<\_ACEOF
26488 #define HAVE_LINUX_THREADS 1
26495 for ac_header in mach/cthreads.h
26497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26499 echo "$as_me:$LINENO: checking for $ac_header" >&5
26500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26507 # Is the header compilable?
26508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26510 cat >conftest.$ac_ext <<_ACEOF
26513 cat confdefs.h >>conftest.$ac_ext
26514 cat >>conftest.$ac_ext <<_ACEOF
26515 /* end confdefs.h. */
26516 $ac_includes_default
26517 #include <$ac_header>
26519 rm -f conftest.$ac_objext
26520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26521 (eval $ac_compile) 2>conftest.er1
26523 grep -v '^ *+' conftest.er1 >conftest.err
26525 cat conftest.err >&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } &&
26528 { ac_try='test -z "$ac_c_werror_flag"
26529 || test ! -s conftest.err'
26530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26531 (eval $ac_try) 2>&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); }; } &&
26535 { ac_try='test -s conftest.$ac_objext'
26536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537 (eval $ac_try) 2>&5
26539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540 (exit $ac_status); }; }; then
26541 ac_header_compiler=yes
26543 echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26546 ac_header_compiler=no
26548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26550 echo "${ECHO_T}$ac_header_compiler" >&6
26552 # Is the header present?
26553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26555 cat >conftest.$ac_ext <<_ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h. */
26561 #include <$ac_header>
26563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26566 grep -v '^ *+' conftest.er1 >conftest.err
26568 cat conftest.err >&5
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); } >/dev/null; then
26571 if test -s conftest.err; then
26572 ac_cpp_err=$ac_c_preproc_warn_flag
26573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26580 if test -z "$ac_cpp_err"; then
26581 ac_header_preproc=yes
26583 echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26586 ac_header_preproc=no
26588 rm -f conftest.err conftest.$ac_ext
26589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26590 echo "${ECHO_T}$ac_header_preproc" >&6
26592 # So? What about this header?
26593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26599 ac_header_preproc=yes
26602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26616 ## --------------------------------------------- ##
26617 ## Report this to <http://www.openldap.org/its/> ##
26618 ## --------------------------------------------- ##
26621 sed "s/^/$as_me: WARNING: /" >&2
26624 echo "$as_me:$LINENO: checking for $ac_header" >&5
26625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26627 echo $ECHO_N "(cached) $ECHO_C" >&6
26629 eval "$as_ac_Header=\$ac_header_preproc"
26631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26636 cat >>confdefs.h <<_ACEOF
26637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26645 for ac_header in lwp/lwp.h
26647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26649 echo "$as_me:$LINENO: checking for $ac_header" >&5
26650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26657 # Is the header compilable?
26658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 $ac_includes_default
26667 #include <$ac_header>
26669 rm -f conftest.$ac_objext
26670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26671 (eval $ac_compile) 2>conftest.er1
26673 grep -v '^ *+' conftest.er1 >conftest.err
26675 cat conftest.err >&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); } &&
26678 { ac_try='test -z "$ac_c_werror_flag"
26679 || test ! -s conftest.err'
26680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26681 (eval $ac_try) 2>&5
26683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684 (exit $ac_status); }; } &&
26685 { ac_try='test -s conftest.$ac_objext'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; }; then
26691 ac_header_compiler=yes
26693 echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26696 ac_header_compiler=no
26698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26700 echo "${ECHO_T}$ac_header_compiler" >&6
26702 # Is the header present?
26703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26705 cat >conftest.$ac_ext <<_ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h. */
26711 #include <$ac_header>
26713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26716 grep -v '^ *+' conftest.er1 >conftest.err
26718 cat conftest.err >&5
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); } >/dev/null; then
26721 if test -s conftest.err; then
26722 ac_cpp_err=$ac_c_preproc_warn_flag
26723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26730 if test -z "$ac_cpp_err"; then
26731 ac_header_preproc=yes
26733 echo "$as_me: failed program was:" >&5
26734 sed 's/^/| /' conftest.$ac_ext >&5
26736 ac_header_preproc=no
26738 rm -f conftest.err conftest.$ac_ext
26739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26740 echo "${ECHO_T}$ac_header_preproc" >&6
26742 # So? What about this header?
26743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26749 ac_header_preproc=yes
26752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26766 ## --------------------------------------------- ##
26767 ## Report this to <http://www.openldap.org/its/> ##
26768 ## --------------------------------------------- ##
26771 sed "s/^/$as_me: WARNING: /" >&2
26774 echo "$as_me:$LINENO: checking for $ac_header" >&5
26775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26777 echo $ECHO_N "(cached) $ECHO_C" >&6
26779 eval "$as_ac_Header=\$ac_header_preproc"
26781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26786 cat >>confdefs.h <<_ACEOF
26787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26796 for ac_header in thread.h synch.h
26798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26800 echo "$as_me:$LINENO: checking for $ac_header" >&5
26801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26808 # Is the header compilable?
26809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 $ac_includes_default
26818 #include <$ac_header>
26820 rm -f conftest.$ac_objext
26821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26822 (eval $ac_compile) 2>conftest.er1
26824 grep -v '^ *+' conftest.er1 >conftest.err
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } &&
26829 { ac_try='test -z "$ac_c_werror_flag"
26830 || test ! -s conftest.err'
26831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26832 (eval $ac_try) 2>&5
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); }; } &&
26836 { ac_try='test -s conftest.$ac_objext'
26837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26838 (eval $ac_try) 2>&5
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); }; }; then
26842 ac_header_compiler=yes
26844 echo "$as_me: failed program was:" >&5
26845 sed 's/^/| /' conftest.$ac_ext >&5
26847 ac_header_compiler=no
26849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26851 echo "${ECHO_T}$ac_header_compiler" >&6
26853 # Is the header present?
26854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26856 cat >conftest.$ac_ext <<_ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h. */
26862 #include <$ac_header>
26864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26867 grep -v '^ *+' conftest.er1 >conftest.err
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } >/dev/null; then
26872 if test -s conftest.err; then
26873 ac_cpp_err=$ac_c_preproc_warn_flag
26874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26881 if test -z "$ac_cpp_err"; then
26882 ac_header_preproc=yes
26884 echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26887 ac_header_preproc=no
26889 rm -f conftest.err conftest.$ac_ext
26890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26891 echo "${ECHO_T}$ac_header_preproc" >&6
26893 # So? What about this header?
26894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26900 ac_header_preproc=yes
26903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26917 ## --------------------------------------------- ##
26918 ## Report this to <http://www.openldap.org/its/> ##
26919 ## --------------------------------------------- ##
26922 sed "s/^/$as_me: WARNING: /" >&2
26925 echo "$as_me:$LINENO: checking for $ac_header" >&5
26926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26928 echo $ECHO_N "(cached) $ECHO_C" >&6
26930 eval "$as_ac_Header=\$ac_header_preproc"
26932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26937 cat >>confdefs.h <<_ACEOF
26938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26947 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26948 cat >>confdefs.h <<\_ACEOF
26949 #define REENTRANT 1
26952 cat >>confdefs.h <<\_ACEOF
26953 #define _REENTRANT 1
26956 cat >>confdefs.h <<\_ACEOF
26957 #define THREAD_SAFE 1
26960 cat >>confdefs.h <<\_ACEOF
26961 #define _THREAD_SAFE 1
26964 cat >>confdefs.h <<\_ACEOF
26965 #define THREADSAFE 1
26968 cat >>confdefs.h <<\_ACEOF
26969 #define _THREADSAFE 1
26972 cat >>confdefs.h <<\_ACEOF
26973 #define _SGI_MP_SOURCE 1
26977 echo "$as_me:$LINENO: checking for thread specific errno" >&5
26978 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26979 if test "${ol_cv_errno_thread_specific+set}" = set; then
26980 echo $ECHO_N "(cached) $ECHO_C" >&6
26983 cat >conftest.$ac_ext <<_ACEOF
26986 cat confdefs.h >>conftest.$ac_ext
26987 cat >>conftest.$ac_ext <<_ACEOF
26988 /* end confdefs.h. */
26998 rm -f conftest.$ac_objext conftest$ac_exeext
26999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27000 (eval $ac_link) 2>conftest.er1
27002 grep -v '^ *+' conftest.er1 >conftest.err
27004 cat conftest.err >&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } &&
27007 { ac_try='test -z "$ac_c_werror_flag"
27008 || test ! -s conftest.err'
27009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27010 (eval $ac_try) 2>&5
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; } &&
27014 { ac_try='test -s conftest$ac_exeext'
27015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27016 (eval $ac_try) 2>&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); }; }; then
27020 ol_cv_errno_thread_specific=yes
27022 echo "$as_me: failed program was:" >&5
27023 sed 's/^/| /' conftest.$ac_ext >&5
27025 ol_cv_errno_thread_specific=no
27027 rm -f conftest.err conftest.$ac_objext \
27028 conftest$ac_exeext conftest.$ac_ext
27031 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27032 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27034 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27035 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27036 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27037 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 cat >conftest.$ac_ext <<_ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h. */
27055 rm -f conftest.$ac_objext conftest$ac_exeext
27056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27057 (eval $ac_link) 2>conftest.er1
27059 grep -v '^ *+' conftest.er1 >conftest.err
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } &&
27064 { ac_try='test -z "$ac_c_werror_flag"
27065 || test ! -s conftest.err'
27066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067 (eval $ac_try) 2>&5
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); }; } &&
27071 { ac_try='test -s conftest$ac_exeext'
27072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073 (eval $ac_try) 2>&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27077 ol_cv_h_errno_thread_specific=yes
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 ol_cv_h_errno_thread_specific=no
27084 rm -f conftest.err conftest.$ac_objext \
27085 conftest$ac_exeext conftest.$ac_ext
27088 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27089 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27091 if test $ol_cv_errno_thread_specific != yes ||
27092 test $ol_cv_h_errno_thread_specific != yes ; then
27093 LIBS="$LTHREAD_LIBS $LIBS"
27099 if test $ol_link_threads = no ; then
27100 if test $ol_with_threads = yes ; then
27101 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27102 echo "$as_me: error: no suitable thread support" >&2;}
27103 { (exit 1); exit 1; }; }
27106 if test $ol_with_threads = auto ; then
27107 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27108 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27113 cat >>confdefs.h <<\_ACEOF
27114 #define NO_THREADS 1
27123 if test $ol_link_threads != no ; then
27125 cat >>confdefs.h <<\_ACEOF
27126 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27136 gethostbyname_r gethostbyaddr_r \
27139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27140 echo "$as_me:$LINENO: checking for $ac_func" >&5
27141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27142 if eval "test \"\${$as_ac_var+set}\" = set"; then
27143 echo $ECHO_N "(cached) $ECHO_C" >&6
27145 cat >conftest.$ac_ext <<_ACEOF
27148 cat confdefs.h >>conftest.$ac_ext
27149 cat >>conftest.$ac_ext <<_ACEOF
27150 /* end confdefs.h. */
27151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27153 #define $ac_func innocuous_$ac_func
27155 /* System header to define __stub macros and hopefully few prototypes,
27156 which can conflict with char $ac_func (); below.
27157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27158 <limits.h> exists even on freestanding compilers. */
27161 # include <limits.h>
27163 # include <assert.h>
27168 /* Override any gcc2 internal prototype to avoid an error. */
27173 /* We use char because int might match the return type of a gcc2
27174 builtin and then its argument prototype would still apply. */
27176 /* The GNU C library defines this for functions which it implements
27177 to always fail with ENOSYS. Some functions are actually named
27178 something starting with __ and the normal name is an alias. */
27179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27182 char (*f) () = $ac_func;
27191 return f != $ac_func;
27196 rm -f conftest.$ac_objext conftest$ac_exeext
27197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27198 (eval $ac_link) 2>conftest.er1
27200 grep -v '^ *+' conftest.er1 >conftest.err
27202 cat conftest.err >&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } &&
27205 { ac_try='test -z "$ac_c_werror_flag"
27206 || test ! -s conftest.err'
27207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208 (eval $ac_try) 2>&5
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; } &&
27212 { ac_try='test -s conftest$ac_exeext'
27213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27214 (eval $ac_try) 2>&5
27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); }; }; then
27218 eval "$as_ac_var=yes"
27220 echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27223 eval "$as_ac_var=no"
27225 rm -f conftest.err conftest.$ac_objext \
27226 conftest$ac_exeext conftest.$ac_ext
27228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27230 if test `eval echo '${'$as_ac_var'}'` = yes; then
27231 cat >>confdefs.h <<_ACEOF
27232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27239 if test "$ac_cv_func_ctime_r" = no ; then
27240 ol_cv_func_ctime_r_nargs=0
27242 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27243 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27244 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27245 echo $ECHO_N "(cached) $ECHO_C" >&6
27247 cat >conftest.$ac_ext <<_ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h. */
27257 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27262 rm -f conftest.$ac_objext
27263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27264 (eval $ac_compile) 2>conftest.er1
27266 grep -v '^ *+' conftest.er1 >conftest.err
27268 cat conftest.err >&5
27269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270 (exit $ac_status); } &&
27271 { ac_try='test -z "$ac_c_werror_flag"
27272 || test ! -s conftest.err'
27273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27274 (eval $ac_try) 2>&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; } &&
27278 { ac_try='test -s conftest.$ac_objext'
27279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27280 (eval $ac_try) 2>&5
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; }; then
27284 ol_cv_func_ctime_r_nargs3=yes
27286 echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27289 ol_cv_func_ctime_r_nargs3=no
27291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27293 cat >conftest.$ac_ext <<_ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h. */
27303 time_t ti; char *buffer; ctime_r(&ti,buffer);
27308 rm -f conftest.$ac_objext
27309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27310 (eval $ac_compile) 2>conftest.er1
27312 grep -v '^ *+' conftest.er1 >conftest.err
27314 cat conftest.err >&5
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); } &&
27317 { ac_try='test -z "$ac_c_werror_flag"
27318 || test ! -s conftest.err'
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; } &&
27324 { ac_try='test -s conftest.$ac_objext'
27325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326 (eval $ac_try) 2>&5
27328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329 (exit $ac_status); }; }; then
27330 ol_cv_func_ctime_r_nargs2=yes
27332 echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27335 ol_cv_func_ctime_r_nargs2=no
27337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27339 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27340 test $ol_cv_func_ctime_r_nargs2 = no ; then
27342 ol_cv_func_ctime_r_nargs=3
27344 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27345 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27347 ol_cv_func_ctime_r_nargs=2
27350 ol_cv_func_ctime_r_nargs=0
27354 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27355 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27357 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27359 cat >>confdefs.h <<_ACEOF
27360 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27367 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27368 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27369 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27370 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27371 echo $ECHO_N "(cached) $ECHO_C" >&6
27373 cat >conftest.$ac_ext <<_ACEOF
27376 cat confdefs.h >>conftest.$ac_ext
27377 cat >>conftest.$ac_ext <<_ACEOF
27378 /* end confdefs.h. */
27379 #include <sys/types.h>
27380 #include <sys/socket.h>
27381 #include <netinet/in.h>
27383 #define BUFSIZE (sizeof(struct hostent)+10)
27387 struct hostent hent; char buffer[BUFSIZE];
27388 int bufsize=BUFSIZE;int h_errno;
27389 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27390 buffer, bufsize, &h_errno);
27395 rm -f conftest.$ac_objext
27396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27397 (eval $ac_compile) 2>conftest.er1
27399 grep -v '^ *+' conftest.er1 >conftest.err
27401 cat conftest.err >&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } &&
27404 { ac_try='test -z "$ac_c_werror_flag"
27405 || test ! -s conftest.err'
27406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27407 (eval $ac_try) 2>&5
27409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); }; } &&
27411 { ac_try='test -s conftest.$ac_objext'
27412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27413 (eval $ac_try) 2>&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); }; }; then
27417 ol_cv_func_gethostbyname_r_nargs5=yes
27419 echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27422 ol_cv_func_gethostbyname_r_nargs5=no
27424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27426 cat >conftest.$ac_ext <<_ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h. */
27432 #include <sys/types.h>
27433 #include <sys/socket.h>
27434 #include <netinet/in.h>
27436 #define BUFSIZE (sizeof(struct hostent)+10)
27440 struct hostent hent;struct hostent *rhent;
27441 char buffer[BUFSIZE];
27442 int bufsize=BUFSIZE;int h_errno;
27443 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27449 rm -f conftest.$ac_objext
27450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27451 (eval $ac_compile) 2>conftest.er1
27453 grep -v '^ *+' conftest.er1 >conftest.err
27455 cat conftest.err >&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); } &&
27458 { ac_try='test -z "$ac_c_werror_flag"
27459 || test ! -s conftest.err'
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; } &&
27465 { ac_try='test -s conftest.$ac_objext'
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; }; then
27471 ol_cv_func_gethostbyname_r_nargs6=yes
27473 echo "$as_me: failed program was:" >&5
27474 sed 's/^/| /' conftest.$ac_ext >&5
27476 ol_cv_func_gethostbyname_r_nargs6=no
27478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27480 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27481 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27483 ol_cv_func_gethostbyname_r_nargs=5
27485 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27486 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27488 ol_cv_func_gethostbyname_r_nargs=6
27491 ol_cv_func_gethostbyname_r_nargs=0
27495 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27496 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27497 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27499 cat >>confdefs.h <<_ACEOF
27500 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27506 ol_cv_func_gethostbyname_r_nargs=0
27509 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27510 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27511 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27512 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27515 cat >conftest.$ac_ext <<_ACEOF
27518 cat confdefs.h >>conftest.$ac_ext
27519 cat >>conftest.$ac_ext <<_ACEOF
27520 /* end confdefs.h. */
27521 #include <sys/types.h>
27522 #include <sys/socket.h>
27523 #include <netinet/in.h>
27525 #define BUFSIZE (sizeof(struct hostent)+10)
27529 struct hostent hent; char buffer[BUFSIZE];
27530 struct in_addr add;
27531 size_t alen=sizeof(struct in_addr);
27532 int bufsize=BUFSIZE;int h_errno;
27533 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27534 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27539 rm -f conftest.$ac_objext
27540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27541 (eval $ac_compile) 2>conftest.er1
27543 grep -v '^ *+' conftest.er1 >conftest.err
27545 cat conftest.err >&5
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); } &&
27548 { ac_try='test -z "$ac_c_werror_flag"
27549 || test ! -s conftest.err'
27550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551 (eval $ac_try) 2>&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; } &&
27555 { ac_try='test -s conftest.$ac_objext'
27556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27557 (eval $ac_try) 2>&5
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; }; then
27561 ol_cv_func_gethostbyaddr_r_nargs7=yes
27563 echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27566 ol_cv_func_gethostbyaddr_r_nargs7=no
27568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27570 cat >conftest.$ac_ext <<_ACEOF
27573 cat confdefs.h >>conftest.$ac_ext
27574 cat >>conftest.$ac_ext <<_ACEOF
27575 /* end confdefs.h. */
27576 #include <sys/types.h>
27577 #include <sys/socket.h>
27578 #include <netinet/in.h>
27580 #define BUFSIZE (sizeof(struct hostent)+10)
27584 struct hostent hent;
27585 struct hostent *rhent; char buffer[BUFSIZE];
27586 struct in_addr add;
27587 size_t alen=sizeof(struct in_addr);
27588 int bufsize=BUFSIZE;int h_errno;
27589 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27590 alen, AF_INET, &hent, buffer, bufsize,
27596 rm -f conftest.$ac_objext
27597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27598 (eval $ac_compile) 2>conftest.er1
27600 grep -v '^ *+' conftest.er1 >conftest.err
27602 cat conftest.err >&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); } &&
27605 { ac_try='test -z "$ac_c_werror_flag"
27606 || test ! -s conftest.err'
27607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27608 (eval $ac_try) 2>&5
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); }; } &&
27612 { ac_try='test -s conftest.$ac_objext'
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; }; then
27618 ol_cv_func_gethostbyaddr_r_nargs8=yes
27620 echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27623 ol_cv_func_gethostbyaddr_r_nargs8=no
27625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27627 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27628 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27630 ol_cv_func_gethostbyaddr_r_nargs=7
27632 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27633 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27635 ol_cv_func_gethostbyaddr_r_nargs=8
27638 ol_cv_func_gethostbyaddr_r_nargs=0
27642 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27643 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27644 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27646 cat >>confdefs.h <<_ACEOF
27647 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27653 ol_cv_func_gethostbyaddr_r_nargs=0
27658 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27659 ol_cv_berkeley_db=no
27661 for ac_header in db.h
27663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27665 echo "$as_me:$LINENO: checking for $ac_header" >&5
27666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27668 echo $ECHO_N "(cached) $ECHO_C" >&6
27670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27673 # Is the header compilable?
27674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27676 cat >conftest.$ac_ext <<_ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h. */
27682 $ac_includes_default
27683 #include <$ac_header>
27685 rm -f conftest.$ac_objext
27686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27687 (eval $ac_compile) 2>conftest.er1
27689 grep -v '^ *+' conftest.er1 >conftest.err
27691 cat conftest.err >&5
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } &&
27694 { ac_try='test -z "$ac_c_werror_flag"
27695 || test ! -s conftest.err'
27696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697 (eval $ac_try) 2>&5
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; } &&
27701 { ac_try='test -s conftest.$ac_objext'
27702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703 (eval $ac_try) 2>&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; }; then
27707 ac_header_compiler=yes
27709 echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27712 ac_header_compiler=no
27714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27716 echo "${ECHO_T}$ac_header_compiler" >&6
27718 # Is the header present?
27719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27721 cat >conftest.$ac_ext <<_ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27727 #include <$ac_header>
27729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27732 grep -v '^ *+' conftest.er1 >conftest.err
27734 cat conftest.err >&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); } >/dev/null; then
27737 if test -s conftest.err; then
27738 ac_cpp_err=$ac_c_preproc_warn_flag
27739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27746 if test -z "$ac_cpp_err"; then
27747 ac_header_preproc=yes
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 ac_header_preproc=no
27754 rm -f conftest.err conftest.$ac_ext
27755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27756 echo "${ECHO_T}$ac_header_preproc" >&6
27758 # So? What about this header?
27759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27765 ac_header_preproc=yes
27768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27782 ## --------------------------------------------- ##
27783 ## Report this to <http://www.openldap.org/its/> ##
27784 ## --------------------------------------------- ##
27787 sed "s/^/$as_me: WARNING: /" >&2
27790 echo "$as_me:$LINENO: checking for $ac_header" >&5
27791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27793 echo $ECHO_N "(cached) $ECHO_C" >&6
27795 eval "$as_ac_Header=\$ac_header_preproc"
27797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27802 cat >>confdefs.h <<_ACEOF
27803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27810 if test $ac_cv_header_db_h = yes; then
27813 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27814 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27815 if test "${ol_cv_bdb_major+set}" = set; then
27816 echo $ECHO_N "(cached) $ECHO_C" >&6
27820 if test $ol_cv_bdb_major = 0 ; then
27821 cat >conftest.$ac_ext <<_ACEOF
27824 cat confdefs.h >>conftest.$ac_ext
27825 cat >>conftest.$ac_ext <<_ACEOF
27826 /* end confdefs.h. */
27829 #ifndef DB_VERSION_MAJOR
27830 # define DB_VERSION_MAJOR 1
27832 #if DB_VERSION_MAJOR == 4
27837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27838 $EGREP "__db_version" >/dev/null 2>&1; then
27846 if test $ol_cv_bdb_major = 0 ; then
27847 cat >conftest.$ac_ext <<_ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h. */
27855 #ifndef DB_VERSION_MAJOR
27856 # define DB_VERSION_MAJOR 1
27858 #if DB_VERSION_MAJOR == 3
27863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27864 $EGREP "__db_version" >/dev/null 2>&1; then
27872 if test $ol_cv_bdb_major = 0 ; then
27873 cat >conftest.$ac_ext <<_ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h. */
27881 #ifndef DB_VERSION_MAJOR
27882 # define DB_VERSION_MAJOR 1
27884 #if DB_VERSION_MAJOR == 2
27889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27890 $EGREP "__db_version" >/dev/null 2>&1; then
27898 if test $ol_cv_bdb_major = 0 ; then
27899 cat >conftest.$ac_ext <<_ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h. */
27907 #ifndef DB_VERSION_MAJOR
27908 # define DB_VERSION_MAJOR 1
27910 #if DB_VERSION_MAJOR == 1
27915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27916 $EGREP "__db_version" >/dev/null 2>&1; then
27925 if test $ol_cv_bdb_major = 0 ; then
27926 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27927 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27928 { (exit 1); exit 1; }; }
27932 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27933 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27935 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27936 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27937 if test "${ol_cv_bdb_minor+set}" = set; then
27938 echo $ECHO_N "(cached) $ECHO_C" >&6
27942 if test $ol_cv_bdb_minor = 0 ; then
27943 cat >conftest.$ac_ext <<_ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h. */
27951 #ifndef DB_VERSION_MINOR
27952 # define DB_VERSION_MINOR 0
27954 #if DB_VERSION_MINOR == 9
27959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27960 $EGREP "__db_version" >/dev/null 2>&1; then
27968 if test $ol_cv_bdb_minor = 0 ; then
27969 cat >conftest.$ac_ext <<_ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h. */
27977 #ifndef DB_VERSION_MINOR
27978 # define DB_VERSION_MINOR 0
27980 #if DB_VERSION_MINOR == 8
27985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27986 $EGREP "__db_version" >/dev/null 2>&1; then
27994 if test $ol_cv_bdb_minor = 0 ; then
27995 cat >conftest.$ac_ext <<_ACEOF
27998 cat confdefs.h >>conftest.$ac_ext
27999 cat >>conftest.$ac_ext <<_ACEOF
28000 /* end confdefs.h. */
28003 #ifndef DB_VERSION_MINOR
28004 # define DB_VERSION_MINOR 0
28006 #if DB_VERSION_MINOR == 7
28011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28012 $EGREP "__db_version" >/dev/null 2>&1; then
28020 if test $ol_cv_bdb_minor = 0 ; then
28021 cat >conftest.$ac_ext <<_ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h. */
28029 #ifndef DB_VERSION_MINOR
28030 # define DB_VERSION_MINOR 0
28032 #if DB_VERSION_MINOR == 6
28037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28038 $EGREP "__db_version" >/dev/null 2>&1; then
28046 if test $ol_cv_bdb_minor = 0 ; then
28047 cat >conftest.$ac_ext <<_ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h. */
28055 #ifndef DB_VERSION_MINOR
28056 # define DB_VERSION_MINOR 0
28058 #if DB_VERSION_MINOR == 5
28063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28064 $EGREP "__db_version" >/dev/null 2>&1; then
28072 if test $ol_cv_bdb_minor = 0 ; then
28073 cat >conftest.$ac_ext <<_ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h. */
28081 #ifndef DB_VERSION_MINOR
28082 # define DB_VERSION_MINOR 0
28084 #if DB_VERSION_MINOR == 4
28089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28090 $EGREP "__db_version" >/dev/null 2>&1; then
28098 if test $ol_cv_bdb_minor = 0 ; then
28099 cat >conftest.$ac_ext <<_ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h. */
28107 #ifndef DB_VERSION_MINOR
28108 # define DB_VERSION_MINOR 0
28110 #if DB_VERSION_MINOR == 3
28115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28116 $EGREP "__db_version" >/dev/null 2>&1; then
28124 if test $ol_cv_bdb_minor = 0 ; then
28125 cat >conftest.$ac_ext <<_ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h. */
28133 #ifndef DB_VERSION_MINOR
28134 # define DB_VERSION_MINOR 0
28136 #if DB_VERSION_MINOR == 2
28141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28142 $EGREP "__db_version" >/dev/null 2>&1; then
28150 if test $ol_cv_bdb_minor = 0 ; then
28151 cat >conftest.$ac_ext <<_ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h. */
28159 #ifndef DB_VERSION_MINOR
28160 # define DB_VERSION_MINOR 0
28162 #if DB_VERSION_MINOR == 1
28167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28168 $EGREP "__db_version" >/dev/null 2>&1; then
28178 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28179 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28181 if test $ol_cv_bdb_major = 4 ; then
28182 if test $ol_cv_bdb_minor = 4 ; then
28183 if test $ol_cv_lib_db = no ; then
28184 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28185 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28186 if test "${ol_cv_db_db44+set}" = set; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28192 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28194 cat >conftest.$ac_ext <<_ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h. */
28201 #ifdef HAVE_DB_185_H
28202 # include <db_185.h>
28207 #ifndef DB_VERSION_MAJOR
28208 # define DB_VERSION_MAJOR 1
28212 #define NULL ((void*)0)
28219 #if DB_VERSION_MAJOR > 1
28222 int major, minor, patch;
28224 version = db_version( &major, &minor, &patch );
28226 if( major != DB_VERSION_MAJOR ||
28227 minor < DB_VERSION_MINOR )
28229 printf("Berkeley DB version mismatch\n"
28230 "\theader: %s\n\tlibrary: %s\n",
28231 DB_VERSION_STRING, version);
28237 #if DB_VERSION_MAJOR > 2
28238 db_env_create( NULL, 0 );
28239 #elif DB_VERSION_MAJOR > 1
28240 db_appexit( NULL );
28242 (void) dbopen( NULL, 0, 0, 0, NULL);
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251 (eval $ac_link) 2>conftest.er1
28253 grep -v '^ *+' conftest.er1 >conftest.err
28255 cat conftest.err >&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); } &&
28258 { ac_try='test -z "$ac_c_werror_flag"
28259 || test ! -s conftest.err'
28260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; } &&
28265 { ac_try='test -s conftest$ac_exeext'
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; }; then
28273 echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28278 rm -f conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
28284 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28285 echo "${ECHO_T}$ol_cv_db_db44" >&6
28287 if test $ol_cv_db_db44 = yes ; then
28288 ol_cv_lib_db=-ldb44
28292 if test $ol_cv_lib_db = no ; then
28293 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28294 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28295 if test "${ol_cv_db_db_44+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28301 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28310 #ifdef HAVE_DB_185_H
28311 # include <db_185.h>
28316 #ifndef DB_VERSION_MAJOR
28317 # define DB_VERSION_MAJOR 1
28321 #define NULL ((void*)0)
28328 #if DB_VERSION_MAJOR > 1
28331 int major, minor, patch;
28333 version = db_version( &major, &minor, &patch );
28335 if( major != DB_VERSION_MAJOR ||
28336 minor < DB_VERSION_MINOR )
28338 printf("Berkeley DB version mismatch\n"
28339 "\theader: %s\n\tlibrary: %s\n",
28340 DB_VERSION_STRING, version);
28346 #if DB_VERSION_MAJOR > 2
28347 db_env_create( NULL, 0 );
28348 #elif DB_VERSION_MAJOR > 1
28349 db_appexit( NULL );
28351 (void) dbopen( NULL, 0, 0, 0, NULL);
28358 rm -f conftest.$ac_objext conftest$ac_exeext
28359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28360 (eval $ac_link) 2>conftest.er1
28362 grep -v '^ *+' conftest.er1 >conftest.err
28364 cat conftest.err >&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } &&
28367 { ac_try='test -z "$ac_c_werror_flag"
28368 || test ! -s conftest.err'
28369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
28375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376 (eval $ac_try) 2>&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; }; then
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28387 rm -f conftest.err conftest.$ac_objext \
28388 conftest$ac_exeext conftest.$ac_ext
28393 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28394 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28396 if test $ol_cv_db_db_44 = yes ; then
28397 ol_cv_lib_db=-ldb-44
28401 if test $ol_cv_lib_db = no ; then
28402 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28403 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28404 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28410 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28412 cat >conftest.$ac_ext <<_ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h. */
28419 #ifdef HAVE_DB_185_H
28420 # include <db_185.h>
28425 #ifndef DB_VERSION_MAJOR
28426 # define DB_VERSION_MAJOR 1
28430 #define NULL ((void*)0)
28437 #if DB_VERSION_MAJOR > 1
28440 int major, minor, patch;
28442 version = db_version( &major, &minor, &patch );
28444 if( major != DB_VERSION_MAJOR ||
28445 minor < DB_VERSION_MINOR )
28447 printf("Berkeley DB version mismatch\n"
28448 "\theader: %s\n\tlibrary: %s\n",
28449 DB_VERSION_STRING, version);
28455 #if DB_VERSION_MAJOR > 2
28456 db_env_create( NULL, 0 );
28457 #elif DB_VERSION_MAJOR > 1
28458 db_appexit( NULL );
28460 (void) dbopen( NULL, 0, 0, 0, NULL);
28467 rm -f conftest.$ac_objext conftest$ac_exeext
28468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28469 (eval $ac_link) 2>conftest.er1
28471 grep -v '^ *+' conftest.er1 >conftest.err
28473 cat conftest.err >&5
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); } &&
28476 { ac_try='test -z "$ac_c_werror_flag"
28477 || test ! -s conftest.err'
28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479 (eval $ac_try) 2>&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); }; } &&
28483 { ac_try='test -s conftest$ac_exeext'
28484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485 (eval $ac_try) 2>&5
28487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488 (exit $ac_status); }; }; then
28489 ol_cv_db_db_4_dot_4=yes
28491 echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28494 ol_cv_db_db_4_dot_4=no
28496 rm -f conftest.err conftest.$ac_objext \
28497 conftest$ac_exeext conftest.$ac_ext
28502 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28503 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28505 if test $ol_cv_db_db_4_dot_4 = yes ; then
28506 ol_cv_lib_db=-ldb-4.4
28510 if test $ol_cv_lib_db = no ; then
28511 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28512 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28513 if test "${ol_cv_db_db_4_4+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28519 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28528 #ifdef HAVE_DB_185_H
28529 # include <db_185.h>
28534 #ifndef DB_VERSION_MAJOR
28535 # define DB_VERSION_MAJOR 1
28539 #define NULL ((void*)0)
28546 #if DB_VERSION_MAJOR > 1
28549 int major, minor, patch;
28551 version = db_version( &major, &minor, &patch );
28553 if( major != DB_VERSION_MAJOR ||
28554 minor < DB_VERSION_MINOR )
28556 printf("Berkeley DB version mismatch\n"
28557 "\theader: %s\n\tlibrary: %s\n",
28558 DB_VERSION_STRING, version);
28564 #if DB_VERSION_MAJOR > 2
28565 db_env_create( NULL, 0 );
28566 #elif DB_VERSION_MAJOR > 1
28567 db_appexit( NULL );
28569 (void) dbopen( NULL, 0, 0, 0, NULL);
28576 rm -f conftest.$ac_objext conftest$ac_exeext
28577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28578 (eval $ac_link) 2>conftest.er1
28580 grep -v '^ *+' conftest.er1 >conftest.err
28582 cat conftest.err >&5
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } &&
28585 { ac_try='test -z "$ac_c_werror_flag"
28586 || test ! -s conftest.err'
28587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; } &&
28592 { ac_try='test -s conftest$ac_exeext'
28593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; }; then
28598 ol_cv_db_db_4_4=yes
28600 echo "$as_me: failed program was:" >&5
28601 sed 's/^/| /' conftest.$ac_ext >&5
28605 rm -f conftest.err conftest.$ac_objext \
28606 conftest$ac_exeext conftest.$ac_ext
28611 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28612 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28614 if test $ol_cv_db_db_4_4 = yes ; then
28615 ol_cv_lib_db=-ldb-4-4
28619 elif test $ol_cv_bdb_minor = 3 ; then
28620 if test $ol_cv_lib_db = no ; then
28621 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28622 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28623 if test "${ol_cv_db_db43+set}" = set; then
28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28629 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28631 cat >conftest.$ac_ext <<_ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h. */
28638 #ifdef HAVE_DB_185_H
28639 # include <db_185.h>
28644 #ifndef DB_VERSION_MAJOR
28645 # define DB_VERSION_MAJOR 1
28649 #define NULL ((void*)0)
28656 #if DB_VERSION_MAJOR > 1
28659 int major, minor, patch;
28661 version = db_version( &major, &minor, &patch );
28663 if( major != DB_VERSION_MAJOR ||
28664 minor < DB_VERSION_MINOR )
28666 printf("Berkeley DB version mismatch\n"
28667 "\theader: %s\n\tlibrary: %s\n",
28668 DB_VERSION_STRING, version);
28674 #if DB_VERSION_MAJOR > 2
28675 db_env_create( NULL, 0 );
28676 #elif DB_VERSION_MAJOR > 1
28677 db_appexit( NULL );
28679 (void) dbopen( NULL, 0, 0, 0, NULL);
28686 rm -f conftest.$ac_objext conftest$ac_exeext
28687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28688 (eval $ac_link) 2>conftest.er1
28690 grep -v '^ *+' conftest.er1 >conftest.err
28692 cat conftest.err >&5
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); } &&
28695 { ac_try='test -z "$ac_c_werror_flag"
28696 || test ! -s conftest.err'
28697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698 (eval $ac_try) 2>&5
28700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701 (exit $ac_status); }; } &&
28702 { ac_try='test -s conftest$ac_exeext'
28703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28704 (eval $ac_try) 2>&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; }; then
28710 echo "$as_me: failed program was:" >&5
28711 sed 's/^/| /' conftest.$ac_ext >&5
28715 rm -f conftest.err conftest.$ac_objext \
28716 conftest$ac_exeext conftest.$ac_ext
28721 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28722 echo "${ECHO_T}$ol_cv_db_db43" >&6
28724 if test $ol_cv_db_db43 = yes ; then
28725 ol_cv_lib_db=-ldb43
28729 if test $ol_cv_lib_db = no ; then
28730 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28731 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28732 if test "${ol_cv_db_db_43+set}" = set; then
28733 echo $ECHO_N "(cached) $ECHO_C" >&6
28738 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28740 cat >conftest.$ac_ext <<_ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h. */
28747 #ifdef HAVE_DB_185_H
28748 # include <db_185.h>
28753 #ifndef DB_VERSION_MAJOR
28754 # define DB_VERSION_MAJOR 1
28758 #define NULL ((void*)0)
28765 #if DB_VERSION_MAJOR > 1
28768 int major, minor, patch;
28770 version = db_version( &major, &minor, &patch );
28772 if( major != DB_VERSION_MAJOR ||
28773 minor < DB_VERSION_MINOR )
28775 printf("Berkeley DB version mismatch\n"
28776 "\theader: %s\n\tlibrary: %s\n",
28777 DB_VERSION_STRING, version);
28783 #if DB_VERSION_MAJOR > 2
28784 db_env_create( NULL, 0 );
28785 #elif DB_VERSION_MAJOR > 1
28786 db_appexit( NULL );
28788 (void) dbopen( NULL, 0, 0, 0, NULL);
28795 rm -f conftest.$ac_objext conftest$ac_exeext
28796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28797 (eval $ac_link) 2>conftest.er1
28799 grep -v '^ *+' conftest.er1 >conftest.err
28801 cat conftest.err >&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); } &&
28804 { ac_try='test -z "$ac_c_werror_flag"
28805 || test ! -s conftest.err'
28806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807 (eval $ac_try) 2>&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; } &&
28811 { ac_try='test -s conftest$ac_exeext'
28812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813 (eval $ac_try) 2>&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); }; }; then
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28824 rm -f conftest.err conftest.$ac_objext \
28825 conftest$ac_exeext conftest.$ac_ext
28830 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28831 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28833 if test $ol_cv_db_db_43 = yes ; then
28834 ol_cv_lib_db=-ldb-43
28838 if test $ol_cv_lib_db = no ; then
28839 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28840 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28841 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28842 echo $ECHO_N "(cached) $ECHO_C" >&6
28847 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28849 cat >conftest.$ac_ext <<_ACEOF
28852 cat confdefs.h >>conftest.$ac_ext
28853 cat >>conftest.$ac_ext <<_ACEOF
28854 /* end confdefs.h. */
28856 #ifdef HAVE_DB_185_H
28857 # include <db_185.h>
28862 #ifndef DB_VERSION_MAJOR
28863 # define DB_VERSION_MAJOR 1
28867 #define NULL ((void*)0)
28874 #if DB_VERSION_MAJOR > 1
28877 int major, minor, patch;
28879 version = db_version( &major, &minor, &patch );
28881 if( major != DB_VERSION_MAJOR ||
28882 minor < DB_VERSION_MINOR )
28884 printf("Berkeley DB version mismatch\n"
28885 "\theader: %s\n\tlibrary: %s\n",
28886 DB_VERSION_STRING, version);
28892 #if DB_VERSION_MAJOR > 2
28893 db_env_create( NULL, 0 );
28894 #elif DB_VERSION_MAJOR > 1
28895 db_appexit( NULL );
28897 (void) dbopen( NULL, 0, 0, 0, NULL);
28904 rm -f conftest.$ac_objext conftest$ac_exeext
28905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28906 (eval $ac_link) 2>conftest.er1
28908 grep -v '^ *+' conftest.er1 >conftest.err
28910 cat conftest.err >&5
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); } &&
28913 { ac_try='test -z "$ac_c_werror_flag"
28914 || test ! -s conftest.err'
28915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916 (eval $ac_try) 2>&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); }; } &&
28920 { ac_try='test -s conftest$ac_exeext'
28921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; }; then
28926 ol_cv_db_db_4_dot_3=yes
28928 echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28931 ol_cv_db_db_4_dot_3=no
28933 rm -f conftest.err conftest.$ac_objext \
28934 conftest$ac_exeext conftest.$ac_ext
28939 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28940 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28942 if test $ol_cv_db_db_4_dot_3 = yes ; then
28943 ol_cv_lib_db=-ldb-4.3
28947 if test $ol_cv_lib_db = no ; then
28948 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28949 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28950 if test "${ol_cv_db_db_4_3+set}" = set; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28956 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28958 cat >conftest.$ac_ext <<_ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28965 #ifdef HAVE_DB_185_H
28966 # include <db_185.h>
28971 #ifndef DB_VERSION_MAJOR
28972 # define DB_VERSION_MAJOR 1
28976 #define NULL ((void*)0)
28983 #if DB_VERSION_MAJOR > 1
28986 int major, minor, patch;
28988 version = db_version( &major, &minor, &patch );
28990 if( major != DB_VERSION_MAJOR ||
28991 minor < DB_VERSION_MINOR )
28993 printf("Berkeley DB version mismatch\n"
28994 "\theader: %s\n\tlibrary: %s\n",
28995 DB_VERSION_STRING, version);
29001 #if DB_VERSION_MAJOR > 2
29002 db_env_create( NULL, 0 );
29003 #elif DB_VERSION_MAJOR > 1
29004 db_appexit( NULL );
29006 (void) dbopen( NULL, 0, 0, 0, NULL);
29013 rm -f conftest.$ac_objext conftest$ac_exeext
29014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29015 (eval $ac_link) 2>conftest.er1
29017 grep -v '^ *+' conftest.er1 >conftest.err
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } &&
29022 { ac_try='test -z "$ac_c_werror_flag"
29023 || test ! -s conftest.err'
29024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29025 (eval $ac_try) 2>&5
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); }; } &&
29029 { ac_try='test -s conftest$ac_exeext'
29030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29031 (eval $ac_try) 2>&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); }; }; then
29035 ol_cv_db_db_4_3=yes
29037 echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29042 rm -f conftest.err conftest.$ac_objext \
29043 conftest$ac_exeext conftest.$ac_ext
29048 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29049 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29051 if test $ol_cv_db_db_4_3 = yes ; then
29052 ol_cv_lib_db=-ldb-4-3
29056 elif test $ol_cv_bdb_minor = 2 ; then
29057 if test $ol_cv_lib_db = no ; then
29058 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29059 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29060 if test "${ol_cv_db_db42+set}" = set; then
29061 echo $ECHO_N "(cached) $ECHO_C" >&6
29066 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29068 cat >conftest.$ac_ext <<_ACEOF
29071 cat confdefs.h >>conftest.$ac_ext
29072 cat >>conftest.$ac_ext <<_ACEOF
29073 /* end confdefs.h. */
29075 #ifdef HAVE_DB_185_H
29076 # include <db_185.h>
29081 #ifndef DB_VERSION_MAJOR
29082 # define DB_VERSION_MAJOR 1
29086 #define NULL ((void*)0)
29093 #if DB_VERSION_MAJOR > 1
29096 int major, minor, patch;
29098 version = db_version( &major, &minor, &patch );
29100 if( major != DB_VERSION_MAJOR ||
29101 minor < DB_VERSION_MINOR )
29103 printf("Berkeley DB version mismatch\n"
29104 "\theader: %s\n\tlibrary: %s\n",
29105 DB_VERSION_STRING, version);
29111 #if DB_VERSION_MAJOR > 2
29112 db_env_create( NULL, 0 );
29113 #elif DB_VERSION_MAJOR > 1
29114 db_appexit( NULL );
29116 (void) dbopen( NULL, 0, 0, 0, NULL);
29123 rm -f conftest.$ac_objext conftest$ac_exeext
29124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29125 (eval $ac_link) 2>conftest.er1
29127 grep -v '^ *+' conftest.er1 >conftest.err
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } &&
29132 { ac_try='test -z "$ac_c_werror_flag"
29133 || test ! -s conftest.err'
29134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; } &&
29139 { ac_try='test -s conftest$ac_exeext'
29140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29141 (eval $ac_try) 2>&5
29143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144 (exit $ac_status); }; }; then
29147 echo "$as_me: failed program was:" >&5
29148 sed 's/^/| /' conftest.$ac_ext >&5
29152 rm -f conftest.err conftest.$ac_objext \
29153 conftest$ac_exeext conftest.$ac_ext
29158 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29159 echo "${ECHO_T}$ol_cv_db_db42" >&6
29161 if test $ol_cv_db_db42 = yes ; then
29162 ol_cv_lib_db=-ldb42
29166 if test $ol_cv_lib_db = no ; then
29167 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29168 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29169 if test "${ol_cv_db_db_42+set}" = set; then
29170 echo $ECHO_N "(cached) $ECHO_C" >&6
29175 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29177 cat >conftest.$ac_ext <<_ACEOF
29180 cat confdefs.h >>conftest.$ac_ext
29181 cat >>conftest.$ac_ext <<_ACEOF
29182 /* end confdefs.h. */
29184 #ifdef HAVE_DB_185_H
29185 # include <db_185.h>
29190 #ifndef DB_VERSION_MAJOR
29191 # define DB_VERSION_MAJOR 1
29195 #define NULL ((void*)0)
29202 #if DB_VERSION_MAJOR > 1
29205 int major, minor, patch;
29207 version = db_version( &major, &minor, &patch );
29209 if( major != DB_VERSION_MAJOR ||
29210 minor < DB_VERSION_MINOR )
29212 printf("Berkeley DB version mismatch\n"
29213 "\theader: %s\n\tlibrary: %s\n",
29214 DB_VERSION_STRING, version);
29220 #if DB_VERSION_MAJOR > 2
29221 db_env_create( NULL, 0 );
29222 #elif DB_VERSION_MAJOR > 1
29223 db_appexit( NULL );
29225 (void) dbopen( NULL, 0, 0, 0, NULL);
29232 rm -f conftest.$ac_objext conftest$ac_exeext
29233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29234 (eval $ac_link) 2>conftest.er1
29236 grep -v '^ *+' conftest.er1 >conftest.err
29238 cat conftest.err >&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); } &&
29241 { ac_try='test -z "$ac_c_werror_flag"
29242 || test ! -s conftest.err'
29243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29244 (eval $ac_try) 2>&5
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; } &&
29248 { ac_try='test -s conftest$ac_exeext'
29249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250 (eval $ac_try) 2>&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); }; }; then
29256 echo "$as_me: failed program was:" >&5
29257 sed 's/^/| /' conftest.$ac_ext >&5
29261 rm -f conftest.err conftest.$ac_objext \
29262 conftest$ac_exeext conftest.$ac_ext
29267 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29268 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29270 if test $ol_cv_db_db_42 = yes ; then
29271 ol_cv_lib_db=-ldb-42
29275 if test $ol_cv_lib_db = no ; then
29276 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29277 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29278 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29279 echo $ECHO_N "(cached) $ECHO_C" >&6
29284 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29286 cat >conftest.$ac_ext <<_ACEOF
29289 cat confdefs.h >>conftest.$ac_ext
29290 cat >>conftest.$ac_ext <<_ACEOF
29291 /* end confdefs.h. */
29293 #ifdef HAVE_DB_185_H
29294 # include <db_185.h>
29299 #ifndef DB_VERSION_MAJOR
29300 # define DB_VERSION_MAJOR 1
29304 #define NULL ((void*)0)
29311 #if DB_VERSION_MAJOR > 1
29314 int major, minor, patch;
29316 version = db_version( &major, &minor, &patch );
29318 if( major != DB_VERSION_MAJOR ||
29319 minor < DB_VERSION_MINOR )
29321 printf("Berkeley DB version mismatch\n"
29322 "\theader: %s\n\tlibrary: %s\n",
29323 DB_VERSION_STRING, version);
29329 #if DB_VERSION_MAJOR > 2
29330 db_env_create( NULL, 0 );
29331 #elif DB_VERSION_MAJOR > 1
29332 db_appexit( NULL );
29334 (void) dbopen( NULL, 0, 0, 0, NULL);
29341 rm -f conftest.$ac_objext conftest$ac_exeext
29342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29343 (eval $ac_link) 2>conftest.er1
29345 grep -v '^ *+' conftest.er1 >conftest.err
29347 cat conftest.err >&5
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
29350 { ac_try='test -z "$ac_c_werror_flag"
29351 || test ! -s conftest.err'
29352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29353 (eval $ac_try) 2>&5
29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356 (exit $ac_status); }; } &&
29357 { ac_try='test -s conftest$ac_exeext'
29358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29359 (eval $ac_try) 2>&5
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; }; then
29363 ol_cv_db_db_4_dot_2=yes
29365 echo "$as_me: failed program was:" >&5
29366 sed 's/^/| /' conftest.$ac_ext >&5
29368 ol_cv_db_db_4_dot_2=no
29370 rm -f conftest.err conftest.$ac_objext \
29371 conftest$ac_exeext conftest.$ac_ext
29376 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29377 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29379 if test $ol_cv_db_db_4_dot_2 = yes ; then
29380 ol_cv_lib_db=-ldb-4.2
29384 if test $ol_cv_lib_db = no ; then
29385 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29386 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29387 if test "${ol_cv_db_db_4_2+set}" = set; then
29388 echo $ECHO_N "(cached) $ECHO_C" >&6
29393 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29395 cat >conftest.$ac_ext <<_ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h. */
29402 #ifdef HAVE_DB_185_H
29403 # include <db_185.h>
29408 #ifndef DB_VERSION_MAJOR
29409 # define DB_VERSION_MAJOR 1
29413 #define NULL ((void*)0)
29420 #if DB_VERSION_MAJOR > 1
29423 int major, minor, patch;
29425 version = db_version( &major, &minor, &patch );
29427 if( major != DB_VERSION_MAJOR ||
29428 minor < DB_VERSION_MINOR )
29430 printf("Berkeley DB version mismatch\n"
29431 "\theader: %s\n\tlibrary: %s\n",
29432 DB_VERSION_STRING, version);
29438 #if DB_VERSION_MAJOR > 2
29439 db_env_create( NULL, 0 );
29440 #elif DB_VERSION_MAJOR > 1
29441 db_appexit( NULL );
29443 (void) dbopen( NULL, 0, 0, 0, NULL);
29450 rm -f conftest.$ac_objext conftest$ac_exeext
29451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29452 (eval $ac_link) 2>conftest.er1
29454 grep -v '^ *+' conftest.er1 >conftest.err
29456 cat conftest.err >&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } &&
29459 { ac_try='test -z "$ac_c_werror_flag"
29460 || test ! -s conftest.err'
29461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29462 (eval $ac_try) 2>&5
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; } &&
29466 { ac_try='test -s conftest$ac_exeext'
29467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29468 (eval $ac_try) 2>&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); }; }; then
29472 ol_cv_db_db_4_2=yes
29474 echo "$as_me: failed program was:" >&5
29475 sed 's/^/| /' conftest.$ac_ext >&5
29479 rm -f conftest.err conftest.$ac_objext \
29480 conftest$ac_exeext conftest.$ac_ext
29485 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29486 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29488 if test $ol_cv_db_db_4_2 = yes ; then
29489 ol_cv_lib_db=-ldb-4-2
29493 elif test $ol_cv_bdb_minor = 1 ; then
29494 if test $ol_cv_lib_db = no ; then
29495 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29496 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29497 if test "${ol_cv_db_db41+set}" = set; then
29498 echo $ECHO_N "(cached) $ECHO_C" >&6
29503 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29505 cat >conftest.$ac_ext <<_ACEOF
29508 cat confdefs.h >>conftest.$ac_ext
29509 cat >>conftest.$ac_ext <<_ACEOF
29510 /* end confdefs.h. */
29512 #ifdef HAVE_DB_185_H
29513 # include <db_185.h>
29518 #ifndef DB_VERSION_MAJOR
29519 # define DB_VERSION_MAJOR 1
29523 #define NULL ((void*)0)
29530 #if DB_VERSION_MAJOR > 1
29533 int major, minor, patch;
29535 version = db_version( &major, &minor, &patch );
29537 if( major != DB_VERSION_MAJOR ||
29538 minor < DB_VERSION_MINOR )
29540 printf("Berkeley DB version mismatch\n"
29541 "\theader: %s\n\tlibrary: %s\n",
29542 DB_VERSION_STRING, version);
29548 #if DB_VERSION_MAJOR > 2
29549 db_env_create( NULL, 0 );
29550 #elif DB_VERSION_MAJOR > 1
29551 db_appexit( NULL );
29553 (void) dbopen( NULL, 0, 0, 0, NULL);
29560 rm -f conftest.$ac_objext conftest$ac_exeext
29561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29562 (eval $ac_link) 2>conftest.er1
29564 grep -v '^ *+' conftest.er1 >conftest.err
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } &&
29569 { ac_try='test -z "$ac_c_werror_flag"
29570 || test ! -s conftest.err'
29571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572 (eval $ac_try) 2>&5
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; } &&
29576 { ac_try='test -s conftest$ac_exeext'
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29584 echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29589 rm -f conftest.err conftest.$ac_objext \
29590 conftest$ac_exeext conftest.$ac_ext
29595 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29596 echo "${ECHO_T}$ol_cv_db_db41" >&6
29598 if test $ol_cv_db_db41 = yes ; then
29599 ol_cv_lib_db=-ldb41
29603 if test $ol_cv_lib_db = no ; then
29604 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29605 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29606 if test "${ol_cv_db_db_41+set}" = set; then
29607 echo $ECHO_N "(cached) $ECHO_C" >&6
29612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29614 cat >conftest.$ac_ext <<_ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h. */
29621 #ifdef HAVE_DB_185_H
29622 # include <db_185.h>
29627 #ifndef DB_VERSION_MAJOR
29628 # define DB_VERSION_MAJOR 1
29632 #define NULL ((void*)0)
29639 #if DB_VERSION_MAJOR > 1
29642 int major, minor, patch;
29644 version = db_version( &major, &minor, &patch );
29646 if( major != DB_VERSION_MAJOR ||
29647 minor < DB_VERSION_MINOR )
29649 printf("Berkeley DB version mismatch\n"
29650 "\theader: %s\n\tlibrary: %s\n",
29651 DB_VERSION_STRING, version);
29657 #if DB_VERSION_MAJOR > 2
29658 db_env_create( NULL, 0 );
29659 #elif DB_VERSION_MAJOR > 1
29660 db_appexit( NULL );
29662 (void) dbopen( NULL, 0, 0, 0, NULL);
29669 rm -f conftest.$ac_objext conftest$ac_exeext
29670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29671 (eval $ac_link) 2>conftest.er1
29673 grep -v '^ *+' conftest.er1 >conftest.err
29675 cat conftest.err >&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); } &&
29678 { ac_try='test -z "$ac_c_werror_flag"
29679 || test ! -s conftest.err'
29680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29681 (eval $ac_try) 2>&5
29683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29684 (exit $ac_status); }; } &&
29685 { ac_try='test -s conftest$ac_exeext'
29686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29687 (eval $ac_try) 2>&5
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; }; then
29693 echo "$as_me: failed program was:" >&5
29694 sed 's/^/| /' conftest.$ac_ext >&5
29698 rm -f conftest.err conftest.$ac_objext \
29699 conftest$ac_exeext conftest.$ac_ext
29704 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29705 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29707 if test $ol_cv_db_db_41 = yes ; then
29708 ol_cv_lib_db=-ldb-41
29712 if test $ol_cv_lib_db = no ; then
29713 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29714 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29715 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29716 echo $ECHO_N "(cached) $ECHO_C" >&6
29721 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29723 cat >conftest.$ac_ext <<_ACEOF
29726 cat confdefs.h >>conftest.$ac_ext
29727 cat >>conftest.$ac_ext <<_ACEOF
29728 /* end confdefs.h. */
29730 #ifdef HAVE_DB_185_H
29731 # include <db_185.h>
29736 #ifndef DB_VERSION_MAJOR
29737 # define DB_VERSION_MAJOR 1
29741 #define NULL ((void*)0)
29748 #if DB_VERSION_MAJOR > 1
29751 int major, minor, patch;
29753 version = db_version( &major, &minor, &patch );
29755 if( major != DB_VERSION_MAJOR ||
29756 minor < DB_VERSION_MINOR )
29758 printf("Berkeley DB version mismatch\n"
29759 "\theader: %s\n\tlibrary: %s\n",
29760 DB_VERSION_STRING, version);
29766 #if DB_VERSION_MAJOR > 2
29767 db_env_create( NULL, 0 );
29768 #elif DB_VERSION_MAJOR > 1
29769 db_appexit( NULL );
29771 (void) dbopen( NULL, 0, 0, 0, NULL);
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29780 (eval $ac_link) 2>conftest.er1
29782 grep -v '^ *+' conftest.er1 >conftest.err
29784 cat conftest.err >&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } &&
29787 { ac_try='test -z "$ac_c_werror_flag"
29788 || test ! -s conftest.err'
29789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29790 (eval $ac_try) 2>&5
29792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); }; } &&
29794 { ac_try='test -s conftest$ac_exeext'
29795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796 (eval $ac_try) 2>&5
29798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799 (exit $ac_status); }; }; then
29800 ol_cv_db_db_4_dot_1=yes
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 ol_cv_db_db_4_dot_1=no
29807 rm -f conftest.err conftest.$ac_objext \
29808 conftest$ac_exeext conftest.$ac_ext
29813 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29814 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29816 if test $ol_cv_db_db_4_dot_1 = yes ; then
29817 ol_cv_lib_db=-ldb-4.1
29821 if test $ol_cv_lib_db = no ; then
29822 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29823 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29824 if test "${ol_cv_db_db_4_1+set}" = set; then
29825 echo $ECHO_N "(cached) $ECHO_C" >&6
29830 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29832 cat >conftest.$ac_ext <<_ACEOF
29835 cat confdefs.h >>conftest.$ac_ext
29836 cat >>conftest.$ac_ext <<_ACEOF
29837 /* end confdefs.h. */
29839 #ifdef HAVE_DB_185_H
29840 # include <db_185.h>
29845 #ifndef DB_VERSION_MAJOR
29846 # define DB_VERSION_MAJOR 1
29850 #define NULL ((void*)0)
29857 #if DB_VERSION_MAJOR > 1
29860 int major, minor, patch;
29862 version = db_version( &major, &minor, &patch );
29864 if( major != DB_VERSION_MAJOR ||
29865 minor < DB_VERSION_MINOR )
29867 printf("Berkeley DB version mismatch\n"
29868 "\theader: %s\n\tlibrary: %s\n",
29869 DB_VERSION_STRING, version);
29875 #if DB_VERSION_MAJOR > 2
29876 db_env_create( NULL, 0 );
29877 #elif DB_VERSION_MAJOR > 1
29878 db_appexit( NULL );
29880 (void) dbopen( NULL, 0, 0, 0, NULL);
29887 rm -f conftest.$ac_objext conftest$ac_exeext
29888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29889 (eval $ac_link) 2>conftest.er1
29891 grep -v '^ *+' conftest.er1 >conftest.err
29893 cat conftest.err >&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } &&
29896 { ac_try='test -z "$ac_c_werror_flag"
29897 || test ! -s conftest.err'
29898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29899 (eval $ac_try) 2>&5
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); }; } &&
29903 { ac_try='test -s conftest$ac_exeext'
29904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905 (eval $ac_try) 2>&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; }; then
29909 ol_cv_db_db_4_1=yes
29911 echo "$as_me: failed program was:" >&5
29912 sed 's/^/| /' conftest.$ac_ext >&5
29916 rm -f conftest.err conftest.$ac_objext \
29917 conftest$ac_exeext conftest.$ac_ext
29922 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29923 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29925 if test $ol_cv_db_db_4_1 = yes ; then
29926 ol_cv_lib_db=-ldb-4-1
29931 if test $ol_cv_lib_db = no ; then
29932 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29933 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29934 if test "${ol_cv_db_db_4+set}" = set; then
29935 echo $ECHO_N "(cached) $ECHO_C" >&6
29940 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29942 cat >conftest.$ac_ext <<_ACEOF
29945 cat confdefs.h >>conftest.$ac_ext
29946 cat >>conftest.$ac_ext <<_ACEOF
29947 /* end confdefs.h. */
29949 #ifdef HAVE_DB_185_H
29950 # include <db_185.h>
29955 #ifndef DB_VERSION_MAJOR
29956 # define DB_VERSION_MAJOR 1
29960 #define NULL ((void*)0)
29967 #if DB_VERSION_MAJOR > 1
29970 int major, minor, patch;
29972 version = db_version( &major, &minor, &patch );
29974 if( major != DB_VERSION_MAJOR ||
29975 minor < DB_VERSION_MINOR )
29977 printf("Berkeley DB version mismatch\n"
29978 "\theader: %s\n\tlibrary: %s\n",
29979 DB_VERSION_STRING, version);
29985 #if DB_VERSION_MAJOR > 2
29986 db_env_create( NULL, 0 );
29987 #elif DB_VERSION_MAJOR > 1
29988 db_appexit( NULL );
29990 (void) dbopen( NULL, 0, 0, 0, NULL);
29997 rm -f conftest.$ac_objext conftest$ac_exeext
29998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29999 (eval $ac_link) 2>conftest.er1
30001 grep -v '^ *+' conftest.er1 >conftest.err
30003 cat conftest.err >&5
30004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005 (exit $ac_status); } &&
30006 { ac_try='test -z "$ac_c_werror_flag"
30007 || test ! -s conftest.err'
30008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009 (eval $ac_try) 2>&5
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; } &&
30013 { ac_try='test -s conftest$ac_exeext'
30014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30015 (eval $ac_try) 2>&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; }; then
30021 echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30026 rm -f conftest.err conftest.$ac_objext \
30027 conftest$ac_exeext conftest.$ac_ext
30032 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30033 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30035 if test $ol_cv_db_db_4 = yes ; then
30036 ol_cv_lib_db=-ldb-4
30040 if test $ol_cv_lib_db = no ; then
30041 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30042 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30043 if test "${ol_cv_db_db4+set}" = set; then
30044 echo $ECHO_N "(cached) $ECHO_C" >&6
30049 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30051 cat >conftest.$ac_ext <<_ACEOF
30054 cat confdefs.h >>conftest.$ac_ext
30055 cat >>conftest.$ac_ext <<_ACEOF
30056 /* end confdefs.h. */
30058 #ifdef HAVE_DB_185_H
30059 # include <db_185.h>
30064 #ifndef DB_VERSION_MAJOR
30065 # define DB_VERSION_MAJOR 1
30069 #define NULL ((void*)0)
30076 #if DB_VERSION_MAJOR > 1
30079 int major, minor, patch;
30081 version = db_version( &major, &minor, &patch );
30083 if( major != DB_VERSION_MAJOR ||
30084 minor < DB_VERSION_MINOR )
30086 printf("Berkeley DB version mismatch\n"
30087 "\theader: %s\n\tlibrary: %s\n",
30088 DB_VERSION_STRING, version);
30094 #if DB_VERSION_MAJOR > 2
30095 db_env_create( NULL, 0 );
30096 #elif DB_VERSION_MAJOR > 1
30097 db_appexit( NULL );
30099 (void) dbopen( NULL, 0, 0, 0, NULL);
30106 rm -f conftest.$ac_objext conftest$ac_exeext
30107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30108 (eval $ac_link) 2>conftest.er1
30110 grep -v '^ *+' conftest.er1 >conftest.err
30112 cat conftest.err >&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } &&
30115 { ac_try='test -z "$ac_c_werror_flag"
30116 || test ! -s conftest.err'
30117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30118 (eval $ac_try) 2>&5
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; } &&
30122 { ac_try='test -s conftest$ac_exeext'
30123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30124 (eval $ac_try) 2>&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; }; then
30130 echo "$as_me: failed program was:" >&5
30131 sed 's/^/| /' conftest.$ac_ext >&5
30135 rm -f conftest.err conftest.$ac_objext \
30136 conftest$ac_exeext conftest.$ac_ext
30141 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30142 echo "${ECHO_T}$ol_cv_db_db4" >&6
30144 if test $ol_cv_db_db4 = yes ; then
30149 if test $ol_cv_lib_db = no ; then
30150 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30151 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30152 if test "${ol_cv_db_db+set}" = set; then
30153 echo $ECHO_N "(cached) $ECHO_C" >&6
30158 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30160 cat >conftest.$ac_ext <<_ACEOF
30163 cat confdefs.h >>conftest.$ac_ext
30164 cat >>conftest.$ac_ext <<_ACEOF
30165 /* end confdefs.h. */
30167 #ifdef HAVE_DB_185_H
30168 # include <db_185.h>
30173 #ifndef DB_VERSION_MAJOR
30174 # define DB_VERSION_MAJOR 1
30178 #define NULL ((void*)0)
30185 #if DB_VERSION_MAJOR > 1
30188 int major, minor, patch;
30190 version = db_version( &major, &minor, &patch );
30192 if( major != DB_VERSION_MAJOR ||
30193 minor < DB_VERSION_MINOR )
30195 printf("Berkeley DB version mismatch\n"
30196 "\theader: %s\n\tlibrary: %s\n",
30197 DB_VERSION_STRING, version);
30203 #if DB_VERSION_MAJOR > 2
30204 db_env_create( NULL, 0 );
30205 #elif DB_VERSION_MAJOR > 1
30206 db_appexit( NULL );
30208 (void) dbopen( NULL, 0, 0, 0, NULL);
30215 rm -f conftest.$ac_objext conftest$ac_exeext
30216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30217 (eval $ac_link) 2>conftest.er1
30219 grep -v '^ *+' conftest.er1 >conftest.err
30221 cat conftest.err >&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); } &&
30224 { ac_try='test -z "$ac_c_werror_flag"
30225 || test ! -s conftest.err'
30226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30227 (eval $ac_try) 2>&5
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); }; } &&
30231 { ac_try='test -s conftest$ac_exeext'
30232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30233 (eval $ac_try) 2>&5
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); }; }; then
30239 echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30244 rm -f conftest.err conftest.$ac_objext \
30245 conftest$ac_exeext conftest.$ac_ext
30250 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30251 echo "${ECHO_T}$ol_cv_db_db" >&6
30253 if test $ol_cv_db_db = yes ; then
30259 elif test $ol_cv_bdb_major = 3 ; then
30260 if test $ol_cv_lib_db = no ; then
30261 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30262 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30263 if test "${ol_cv_db_db3+set}" = set; then
30264 echo $ECHO_N "(cached) $ECHO_C" >&6
30269 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30271 cat >conftest.$ac_ext <<_ACEOF
30274 cat confdefs.h >>conftest.$ac_ext
30275 cat >>conftest.$ac_ext <<_ACEOF
30276 /* end confdefs.h. */
30278 #ifdef HAVE_DB_185_H
30279 # include <db_185.h>
30284 #ifndef DB_VERSION_MAJOR
30285 # define DB_VERSION_MAJOR 1
30289 #define NULL ((void*)0)
30296 #if DB_VERSION_MAJOR > 1
30299 int major, minor, patch;
30301 version = db_version( &major, &minor, &patch );
30303 if( major != DB_VERSION_MAJOR ||
30304 minor < DB_VERSION_MINOR )
30306 printf("Berkeley DB version mismatch\n"
30307 "\theader: %s\n\tlibrary: %s\n",
30308 DB_VERSION_STRING, version);
30314 #if DB_VERSION_MAJOR > 2
30315 db_env_create( NULL, 0 );
30316 #elif DB_VERSION_MAJOR > 1
30317 db_appexit( NULL );
30319 (void) dbopen( NULL, 0, 0, 0, NULL);
30326 rm -f conftest.$ac_objext conftest$ac_exeext
30327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30328 (eval $ac_link) 2>conftest.er1
30330 grep -v '^ *+' conftest.er1 >conftest.err
30332 cat conftest.err >&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); } &&
30335 { ac_try='test -z "$ac_c_werror_flag"
30336 || test ! -s conftest.err'
30337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30338 (eval $ac_try) 2>&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; } &&
30342 { ac_try='test -s conftest$ac_exeext'
30343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344 (eval $ac_try) 2>&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; }; then
30350 echo "$as_me: failed program was:" >&5
30351 sed 's/^/| /' conftest.$ac_ext >&5
30355 rm -f conftest.err conftest.$ac_objext \
30356 conftest$ac_exeext conftest.$ac_ext
30361 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30362 echo "${ECHO_T}$ol_cv_db_db3" >&6
30364 if test $ol_cv_db_db3 = yes ; then
30369 if test $ol_cv_lib_db = no ; then
30370 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30371 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30372 if test "${ol_cv_db_db_3+set}" = set; then
30373 echo $ECHO_N "(cached) $ECHO_C" >&6
30378 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30380 cat >conftest.$ac_ext <<_ACEOF
30383 cat confdefs.h >>conftest.$ac_ext
30384 cat >>conftest.$ac_ext <<_ACEOF
30385 /* end confdefs.h. */
30387 #ifdef HAVE_DB_185_H
30388 # include <db_185.h>
30393 #ifndef DB_VERSION_MAJOR
30394 # define DB_VERSION_MAJOR 1
30398 #define NULL ((void*)0)
30405 #if DB_VERSION_MAJOR > 1
30408 int major, minor, patch;
30410 version = db_version( &major, &minor, &patch );
30412 if( major != DB_VERSION_MAJOR ||
30413 minor < DB_VERSION_MINOR )
30415 printf("Berkeley DB version mismatch\n"
30416 "\theader: %s\n\tlibrary: %s\n",
30417 DB_VERSION_STRING, version);
30423 #if DB_VERSION_MAJOR > 2
30424 db_env_create( NULL, 0 );
30425 #elif DB_VERSION_MAJOR > 1
30426 db_appexit( NULL );
30428 (void) dbopen( NULL, 0, 0, 0, NULL);
30435 rm -f conftest.$ac_objext conftest$ac_exeext
30436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30437 (eval $ac_link) 2>conftest.er1
30439 grep -v '^ *+' conftest.er1 >conftest.err
30441 cat conftest.err >&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } &&
30444 { ac_try='test -z "$ac_c_werror_flag"
30445 || test ! -s conftest.err'
30446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30447 (eval $ac_try) 2>&5
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; } &&
30451 { ac_try='test -s conftest$ac_exeext'
30452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453 (eval $ac_try) 2>&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; }; then
30459 echo "$as_me: failed program was:" >&5
30460 sed 's/^/| /' conftest.$ac_ext >&5
30464 rm -f conftest.err conftest.$ac_objext \
30465 conftest$ac_exeext conftest.$ac_ext
30470 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30471 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30473 if test $ol_cv_db_db_3 = yes ; then
30474 ol_cv_lib_db=-ldb-3
30479 elif test $ol_cv_bdb_major = 2 ; then
30480 if test $ol_cv_lib_db = no ; then
30481 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30482 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30483 if test "${ol_cv_db_db2+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30491 cat >conftest.$ac_ext <<_ACEOF
30494 cat confdefs.h >>conftest.$ac_ext
30495 cat >>conftest.$ac_ext <<_ACEOF
30496 /* end confdefs.h. */
30498 #ifdef HAVE_DB_185_H
30499 # include <db_185.h>
30504 #ifndef DB_VERSION_MAJOR
30505 # define DB_VERSION_MAJOR 1
30509 #define NULL ((void*)0)
30516 #if DB_VERSION_MAJOR > 1
30519 int major, minor, patch;
30521 version = db_version( &major, &minor, &patch );
30523 if( major != DB_VERSION_MAJOR ||
30524 minor < DB_VERSION_MINOR )
30526 printf("Berkeley DB version mismatch\n"
30527 "\theader: %s\n\tlibrary: %s\n",
30528 DB_VERSION_STRING, version);
30534 #if DB_VERSION_MAJOR > 2
30535 db_env_create( NULL, 0 );
30536 #elif DB_VERSION_MAJOR > 1
30537 db_appexit( NULL );
30539 (void) dbopen( NULL, 0, 0, 0, NULL);
30546 rm -f conftest.$ac_objext conftest$ac_exeext
30547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30548 (eval $ac_link) 2>conftest.er1
30550 grep -v '^ *+' conftest.er1 >conftest.err
30552 cat conftest.err >&5
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
30555 { ac_try='test -z "$ac_c_werror_flag"
30556 || test ! -s conftest.err'
30557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558 (eval $ac_try) 2>&5
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest$ac_exeext'
30563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30564 (eval $ac_try) 2>&5
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30570 echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.$ac_ext >&5
30575 rm -f conftest.err conftest.$ac_objext \
30576 conftest$ac_exeext conftest.$ac_ext
30581 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30582 echo "${ECHO_T}$ol_cv_db_db2" >&6
30584 if test $ol_cv_db_db2 = yes ; then
30589 if test $ol_cv_lib_db = no ; then
30590 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30591 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30592 if test "${ol_cv_db_db_2+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30598 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30600 cat >conftest.$ac_ext <<_ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h. */
30607 #ifdef HAVE_DB_185_H
30608 # include <db_185.h>
30613 #ifndef DB_VERSION_MAJOR
30614 # define DB_VERSION_MAJOR 1
30618 #define NULL ((void*)0)
30625 #if DB_VERSION_MAJOR > 1
30628 int major, minor, patch;
30630 version = db_version( &major, &minor, &patch );
30632 if( major != DB_VERSION_MAJOR ||
30633 minor < DB_VERSION_MINOR )
30635 printf("Berkeley DB version mismatch\n"
30636 "\theader: %s\n\tlibrary: %s\n",
30637 DB_VERSION_STRING, version);
30643 #if DB_VERSION_MAJOR > 2
30644 db_env_create( NULL, 0 );
30645 #elif DB_VERSION_MAJOR > 1
30646 db_appexit( NULL );
30648 (void) dbopen( NULL, 0, 0, 0, NULL);
30655 rm -f conftest.$ac_objext conftest$ac_exeext
30656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30657 (eval $ac_link) 2>conftest.er1
30659 grep -v '^ *+' conftest.er1 >conftest.err
30661 cat conftest.err >&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); } &&
30664 { ac_try='test -z "$ac_c_werror_flag"
30665 || test ! -s conftest.err'
30666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30667 (eval $ac_try) 2>&5
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; } &&
30671 { ac_try='test -s conftest$ac_exeext'
30672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673 (eval $ac_try) 2>&5
30675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); }; }; then
30679 echo "$as_me: failed program was:" >&5
30680 sed 's/^/| /' conftest.$ac_ext >&5
30684 rm -f conftest.err conftest.$ac_objext \
30685 conftest$ac_exeext conftest.$ac_ext
30690 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30691 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30693 if test $ol_cv_db_db_2 = yes ; then
30694 ol_cv_lib_db=-ldb-2
30699 elif test $ol_cv_bdb_major = 1 ; then
30700 if test $ol_cv_lib_db = no ; then
30701 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30702 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30703 if test "${ol_cv_db_db1+set}" = set; then
30704 echo $ECHO_N "(cached) $ECHO_C" >&6
30709 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30711 cat >conftest.$ac_ext <<_ACEOF
30714 cat confdefs.h >>conftest.$ac_ext
30715 cat >>conftest.$ac_ext <<_ACEOF
30716 /* end confdefs.h. */
30718 #ifdef HAVE_DB_185_H
30719 # include <db_185.h>
30724 #ifndef DB_VERSION_MAJOR
30725 # define DB_VERSION_MAJOR 1
30729 #define NULL ((void*)0)
30736 #if DB_VERSION_MAJOR > 1
30739 int major, minor, patch;
30741 version = db_version( &major, &minor, &patch );
30743 if( major != DB_VERSION_MAJOR ||
30744 minor < DB_VERSION_MINOR )
30746 printf("Berkeley DB version mismatch\n"
30747 "\theader: %s\n\tlibrary: %s\n",
30748 DB_VERSION_STRING, version);
30754 #if DB_VERSION_MAJOR > 2
30755 db_env_create( NULL, 0 );
30756 #elif DB_VERSION_MAJOR > 1
30757 db_appexit( NULL );
30759 (void) dbopen( NULL, 0, 0, 0, NULL);
30766 rm -f conftest.$ac_objext conftest$ac_exeext
30767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30768 (eval $ac_link) 2>conftest.er1
30770 grep -v '^ *+' conftest.er1 >conftest.err
30772 cat conftest.err >&5
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); } &&
30775 { ac_try='test -z "$ac_c_werror_flag"
30776 || test ! -s conftest.err'
30777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30778 (eval $ac_try) 2>&5
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; } &&
30782 { ac_try='test -s conftest$ac_exeext'
30783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30784 (eval $ac_try) 2>&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); }; }; then
30790 echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.$ac_ext >&5
30795 rm -f conftest.err conftest.$ac_objext \
30796 conftest$ac_exeext conftest.$ac_ext
30801 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30802 echo "${ECHO_T}$ol_cv_db_db1" >&6
30804 if test $ol_cv_db_db1 = yes ; then
30809 if test $ol_cv_lib_db = no ; then
30810 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30811 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30812 if test "${ol_cv_db_db_1+set}" = set; then
30813 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30820 cat >conftest.$ac_ext <<_ACEOF
30823 cat confdefs.h >>conftest.$ac_ext
30824 cat >>conftest.$ac_ext <<_ACEOF
30825 /* end confdefs.h. */
30827 #ifdef HAVE_DB_185_H
30828 # include <db_185.h>
30833 #ifndef DB_VERSION_MAJOR
30834 # define DB_VERSION_MAJOR 1
30838 #define NULL ((void*)0)
30845 #if DB_VERSION_MAJOR > 1
30848 int major, minor, patch;
30850 version = db_version( &major, &minor, &patch );
30852 if( major != DB_VERSION_MAJOR ||
30853 minor < DB_VERSION_MINOR )
30855 printf("Berkeley DB version mismatch\n"
30856 "\theader: %s\n\tlibrary: %s\n",
30857 DB_VERSION_STRING, version);
30863 #if DB_VERSION_MAJOR > 2
30864 db_env_create( NULL, 0 );
30865 #elif DB_VERSION_MAJOR > 1
30866 db_appexit( NULL );
30868 (void) dbopen( NULL, 0, 0, 0, NULL);
30875 rm -f conftest.$ac_objext conftest$ac_exeext
30876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877 (eval $ac_link) 2>conftest.er1
30879 grep -v '^ *+' conftest.er1 >conftest.err
30881 cat conftest.err >&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); } &&
30884 { ac_try='test -z "$ac_c_werror_flag"
30885 || test ! -s conftest.err'
30886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887 (eval $ac_try) 2>&5
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; } &&
30891 { ac_try='test -s conftest$ac_exeext'
30892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30893 (eval $ac_try) 2>&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; }; then
30899 echo "$as_me: failed program was:" >&5
30900 sed 's/^/| /' conftest.$ac_ext >&5
30904 rm -f conftest.err conftest.$ac_objext \
30905 conftest$ac_exeext conftest.$ac_ext
30910 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30911 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30913 if test $ol_cv_db_db_1 = yes ; then
30914 ol_cv_lib_db=-ldb-1
30919 if test $ol_cv_lib_db = no ; then
30920 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30921 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30922 if test "${ol_cv_db_none+set}" = set; then
30923 echo $ECHO_N "(cached) $ECHO_C" >&6
30928 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30930 cat >conftest.$ac_ext <<_ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30937 #ifdef HAVE_DB_185_H
30938 # include <db_185.h>
30943 #ifndef DB_VERSION_MAJOR
30944 # define DB_VERSION_MAJOR 1
30948 #define NULL ((void*)0)
30955 #if DB_VERSION_MAJOR > 1
30958 int major, minor, patch;
30960 version = db_version( &major, &minor, &patch );
30962 if( major != DB_VERSION_MAJOR ||
30963 minor < DB_VERSION_MINOR )
30965 printf("Berkeley DB version mismatch\n"
30966 "\theader: %s\n\tlibrary: %s\n",
30967 DB_VERSION_STRING, version);
30973 #if DB_VERSION_MAJOR > 2
30974 db_env_create( NULL, 0 );
30975 #elif DB_VERSION_MAJOR > 1
30976 db_appexit( NULL );
30978 (void) dbopen( NULL, 0, 0, 0, NULL);
30985 rm -f conftest.$ac_objext conftest$ac_exeext
30986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30987 (eval $ac_link) 2>conftest.er1
30989 grep -v '^ *+' conftest.er1 >conftest.err
30991 cat conftest.err >&5
30992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993 (exit $ac_status); } &&
30994 { ac_try='test -z "$ac_c_werror_flag"
30995 || test ! -s conftest.err'
30996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30997 (eval $ac_try) 2>&5
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); }; } &&
31001 { ac_try='test -s conftest$ac_exeext'
31002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31003 (eval $ac_try) 2>&5
31005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31006 (exit $ac_status); }; }; then
31009 echo "$as_me: failed program was:" >&5
31010 sed 's/^/| /' conftest.$ac_ext >&5
31014 rm -f conftest.err conftest.$ac_objext \
31015 conftest$ac_exeext conftest.$ac_ext
31020 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31021 echo "${ECHO_T}$ol_cv_db_none" >&6
31023 if test $ol_cv_db_none = yes ; then
31029 if test "$ol_cv_lib_db" != no ; then
31030 ol_cv_berkeley_db=yes
31031 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31032 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31033 if test "${ol_cv_berkeley_db_version+set}" = set; then
31034 echo $ECHO_N "(cached) $ECHO_C" >&6
31038 LIBS="$LTHREAD_LIBS $LIBS"
31039 if test $ol_cv_lib_db != yes ; then
31040 LIBS="$ol_cv_lib_db $LIBS"
31043 if test "$cross_compiling" = yes; then
31044 ol_cv_berkeley_db_version=cross
31046 cat >conftest.$ac_ext <<_ACEOF
31049 cat confdefs.h >>conftest.$ac_ext
31050 cat >>conftest.$ac_ext <<_ACEOF
31051 /* end confdefs.h. */
31053 #ifdef HAVE_DB_185_H
31058 #ifndef DB_VERSION_MAJOR
31059 # define DB_VERSION_MAJOR 1
31062 #define NULL ((void *)0)
31066 #if DB_VERSION_MAJOR > 1
31068 int major, minor, patch;
31070 version = db_version( &major, &minor, &patch );
31072 if( major != DB_VERSION_MAJOR ||
31073 minor != DB_VERSION_MINOR ||
31074 patch != DB_VERSION_PATCH )
31076 printf("Berkeley DB version mismatch\n"
31077 "\theader: %s\n\tlibrary: %s\n",
31078 DB_VERSION_STRING, version);
31086 rm -f conftest$ac_exeext
31087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31088 (eval $ac_link) 2>&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31093 (eval $ac_try) 2>&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); }; }; then
31097 ol_cv_berkeley_db_version=yes
31099 echo "$as_me: program exited with status $ac_status" >&5
31100 echo "$as_me: failed program was:" >&5
31101 sed 's/^/| /' conftest.$ac_ext >&5
31103 ( exit $ac_status )
31104 ol_cv_berkeley_db_version=no
31106 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31112 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31113 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31115 if test $ol_cv_berkeley_db_version = no ; then
31116 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31117 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31118 { (exit 1); exit 1; }; }
31121 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31122 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31123 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31124 echo $ECHO_N "(cached) $ECHO_C" >&6
31128 LIBS="$LTHREAD_LIBS $LIBS"
31129 if test $ol_cv_lib_db != yes ; then
31130 LIBS="$ol_cv_lib_db $LIBS"
31133 if test "$cross_compiling" = yes; then
31134 ol_cv_berkeley_db_thread=cross
31136 cat >conftest.$ac_ext <<_ACEOF
31139 cat confdefs.h >>conftest.$ac_ext
31140 cat >>conftest.$ac_ext <<_ACEOF
31141 /* end confdefs.h. */
31143 #ifdef HAVE_DB_185_H
31149 #define NULL ((void *)0)
31154 u_int32_t flags = DB_CREATE |
31160 #if DB_VERSION_MAJOR > 2
31161 DB_ENV *env = NULL;
31163 rc = db_env_create( &env, 0 );
31165 flags |= DB_INIT_MPOOL;
31166 #ifdef DB_MPOOL_PRIVATE
31167 flags |= DB_MPOOL_PRIVATE;
31171 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31175 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31176 rc = env->open( env, NULL, flags, 0 );
31178 rc = env->open( env, NULL, NULL, flags, 0 );
31182 rc = env->close( env, 0 );
31186 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31192 memset( &env, '\0', sizeof(env) );
31194 rc = db_appinit( NULL, NULL, &env, flags );
31197 db_appexit( &env );
31200 unlink("__db_mpool.share");
31201 unlink("__db_lock.share");
31207 rm -f conftest$ac_exeext
31208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31209 (eval $ac_link) 2>&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31214 (eval $ac_try) 2>&5
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; }; then
31218 ol_cv_berkeley_db_thread=yes
31220 echo "$as_me: program exited with status $ac_status" >&5
31221 echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31224 ( exit $ac_status )
31225 ol_cv_berkeley_db_thread=no
31227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31233 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31234 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31236 if test $ol_cv_berkeley_db_thread != no ; then
31238 cat >>confdefs.h <<\_ACEOF
31239 #define HAVE_BERKELEY_DB_THREAD 1
31248 if test $ol_cv_berkeley_db = no ; then
31249 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31250 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31251 { (exit 1); exit 1; }; }
31255 cat >>confdefs.h <<\_ACEOF
31256 #define HAVE_BERKELEY_DB 1
31260 if test $ol_cv_lib_db != yes ; then
31261 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31264 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31265 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31266 if test "${ol_cv_bdb_compat+set}" = set; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31270 cat >conftest.$ac_ext <<_ACEOF
31273 cat confdefs.h >>conftest.$ac_ext
31274 cat >>conftest.$ac_ext <<_ACEOF
31275 /* end confdefs.h. */
31279 /* this check could be improved */
31280 #ifndef DB_VERSION_MAJOR
31281 # define DB_VERSION_MAJOR 1
31283 #ifndef DB_VERSION_MINOR
31284 # define DB_VERSION_MINOR 0
31287 /* require 4.2 or later */
31288 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
31289 __db_version_compat
31293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31294 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31295 ol_cv_bdb_compat=yes
31297 ol_cv_bdb_compat=no
31302 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31303 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31306 if test $ol_cv_bdb_compat != yes ; then
31307 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31308 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31309 { (exit 1); exit 1; }; }
31312 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31318 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31319 BUILD_LIBS_DYNAMIC=shared
31321 cat >>confdefs.h <<\_ACEOF
31322 #define LDAP_LIBS_DYNAMIC 1
31327 BUILD_LIBS_DYNAMIC=static
31331 if test $ol_enable_wrappers != no ; then
31333 for ac_header in tcpd.h
31335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31337 echo "$as_me:$LINENO: checking for $ac_header" >&5
31338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31340 echo $ECHO_N "(cached) $ECHO_C" >&6
31342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31345 # Is the header compilable?
31346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31348 cat >conftest.$ac_ext <<_ACEOF
31351 cat confdefs.h >>conftest.$ac_ext
31352 cat >>conftest.$ac_ext <<_ACEOF
31353 /* end confdefs.h. */
31354 $ac_includes_default
31355 #include <$ac_header>
31357 rm -f conftest.$ac_objext
31358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31359 (eval $ac_compile) 2>conftest.er1
31361 grep -v '^ *+' conftest.er1 >conftest.err
31363 cat conftest.err >&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); } &&
31366 { ac_try='test -z "$ac_c_werror_flag"
31367 || test ! -s conftest.err'
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; } &&
31373 { ac_try='test -s conftest.$ac_objext'
31374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375 (eval $ac_try) 2>&5
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; }; then
31379 ac_header_compiler=yes
31381 echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31384 ac_header_compiler=no
31386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31388 echo "${ECHO_T}$ac_header_compiler" >&6
31390 # Is the header present?
31391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31393 cat >conftest.$ac_ext <<_ACEOF
31396 cat confdefs.h >>conftest.$ac_ext
31397 cat >>conftest.$ac_ext <<_ACEOF
31398 /* end confdefs.h. */
31399 #include <$ac_header>
31401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31404 grep -v '^ *+' conftest.er1 >conftest.err
31406 cat conftest.err >&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); } >/dev/null; then
31409 if test -s conftest.err; then
31410 ac_cpp_err=$ac_c_preproc_warn_flag
31411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31418 if test -z "$ac_cpp_err"; then
31419 ac_header_preproc=yes
31421 echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31424 ac_header_preproc=no
31426 rm -f conftest.err conftest.$ac_ext
31427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31428 echo "${ECHO_T}$ac_header_preproc" >&6
31430 # So? What about this header?
31431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31437 ac_header_preproc=yes
31440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31454 ## --------------------------------------------- ##
31455 ## Report this to <http://www.openldap.org/its/> ##
31456 ## --------------------------------------------- ##
31459 sed "s/^/$as_me: WARNING: /" >&2
31462 echo "$as_me:$LINENO: checking for $ac_header" >&5
31463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31467 eval "$as_ac_Header=\$ac_header_preproc"
31469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31474 cat >>confdefs.h <<_ACEOF
31475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31478 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31479 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31481 LIBS="$LIBS -lwrap"
31482 cat >conftest.$ac_ext <<_ACEOF
31485 cat confdefs.h >>conftest.$ac_ext
31486 cat >>conftest.$ac_ext <<_ACEOF
31487 /* end confdefs.h. */
31490 int allow_severity = 0;
31491 int deny_severity = 0;
31493 struct request_info *req;
31505 rm -f conftest.$ac_objext conftest$ac_exeext
31506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31507 (eval $ac_link) 2>conftest.er1
31509 grep -v '^ *+' conftest.er1 >conftest.err
31511 cat conftest.err >&5
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); } &&
31514 { ac_try='test -z "$ac_c_werror_flag"
31515 || test ! -s conftest.err'
31516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31517 (eval $ac_try) 2>&5
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); }; } &&
31521 { ac_try='test -s conftest$ac_exeext'
31522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31523 (eval $ac_try) 2>&5
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); }; }; then
31527 echo "$as_me:$LINENO: result: -lwrap" >&5
31528 echo "${ECHO_T}-lwrap" >&6
31532 echo "$as_me: failed program was:" >&5
31533 sed 's/^/| /' conftest.$ac_ext >&5
31537 cat >conftest.$ac_ext <<_ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31545 int allow_severity = 0;
31546 int deny_severity = 0;
31548 struct request_info *req;
31560 rm -f conftest.$ac_objext conftest$ac_exeext
31561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31562 (eval $ac_link) 2>conftest.er1
31564 grep -v '^ *+' conftest.er1 >conftest.err
31566 cat conftest.err >&5
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } &&
31569 { ac_try='test -z "$ac_c_werror_flag"
31570 || test ! -s conftest.err'
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; } &&
31576 { ac_try='test -s conftest$ac_exeext'
31577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31578 (eval $ac_try) 2>&5
31580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31581 (exit $ac_status); }; }; then
31582 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31583 echo "${ECHO_T}-lwrap -lnsl" >&6
31585 LIBS="$save_LIBS -lnsl"
31587 echo "$as_me: failed program was:" >&5
31588 sed 's/^/| /' conftest.$ac_ext >&5
31591 echo "$as_me:$LINENO: result: no" >&5
31592 echo "${ECHO_T}no" >&6
31596 rm -f conftest.err conftest.$ac_objext \
31597 conftest$ac_exeext conftest.$ac_ext
31599 rm -f conftest.err conftest.$ac_objext \
31600 conftest$ac_exeext conftest.$ac_ext
31608 if test $have_wrappers = yes ; then
31610 cat >>confdefs.h <<\_ACEOF
31611 #define HAVE_TCPD 1
31615 elif test $ol_enable_wrappers = yes ; then
31616 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31617 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31618 { (exit 1); exit 1; }; }
31620 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31621 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31626 if test $ol_enable_syslog != no ; then
31627 echo "$as_me:$LINENO: checking for openlog" >&5
31628 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31629 if test "${ac_cv_func_openlog+set}" = set; then
31630 echo $ECHO_N "(cached) $ECHO_C" >&6
31632 cat >conftest.$ac_ext <<_ACEOF
31635 cat confdefs.h >>conftest.$ac_ext
31636 cat >>conftest.$ac_ext <<_ACEOF
31637 /* end confdefs.h. */
31638 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31640 #define openlog innocuous_openlog
31642 /* System header to define __stub macros and hopefully few prototypes,
31643 which can conflict with char openlog (); below.
31644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31645 <limits.h> exists even on freestanding compilers. */
31648 # include <limits.h>
31650 # include <assert.h>
31655 /* Override any gcc2 internal prototype to avoid an error. */
31660 /* We use char because int might match the return type of a gcc2
31661 builtin and then its argument prototype would still apply. */
31663 /* The GNU C library defines this for functions which it implements
31664 to always fail with ENOSYS. Some functions are actually named
31665 something starting with __ and the normal name is an alias. */
31666 #if defined (__stub_openlog) || defined (__stub___openlog)
31669 char (*f) () = openlog;
31678 return f != openlog;
31683 rm -f conftest.$ac_objext conftest$ac_exeext
31684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31685 (eval $ac_link) 2>conftest.er1
31687 grep -v '^ *+' conftest.er1 >conftest.err
31689 cat conftest.err >&5
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); } &&
31692 { ac_try='test -z "$ac_c_werror_flag"
31693 || test ! -s conftest.err'
31694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31695 (eval $ac_try) 2>&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); }; } &&
31699 { ac_try='test -s conftest$ac_exeext'
31700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31701 (eval $ac_try) 2>&5
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; }; then
31705 ac_cv_func_openlog=yes
31707 echo "$as_me: failed program was:" >&5
31708 sed 's/^/| /' conftest.$ac_ext >&5
31710 ac_cv_func_openlog=no
31712 rm -f conftest.err conftest.$ac_objext \
31713 conftest$ac_exeext conftest.$ac_ext
31715 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31716 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31718 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31719 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31720 echo "$as_me: error: could not find syslog" >&2;}
31721 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31723 ol_enable_syslog=$ac_cv_func_openlog
31727 if test $ol_enable_sql != no ; then
31730 for ac_header in sql.h sqlext.h
31732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31734 echo "$as_me:$LINENO: checking for $ac_header" >&5
31735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31737 echo $ECHO_N "(cached) $ECHO_C" >&6
31739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31742 # Is the header compilable?
31743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31745 cat >conftest.$ac_ext <<_ACEOF
31748 cat confdefs.h >>conftest.$ac_ext
31749 cat >>conftest.$ac_ext <<_ACEOF
31750 /* end confdefs.h. */
31751 $ac_includes_default
31752 #include <$ac_header>
31754 rm -f conftest.$ac_objext
31755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31756 (eval $ac_compile) 2>conftest.er1
31758 grep -v '^ *+' conftest.er1 >conftest.err
31760 cat conftest.err >&5
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); } &&
31763 { ac_try='test -z "$ac_c_werror_flag"
31764 || test ! -s conftest.err'
31765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31766 (eval $ac_try) 2>&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); }; } &&
31770 { ac_try='test -s conftest.$ac_objext'
31771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772 (eval $ac_try) 2>&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; }; then
31776 ac_header_compiler=yes
31778 echo "$as_me: failed program was:" >&5
31779 sed 's/^/| /' conftest.$ac_ext >&5
31781 ac_header_compiler=no
31783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31785 echo "${ECHO_T}$ac_header_compiler" >&6
31787 # Is the header present?
31788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31790 cat >conftest.$ac_ext <<_ACEOF
31793 cat confdefs.h >>conftest.$ac_ext
31794 cat >>conftest.$ac_ext <<_ACEOF
31795 /* end confdefs.h. */
31796 #include <$ac_header>
31798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31801 grep -v '^ *+' conftest.er1 >conftest.err
31803 cat conftest.err >&5
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); } >/dev/null; then
31806 if test -s conftest.err; then
31807 ac_cpp_err=$ac_c_preproc_warn_flag
31808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31815 if test -z "$ac_cpp_err"; then
31816 ac_header_preproc=yes
31818 echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.$ac_ext >&5
31821 ac_header_preproc=no
31823 rm -f conftest.err conftest.$ac_ext
31824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31825 echo "${ECHO_T}$ac_header_preproc" >&6
31827 # So? What about this header?
31828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31834 ac_header_preproc=yes
31837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31851 ## --------------------------------------------- ##
31852 ## Report this to <http://www.openldap.org/its/> ##
31853 ## --------------------------------------------- ##
31856 sed "s/^/$as_me: WARNING: /" >&2
31859 echo "$as_me:$LINENO: checking for $ac_header" >&5
31860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31862 echo $ECHO_N "(cached) $ECHO_C" >&6
31864 eval "$as_ac_Header=\$ac_header_preproc"
31866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31871 cat >>confdefs.h <<_ACEOF
31872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31877 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31878 echo "$as_me: error: could not locate SQL headers" >&2;}
31879 { (exit 1); exit 1; }; }
31887 LIBS="$LTHREAD_LIBS"
31889 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31890 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31891 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31892 echo $ECHO_N "(cached) $ECHO_C" >&6
31894 ac_check_lib_save_LIBS=$LIBS
31895 LIBS="-liodbc $LIBS"
31896 cat >conftest.$ac_ext <<_ACEOF
31899 cat confdefs.h >>conftest.$ac_ext
31900 cat >>conftest.$ac_ext <<_ACEOF
31901 /* end confdefs.h. */
31903 /* Override any gcc2 internal prototype to avoid an error. */
31907 /* We use char because int might match the return type of a gcc2
31908 builtin and then its argument prototype would still apply. */
31909 char SQLDriverConnect ();
31913 SQLDriverConnect ();
31918 rm -f conftest.$ac_objext conftest$ac_exeext
31919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31920 (eval $ac_link) 2>conftest.er1
31922 grep -v '^ *+' conftest.er1 >conftest.err
31924 cat conftest.err >&5
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); } &&
31927 { ac_try='test -z "$ac_c_werror_flag"
31928 || test ! -s conftest.err'
31929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930 (eval $ac_try) 2>&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; } &&
31934 { ac_try='test -s conftest$ac_exeext'
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; }; then
31940 ac_cv_lib_iodbc_SQLDriverConnect=yes
31942 echo "$as_me: failed program was:" >&5
31943 sed 's/^/| /' conftest.$ac_ext >&5
31945 ac_cv_lib_iodbc_SQLDriverConnect=no
31947 rm -f conftest.err conftest.$ac_objext \
31948 conftest$ac_exeext conftest.$ac_ext
31949 LIBS=$ac_check_lib_save_LIBS
31951 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31952 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31953 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31959 if test $have_iodbc = yes ; then
31960 ol_link_sql="-liodbc"
31962 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31963 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31964 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31965 echo $ECHO_N "(cached) $ECHO_C" >&6
31967 ac_check_lib_save_LIBS=$LIBS
31968 LIBS="-lodbc $LIBS"
31969 cat >conftest.$ac_ext <<_ACEOF
31972 cat confdefs.h >>conftest.$ac_ext
31973 cat >>conftest.$ac_ext <<_ACEOF
31974 /* end confdefs.h. */
31976 /* Override any gcc2 internal prototype to avoid an error. */
31980 /* We use char because int might match the return type of a gcc2
31981 builtin and then its argument prototype would still apply. */
31982 char SQLDriverConnect ();
31986 SQLDriverConnect ();
31991 rm -f conftest.$ac_objext conftest$ac_exeext
31992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31993 (eval $ac_link) 2>conftest.er1
31995 grep -v '^ *+' conftest.er1 >conftest.err
31997 cat conftest.err >&5
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); } &&
32000 { ac_try='test -z "$ac_c_werror_flag"
32001 || test ! -s conftest.err'
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; } &&
32007 { ac_try='test -s conftest$ac_exeext'
32008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32009 (eval $ac_try) 2>&5
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; }; then
32013 ac_cv_lib_odbc_SQLDriverConnect=yes
32015 echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32018 ac_cv_lib_odbc_SQLDriverConnect=no
32020 rm -f conftest.err conftest.$ac_objext \
32021 conftest$ac_exeext conftest.$ac_ext
32022 LIBS=$ac_check_lib_save_LIBS
32024 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32025 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32026 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32032 if test $have_odbc = yes ; then
32033 ol_link_sql="-lodbc"
32039 if test $ol_link_sql != no ; then
32040 SLAPD_SQL_LIBS="$ol_link_sql"
32042 elif test $ol_enable_sql != auto ; then
32043 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32044 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32045 { (exit 1); exit 1; }; }
32051 for ac_header in unicode/utypes.h
32053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32055 echo "$as_me:$LINENO: checking for $ac_header" >&5
32056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32063 # Is the header compilable?
32064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32066 cat >conftest.$ac_ext <<_ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h. */
32072 $ac_includes_default
32073 #include <$ac_header>
32075 rm -f conftest.$ac_objext
32076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32077 (eval $ac_compile) 2>conftest.er1
32079 grep -v '^ *+' conftest.er1 >conftest.err
32081 cat conftest.err >&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); } &&
32084 { ac_try='test -z "$ac_c_werror_flag"
32085 || test ! -s conftest.err'
32086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32087 (eval $ac_try) 2>&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); }; } &&
32091 { ac_try='test -s conftest.$ac_objext'
32092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093 (eval $ac_try) 2>&5
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); }; }; then
32097 ac_header_compiler=yes
32099 echo "$as_me: failed program was:" >&5
32100 sed 's/^/| /' conftest.$ac_ext >&5
32102 ac_header_compiler=no
32104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32106 echo "${ECHO_T}$ac_header_compiler" >&6
32108 # Is the header present?
32109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32111 cat >conftest.$ac_ext <<_ACEOF
32114 cat confdefs.h >>conftest.$ac_ext
32115 cat >>conftest.$ac_ext <<_ACEOF
32116 /* end confdefs.h. */
32117 #include <$ac_header>
32119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32122 grep -v '^ *+' conftest.er1 >conftest.err
32124 cat conftest.err >&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); } >/dev/null; then
32127 if test -s conftest.err; then
32128 ac_cpp_err=$ac_c_preproc_warn_flag
32129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32136 if test -z "$ac_cpp_err"; then
32137 ac_header_preproc=yes
32139 echo "$as_me: failed program was:" >&5
32140 sed 's/^/| /' conftest.$ac_ext >&5
32142 ac_header_preproc=no
32144 rm -f conftest.err conftest.$ac_ext
32145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32146 echo "${ECHO_T}$ac_header_preproc" >&6
32148 # So? What about this header?
32149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32155 ac_header_preproc=yes
32158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32172 ## --------------------------------------------- ##
32173 ## Report this to <http://www.openldap.org/its/> ##
32174 ## --------------------------------------------- ##
32177 sed "s/^/$as_me: WARNING: /" >&2
32180 echo "$as_me:$LINENO: checking for $ac_header" >&5
32181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32183 echo $ECHO_N "(cached) $ECHO_C" >&6
32185 eval "$as_ac_Header=\$ac_header_preproc"
32187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32192 cat >>confdefs.h <<_ACEOF
32193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32200 if test $ac_cv_header_unicode_utypes_h = yes ; then
32201 OL_ICULIBS="-licuuc -licudata"
32203 echo "$as_me:$LINENO: checking for ICU libraries" >&5
32204 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32205 if test "${ol_cv_lib_icu+set}" = set; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
32210 LIBS="$OL_ICULIBS $LIBS"
32211 cat >conftest.$ac_ext <<_ACEOF
32214 cat confdefs.h >>conftest.$ac_ext
32215 cat >>conftest.$ac_ext <<_ACEOF
32216 /* end confdefs.h. */
32218 #include <unicode/utypes.h>
32224 (void) u_errorName(0);
32230 rm -f conftest.$ac_objext conftest$ac_exeext
32231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32232 (eval $ac_link) 2>conftest.er1
32234 grep -v '^ *+' conftest.er1 >conftest.err
32236 cat conftest.err >&5
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); } &&
32239 { ac_try='test -z "$ac_c_werror_flag"
32240 || test ! -s conftest.err'
32241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242 (eval $ac_try) 2>&5
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); }; } &&
32246 { ac_try='test -s conftest$ac_exeext'
32247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32248 (eval $ac_try) 2>&5
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); }; }; then
32254 echo "$as_me: failed program was:" >&5
32255 sed 's/^/| /' conftest.$ac_ext >&5
32259 rm -f conftest.err conftest.$ac_objext \
32260 conftest$ac_exeext conftest.$ac_ext
32264 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32265 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32267 if test $ol_cv_lib_icu != no ; then
32268 ol_icu="$OL_ICULIBS"
32270 cat >>confdefs.h <<\_ACEOF
32277 if test "$ol_icu" = no ; then
32278 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32279 echo "$as_me: WARNING: ICU not available" >&2;}
32286 if test $ol_with_cyrus_sasl != no ; then
32289 for ac_header in sasl/sasl.h sasl.h
32291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32293 echo "$as_me:$LINENO: checking for $ac_header" >&5
32294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32296 echo $ECHO_N "(cached) $ECHO_C" >&6
32298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32301 # Is the header compilable?
32302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32304 cat >conftest.$ac_ext <<_ACEOF
32307 cat confdefs.h >>conftest.$ac_ext
32308 cat >>conftest.$ac_ext <<_ACEOF
32309 /* end confdefs.h. */
32310 $ac_includes_default
32311 #include <$ac_header>
32313 rm -f conftest.$ac_objext
32314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32315 (eval $ac_compile) 2>conftest.er1
32317 grep -v '^ *+' conftest.er1 >conftest.err
32319 cat conftest.err >&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
32322 { ac_try='test -z "$ac_c_werror_flag"
32323 || test ! -s conftest.err'
32324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325 (eval $ac_try) 2>&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); }; } &&
32329 { ac_try='test -s conftest.$ac_objext'
32330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331 (eval $ac_try) 2>&5
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; }; then
32335 ac_header_compiler=yes
32337 echo "$as_me: failed program was:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32340 ac_header_compiler=no
32342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32344 echo "${ECHO_T}$ac_header_compiler" >&6
32346 # Is the header present?
32347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32349 cat >conftest.$ac_ext <<_ACEOF
32352 cat confdefs.h >>conftest.$ac_ext
32353 cat >>conftest.$ac_ext <<_ACEOF
32354 /* end confdefs.h. */
32355 #include <$ac_header>
32357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32360 grep -v '^ *+' conftest.er1 >conftest.err
32362 cat conftest.err >&5
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); } >/dev/null; then
32365 if test -s conftest.err; then
32366 ac_cpp_err=$ac_c_preproc_warn_flag
32367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32374 if test -z "$ac_cpp_err"; then
32375 ac_header_preproc=yes
32377 echo "$as_me: failed program was:" >&5
32378 sed 's/^/| /' conftest.$ac_ext >&5
32380 ac_header_preproc=no
32382 rm -f conftest.err conftest.$ac_ext
32383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32384 echo "${ECHO_T}$ac_header_preproc" >&6
32386 # So? What about this header?
32387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32393 ac_header_preproc=yes
32396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32410 ## --------------------------------------------- ##
32411 ## Report this to <http://www.openldap.org/its/> ##
32412 ## --------------------------------------------- ##
32415 sed "s/^/$as_me: WARNING: /" >&2
32418 echo "$as_me:$LINENO: checking for $ac_header" >&5
32419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32421 echo $ECHO_N "(cached) $ECHO_C" >&6
32423 eval "$as_ac_Header=\$ac_header_preproc"
32425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32430 cat >>confdefs.h <<_ACEOF
32431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32439 if test $ac_cv_header_sasl_sasl_h = yes ||
32440 test $ac_cv_header_sasl_h = yes; then
32441 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32442 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32443 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32444 echo $ECHO_N "(cached) $ECHO_C" >&6
32446 ac_check_lib_save_LIBS=$LIBS
32447 LIBS="-lsasl2 $LIBS"
32448 cat >conftest.$ac_ext <<_ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h. */
32455 /* Override any gcc2 internal prototype to avoid an error. */
32459 /* We use char because int might match the return type of a gcc2
32460 builtin and then its argument prototype would still apply. */
32461 char sasl_client_init ();
32465 sasl_client_init ();
32470 rm -f conftest.$ac_objext conftest$ac_exeext
32471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32472 (eval $ac_link) 2>conftest.er1
32474 grep -v '^ *+' conftest.er1 >conftest.err
32476 cat conftest.err >&5
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); } &&
32479 { ac_try='test -z "$ac_c_werror_flag"
32480 || test ! -s conftest.err'
32481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482 (eval $ac_try) 2>&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; } &&
32486 { ac_try='test -s conftest$ac_exeext'
32487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32488 (eval $ac_try) 2>&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); }; }; then
32492 ac_cv_lib_sasl2_sasl_client_init=yes
32494 echo "$as_me: failed program was:" >&5
32495 sed 's/^/| /' conftest.$ac_ext >&5
32497 ac_cv_lib_sasl2_sasl_client_init=no
32499 rm -f conftest.err conftest.$ac_objext \
32500 conftest$ac_exeext conftest.$ac_ext
32501 LIBS=$ac_check_lib_save_LIBS
32503 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32504 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32505 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32506 ol_link_sasl="-lsasl2"
32508 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32509 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32510 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32511 echo $ECHO_N "(cached) $ECHO_C" >&6
32513 ac_check_lib_save_LIBS=$LIBS
32514 LIBS="-lsasl $LIBS"
32515 cat >conftest.$ac_ext <<_ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h. */
32522 /* Override any gcc2 internal prototype to avoid an error. */
32526 /* We use char because int might match the return type of a gcc2
32527 builtin and then its argument prototype would still apply. */
32528 char sasl_client_init ();
32532 sasl_client_init ();
32537 rm -f conftest.$ac_objext conftest$ac_exeext
32538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32539 (eval $ac_link) 2>conftest.er1
32541 grep -v '^ *+' conftest.er1 >conftest.err
32543 cat conftest.err >&5
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); } &&
32546 { ac_try='test -z "$ac_c_werror_flag"
32547 || test ! -s conftest.err'
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; } &&
32553 { ac_try='test -s conftest$ac_exeext'
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; }; then
32559 ac_cv_lib_sasl_sasl_client_init=yes
32561 echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32564 ac_cv_lib_sasl_sasl_client_init=no
32566 rm -f conftest.err conftest.$ac_objext \
32567 conftest$ac_exeext conftest.$ac_ext
32568 LIBS=$ac_check_lib_save_LIBS
32570 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32571 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32572 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32573 ol_link_sasl="-lsasl"
32580 if test $ol_link_sasl = no ; then
32581 if test $ol_with_cyrus_sasl != auto ; then
32582 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32583 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32584 { (exit 1); exit 1; }; }
32586 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32587 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32588 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32589 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32590 if test $ol_link_tls = no ; then
32591 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32592 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32596 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32597 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32598 if test "${ol_cv_sasl_compat+set}" = set; then
32599 echo $ECHO_N "(cached) $ECHO_C" >&6
32602 cat >conftest.$ac_ext <<_ACEOF
32605 cat confdefs.h >>conftest.$ac_ext
32606 cat >>conftest.$ac_ext <<_ACEOF
32607 /* end confdefs.h. */
32609 #ifdef HAVE_SASL_SASL_H
32610 #include <sasl/sasl.h>
32615 /* Require 2.1.15+ */
32616 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32617 char *__sasl_compat = "2.2+ or better okay (we guess)";
32618 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32619 && SASL_VERSION_STEP >=15
32620 char *__sasl_compat = "2.1.15+ or better okay";
32624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32625 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32626 ol_cv_sasl_compat=yes
32628 ol_cv_sasl_compat=no
32633 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32634 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32636 if test $ol_cv_sasl_compat = no ; then
32638 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32639 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32640 { (exit 1); exit 1; }; }
32644 cat >>confdefs.h <<\_ACEOF
32645 #define HAVE_CYRUS_SASL 1
32648 SASL_LIBS="$ol_link_sasl"
32649 if test $ol_enable_spasswd != no ; then
32650 ol_link_spasswd=yes
32653 ac_save_LIBS="$LIBS"
32654 LIBS="$LIBS $ol_link_sasl"
32655 echo "$as_me:$LINENO: checking for sasl_version" >&5
32656 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32657 if test "${ac_cv_func_sasl_version+set}" = set; then
32658 echo $ECHO_N "(cached) $ECHO_C" >&6
32660 cat >conftest.$ac_ext <<_ACEOF
32663 cat confdefs.h >>conftest.$ac_ext
32664 cat >>conftest.$ac_ext <<_ACEOF
32665 /* end confdefs.h. */
32666 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32668 #define sasl_version innocuous_sasl_version
32670 /* System header to define __stub macros and hopefully few prototypes,
32671 which can conflict with char sasl_version (); below.
32672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32673 <limits.h> exists even on freestanding compilers. */
32676 # include <limits.h>
32678 # include <assert.h>
32681 #undef sasl_version
32683 /* Override any gcc2 internal prototype to avoid an error. */
32688 /* We use char because int might match the return type of a gcc2
32689 builtin and then its argument prototype would still apply. */
32690 char sasl_version ();
32691 /* The GNU C library defines this for functions which it implements
32692 to always fail with ENOSYS. Some functions are actually named
32693 something starting with __ and the normal name is an alias. */
32694 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32697 char (*f) () = sasl_version;
32706 return f != sasl_version;
32711 rm -f conftest.$ac_objext conftest$ac_exeext
32712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32713 (eval $ac_link) 2>conftest.er1
32715 grep -v '^ *+' conftest.er1 >conftest.err
32717 cat conftest.err >&5
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); } &&
32720 { ac_try='test -z "$ac_c_werror_flag"
32721 || test ! -s conftest.err'
32722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723 (eval $ac_try) 2>&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); }; } &&
32727 { ac_try='test -s conftest$ac_exeext'
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; }; then
32733 ac_cv_func_sasl_version=yes
32735 echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32738 ac_cv_func_sasl_version=no
32740 rm -f conftest.err conftest.$ac_objext \
32741 conftest$ac_exeext conftest.$ac_ext
32743 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32744 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32745 if test $ac_cv_func_sasl_version = yes; then
32747 cat >>confdefs.h <<\_ACEOF
32748 #define HAVE_SASL_VERSION 1
32753 LIBS="$ac_save_LIBS"
32759 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32760 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32761 if test $ol_link_tls = no ; then
32762 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32763 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32767 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32769 if test -r /dev/urandom ; then
32770 dev="/dev/urandom";
32771 elif test -r /idev/urandom ; then
32772 dev="/idev/urandom";
32773 elif test -r /dev/srandom ; then
32774 dev="/dev/srandom";
32775 elif test -r /dev/random ; then
32777 elif test -r /idev/random ; then
32778 dev="/idev/random";
32781 if test $dev != no ; then
32783 cat >>confdefs.h <<_ACEOF
32784 #define URANDOM_DEVICE "$dev"
32791 if test $ol_with_fetch != no ; then
32793 LIBS="-lfetch -lcom_err $LIBS"
32794 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32795 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32796 if test "${ol_cv_lib_fetch+set}" = set; then
32797 echo $ECHO_N "(cached) $ECHO_C" >&6
32800 cat >conftest.$ac_ext <<_ACEOF
32803 cat confdefs.h >>conftest.$ac_ext
32804 cat >>conftest.$ac_ext <<_ACEOF
32805 /* end confdefs.h. */
32807 #include <sys/param.h>
32813 struct url *u = fetchParseURL("file:///");
32818 rm -f conftest.$ac_objext conftest$ac_exeext
32819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32820 (eval $ac_link) 2>conftest.er1
32822 grep -v '^ *+' conftest.er1 >conftest.err
32824 cat conftest.err >&5
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); } &&
32827 { ac_try='test -z "$ac_c_werror_flag"
32828 || test ! -s conftest.err'
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; } &&
32834 { ac_try='test -s conftest$ac_exeext'
32835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32836 (eval $ac_try) 2>&5
32838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839 (exit $ac_status); }; }; then
32840 ol_cv_lib_fetch=yes
32842 echo "$as_me: failed program was:" >&5
32843 sed 's/^/| /' conftest.$ac_ext >&5
32847 rm -f conftest.err conftest.$ac_objext \
32848 conftest$ac_exeext conftest.$ac_ext
32850 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32851 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32853 if test $ol_cv_lib_fetch != no ; then
32854 ol_link_fetch="-lfetch -lcom_err"
32856 cat >>confdefs.h <<\_ACEOF
32857 #define HAVE_FETCH 1
32863 if test $ol_cv_lib_fetch != no ; then
32864 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32865 ol_link_fetch=freebsd
32867 elif test $ol_with_fetch != auto ; then
32868 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32869 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32870 { (exit 1); exit 1; }; }
32874 if test $ol_enable_crypt != no ; then
32876 LIBS="$TLS_LIBS $LIBS"
32878 echo "$as_me:$LINENO: checking for crypt" >&5
32879 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32880 if test "${ac_cv_func_crypt+set}" = set; then
32881 echo $ECHO_N "(cached) $ECHO_C" >&6
32883 cat >conftest.$ac_ext <<_ACEOF
32886 cat confdefs.h >>conftest.$ac_ext
32887 cat >>conftest.$ac_ext <<_ACEOF
32888 /* end confdefs.h. */
32889 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32891 #define crypt innocuous_crypt
32893 /* System header to define __stub macros and hopefully few prototypes,
32894 which can conflict with char crypt (); below.
32895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32896 <limits.h> exists even on freestanding compilers. */
32899 # include <limits.h>
32901 # include <assert.h>
32906 /* Override any gcc2 internal prototype to avoid an error. */
32911 /* We use char because int might match the return type of a gcc2
32912 builtin and then its argument prototype would still apply. */
32914 /* The GNU C library defines this for functions which it implements
32915 to always fail with ENOSYS. Some functions are actually named
32916 something starting with __ and the normal name is an alias. */
32917 #if defined (__stub_crypt) || defined (__stub___crypt)
32920 char (*f) () = crypt;
32934 rm -f conftest.$ac_objext conftest$ac_exeext
32935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32936 (eval $ac_link) 2>conftest.er1
32938 grep -v '^ *+' conftest.er1 >conftest.err
32940 cat conftest.err >&5
32941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942 (exit $ac_status); } &&
32943 { ac_try='test -z "$ac_c_werror_flag"
32944 || test ! -s conftest.err'
32945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32946 (eval $ac_try) 2>&5
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); }; } &&
32950 { ac_try='test -s conftest$ac_exeext'
32951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32952 (eval $ac_try) 2>&5
32954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955 (exit $ac_status); }; }; then
32956 ac_cv_func_crypt=yes
32958 echo "$as_me: failed program was:" >&5
32959 sed 's/^/| /' conftest.$ac_ext >&5
32961 ac_cv_func_crypt=no
32963 rm -f conftest.err conftest.$ac_objext \
32964 conftest$ac_exeext conftest.$ac_ext
32966 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32967 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32968 if test $ac_cv_func_crypt = yes; then
32973 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32974 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32975 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32976 echo $ECHO_N "(cached) $ECHO_C" >&6
32978 ac_check_lib_save_LIBS=$LIBS
32979 LIBS="-lcrypt $LIBS"
32980 cat >conftest.$ac_ext <<_ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h. */
32987 /* Override any gcc2 internal prototype to avoid an error. */
32991 /* We use char because int might match the return type of a gcc2
32992 builtin and then its argument prototype would still apply. */
33002 rm -f conftest.$ac_objext conftest$ac_exeext
33003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33004 (eval $ac_link) 2>conftest.er1
33006 grep -v '^ *+' conftest.er1 >conftest.err
33008 cat conftest.err >&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } &&
33011 { ac_try='test -z "$ac_c_werror_flag"
33012 || test ! -s conftest.err'
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; } &&
33018 { ac_try='test -s conftest$ac_exeext'
33019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33020 (eval $ac_try) 2>&5
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); }; }; then
33024 ac_cv_lib_crypt_crypt=yes
33026 echo "$as_me: failed program was:" >&5
33027 sed 's/^/| /' conftest.$ac_ext >&5
33029 ac_cv_lib_crypt_crypt=no
33031 rm -f conftest.err conftest.$ac_objext \
33032 conftest$ac_exeext conftest.$ac_ext
33033 LIBS=$ac_check_lib_save_LIBS
33035 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33036 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33037 if test $ac_cv_lib_crypt_crypt = yes; then
33038 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33049 if test $have_crypt = yes ; then
33051 cat >>confdefs.h <<\_ACEOF
33052 #define HAVE_CRYPT 1
33056 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33057 echo "$as_me: WARNING: could not find crypt" >&2;}
33058 if test $ol_enable_crypt = yes ; then
33059 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33060 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33061 { (exit 1); exit 1; }; }
33064 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33065 echo "$as_me: WARNING: disabling crypt support" >&2;}
33070 if test $ol_enable_proctitle != no ; then
33071 echo "$as_me:$LINENO: checking for setproctitle" >&5
33072 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33073 if test "${ac_cv_func_setproctitle+set}" = set; then
33074 echo $ECHO_N "(cached) $ECHO_C" >&6
33076 cat >conftest.$ac_ext <<_ACEOF
33079 cat confdefs.h >>conftest.$ac_ext
33080 cat >>conftest.$ac_ext <<_ACEOF
33081 /* end confdefs.h. */
33082 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33084 #define setproctitle innocuous_setproctitle
33086 /* System header to define __stub macros and hopefully few prototypes,
33087 which can conflict with char setproctitle (); below.
33088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33089 <limits.h> exists even on freestanding compilers. */
33092 # include <limits.h>
33094 # include <assert.h>
33097 #undef setproctitle
33099 /* Override any gcc2 internal prototype to avoid an error. */
33104 /* We use char because int might match the return type of a gcc2
33105 builtin and then its argument prototype would still apply. */
33106 char setproctitle ();
33107 /* The GNU C library defines this for functions which it implements
33108 to always fail with ENOSYS. Some functions are actually named
33109 something starting with __ and the normal name is an alias. */
33110 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33113 char (*f) () = setproctitle;
33122 return f != setproctitle;
33127 rm -f conftest.$ac_objext conftest$ac_exeext
33128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33129 (eval $ac_link) 2>conftest.er1
33131 grep -v '^ *+' conftest.er1 >conftest.err
33133 cat conftest.err >&5
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); } &&
33136 { ac_try='test -z "$ac_c_werror_flag"
33137 || test ! -s conftest.err'
33138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33139 (eval $ac_try) 2>&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; } &&
33143 { ac_try='test -s conftest$ac_exeext'
33144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33145 (eval $ac_try) 2>&5
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); }; }; then
33149 ac_cv_func_setproctitle=yes
33151 echo "$as_me: failed program was:" >&5
33152 sed 's/^/| /' conftest.$ac_ext >&5
33154 ac_cv_func_setproctitle=no
33156 rm -f conftest.err conftest.$ac_objext \
33157 conftest$ac_exeext conftest.$ac_ext
33159 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33160 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33161 if test $ac_cv_func_setproctitle = yes; then
33162 have_setproctitle=yes
33165 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33166 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33167 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33168 echo $ECHO_N "(cached) $ECHO_C" >&6
33170 ac_check_lib_save_LIBS=$LIBS
33171 LIBS="-lutil $LIBS"
33172 cat >conftest.$ac_ext <<_ACEOF
33175 cat confdefs.h >>conftest.$ac_ext
33176 cat >>conftest.$ac_ext <<_ACEOF
33177 /* end confdefs.h. */
33179 /* Override any gcc2 internal prototype to avoid an error. */
33183 /* We use char because int might match the return type of a gcc2
33184 builtin and then its argument prototype would still apply. */
33185 char setproctitle ();
33194 rm -f conftest.$ac_objext conftest$ac_exeext
33195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33196 (eval $ac_link) 2>conftest.er1
33198 grep -v '^ *+' conftest.er1 >conftest.err
33200 cat conftest.err >&5
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); } &&
33203 { ac_try='test -z "$ac_c_werror_flag"
33204 || test ! -s conftest.err'
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); }; } &&
33210 { ac_try='test -s conftest$ac_exeext'
33211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33212 (eval $ac_try) 2>&5
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); }; }; then
33216 ac_cv_lib_util_setproctitle=yes
33218 echo "$as_me: failed program was:" >&5
33219 sed 's/^/| /' conftest.$ac_ext >&5
33221 ac_cv_lib_util_setproctitle=no
33223 rm -f conftest.err conftest.$ac_objext \
33224 conftest$ac_exeext conftest.$ac_ext
33225 LIBS=$ac_check_lib_save_LIBS
33227 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33228 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33229 if test $ac_cv_lib_util_setproctitle = yes; then
33230 have_setproctitle=yes
33231 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33233 have_setproctitle=no
33235 "setproctitle.$ac_objext" | \
33236 *" setproctitle.$ac_objext" | \
33237 "setproctitle.$ac_objext "* | \
33238 *" setproctitle.$ac_objext "* ) ;;
33239 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33242 LIBSRCS="$LIBSRCS setproctitle.c"
33248 if test $have_setproctitle = yes ; then
33250 cat >>confdefs.h <<\_ACEOF
33251 #define HAVE_SETPROCTITLE 1
33257 if test $ol_enable_slp != no ; then
33259 for ac_header in slp.h
33261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33263 echo "$as_me:$LINENO: checking for $ac_header" >&5
33264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33266 echo $ECHO_N "(cached) $ECHO_C" >&6
33268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33271 # Is the header compilable?
33272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33274 cat >conftest.$ac_ext <<_ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h. */
33280 $ac_includes_default
33281 #include <$ac_header>
33283 rm -f conftest.$ac_objext
33284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33285 (eval $ac_compile) 2>conftest.er1
33287 grep -v '^ *+' conftest.er1 >conftest.err
33289 cat conftest.err >&5
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); } &&
33292 { ac_try='test -z "$ac_c_werror_flag"
33293 || test ! -s conftest.err'
33294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33295 (eval $ac_try) 2>&5
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); }; } &&
33299 { ac_try='test -s conftest.$ac_objext'
33300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301 (eval $ac_try) 2>&5
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); }; }; then
33305 ac_header_compiler=yes
33307 echo "$as_me: failed program was:" >&5
33308 sed 's/^/| /' conftest.$ac_ext >&5
33310 ac_header_compiler=no
33312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33314 echo "${ECHO_T}$ac_header_compiler" >&6
33316 # Is the header present?
33317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33319 cat >conftest.$ac_ext <<_ACEOF
33322 cat confdefs.h >>conftest.$ac_ext
33323 cat >>conftest.$ac_ext <<_ACEOF
33324 /* end confdefs.h. */
33325 #include <$ac_header>
33327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33330 grep -v '^ *+' conftest.er1 >conftest.err
33332 cat conftest.err >&5
33333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 (exit $ac_status); } >/dev/null; then
33335 if test -s conftest.err; then
33336 ac_cpp_err=$ac_c_preproc_warn_flag
33337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33344 if test -z "$ac_cpp_err"; then
33345 ac_header_preproc=yes
33347 echo "$as_me: failed program was:" >&5
33348 sed 's/^/| /' conftest.$ac_ext >&5
33350 ac_header_preproc=no
33352 rm -f conftest.err conftest.$ac_ext
33353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33354 echo "${ECHO_T}$ac_header_preproc" >&6
33356 # So? What about this header?
33357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33363 ac_header_preproc=yes
33366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33380 ## --------------------------------------------- ##
33381 ## Report this to <http://www.openldap.org/its/> ##
33382 ## --------------------------------------------- ##
33385 sed "s/^/$as_me: WARNING: /" >&2
33388 echo "$as_me:$LINENO: checking for $ac_header" >&5
33389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33391 echo $ECHO_N "(cached) $ECHO_C" >&6
33393 eval "$as_ac_Header=\$ac_header_preproc"
33395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33400 cat >>confdefs.h <<_ACEOF
33401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33409 if test $ac_cv_header_slp_h = yes ; then
33410 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33411 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33412 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33413 echo $ECHO_N "(cached) $ECHO_C" >&6
33415 ac_check_lib_save_LIBS=$LIBS
33417 cat >conftest.$ac_ext <<_ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h. */
33424 /* Override any gcc2 internal prototype to avoid an error. */
33428 /* We use char because int might match the return type of a gcc2
33429 builtin and then its argument prototype would still apply. */
33439 rm -f conftest.$ac_objext conftest$ac_exeext
33440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33441 (eval $ac_link) 2>conftest.er1
33443 grep -v '^ *+' conftest.er1 >conftest.err
33445 cat conftest.err >&5
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); } &&
33448 { ac_try='test -z "$ac_c_werror_flag"
33449 || test ! -s conftest.err'
33450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33451 (eval $ac_try) 2>&5
33453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454 (exit $ac_status); }; } &&
33455 { ac_try='test -s conftest$ac_exeext'
33456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33457 (eval $ac_try) 2>&5
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); }; }; then
33461 ac_cv_lib_slp_SLPOpen=yes
33463 echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33466 ac_cv_lib_slp_SLPOpen=no
33468 rm -f conftest.err conftest.$ac_objext \
33469 conftest$ac_exeext conftest.$ac_ext
33470 LIBS=$ac_check_lib_save_LIBS
33472 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33473 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33474 if test $ac_cv_lib_slp_SLPOpen = yes; then
33480 if test $have_slp = yes ; then
33482 cat >>confdefs.h <<\_ACEOF
33486 SLAPD_SLP_LIBS=-lslp
33489 elif test $ol_enable_slp = yes ; then
33490 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33491 echo "$as_me: error: SLP not found" >&2;}
33492 { (exit 1); exit 1; }; }
33497 echo "$as_me:$LINENO: checking for mode_t" >&5
33498 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33499 if test "${ac_cv_type_mode_t+set}" = set; then
33500 echo $ECHO_N "(cached) $ECHO_C" >&6
33502 cat >conftest.$ac_ext <<_ACEOF
33505 cat confdefs.h >>conftest.$ac_ext
33506 cat >>conftest.$ac_ext <<_ACEOF
33507 /* end confdefs.h. */
33508 $ac_includes_default
33514 if (sizeof (mode_t))
33520 rm -f conftest.$ac_objext
33521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33522 (eval $ac_compile) 2>conftest.er1
33524 grep -v '^ *+' conftest.er1 >conftest.err
33526 cat conftest.err >&5
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); } &&
33529 { ac_try='test -z "$ac_c_werror_flag"
33530 || test ! -s conftest.err'
33531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532 (eval $ac_try) 2>&5
33534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535 (exit $ac_status); }; } &&
33536 { ac_try='test -s conftest.$ac_objext'
33537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33538 (eval $ac_try) 2>&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); }; }; then
33542 ac_cv_type_mode_t=yes
33544 echo "$as_me: failed program was:" >&5
33545 sed 's/^/| /' conftest.$ac_ext >&5
33547 ac_cv_type_mode_t=no
33549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33551 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33552 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33553 if test $ac_cv_type_mode_t = yes; then
33557 cat >>confdefs.h <<_ACEOF
33563 echo "$as_me:$LINENO: checking for off_t" >&5
33564 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33565 if test "${ac_cv_type_off_t+set}" = set; then
33566 echo $ECHO_N "(cached) $ECHO_C" >&6
33568 cat >conftest.$ac_ext <<_ACEOF
33571 cat confdefs.h >>conftest.$ac_ext
33572 cat >>conftest.$ac_ext <<_ACEOF
33573 /* end confdefs.h. */
33574 $ac_includes_default
33580 if (sizeof (off_t))
33586 rm -f conftest.$ac_objext
33587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33588 (eval $ac_compile) 2>conftest.er1
33590 grep -v '^ *+' conftest.er1 >conftest.err
33592 cat conftest.err >&5
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); } &&
33595 { ac_try='test -z "$ac_c_werror_flag"
33596 || test ! -s conftest.err'
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest.$ac_objext'
33603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604 (eval $ac_try) 2>&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; }; then
33608 ac_cv_type_off_t=yes
33610 echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33613 ac_cv_type_off_t=no
33615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33617 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33618 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33619 if test $ac_cv_type_off_t = yes; then
33623 cat >>confdefs.h <<_ACEOF
33629 echo "$as_me:$LINENO: checking for pid_t" >&5
33630 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33631 if test "${ac_cv_type_pid_t+set}" = set; then
33632 echo $ECHO_N "(cached) $ECHO_C" >&6
33634 cat >conftest.$ac_ext <<_ACEOF
33637 cat confdefs.h >>conftest.$ac_ext
33638 cat >>conftest.$ac_ext <<_ACEOF
33639 /* end confdefs.h. */
33640 $ac_includes_default
33646 if (sizeof (pid_t))
33652 rm -f conftest.$ac_objext
33653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33654 (eval $ac_compile) 2>conftest.er1
33656 grep -v '^ *+' conftest.er1 >conftest.err
33658 cat conftest.err >&5
33659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33660 (exit $ac_status); } &&
33661 { ac_try='test -z "$ac_c_werror_flag"
33662 || test ! -s conftest.err'
33663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664 (eval $ac_try) 2>&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; } &&
33668 { ac_try='test -s conftest.$ac_objext'
33669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33670 (eval $ac_try) 2>&5
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; }; then
33674 ac_cv_type_pid_t=yes
33676 echo "$as_me: failed program was:" >&5
33677 sed 's/^/| /' conftest.$ac_ext >&5
33679 ac_cv_type_pid_t=no
33681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33683 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33684 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33685 if test $ac_cv_type_pid_t = yes; then
33689 cat >>confdefs.h <<_ACEOF
33695 echo "$as_me:$LINENO: checking for ssize_t" >&5
33696 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33697 if test "${ac_cv_type_ssize_t+set}" = set; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33700 cat >conftest.$ac_ext <<_ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h. */
33706 $ac_includes_default
33712 if (sizeof (ssize_t))
33718 rm -f conftest.$ac_objext
33719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33720 (eval $ac_compile) 2>conftest.er1
33722 grep -v '^ *+' conftest.er1 >conftest.err
33724 cat conftest.err >&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); } &&
33727 { ac_try='test -z "$ac_c_werror_flag"
33728 || test ! -s conftest.err'
33729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730 (eval $ac_try) 2>&5
33732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); }; } &&
33734 { ac_try='test -s conftest.$ac_objext'
33735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736 (eval $ac_try) 2>&5
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); }; }; then
33740 ac_cv_type_ssize_t=yes
33742 echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33745 ac_cv_type_ssize_t=no
33747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33749 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33750 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33751 if test $ac_cv_type_ssize_t = yes; then
33755 cat >>confdefs.h <<_ACEOF
33756 #define ssize_t signed int
33761 echo "$as_me:$LINENO: checking for caddr_t" >&5
33762 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33763 if test "${ac_cv_type_caddr_t+set}" = set; then
33764 echo $ECHO_N "(cached) $ECHO_C" >&6
33766 cat >conftest.$ac_ext <<_ACEOF
33769 cat confdefs.h >>conftest.$ac_ext
33770 cat >>conftest.$ac_ext <<_ACEOF
33771 /* end confdefs.h. */
33772 $ac_includes_default
33778 if (sizeof (caddr_t))
33784 rm -f conftest.$ac_objext
33785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33786 (eval $ac_compile) 2>conftest.er1
33788 grep -v '^ *+' conftest.er1 >conftest.err
33790 cat conftest.err >&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); } &&
33793 { ac_try='test -z "$ac_c_werror_flag"
33794 || test ! -s conftest.err'
33795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796 (eval $ac_try) 2>&5
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); }; } &&
33800 { ac_try='test -s conftest.$ac_objext'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; }; then
33806 ac_cv_type_caddr_t=yes
33808 echo "$as_me: failed program was:" >&5
33809 sed 's/^/| /' conftest.$ac_ext >&5
33811 ac_cv_type_caddr_t=no
33813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33815 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33816 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33817 if test $ac_cv_type_caddr_t = yes; then
33821 cat >>confdefs.h <<_ACEOF
33822 #define caddr_t char *
33827 echo "$as_me:$LINENO: checking for size_t" >&5
33828 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33829 if test "${ac_cv_type_size_t+set}" = set; then
33830 echo $ECHO_N "(cached) $ECHO_C" >&6
33832 cat >conftest.$ac_ext <<_ACEOF
33835 cat confdefs.h >>conftest.$ac_ext
33836 cat >>conftest.$ac_ext <<_ACEOF
33837 /* end confdefs.h. */
33838 $ac_includes_default
33844 if (sizeof (size_t))
33850 rm -f conftest.$ac_objext
33851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33852 (eval $ac_compile) 2>conftest.er1
33854 grep -v '^ *+' conftest.er1 >conftest.err
33856 cat conftest.err >&5
33857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858 (exit $ac_status); } &&
33859 { ac_try='test -z "$ac_c_werror_flag"
33860 || test ! -s conftest.err'
33861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33862 (eval $ac_try) 2>&5
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); }; } &&
33866 { ac_try='test -s conftest.$ac_objext'
33867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33868 (eval $ac_try) 2>&5
33870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871 (exit $ac_status); }; }; then
33872 ac_cv_type_size_t=yes
33874 echo "$as_me: failed program was:" >&5
33875 sed 's/^/| /' conftest.$ac_ext >&5
33877 ac_cv_type_size_t=no
33879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33881 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33882 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33883 if test $ac_cv_type_size_t = yes; then
33887 cat >>confdefs.h <<_ACEOF
33888 #define size_t unsigned
33894 echo "$as_me:$LINENO: checking for long long" >&5
33895 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33896 if test "${ac_cv_type_long_long+set}" = set; then
33897 echo $ECHO_N "(cached) $ECHO_C" >&6
33899 cat >conftest.$ac_ext <<_ACEOF
33902 cat confdefs.h >>conftest.$ac_ext
33903 cat >>conftest.$ac_ext <<_ACEOF
33904 /* end confdefs.h. */
33905 $ac_includes_default
33909 if ((long long *) 0)
33911 if (sizeof (long long))
33917 rm -f conftest.$ac_objext
33918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33919 (eval $ac_compile) 2>conftest.er1
33921 grep -v '^ *+' conftest.er1 >conftest.err
33923 cat conftest.err >&5
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925 (exit $ac_status); } &&
33926 { ac_try='test -z "$ac_c_werror_flag"
33927 || test ! -s conftest.err'
33928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929 (eval $ac_try) 2>&5
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; } &&
33933 { ac_try='test -s conftest.$ac_objext'
33934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33935 (eval $ac_try) 2>&5
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); }; }; then
33939 ac_cv_type_long_long=yes
33941 echo "$as_me: failed program was:" >&5
33942 sed 's/^/| /' conftest.$ac_ext >&5
33944 ac_cv_type_long_long=no
33946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33948 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33949 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33950 if test $ac_cv_type_long_long = yes; then
33952 cat >>confdefs.h <<_ACEOF
33953 #define HAVE_LONG_LONG 1
33959 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33960 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33961 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33962 echo $ECHO_N "(cached) $ECHO_C" >&6
33964 cat >conftest.$ac_ext <<_ACEOF
33967 cat confdefs.h >>conftest.$ac_ext
33968 cat >>conftest.$ac_ext <<_ACEOF
33969 /* end confdefs.h. */
33970 $ac_includes_default
33974 if ((ptrdiff_t *) 0)
33976 if (sizeof (ptrdiff_t))
33982 rm -f conftest.$ac_objext
33983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33984 (eval $ac_compile) 2>conftest.er1
33986 grep -v '^ *+' conftest.er1 >conftest.err
33988 cat conftest.err >&5
33989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33990 (exit $ac_status); } &&
33991 { ac_try='test -z "$ac_c_werror_flag"
33992 || test ! -s conftest.err'
33993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33994 (eval $ac_try) 2>&5
33996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997 (exit $ac_status); }; } &&
33998 { ac_try='test -s conftest.$ac_objext'
33999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34000 (eval $ac_try) 2>&5
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); }; }; then
34004 ac_cv_type_ptrdiff_t=yes
34006 echo "$as_me: failed program was:" >&5
34007 sed 's/^/| /' conftest.$ac_ext >&5
34009 ac_cv_type_ptrdiff_t=no
34011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34013 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34014 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34015 if test $ac_cv_type_ptrdiff_t = yes; then
34017 cat >>confdefs.h <<_ACEOF
34018 #define HAVE_PTRDIFF_T 1
34025 echo "$as_me:$LINENO: checking for socklen_t" >&5
34026 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34027 if test "${ac_cv_type_socklen_t+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 $ac_includes_default
34037 #ifdef HAVE_SYS_SOCKET_H
34038 #include <sys/socket.h>
34045 if ((socklen_t *) 0)
34047 if (sizeof (socklen_t))
34053 rm -f conftest.$ac_objext
34054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34055 (eval $ac_compile) 2>conftest.er1
34057 grep -v '^ *+' conftest.er1 >conftest.err
34059 cat conftest.err >&5
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); } &&
34062 { ac_try='test -z "$ac_c_werror_flag"
34063 || test ! -s conftest.err'
34064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065 (eval $ac_try) 2>&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); }; } &&
34069 { ac_try='test -s conftest.$ac_objext'
34070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34071 (eval $ac_try) 2>&5
34073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074 (exit $ac_status); }; }; then
34075 ac_cv_type_socklen_t=yes
34077 echo "$as_me: failed program was:" >&5
34078 sed 's/^/| /' conftest.$ac_ext >&5
34080 ac_cv_type_socklen_t=no
34082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34084 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34085 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34086 if test $ac_cv_type_socklen_t = yes; then
34090 cat >>confdefs.h <<_ACEOF
34091 #define socklen_t int
34097 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34098 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34099 if test "${ac_cv_type_signal+set}" = set; then
34100 echo $ECHO_N "(cached) $ECHO_C" >&6
34102 cat >conftest.$ac_ext <<_ACEOF
34105 cat confdefs.h >>conftest.$ac_ext
34106 cat >>conftest.$ac_ext <<_ACEOF
34107 /* end confdefs.h. */
34108 #include <sys/types.h>
34109 #include <signal.h>
34114 extern "C" void (*signal (int, void (*)(int)))(int);
34116 void (*signal ()) ();
34127 rm -f conftest.$ac_objext
34128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34129 (eval $ac_compile) 2>conftest.er1
34131 grep -v '^ *+' conftest.er1 >conftest.err
34133 cat conftest.err >&5
34134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135 (exit $ac_status); } &&
34136 { ac_try='test -z "$ac_c_werror_flag"
34137 || test ! -s conftest.err'
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; } &&
34143 { ac_try='test -s conftest.$ac_objext'
34144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34145 (eval $ac_try) 2>&5
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); }; }; then
34149 ac_cv_type_signal=void
34151 echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34154 ac_cv_type_signal=int
34156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34158 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34159 echo "${ECHO_T}$ac_cv_type_signal" >&6
34161 cat >>confdefs.h <<_ACEOF
34162 #define RETSIGTYPE $ac_cv_type_signal
34167 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34168 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34169 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34170 echo $ECHO_N "(cached) $ECHO_C" >&6
34172 cat >conftest.$ac_ext <<_ACEOF
34175 cat confdefs.h >>conftest.$ac_ext
34176 cat >>conftest.$ac_ext <<_ACEOF
34177 /* end confdefs.h. */
34178 $ac_includes_default
34179 #include <signal.h>
34185 if ((sig_atomic_t *) 0)
34187 if (sizeof (sig_atomic_t))
34193 rm -f conftest.$ac_objext
34194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34195 (eval $ac_compile) 2>conftest.er1
34197 grep -v '^ *+' conftest.er1 >conftest.err
34199 cat conftest.err >&5
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); } &&
34202 { ac_try='test -z "$ac_c_werror_flag"
34203 || test ! -s conftest.err'
34204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34205 (eval $ac_try) 2>&5
34207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208 (exit $ac_status); }; } &&
34209 { ac_try='test -s conftest.$ac_objext'
34210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211 (eval $ac_try) 2>&5
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); }; }; then
34215 ac_cv_type_sig_atomic_t=yes
34217 echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.$ac_ext >&5
34220 ac_cv_type_sig_atomic_t=no
34222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34224 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34225 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34226 if test $ac_cv_type_sig_atomic_t = yes; then
34230 cat >>confdefs.h <<_ACEOF
34231 #define sig_atomic_t int
34237 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34238 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34239 if test "${ac_cv_type_uid_t+set}" = set; then
34240 echo $ECHO_N "(cached) $ECHO_C" >&6
34242 cat >conftest.$ac_ext <<_ACEOF
34245 cat confdefs.h >>conftest.$ac_ext
34246 cat >>conftest.$ac_ext <<_ACEOF
34247 /* end confdefs.h. */
34248 #include <sys/types.h>
34251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34252 $EGREP "uid_t" >/dev/null 2>&1; then
34253 ac_cv_type_uid_t=yes
34255 ac_cv_type_uid_t=no
34260 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34261 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34262 if test $ac_cv_type_uid_t = no; then
34264 cat >>confdefs.h <<\_ACEOF
34269 cat >>confdefs.h <<\_ACEOF
34276 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34277 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34278 if test "${ac_cv_header_time+set}" = set; then
34279 echo $ECHO_N "(cached) $ECHO_C" >&6
34281 cat >conftest.$ac_ext <<_ACEOF
34284 cat confdefs.h >>conftest.$ac_ext
34285 cat >>conftest.$ac_ext <<_ACEOF
34286 /* end confdefs.h. */
34287 #include <sys/types.h>
34288 #include <sys/time.h>
34294 if ((struct tm *) 0)
34300 rm -f conftest.$ac_objext
34301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34302 (eval $ac_compile) 2>conftest.er1
34304 grep -v '^ *+' conftest.er1 >conftest.err
34306 cat conftest.err >&5
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); } &&
34309 { ac_try='test -z "$ac_c_werror_flag"
34310 || test ! -s conftest.err'
34311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34312 (eval $ac_try) 2>&5
34314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315 (exit $ac_status); }; } &&
34316 { ac_try='test -s conftest.$ac_objext'
34317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34318 (eval $ac_try) 2>&5
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); }; }; then
34322 ac_cv_header_time=yes
34324 echo "$as_me: failed program was:" >&5
34325 sed 's/^/| /' conftest.$ac_ext >&5
34327 ac_cv_header_time=no
34329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34331 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34332 echo "${ECHO_T}$ac_cv_header_time" >&6
34333 if test $ac_cv_header_time = yes; then
34335 cat >>confdefs.h <<\_ACEOF
34336 #define TIME_WITH_SYS_TIME 1
34341 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34342 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34343 if test "${ac_cv_struct_tm+set}" = set; then
34344 echo $ECHO_N "(cached) $ECHO_C" >&6
34346 cat >conftest.$ac_ext <<_ACEOF
34349 cat confdefs.h >>conftest.$ac_ext
34350 cat >>conftest.$ac_ext <<_ACEOF
34351 /* end confdefs.h. */
34352 #include <sys/types.h>
34358 struct tm *tp; tp->tm_sec;
34363 rm -f conftest.$ac_objext
34364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34365 (eval $ac_compile) 2>conftest.er1
34367 grep -v '^ *+' conftest.er1 >conftest.err
34369 cat conftest.err >&5
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } &&
34372 { ac_try='test -z "$ac_c_werror_flag"
34373 || test ! -s conftest.err'
34374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375 (eval $ac_try) 2>&5
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); }; } &&
34379 { ac_try='test -s conftest.$ac_objext'
34380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34381 (eval $ac_try) 2>&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); }; }; then
34385 ac_cv_struct_tm=time.h
34387 echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34390 ac_cv_struct_tm=sys/time.h
34392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34394 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34395 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34396 if test $ac_cv_struct_tm = sys/time.h; then
34398 cat >>confdefs.h <<\_ACEOF
34399 #define TM_IN_SYS_TIME 1
34404 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34405 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34406 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34407 echo $ECHO_N "(cached) $ECHO_C" >&6
34409 cat >conftest.$ac_ext <<_ACEOF
34412 cat confdefs.h >>conftest.$ac_ext
34413 cat >>conftest.$ac_ext <<_ACEOF
34414 /* end confdefs.h. */
34415 $ac_includes_default
34419 static struct stat ac_aggr;
34420 if (ac_aggr.st_blksize)
34426 rm -f conftest.$ac_objext
34427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34428 (eval $ac_compile) 2>conftest.er1
34430 grep -v '^ *+' conftest.er1 >conftest.err
34432 cat conftest.err >&5
34433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34434 (exit $ac_status); } &&
34435 { ac_try='test -z "$ac_c_werror_flag"
34436 || test ! -s conftest.err'
34437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34438 (eval $ac_try) 2>&5
34440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34441 (exit $ac_status); }; } &&
34442 { ac_try='test -s conftest.$ac_objext'
34443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34444 (eval $ac_try) 2>&5
34446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447 (exit $ac_status); }; }; then
34448 ac_cv_member_struct_stat_st_blksize=yes
34450 echo "$as_me: failed program was:" >&5
34451 sed 's/^/| /' conftest.$ac_ext >&5
34453 cat >conftest.$ac_ext <<_ACEOF
34456 cat confdefs.h >>conftest.$ac_ext
34457 cat >>conftest.$ac_ext <<_ACEOF
34458 /* end confdefs.h. */
34459 $ac_includes_default
34463 static struct stat ac_aggr;
34464 if (sizeof ac_aggr.st_blksize)
34470 rm -f conftest.$ac_objext
34471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34472 (eval $ac_compile) 2>conftest.er1
34474 grep -v '^ *+' conftest.er1 >conftest.err
34476 cat conftest.err >&5
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } &&
34479 { ac_try='test -z "$ac_c_werror_flag"
34480 || test ! -s conftest.err'
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; } &&
34486 { ac_try='test -s conftest.$ac_objext'
34487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34488 (eval $ac_try) 2>&5
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; }; then
34492 ac_cv_member_struct_stat_st_blksize=yes
34494 echo "$as_me: failed program was:" >&5
34495 sed 's/^/| /' conftest.$ac_ext >&5
34497 ac_cv_member_struct_stat_st_blksize=no
34499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34503 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34504 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34505 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34507 cat >>confdefs.h <<_ACEOF
34508 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34514 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34515 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34516 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34517 echo $ECHO_N "(cached) $ECHO_C" >&6
34519 cat >conftest.$ac_ext <<_ACEOF
34522 cat confdefs.h >>conftest.$ac_ext
34523 cat >>conftest.$ac_ext <<_ACEOF
34524 /* end confdefs.h. */
34525 $ac_includes_default
34531 static struct passwd ac_aggr;
34532 if (ac_aggr.pw_gecos)
34538 rm -f conftest.$ac_objext
34539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34540 (eval $ac_compile) 2>conftest.er1
34542 grep -v '^ *+' conftest.er1 >conftest.err
34544 cat conftest.err >&5
34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546 (exit $ac_status); } &&
34547 { ac_try='test -z "$ac_c_werror_flag"
34548 || test ! -s conftest.err'
34549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34550 (eval $ac_try) 2>&5
34552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553 (exit $ac_status); }; } &&
34554 { ac_try='test -s conftest.$ac_objext'
34555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34556 (eval $ac_try) 2>&5
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); }; }; then
34560 ac_cv_member_struct_passwd_pw_gecos=yes
34562 echo "$as_me: failed program was:" >&5
34563 sed 's/^/| /' conftest.$ac_ext >&5
34565 cat >conftest.$ac_ext <<_ACEOF
34568 cat confdefs.h >>conftest.$ac_ext
34569 cat >>conftest.$ac_ext <<_ACEOF
34570 /* end confdefs.h. */
34571 $ac_includes_default
34577 static struct passwd ac_aggr;
34578 if (sizeof ac_aggr.pw_gecos)
34584 rm -f conftest.$ac_objext
34585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34586 (eval $ac_compile) 2>conftest.er1
34588 grep -v '^ *+' conftest.er1 >conftest.err
34590 cat conftest.err >&5
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); } &&
34593 { ac_try='test -z "$ac_c_werror_flag"
34594 || test ! -s conftest.err'
34595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34596 (eval $ac_try) 2>&5
34598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599 (exit $ac_status); }; } &&
34600 { ac_try='test -s conftest.$ac_objext'
34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602 (eval $ac_try) 2>&5
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; }; then
34606 ac_cv_member_struct_passwd_pw_gecos=yes
34608 echo "$as_me: failed program was:" >&5
34609 sed 's/^/| /' conftest.$ac_ext >&5
34611 ac_cv_member_struct_passwd_pw_gecos=no
34613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34617 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34618 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34619 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34621 cat >>confdefs.h <<_ACEOF
34622 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34628 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34629 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34630 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34631 echo $ECHO_N "(cached) $ECHO_C" >&6
34633 cat >conftest.$ac_ext <<_ACEOF
34636 cat confdefs.h >>conftest.$ac_ext
34637 cat >>conftest.$ac_ext <<_ACEOF
34638 /* end confdefs.h. */
34639 $ac_includes_default
34645 static struct passwd ac_aggr;
34646 if (ac_aggr.pw_passwd)
34652 rm -f conftest.$ac_objext
34653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34654 (eval $ac_compile) 2>conftest.er1
34656 grep -v '^ *+' conftest.er1 >conftest.err
34658 cat conftest.err >&5
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); } &&
34661 { ac_try='test -z "$ac_c_werror_flag"
34662 || test ! -s conftest.err'
34663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34664 (eval $ac_try) 2>&5
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); }; } &&
34668 { ac_try='test -s conftest.$ac_objext'
34669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34670 (eval $ac_try) 2>&5
34672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673 (exit $ac_status); }; }; then
34674 ac_cv_member_struct_passwd_pw_passwd=yes
34676 echo "$as_me: failed program was:" >&5
34677 sed 's/^/| /' conftest.$ac_ext >&5
34679 cat >conftest.$ac_ext <<_ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h. */
34685 $ac_includes_default
34691 static struct passwd ac_aggr;
34692 if (sizeof ac_aggr.pw_passwd)
34698 rm -f conftest.$ac_objext
34699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34700 (eval $ac_compile) 2>conftest.er1
34702 grep -v '^ *+' conftest.er1 >conftest.err
34704 cat conftest.err >&5
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); } &&
34707 { ac_try='test -z "$ac_c_werror_flag"
34708 || test ! -s conftest.err'
34709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34710 (eval $ac_try) 2>&5
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); }; } &&
34714 { ac_try='test -s conftest.$ac_objext'
34715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716 (eval $ac_try) 2>&5
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); }; }; then
34720 ac_cv_member_struct_passwd_pw_passwd=yes
34722 echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34725 ac_cv_member_struct_passwd_pw_passwd=no
34727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34731 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34732 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34733 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34735 cat >>confdefs.h <<_ACEOF
34736 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34743 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34744 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34745 if test "${ol_cv_c_upper_lower+set}" = set; then
34746 echo $ECHO_N "(cached) $ECHO_C" >&6
34749 if test "$cross_compiling" = yes; then
34750 ol_cv_c_upper_lower=safe
34752 cat >conftest.$ac_ext <<_ACEOF
34755 cat confdefs.h >>conftest.$ac_ext
34756 cat >>conftest.$ac_ext <<_ACEOF
34757 /* end confdefs.h. */
34762 if ('C' == toupper('C'))
34768 rm -f conftest$ac_exeext
34769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34770 (eval $ac_link) 2>&5
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34775 (eval $ac_try) 2>&5
34777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34778 (exit $ac_status); }; }; then
34779 ol_cv_c_upper_lower=no
34781 echo "$as_me: program exited with status $ac_status" >&5
34782 echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34785 ( exit $ac_status )
34786 ol_cv_c_upper_lower=yes
34788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34791 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34792 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34793 if test $ol_cv_c_upper_lower != no ; then
34795 cat >>confdefs.h <<\_ACEOF
34796 #define C_UPPER_LOWER 1
34801 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34802 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34803 if test "${ac_cv_c_const+set}" = set; then
34804 echo $ECHO_N "(cached) $ECHO_C" >&6
34806 cat >conftest.$ac_ext <<_ACEOF
34809 cat confdefs.h >>conftest.$ac_ext
34810 cat >>conftest.$ac_ext <<_ACEOF
34811 /* end confdefs.h. */
34816 /* FIXME: Include the comments suggested by Paul. */
34817 #ifndef __cplusplus
34818 /* Ultrix mips cc rejects this. */
34819 typedef int charset[2];
34821 /* SunOS 4.1.1 cc rejects this. */
34822 char const *const *ccp;
34824 /* NEC SVR4.0.2 mips cc rejects this. */
34825 struct point {int x, y;};
34826 static struct point const zero = {0,0};
34827 /* AIX XL C 1.02.0.0 rejects this.
34828 It does not let you subtract one const X* pointer from another in
34829 an arm of an if-expression whose if-part is not a constant
34831 const char *g = "string";
34832 ccp = &g + (g ? g-g : 0);
34833 /* HPUX 7.0 cc rejects these. */
34836 ccp = (char const *const *) p;
34837 { /* SCO 3.2v4 cc rejects this. */
34839 char const *s = 0 ? (char *) 0 : (char const *) 0;
34843 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34844 int x[] = {25, 17};
34845 const int *foo = &x[0];
34848 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34849 typedef const int *iptr;
34853 { /* AIX XL C 1.02.0.0 rejects this saying
34854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34855 struct s { int j; const int *ap[3]; };
34856 struct s *b; b->j = 5;
34858 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34859 const int foo = 10;
34867 rm -f conftest.$ac_objext
34868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34869 (eval $ac_compile) 2>conftest.er1
34871 grep -v '^ *+' conftest.er1 >conftest.err
34873 cat conftest.err >&5
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); } &&
34876 { ac_try='test -z "$ac_c_werror_flag"
34877 || test ! -s conftest.err'
34878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34879 (eval $ac_try) 2>&5
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); }; } &&
34883 { ac_try='test -s conftest.$ac_objext'
34884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34885 (eval $ac_try) 2>&5
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); }; }; then
34891 echo "$as_me: failed program was:" >&5
34892 sed 's/^/| /' conftest.$ac_ext >&5
34896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34898 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34899 echo "${ECHO_T}$ac_cv_c_const" >&6
34900 if test $ac_cv_c_const = no; then
34902 cat >>confdefs.h <<\_ACEOF
34908 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34909 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34910 if test "${ol_cv_c_volatile+set}" = set; then
34911 echo $ECHO_N "(cached) $ECHO_C" >&6
34913 cat >conftest.$ac_ext <<_ACEOF
34916 cat confdefs.h >>conftest.$ac_ext
34917 cat >>conftest.$ac_ext <<_ACEOF
34918 /* end confdefs.h. */
34923 volatile int a; int * volatile b = x ? &y : &z;
34924 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34930 rm -f conftest.$ac_objext
34931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34932 (eval $ac_compile) 2>conftest.er1
34934 grep -v '^ *+' conftest.er1 >conftest.err
34936 cat conftest.err >&5
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); } &&
34939 { ac_try='test -z "$ac_c_werror_flag"
34940 || test ! -s conftest.err'
34941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34942 (eval $ac_try) 2>&5
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); }; } &&
34946 { ac_try='test -s conftest.$ac_objext'
34947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948 (eval $ac_try) 2>&5
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); }; }; then
34952 ol_cv_c_volatile=yes
34954 echo "$as_me: failed program was:" >&5
34955 sed 's/^/| /' conftest.$ac_ext >&5
34957 ol_cv_c_volatile=no
34959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34961 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
34962 echo "${ECHO_T}$ol_cv_c_volatile" >&6
34963 if test $ol_cv_c_volatile = yes; then
34967 cat >>confdefs.h <<\_ACEOF
34974 if test $cross_compiling = yes ; then
34975 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
34976 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
34978 cat >>confdefs.h <<\_ACEOF
34979 #define CROSS_COMPILING 1
34983 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34984 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
34985 if test "${ac_cv_c_bigendian+set}" = set; then
34986 echo $ECHO_N "(cached) $ECHO_C" >&6
34988 # See if sys/param.h defines the BYTE_ORDER macro.
34989 cat >conftest.$ac_ext <<_ACEOF
34992 cat confdefs.h >>conftest.$ac_ext
34993 cat >>conftest.$ac_ext <<_ACEOF
34994 /* end confdefs.h. */
34995 #include <sys/types.h>
34996 #include <sys/param.h>
35001 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35002 bogus endian macros
35009 rm -f conftest.$ac_objext
35010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35011 (eval $ac_compile) 2>conftest.er1
35013 grep -v '^ *+' conftest.er1 >conftest.err
35015 cat conftest.err >&5
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); } &&
35018 { ac_try='test -z "$ac_c_werror_flag"
35019 || test ! -s conftest.err'
35020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35021 (eval $ac_try) 2>&5
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); }; } &&
35025 { ac_try='test -s conftest.$ac_objext'
35026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35027 (eval $ac_try) 2>&5
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); }; }; then
35031 # It does; now see whether it defined to BIG_ENDIAN or not.
35032 cat >conftest.$ac_ext <<_ACEOF
35035 cat confdefs.h >>conftest.$ac_ext
35036 cat >>conftest.$ac_ext <<_ACEOF
35037 /* end confdefs.h. */
35038 #include <sys/types.h>
35039 #include <sys/param.h>
35044 #if BYTE_ORDER != BIG_ENDIAN
35052 rm -f conftest.$ac_objext
35053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35054 (eval $ac_compile) 2>conftest.er1
35056 grep -v '^ *+' conftest.er1 >conftest.err
35058 cat conftest.err >&5
35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35060 (exit $ac_status); } &&
35061 { ac_try='test -z "$ac_c_werror_flag"
35062 || test ! -s conftest.err'
35063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35064 (eval $ac_try) 2>&5
35066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067 (exit $ac_status); }; } &&
35068 { ac_try='test -s conftest.$ac_objext'
35069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070 (eval $ac_try) 2>&5
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); }; }; then
35074 ac_cv_c_bigendian=yes
35076 echo "$as_me: failed program was:" >&5
35077 sed 's/^/| /' conftest.$ac_ext >&5
35079 ac_cv_c_bigendian=no
35081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35083 echo "$as_me: failed program was:" >&5
35084 sed 's/^/| /' conftest.$ac_ext >&5
35086 # It does not; compile a test program.
35087 if test "$cross_compiling" = yes; then
35088 # try to guess the endianness by grepping values into an object file
35089 ac_cv_c_bigendian=unknown
35090 cat >conftest.$ac_ext <<_ACEOF
35093 cat confdefs.h >>conftest.$ac_ext
35094 cat >>conftest.$ac_ext <<_ACEOF
35095 /* end confdefs.h. */
35096 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35097 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35098 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35099 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35100 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35101 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35105 _ascii (); _ebcdic ();
35110 rm -f conftest.$ac_objext
35111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35112 (eval $ac_compile) 2>conftest.er1
35114 grep -v '^ *+' conftest.er1 >conftest.err
35116 cat conftest.err >&5
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); } &&
35119 { ac_try='test -z "$ac_c_werror_flag"
35120 || test ! -s conftest.err'
35121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35122 (eval $ac_try) 2>&5
35124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125 (exit $ac_status); }; } &&
35126 { ac_try='test -s conftest.$ac_objext'
35127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35128 (eval $ac_try) 2>&5
35130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35131 (exit $ac_status); }; }; then
35132 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35133 ac_cv_c_bigendian=yes
35135 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35136 if test "$ac_cv_c_bigendian" = unknown; then
35137 ac_cv_c_bigendian=no
35139 # finding both strings is unlikely to happen, but who knows?
35140 ac_cv_c_bigendian=unknown
35144 echo "$as_me: failed program was:" >&5
35145 sed 's/^/| /' conftest.$ac_ext >&5
35148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35150 cat >conftest.$ac_ext <<_ACEOF
35153 cat confdefs.h >>conftest.$ac_ext
35154 cat >>conftest.$ac_ext <<_ACEOF
35155 /* end confdefs.h. */
35159 /* Are we little or big endian? From Harbison&Steele. */
35163 char c[sizeof (long)];
35166 exit (u.c[sizeof (long) - 1] == 1);
35169 rm -f conftest$ac_exeext
35170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35171 (eval $ac_link) 2>&5
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; }; then
35180 ac_cv_c_bigendian=no
35182 echo "$as_me: program exited with status $ac_status" >&5
35183 echo "$as_me: failed program was:" >&5
35184 sed 's/^/| /' conftest.$ac_ext >&5
35186 ( exit $ac_status )
35187 ac_cv_c_bigendian=yes
35189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35194 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35195 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35196 case $ac_cv_c_bigendian in
35199 cat >>confdefs.h <<\_ACEOF
35200 #define WORDS_BIGENDIAN 1
35206 { { echo "$as_me:$LINENO: error: unknown endianness
35207 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35208 echo "$as_me: error: unknown endianness
35209 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35210 { (exit 1); exit 1; }; } ;;
35215 echo "$as_me:$LINENO: checking for short" >&5
35216 echo $ECHO_N "checking for short... $ECHO_C" >&6
35217 if test "${ac_cv_type_short+set}" = set; then
35218 echo $ECHO_N "(cached) $ECHO_C" >&6
35220 cat >conftest.$ac_ext <<_ACEOF
35223 cat confdefs.h >>conftest.$ac_ext
35224 cat >>conftest.$ac_ext <<_ACEOF
35225 /* end confdefs.h. */
35226 $ac_includes_default
35232 if (sizeof (short))
35238 rm -f conftest.$ac_objext
35239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35240 (eval $ac_compile) 2>conftest.er1
35242 grep -v '^ *+' conftest.er1 >conftest.err
35244 cat conftest.err >&5
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); } &&
35247 { ac_try='test -z "$ac_c_werror_flag"
35248 || test ! -s conftest.err'
35249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35250 (eval $ac_try) 2>&5
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; } &&
35254 { ac_try='test -s conftest.$ac_objext'
35255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35256 (eval $ac_try) 2>&5
35258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259 (exit $ac_status); }; }; then
35260 ac_cv_type_short=yes
35262 echo "$as_me: failed program was:" >&5
35263 sed 's/^/| /' conftest.$ac_ext >&5
35265 ac_cv_type_short=no
35267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35269 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35270 echo "${ECHO_T}$ac_cv_type_short" >&6
35272 echo "$as_me:$LINENO: checking size of short" >&5
35273 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35274 if test "${ac_cv_sizeof_short+set}" = set; then
35275 echo $ECHO_N "(cached) $ECHO_C" >&6
35277 if test "$ac_cv_type_short" = yes; then
35278 # The cast to unsigned long works around a bug in the HP C Compiler
35279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35281 # This bug is HP SR number 8606223364.
35282 if test "$cross_compiling" = yes; then
35283 # Depending upon the size, compute the lo and hi bounds.
35284 cat >conftest.$ac_ext <<_ACEOF
35287 cat confdefs.h >>conftest.$ac_ext
35288 cat >>conftest.$ac_ext <<_ACEOF
35289 /* end confdefs.h. */
35290 $ac_includes_default
35294 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35301 rm -f conftest.$ac_objext
35302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35303 (eval $ac_compile) 2>conftest.er1
35305 grep -v '^ *+' conftest.er1 >conftest.err
35307 cat conftest.err >&5
35308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); } &&
35310 { ac_try='test -z "$ac_c_werror_flag"
35311 || test ! -s conftest.err'
35312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35313 (eval $ac_try) 2>&5
35315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316 (exit $ac_status); }; } &&
35317 { ac_try='test -s conftest.$ac_objext'
35318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35319 (eval $ac_try) 2>&5
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); }; }; then
35325 cat >conftest.$ac_ext <<_ACEOF
35328 cat confdefs.h >>conftest.$ac_ext
35329 cat >>conftest.$ac_ext <<_ACEOF
35330 /* end confdefs.h. */
35331 $ac_includes_default
35335 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35342 rm -f conftest.$ac_objext
35343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35344 (eval $ac_compile) 2>conftest.er1
35346 grep -v '^ *+' conftest.er1 >conftest.err
35348 cat conftest.err >&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); } &&
35351 { ac_try='test -z "$ac_c_werror_flag"
35352 || test ! -s conftest.err'
35353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35354 (eval $ac_try) 2>&5
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); }; } &&
35358 { ac_try='test -s conftest.$ac_objext'
35359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360 (eval $ac_try) 2>&5
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); }; }; then
35364 ac_hi=$ac_mid; break
35366 echo "$as_me: failed program was:" >&5
35367 sed 's/^/| /' conftest.$ac_ext >&5
35369 ac_lo=`expr $ac_mid + 1`
35370 if test $ac_lo -le $ac_mid; then
35374 ac_mid=`expr 2 '*' $ac_mid + 1`
35376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35379 echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35382 cat >conftest.$ac_ext <<_ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h. */
35388 $ac_includes_default
35392 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35399 rm -f conftest.$ac_objext
35400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35401 (eval $ac_compile) 2>conftest.er1
35403 grep -v '^ *+' conftest.er1 >conftest.err
35405 cat conftest.err >&5
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); } &&
35408 { ac_try='test -z "$ac_c_werror_flag"
35409 || test ! -s conftest.err'
35410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411 (eval $ac_try) 2>&5
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); }; } &&
35415 { ac_try='test -s conftest.$ac_objext'
35416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35417 (eval $ac_try) 2>&5
35419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35420 (exit $ac_status); }; }; then
35423 cat >conftest.$ac_ext <<_ACEOF
35426 cat confdefs.h >>conftest.$ac_ext
35427 cat >>conftest.$ac_ext <<_ACEOF
35428 /* end confdefs.h. */
35429 $ac_includes_default
35433 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35440 rm -f conftest.$ac_objext
35441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35442 (eval $ac_compile) 2>conftest.er1
35444 grep -v '^ *+' conftest.er1 >conftest.err
35446 cat conftest.err >&5
35447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); } &&
35449 { ac_try='test -z "$ac_c_werror_flag"
35450 || test ! -s conftest.err'
35451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35452 (eval $ac_try) 2>&5
35454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35455 (exit $ac_status); }; } &&
35456 { ac_try='test -s conftest.$ac_objext'
35457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35458 (eval $ac_try) 2>&5
35460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35461 (exit $ac_status); }; }; then
35462 ac_lo=$ac_mid; break
35464 echo "$as_me: failed program was:" >&5
35465 sed 's/^/| /' conftest.$ac_ext >&5
35467 ac_hi=`expr '(' $ac_mid ')' - 1`
35468 if test $ac_mid -le $ac_hi; then
35472 ac_mid=`expr 2 '*' $ac_mid`
35474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35477 echo "$as_me: failed program was:" >&5
35478 sed 's/^/| /' conftest.$ac_ext >&5
35482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35485 # Binary search between lo and hi bounds.
35486 while test "x$ac_lo" != "x$ac_hi"; do
35487 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35488 cat >conftest.$ac_ext <<_ACEOF
35491 cat confdefs.h >>conftest.$ac_ext
35492 cat >>conftest.$ac_ext <<_ACEOF
35493 /* end confdefs.h. */
35494 $ac_includes_default
35498 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35505 rm -f conftest.$ac_objext
35506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35507 (eval $ac_compile) 2>conftest.er1
35509 grep -v '^ *+' conftest.er1 >conftest.err
35511 cat conftest.err >&5
35512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513 (exit $ac_status); } &&
35514 { ac_try='test -z "$ac_c_werror_flag"
35515 || test ! -s conftest.err'
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; } &&
35521 { ac_try='test -s conftest.$ac_objext'
35522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523 (eval $ac_try) 2>&5
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); }; }; then
35529 echo "$as_me: failed program was:" >&5
35530 sed 's/^/| /' conftest.$ac_ext >&5
35532 ac_lo=`expr '(' $ac_mid ')' + 1`
35534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35537 ?*) ac_cv_sizeof_short=$ac_lo;;
35538 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35539 See \`config.log' for more details." >&5
35540 echo "$as_me: error: cannot compute sizeof (short), 77
35541 See \`config.log' for more details." >&2;}
35542 { (exit 1); exit 1; }; } ;;
35545 if test "$cross_compiling" = yes; then
35546 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35547 See \`config.log' for more details." >&5
35548 echo "$as_me: error: cannot run test program while cross compiling
35549 See \`config.log' for more details." >&2;}
35550 { (exit 1); exit 1; }; }
35552 cat >conftest.$ac_ext <<_ACEOF
35555 cat confdefs.h >>conftest.$ac_ext
35556 cat >>conftest.$ac_ext <<_ACEOF
35557 /* end confdefs.h. */
35558 $ac_includes_default
35559 long longval () { return (long) (sizeof (short)); }
35560 unsigned long ulongval () { return (long) (sizeof (short)); }
35562 #include <stdlib.h>
35567 FILE *f = fopen ("conftest.val", "w");
35570 if (((long) (sizeof (short))) < 0)
35572 long i = longval ();
35573 if (i != ((long) (sizeof (short))))
35575 fprintf (f, "%ld\n", i);
35579 unsigned long i = ulongval ();
35580 if (i != ((long) (sizeof (short))))
35582 fprintf (f, "%lu\n", i);
35584 exit (ferror (f) || fclose (f) != 0);
35590 rm -f conftest$ac_exeext
35591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35592 (eval $ac_link) 2>&5
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35597 (eval $ac_try) 2>&5
35599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600 (exit $ac_status); }; }; then
35601 ac_cv_sizeof_short=`cat conftest.val`
35603 echo "$as_me: program exited with status $ac_status" >&5
35604 echo "$as_me: failed program was:" >&5
35605 sed 's/^/| /' conftest.$ac_ext >&5
35607 ( exit $ac_status )
35608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35609 See \`config.log' for more details." >&5
35610 echo "$as_me: error: cannot compute sizeof (short), 77
35611 See \`config.log' for more details." >&2;}
35612 { (exit 1); exit 1; }; }
35614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35619 ac_cv_sizeof_short=0
35622 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35623 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35624 cat >>confdefs.h <<_ACEOF
35625 #define SIZEOF_SHORT $ac_cv_sizeof_short
35629 echo "$as_me:$LINENO: checking for int" >&5
35630 echo $ECHO_N "checking for int... $ECHO_C" >&6
35631 if test "${ac_cv_type_int+set}" = set; then
35632 echo $ECHO_N "(cached) $ECHO_C" >&6
35634 cat >conftest.$ac_ext <<_ACEOF
35637 cat confdefs.h >>conftest.$ac_ext
35638 cat >>conftest.$ac_ext <<_ACEOF
35639 /* end confdefs.h. */
35640 $ac_includes_default
35652 rm -f conftest.$ac_objext
35653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35654 (eval $ac_compile) 2>conftest.er1
35656 grep -v '^ *+' conftest.er1 >conftest.err
35658 cat conftest.err >&5
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); } &&
35661 { ac_try='test -z "$ac_c_werror_flag"
35662 || test ! -s conftest.err'
35663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35664 (eval $ac_try) 2>&5
35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); }; } &&
35668 { ac_try='test -s conftest.$ac_objext'
35669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35670 (eval $ac_try) 2>&5
35672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35673 (exit $ac_status); }; }; then
35676 echo "$as_me: failed program was:" >&5
35677 sed 's/^/| /' conftest.$ac_ext >&5
35681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35683 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35684 echo "${ECHO_T}$ac_cv_type_int" >&6
35686 echo "$as_me:$LINENO: checking size of int" >&5
35687 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35688 if test "${ac_cv_sizeof_int+set}" = set; then
35689 echo $ECHO_N "(cached) $ECHO_C" >&6
35691 if test "$ac_cv_type_int" = yes; then
35692 # The cast to unsigned long works around a bug in the HP C Compiler
35693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35695 # This bug is HP SR number 8606223364.
35696 if test "$cross_compiling" = yes; then
35697 # Depending upon the size, compute the lo and hi bounds.
35698 cat >conftest.$ac_ext <<_ACEOF
35701 cat confdefs.h >>conftest.$ac_ext
35702 cat >>conftest.$ac_ext <<_ACEOF
35703 /* end confdefs.h. */
35704 $ac_includes_default
35708 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35715 rm -f conftest.$ac_objext
35716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35717 (eval $ac_compile) 2>conftest.er1
35719 grep -v '^ *+' conftest.er1 >conftest.err
35721 cat conftest.err >&5
35722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35723 (exit $ac_status); } &&
35724 { ac_try='test -z "$ac_c_werror_flag"
35725 || test ! -s conftest.err'
35726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35727 (eval $ac_try) 2>&5
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); }; } &&
35731 { ac_try='test -s conftest.$ac_objext'
35732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35733 (eval $ac_try) 2>&5
35735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35736 (exit $ac_status); }; }; then
35739 cat >conftest.$ac_ext <<_ACEOF
35742 cat confdefs.h >>conftest.$ac_ext
35743 cat >>conftest.$ac_ext <<_ACEOF
35744 /* end confdefs.h. */
35745 $ac_includes_default
35749 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35756 rm -f conftest.$ac_objext
35757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35758 (eval $ac_compile) 2>conftest.er1
35760 grep -v '^ *+' conftest.er1 >conftest.err
35762 cat conftest.err >&5
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); } &&
35765 { ac_try='test -z "$ac_c_werror_flag"
35766 || test ! -s conftest.err'
35767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768 (eval $ac_try) 2>&5
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); }; } &&
35772 { ac_try='test -s conftest.$ac_objext'
35773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774 (eval $ac_try) 2>&5
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 (exit $ac_status); }; }; then
35778 ac_hi=$ac_mid; break
35780 echo "$as_me: failed program was:" >&5
35781 sed 's/^/| /' conftest.$ac_ext >&5
35783 ac_lo=`expr $ac_mid + 1`
35784 if test $ac_lo -le $ac_mid; then
35788 ac_mid=`expr 2 '*' $ac_mid + 1`
35790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35793 echo "$as_me: failed program was:" >&5
35794 sed 's/^/| /' conftest.$ac_ext >&5
35796 cat >conftest.$ac_ext <<_ACEOF
35799 cat confdefs.h >>conftest.$ac_ext
35800 cat >>conftest.$ac_ext <<_ACEOF
35801 /* end confdefs.h. */
35802 $ac_includes_default
35806 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35813 rm -f conftest.$ac_objext
35814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35815 (eval $ac_compile) 2>conftest.er1
35817 grep -v '^ *+' conftest.er1 >conftest.err
35819 cat conftest.err >&5
35820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821 (exit $ac_status); } &&
35822 { ac_try='test -z "$ac_c_werror_flag"
35823 || test ! -s conftest.err'
35824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35825 (eval $ac_try) 2>&5
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); }; } &&
35829 { ac_try='test -s conftest.$ac_objext'
35830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35831 (eval $ac_try) 2>&5
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); }; }; then
35837 cat >conftest.$ac_ext <<_ACEOF
35840 cat confdefs.h >>conftest.$ac_ext
35841 cat >>conftest.$ac_ext <<_ACEOF
35842 /* end confdefs.h. */
35843 $ac_includes_default
35847 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35854 rm -f conftest.$ac_objext
35855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35856 (eval $ac_compile) 2>conftest.er1
35858 grep -v '^ *+' conftest.er1 >conftest.err
35860 cat conftest.err >&5
35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862 (exit $ac_status); } &&
35863 { ac_try='test -z "$ac_c_werror_flag"
35864 || test ! -s conftest.err'
35865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35866 (eval $ac_try) 2>&5
35868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869 (exit $ac_status); }; } &&
35870 { ac_try='test -s conftest.$ac_objext'
35871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35872 (eval $ac_try) 2>&5
35874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875 (exit $ac_status); }; }; then
35876 ac_lo=$ac_mid; break
35878 echo "$as_me: failed program was:" >&5
35879 sed 's/^/| /' conftest.$ac_ext >&5
35881 ac_hi=`expr '(' $ac_mid ')' - 1`
35882 if test $ac_mid -le $ac_hi; then
35886 ac_mid=`expr 2 '*' $ac_mid`
35888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35891 echo "$as_me: failed program was:" >&5
35892 sed 's/^/| /' conftest.$ac_ext >&5
35896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35899 # Binary search between lo and hi bounds.
35900 while test "x$ac_lo" != "x$ac_hi"; do
35901 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35902 cat >conftest.$ac_ext <<_ACEOF
35905 cat confdefs.h >>conftest.$ac_ext
35906 cat >>conftest.$ac_ext <<_ACEOF
35907 /* end confdefs.h. */
35908 $ac_includes_default
35912 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35919 rm -f conftest.$ac_objext
35920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35921 (eval $ac_compile) 2>conftest.er1
35923 grep -v '^ *+' conftest.er1 >conftest.err
35925 cat conftest.err >&5
35926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927 (exit $ac_status); } &&
35928 { ac_try='test -z "$ac_c_werror_flag"
35929 || test ! -s conftest.err'
35930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35931 (eval $ac_try) 2>&5
35933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35934 (exit $ac_status); }; } &&
35935 { ac_try='test -s conftest.$ac_objext'
35936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35937 (eval $ac_try) 2>&5
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); }; }; then
35943 echo "$as_me: failed program was:" >&5
35944 sed 's/^/| /' conftest.$ac_ext >&5
35946 ac_lo=`expr '(' $ac_mid ')' + 1`
35948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35951 ?*) ac_cv_sizeof_int=$ac_lo;;
35952 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35953 See \`config.log' for more details." >&5
35954 echo "$as_me: error: cannot compute sizeof (int), 77
35955 See \`config.log' for more details." >&2;}
35956 { (exit 1); exit 1; }; } ;;
35959 if test "$cross_compiling" = yes; then
35960 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35961 See \`config.log' for more details." >&5
35962 echo "$as_me: error: cannot run test program while cross compiling
35963 See \`config.log' for more details." >&2;}
35964 { (exit 1); exit 1; }; }
35966 cat >conftest.$ac_ext <<_ACEOF
35969 cat confdefs.h >>conftest.$ac_ext
35970 cat >>conftest.$ac_ext <<_ACEOF
35971 /* end confdefs.h. */
35972 $ac_includes_default
35973 long longval () { return (long) (sizeof (int)); }
35974 unsigned long ulongval () { return (long) (sizeof (int)); }
35976 #include <stdlib.h>
35981 FILE *f = fopen ("conftest.val", "w");
35984 if (((long) (sizeof (int))) < 0)
35986 long i = longval ();
35987 if (i != ((long) (sizeof (int))))
35989 fprintf (f, "%ld\n", i);
35993 unsigned long i = ulongval ();
35994 if (i != ((long) (sizeof (int))))
35996 fprintf (f, "%lu\n", i);
35998 exit (ferror (f) || fclose (f) != 0);
36004 rm -f conftest$ac_exeext
36005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36006 (eval $ac_link) 2>&5
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36011 (eval $ac_try) 2>&5
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); }; }; then
36015 ac_cv_sizeof_int=`cat conftest.val`
36017 echo "$as_me: program exited with status $ac_status" >&5
36018 echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36021 ( exit $ac_status )
36022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36023 See \`config.log' for more details." >&5
36024 echo "$as_me: error: cannot compute sizeof (int), 77
36025 See \`config.log' for more details." >&2;}
36026 { (exit 1); exit 1; }; }
36028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36036 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36037 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36038 cat >>confdefs.h <<_ACEOF
36039 #define SIZEOF_INT $ac_cv_sizeof_int
36043 echo "$as_me:$LINENO: checking for long" >&5
36044 echo $ECHO_N "checking for long... $ECHO_C" >&6
36045 if test "${ac_cv_type_long+set}" = set; then
36046 echo $ECHO_N "(cached) $ECHO_C" >&6
36048 cat >conftest.$ac_ext <<_ACEOF
36051 cat confdefs.h >>conftest.$ac_ext
36052 cat >>conftest.$ac_ext <<_ACEOF
36053 /* end confdefs.h. */
36054 $ac_includes_default
36066 rm -f conftest.$ac_objext
36067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36068 (eval $ac_compile) 2>conftest.er1
36070 grep -v '^ *+' conftest.er1 >conftest.err
36072 cat conftest.err >&5
36073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36074 (exit $ac_status); } &&
36075 { ac_try='test -z "$ac_c_werror_flag"
36076 || test ! -s conftest.err'
36077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36078 (eval $ac_try) 2>&5
36080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36081 (exit $ac_status); }; } &&
36082 { ac_try='test -s conftest.$ac_objext'
36083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36084 (eval $ac_try) 2>&5
36086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36087 (exit $ac_status); }; }; then
36088 ac_cv_type_long=yes
36090 echo "$as_me: failed program was:" >&5
36091 sed 's/^/| /' conftest.$ac_ext >&5
36095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36097 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36098 echo "${ECHO_T}$ac_cv_type_long" >&6
36100 echo "$as_me:$LINENO: checking size of long" >&5
36101 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36102 if test "${ac_cv_sizeof_long+set}" = set; then
36103 echo $ECHO_N "(cached) $ECHO_C" >&6
36105 if test "$ac_cv_type_long" = yes; then
36106 # The cast to unsigned long works around a bug in the HP C Compiler
36107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36109 # This bug is HP SR number 8606223364.
36110 if test "$cross_compiling" = yes; then
36111 # Depending upon the size, compute the lo and hi bounds.
36112 cat >conftest.$ac_ext <<_ACEOF
36115 cat confdefs.h >>conftest.$ac_ext
36116 cat >>conftest.$ac_ext <<_ACEOF
36117 /* end confdefs.h. */
36118 $ac_includes_default
36122 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36129 rm -f conftest.$ac_objext
36130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36131 (eval $ac_compile) 2>conftest.er1
36133 grep -v '^ *+' conftest.er1 >conftest.err
36135 cat conftest.err >&5
36136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137 (exit $ac_status); } &&
36138 { ac_try='test -z "$ac_c_werror_flag"
36139 || test ! -s conftest.err'
36140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36141 (eval $ac_try) 2>&5
36143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144 (exit $ac_status); }; } &&
36145 { ac_try='test -s conftest.$ac_objext'
36146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36147 (eval $ac_try) 2>&5
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); }; }; then
36153 cat >conftest.$ac_ext <<_ACEOF
36156 cat confdefs.h >>conftest.$ac_ext
36157 cat >>conftest.$ac_ext <<_ACEOF
36158 /* end confdefs.h. */
36159 $ac_includes_default
36163 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36170 rm -f conftest.$ac_objext
36171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36172 (eval $ac_compile) 2>conftest.er1
36174 grep -v '^ *+' conftest.er1 >conftest.err
36176 cat conftest.err >&5
36177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178 (exit $ac_status); } &&
36179 { ac_try='test -z "$ac_c_werror_flag"
36180 || test ! -s conftest.err'
36181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36182 (eval $ac_try) 2>&5
36184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185 (exit $ac_status); }; } &&
36186 { ac_try='test -s conftest.$ac_objext'
36187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188 (eval $ac_try) 2>&5
36190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 (exit $ac_status); }; }; then
36192 ac_hi=$ac_mid; break
36194 echo "$as_me: failed program was:" >&5
36195 sed 's/^/| /' conftest.$ac_ext >&5
36197 ac_lo=`expr $ac_mid + 1`
36198 if test $ac_lo -le $ac_mid; then
36202 ac_mid=`expr 2 '*' $ac_mid + 1`
36204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36207 echo "$as_me: failed program was:" >&5
36208 sed 's/^/| /' conftest.$ac_ext >&5
36210 cat >conftest.$ac_ext <<_ACEOF
36213 cat confdefs.h >>conftest.$ac_ext
36214 cat >>conftest.$ac_ext <<_ACEOF
36215 /* end confdefs.h. */
36216 $ac_includes_default
36220 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36227 rm -f conftest.$ac_objext
36228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36229 (eval $ac_compile) 2>conftest.er1
36231 grep -v '^ *+' conftest.er1 >conftest.err
36233 cat conftest.err >&5
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); } &&
36236 { ac_try='test -z "$ac_c_werror_flag"
36237 || test ! -s conftest.err'
36238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36239 (eval $ac_try) 2>&5
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); }; } &&
36243 { ac_try='test -s conftest.$ac_objext'
36244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36245 (eval $ac_try) 2>&5
36247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248 (exit $ac_status); }; }; then
36251 cat >conftest.$ac_ext <<_ACEOF
36254 cat confdefs.h >>conftest.$ac_ext
36255 cat >>conftest.$ac_ext <<_ACEOF
36256 /* end confdefs.h. */
36257 $ac_includes_default
36261 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36268 rm -f conftest.$ac_objext
36269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36270 (eval $ac_compile) 2>conftest.er1
36272 grep -v '^ *+' conftest.er1 >conftest.err
36274 cat conftest.err >&5
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); } &&
36277 { ac_try='test -z "$ac_c_werror_flag"
36278 || test ! -s conftest.err'
36279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36280 (eval $ac_try) 2>&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); }; } &&
36284 { ac_try='test -s conftest.$ac_objext'
36285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36286 (eval $ac_try) 2>&5
36288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289 (exit $ac_status); }; }; then
36290 ac_lo=$ac_mid; break
36292 echo "$as_me: failed program was:" >&5
36293 sed 's/^/| /' conftest.$ac_ext >&5
36295 ac_hi=`expr '(' $ac_mid ')' - 1`
36296 if test $ac_mid -le $ac_hi; then
36300 ac_mid=`expr 2 '*' $ac_mid`
36302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36305 echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36313 # Binary search between lo and hi bounds.
36314 while test "x$ac_lo" != "x$ac_hi"; do
36315 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36316 cat >conftest.$ac_ext <<_ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h. */
36322 $ac_includes_default
36326 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36333 rm -f conftest.$ac_objext
36334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36335 (eval $ac_compile) 2>conftest.er1
36337 grep -v '^ *+' conftest.er1 >conftest.err
36339 cat conftest.err >&5
36340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341 (exit $ac_status); } &&
36342 { ac_try='test -z "$ac_c_werror_flag"
36343 || test ! -s conftest.err'
36344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345 (eval $ac_try) 2>&5
36347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348 (exit $ac_status); }; } &&
36349 { ac_try='test -s conftest.$ac_objext'
36350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351 (eval $ac_try) 2>&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); }; }; then
36357 echo "$as_me: failed program was:" >&5
36358 sed 's/^/| /' conftest.$ac_ext >&5
36360 ac_lo=`expr '(' $ac_mid ')' + 1`
36362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36365 ?*) ac_cv_sizeof_long=$ac_lo;;
36366 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36367 See \`config.log' for more details." >&5
36368 echo "$as_me: error: cannot compute sizeof (long), 77
36369 See \`config.log' for more details." >&2;}
36370 { (exit 1); exit 1; }; } ;;
36373 if test "$cross_compiling" = yes; then
36374 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36375 See \`config.log' for more details." >&5
36376 echo "$as_me: error: cannot run test program while cross compiling
36377 See \`config.log' for more details." >&2;}
36378 { (exit 1); exit 1; }; }
36380 cat >conftest.$ac_ext <<_ACEOF
36383 cat confdefs.h >>conftest.$ac_ext
36384 cat >>conftest.$ac_ext <<_ACEOF
36385 /* end confdefs.h. */
36386 $ac_includes_default
36387 long longval () { return (long) (sizeof (long)); }
36388 unsigned long ulongval () { return (long) (sizeof (long)); }
36390 #include <stdlib.h>
36395 FILE *f = fopen ("conftest.val", "w");
36398 if (((long) (sizeof (long))) < 0)
36400 long i = longval ();
36401 if (i != ((long) (sizeof (long))))
36403 fprintf (f, "%ld\n", i);
36407 unsigned long i = ulongval ();
36408 if (i != ((long) (sizeof (long))))
36410 fprintf (f, "%lu\n", i);
36412 exit (ferror (f) || fclose (f) != 0);
36418 rm -f conftest$ac_exeext
36419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36420 (eval $ac_link) 2>&5
36422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425 (eval $ac_try) 2>&5
36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); }; }; then
36429 ac_cv_sizeof_long=`cat conftest.val`
36431 echo "$as_me: program exited with status $ac_status" >&5
36432 echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36435 ( exit $ac_status )
36436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36437 See \`config.log' for more details." >&5
36438 echo "$as_me: error: cannot compute sizeof (long), 77
36439 See \`config.log' for more details." >&2;}
36440 { (exit 1); exit 1; }; }
36442 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36447 ac_cv_sizeof_long=0
36450 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36451 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36452 cat >>confdefs.h <<_ACEOF
36453 #define SIZEOF_LONG $ac_cv_sizeof_long
36457 echo "$as_me:$LINENO: checking for long long" >&5
36458 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36459 if test "${ac_cv_type_long_long+set}" = set; then
36460 echo $ECHO_N "(cached) $ECHO_C" >&6
36462 cat >conftest.$ac_ext <<_ACEOF
36465 cat confdefs.h >>conftest.$ac_ext
36466 cat >>conftest.$ac_ext <<_ACEOF
36467 /* end confdefs.h. */
36468 $ac_includes_default
36472 if ((long long *) 0)
36474 if (sizeof (long long))
36480 rm -f conftest.$ac_objext
36481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36482 (eval $ac_compile) 2>conftest.er1
36484 grep -v '^ *+' conftest.er1 >conftest.err
36486 cat conftest.err >&5
36487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488 (exit $ac_status); } &&
36489 { ac_try='test -z "$ac_c_werror_flag"
36490 || test ! -s conftest.err'
36491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36492 (eval $ac_try) 2>&5
36494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36495 (exit $ac_status); }; } &&
36496 { ac_try='test -s conftest.$ac_objext'
36497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36498 (eval $ac_try) 2>&5
36500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501 (exit $ac_status); }; }; then
36502 ac_cv_type_long_long=yes
36504 echo "$as_me: failed program was:" >&5
36505 sed 's/^/| /' conftest.$ac_ext >&5
36507 ac_cv_type_long_long=no
36509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36511 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36512 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36514 echo "$as_me:$LINENO: checking size of long long" >&5
36515 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36516 if test "${ac_cv_sizeof_long_long+set}" = set; then
36517 echo $ECHO_N "(cached) $ECHO_C" >&6
36519 if test "$ac_cv_type_long_long" = yes; then
36520 # The cast to unsigned long works around a bug in the HP C Compiler
36521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36523 # This bug is HP SR number 8606223364.
36524 if test "$cross_compiling" = yes; then
36525 # Depending upon the size, compute the lo and hi bounds.
36526 cat >conftest.$ac_ext <<_ACEOF
36529 cat confdefs.h >>conftest.$ac_ext
36530 cat >>conftest.$ac_ext <<_ACEOF
36531 /* end confdefs.h. */
36532 $ac_includes_default
36536 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36543 rm -f conftest.$ac_objext
36544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36545 (eval $ac_compile) 2>conftest.er1
36547 grep -v '^ *+' conftest.er1 >conftest.err
36549 cat conftest.err >&5
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); } &&
36552 { ac_try='test -z "$ac_c_werror_flag"
36553 || test ! -s conftest.err'
36554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36555 (eval $ac_try) 2>&5
36557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36558 (exit $ac_status); }; } &&
36559 { ac_try='test -s conftest.$ac_objext'
36560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36561 (eval $ac_try) 2>&5
36563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564 (exit $ac_status); }; }; then
36567 cat >conftest.$ac_ext <<_ACEOF
36570 cat confdefs.h >>conftest.$ac_ext
36571 cat >>conftest.$ac_ext <<_ACEOF
36572 /* end confdefs.h. */
36573 $ac_includes_default
36577 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36584 rm -f conftest.$ac_objext
36585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36586 (eval $ac_compile) 2>conftest.er1
36588 grep -v '^ *+' conftest.er1 >conftest.err
36590 cat conftest.err >&5
36591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36592 (exit $ac_status); } &&
36593 { ac_try='test -z "$ac_c_werror_flag"
36594 || test ! -s conftest.err'
36595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36596 (eval $ac_try) 2>&5
36598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36599 (exit $ac_status); }; } &&
36600 { ac_try='test -s conftest.$ac_objext'
36601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602 (eval $ac_try) 2>&5
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); }; }; then
36606 ac_hi=$ac_mid; break
36608 echo "$as_me: failed program was:" >&5
36609 sed 's/^/| /' conftest.$ac_ext >&5
36611 ac_lo=`expr $ac_mid + 1`
36612 if test $ac_lo -le $ac_mid; then
36616 ac_mid=`expr 2 '*' $ac_mid + 1`
36618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36621 echo "$as_me: failed program was:" >&5
36622 sed 's/^/| /' conftest.$ac_ext >&5
36624 cat >conftest.$ac_ext <<_ACEOF
36627 cat confdefs.h >>conftest.$ac_ext
36628 cat >>conftest.$ac_ext <<_ACEOF
36629 /* end confdefs.h. */
36630 $ac_includes_default
36634 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36641 rm -f conftest.$ac_objext
36642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36643 (eval $ac_compile) 2>conftest.er1
36645 grep -v '^ *+' conftest.er1 >conftest.err
36647 cat conftest.err >&5
36648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36649 (exit $ac_status); } &&
36650 { ac_try='test -z "$ac_c_werror_flag"
36651 || test ! -s conftest.err'
36652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36653 (eval $ac_try) 2>&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); }; } &&
36657 { ac_try='test -s conftest.$ac_objext'
36658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659 (eval $ac_try) 2>&5
36661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); }; }; then
36665 cat >conftest.$ac_ext <<_ACEOF
36668 cat confdefs.h >>conftest.$ac_ext
36669 cat >>conftest.$ac_ext <<_ACEOF
36670 /* end confdefs.h. */
36671 $ac_includes_default
36675 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36682 rm -f conftest.$ac_objext
36683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36684 (eval $ac_compile) 2>conftest.er1
36686 grep -v '^ *+' conftest.er1 >conftest.err
36688 cat conftest.err >&5
36689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690 (exit $ac_status); } &&
36691 { ac_try='test -z "$ac_c_werror_flag"
36692 || test ! -s conftest.err'
36693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36694 (eval $ac_try) 2>&5
36696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697 (exit $ac_status); }; } &&
36698 { ac_try='test -s conftest.$ac_objext'
36699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36700 (eval $ac_try) 2>&5
36702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703 (exit $ac_status); }; }; then
36704 ac_lo=$ac_mid; break
36706 echo "$as_me: failed program was:" >&5
36707 sed 's/^/| /' conftest.$ac_ext >&5
36709 ac_hi=`expr '(' $ac_mid ')' - 1`
36710 if test $ac_mid -le $ac_hi; then
36714 ac_mid=`expr 2 '*' $ac_mid`
36716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36719 echo "$as_me: failed program was:" >&5
36720 sed 's/^/| /' conftest.$ac_ext >&5
36724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36727 # Binary search between lo and hi bounds.
36728 while test "x$ac_lo" != "x$ac_hi"; do
36729 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36730 cat >conftest.$ac_ext <<_ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h. */
36736 $ac_includes_default
36740 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36747 rm -f conftest.$ac_objext
36748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749 (eval $ac_compile) 2>conftest.er1
36751 grep -v '^ *+' conftest.er1 >conftest.err
36753 cat conftest.err >&5
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); } &&
36756 { ac_try='test -z "$ac_c_werror_flag"
36757 || test ! -s conftest.err'
36758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36759 (eval $ac_try) 2>&5
36761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762 (exit $ac_status); }; } &&
36763 { ac_try='test -s conftest.$ac_objext'
36764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765 (eval $ac_try) 2>&5
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); }; }; then
36771 echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36774 ac_lo=`expr '(' $ac_mid ')' + 1`
36776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36779 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36781 See \`config.log' for more details." >&5
36782 echo "$as_me: error: cannot compute sizeof (long long), 77
36783 See \`config.log' for more details." >&2;}
36784 { (exit 1); exit 1; }; } ;;
36787 if test "$cross_compiling" = yes; then
36788 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36789 See \`config.log' for more details." >&5
36790 echo "$as_me: error: cannot run test program while cross compiling
36791 See \`config.log' for more details." >&2;}
36792 { (exit 1); exit 1; }; }
36794 cat >conftest.$ac_ext <<_ACEOF
36797 cat confdefs.h >>conftest.$ac_ext
36798 cat >>conftest.$ac_ext <<_ACEOF
36799 /* end confdefs.h. */
36800 $ac_includes_default
36801 long longval () { return (long) (sizeof (long long)); }
36802 unsigned long ulongval () { return (long) (sizeof (long long)); }
36804 #include <stdlib.h>
36809 FILE *f = fopen ("conftest.val", "w");
36812 if (((long) (sizeof (long long))) < 0)
36814 long i = longval ();
36815 if (i != ((long) (sizeof (long long))))
36817 fprintf (f, "%ld\n", i);
36821 unsigned long i = ulongval ();
36822 if (i != ((long) (sizeof (long long))))
36824 fprintf (f, "%lu\n", i);
36826 exit (ferror (f) || fclose (f) != 0);
36832 rm -f conftest$ac_exeext
36833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36834 (eval $ac_link) 2>&5
36836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36839 (eval $ac_try) 2>&5
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); }; }; then
36843 ac_cv_sizeof_long_long=`cat conftest.val`
36845 echo "$as_me: program exited with status $ac_status" >&5
36846 echo "$as_me: failed program was:" >&5
36847 sed 's/^/| /' conftest.$ac_ext >&5
36849 ( exit $ac_status )
36850 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36851 See \`config.log' for more details." >&5
36852 echo "$as_me: error: cannot compute sizeof (long long), 77
36853 See \`config.log' for more details." >&2;}
36854 { (exit 1); exit 1; }; }
36856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36861 ac_cv_sizeof_long_long=0
36864 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36865 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36866 cat >>confdefs.h <<_ACEOF
36867 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36871 echo "$as_me:$LINENO: checking for wchar_t" >&5
36872 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36873 if test "${ac_cv_type_wchar_t+set}" = set; then
36874 echo $ECHO_N "(cached) $ECHO_C" >&6
36876 cat >conftest.$ac_ext <<_ACEOF
36879 cat confdefs.h >>conftest.$ac_ext
36880 cat >>conftest.$ac_ext <<_ACEOF
36881 /* end confdefs.h. */
36882 $ac_includes_default
36888 if (sizeof (wchar_t))
36894 rm -f conftest.$ac_objext
36895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36896 (eval $ac_compile) 2>conftest.er1
36898 grep -v '^ *+' conftest.er1 >conftest.err
36900 cat conftest.err >&5
36901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36902 (exit $ac_status); } &&
36903 { ac_try='test -z "$ac_c_werror_flag"
36904 || test ! -s conftest.err'
36905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36906 (eval $ac_try) 2>&5
36908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36909 (exit $ac_status); }; } &&
36910 { ac_try='test -s conftest.$ac_objext'
36911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36912 (eval $ac_try) 2>&5
36914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915 (exit $ac_status); }; }; then
36916 ac_cv_type_wchar_t=yes
36918 echo "$as_me: failed program was:" >&5
36919 sed 's/^/| /' conftest.$ac_ext >&5
36921 ac_cv_type_wchar_t=no
36923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36925 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36926 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36928 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36929 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36930 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36931 echo $ECHO_N "(cached) $ECHO_C" >&6
36933 if test "$ac_cv_type_wchar_t" = yes; then
36934 # The cast to unsigned long works around a bug in the HP C Compiler
36935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36937 # This bug is HP SR number 8606223364.
36938 if test "$cross_compiling" = yes; then
36939 # Depending upon the size, compute the lo and hi bounds.
36940 cat >conftest.$ac_ext <<_ACEOF
36943 cat confdefs.h >>conftest.$ac_ext
36944 cat >>conftest.$ac_ext <<_ACEOF
36945 /* end confdefs.h. */
36946 $ac_includes_default
36950 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
36957 rm -f conftest.$ac_objext
36958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36959 (eval $ac_compile) 2>conftest.er1
36961 grep -v '^ *+' conftest.er1 >conftest.err
36963 cat conftest.err >&5
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); } &&
36966 { ac_try='test -z "$ac_c_werror_flag"
36967 || test ! -s conftest.err'
36968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36969 (eval $ac_try) 2>&5
36971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972 (exit $ac_status); }; } &&
36973 { ac_try='test -s conftest.$ac_objext'
36974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36975 (eval $ac_try) 2>&5
36977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978 (exit $ac_status); }; }; then
36981 cat >conftest.$ac_ext <<_ACEOF
36984 cat confdefs.h >>conftest.$ac_ext
36985 cat >>conftest.$ac_ext <<_ACEOF
36986 /* end confdefs.h. */
36987 $ac_includes_default
36991 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36998 rm -f conftest.$ac_objext
36999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37000 (eval $ac_compile) 2>conftest.er1
37002 grep -v '^ *+' conftest.er1 >conftest.err
37004 cat conftest.err >&5
37005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006 (exit $ac_status); } &&
37007 { ac_try='test -z "$ac_c_werror_flag"
37008 || test ! -s conftest.err'
37009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37010 (eval $ac_try) 2>&5
37012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013 (exit $ac_status); }; } &&
37014 { ac_try='test -s conftest.$ac_objext'
37015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37016 (eval $ac_try) 2>&5
37018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019 (exit $ac_status); }; }; then
37020 ac_hi=$ac_mid; break
37022 echo "$as_me: failed program was:" >&5
37023 sed 's/^/| /' conftest.$ac_ext >&5
37025 ac_lo=`expr $ac_mid + 1`
37026 if test $ac_lo -le $ac_mid; then
37030 ac_mid=`expr 2 '*' $ac_mid + 1`
37032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37035 echo "$as_me: failed program was:" >&5
37036 sed 's/^/| /' conftest.$ac_ext >&5
37038 cat >conftest.$ac_ext <<_ACEOF
37041 cat confdefs.h >>conftest.$ac_ext
37042 cat >>conftest.$ac_ext <<_ACEOF
37043 /* end confdefs.h. */
37044 $ac_includes_default
37048 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37055 rm -f conftest.$ac_objext
37056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37057 (eval $ac_compile) 2>conftest.er1
37059 grep -v '^ *+' conftest.er1 >conftest.err
37061 cat conftest.err >&5
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); } &&
37064 { ac_try='test -z "$ac_c_werror_flag"
37065 || test ! -s conftest.err'
37066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37067 (eval $ac_try) 2>&5
37069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37070 (exit $ac_status); }; } &&
37071 { ac_try='test -s conftest.$ac_objext'
37072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37073 (eval $ac_try) 2>&5
37075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37076 (exit $ac_status); }; }; then
37079 cat >conftest.$ac_ext <<_ACEOF
37082 cat confdefs.h >>conftest.$ac_ext
37083 cat >>conftest.$ac_ext <<_ACEOF
37084 /* end confdefs.h. */
37085 $ac_includes_default
37089 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37096 rm -f conftest.$ac_objext
37097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37098 (eval $ac_compile) 2>conftest.er1
37100 grep -v '^ *+' conftest.er1 >conftest.err
37102 cat conftest.err >&5
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); } &&
37105 { ac_try='test -z "$ac_c_werror_flag"
37106 || test ! -s conftest.err'
37107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37108 (eval $ac_try) 2>&5
37110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37111 (exit $ac_status); }; } &&
37112 { ac_try='test -s conftest.$ac_objext'
37113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37114 (eval $ac_try) 2>&5
37116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117 (exit $ac_status); }; }; then
37118 ac_lo=$ac_mid; break
37120 echo "$as_me: failed program was:" >&5
37121 sed 's/^/| /' conftest.$ac_ext >&5
37123 ac_hi=`expr '(' $ac_mid ')' - 1`
37124 if test $ac_mid -le $ac_hi; then
37128 ac_mid=`expr 2 '*' $ac_mid`
37130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37133 echo "$as_me: failed program was:" >&5
37134 sed 's/^/| /' conftest.$ac_ext >&5
37138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37141 # Binary search between lo and hi bounds.
37142 while test "x$ac_lo" != "x$ac_hi"; do
37143 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37144 cat >conftest.$ac_ext <<_ACEOF
37147 cat confdefs.h >>conftest.$ac_ext
37148 cat >>conftest.$ac_ext <<_ACEOF
37149 /* end confdefs.h. */
37150 $ac_includes_default
37154 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37161 rm -f conftest.$ac_objext
37162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37163 (eval $ac_compile) 2>conftest.er1
37165 grep -v '^ *+' conftest.er1 >conftest.err
37167 cat conftest.err >&5
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); } &&
37170 { ac_try='test -z "$ac_c_werror_flag"
37171 || test ! -s conftest.err'
37172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37173 (eval $ac_try) 2>&5
37175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176 (exit $ac_status); }; } &&
37177 { ac_try='test -s conftest.$ac_objext'
37178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37179 (eval $ac_try) 2>&5
37181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37182 (exit $ac_status); }; }; then
37185 echo "$as_me: failed program was:" >&5
37186 sed 's/^/| /' conftest.$ac_ext >&5
37188 ac_lo=`expr '(' $ac_mid ')' + 1`
37190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37193 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37194 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37195 See \`config.log' for more details." >&5
37196 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37197 See \`config.log' for more details." >&2;}
37198 { (exit 1); exit 1; }; } ;;
37201 if test "$cross_compiling" = yes; then
37202 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37203 See \`config.log' for more details." >&5
37204 echo "$as_me: error: cannot run test program while cross compiling
37205 See \`config.log' for more details." >&2;}
37206 { (exit 1); exit 1; }; }
37208 cat >conftest.$ac_ext <<_ACEOF
37211 cat confdefs.h >>conftest.$ac_ext
37212 cat >>conftest.$ac_ext <<_ACEOF
37213 /* end confdefs.h. */
37214 $ac_includes_default
37215 long longval () { return (long) (sizeof (wchar_t)); }
37216 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37218 #include <stdlib.h>
37223 FILE *f = fopen ("conftest.val", "w");
37226 if (((long) (sizeof (wchar_t))) < 0)
37228 long i = longval ();
37229 if (i != ((long) (sizeof (wchar_t))))
37231 fprintf (f, "%ld\n", i);
37235 unsigned long i = ulongval ();
37236 if (i != ((long) (sizeof (wchar_t))))
37238 fprintf (f, "%lu\n", i);
37240 exit (ferror (f) || fclose (f) != 0);
37246 rm -f conftest$ac_exeext
37247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37248 (eval $ac_link) 2>&5
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253 (eval $ac_try) 2>&5
37255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256 (exit $ac_status); }; }; then
37257 ac_cv_sizeof_wchar_t=`cat conftest.val`
37259 echo "$as_me: program exited with status $ac_status" >&5
37260 echo "$as_me: failed program was:" >&5
37261 sed 's/^/| /' conftest.$ac_ext >&5
37263 ( exit $ac_status )
37264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37265 See \`config.log' for more details." >&5
37266 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37267 See \`config.log' for more details." >&2;}
37268 { (exit 1); exit 1; }; }
37270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37275 ac_cv_sizeof_wchar_t=0
37278 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37279 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37280 cat >>confdefs.h <<_ACEOF
37281 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37286 if test "$ac_cv_sizeof_int" -lt 4 ; then
37287 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37288 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37291 cat >>confdefs.h <<\_ACEOF
37292 #define LBER_INT_T long
37297 cat >>confdefs.h <<\_ACEOF
37298 #define LBER_INT_T int
37304 cat >>confdefs.h <<\_ACEOF
37305 #define LBER_LEN_T long
37309 cat >>confdefs.h <<\_ACEOF
37310 #define LBER_SOCKET_T int
37314 cat >>confdefs.h <<\_ACEOF
37315 #define LBER_TAG_T long
37319 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37320 if test $ac_cv_sizeof_long_long -gt 4 ; then
37321 ol_with_mp=longlong
37323 cat >>confdefs.h <<\_ACEOF
37324 #define USE_MP_LONG_LONG 1
37327 elif test $ol_with_mp = longlong ; then
37328 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37329 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37330 { (exit 1); exit 1; }; }
37333 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37334 if test $ac_cv_sizeof_long -gt 4 ; then
37337 cat >>confdefs.h <<\_ACEOF
37338 #define USE_MP_LONG 1
37341 elif test $ol_with_mp = long ; then
37342 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37343 echo "$as_me: error: long unusable for multiple precision" >&2;}
37344 { (exit 1); exit 1; }; }
37347 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37349 for ac_header in openssl/bn.h
37351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37353 echo "$as_me:$LINENO: checking for $ac_header" >&5
37354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37356 echo $ECHO_N "(cached) $ECHO_C" >&6
37358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37361 # Is the header compilable?
37362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37364 cat >conftest.$ac_ext <<_ACEOF
37367 cat confdefs.h >>conftest.$ac_ext
37368 cat >>conftest.$ac_ext <<_ACEOF
37369 /* end confdefs.h. */
37370 $ac_includes_default
37371 #include <$ac_header>
37373 rm -f conftest.$ac_objext
37374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37375 (eval $ac_compile) 2>conftest.er1
37377 grep -v '^ *+' conftest.er1 >conftest.err
37379 cat conftest.err >&5
37380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37381 (exit $ac_status); } &&
37382 { ac_try='test -z "$ac_c_werror_flag"
37383 || test ! -s conftest.err'
37384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385 (eval $ac_try) 2>&5
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); }; } &&
37389 { ac_try='test -s conftest.$ac_objext'
37390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391 (eval $ac_try) 2>&5
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); }; }; then
37395 ac_header_compiler=yes
37397 echo "$as_me: failed program was:" >&5
37398 sed 's/^/| /' conftest.$ac_ext >&5
37400 ac_header_compiler=no
37402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37404 echo "${ECHO_T}$ac_header_compiler" >&6
37406 # Is the header present?
37407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37409 cat >conftest.$ac_ext <<_ACEOF
37412 cat confdefs.h >>conftest.$ac_ext
37413 cat >>conftest.$ac_ext <<_ACEOF
37414 /* end confdefs.h. */
37415 #include <$ac_header>
37417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37420 grep -v '^ *+' conftest.er1 >conftest.err
37422 cat conftest.err >&5
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); } >/dev/null; then
37425 if test -s conftest.err; then
37426 ac_cpp_err=$ac_c_preproc_warn_flag
37427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37434 if test -z "$ac_cpp_err"; then
37435 ac_header_preproc=yes
37437 echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37440 ac_header_preproc=no
37442 rm -f conftest.err conftest.$ac_ext
37443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37444 echo "${ECHO_T}$ac_header_preproc" >&6
37446 # So? What about this header?
37447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37453 ac_header_preproc=yes
37456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37470 ## --------------------------------------------- ##
37471 ## Report this to <http://www.openldap.org/its/> ##
37472 ## --------------------------------------------- ##
37475 sed "s/^/$as_me: WARNING: /" >&2
37478 echo "$as_me:$LINENO: checking for $ac_header" >&5
37479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37481 echo $ECHO_N "(cached) $ECHO_C" >&6
37483 eval "$as_ac_Header=\$ac_header_preproc"
37485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37490 cat >>confdefs.h <<_ACEOF
37491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37499 for ac_header in openssl/crypto.h
37501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37503 echo "$as_me:$LINENO: checking for $ac_header" >&5
37504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37506 echo $ECHO_N "(cached) $ECHO_C" >&6
37508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37511 # Is the header compilable?
37512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37514 cat >conftest.$ac_ext <<_ACEOF
37517 cat confdefs.h >>conftest.$ac_ext
37518 cat >>conftest.$ac_ext <<_ACEOF
37519 /* end confdefs.h. */
37520 $ac_includes_default
37521 #include <$ac_header>
37523 rm -f conftest.$ac_objext
37524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37525 (eval $ac_compile) 2>conftest.er1
37527 grep -v '^ *+' conftest.er1 >conftest.err
37529 cat conftest.err >&5
37530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37531 (exit $ac_status); } &&
37532 { ac_try='test -z "$ac_c_werror_flag"
37533 || test ! -s conftest.err'
37534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37535 (eval $ac_try) 2>&5
37537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37538 (exit $ac_status); }; } &&
37539 { ac_try='test -s conftest.$ac_objext'
37540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37541 (eval $ac_try) 2>&5
37543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544 (exit $ac_status); }; }; then
37545 ac_header_compiler=yes
37547 echo "$as_me: failed program was:" >&5
37548 sed 's/^/| /' conftest.$ac_ext >&5
37550 ac_header_compiler=no
37552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37554 echo "${ECHO_T}$ac_header_compiler" >&6
37556 # Is the header present?
37557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37559 cat >conftest.$ac_ext <<_ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h. */
37565 #include <$ac_header>
37567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37570 grep -v '^ *+' conftest.er1 >conftest.err
37572 cat conftest.err >&5
37573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574 (exit $ac_status); } >/dev/null; then
37575 if test -s conftest.err; then
37576 ac_cpp_err=$ac_c_preproc_warn_flag
37577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37584 if test -z "$ac_cpp_err"; then
37585 ac_header_preproc=yes
37587 echo "$as_me: failed program was:" >&5
37588 sed 's/^/| /' conftest.$ac_ext >&5
37590 ac_header_preproc=no
37592 rm -f conftest.err conftest.$ac_ext
37593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37594 echo "${ECHO_T}$ac_header_preproc" >&6
37596 # So? What about this header?
37597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37603 ac_header_preproc=yes
37606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37620 ## --------------------------------------------- ##
37621 ## Report this to <http://www.openldap.org/its/> ##
37622 ## --------------------------------------------- ##
37625 sed "s/^/$as_me: WARNING: /" >&2
37628 echo "$as_me:$LINENO: checking for $ac_header" >&5
37629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37631 echo $ECHO_N "(cached) $ECHO_C" >&6
37633 eval "$as_ac_Header=\$ac_header_preproc"
37635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37640 cat >>confdefs.h <<_ACEOF
37641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37648 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37649 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37650 test "$ol_with_tls" = "found" ; then
37653 cat >>confdefs.h <<\_ACEOF
37654 #define USE_MP_BIGNUM 1
37657 elif test $ol_with_mp = bignum ; then
37658 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37659 echo "$as_me: error: bignum not available" >&2;}
37660 { (exit 1); exit 1; }; }
37663 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37665 for ac_header in gmp.h
37667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37669 echo "$as_me:$LINENO: checking for $ac_header" >&5
37670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37672 echo $ECHO_N "(cached) $ECHO_C" >&6
37674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37677 # Is the header compilable?
37678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37680 cat >conftest.$ac_ext <<_ACEOF
37683 cat confdefs.h >>conftest.$ac_ext
37684 cat >>conftest.$ac_ext <<_ACEOF
37685 /* end confdefs.h. */
37686 $ac_includes_default
37687 #include <$ac_header>
37689 rm -f conftest.$ac_objext
37690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37691 (eval $ac_compile) 2>conftest.er1
37693 grep -v '^ *+' conftest.er1 >conftest.err
37695 cat conftest.err >&5
37696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697 (exit $ac_status); } &&
37698 { ac_try='test -z "$ac_c_werror_flag"
37699 || test ! -s conftest.err'
37700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37701 (eval $ac_try) 2>&5
37703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704 (exit $ac_status); }; } &&
37705 { ac_try='test -s conftest.$ac_objext'
37706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37707 (eval $ac_try) 2>&5
37709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); }; }; then
37711 ac_header_compiler=yes
37713 echo "$as_me: failed program was:" >&5
37714 sed 's/^/| /' conftest.$ac_ext >&5
37716 ac_header_compiler=no
37718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37720 echo "${ECHO_T}$ac_header_compiler" >&6
37722 # Is the header present?
37723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37725 cat >conftest.$ac_ext <<_ACEOF
37728 cat confdefs.h >>conftest.$ac_ext
37729 cat >>conftest.$ac_ext <<_ACEOF
37730 /* end confdefs.h. */
37731 #include <$ac_header>
37733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37736 grep -v '^ *+' conftest.er1 >conftest.err
37738 cat conftest.err >&5
37739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740 (exit $ac_status); } >/dev/null; then
37741 if test -s conftest.err; then
37742 ac_cpp_err=$ac_c_preproc_warn_flag
37743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37750 if test -z "$ac_cpp_err"; then
37751 ac_header_preproc=yes
37753 echo "$as_me: failed program was:" >&5
37754 sed 's/^/| /' conftest.$ac_ext >&5
37756 ac_header_preproc=no
37758 rm -f conftest.err conftest.$ac_ext
37759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37760 echo "${ECHO_T}$ac_header_preproc" >&6
37762 # So? What about this header?
37763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37769 ac_header_preproc=yes
37772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37786 ## --------------------------------------------- ##
37787 ## Report this to <http://www.openldap.org/its/> ##
37788 ## --------------------------------------------- ##
37791 sed "s/^/$as_me: WARNING: /" >&2
37794 echo "$as_me:$LINENO: checking for $ac_header" >&5
37795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37797 echo $ECHO_N "(cached) $ECHO_C" >&6
37799 eval "$as_ac_Header=\$ac_header_preproc"
37801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37806 cat >>confdefs.h <<_ACEOF
37807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37815 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37816 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37817 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37818 echo $ECHO_N "(cached) $ECHO_C" >&6
37820 ac_check_lib_save_LIBS=$LIBS
37822 cat >conftest.$ac_ext <<_ACEOF
37825 cat confdefs.h >>conftest.$ac_ext
37826 cat >>conftest.$ac_ext <<_ACEOF
37827 /* end confdefs.h. */
37829 /* Override any gcc2 internal prototype to avoid an error. */
37833 /* We use char because int might match the return type of a gcc2
37834 builtin and then its argument prototype would still apply. */
37835 char __gmpz_add_ui ();
37844 rm -f conftest.$ac_objext conftest$ac_exeext
37845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37846 (eval $ac_link) 2>conftest.er1
37848 grep -v '^ *+' conftest.er1 >conftest.err
37850 cat conftest.err >&5
37851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852 (exit $ac_status); } &&
37853 { ac_try='test -z "$ac_c_werror_flag"
37854 || test ! -s conftest.err'
37855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37856 (eval $ac_try) 2>&5
37858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859 (exit $ac_status); }; } &&
37860 { ac_try='test -s conftest$ac_exeext'
37861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37862 (eval $ac_try) 2>&5
37864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865 (exit $ac_status); }; }; then
37866 ac_cv_lib_gmp___gmpz_add_ui=yes
37868 echo "$as_me: failed program was:" >&5
37869 sed 's/^/| /' conftest.$ac_ext >&5
37871 ac_cv_lib_gmp___gmpz_add_ui=no
37873 rm -f conftest.err conftest.$ac_objext \
37874 conftest$ac_exeext conftest.$ac_ext
37875 LIBS=$ac_check_lib_save_LIBS
37877 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37878 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37879 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37880 cat >>confdefs.h <<_ACEOF
37881 #define HAVE_LIBGMP 1
37888 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp = yes ; then
37890 cat >>confdefs.h <<\_ACEOF
37891 #define USE_MP_GMP 1
37895 elif test $ol_with_mp = gmp ; then
37896 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37897 echo "$as_me: error: gmp not available" >&2;}
37898 { (exit 1); exit 1; }; }
37901 if test $ol_with_mp = auto ; then
37905 echo "$as_me:$LINENO: checking for working memcmp" >&5
37906 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37907 if test "${ac_cv_func_memcmp_working+set}" = set; then
37908 echo $ECHO_N "(cached) $ECHO_C" >&6
37910 if test "$cross_compiling" = yes; then
37911 ac_cv_func_memcmp_working=no
37913 cat >conftest.$ac_ext <<_ACEOF
37916 cat confdefs.h >>conftest.$ac_ext
37917 cat >>conftest.$ac_ext <<_ACEOF
37918 /* end confdefs.h. */
37919 $ac_includes_default
37924 /* Some versions of memcmp are not 8-bit clean. */
37925 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37926 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37929 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37930 or more and with at least one buffer not starting on a 4-byte boundary.
37931 William Lewis provided this test program. */
37936 for (i = 0; i < 4; i++)
37940 strcpy (a, "--------01111111");
37941 strcpy (b, "--------10000000");
37942 if (memcmp (a, b, 16) >= 0)
37952 rm -f conftest$ac_exeext
37953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37954 (eval $ac_link) 2>&5
37956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37959 (eval $ac_try) 2>&5
37961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962 (exit $ac_status); }; }; then
37963 ac_cv_func_memcmp_working=yes
37965 echo "$as_me: program exited with status $ac_status" >&5
37966 echo "$as_me: failed program was:" >&5
37967 sed 's/^/| /' conftest.$ac_ext >&5
37969 ( exit $ac_status )
37970 ac_cv_func_memcmp_working=no
37972 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37975 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
37976 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
37977 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
37978 "memcmp.$ac_objext" | \
37979 *" memcmp.$ac_objext" | \
37980 "memcmp.$ac_objext "* | \
37981 *" memcmp.$ac_objext "* ) ;;
37982 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
37987 if test $ac_cv_func_memcmp_working = no ; then
37989 cat >>confdefs.h <<\_ACEOF
37990 #define NEED_MEMCMP_REPLACEMENT 1
37996 for ac_func in strftime
37998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37999 echo "$as_me:$LINENO: checking for $ac_func" >&5
38000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38001 if eval "test \"\${$as_ac_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38012 #define $ac_func innocuous_$ac_func
38014 /* System header to define __stub macros and hopefully few prototypes,
38015 which can conflict with char $ac_func (); 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_$ac_func) || defined (__stub___$ac_func)
38041 char (*f) () = $ac_func;
38050 return f != $ac_func;
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 eval "$as_ac_var=yes"
38079 echo "$as_me: failed program was:" >&5
38080 sed 's/^/| /' conftest.$ac_ext >&5
38082 eval "$as_ac_var=no"
38084 rm -f conftest.err conftest.$ac_objext \
38085 conftest$ac_exeext conftest.$ac_ext
38087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38089 if test `eval echo '${'$as_ac_var'}'` = yes; then
38090 cat >>confdefs.h <<_ACEOF
38091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38095 # strftime is in -lintl on SCO UNIX.
38096 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38097 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38098 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38099 echo $ECHO_N "(cached) $ECHO_C" >&6
38101 ac_check_lib_save_LIBS=$LIBS
38102 LIBS="-lintl $LIBS"
38103 cat >conftest.$ac_ext <<_ACEOF
38106 cat confdefs.h >>conftest.$ac_ext
38107 cat >>conftest.$ac_ext <<_ACEOF
38108 /* end confdefs.h. */
38110 /* Override any gcc2 internal prototype to avoid an error. */
38114 /* We use char because int might match the return type of a gcc2
38115 builtin and then its argument prototype would still apply. */
38125 rm -f conftest.$ac_objext conftest$ac_exeext
38126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38127 (eval $ac_link) 2>conftest.er1
38129 grep -v '^ *+' conftest.er1 >conftest.err
38131 cat conftest.err >&5
38132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38133 (exit $ac_status); } &&
38134 { ac_try='test -z "$ac_c_werror_flag"
38135 || test ! -s conftest.err'
38136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38137 (eval $ac_try) 2>&5
38139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38140 (exit $ac_status); }; } &&
38141 { ac_try='test -s conftest$ac_exeext'
38142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38143 (eval $ac_try) 2>&5
38145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38146 (exit $ac_status); }; }; then
38147 ac_cv_lib_intl_strftime=yes
38149 echo "$as_me: failed program was:" >&5
38150 sed 's/^/| /' conftest.$ac_ext >&5
38152 ac_cv_lib_intl_strftime=no
38154 rm -f conftest.err conftest.$ac_objext \
38155 conftest$ac_exeext conftest.$ac_ext
38156 LIBS=$ac_check_lib_save_LIBS
38158 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38159 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38160 if test $ac_cv_lib_intl_strftime = yes; then
38161 cat >>confdefs.h <<\_ACEOF
38162 #define HAVE_STRFTIME 1
38165 LIBS="-lintl $LIBS"
38172 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38173 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38174 if test "${ol_cv_func_inet_aton+set}" = set; then
38175 echo $ECHO_N "(cached) $ECHO_C" >&6
38177 cat >conftest.$ac_ext <<_ACEOF
38180 cat confdefs.h >>conftest.$ac_ext
38181 cat >>conftest.$ac_ext <<_ACEOF
38182 /* end confdefs.h. */
38184 #ifdef HAVE_SYS_TYPES_H
38185 # include <sys/types.h>
38187 #ifdef HAVE_SYS_SOCKET_H
38188 # include <sys/socket.h>
38189 # ifdef HAVE_SYS_SELECT_H
38190 # include <sys/select.h>
38192 # include <netinet/in.h>
38193 # ifdef HAVE_ARPA_INET_H
38194 # include <arpa/inet.h>
38202 int rc = inet_aton( "255.255.255.255", &in );
38207 rm -f conftest.$ac_objext conftest$ac_exeext
38208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38209 (eval $ac_link) 2>conftest.er1
38211 grep -v '^ *+' conftest.er1 >conftest.err
38213 cat conftest.err >&5
38214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); } &&
38216 { ac_try='test -z "$ac_c_werror_flag"
38217 || test ! -s conftest.err'
38218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38219 (eval $ac_try) 2>&5
38221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222 (exit $ac_status); }; } &&
38223 { ac_try='test -s conftest$ac_exeext'
38224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38225 (eval $ac_try) 2>&5
38227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228 (exit $ac_status); }; }; then
38229 ol_cv_func_inet_aton=yes
38231 echo "$as_me: failed program was:" >&5
38232 sed 's/^/| /' conftest.$ac_ext >&5
38234 ol_cv_func_inet_aton=no
38236 rm -f conftest.err conftest.$ac_objext \
38237 conftest$ac_exeext conftest.$ac_ext
38239 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38240 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38241 if test $ol_cv_func_inet_aton != no; then
38243 cat >>confdefs.h <<\_ACEOF
38244 #define HAVE_INET_ATON 1
38250 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38251 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38252 if test "${ac_cv_func__spawnlp+set}" = set; then
38253 echo $ECHO_N "(cached) $ECHO_C" >&6
38255 cat >conftest.$ac_ext <<_ACEOF
38258 cat confdefs.h >>conftest.$ac_ext
38259 cat >>conftest.$ac_ext <<_ACEOF
38260 /* end confdefs.h. */
38261 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38263 #define _spawnlp innocuous__spawnlp
38265 /* System header to define __stub macros and hopefully few prototypes,
38266 which can conflict with char _spawnlp (); below.
38267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38268 <limits.h> exists even on freestanding compilers. */
38271 # include <limits.h>
38273 # include <assert.h>
38278 /* Override any gcc2 internal prototype to avoid an error. */
38283 /* We use char because int might match the return type of a gcc2
38284 builtin and then its argument prototype would still apply. */
38286 /* The GNU C library defines this for functions which it implements
38287 to always fail with ENOSYS. Some functions are actually named
38288 something starting with __ and the normal name is an alias. */
38289 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38292 char (*f) () = _spawnlp;
38301 return f != _spawnlp;
38306 rm -f conftest.$ac_objext conftest$ac_exeext
38307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38308 (eval $ac_link) 2>conftest.er1
38310 grep -v '^ *+' conftest.er1 >conftest.err
38312 cat conftest.err >&5
38313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38314 (exit $ac_status); } &&
38315 { ac_try='test -z "$ac_c_werror_flag"
38316 || test ! -s conftest.err'
38317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38318 (eval $ac_try) 2>&5
38320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38321 (exit $ac_status); }; } &&
38322 { ac_try='test -s conftest$ac_exeext'
38323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38324 (eval $ac_try) 2>&5
38326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327 (exit $ac_status); }; }; then
38328 ac_cv_func__spawnlp=yes
38330 echo "$as_me: failed program was:" >&5
38331 sed 's/^/| /' conftest.$ac_ext >&5
38333 ac_cv_func__spawnlp=no
38335 rm -f conftest.err conftest.$ac_objext \
38336 conftest$ac_exeext conftest.$ac_ext
38338 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38339 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38340 if test $ac_cv_func__spawnlp = yes; then
38342 cat >>confdefs.h <<\_ACEOF
38343 #define HAVE_SPAWNLP 1
38349 echo "$as_me:$LINENO: checking for _snprintf" >&5
38350 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38351 if test "${ac_cv_func__snprintf+set}" = set; then
38352 echo $ECHO_N "(cached) $ECHO_C" >&6
38354 cat >conftest.$ac_ext <<_ACEOF
38357 cat confdefs.h >>conftest.$ac_ext
38358 cat >>conftest.$ac_ext <<_ACEOF
38359 /* end confdefs.h. */
38360 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38362 #define _snprintf innocuous__snprintf
38364 /* System header to define __stub macros and hopefully few prototypes,
38365 which can conflict with char _snprintf (); below.
38366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38367 <limits.h> exists even on freestanding compilers. */
38370 # include <limits.h>
38372 # include <assert.h>
38377 /* Override any gcc2 internal prototype to avoid an error. */
38382 /* We use char because int might match the return type of a gcc2
38383 builtin and then its argument prototype would still apply. */
38385 /* The GNU C library defines this for functions which it implements
38386 to always fail with ENOSYS. Some functions are actually named
38387 something starting with __ and the normal name is an alias. */
38388 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38391 char (*f) () = _snprintf;
38400 return f != _snprintf;
38405 rm -f conftest.$ac_objext conftest$ac_exeext
38406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38407 (eval $ac_link) 2>conftest.er1
38409 grep -v '^ *+' conftest.er1 >conftest.err
38411 cat conftest.err >&5
38412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413 (exit $ac_status); } &&
38414 { ac_try='test -z "$ac_c_werror_flag"
38415 || test ! -s conftest.err'
38416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38417 (eval $ac_try) 2>&5
38419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420 (exit $ac_status); }; } &&
38421 { ac_try='test -s conftest$ac_exeext'
38422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38423 (eval $ac_try) 2>&5
38425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426 (exit $ac_status); }; }; then
38427 ac_cv_func__snprintf=yes
38429 echo "$as_me: failed program was:" >&5
38430 sed 's/^/| /' conftest.$ac_ext >&5
38432 ac_cv_func__snprintf=no
38434 rm -f conftest.err conftest.$ac_objext \
38435 conftest$ac_exeext conftest.$ac_ext
38437 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38438 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38439 if test $ac_cv_func__snprintf = yes; then
38440 ac_cv_func_snprintf=yes
38442 cat >>confdefs.h <<\_ACEOF
38443 #define snprintf _snprintf
38450 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38451 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38452 if test "${ac_cv_func__vsnprintf+set}" = set; then
38453 echo $ECHO_N "(cached) $ECHO_C" >&6
38455 cat >conftest.$ac_ext <<_ACEOF
38458 cat confdefs.h >>conftest.$ac_ext
38459 cat >>conftest.$ac_ext <<_ACEOF
38460 /* end confdefs.h. */
38461 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38463 #define _vsnprintf innocuous__vsnprintf
38465 /* System header to define __stub macros and hopefully few prototypes,
38466 which can conflict with char _vsnprintf (); below.
38467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38468 <limits.h> exists even on freestanding compilers. */
38471 # include <limits.h>
38473 # include <assert.h>
38478 /* Override any gcc2 internal prototype to avoid an error. */
38483 /* We use char because int might match the return type of a gcc2
38484 builtin and then its argument prototype would still apply. */
38485 char _vsnprintf ();
38486 /* The GNU C library defines this for functions which it implements
38487 to always fail with ENOSYS. Some functions are actually named
38488 something starting with __ and the normal name is an alias. */
38489 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38492 char (*f) () = _vsnprintf;
38501 return f != _vsnprintf;
38506 rm -f conftest.$ac_objext conftest$ac_exeext
38507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38508 (eval $ac_link) 2>conftest.er1
38510 grep -v '^ *+' conftest.er1 >conftest.err
38512 cat conftest.err >&5
38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); } &&
38515 { ac_try='test -z "$ac_c_werror_flag"
38516 || test ! -s conftest.err'
38517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518 (eval $ac_try) 2>&5
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); }; } &&
38522 { ac_try='test -s conftest$ac_exeext'
38523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524 (eval $ac_try) 2>&5
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; }; then
38528 ac_cv_func__vsnprintf=yes
38530 echo "$as_me: failed program was:" >&5
38531 sed 's/^/| /' conftest.$ac_ext >&5
38533 ac_cv_func__vsnprintf=no
38535 rm -f conftest.err conftest.$ac_objext \
38536 conftest$ac_exeext conftest.$ac_ext
38538 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38539 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38540 if test $ac_cv_func__vsnprintf = yes; then
38541 ac_cv_func_vsnprintf=yes
38543 cat >>confdefs.h <<\_ACEOF
38544 #define vsnprintf _vsnprintf
38552 for ac_func in vprintf
38554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38555 echo "$as_me:$LINENO: checking for $ac_func" >&5
38556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38557 if eval "test \"\${$as_ac_var+set}\" = set"; then
38558 echo $ECHO_N "(cached) $ECHO_C" >&6
38560 cat >conftest.$ac_ext <<_ACEOF
38563 cat confdefs.h >>conftest.$ac_ext
38564 cat >>conftest.$ac_ext <<_ACEOF
38565 /* end confdefs.h. */
38566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38568 #define $ac_func innocuous_$ac_func
38570 /* System header to define __stub macros and hopefully few prototypes,
38571 which can conflict with char $ac_func (); below.
38572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38573 <limits.h> exists even on freestanding compilers. */
38576 # include <limits.h>
38578 # include <assert.h>
38583 /* Override any gcc2 internal prototype to avoid an error. */
38588 /* We use char because int might match the return type of a gcc2
38589 builtin and then its argument prototype would still apply. */
38591 /* The GNU C library defines this for functions which it implements
38592 to always fail with ENOSYS. Some functions are actually named
38593 something starting with __ and the normal name is an alias. */
38594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38597 char (*f) () = $ac_func;
38606 return f != $ac_func;
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38613 (eval $ac_link) 2>conftest.er1
38615 grep -v '^ *+' conftest.er1 >conftest.err
38617 cat conftest.err >&5
38618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619 (exit $ac_status); } &&
38620 { ac_try='test -z "$ac_c_werror_flag"
38621 || test ! -s conftest.err'
38622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38623 (eval $ac_try) 2>&5
38625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626 (exit $ac_status); }; } &&
38627 { ac_try='test -s conftest$ac_exeext'
38628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38629 (eval $ac_try) 2>&5
38631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632 (exit $ac_status); }; }; then
38633 eval "$as_ac_var=yes"
38635 echo "$as_me: failed program was:" >&5
38636 sed 's/^/| /' conftest.$ac_ext >&5
38638 eval "$as_ac_var=no"
38640 rm -f conftest.err conftest.$ac_objext \
38641 conftest$ac_exeext conftest.$ac_ext
38643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38645 if test `eval echo '${'$as_ac_var'}'` = yes; then
38646 cat >>confdefs.h <<_ACEOF
38647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38650 echo "$as_me:$LINENO: checking for _doprnt" >&5
38651 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38652 if test "${ac_cv_func__doprnt+set}" = set; then
38653 echo $ECHO_N "(cached) $ECHO_C" >&6
38655 cat >conftest.$ac_ext <<_ACEOF
38658 cat confdefs.h >>conftest.$ac_ext
38659 cat >>conftest.$ac_ext <<_ACEOF
38660 /* end confdefs.h. */
38661 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38663 #define _doprnt innocuous__doprnt
38665 /* System header to define __stub macros and hopefully few prototypes,
38666 which can conflict with char _doprnt (); below.
38667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38668 <limits.h> exists even on freestanding compilers. */
38671 # include <limits.h>
38673 # include <assert.h>
38678 /* Override any gcc2 internal prototype to avoid an error. */
38683 /* We use char because int might match the return type of a gcc2
38684 builtin and then its argument prototype would still apply. */
38686 /* The GNU C library defines this for functions which it implements
38687 to always fail with ENOSYS. Some functions are actually named
38688 something starting with __ and the normal name is an alias. */
38689 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38692 char (*f) () = _doprnt;
38701 return f != _doprnt;
38706 rm -f conftest.$ac_objext conftest$ac_exeext
38707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38708 (eval $ac_link) 2>conftest.er1
38710 grep -v '^ *+' conftest.er1 >conftest.err
38712 cat conftest.err >&5
38713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714 (exit $ac_status); } &&
38715 { ac_try='test -z "$ac_c_werror_flag"
38716 || test ! -s conftest.err'
38717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38718 (eval $ac_try) 2>&5
38720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38721 (exit $ac_status); }; } &&
38722 { ac_try='test -s conftest$ac_exeext'
38723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38724 (eval $ac_try) 2>&5
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); }; }; then
38728 ac_cv_func__doprnt=yes
38730 echo "$as_me: failed program was:" >&5
38731 sed 's/^/| /' conftest.$ac_ext >&5
38733 ac_cv_func__doprnt=no
38735 rm -f conftest.err conftest.$ac_objext \
38736 conftest$ac_exeext conftest.$ac_ext
38738 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38739 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38740 if test $ac_cv_func__doprnt = yes; then
38742 cat >>confdefs.h <<\_ACEOF
38743 #define HAVE_DOPRNT 1
38753 if test $ac_cv_func_vprintf = yes ; then
38756 for ac_func in snprintf vsnprintf
38758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38759 echo "$as_me:$LINENO: checking for $ac_func" >&5
38760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38761 if eval "test \"\${$as_ac_var+set}\" = set"; then
38762 echo $ECHO_N "(cached) $ECHO_C" >&6
38764 cat >conftest.$ac_ext <<_ACEOF
38767 cat confdefs.h >>conftest.$ac_ext
38768 cat >>conftest.$ac_ext <<_ACEOF
38769 /* end confdefs.h. */
38770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38772 #define $ac_func innocuous_$ac_func
38774 /* System header to define __stub macros and hopefully few prototypes,
38775 which can conflict with char $ac_func (); below.
38776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38777 <limits.h> exists even on freestanding compilers. */
38780 # include <limits.h>
38782 # include <assert.h>
38787 /* Override any gcc2 internal prototype to avoid an error. */
38792 /* We use char because int might match the return type of a gcc2
38793 builtin and then its argument prototype would still apply. */
38795 /* The GNU C library defines this for functions which it implements
38796 to always fail with ENOSYS. Some functions are actually named
38797 something starting with __ and the normal name is an alias. */
38798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38801 char (*f) () = $ac_func;
38810 return f != $ac_func;
38815 rm -f conftest.$ac_objext conftest$ac_exeext
38816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38817 (eval $ac_link) 2>conftest.er1
38819 grep -v '^ *+' conftest.er1 >conftest.err
38821 cat conftest.err >&5
38822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823 (exit $ac_status); } &&
38824 { ac_try='test -z "$ac_c_werror_flag"
38825 || test ! -s conftest.err'
38826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38827 (eval $ac_try) 2>&5
38829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830 (exit $ac_status); }; } &&
38831 { ac_try='test -s conftest$ac_exeext'
38832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38833 (eval $ac_try) 2>&5
38835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836 (exit $ac_status); }; }; then
38837 eval "$as_ac_var=yes"
38839 echo "$as_me: failed program was:" >&5
38840 sed 's/^/| /' conftest.$ac_ext >&5
38842 eval "$as_ac_var=no"
38844 rm -f conftest.err conftest.$ac_objext \
38845 conftest$ac_exeext conftest.$ac_ext
38847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38849 if test `eval echo '${'$as_ac_var'}'` = yes; then
38850 cat >>confdefs.h <<_ACEOF
38851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38971 echo "$as_me:$LINENO: checking for $ac_func" >&5
38972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38973 if eval "test \"\${$as_ac_var+set}\" = set"; then
38974 echo $ECHO_N "(cached) $ECHO_C" >&6
38976 cat >conftest.$ac_ext <<_ACEOF
38979 cat confdefs.h >>conftest.$ac_ext
38980 cat >>conftest.$ac_ext <<_ACEOF
38981 /* end confdefs.h. */
38982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38984 #define $ac_func innocuous_$ac_func
38986 /* System header to define __stub macros and hopefully few prototypes,
38987 which can conflict with char $ac_func (); below.
38988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38989 <limits.h> exists even on freestanding compilers. */
38992 # include <limits.h>
38994 # include <assert.h>
38999 /* Override any gcc2 internal prototype to avoid an error. */
39004 /* We use char because int might match the return type of a gcc2
39005 builtin and then its argument prototype would still apply. */
39007 /* The GNU C library defines this for functions which it implements
39008 to always fail with ENOSYS. Some functions are actually named
39009 something starting with __ and the normal name is an alias. */
39010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39013 char (*f) () = $ac_func;
39022 return f != $ac_func;
39027 rm -f conftest.$ac_objext conftest$ac_exeext
39028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39029 (eval $ac_link) 2>conftest.er1
39031 grep -v '^ *+' conftest.er1 >conftest.err
39033 cat conftest.err >&5
39034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035 (exit $ac_status); } &&
39036 { ac_try='test -z "$ac_c_werror_flag"
39037 || test ! -s conftest.err'
39038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39039 (eval $ac_try) 2>&5
39041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042 (exit $ac_status); }; } &&
39043 { ac_try='test -s conftest$ac_exeext'
39044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39045 (eval $ac_try) 2>&5
39047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39048 (exit $ac_status); }; }; then
39049 eval "$as_ac_var=yes"
39051 echo "$as_me: failed program was:" >&5
39052 sed 's/^/| /' conftest.$ac_ext >&5
39054 eval "$as_ac_var=no"
39056 rm -f conftest.err conftest.$ac_objext \
39057 conftest$ac_exeext conftest.$ac_ext
39059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39061 if test `eval echo '${'$as_ac_var'}'` = yes; then
39062 cat >>confdefs.h <<_ACEOF
39063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39072 for ac_func in getopt getpeereid
39074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39075 echo "$as_me:$LINENO: checking for $ac_func" >&5
39076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39077 if eval "test \"\${$as_ac_var+set}\" = set"; then
39078 echo $ECHO_N "(cached) $ECHO_C" >&6
39080 cat >conftest.$ac_ext <<_ACEOF
39083 cat confdefs.h >>conftest.$ac_ext
39084 cat >>conftest.$ac_ext <<_ACEOF
39085 /* end confdefs.h. */
39086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39088 #define $ac_func innocuous_$ac_func
39090 /* System header to define __stub macros and hopefully few prototypes,
39091 which can conflict with char $ac_func (); below.
39092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39093 <limits.h> exists even on freestanding compilers. */
39096 # include <limits.h>
39098 # include <assert.h>
39103 /* Override any gcc2 internal prototype to avoid an error. */
39108 /* We use char because int might match the return type of a gcc2
39109 builtin and then its argument prototype would still apply. */
39111 /* The GNU C library defines this for functions which it implements
39112 to always fail with ENOSYS. Some functions are actually named
39113 something starting with __ and the normal name is an alias. */
39114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39117 char (*f) () = $ac_func;
39126 return f != $ac_func;
39131 rm -f conftest.$ac_objext conftest$ac_exeext
39132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39133 (eval $ac_link) 2>conftest.er1
39135 grep -v '^ *+' conftest.er1 >conftest.err
39137 cat conftest.err >&5
39138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39139 (exit $ac_status); } &&
39140 { ac_try='test -z "$ac_c_werror_flag"
39141 || test ! -s conftest.err'
39142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143 (eval $ac_try) 2>&5
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); }; } &&
39147 { ac_try='test -s conftest$ac_exeext'
39148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39149 (eval $ac_try) 2>&5
39151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39152 (exit $ac_status); }; }; then
39153 eval "$as_ac_var=yes"
39155 echo "$as_me: failed program was:" >&5
39156 sed 's/^/| /' conftest.$ac_ext >&5
39158 eval "$as_ac_var=no"
39160 rm -f conftest.err conftest.$ac_objext \
39161 conftest$ac_exeext conftest.$ac_ext
39163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39165 if test `eval echo '${'$as_ac_var'}'` = yes; then
39166 cat >>confdefs.h <<_ACEOF
39167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39172 "$ac_func.$ac_objext" | \
39173 *" $ac_func.$ac_objext" | \
39174 "$ac_func.$ac_objext "* | \
39175 *" $ac_func.$ac_objext "* ) ;;
39176 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39184 if test "$ac_cv_func_getopt" != yes; then
39185 LIBSRCS="$LIBSRCS getopt.c"
39188 if test "$ac_cv_func_getpeereid" != yes; then
39190 for ac_func in getpeerucred
39192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39193 echo "$as_me:$LINENO: checking for $ac_func" >&5
39194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39195 if eval "test \"\${$as_ac_var+set}\" = set"; then
39196 echo $ECHO_N "(cached) $ECHO_C" >&6
39198 cat >conftest.$ac_ext <<_ACEOF
39201 cat confdefs.h >>conftest.$ac_ext
39202 cat >>conftest.$ac_ext <<_ACEOF
39203 /* end confdefs.h. */
39204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39206 #define $ac_func innocuous_$ac_func
39208 /* System header to define __stub macros and hopefully few prototypes,
39209 which can conflict with char $ac_func (); below.
39210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39211 <limits.h> exists even on freestanding compilers. */
39214 # include <limits.h>
39216 # include <assert.h>
39221 /* Override any gcc2 internal prototype to avoid an error. */
39226 /* We use char because int might match the return type of a gcc2
39227 builtin and then its argument prototype would still apply. */
39229 /* The GNU C library defines this for functions which it implements
39230 to always fail with ENOSYS. Some functions are actually named
39231 something starting with __ and the normal name is an alias. */
39232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39235 char (*f) () = $ac_func;
39244 return f != $ac_func;
39249 rm -f conftest.$ac_objext conftest$ac_exeext
39250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39251 (eval $ac_link) 2>conftest.er1
39253 grep -v '^ *+' conftest.er1 >conftest.err
39255 cat conftest.err >&5
39256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257 (exit $ac_status); } &&
39258 { ac_try='test -z "$ac_c_werror_flag"
39259 || test ! -s conftest.err'
39260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39261 (eval $ac_try) 2>&5
39263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264 (exit $ac_status); }; } &&
39265 { ac_try='test -s conftest$ac_exeext'
39266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39267 (eval $ac_try) 2>&5
39269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39270 (exit $ac_status); }; }; then
39271 eval "$as_ac_var=yes"
39273 echo "$as_me: failed program was:" >&5
39274 sed 's/^/| /' conftest.$ac_ext >&5
39276 eval "$as_ac_var=no"
39278 rm -f conftest.err conftest.$ac_objext \
39279 conftest$ac_exeext conftest.$ac_ext
39281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39283 if test `eval echo '${'$as_ac_var'}'` = yes; then
39284 cat >>confdefs.h <<_ACEOF
39285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39291 if test "$ac_cv_func_getpeerucred" != yes ; then
39292 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39293 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39294 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39295 echo $ECHO_N "(cached) $ECHO_C" >&6
39297 cat >conftest.$ac_ext <<_ACEOF
39300 cat confdefs.h >>conftest.$ac_ext
39301 cat >>conftest.$ac_ext <<_ACEOF
39302 /* end confdefs.h. */
39303 $ac_includes_default
39304 #ifdef HAVE_SYS_SOCKET_H
39305 #include <sys/socket.h>
39311 static struct msghdr ac_aggr;
39312 if (ac_aggr.msg_accrightslen)
39318 rm -f conftest.$ac_objext
39319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39320 (eval $ac_compile) 2>conftest.er1
39322 grep -v '^ *+' conftest.er1 >conftest.err
39324 cat conftest.err >&5
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); } &&
39327 { ac_try='test -z "$ac_c_werror_flag"
39328 || test ! -s conftest.err'
39329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39330 (eval $ac_try) 2>&5
39332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333 (exit $ac_status); }; } &&
39334 { ac_try='test -s conftest.$ac_objext'
39335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39336 (eval $ac_try) 2>&5
39338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339 (exit $ac_status); }; }; then
39340 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39342 echo "$as_me: failed program was:" >&5
39343 sed 's/^/| /' conftest.$ac_ext >&5
39345 cat >conftest.$ac_ext <<_ACEOF
39348 cat confdefs.h >>conftest.$ac_ext
39349 cat >>conftest.$ac_ext <<_ACEOF
39350 /* end confdefs.h. */
39351 $ac_includes_default
39352 #ifdef HAVE_SYS_SOCKET_H
39353 #include <sys/socket.h>
39359 static struct msghdr ac_aggr;
39360 if (sizeof ac_aggr.msg_accrightslen)
39366 rm -f conftest.$ac_objext
39367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39368 (eval $ac_compile) 2>conftest.er1
39370 grep -v '^ *+' conftest.er1 >conftest.err
39372 cat conftest.err >&5
39373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374 (exit $ac_status); } &&
39375 { ac_try='test -z "$ac_c_werror_flag"
39376 || test ! -s conftest.err'
39377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39378 (eval $ac_try) 2>&5
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); }; } &&
39382 { ac_try='test -s conftest.$ac_objext'
39383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39384 (eval $ac_try) 2>&5
39386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387 (exit $ac_status); }; }; then
39388 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39390 echo "$as_me: failed program was:" >&5
39391 sed 's/^/| /' conftest.$ac_ext >&5
39393 ac_cv_member_struct_msghdr_msg_accrightslen=no
39395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39399 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39400 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39401 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39403 cat >>confdefs.h <<_ACEOF
39404 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39410 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39411 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39412 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39413 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39414 echo $ECHO_N "(cached) $ECHO_C" >&6
39416 cat >conftest.$ac_ext <<_ACEOF
39419 cat confdefs.h >>conftest.$ac_ext
39420 cat >>conftest.$ac_ext <<_ACEOF
39421 /* end confdefs.h. */
39422 $ac_includes_default
39423 #ifdef HAVE_SYS_SOCKET_H
39424 #include <sys/socket.h>
39430 static struct msghdr ac_aggr;
39431 if (ac_aggr.msg_control)
39437 rm -f conftest.$ac_objext
39438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39439 (eval $ac_compile) 2>conftest.er1
39441 grep -v '^ *+' conftest.er1 >conftest.err
39443 cat conftest.err >&5
39444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445 (exit $ac_status); } &&
39446 { ac_try='test -z "$ac_c_werror_flag"
39447 || test ! -s conftest.err'
39448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39449 (eval $ac_try) 2>&5
39451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39452 (exit $ac_status); }; } &&
39453 { ac_try='test -s conftest.$ac_objext'
39454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39455 (eval $ac_try) 2>&5
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); }; }; then
39459 ac_cv_member_struct_msghdr_msg_control=yes
39461 echo "$as_me: failed program was:" >&5
39462 sed 's/^/| /' conftest.$ac_ext >&5
39464 cat >conftest.$ac_ext <<_ACEOF
39467 cat confdefs.h >>conftest.$ac_ext
39468 cat >>conftest.$ac_ext <<_ACEOF
39469 /* end confdefs.h. */
39470 $ac_includes_default
39471 #ifdef HAVE_SYS_SOCKET_H
39472 #include <sys/socket.h>
39478 static struct msghdr ac_aggr;
39479 if (sizeof ac_aggr.msg_control)
39485 rm -f conftest.$ac_objext
39486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39487 (eval $ac_compile) 2>conftest.er1
39489 grep -v '^ *+' conftest.er1 >conftest.err
39491 cat conftest.err >&5
39492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493 (exit $ac_status); } &&
39494 { ac_try='test -z "$ac_c_werror_flag"
39495 || test ! -s conftest.err'
39496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39497 (eval $ac_try) 2>&5
39499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500 (exit $ac_status); }; } &&
39501 { ac_try='test -s conftest.$ac_objext'
39502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39503 (eval $ac_try) 2>&5
39505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506 (exit $ac_status); }; }; then
39507 ac_cv_member_struct_msghdr_msg_control=yes
39509 echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39512 ac_cv_member_struct_msghdr_msg_control=no
39514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39518 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39519 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39520 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39522 cat >>confdefs.h <<_ACEOF
39523 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39531 LIBSRCS="$LIBSRCS getpeereid.c"
39534 if test "$ac_cv_func_snprintf" != yes ||
39535 test "$ac_cv_func_vsnprintf" != yes; then
39536 if test "$ac_cv_func_snprintf" != yes; then
39538 cat >>confdefs.h <<\_ACEOF
39539 #define snprintf ber_pvt_snprintf
39543 if test "$ac_cv_func_vsnprintf" != yes; then
39545 cat >>confdefs.h <<\_ACEOF
39546 #define vsnprintf ber_pvt_vsnprintf
39553 if test "$ol_enable_slapi" != no ; then
39555 for ac_header in ltdl.h
39557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39559 echo "$as_me:$LINENO: checking for $ac_header" >&5
39560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39562 echo $ECHO_N "(cached) $ECHO_C" >&6
39564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39567 # Is the header compilable?
39568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39570 cat >conftest.$ac_ext <<_ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h. */
39576 $ac_includes_default
39577 #include <$ac_header>
39579 rm -f conftest.$ac_objext
39580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39581 (eval $ac_compile) 2>conftest.er1
39583 grep -v '^ *+' conftest.er1 >conftest.err
39585 cat conftest.err >&5
39586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39587 (exit $ac_status); } &&
39588 { ac_try='test -z "$ac_c_werror_flag"
39589 || test ! -s conftest.err'
39590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39591 (eval $ac_try) 2>&5
39593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594 (exit $ac_status); }; } &&
39595 { ac_try='test -s conftest.$ac_objext'
39596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39597 (eval $ac_try) 2>&5
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); }; }; then
39601 ac_header_compiler=yes
39603 echo "$as_me: failed program was:" >&5
39604 sed 's/^/| /' conftest.$ac_ext >&5
39606 ac_header_compiler=no
39608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39610 echo "${ECHO_T}$ac_header_compiler" >&6
39612 # Is the header present?
39613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39615 cat >conftest.$ac_ext <<_ACEOF
39618 cat confdefs.h >>conftest.$ac_ext
39619 cat >>conftest.$ac_ext <<_ACEOF
39620 /* end confdefs.h. */
39621 #include <$ac_header>
39623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39626 grep -v '^ *+' conftest.er1 >conftest.err
39628 cat conftest.err >&5
39629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39630 (exit $ac_status); } >/dev/null; then
39631 if test -s conftest.err; then
39632 ac_cpp_err=$ac_c_preproc_warn_flag
39633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39640 if test -z "$ac_cpp_err"; then
39641 ac_header_preproc=yes
39643 echo "$as_me: failed program was:" >&5
39644 sed 's/^/| /' conftest.$ac_ext >&5
39646 ac_header_preproc=no
39648 rm -f conftest.err conftest.$ac_ext
39649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39650 echo "${ECHO_T}$ac_header_preproc" >&6
39652 # So? What about this header?
39653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39659 ac_header_preproc=yes
39662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39676 ## --------------------------------------------- ##
39677 ## Report this to <http://www.openldap.org/its/> ##
39678 ## --------------------------------------------- ##
39681 sed "s/^/$as_me: WARNING: /" >&2
39684 echo "$as_me:$LINENO: checking for $ac_header" >&5
39685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39687 echo $ECHO_N "(cached) $ECHO_C" >&6
39689 eval "$as_ac_Header=\$ac_header_preproc"
39691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39696 cat >>confdefs.h <<_ACEOF
39697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39705 if test $ac_cv_header_ltdl_h != yes ; then
39706 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39707 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
39708 { (exit 1); exit 1; }; }
39710 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
39711 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
39712 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
39713 echo $ECHO_N "(cached) $ECHO_C" >&6
39715 ac_check_lib_save_LIBS=$LIBS
39716 LIBS="-lltdl $LIBS"
39717 cat >conftest.$ac_ext <<_ACEOF
39720 cat confdefs.h >>conftest.$ac_ext
39721 cat >>conftest.$ac_ext <<_ACEOF
39722 /* end confdefs.h. */
39724 /* Override any gcc2 internal prototype to avoid an error. */
39728 /* We use char because int might match the return type of a gcc2
39729 builtin and then its argument prototype would still apply. */
39739 rm -f conftest.$ac_objext conftest$ac_exeext
39740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39741 (eval $ac_link) 2>conftest.er1
39743 grep -v '^ *+' conftest.er1 >conftest.err
39745 cat conftest.err >&5
39746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39747 (exit $ac_status); } &&
39748 { ac_try='test -z "$ac_c_werror_flag"
39749 || test ! -s conftest.err'
39750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39751 (eval $ac_try) 2>&5
39753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); }; } &&
39755 { ac_try='test -s conftest$ac_exeext'
39756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39757 (eval $ac_try) 2>&5
39759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760 (exit $ac_status); }; }; then
39761 ac_cv_lib_ltdl_lt_dlinit=yes
39763 echo "$as_me: failed program was:" >&5
39764 sed 's/^/| /' conftest.$ac_ext >&5
39766 ac_cv_lib_ltdl_lt_dlinit=no
39768 rm -f conftest.err conftest.$ac_objext \
39769 conftest$ac_exeext conftest.$ac_ext
39770 LIBS=$ac_check_lib_save_LIBS
39772 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
39773 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
39774 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
39777 LIBSLAPI=libslapi.a
39778 LIBSLAPITOOLS=../libslapi.a
39780 cat >>confdefs.h <<\_ACEOF
39781 #define HAVE_LIBLTDL 1
39786 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
39787 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
39788 { (exit 1); exit 1; }; }
39793 cat >>confdefs.h <<\_ACEOF
39794 #define LDAP_SLAPI 1
39799 if test "$ol_enable_debug" != no ; then
39800 if test "$ol_enable_debug" = traditional; then
39802 cat >>confdefs.h <<\_ACEOF
39803 #define OLD_DEBUG 1
39808 cat >>confdefs.h <<\_ACEOF
39809 #define LDAP_DEBUG 1
39813 if test "$ol_enable_syslog" = yes ; then
39815 cat >>confdefs.h <<\_ACEOF
39816 #define LDAP_SYSLOG 1
39820 if test "$ol_link_kbind" != no ; then
39822 cat >>confdefs.h <<\_ACEOF
39823 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
39827 if test "$ol_enable_proctitle" != no ; then
39829 cat >>confdefs.h <<\_ACEOF
39830 #define LDAP_PROCTITLE 1
39834 if test "$ol_enable_referrals" != no ; then
39836 cat >>confdefs.h <<\_ACEOF
39837 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
39841 if test "$ol_enable_local" != no; then
39843 cat >>confdefs.h <<\_ACEOF
39844 #define LDAP_PF_LOCAL 1
39848 if test "$ol_link_ipv6" != no; then
39850 cat >>confdefs.h <<\_ACEOF
39851 #define LDAP_PF_INET6 1
39855 if test "$ol_enable_cleartext" != no ; then
39857 cat >>confdefs.h <<\_ACEOF
39858 #define SLAPD_CLEARTEXT 1
39862 if test "$ol_enable_crypt" != no ; then
39864 cat >>confdefs.h <<\_ACEOF
39865 #define SLAPD_CRYPT 1
39869 if test "$ol_link_spasswd" != no ; then
39871 cat >>confdefs.h <<\_ACEOF
39872 #define SLAPD_SPASSWD 1
39876 if test "$ol_enable_rlookups" != no ; then
39878 cat >>confdefs.h <<\_ACEOF
39879 #define SLAPD_RLOOKUPS 1
39883 if test "$ol_enable_aci" != no ; then
39884 if test $ol_enable_dynacl = no ; then
39885 ol_enable_dynacl=yes
39886 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
39887 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
39889 if test "$ol_enable_aci" = mod ; then
39890 MFLAG=SLAPD_MOD_DYNAMIC
39891 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
39892 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
39893 { (exit 1); exit 1; }; }
39895 MFLAG=SLAPD_MOD_STATIC
39897 WITH_ACI_ENABLED=$ol_enable_aci
39899 cat >>confdefs.h <<_ACEOF
39900 #define SLAPD_ACI_ENABLED $MFLAG
39904 WITH_ACI_ENABLED=no
39906 if test "$ol_enable_dynacl" != no ; then
39908 cat >>confdefs.h <<\_ACEOF
39909 #define SLAP_DYNACL 1
39914 if test "$ol_link_modules" != no ; then
39916 cat >>confdefs.h <<\_ACEOF
39917 #define SLAPD_MODULES 1
39921 SLAPD_MODULES_LDFLAGS="-dlopen self"
39925 cat >>confdefs.h <<\_ACEOF
39926 #define SLAPD_MOD_STATIC 1
39930 cat >>confdefs.h <<\_ACEOF
39931 #define SLAPD_MOD_DYNAMIC 2
39935 if test "$ol_enable_bdb" != no ; then
39937 BUILD_BDB=$ol_enable_bdb
39938 if test "$ol_enable_bdb" = mod ; then
39939 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
39940 MFLAG=SLAPD_MOD_DYNAMIC
39942 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
39943 MFLAG=SLAPD_MOD_STATIC
39946 cat >>confdefs.h <<_ACEOF
39947 #define SLAPD_BDB $MFLAG
39952 if test "$ol_enable_dnssrv" != no ; then
39954 BUILD_DNSSRV=$ol_enable_dnssrv
39955 if test "$ol_enable_dnssrv" = mod ; then
39956 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
39957 MFLAG=SLAPD_MOD_DYNAMIC
39959 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
39960 MFLAG=SLAPD_MOD_STATIC
39963 cat >>confdefs.h <<_ACEOF
39964 #define SLAPD_DNSSRV $MFLAG
39969 if test "$ol_enable_hdb" != no ; then
39971 BUILD_HDB=$ol_enable_hdb
39972 if test "$ol_enable_hdb" = mod ; then
39973 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
39974 MFLAG=SLAPD_MOD_DYNAMIC
39976 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
39977 MFLAG=SLAPD_MOD_STATIC
39980 cat >>confdefs.h <<_ACEOF
39981 #define SLAPD_HDB $MFLAG
39986 if test "$ol_enable_ldap" != no ; then
39988 BUILD_LDAP=$ol_enable_ldap
39989 if test "$ol_enable_ldap" = mod ; then
39990 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
39991 MFLAG=SLAPD_MOD_DYNAMIC
39993 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
39994 MFLAG=SLAPD_MOD_STATIC
39997 cat >>confdefs.h <<_ACEOF
39998 #define SLAPD_LDAP $MFLAG
40003 if test "$ol_enable_meta" != no ; then
40005 BUILD_META=$ol_enable_meta
40007 if test "$ol_enable_meta" = mod ; then
40008 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40009 MFLAG=SLAPD_MOD_DYNAMIC
40011 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40012 MFLAG=SLAPD_MOD_STATIC
40015 cat >>confdefs.h <<_ACEOF
40016 #define SLAPD_META $MFLAG
40021 if test "$ol_enable_monitor" != no ; then
40023 BUILD_MONITOR=$ol_enable_monitor
40024 if test "$ol_enable_monitor" = mod ; then
40025 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40026 MFLAG=SLAPD_MOD_DYNAMIC
40028 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40029 MFLAG=SLAPD_MOD_STATIC
40032 cat >>confdefs.h <<_ACEOF
40033 #define SLAPD_MONITOR $MFLAG
40038 if test "$ol_enable_null" != no ; then
40040 BUILD_NULL=$ol_enable_null
40041 if test "$ol_enable_null" = mod ; then
40042 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40043 MFLAG=SLAPD_MOD_DYNAMIC
40045 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40046 MFLAG=SLAPD_MOD_STATIC
40049 cat >>confdefs.h <<_ACEOF
40050 #define SLAPD_NULL $MFLAG
40055 if test "$ol_enable_passwd" != no ; then
40057 BUILD_PASSWD=$ol_enable_passwd
40058 if test "$ol_enable_passwd" = mod ; then
40059 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40060 MFLAG=SLAPD_MOD_DYNAMIC
40062 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40063 MFLAG=SLAPD_MOD_STATIC
40066 cat >>confdefs.h <<_ACEOF
40067 #define SLAPD_PASSWD $MFLAG
40072 if test "$ol_link_perl" != no ; then
40074 BUILD_PERL=$ol_enable_perl
40075 if test "$ol_enable_perl" = mod ; then
40076 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40077 MFLAG=SLAPD_MOD_DYNAMIC
40079 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40080 MFLAG=SLAPD_MOD_STATIC
40083 cat >>confdefs.h <<_ACEOF
40084 #define SLAPD_PERL $MFLAG
40089 if test "$ol_enable_relay" != no ; then
40091 BUILD_RELAY=$ol_enable_relay
40092 if test "$ol_enable_relay" = mod ; then
40093 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40094 MFLAG=SLAPD_MOD_DYNAMIC
40096 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40097 MFLAG=SLAPD_MOD_STATIC
40100 cat >>confdefs.h <<_ACEOF
40101 #define SLAPD_RELAY $MFLAG
40106 if test "$ol_enable_shell" != no ; then
40107 if test "$ol_link_threads" != no ; then
40108 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40109 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40112 BUILD_SHELL=$ol_enable_shell
40113 if test "$ol_enable_shell" = mod ; then
40114 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40115 MFLAG=SLAPD_MOD_DYNAMIC
40117 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40118 MFLAG=SLAPD_MOD_STATIC
40121 cat >>confdefs.h <<_ACEOF
40122 #define SLAPD_SHELL $MFLAG
40127 if test "$ol_link_sql" != no ; then
40129 BUILD_SQL=$ol_enable_sql
40130 if test "$ol_enable_sql" = mod; then
40131 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40132 MFLAG=SLAPD_MOD_DYNAMIC
40134 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40135 MFLAG=SLAPD_MOD_STATIC
40138 cat >>confdefs.h <<_ACEOF
40139 #define SLAPD_SQL $MFLAG
40144 if test "$ol_enable_accesslog" != no ; then
40145 BUILD_ACCESSLOG=$ol_enable_accesslog
40146 if test "$ol_enable_accesslog" = mod ; then
40147 MFLAG=SLAPD_MOD_DYNAMIC
40148 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40150 MFLAG=SLAPD_MOD_STATIC
40151 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40154 cat >>confdefs.h <<_ACEOF
40155 #define SLAPD_OVER_ACCESSLOG $MFLAG
40160 if test "$ol_enable_auditlog" != no ; then
40161 BUILD_AUDITLOG=$ol_enable_auditlog
40162 if test "$ol_enable_auditlog" = mod ; then
40163 MFLAG=SLAPD_MOD_DYNAMIC
40164 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40166 MFLAG=SLAPD_MOD_STATIC
40167 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40170 cat >>confdefs.h <<_ACEOF
40171 #define SLAPD_OVER_AUDITLOG $MFLAG
40176 if test "$ol_enable_dds" != no ; then
40177 BUILD_DDS=$ol_enable_dds
40178 if test "$ol_enable_dds" = mod ; then
40179 MFLAG=SLAPD_MOD_DYNAMIC
40180 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40182 MFLAG=SLAPD_MOD_STATIC
40183 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40186 cat >>confdefs.h <<_ACEOF
40187 #define SLAPD_OVER_DDS $MFLAG
40192 if test "$ol_enable_denyop" != no ; then
40193 BUILD_DENYOP=$ol_enable_denyop
40194 if test "$ol_enable_denyop" = mod ; then
40195 MFLAG=SLAPD_MOD_DYNAMIC
40196 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
40198 MFLAG=SLAPD_MOD_STATIC
40199 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
40202 cat >>confdefs.h <<_ACEOF
40203 #define SLAPD_OVER_DENYOP $MFLAG
40208 if test "$ol_enable_dyngroup" != no ; then
40209 BUILD_DYNGROUP=$ol_enable_dyngroup
40210 if test "$ol_enable_dyngroup" = mod ; then
40211 MFLAG=SLAPD_MOD_DYNAMIC
40212 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40214 MFLAG=SLAPD_MOD_STATIC
40215 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40218 cat >>confdefs.h <<_ACEOF
40219 #define SLAPD_OVER_DYNGROUP $MFLAG
40224 if test "$ol_enable_dynlist" != no ; then
40225 BUILD_DYNLIST=$ol_enable_dynlist
40226 if test "$ol_enable_dynlist" = mod ; then
40227 MFLAG=SLAPD_MOD_DYNAMIC
40228 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40230 MFLAG=SLAPD_MOD_STATIC
40231 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40234 cat >>confdefs.h <<_ACEOF
40235 #define SLAPD_OVER_DYNLIST $MFLAG
40240 if test "$ol_enable_lastmod" != no ; then
40241 BUILD_LASTMOD=$ol_enable_lastmod
40242 if test "$ol_enable_lastmod" = mod ; then
40243 MFLAG=SLAPD_MOD_DYNAMIC
40244 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
40246 MFLAG=SLAPD_MOD_STATIC
40247 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
40250 cat >>confdefs.h <<_ACEOF
40251 #define SLAPD_OVER_LASTMOD $MFLAG
40256 if test "$ol_enable_ppolicy" != no ; then
40257 BUILD_PPOLICY=$ol_enable_ppolicy
40258 if test "$ol_enable_ppolicy" = mod ; then
40259 MFLAG=SLAPD_MOD_DYNAMIC
40260 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40262 MFLAG=SLAPD_MOD_STATIC
40263 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40266 cat >>confdefs.h <<_ACEOF
40267 #define SLAPD_OVER_PPOLICY $MFLAG
40272 if test "$ol_enable_proxycache" != no ; then
40273 BUILD_PROXYCACHE=$ol_enable_proxycache
40274 if test "$ol_enable_proxycache" = mod ; then
40275 MFLAG=SLAPD_MOD_DYNAMIC
40276 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40278 MFLAG=SLAPD_MOD_STATIC
40279 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40282 cat >>confdefs.h <<_ACEOF
40283 #define SLAPD_OVER_PROXYCACHE $MFLAG
40288 if test "$ol_enable_refint" != no ; then
40289 BUILD_REFINT=$ol_enable_refint
40290 if test "$ol_enable_refint" = mod ; then
40291 MFLAG=SLAPD_MOD_DYNAMIC
40292 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40294 MFLAG=SLAPD_MOD_STATIC
40295 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40298 cat >>confdefs.h <<_ACEOF
40299 #define SLAPD_OVER_REFINT $MFLAG
40304 if test "$ol_enable_retcode" != no ; then
40305 BUILD_RETCODE=$ol_enable_retcode
40306 if test "$ol_enable_retcode" = mod ; then
40307 MFLAG=SLAPD_MOD_DYNAMIC
40308 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40310 MFLAG=SLAPD_MOD_STATIC
40311 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40314 cat >>confdefs.h <<_ACEOF
40315 #define SLAPD_OVER_RETCODE $MFLAG
40320 if test "$ol_enable_rwm" != no ; then
40322 BUILD_RWM=$ol_enable_rwm
40323 if test "$ol_enable_rwm" = mod ; then
40324 MFLAG=SLAPD_MOD_DYNAMIC
40325 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40327 MFLAG=SLAPD_MOD_STATIC
40328 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40331 cat >>confdefs.h <<_ACEOF
40332 #define SLAPD_OVER_RWM $MFLAG
40337 if test "$ol_enable_seqmod" != no ; then
40338 BUILD_SEQMOD=$ol_enable_seqmod
40339 if test "$ol_enable_seqmod" = mod ; then
40340 MFLAG=SLAPD_MOD_DYNAMIC
40341 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40343 MFLAG=SLAPD_MOD_STATIC
40344 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40347 cat >>confdefs.h <<_ACEOF
40348 #define SLAPD_OVER_SEQMOD $MFLAG
40353 if test "$ol_enable_syncprov" != no ; then
40354 BUILD_SYNCPROV=$ol_enable_syncprov
40355 if test "$ol_enable_syncprov" = mod ; then
40356 MFLAG=SLAPD_MOD_DYNAMIC
40357 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40359 MFLAG=SLAPD_MOD_STATIC
40360 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40363 cat >>confdefs.h <<_ACEOF
40364 #define SLAPD_OVER_SYNCPROV $MFLAG
40369 if test "$ol_enable_translucent" != no ; then
40370 BUILD_TRANSLUCENT=$ol_enable_translucent
40371 if test "$ol_enable_translucent" = mod ; then
40372 MFLAG=SLAPD_MOD_DYNAMIC
40373 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40375 MFLAG=SLAPD_MOD_STATIC
40376 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40379 cat >>confdefs.h <<_ACEOF
40380 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40385 if test "$ol_enable_unique" != no ; then
40386 BUILD_UNIQUE=$ol_enable_unique
40387 if test "$ol_enable_unique" = mod ; then
40388 MFLAG=SLAPD_MOD_DYNAMIC
40389 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40391 MFLAG=SLAPD_MOD_STATIC
40392 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40395 cat >>confdefs.h <<_ACEOF
40396 #define SLAPD_OVER_UNIQUE $MFLAG
40401 if test "$ol_enable_valsort" != no ; then
40402 BUILD_VALSORT=$ol_enable_valsort
40403 if test "$ol_enable_valsort" = mod ; then
40404 MFLAG=SLAPD_MOD_DYNAMIC
40405 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40407 MFLAG=SLAPD_MOD_STATIC
40408 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40411 cat >>confdefs.h <<_ACEOF
40412 #define SLAPD_OVER_VALSORT $MFLAG
40417 if test "$ol_enable_slurpd" != no &&
40418 test "$ol_link_threads" != no &&
40419 test $BUILD_SLAPD = yes ; then
40423 if test "$ol_enable_rewrite" != no ; then
40425 cat >>confdefs.h <<\_ACEOF
40426 #define ENABLE_REWRITE 1
40432 if test "$ol_enable_slapi" != no ; then
40434 cat >>confdefs.h <<\_ACEOF
40435 #define ENABLE_SLAPI 1
40439 SLAPD_SLAPI_DEPEND=libslapi.a
40444 if test "$ac_cv_mingw32" = yes ; then
40446 SLAPD_MODULES_LDFLAGS=
40534 # Check whether --with-xxinstall or --without-xxinstall was given.
40535 if test "${with_xxinstall+set}" = set; then
40536 withval="$with_xxinstall"
40541 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 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.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"
40544 ac_config_commands="$ac_config_commands default"
40548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40549 # Let make expand exec_prefix.
40550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40552 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40553 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40554 # trailing colons and then remove the whole line if VPATH becomes empty
40555 # (actually we leave an empty line to preserve line numbers).
40556 if test "x$srcdir" = x.; then
40557 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40558 s/:*\$(srcdir):*/:/;
40559 s/:*\${srcdir}:*/:/;
40561 s/^\([^=]*=[ ]*\):*/\1/;
40567 DEFS=-DHAVE_CONFIG_H
40571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40572 # 1. Remove the extension, and $U if already installed.
40573 ac_i=`echo "$ac_i" |
40574 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40576 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40577 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40579 LIBOBJS=$ac_libobjs
40581 LTLIBOBJS=$ac_ltlibobjs
40584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40585 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40586 Usually this means the macro was only invoked conditionally." >&5
40587 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40588 Usually this means the macro was only invoked conditionally." >&2;}
40589 { (exit 1); exit 1; }; }
40591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40592 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40593 Usually this means the macro was only invoked conditionally." >&5
40594 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40595 Usually this means the macro was only invoked conditionally." >&2;}
40596 { (exit 1); exit 1; }; }
40598 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40599 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40600 Usually this means the macro was only invoked conditionally." >&5
40601 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40602 Usually this means the macro was only invoked conditionally." >&2;}
40603 { (exit 1); exit 1; }; }
40606 : ${CONFIG_STATUS=./config.status}
40607 ac_clean_files_save=$ac_clean_files
40608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40609 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40610 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40611 cat >$CONFIG_STATUS <<_ACEOF
40613 # Generated by $as_me.
40614 # Run this file to recreate the current configuration.
40615 # Compiler output produced by configure, useful for debugging
40616 # configure, is in config.log if it exists.
40619 ac_cs_recheck=false
40621 SHELL=\${CONFIG_SHELL-$SHELL}
40624 cat >>$CONFIG_STATUS <<\_ACEOF
40625 ## --------------------- ##
40626 ## M4sh Initialization. ##
40627 ## --------------------- ##
40629 # Be Bourne compatible
40630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40633 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40634 # is contrary to our usage. Disable this feature.
40635 alias -g '${1+"$@"}'='"$@"'
40636 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40639 DUALCASE=1; export DUALCASE # for MKS sh
40641 # Support unset when possible.
40642 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40649 # Work around bugs in pre-3.0 UWIN ksh.
40650 $as_unset ENV MAIL MAILPATH
40657 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40658 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40659 LC_TELEPHONE LC_TIME
40661 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40662 eval $as_var=C; export $as_var
40668 # Required to use basename.
40669 if expr a : '\(a\)' >/dev/null 2>&1; then
40675 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40676 as_basename=basename
40682 # Name of the executable.
40683 as_me=`$as_basename "$0" ||
40684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40685 X"$0" : 'X\(//\)$' \| \
40686 X"$0" : 'X\(/\)$' \| \
40687 . : '\(.\)' 2>/dev/null ||
40689 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40690 /^X\/\(\/\/\)$/{ s//\1/; q; }
40691 /^X\/\(\/\).*/{ s//\1/; q; }
40695 # PATH needs CR, and LINENO needs CR and PATH.
40696 # Avoid depending upon Character Ranges.
40697 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40698 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40699 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40700 as_cr_digits='0123456789'
40701 as_cr_alnum=$as_cr_Letters$as_cr_digits
40703 # The user is always right.
40704 if test "${PATH_SEPARATOR+set}" != set; then
40705 echo "#! /bin/sh" >conf$$.sh
40706 echo "exit 0" >>conf$$.sh
40708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40717 as_lineno_1=$LINENO
40718 as_lineno_2=$LINENO
40719 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40720 test "x$as_lineno_1" != "x$as_lineno_2" &&
40721 test "x$as_lineno_3" = "x$as_lineno_2" || {
40722 # Find who we are. Look in the path if we contain no path at all
40725 *[\\/]* ) as_myself=$0 ;;
40726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40727 for as_dir in $PATH
40730 test -z "$as_dir" && as_dir=.
40731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40736 # We did not find ourselves, most probably we were run as `sh COMMAND'
40737 # in which case we are not to be found in the path.
40738 if test "x$as_myself" = x; then
40741 if test ! -f "$as_myself"; then
40742 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40743 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40744 { (exit 1); exit 1; }; }
40746 case $CONFIG_SHELL in
40748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40749 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40752 test -z "$as_dir" && as_dir=.
40753 for as_base in sh bash ksh sh5; do
40756 if ("$as_dir/$as_base" -c '
40757 as_lineno_1=$LINENO
40758 as_lineno_2=$LINENO
40759 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40760 test "x$as_lineno_1" != "x$as_lineno_2" &&
40761 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40762 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40763 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40764 CONFIG_SHELL=$as_dir/$as_base
40765 export CONFIG_SHELL
40766 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40774 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40775 # uniformly replaced by the line number. The first 'sed' inserts a
40776 # line-number line before each line; the second 'sed' does the real
40777 # work. The second script uses 'N' to pair each line-number line
40778 # with the numbered line, and appends trailing '-' during
40779 # substitution so that $LINENO is not a special case at line end.
40780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40781 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40782 sed '=' <$as_myself |
40787 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40790 s,^['$as_cr_digits']*\n,,
40791 ' >$as_me.lineno &&
40792 chmod +x $as_me.lineno ||
40793 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40794 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40795 { (exit 1); exit 1; }; }
40797 # Don't try to exec as it changes $[0], causing all sort of problems
40798 # (the dirname of $[0] is not the place where we might find the
40799 # original and so on. Autoconf is especially sensible to this).
40801 # Exit status is that of the last command.
40806 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40807 *c*,-n*) ECHO_N= ECHO_C='
40809 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40810 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40813 if expr a : '\(a\)' >/dev/null 2>&1; then
40819 rm -f conf$$ conf$$.exe conf$$.file
40821 if ln -s conf$$.file conf$$ 2>/dev/null; then
40822 # We could just check for DJGPP; but this test a) works b) is more generic
40823 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40824 if test -f conf$$.exe; then
40825 # Don't use ln at all; we don't have any links
40830 elif ln conf$$.file conf$$ 2>/dev/null; then
40835 rm -f conf$$ conf$$.exe conf$$.file
40837 if mkdir -p . 2>/dev/null; then
40840 test -d ./-p && rmdir ./-p
40844 as_executable_p="test -f"
40846 # Sed expression to map a string onto a valid CPP name.
40847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40849 # Sed expression to map a string onto a valid variable name.
40850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40854 # We need space, tab and new line, in precisely that order.
40864 # Open the log real soon, to keep \$[0] and so on meaningful, and to
40865 # report actual input values of CONFIG_FILES etc. instead of their
40866 # values after options handling. Logging --version etc. is OK.
40870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40871 ## Running $as_me. ##
40876 This file was extended by $as_me, which was
40877 generated by GNU Autoconf 2.59. Invocation command line was
40879 CONFIG_FILES = $CONFIG_FILES
40880 CONFIG_HEADERS = $CONFIG_HEADERS
40881 CONFIG_LINKS = $CONFIG_LINKS
40882 CONFIG_COMMANDS = $CONFIG_COMMANDS
40886 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40890 # Files that config.status was made for.
40891 if test -n "$ac_config_files"; then
40892 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40895 if test -n "$ac_config_headers"; then
40896 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40899 if test -n "$ac_config_links"; then
40900 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40903 if test -n "$ac_config_commands"; then
40904 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40907 cat >>$CONFIG_STATUS <<\_ACEOF
40910 \`$as_me' instantiates files from templates according to the
40911 current configuration.
40913 Usage: $0 [OPTIONS] [FILE]...
40915 -h, --help print this help, then exit
40916 -V, --version print version number, then exit
40917 -q, --quiet do not print progress messages
40918 -d, --debug don't remove temporary files
40919 --recheck update $as_me by reconfiguring in the same conditions
40920 --file=FILE[:TEMPLATE]
40921 instantiate the configuration file FILE
40922 --header=FILE[:TEMPLATE]
40923 instantiate the configuration header FILE
40925 Configuration files:
40928 Configuration headers:
40931 Configuration commands:
40934 Report bugs to <bug-autoconf@gnu.org>."
40937 cat >>$CONFIG_STATUS <<_ACEOF
40940 configured by $0, generated by GNU Autoconf 2.59,
40941 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40943 Copyright (C) 2003 Free Software Foundation, Inc.
40944 This config.status script is free software; the Free Software Foundation
40945 gives unlimited permission to copy, distribute and modify it."
40950 cat >>$CONFIG_STATUS <<\_ACEOF
40951 # If no file are specified by the user, then we need to provide default
40952 # value. By we need to know if files were specified by the user.
40958 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40959 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40967 *) # This is not an option, so the user has probably given explicit
40970 ac_need_defaults=false;;
40974 # Handling of the options.
40976 cat >>$CONFIG_STATUS <<\_ACEOF
40977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40979 --version | --vers* | -V )
40980 echo "$ac_cs_version"; exit 0 ;;
40982 # Conflict between --help and --header
40983 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40984 Try \`$0 --help' for more information." >&5
40985 echo "$as_me: error: ambiguous option: $1
40986 Try \`$0 --help' for more information." >&2;}
40987 { (exit 1); exit 1; }; };;
40988 --help | --hel | -h )
40989 echo "$ac_cs_usage"; exit 0 ;;
40990 --debug | --d* | -d )
40992 --file | --fil | --fi | --f )
40994 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40995 ac_need_defaults=false;;
40996 --header | --heade | --head | --hea )
40998 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40999 ac_need_defaults=false;;
41000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41004 # This is an error.
41005 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41006 Try \`$0 --help' for more information." >&5
41007 echo "$as_me: error: unrecognized option: $1
41008 Try \`$0 --help' for more information." >&2;}
41009 { (exit 1); exit 1; }; } ;;
41011 *) ac_config_targets="$ac_config_targets $1" ;;
41017 ac_configure_extra_args=
41019 if $ac_cs_silent; then
41021 ac_configure_extra_args="$ac_configure_extra_args --silent"
41025 cat >>$CONFIG_STATUS <<_ACEOF
41026 if \$ac_cs_recheck; then
41027 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41028 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41033 cat >>$CONFIG_STATUS <<_ACEOF
41035 # INIT-COMMANDS section.
41038 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41040 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41041 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41048 cat >>$CONFIG_STATUS <<\_ACEOF
41049 for ac_config_target in $ac_config_targets
41051 case "$ac_config_target" in
41052 # Handling of arguments.
41053 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41054 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41055 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41056 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41057 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41058 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41059 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41060 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41061 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41062 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41063 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41064 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41065 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41066 "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" ;;
41067 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41068 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41069 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41070 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41071 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41072 "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" ;;
41073 "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" ;;
41074 "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" ;;
41075 "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" ;;
41076 "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" ;;
41077 "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" ;;
41078 "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" ;;
41079 "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" ;;
41080 "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" ;;
41081 "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" ;;
41082 "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" ;;
41083 "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" ;;
41084 "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" ;;
41085 "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" ;;
41086 "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" ;;
41087 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41088 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
41089 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41090 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41091 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41092 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41093 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41094 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41095 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41096 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41098 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41099 { (exit 1); exit 1; }; };;
41103 # If the user did not use the arguments to specify the items to instantiate,
41104 # then the envvar interface is used. Set only those that are not.
41105 # We use the long form for the default assignment because of an extremely
41106 # bizarre bug on SunOS 4.1.3.
41107 if $ac_need_defaults; then
41108 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41109 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41110 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41113 # Have a temporary directory for convenience. Make it in the build tree
41114 # simply because there is no reason to put it here, and in addition,
41115 # creating and moving files from /tmp can sometimes cause problems.
41116 # Create a temporary directory, and hook for its removal unless debugging.
41119 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41120 trap '{ (exit 1); exit 1; }' 1 2 13 15
41123 # Create a (secure) tmp directory for tmp files.
41126 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41127 test -n "$tmp" && test -d "$tmp"
41130 tmp=./confstat$$-$RANDOM
41131 (umask 077 && mkdir $tmp)
41134 echo "$me: cannot create a temporary directory in ." >&2
41135 { (exit 1); exit 1; }
41140 cat >>$CONFIG_STATUS <<_ACEOF
41143 # CONFIG_FILES section.
41146 # No need to generate the scripts if there are no CONFIG_FILES.
41147 # This happens for instance when ./config.status config.h
41148 if test -n "\$CONFIG_FILES"; then
41149 # Protect against being on the right side of a sed subst in config.status.
41150 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41151 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41152 s,@SHELL@,$SHELL,;t t
41153 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41154 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41155 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41156 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41157 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41158 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41159 s,@exec_prefix@,$exec_prefix,;t t
41160 s,@prefix@,$prefix,;t t
41161 s,@program_transform_name@,$program_transform_name,;t t
41162 s,@bindir@,$bindir,;t t
41163 s,@sbindir@,$sbindir,;t t
41164 s,@libexecdir@,$libexecdir,;t t
41165 s,@datadir@,$datadir,;t t
41166 s,@sysconfdir@,$sysconfdir,;t t
41167 s,@sharedstatedir@,$sharedstatedir,;t t
41168 s,@localstatedir@,$localstatedir,;t t
41169 s,@libdir@,$libdir,;t t
41170 s,@includedir@,$includedir,;t t
41171 s,@oldincludedir@,$oldincludedir,;t t
41172 s,@infodir@,$infodir,;t t
41173 s,@mandir@,$mandir,;t t
41174 s,@build_alias@,$build_alias,;t t
41175 s,@host_alias@,$host_alias,;t t
41176 s,@target_alias@,$target_alias,;t t
41177 s,@DEFS@,$DEFS,;t t
41178 s,@ECHO_C@,$ECHO_C,;t t
41179 s,@ECHO_N@,$ECHO_N,;t t
41180 s,@ECHO_T@,$ECHO_T,;t t
41181 s,@LIBS@,$LIBS,;t t
41182 s,@build@,$build,;t t
41183 s,@build_cpu@,$build_cpu,;t t
41184 s,@build_vendor@,$build_vendor,;t t
41185 s,@build_os@,$build_os,;t t
41186 s,@host@,$host,;t t
41187 s,@host_cpu@,$host_cpu,;t t
41188 s,@host_vendor@,$host_vendor,;t t
41189 s,@host_os@,$host_os,;t t
41190 s,@target@,$target,;t t
41191 s,@target_cpu@,$target_cpu,;t t
41192 s,@target_vendor@,$target_vendor,;t t
41193 s,@target_os@,$target_os,;t t
41194 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41195 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41196 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41197 s,@CYGPATH_W@,$CYGPATH_W,;t t
41198 s,@PACKAGE@,$PACKAGE,;t t
41199 s,@VERSION@,$VERSION,;t t
41200 s,@ACLOCAL@,$ACLOCAL,;t t
41201 s,@AUTOCONF@,$AUTOCONF,;t t
41202 s,@AUTOMAKE@,$AUTOMAKE,;t t
41203 s,@AUTOHEADER@,$AUTOHEADER,;t t
41204 s,@MAKEINFO@,$MAKEINFO,;t t
41205 s,@install_sh@,$install_sh,;t t
41206 s,@STRIP@,$STRIP,;t t
41207 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41208 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41209 s,@mkdir_p@,$mkdir_p,;t t
41211 s,@SET_MAKE@,$SET_MAKE,;t t
41212 s,@am__leading_dot@,$am__leading_dot,;t t
41213 s,@AMTAR@,$AMTAR,;t t
41214 s,@am__tar@,$am__tar,;t t
41215 s,@am__untar@,$am__untar,;t t
41216 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41217 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41218 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41219 s,@top_builddir@,$top_builddir,;t t
41220 s,@ldap_subdir@,$ldap_subdir,;t t
41223 s,@CFLAGS@,$CFLAGS,;t t
41224 s,@LDFLAGS@,$LDFLAGS,;t t
41225 s,@CPPFLAGS@,$CPPFLAGS,;t t
41226 s,@ac_ct_CC@,$ac_ct_CC,;t t
41227 s,@EXEEXT@,$EXEEXT,;t t
41228 s,@OBJEXT@,$OBJEXT,;t t
41229 s,@DEPDIR@,$DEPDIR,;t t
41230 s,@am__include@,$am__include,;t t
41231 s,@am__quote@,$am__quote,;t t
41232 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41233 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41234 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41235 s,@CCDEPMODE@,$CCDEPMODE,;t t
41236 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41237 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41238 s,@EGREP@,$EGREP,;t t
41239 s,@LN_S@,$LN_S,;t t
41240 s,@ECHO@,$ECHO,;t t
41241 s,@ac_ct_AR@,$ac_ct_AR,;t t
41242 s,@RANLIB@,$RANLIB,;t t
41243 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41244 s,@DLLTOOL@,$DLLTOOL,;t t
41245 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41247 s,@ac_ct_AS@,$ac_ct_AS,;t t
41248 s,@OBJDUMP@,$OBJDUMP,;t t
41249 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41251 s,@LIBTOOL@,$LIBTOOL,;t t
41252 s,@PERLBIN@,$PERLBIN,;t t
41253 s,@OL_MKDEP@,$OL_MKDEP,;t t
41254 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41255 s,@LTSTATIC@,$LTSTATIC,;t t
41256 s,@LIBOBJS@,$LIBOBJS,;t t
41257 s,@LIBSRCS@,$LIBSRCS,;t t
41258 s,@PLAT@,$PLAT,;t t
41259 s,@WITH_SASL@,$WITH_SASL,;t t
41260 s,@WITH_TLS@,$WITH_TLS,;t t
41261 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41262 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41263 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41264 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41265 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41266 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41267 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41268 s,@BUILD_BDB@,$BUILD_BDB,;t t
41269 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41270 s,@BUILD_HDB@,$BUILD_HDB,;t t
41271 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41272 s,@BUILD_META@,$BUILD_META,;t t
41273 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41274 s,@BUILD_NULL@,$BUILD_NULL,;t t
41275 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41276 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41277 s,@BUILD_PERL@,$BUILD_PERL,;t t
41278 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41279 s,@BUILD_SQL@,$BUILD_SQL,;t t
41280 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41281 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41282 s,@BUILD_DDS@,$BUILD_DDS,;t t
41283 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41284 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41285 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41286 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41287 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41288 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41289 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41290 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41291 s,@BUILD_RWM@,$BUILD_RWM,;t t
41292 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41293 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41294 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41295 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41296 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41297 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41298 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41299 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41300 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41301 s,@BDB_LIBS@,$BDB_LIBS,;t t
41302 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41303 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41304 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41305 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41306 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41307 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41308 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41309 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41310 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41311 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41312 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41313 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41314 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41315 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41316 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41317 s,@SASL_LIBS@,$SASL_LIBS,;t t
41318 s,@TLS_LIBS@,$TLS_LIBS,;t t
41319 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41320 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41321 s,@LIBSLAPI@,$LIBSLAPI,;t t
41322 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41323 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41324 s,@ICU_LIBS@,$ICU_LIBS,;t t
41325 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41326 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41327 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41328 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41329 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41330 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41335 cat >>$CONFIG_STATUS <<\_ACEOF
41336 # Split the substitutions into bite-sized pieces for seds with
41337 # small command number limits, like on Digital OSF/1 and HP-UX.
41338 ac_max_sed_lines=48
41339 ac_sed_frag=1 # Number of current file.
41340 ac_beg=1 # First line for current file.
41341 ac_end=$ac_max_sed_lines # Line after last line for current file.
41344 while $ac_more_lines; do
41345 if test $ac_beg -gt 1; then
41346 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41348 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41350 if test ! -s $tmp/subs.frag; then
41351 ac_more_lines=false
41353 # The purpose of the label and of the branching condition is to
41354 # speed up the sed processing (if there are no `@' at all, there
41355 # is no need to browse any of the substitutions).
41356 # These are the two extra sed commands mentioned above.
41358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41359 if test -z "$ac_sed_cmds"; then
41360 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41362 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41364 ac_sed_frag=`expr $ac_sed_frag + 1`
41366 ac_end=`expr $ac_end + $ac_max_sed_lines`
41369 if test -z "$ac_sed_cmds"; then
41372 fi # test -n "$CONFIG_FILES"
41375 cat >>$CONFIG_STATUS <<\_ACEOF
41376 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41377 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41379 - | *:- | *:-:* ) # input from stdin
41381 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41383 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41384 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41385 * ) ac_file_in=$ac_file.in ;;
41388 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41389 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41391 X"$ac_file" : 'X\(//\)[^/]' \| \
41392 X"$ac_file" : 'X\(//\)$' \| \
41393 X"$ac_file" : 'X\(/\)' \| \
41394 . : '\(.\)' 2>/dev/null ||
41396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41398 /^X\(\/\/\)$/{ s//\1/; q; }
41399 /^X\(\/\).*/{ s//\1/; q; }
41401 { if $as_mkdir_p; then
41406 while test ! -d "$as_dir"; do
41407 as_dirs="$as_dir $as_dirs"
41408 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41410 X"$as_dir" : 'X\(//\)[^/]' \| \
41411 X"$as_dir" : 'X\(//\)$' \| \
41412 X"$as_dir" : 'X\(/\)' \| \
41413 . : '\(.\)' 2>/dev/null ||
41415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41417 /^X\(\/\/\)$/{ s//\1/; q; }
41418 /^X\(\/\).*/{ s//\1/; q; }
41421 test ! -n "$as_dirs" || mkdir $as_dirs
41422 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41423 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41424 { (exit 1); exit 1; }; }; }
41428 if test "$ac_dir" != .; then
41429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41430 # A "../" for each directory in $ac_dir_suffix.
41431 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41433 ac_dir_suffix= ac_top_builddir=
41437 .) # No --srcdir option. We are building in place.
41439 if test -z "$ac_top_builddir"; then
41442 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41444 [\\/]* | ?:[\\/]* ) # Absolute path.
41445 ac_srcdir=$srcdir$ac_dir_suffix;
41446 ac_top_srcdir=$srcdir ;;
41447 *) # Relative path.
41448 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41449 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41452 # Do not use `cd foo && pwd` to compute absolute paths, because
41453 # the directories may not exist.
41455 .) ac_abs_builddir="$ac_dir";;
41458 .) ac_abs_builddir=`pwd`;;
41459 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41460 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41463 case $ac_abs_builddir in
41464 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41466 case ${ac_top_builddir}. in
41467 .) ac_abs_top_builddir=$ac_abs_builddir;;
41468 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41469 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41472 case $ac_abs_builddir in
41473 .) ac_abs_srcdir=$ac_srcdir;;
41476 .) ac_abs_srcdir=$ac_abs_builddir;;
41477 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41478 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41481 case $ac_abs_builddir in
41482 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41484 case $ac_top_srcdir in
41485 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41486 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41487 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41494 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41497 if test x"$ac_file" != x-; then
41498 { echo "$as_me:$LINENO: creating $ac_file" >&5
41499 echo "$as_me: creating $ac_file" >&6;}
41502 # Let's still pretend it is `configure' which instantiates (i.e., don't
41503 # use $as_me), people would be surprised to read:
41504 # /* config.h. Generated by config.status. */
41505 if test x"$ac_file" = x-; then
41508 configure_input="$ac_file. "
41510 configure_input=$configure_input"Generated from `echo $ac_file_in |
41511 sed 's,.*/,,'` by configure."
41513 # First look for the input files in the build tree, otherwise in the
41515 ac_file_inputs=`IFS=:
41516 for f in $ac_file_in; do
41518 -) echo $tmp/stdin ;;
41520 # Absolute (can't be DOS-style, as IFS=:)
41521 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41522 echo "$as_me: error: cannot find input file: $f" >&2;}
41523 { (exit 1); exit 1; }; }
41526 if test -f "$f"; then
41529 elif test -f "$srcdir/$f"; then
41534 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41535 echo "$as_me: error: cannot find input file: $f" >&2;}
41536 { (exit 1); exit 1; }; }
41539 done` || { (exit 1); exit 1; }
41541 cat >>$CONFIG_STATUS <<_ACEOF
41545 cat >>$CONFIG_STATUS <<\_ACEOF
41547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41548 s,@configure_input@,$configure_input,;t t
41549 s,@srcdir@,$ac_srcdir,;t t
41550 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41551 s,@top_srcdir@,$ac_top_srcdir,;t t
41552 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41553 s,@builddir@,$ac_builddir,;t t
41554 s,@abs_builddir@,$ac_abs_builddir,;t t
41555 s,@top_builddir@,$ac_top_builddir,;t t
41556 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41557 s,@INSTALL@,$ac_INSTALL,;t t
41558 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41560 if test x"$ac_file" != x-; then
41561 mv $tmp/out $ac_file
41569 cat >>$CONFIG_STATUS <<\_ACEOF
41572 # CONFIG_HEADER section.
41575 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41576 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41578 # ac_d sets the value in "#define NAME VALUE" lines.
41579 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41580 ac_dB='[ ].*$,\1#\2'
41583 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41584 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41585 ac_uB='$,\1#\2define\3'
41589 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41590 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41592 - | *:- | *:-:* ) # input from stdin
41594 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41596 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41597 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41598 * ) ac_file_in=$ac_file.in ;;
41601 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41602 echo "$as_me: creating $ac_file" >&6;}
41604 # First look for the input files in the build tree, otherwise in the
41606 ac_file_inputs=`IFS=:
41607 for f in $ac_file_in; do
41609 -) echo $tmp/stdin ;;
41611 # Absolute (can't be DOS-style, as IFS=:)
41612 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41613 echo "$as_me: error: cannot find input file: $f" >&2;}
41614 { (exit 1); exit 1; }; }
41615 # Do quote $f, to prevent DOS paths from being IFS'd.
41618 if test -f "$f"; then
41621 elif test -f "$srcdir/$f"; then
41626 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41627 echo "$as_me: error: cannot find input file: $f" >&2;}
41628 { (exit 1); exit 1; }; }
41631 done` || { (exit 1); exit 1; }
41632 # Remove the trailing spaces.
41633 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41637 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41638 # `conftest.undefs', that substitutes the proper values into
41639 # config.h.in to produce config.h. The first handles `#define'
41640 # templates, and the second `#undef' templates.
41641 # And first: Protect against being on the right side of a sed subst in
41642 # config.status. Protect against being in an unquoted here document
41643 # in config.status.
41644 rm -f conftest.defines conftest.undefs
41645 # Using a here document instead of a string reduces the quoting nightmare.
41646 # Putting comments in sed scripts is not portable.
41648 # `end' is used to avoid that the second main sed command (meant for
41649 # 0-ary CPP macros) applies to n-ary macro definitions.
41650 # See the Autoconf documentation for `clear'.
41651 cat >confdef2sed.sed <<\_ACEOF
41656 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41658 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41661 # If some macros were called several times there might be several times
41662 # the same #defines, which is useless. Nevertheless, we may not want to
41663 # sort them, since we want the *last* AC-DEFINE to be honored.
41664 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41665 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41666 rm -f confdef2sed.sed
41668 # This sed command replaces #undef with comments. This is necessary, for
41669 # example, in the case of _POSIX_SOURCE, which is predefined and required
41670 # on some systems where configure will not decide to define it.
41671 cat >>conftest.undefs <<\_ACEOF
41672 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41675 # Break up conftest.defines because some shells have a limit on the size
41676 # of here documents, and old seds have small limits too (100 cmds).
41677 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41678 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41679 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41680 echo ' :' >>$CONFIG_STATUS
41681 rm -f conftest.tail
41682 while grep . conftest.defines >/dev/null
41684 # Write a limited-size here document to $tmp/defines.sed.
41685 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41686 # Speed up: don't consider the non `#define' lines.
41687 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
41688 # Work around the forget-to-reset-the-flag bug.
41689 echo 't clr' >>$CONFIG_STATUS
41690 echo ': clr' >>$CONFIG_STATUS
41691 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41693 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41695 mv $tmp/out $tmp/in
41697 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41698 rm -f conftest.defines
41699 mv conftest.tail conftest.defines
41701 rm -f conftest.defines
41702 echo ' fi # grep' >>$CONFIG_STATUS
41703 echo >>$CONFIG_STATUS
41705 # Break up conftest.undefs because some shells have a limit on the size
41706 # of here documents, and old seds have small limits too (100 cmds).
41707 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
41708 rm -f conftest.tail
41709 while grep . conftest.undefs >/dev/null
41711 # Write a limited-size here document to $tmp/undefs.sed.
41712 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41713 # Speed up: don't consider the non `#undef'
41714 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
41715 # Work around the forget-to-reset-the-flag bug.
41716 echo 't clr' >>$CONFIG_STATUS
41717 echo ': clr' >>$CONFIG_STATUS
41718 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41720 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41722 mv $tmp/out $tmp/in
41724 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41725 rm -f conftest.undefs
41726 mv conftest.tail conftest.undefs
41728 rm -f conftest.undefs
41730 cat >>$CONFIG_STATUS <<\_ACEOF
41731 # Let's still pretend it is `configure' which instantiates (i.e., don't
41732 # use $as_me), people would be surprised to read:
41733 # /* config.h. Generated by config.status. */
41734 if test x"$ac_file" = x-; then
41735 echo "/* Generated by configure. */" >$tmp/config.h
41737 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
41739 cat $tmp/in >>$tmp/config.h
41741 if test x"$ac_file" != x-; then
41742 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41743 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41744 echo "$as_me: $ac_file is unchanged" >&6;}
41746 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41748 X"$ac_file" : 'X\(//\)[^/]' \| \
41749 X"$ac_file" : 'X\(//\)$' \| \
41750 X"$ac_file" : 'X\(/\)' \| \
41751 . : '\(.\)' 2>/dev/null ||
41753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41754 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41755 /^X\(\/\/\)$/{ s//\1/; q; }
41756 /^X\(\/\).*/{ s//\1/; q; }
41758 { if $as_mkdir_p; then
41763 while test ! -d "$as_dir"; do
41764 as_dirs="$as_dir $as_dirs"
41765 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41767 X"$as_dir" : 'X\(//\)[^/]' \| \
41768 X"$as_dir" : 'X\(//\)$' \| \
41769 X"$as_dir" : 'X\(/\)' \| \
41770 . : '\(.\)' 2>/dev/null ||
41772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41773 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41774 /^X\(\/\/\)$/{ s//\1/; q; }
41775 /^X\(\/\).*/{ s//\1/; q; }
41778 test ! -n "$as_dirs" || mkdir $as_dirs
41779 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41780 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41781 { (exit 1); exit 1; }; }; }
41784 mv $tmp/config.h $ac_file
41788 rm -f $tmp/config.h
41790 # Compute $ac_file's index in $config_headers.
41792 for _am_header in $config_headers :; do
41793 case $_am_header in
41794 $ac_file | $ac_file:* )
41797 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41800 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
41801 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41802 X$ac_file : 'X\(//\)[^/]' \| \
41803 X$ac_file : 'X\(//\)$' \| \
41804 X$ac_file : 'X\(/\)' \| \
41805 . : '\(.\)' 2>/dev/null ||
41807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41809 /^X\(\/\/\)$/{ s//\1/; q; }
41810 /^X\(\/\).*/{ s//\1/; q; }
41811 s/.*/./; q'`/stamp-h$_am_stamp_count
41814 cat >>$CONFIG_STATUS <<\_ACEOF
41817 # CONFIG_COMMANDS section.
41819 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41820 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41821 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41822 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41823 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41824 X"$ac_dest" : 'X\(//\)[^/]' \| \
41825 X"$ac_dest" : 'X\(//\)$' \| \
41826 X"$ac_dest" : 'X\(/\)' \| \
41827 . : '\(.\)' 2>/dev/null ||
41829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41831 /^X\(\/\/\)$/{ s//\1/; q; }
41832 /^X\(\/\).*/{ s//\1/; q; }
41834 { if $as_mkdir_p; then
41839 while test ! -d "$as_dir"; do
41840 as_dirs="$as_dir $as_dirs"
41841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41843 X"$as_dir" : 'X\(//\)[^/]' \| \
41844 X"$as_dir" : 'X\(//\)$' \| \
41845 X"$as_dir" : 'X\(/\)' \| \
41846 . : '\(.\)' 2>/dev/null ||
41848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41850 /^X\(\/\/\)$/{ s//\1/; q; }
41851 /^X\(\/\).*/{ s//\1/; q; }
41854 test ! -n "$as_dirs" || mkdir $as_dirs
41855 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41856 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41857 { (exit 1); exit 1; }; }; }
41861 if test "$ac_dir" != .; then
41862 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41863 # A "../" for each directory in $ac_dir_suffix.
41864 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41866 ac_dir_suffix= ac_top_builddir=
41870 .) # No --srcdir option. We are building in place.
41872 if test -z "$ac_top_builddir"; then
41875 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41877 [\\/]* | ?:[\\/]* ) # Absolute path.
41878 ac_srcdir=$srcdir$ac_dir_suffix;
41879 ac_top_srcdir=$srcdir ;;
41880 *) # Relative path.
41881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41882 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41885 # Do not use `cd foo && pwd` to compute absolute paths, because
41886 # the directories may not exist.
41888 .) ac_abs_builddir="$ac_dir";;
41891 .) ac_abs_builddir=`pwd`;;
41892 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41893 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41896 case $ac_abs_builddir in
41897 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41899 case ${ac_top_builddir}. in
41900 .) ac_abs_top_builddir=$ac_abs_builddir;;
41901 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41902 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41905 case $ac_abs_builddir in
41906 .) ac_abs_srcdir=$ac_srcdir;;
41909 .) ac_abs_srcdir=$ac_abs_builddir;;
41910 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41911 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41914 case $ac_abs_builddir in
41915 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41917 case $ac_top_srcdir in
41918 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41919 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41920 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41925 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41926 echo "$as_me: executing $ac_dest commands" >&6;}
41928 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
41929 # Strip MF so we end up with the name of the file.
41930 mf=`echo "$mf" | sed -e 's/:.*$//'`
41931 # Check whether this is an Automake generated Makefile or not.
41932 # We used to match only the files named `Makefile.in', but
41933 # some people rename them; so instead we look at the file content.
41934 # Grep'ing the first line is not enough: some people post-process
41935 # each Makefile.in and add a new line on top of each file to say so.
41936 # So let's grep whole file.
41937 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
41938 dirpart=`(dirname "$mf") 2>/dev/null ||
41939 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41940 X"$mf" : 'X\(//\)[^/]' \| \
41941 X"$mf" : 'X\(//\)$' \| \
41942 X"$mf" : 'X\(/\)' \| \
41943 . : '\(.\)' 2>/dev/null ||
41945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41947 /^X\(\/\/\)$/{ s//\1/; q; }
41948 /^X\(\/\).*/{ s//\1/; q; }
41953 # Extract the definition of DEPDIR, am__include, and am__quote
41954 # from the Makefile without running `make'.
41955 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41956 test -z "$DEPDIR" && continue
41957 am__include=`sed -n 's/^am__include = //p' < "$mf"`
41958 test -z "am__include" && continue
41959 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41960 # When using ansi2knr, U may be empty or an underscore; expand it
41961 U=`sed -n 's/^U = //p' < "$mf"`
41962 # Find all dependency output files, they are included files with
41963 # $(DEPDIR) in their names. We invoke sed twice because it is the
41964 # simplest approach to changing $(DEPDIR) to its actual value in the
41966 for file in `sed -n "
41967 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41968 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
41969 # Make sure the directory exists.
41970 test -f "$dirpart/$file" && continue
41971 fdir=`(dirname "$file") 2>/dev/null ||
41972 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41973 X"$file" : 'X\(//\)[^/]' \| \
41974 X"$file" : 'X\(//\)$' \| \
41975 X"$file" : 'X\(/\)' \| \
41976 . : '\(.\)' 2>/dev/null ||
41978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41980 /^X\(\/\/\)$/{ s//\1/; q; }
41981 /^X\(\/\).*/{ s//\1/; q; }
41983 { if $as_mkdir_p; then
41984 mkdir -p $dirpart/$fdir
41986 as_dir=$dirpart/$fdir
41988 while test ! -d "$as_dir"; do
41989 as_dirs="$as_dir $as_dirs"
41990 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41992 X"$as_dir" : 'X\(//\)[^/]' \| \
41993 X"$as_dir" : 'X\(//\)$' \| \
41994 X"$as_dir" : 'X\(/\)' \| \
41995 . : '\(.\)' 2>/dev/null ||
41997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41999 /^X\(\/\/\)$/{ s//\1/; q; }
42000 /^X\(\/\).*/{ s//\1/; q; }
42003 test ! -n "$as_dirs" || mkdir $as_dirs
42004 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42005 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42006 { (exit 1); exit 1; }; }; }
42008 # echo "creating $dirpart/$file"
42009 echo '# dummy' > "$dirpart/$file"
42016 BACKENDSC="servers/slapd/backends.c"
42017 echo "Making $BACKENDSC"
42019 cat > $BACKENDSC << ENDX
42020 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42022 * Copyright 1998-2006 The OpenLDAP Foundation.
42023 * All rights reserved.
42025 * Redistribution and use in source and binary forms, with or without
42026 * modification, are permitted only as authorized by the OpenLDAP
42029 * A copy of this license is available in the file LICENSE in the
42030 * top-level directory of the distribution or, alternatively, at
42031 * <http://www.OpenLDAP.org/license.html>.
42033 /* This file is automatically generated by configure; please do not edit. */
42035 #include "portable.h"
42039 if test "${STATIC_BACKENDS}"; then
42040 for b in config ${STATIC_BACKENDS}; do
42041 bb=`echo "${b}" | sed -e 's/back-//'`
42042 cat >> $BACKENDSC << ENDX
42043 extern BI_init ${bb}_back_initialize;
42047 cat >> $BACKENDSC << ENDX
42049 BackendInfo slap_binfo[] = {
42052 for b in config ${STATIC_BACKENDS}; do
42053 bb=`echo "${b}" | sed -e 's/back-//'`
42054 echo " Add ${bb} ..."
42055 cat >> $BACKENDSC << ENDX
42056 { "${bb}", ${bb}_back_initialize },
42060 cat >> $BACKENDSC << ENDX
42064 /* end of generated file */
42067 OVERLAYSC="servers/slapd/overlays/statover.c"
42068 echo "Making $OVERLAYSC"
42070 cat > $OVERLAYSC << ENDX
42071 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42073 * Copyright 1998-2006 The OpenLDAP Foundation.
42074 * All rights reserved.
42076 * Redistribution and use in source and binary forms, with or without
42077 * modification, are permitted only as authorized by the OpenLDAP
42080 * A copy of this license is available in the file LICENSE in the
42081 * top-level directory of the distribution or, alternatively, at
42082 * <http://www.OpenLDAP.org/license.html>.
42084 /* This file is automatically generated by configure; please do not edit. */
42086 #include "portable.h"
42090 if test "${STATIC_OVERLAYS}"; then
42091 for o in ${STATIC_OVERLAYS}; do
42092 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42093 cat >> $OVERLAYSC << ENDX
42094 extern OV_init ${oo}_initialize;
42099 cat >> $OVERLAYSC << ENDX
42101 OverlayInit slap_oinfo[] = {
42104 if test "${STATIC_OVERLAYS}"; then
42105 for o in ${STATIC_OVERLAYS}; do
42106 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42107 echo " Add ${oo} ..."
42108 cat >> $OVERLAYSC << ENDX
42109 { "${oo}", ${oo}_initialize },
42114 cat >> $OVERLAYSC << ENDX
42118 /* end of generated file */
42121 echo Please run \"make depend\" to build dependencies
42127 cat >>$CONFIG_STATUS <<\_ACEOF
42129 { (exit 0); exit 0; }
42131 chmod +x $CONFIG_STATUS
42132 ac_clean_files=$ac_clean_files_save
42135 # configure is writing to config.log, and then calls config.status.
42136 # config.status does its own redirection, appending to config.log.
42137 # Unfortunately, on DOS this fails, as config.log is still kept open
42138 # by configure, so config.status won't be able to write to it; its
42139 # output is simply discarded. So we exec the FD to /dev/null,
42140 # effectively closing config.log, so it can be properly (re)opened and
42141 # appended to by config.status. When coming back to configure, we
42142 # need to make the FD available again.
42143 if test "$no_create" != yes; then
42145 ac_config_status_args=
42146 test "$silent" = yes &&
42147 ac_config_status_args="$ac_config_status_args --quiet"
42149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42152 # would make configure fail if this is the last instruction.
42153 $ac_cs_success || { (exit 1); exit 1; }