2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.639 2006/10/11 10:36:54 kurt 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_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT 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-constraint Attribute Constraint overlay no|yes|mod [no]
1051 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1052 --enable-denyop Deny Operation overlay no|yes|mod [no]
1053 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1054 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1055 --enable-lastmod Last Modification overlay no|yes|mod [no]
1056 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1057 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1058 --enable-refint Referential Integrity overlay no|yes|mod [no]
1059 --enable-retcode Return Code testing overlay no|yes|mod [no]
1060 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1061 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1062 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1063 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1064 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1065 --enable-valsort Value Sorting overlay no|yes|mod [no]
1067 SLURPD (Replication Daemon) Options:
1068 --enable-slurpd enable building slurpd [auto]
1070 Library Generation & Linking Options
1071 --enable-static[=PKGS]
1072 build static libraries [default=yes]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-fast-install[=PKGS]
1076 optimize for fast installation [default=yes]
1077 --disable-dependency-tracking speeds up one-time build
1078 --enable-dependency-tracking do not reject slow dependency extractors
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-subdir=DIR change default subdirectory used for installs
1085 --with-cyrus-sasl with Cyrus SASL support [auto]
1086 --with-fetch with fetch(3) URL support [auto]
1087 --with-threads with threads [auto]
1088 --with-tls with TLS/SSL support [auto]
1089 --with-yielding-select with implicitly yielding select [auto]
1090 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1091 --with-odbc with specific ODBC support iodbc|unixodbc|auto [auto]
1092 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1093 --with-pic try to use only PIC/non-PIC objects [default=use
1096 include additional configurations [automatic]
1098 See INSTALL file for further details.
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 ac_dir_suffix= ac_top_builddir=
1131 .) # No --srcdir option. We are building in place.
1133 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1149 .) ac_abs_builddir="$ac_dir";;
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1196 $ac_configure --help
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1212 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59. Invocation command line was
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1243 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1244 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1247 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1248 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1249 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 test -z "$as_dir" && as_dir=.
1258 echo "PATH: $as_dir"
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1282 ac_must_keep_next=false
1288 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290 | -silent | --silent | --silen | --sile | --sil)
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299 if test $ac_must_keep_next = true; then
1300 ac_must_keep_next=false # Got value, back to normal.
1303 *=* | --config-cache | -C | -disable-* | --disable-* \
1304 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306 | -with-* | --with-* | -without-* | --without-* | --x)
1307 case "$ac_configure_args0 " in
1308 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311 -* ) ac_must_keep_next=true ;;
1314 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315 # Get rid of the leading space.
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log. We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330 # Save into config.log some information that might help in debugging.
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1340 # The following way of writing the cache mishandles newlines in values,
1343 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1363 for ac_var in $ac_subst_vars
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
1370 if test -n "$ac_subst_files"; then
1377 for ac_var in $ac_subst_files
1379 eval ac_val=$`echo $ac_var`
1380 echo "$ac_var='"'"'$ac_val'"'"'"
1385 if test -s confdefs.h; then
1392 sed "/^$/d" confdefs.h | sort
1395 test "$ac_signal" != 0 &&
1396 echo "$as_me: caught signal $ac_signal"
1397 echo "$as_me: exit $exit_status"
1399 rm -f core *.core &&
1400 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403 for ac_signal in 1 2 13 15; do
1404 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 # Predefined preprocessor variables.
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443 if test "x$prefix" != xNONE; then
1444 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449 for ac_site_file in $CONFIG_SITE; do
1450 if test -r "$ac_site_file"; then
1451 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453 sed 's/^/| /' "$ac_site_file" >&5
1459 # Check that the precious variables saved in the cache have kept the same
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1559 for ac_dir in build $srcdir/build; do
1560 if test -f $ac_dir/install-sh; then
1562 ac_install_sh="$ac_aux_dir/install-sh -c"
1564 elif test -f $ac_dir/install.sh; then
1566 ac_install_sh="$ac_aux_dir/install.sh -c"
1568 elif test -f $ac_dir/shtool; then
1570 ac_install_sh="$ac_aux_dir/shtool install -c"
1574 if test -z "$ac_aux_dir"; then
1575 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1576 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1577 { (exit 1); exit 1; }; }
1579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583 eval `$ac_aux_dir/version.sh`
1584 if test -z "$OL_STRING"; then
1585 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1586 echo "$as_me: error: could not determine version" >&2;}
1587 { (exit 1); exit 1; }; }
1590 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1591 ac_cv_shtool="$ac_aux_dir/shtool"
1593 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1594 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1595 { (exit 1); exit 1; }; }
1598 SHTOOL="$ac_cv_shtool"
1600 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1604 if test -d $ac_aux_dir/CVS; then
1605 OPENLDAP_CVS="(from CVS sources) "
1608 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614 { (exit 1); exit 1; }; }
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623 ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627 { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649 ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664 echo "$as_me:$LINENO: checking target system type" >&5
1665 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1666 if test "${ac_cv_target+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 ac_cv_target_alias=$target_alias
1670 test "x$ac_cv_target_alias" = "x" &&
1671 ac_cv_target_alias=$ac_cv_host_alias
1672 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1673 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1674 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1675 { (exit 1); exit 1; }; }
1678 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1679 echo "${ECHO_T}$ac_cv_target" >&6
1680 target=$ac_cv_target
1681 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1686 # The aliases save the names the user supplied, while $host etc.
1687 # will get canonicalized.
1688 test -n "$target_alias" &&
1689 test "$program_prefix$program_suffix$program_transform_name" = \
1691 program_prefix=${target_alias}-
1693 am__api_version="1.9"
1694 # Find a good install program. We prefer a C program (faster),
1695 # so one script is as good as another. But avoid the broken or
1696 # incompatible versions:
1697 # SysV /etc/install, /usr/sbin/install
1698 # SunOS /usr/etc/install
1699 # IRIX /sbin/install
1701 # AmigaOS /C/install, which installs bootblocks on floppy discs
1702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1705 # OS/2's system install, which has a completely different semantic
1706 # ./install, which can be erroneously created by make from ./install.sh.
1707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1709 if test -z "$INSTALL"; then
1710 if test "${ac_cv_path_install+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 # Account for people who put trailing slashes in PATH elements.
1720 ./ | .// | /cC/* | \
1721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1725 # OSF1 and SCO ODT 3.0 have their own names for install.
1726 # Don't use installbsd from OSF since it installs stuff as root
1728 for ac_prog in ginstall scoinst install; do
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731 if test $ac_prog = install &&
1732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733 # AIX install. It has an incompatible calling convention.
1735 elif test $ac_prog = install &&
1736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # program-specific install script used by HP pwplus--don't use.
1740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1752 if test "${ac_cv_path_install+set}" = set; then
1753 INSTALL=$ac_cv_path_install
1755 # As a last resort, use the slow shell script. We don't cache a
1756 # path for INSTALL within a source directory, because that will
1757 # break other packages using the cache if that directory is
1758 # removed, or if the path is relative.
1759 INSTALL=$ac_install_sh
1762 echo "$as_me:$LINENO: result: $INSTALL" >&5
1763 echo "${ECHO_T}$INSTALL" >&6
1765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766 # It thinks the first close brace ends the variable substitution.
1767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1774 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1777 echo timestamp > conftest.file
1778 # Do `set' in a subshell so we don't clobber the current shell's
1779 # arguments. Must try -L first in case configure is actually a
1780 # symlink; some systems play weird games with the mod time of symlinks
1781 # (eg FreeBSD returns the mod time of the symlink's containing
1784 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1785 if test "$*" = "X"; then
1787 set X `ls -t $srcdir/configure conftest.file`
1790 if test "$*" != "X $srcdir/configure conftest.file" \
1791 && test "$*" != "X conftest.file $srcdir/configure"; then
1793 # If neither matched, then we have a broken ls. This can happen
1794 # if, for instance, CONFIG_SHELL is bash and it inherits a
1795 # broken ls alias from the environment. This has actually
1796 # happened. Such a system could not be considered "sane".
1797 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1798 alias in your environment" >&5
1799 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1800 alias in your environment" >&2;}
1801 { (exit 1); exit 1; }; }
1804 test "$2" = conftest.file
1810 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1811 Check your system clock" >&5
1812 echo "$as_me: error: newly created file is older than distributed files!
1813 Check your system clock" >&2;}
1814 { (exit 1); exit 1; }; }
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1818 test "$program_prefix" != NONE &&
1819 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1820 # Use a double $ so make ignores it.
1821 test "$program_suffix" != NONE &&
1822 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1823 # Double any \ or $. echo might interpret backslashes.
1824 # By default was `s,x,x', remove it if useless.
1825 cat <<\_ACEOF >conftest.sed
1826 s/[\\$]/&&/g;s/;s,x,x,$//
1828 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1831 # expand $ac_aux_dir to an absolute path
1832 am_aux_dir=`cd $ac_aux_dir && pwd`
1834 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1835 # Use eval to expand $SHELL
1836 if eval "$MISSING --run true"; then
1837 am_missing_run="$MISSING --run "
1840 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1841 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1844 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1845 # We used to keeping the `.' as first argument, in order to
1846 # allow $(mkdir_p) to be used without argument. As in
1847 # $(mkdir_p) $(somedir)
1848 # where $(somedir) is conditionally defined. However this is wrong
1850 # 1. if the package is installed by a user who cannot write `.'
1851 # make install will fail,
1852 # 2. the above comment should most certainly read
1853 # $(mkdir_p) $(DESTDIR)$(somedir)
1854 # so it does not work when $(somedir) is undefined and
1855 # $(DESTDIR) is not.
1856 # To support the latter case, we have to write
1857 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1858 # so the `.' trick is pointless.
1859 mkdir_p='mkdir -p --'
1861 # On NextStep and OpenStep, the `mkdir' command does not
1862 # recognize any option. It will interpret all options as
1863 # directories to create, and then abort because `.' already
1865 for d in ./-p ./--version;
1867 test -d $d && rmdir $d
1869 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1870 if test -f "$ac_aux_dir/mkinstalldirs"; then
1871 mkdir_p='$(mkinstalldirs)'
1873 mkdir_p='$(install_sh) -d'
1877 for ac_prog in gawk mawk nawk awk
1879 # Extract the first word of "$ac_prog", so it can be a program name with args.
1880 set dummy $ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_AWK+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$AWK"; then
1887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_AWK="$ac_prog"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 if test -n "$AWK"; then
1907 echo "$as_me:$LINENO: result: $AWK" >&5
1908 echo "${ECHO_T}$AWK" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1914 test -n "$AWK" && break
1917 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1918 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1919 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1920 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 cat >conftest.make <<\_ACEOF
1925 @echo 'ac_maketemp="$(MAKE)"'
1927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1928 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1929 if test -n "$ac_maketemp"; then
1930 eval ac_cv_prog_make_${ac_make}_set=yes
1932 eval ac_cv_prog_make_${ac_make}_set=no
1936 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1937 echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 SET_MAKE="MAKE=${MAKE-make}"
1946 rm -rf .tst 2>/dev/null
1947 mkdir .tst 2>/dev/null
1948 if test -d .tst; then
1953 rmdir .tst 2>/dev/null
1955 # test to see if srcdir already configured
1956 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1957 test -f $srcdir/config.status; then
1958 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1959 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # test whether we have cygpath
1964 if test -z "$CYGPATH_W"; then
1965 if (cygpath --version) >/dev/null 2>/dev/null; then
1966 CYGPATH_W='cygpath -w'
1973 # Define the identity of the package.
1978 # Some tools Automake needs.
1980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1994 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1996 # Installed binaries are usually stripped using `strip' when the user
1997 # run `make install-strip'. However `strip' might not be the right
1998 # tool to use in cross-compilation environments, therefore Automake
1999 # will honor the `STRIP' environment variable to overrule this program.
2000 if test "$cross_compiling" != no; then
2001 if test -n "$ac_tool_prefix"; then
2002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_STRIP+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$STRIP"; then
2010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 STRIP=$ac_cv_prog_STRIP
2029 if test -n "$STRIP"; then
2030 echo "$as_me:$LINENO: result: $STRIP" >&5
2031 echo "${ECHO_T}$STRIP" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2038 if test -z "$ac_cv_prog_STRIP"; then
2040 # Extract the first word of "strip", so it can be a program name with args.
2041 set dummy strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$ac_ct_STRIP"; then
2048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_ac_ct_STRIP="strip"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2068 if test -n "$ac_ct_STRIP"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2070 echo "${ECHO_T}$ac_ct_STRIP" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2078 STRIP="$ac_cv_prog_STRIP"
2082 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2084 # We need awk for the "check" target. The system "awk" is bad on
2086 # Always define AMTAR for backward compatibility.
2088 AMTAR=${AMTAR-"${am_missing_run}tar"}
2090 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2096 cat >>confdefs.h <<_ACEOF
2097 #define OPENLDAP_PACKAGE "$PACKAGE"
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_VERSION "$VERSION"
2107 cat >>confdefs.h <<_ACEOF
2108 #define LDAP_VENDOR_VERSION $OL_API_INC
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2127 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2129 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2131 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2139 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2141 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2143 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2146 echo "$as_me:$LINENO: checking configure arguments" >&5
2147 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2152 ldap_subdir="/openldap"
2155 # Check whether --with-subdir or --without-subdir was given.
2156 if test "${with_subdir+set}" = set; then
2157 withval="$with_subdir"
2164 ldap_subdir="$withval"
2167 ldap_subdir="/$withval"
2173 # OpenLDAP --enable-debug
2175 # Check whether --enable-debug or --disable-debug was given.
2176 if test "${enable_debug+set}" = set; then
2177 enableval="$enable_debug"
2180 for ol_val in no yes traditional ; do
2181 if test "$enableval" = "$ol_val" ; then
2185 if test "$ol_arg" = "invalid" ; then
2186 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2187 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2188 { (exit 1); exit 1; }; }
2190 ol_enable_debug="$ol_arg"
2195 # end --enable-debug
2196 # OpenLDAP --enable-dynamic
2198 # Check whether --enable-dynamic or --disable-dynamic was given.
2199 if test "${enable_dynamic+set}" = set; then
2200 enableval="$enable_dynamic"
2203 for ol_val in auto yes no ; do
2204 if test "$enableval" = "$ol_val" ; then
2208 if test "$ol_arg" = "invalid" ; then
2209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2210 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2211 { (exit 1); exit 1; }; }
2213 ol_enable_dynamic="$ol_arg"
2216 ol_enable_dynamic=no
2218 # end --enable-dynamic
2219 # OpenLDAP --enable-syslog
2221 # Check whether --enable-syslog or --disable-syslog was given.
2222 if test "${enable_syslog+set}" = set; then
2223 enableval="$enable_syslog"
2226 for ol_val in auto yes no ; do
2227 if test "$enableval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2234 { (exit 1); exit 1; }; }
2236 ol_enable_syslog="$ol_arg"
2239 ol_enable_syslog=auto
2241 # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2244 # Check whether --enable-proctitle or --disable-proctitle was given.
2245 if test "${enable_proctitle+set}" = set; then
2246 enableval="$enable_proctitle"
2249 for ol_val in auto yes no ; do
2250 if test "$enableval" = "$ol_val" ; then
2254 if test "$ol_arg" = "invalid" ; then
2255 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2256 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2257 { (exit 1); exit 1; }; }
2259 ol_enable_proctitle="$ol_arg"
2262 ol_enable_proctitle=yes
2264 # end --enable-proctitle
2265 ol_enable_referrals=${ol_enable_referrals-no}
2266 ol_enable_kbind=${ol_enable_kbind-no}
2267 # OpenLDAP --enable-ipv6
2269 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271 enableval="$enable_ipv6"
2274 for ol_val in auto yes no ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282 { (exit 1); exit 1; }; }
2284 ol_enable_ipv6="$ol_arg"
2290 # OpenLDAP --enable-local
2292 # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294 enableval="$enable_local"
2297 for ol_val in auto yes no ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305 { (exit 1); exit 1; }; }
2307 ol_enable_local="$ol_arg"
2310 ol_enable_local=auto
2312 # end --enable-local
2314 # OpenLDAP --with-cyrus_sasl
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318 withval="$with_cyrus_sasl"
2321 for ol_val in auto yes no ; do
2322 if test "$withval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329 { (exit 1); exit 1; }; }
2331 ol_with_cyrus_sasl="$ol_arg"
2334 ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2337 # OpenLDAP --with-fetch
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341 withval="$with_fetch"
2344 for ol_val in auto yes no ; do
2345 if test "$withval" = "$ol_val" ; then
2349 if test "$ol_arg" = "invalid" ; then
2350 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352 { (exit 1); exit 1; }; }
2354 ol_with_fetch="$ol_arg"
2357 ol_with_fetch="auto"
2358 fi; # end --with-fetch
2360 ol_with_kerberos=${ol_with_kerberos-auto}
2361 # OpenLDAP --with-threads
2363 # Check whether --with-threads or --without-threads was given.
2364 if test "${with_threads+set}" = set; then
2365 withval="$with_threads"
2368 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2369 if test "$withval" = "$ol_val" ; then
2373 if test "$ol_arg" = "invalid" ; then
2374 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2375 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2376 { (exit 1); exit 1; }; }
2378 ol_with_threads="$ol_arg"
2381 ol_with_threads="auto"
2382 fi; # end --with-threads
2384 # OpenLDAP --with-tls
2386 # Check whether --with-tls or --without-tls was given.
2387 if test "${with_tls+set}" = set; then
2391 for ol_val in auto openssl yes no ; do
2392 if test "$withval" = "$ol_val" ; then
2396 if test "$ol_arg" = "invalid" ; then
2397 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2398 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2399 { (exit 1); exit 1; }; }
2401 ol_with_tls="$ol_arg"
2405 fi; # end --with-tls
2407 # OpenLDAP --with-yielding_select
2409 # Check whether --with-yielding_select or --without-yielding_select was given.
2410 if test "${with_yielding_select+set}" = set; then
2411 withval="$with_yielding_select"
2414 for ol_val in auto yes no manual ; do
2415 if test "$withval" = "$ol_val" ; then
2419 if test "$ol_arg" = "invalid" ; then
2420 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2421 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2422 { (exit 1); exit 1; }; }
2424 ol_with_yielding_select="$ol_arg"
2427 ol_with_yielding_select="auto"
2428 fi; # end --with-yielding_select
2430 # OpenLDAP --with-mp
2432 # Check whether --with-mp or --without-mp was given.
2433 if test "${with_mp+set}" = set; then
2437 for ol_val in auto longlong long bignum gmp yes no ; do
2438 if test "$withval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2444 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2445 { (exit 1); exit 1; }; }
2447 ol_with_mp="$ol_arg"
2453 # OpenLDAP --with-odbc
2455 # Check whether --with-odbc or --without-odbc was given.
2456 if test "${with_odbc+set}" = set; then
2457 withval="$with_odbc"
2460 for ol_val in auto iodbc unixodbc ; do
2461 if test "$withval" = "$ol_val" ; then
2465 if test "$ol_arg" = "invalid" ; then
2466 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2467 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2468 { (exit 1); exit 1; }; }
2470 ol_with_odbc="$ol_arg"
2474 fi; # end --with-odbc
2478 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2479 if test "${enable_xxslapdoptions+set}" = set; then
2480 enableval="$enable_xxslapdoptions"
2483 # OpenLDAP --enable-slapd
2485 # Check whether --enable-slapd or --disable-slapd was given.
2486 if test "${enable_slapd+set}" = set; then
2487 enableval="$enable_slapd"
2490 for ol_val in auto yes no ; do
2491 if test "$enableval" = "$ol_val" ; then
2495 if test "$ol_arg" = "invalid" ; then
2496 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2498 { (exit 1); exit 1; }; }
2500 ol_enable_slapd="$ol_arg"
2505 # end --enable-slapd
2506 # OpenLDAP --enable-dynacl
2508 # Check whether --enable-dynacl or --disable-dynacl was given.
2509 if test "${enable_dynacl+set}" = set; then
2510 enableval="$enable_dynacl"
2513 for ol_val in auto yes no ; do
2514 if test "$enableval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2521 { (exit 1); exit 1; }; }
2523 ol_enable_dynacl="$ol_arg"
2528 # end --enable-dynacl
2529 # OpenLDAP --enable-aci
2531 # Check whether --enable-aci or --disable-aci was given.
2532 if test "${enable_aci+set}" = set; then
2533 enableval="$enable_aci"
2536 for ol_val in no yes mod ; do
2537 if test "$enableval" = "$ol_val" ; then
2541 if test "$ol_arg" = "invalid" ; then
2542 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2544 { (exit 1); exit 1; }; }
2546 ol_enable_aci="$ol_arg"
2552 # OpenLDAP --enable-cleartext
2554 # Check whether --enable-cleartext or --disable-cleartext was given.
2555 if test "${enable_cleartext+set}" = set; then
2556 enableval="$enable_cleartext"
2559 for ol_val in auto yes no ; do
2560 if test "$enableval" = "$ol_val" ; then
2564 if test "$ol_arg" = "invalid" ; then
2565 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2567 { (exit 1); exit 1; }; }
2569 ol_enable_cleartext="$ol_arg"
2572 ol_enable_cleartext=yes
2574 # end --enable-cleartext
2575 # OpenLDAP --enable-crypt
2577 # Check whether --enable-crypt or --disable-crypt was given.
2578 if test "${enable_crypt+set}" = set; then
2579 enableval="$enable_crypt"
2582 for ol_val in auto yes no ; do
2583 if test "$enableval" = "$ol_val" ; then
2587 if test "$ol_arg" = "invalid" ; then
2588 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2590 { (exit 1); exit 1; }; }
2592 ol_enable_crypt="$ol_arg"
2597 # end --enable-crypt
2598 # OpenLDAP --enable-lmpasswd
2600 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2601 if test "${enable_lmpasswd+set}" = set; then
2602 enableval="$enable_lmpasswd"
2605 for ol_val in auto yes no ; do
2606 if test "$enableval" = "$ol_val" ; then
2610 if test "$ol_arg" = "invalid" ; then
2611 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2613 { (exit 1); exit 1; }; }
2615 ol_enable_lmpasswd="$ol_arg"
2618 ol_enable_lmpasswd=no
2620 # end --enable-lmpasswd
2621 # OpenLDAP --enable-spasswd
2623 # Check whether --enable-spasswd or --disable-spasswd was given.
2624 if test "${enable_spasswd+set}" = set; then
2625 enableval="$enable_spasswd"
2628 for ol_val in auto yes no ; do
2629 if test "$enableval" = "$ol_val" ; then
2633 if test "$ol_arg" = "invalid" ; then
2634 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2636 { (exit 1); exit 1; }; }
2638 ol_enable_spasswd="$ol_arg"
2641 ol_enable_spasswd=no
2643 # end --enable-spasswd
2644 # OpenLDAP --enable-modules
2646 # Check whether --enable-modules or --disable-modules was given.
2647 if test "${enable_modules+set}" = set; then
2648 enableval="$enable_modules"
2651 for ol_val in auto yes no ; do
2652 if test "$enableval" = "$ol_val" ; then
2656 if test "$ol_arg" = "invalid" ; then
2657 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2659 { (exit 1); exit 1; }; }
2661 ol_enable_modules="$ol_arg"
2664 ol_enable_modules=no
2666 # end --enable-modules
2667 # OpenLDAP --enable-rewrite
2669 # Check whether --enable-rewrite or --disable-rewrite was given.
2670 if test "${enable_rewrite+set}" = set; then
2671 enableval="$enable_rewrite"
2674 for ol_val in auto yes no ; do
2675 if test "$enableval" = "$ol_val" ; then
2679 if test "$ol_arg" = "invalid" ; then
2680 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2682 { (exit 1); exit 1; }; }
2684 ol_enable_rewrite="$ol_arg"
2687 ol_enable_rewrite=auto
2689 # end --enable-rewrite
2690 # OpenLDAP --enable-rlookups
2692 # Check whether --enable-rlookups or --disable-rlookups was given.
2693 if test "${enable_rlookups+set}" = set; then
2694 enableval="$enable_rlookups"
2697 for ol_val in auto yes no ; do
2698 if test "$enableval" = "$ol_val" ; then
2702 if test "$ol_arg" = "invalid" ; then
2703 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2705 { (exit 1); exit 1; }; }
2707 ol_enable_rlookups="$ol_arg"
2710 ol_enable_rlookups=no
2712 # end --enable-rlookups
2713 # OpenLDAP --enable-slapi
2715 # Check whether --enable-slapi or --disable-slapi was given.
2716 if test "${enable_slapi+set}" = set; then
2717 enableval="$enable_slapi"
2720 for ol_val in auto yes no ; do
2721 if test "$enableval" = "$ol_val" ; then
2725 if test "$ol_arg" = "invalid" ; then
2726 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2728 { (exit 1); exit 1; }; }
2730 ol_enable_slapi="$ol_arg"
2735 # end --enable-slapi
2736 # OpenLDAP --enable-slp
2738 # Check whether --enable-slp or --disable-slp was given.
2739 if test "${enable_slp+set}" = set; then
2740 enableval="$enable_slp"
2743 for ol_val in auto yes no ; do
2744 if test "$enableval" = "$ol_val" ; then
2748 if test "$ol_arg" = "invalid" ; then
2749 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2750 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2751 { (exit 1); exit 1; }; }
2753 ol_enable_slp="$ol_arg"
2759 # OpenLDAP --enable-wrappers
2761 # Check whether --enable-wrappers or --disable-wrappers was given.
2762 if test "${enable_wrappers+set}" = set; then
2763 enableval="$enable_wrappers"
2766 for ol_val in auto yes no ; do
2767 if test "$enableval" = "$ol_val" ; then
2771 if test "$ol_arg" = "invalid" ; then
2772 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2773 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2774 { (exit 1); exit 1; }; }
2776 ol_enable_wrappers="$ol_arg"
2779 ol_enable_wrappers=no
2781 # end --enable-wrappers
2796 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2797 if test "${enable_xxslapbackends+set}" = set; then
2798 enableval="$enable_xxslapbackends"
2802 # OpenLDAP --enable-backends
2804 # Check whether --enable-backends or --disable-backends was given.
2805 if test "${enable_backends+set}" = set; then
2806 enableval="$enable_backends"
2809 for ol_val in no yes mod ; do
2810 if test "$enableval" = "$ol_val" ; then
2814 if test "$ol_arg" = "invalid" ; then
2815 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2817 { (exit 1); exit 1; }; }
2819 ol_enable_backends="$ol_arg"
2822 # end --enable-backends
2823 # OpenLDAP --enable-bdb
2825 # Check whether --enable-bdb or --disable-bdb was given.
2826 if test "${enable_bdb+set}" = set; then
2827 enableval="$enable_bdb"
2830 for ol_val in no yes mod ; do
2831 if test "$enableval" = "$ol_val" ; then
2835 if test "$ol_arg" = "invalid" ; then
2836 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2838 { (exit 1); exit 1; }; }
2840 ol_enable_bdb="$ol_arg"
2843 ol_enable_bdb=${ol_enable_backends:-yes}
2846 # OpenLDAP --enable-dnssrv
2848 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2849 if test "${enable_dnssrv+set}" = set; then
2850 enableval="$enable_dnssrv"
2853 for ol_val in no yes mod ; do
2854 if test "$enableval" = "$ol_val" ; then
2858 if test "$ol_arg" = "invalid" ; then
2859 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2861 { (exit 1); exit 1; }; }
2863 ol_enable_dnssrv="$ol_arg"
2866 ol_enable_dnssrv=${ol_enable_backends:-no}
2868 # end --enable-dnssrv
2869 # OpenLDAP --enable-hdb
2871 # Check whether --enable-hdb or --disable-hdb was given.
2872 if test "${enable_hdb+set}" = set; then
2873 enableval="$enable_hdb"
2876 for ol_val in no yes mod ; do
2877 if test "$enableval" = "$ol_val" ; then
2881 if test "$ol_arg" = "invalid" ; then
2882 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2884 { (exit 1); exit 1; }; }
2886 ol_enable_hdb="$ol_arg"
2889 ol_enable_hdb=${ol_enable_backends:-yes}
2892 # OpenLDAP --enable-ldap
2894 # Check whether --enable-ldap or --disable-ldap was given.
2895 if test "${enable_ldap+set}" = set; then
2896 enableval="$enable_ldap"
2899 for ol_val in no yes mod ; do
2900 if test "$enableval" = "$ol_val" ; then
2904 if test "$ol_arg" = "invalid" ; then
2905 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2906 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2907 { (exit 1); exit 1; }; }
2909 ol_enable_ldap="$ol_arg"
2912 ol_enable_ldap=${ol_enable_backends:-no}
2915 # OpenLDAP --enable-meta
2917 # Check whether --enable-meta or --disable-meta was given.
2918 if test "${enable_meta+set}" = set; then
2919 enableval="$enable_meta"
2922 for ol_val in no yes mod ; do
2923 if test "$enableval" = "$ol_val" ; then
2927 if test "$ol_arg" = "invalid" ; then
2928 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2929 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2930 { (exit 1); exit 1; }; }
2932 ol_enable_meta="$ol_arg"
2935 ol_enable_meta=${ol_enable_backends:-no}
2938 # OpenLDAP --enable-monitor
2940 # Check whether --enable-monitor or --disable-monitor was given.
2941 if test "${enable_monitor+set}" = set; then
2942 enableval="$enable_monitor"
2945 for ol_val in no yes mod ; do
2946 if test "$enableval" = "$ol_val" ; then
2950 if test "$ol_arg" = "invalid" ; then
2951 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2952 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2953 { (exit 1); exit 1; }; }
2955 ol_enable_monitor="$ol_arg"
2958 ol_enable_monitor=${ol_enable_backends:-yes}
2960 # end --enable-monitor
2961 # OpenLDAP --enable-null
2963 # Check whether --enable-null or --disable-null was given.
2964 if test "${enable_null+set}" = set; then
2965 enableval="$enable_null"
2968 for ol_val in no yes mod ; do
2969 if test "$enableval" = "$ol_val" ; then
2973 if test "$ol_arg" = "invalid" ; then
2974 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2975 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2976 { (exit 1); exit 1; }; }
2978 ol_enable_null="$ol_arg"
2981 ol_enable_null=${ol_enable_backends:-no}
2984 # OpenLDAP --enable-passwd
2986 # Check whether --enable-passwd or --disable-passwd was given.
2987 if test "${enable_passwd+set}" = set; then
2988 enableval="$enable_passwd"
2991 for ol_val in no yes mod ; do
2992 if test "$enableval" = "$ol_val" ; then
2996 if test "$ol_arg" = "invalid" ; then
2997 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2999 { (exit 1); exit 1; }; }
3001 ol_enable_passwd="$ol_arg"
3004 ol_enable_passwd=${ol_enable_backends:-no}
3006 # end --enable-passwd
3007 # OpenLDAP --enable-perl
3009 # Check whether --enable-perl or --disable-perl was given.
3010 if test "${enable_perl+set}" = set; then
3011 enableval="$enable_perl"
3014 for ol_val in no yes mod ; do
3015 if test "$enableval" = "$ol_val" ; then
3019 if test "$ol_arg" = "invalid" ; then
3020 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3021 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3022 { (exit 1); exit 1; }; }
3024 ol_enable_perl="$ol_arg"
3027 ol_enable_perl=${ol_enable_backends:-no}
3030 # OpenLDAP --enable-relay
3032 # Check whether --enable-relay or --disable-relay was given.
3033 if test "${enable_relay+set}" = set; then
3034 enableval="$enable_relay"
3037 for ol_val in no yes mod ; do
3038 if test "$enableval" = "$ol_val" ; then
3042 if test "$ol_arg" = "invalid" ; then
3043 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3044 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3045 { (exit 1); exit 1; }; }
3047 ol_enable_relay="$ol_arg"
3050 ol_enable_relay=${ol_enable_backends:-yes}
3052 # end --enable-relay
3053 # OpenLDAP --enable-shell
3055 # Check whether --enable-shell or --disable-shell was given.
3056 if test "${enable_shell+set}" = set; then
3057 enableval="$enable_shell"
3060 for ol_val in no yes mod ; do
3061 if test "$enableval" = "$ol_val" ; then
3065 if test "$ol_arg" = "invalid" ; then
3066 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3067 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3068 { (exit 1); exit 1; }; }
3070 ol_enable_shell="$ol_arg"
3073 ol_enable_shell=${ol_enable_backends:-no}
3075 # end --enable-shell
3076 # OpenLDAP --enable-sql
3078 # Check whether --enable-sql or --disable-sql was given.
3079 if test "${enable_sql+set}" = set; then
3080 enableval="$enable_sql"
3083 for ol_val in no yes mod ; do
3084 if test "$enableval" = "$ol_val" ; then
3088 if test "$ol_arg" = "invalid" ; then
3089 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3090 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3091 { (exit 1); exit 1; }; }
3093 ol_enable_sql="$ol_arg"
3096 ol_enable_sql=${ol_enable_backends:-no}
3100 Overlays="accesslog \
3119 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3120 if test "${enable_xxslapoverlays+set}" = set; then
3121 enableval="$enable_xxslapoverlays"
3125 # OpenLDAP --enable-overlays
3127 # Check whether --enable-overlays or --disable-overlays was given.
3128 if test "${enable_overlays+set}" = set; then
3129 enableval="$enable_overlays"
3132 for ol_val in no yes mod ; do
3133 if test "$enableval" = "$ol_val" ; then
3137 if test "$ol_arg" = "invalid" ; then
3138 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3139 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3140 { (exit 1); exit 1; }; }
3142 ol_enable_overlays="$ol_arg"
3145 # end --enable-overlays
3146 # OpenLDAP --enable-accesslog
3148 # Check whether --enable-accesslog or --disable-accesslog was given.
3149 if test "${enable_accesslog+set}" = set; then
3150 enableval="$enable_accesslog"
3153 for ol_val in no yes mod ; do
3154 if test "$enableval" = "$ol_val" ; then
3158 if test "$ol_arg" = "invalid" ; then
3159 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3161 { (exit 1); exit 1; }; }
3163 ol_enable_accesslog="$ol_arg"
3166 ol_enable_accesslog=${ol_enable_overlays:-no}
3168 # end --enable-accesslog
3170 # OpenLDAP --enable-auditlog
3172 # Check whether --enable-auditlog or --disable-auditlog was given.
3173 if test "${enable_auditlog+set}" = set; then
3174 enableval="$enable_auditlog"
3177 for ol_val in no yes mod ; do
3178 if test "$enableval" = "$ol_val" ; then
3182 if test "$ol_arg" = "invalid" ; then
3183 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3185 { (exit 1); exit 1; }; }
3187 ol_enable_auditlog="$ol_arg"
3190 ol_enable_auditlog=${ol_enable_overlays:-no}
3192 # end --enable-auditlog
3194 # OpenLDAP --enable-constraint
3196 # Check whether --enable-constraint or --disable-constraint was given.
3197 if test "${enable_constraint+set}" = set; then
3198 enableval="$enable_constraint"
3201 for ol_val in no yes mod ; do
3202 if test "$enableval" = "$ol_val" ; then
3206 if test "$ol_arg" = "invalid" ; then
3207 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3208 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3209 { (exit 1); exit 1; }; }
3211 ol_enable_constraint="$ol_arg"
3214 ol_enable_constraint=${ol_enable_overlays:-no}
3216 # end --enable-constraint
3218 # OpenLDAP --enable-dds
3220 # Check whether --enable-dds or --disable-dds was given.
3221 if test "${enable_dds+set}" = set; then
3222 enableval="$enable_dds"
3225 for ol_val in no yes mod ; do
3226 if test "$enableval" = "$ol_val" ; then
3230 if test "$ol_arg" = "invalid" ; then
3231 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3233 { (exit 1); exit 1; }; }
3235 ol_enable_dds="$ol_arg"
3238 ol_enable_dds=${ol_enable_overlays:-no}
3242 # OpenLDAP --enable-denyop
3244 # Check whether --enable-denyop or --disable-denyop was given.
3245 if test "${enable_denyop+set}" = set; then
3246 enableval="$enable_denyop"
3249 for ol_val in no yes mod ; do
3250 if test "$enableval" = "$ol_val" ; then
3254 if test "$ol_arg" = "invalid" ; then
3255 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3257 { (exit 1); exit 1; }; }
3259 ol_enable_denyop="$ol_arg"
3262 ol_enable_denyop=${ol_enable_overlays:-no}
3264 # end --enable-denyop
3266 # OpenLDAP --enable-dyngroup
3268 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3269 if test "${enable_dyngroup+set}" = set; then
3270 enableval="$enable_dyngroup"
3273 for ol_val in no yes mod ; do
3274 if test "$enableval" = "$ol_val" ; then
3278 if test "$ol_arg" = "invalid" ; then
3279 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3281 { (exit 1); exit 1; }; }
3283 ol_enable_dyngroup="$ol_arg"
3286 ol_enable_dyngroup=${ol_enable_overlays:-no}
3288 # end --enable-dyngroup
3290 # OpenLDAP --enable-dynlist
3292 # Check whether --enable-dynlist or --disable-dynlist was given.
3293 if test "${enable_dynlist+set}" = set; then
3294 enableval="$enable_dynlist"
3297 for ol_val in no yes mod ; do
3298 if test "$enableval" = "$ol_val" ; then
3302 if test "$ol_arg" = "invalid" ; then
3303 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3305 { (exit 1); exit 1; }; }
3307 ol_enable_dynlist="$ol_arg"
3310 ol_enable_dynlist=${ol_enable_overlays:-no}
3312 # end --enable-dynlist
3314 # OpenLDAP --enable-lastmod
3316 # Check whether --enable-lastmod or --disable-lastmod was given.
3317 if test "${enable_lastmod+set}" = set; then
3318 enableval="$enable_lastmod"
3321 for ol_val in no yes mod ; do
3322 if test "$enableval" = "$ol_val" ; then
3326 if test "$ol_arg" = "invalid" ; then
3327 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3329 { (exit 1); exit 1; }; }
3331 ol_enable_lastmod="$ol_arg"
3334 ol_enable_lastmod=${ol_enable_overlays:-no}
3336 # end --enable-lastmod
3338 # OpenLDAP --enable-ppolicy
3340 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3341 if test "${enable_ppolicy+set}" = set; then
3342 enableval="$enable_ppolicy"
3345 for ol_val in no yes mod ; do
3346 if test "$enableval" = "$ol_val" ; then
3350 if test "$ol_arg" = "invalid" ; then
3351 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3353 { (exit 1); exit 1; }; }
3355 ol_enable_ppolicy="$ol_arg"
3358 ol_enable_ppolicy=${ol_enable_overlays:-no}
3360 # end --enable-ppolicy
3362 # OpenLDAP --enable-proxycache
3364 # Check whether --enable-proxycache or --disable-proxycache was given.
3365 if test "${enable_proxycache+set}" = set; then
3366 enableval="$enable_proxycache"
3369 for ol_val in no yes mod ; do
3370 if test "$enableval" = "$ol_val" ; then
3374 if test "$ol_arg" = "invalid" ; then
3375 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3377 { (exit 1); exit 1; }; }
3379 ol_enable_proxycache="$ol_arg"
3382 ol_enable_proxycache=${ol_enable_overlays:-no}
3384 # end --enable-proxycache
3386 # OpenLDAP --enable-refint
3388 # Check whether --enable-refint or --disable-refint was given.
3389 if test "${enable_refint+set}" = set; then
3390 enableval="$enable_refint"
3393 for ol_val in no yes mod ; do
3394 if test "$enableval" = "$ol_val" ; then
3398 if test "$ol_arg" = "invalid" ; then
3399 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3401 { (exit 1); exit 1; }; }
3403 ol_enable_refint="$ol_arg"
3406 ol_enable_refint=${ol_enable_overlays:-no}
3408 # end --enable-refint
3410 # OpenLDAP --enable-retcode
3412 # Check whether --enable-retcode or --disable-retcode was given.
3413 if test "${enable_retcode+set}" = set; then
3414 enableval="$enable_retcode"
3417 for ol_val in no yes mod ; do
3418 if test "$enableval" = "$ol_val" ; then
3422 if test "$ol_arg" = "invalid" ; then
3423 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3425 { (exit 1); exit 1; }; }
3427 ol_enable_retcode="$ol_arg"
3430 ol_enable_retcode=${ol_enable_overlays:-no}
3432 # end --enable-retcode
3434 # OpenLDAP --enable-rwm
3436 # Check whether --enable-rwm or --disable-rwm was given.
3437 if test "${enable_rwm+set}" = set; then
3438 enableval="$enable_rwm"
3441 for ol_val in no yes mod ; do
3442 if test "$enableval" = "$ol_val" ; then
3446 if test "$ol_arg" = "invalid" ; then
3447 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3449 { (exit 1); exit 1; }; }
3451 ol_enable_rwm="$ol_arg"
3454 ol_enable_rwm=${ol_enable_overlays:-no}
3458 # OpenLDAP --enable-seqmod
3460 # Check whether --enable-seqmod or --disable-seqmod was given.
3461 if test "${enable_seqmod+set}" = set; then
3462 enableval="$enable_seqmod"
3465 for ol_val in no yes mod ; do
3466 if test "$enableval" = "$ol_val" ; then
3470 if test "$ol_arg" = "invalid" ; then
3471 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3473 { (exit 1); exit 1; }; }
3475 ol_enable_seqmod="$ol_arg"
3478 ol_enable_seqmod=${ol_enable_overlays:-yes}
3480 # end --enable-seqmod
3482 # OpenLDAP --enable-syncprov
3484 # Check whether --enable-syncprov or --disable-syncprov was given.
3485 if test "${enable_syncprov+set}" = set; then
3486 enableval="$enable_syncprov"
3489 for ol_val in no yes mod ; do
3490 if test "$enableval" = "$ol_val" ; then
3494 if test "$ol_arg" = "invalid" ; then
3495 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3497 { (exit 1); exit 1; }; }
3499 ol_enable_syncprov="$ol_arg"
3502 ol_enable_syncprov=${ol_enable_overlays:-yes}
3504 # end --enable-syncprov
3506 # OpenLDAP --enable-translucent
3508 # Check whether --enable-translucent or --disable-translucent was given.
3509 if test "${enable_translucent+set}" = set; then
3510 enableval="$enable_translucent"
3513 for ol_val in no yes mod ; do
3514 if test "$enableval" = "$ol_val" ; then
3518 if test "$ol_arg" = "invalid" ; then
3519 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3521 { (exit 1); exit 1; }; }
3523 ol_enable_translucent="$ol_arg"
3526 ol_enable_translucent=${ol_enable_overlays:-no}
3528 # end --enable-translucent
3530 # OpenLDAP --enable-unique
3532 # Check whether --enable-unique or --disable-unique was given.
3533 if test "${enable_unique+set}" = set; then
3534 enableval="$enable_unique"
3537 for ol_val in no yes mod ; do
3538 if test "$enableval" = "$ol_val" ; then
3542 if test "$ol_arg" = "invalid" ; then
3543 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3545 { (exit 1); exit 1; }; }
3547 ol_enable_unique="$ol_arg"
3550 ol_enable_unique=${ol_enable_overlays:-no}
3552 # end --enable-unique
3554 # OpenLDAP --enable-valsort
3556 # Check whether --enable-valsort or --disable-valsort was given.
3557 if test "${enable_valsort+set}" = set; then
3558 enableval="$enable_valsort"
3561 for ol_val in no yes mod ; do
3562 if test "$enableval" = "$ol_val" ; then
3566 if test "$ol_arg" = "invalid" ; then
3567 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3568 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3569 { (exit 1); exit 1; }; }
3571 ol_enable_valsort="$ol_arg"
3574 ol_enable_valsort=${ol_enable_overlays:-no}
3576 # end --enable-valsort
3579 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3580 if test "${enable_xxslurpdoptions+set}" = set; then
3581 enableval="$enable_xxslurpdoptions"
3584 # OpenLDAP --enable-slurpd
3586 # Check whether --enable-slurpd or --disable-slurpd was given.
3587 if test "${enable_slurpd+set}" = set; then
3588 enableval="$enable_slurpd"
3591 for ol_val in auto yes no ; do
3592 if test "$enableval" = "$ol_val" ; then
3596 if test "$ol_arg" = "invalid" ; then
3597 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3598 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3599 { (exit 1); exit 1; }; }
3601 ol_enable_slurpd="$ol_arg"
3604 ol_enable_slurpd=auto
3606 # end --enable-slurpd
3608 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3609 if test "${enable_xxliboptions+set}" = set; then
3610 enableval="$enable_xxliboptions"
3613 # Check whether --enable-static or --disable-static was given.
3614 if test "${enable_static+set}" = set; then
3615 enableval="$enable_static"
3616 p=${PACKAGE-default}
3618 yes) enable_static=yes ;;
3619 no) enable_static=no ;;
3622 # Look at the argument we got. We use all the common list separators.
3623 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3624 for pkg in $enableval; do
3626 if test "X$pkg" = "X$p"; then
3637 # Check whether --enable-shared or --disable-shared was given.
3638 if test "${enable_shared+set}" = set; then
3639 enableval="$enable_shared"
3640 p=${PACKAGE-default}
3642 yes) enable_shared=yes ;;
3643 no) enable_shared=no ;;
3646 # Look at the argument we got. We use all the common list separators.
3647 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3648 for pkg in $enableval; do
3650 if test "X$pkg" = "X$p"; then
3664 if test $ol_enable_slapd = no ; then
3665 if test $ol_enable_slapi = yes ; then
3666 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3669 case "$ol_enable_backends" in yes | mod)
3670 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3673 for i in $Backends; do
3674 eval "ol_tmp=\$ol_enable_$i"
3675 if test $ol_tmp != no ; then
3676 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3677 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3678 eval "ol_enable_$i=no"
3681 if test $ol_enable_modules = yes ; then
3682 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3683 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3685 if test $ol_enable_wrappers = yes ; then
3686 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3687 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3689 if test $ol_enable_rlookups = yes ; then
3690 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3691 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3693 if test $ol_enable_dynacl = yes ; then
3694 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3695 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3697 if test $ol_enable_aci != no ; then
3698 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3699 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3701 if test $ol_enable_slurpd = yes ; then
3702 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3703 echo "$as_me: error: slurpd requires slapd" >&2;}
3704 { (exit 1); exit 1; }; }
3706 if test $ol_enable_rewrite = yes ; then
3707 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3708 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3710 case "$ol_enable_overlays" in yes | mod)
3711 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3712 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3714 for i in $Overlays; do
3715 eval "ol_tmp=\$ol_enable_$i"
3716 if test $ol_tmp != no ; then
3717 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3718 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3719 eval "ol_enable_$i=no"
3723 # force settings to no
3728 ol_enable_modules=no
3729 ol_enable_rlookups=no
3732 ol_enable_wrappers=no
3736 ol_enable_rewrite=no
3738 elif test $ol_enable_modules != yes &&
3739 test $ol_enable_bdb = no &&
3740 test $ol_enable_dnssrv = no &&
3741 test $ol_enable_hdb = no &&
3742 test $ol_enable_ldap = no &&
3743 test $ol_enable_meta = no &&
3744 test $ol_enable_monitor = no &&
3745 test $ol_enable_null = no &&
3746 test $ol_enable_passwd = no &&
3747 test $ol_enable_perl = no &&
3748 test $ol_enable_relay = no &&
3749 test $ol_enable_shell = no &&
3750 test $ol_enable_sql = no ; then
3752 if test $ol_enable_slapd = yes ; then
3753 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3754 echo "$as_me: error: slapd requires a backend" >&2;}
3755 { (exit 1); exit 1; }; }
3757 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3758 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3763 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3764 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3765 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3766 { (exit 1); exit 1; }; }
3769 if test $ol_enable_slurpd = yes ; then
3770 if test $ol_with_threads = no ; then
3771 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3772 echo "$as_me: error: slurpd requires threads" >&2;}
3773 { (exit 1); exit 1; }; }
3777 if test $ol_enable_lmpasswd = yes ; then
3778 if test $ol_with_tls = no ; then
3779 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3780 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3781 { (exit 1); exit 1; }; }
3785 if test $ol_enable_kbind = yes ; then
3786 if test $ol_with_kerberos = no ; then
3787 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3788 echo "$as_me: error: options require --with-kerberos" >&2;}
3789 { (exit 1); exit 1; }; }
3790 elif test $ol_with_kerberos = auto ; then
3791 ol_with_kerberos=yes
3794 elif test $ol_enable_kbind = no ; then
3795 if test $ol_with_kerberos = auto ; then
3797 elif test $ol_with_kerberos != no ; then
3798 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3799 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3804 if test $ol_enable_spasswd = yes ; then
3805 if test $ol_with_cyrus_sasl = no ; then
3806 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3807 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3808 { (exit 1); exit 1; }; }
3810 ol_with_cyrus_sasl=yes
3813 echo "$as_me:$LINENO: result: done" >&5
3814 echo "${ECHO_T}done" >&6
3860 BUILD_TRANSLUCENT=no
3864 SLAPD_STATIC_OVERLAYS=
3865 SLAPD_DYNAMIC_OVERLAYS=
3867 SLAPD_MODULES_LDFLAGS=
3868 SLAPD_MODULES_CPPFLAGS=
3870 SLAPD_STATIC_BACKENDS=back-ldif
3871 SLAPD_DYNAMIC_BACKENDS=
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3906 *-*-aix*) if test -z "$CC" ; then
3907 case "$ol_with_threads" in
3908 auto | yes | posix) ol_aix_threads=yes ;;
3914 if test $ol_aix_threads = yes ; then
3915 if test -z "${CC}" ; then
3916 for ac_prog in cc_r xlc_r cc
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_prog_CC="$ac_prog"
3936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 if test -n "$CC"; then
3946 echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3949 echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3953 test -n "$CC" && break
3957 if test "$CC" = cc ; then
3958 if test $ol_with_threads != auto ; then
3959 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961 { (exit 1); exit 1; }; }
3963 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3970 case ${CC} in cc_r | xlc_r)
3971 ol_with_threads=posix
3972 ol_cv_pthread_create=yes
3977 if test -z "${CC}"; then
3978 for ac_prog in cc gcc
3980 # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_CC="$ac_prog"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$CC"; then
4008 echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4011 echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4015 test -n "$CC" && break
4017 test -n "$CC" || CC="missing"
4020 if test "${CC}" = "missing" ; then
4021 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4022 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4023 { (exit 1); exit 1; }; }
4027 if test -z "${AR}"; then
4028 for ac_prog in ar gar
4030 # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 if test -n "$AR"; then
4038 ac_cv_prog_AR="$AR" # Let the user override the test.
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047 ac_cv_prog_AR="$ac_prog"
4048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 if test -n "$AR"; then
4058 echo "$as_me:$LINENO: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4061 echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4065 test -n "$AR" && break
4067 test -n "$AR" || AR="missing"
4070 if test "${AR}" = "missing" ; then
4071 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4072 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4073 { (exit 1); exit 1; }; }
4081 # Check whether --enable-fast-install or --disable-fast-install was given.
4082 if test "${enable_fast_install+set}" = set; then
4083 enableval="$enable_fast_install"
4084 p=${PACKAGE-default}
4086 yes) enable_fast_install=yes ;;
4087 no) enable_fast_install=no ;;
4089 enable_fast_install=no
4090 # Look at the argument we got. We use all the common list separators.
4091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092 for pkg in $enableval; do
4094 if test "X$pkg" = "X$p"; then
4095 enable_fast_install=yes
4102 enable_fast_install=yes
4105 DEPDIR="${am__leading_dot}deps"
4107 ac_config_commands="$ac_config_commands depfiles"
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4116 # If we don't find an include directive, just comment out the code.
4117 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4118 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # We grep out `Entering directory' and `Leaving directory'
4125 # messages which can occur if `w' ends up in MAKEFLAGS.
4126 # In particular we don't look at `^make:' because GNU make might
4127 # be invoked under some other name (usually "gmake"), in which
4128 # case it prints its new name instead of `make'.
4129 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4134 # Now try BSD make style include.
4135 if test "$am__include" = "#"; then
4136 echo '.include "confinc"' > confmf
4137 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4138 am__include=.include
4145 echo "$as_me:$LINENO: result: $_am_result" >&5
4146 echo "${ECHO_T}$_am_result" >&6
4147 rm -f confinc confmf
4149 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then
4151 enableval="$enable_dependency_tracking"
4154 if test "x$enable_dependency_tracking" != xno; then
4155 am_depcomp="$ac_aux_dir/depcomp"
4160 if test "x$enable_dependency_tracking" != xno; then
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_CC+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$CC"; then
4184 ac_cv_prog_CC="$CC" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$CC"; then
4204 echo "$as_me:$LINENO: result: $CC" >&5
4205 echo "${ECHO_T}$CC" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4212 if test -z "$ac_cv_prog_CC"; then
4214 # Extract the first word of "gcc", so it can be a program name with args.
4215 set dummy gcc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$ac_ct_CC"; then
4222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_ac_ct_CC="gcc"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243 echo "${ECHO_T}$ac_ct_CC" >&6
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4254 if test -z "$CC"; then
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_CC+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_CC="${ac_tool_prefix}cc"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 if test -n "$CC"; then
4284 echo "$as_me:$LINENO: result: $CC" >&5
4285 echo "${ECHO_T}$CC" >&6
4287 echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4292 if test -z "$ac_cv_prog_CC"; then
4294 # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$ac_ct_CC"; then
4302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_ac_ct_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4321 if test -n "$ac_ct_CC"; then
4322 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4323 echo "${ECHO_T}$ac_ct_CC" >&6
4325 echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4335 if test -z "$CC"; then
4336 # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355 ac_prog_rejected=yes
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 if test $ac_prog_rejected = yes; then
4366 # We found a bogon in the path, so make sure we never use it.
4367 set dummy $ac_cv_prog_CC
4369 if test $# != 0; then
4370 # We chose a different compiler from the bogus one.
4371 # However, it has the same basename, so the bogon will be chosen
4372 # first if we set CC to just the basename; use the full file name.
4374 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4380 if test -n "$CC"; then
4381 echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4384 echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_CC+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 if test -n "$CC"; then
4421 echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 test -n "$CC" && break
4431 if test -z "$CC"; then
4435 # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 if test -n "$ac_ct_CC"; then
4443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_CC="$ac_prog"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4464 echo "${ECHO_T}$ac_ct_CC" >&6
4466 echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4470 test -n "$ac_ct_CC" && break
4479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&2;}
4483 { (exit 1); exit 1; }; }
4485 # Provide some information about the compiler.
4486 echo "$as_me:$LINENO:" \
4487 "checking for C compiler version" >&5
4488 ac_compiler=`set X $ac_compile; echo $2`
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4490 (eval $ac_compiler --version </dev/null >&5) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }
4494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4495 (eval $ac_compiler -v </dev/null >&5) 2>&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }
4499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4500 (eval $ac_compiler -V </dev/null >&5) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4520 ac_clean_files_save=$ac_clean_files
4521 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4522 # Try to create an executable without -o first, disregard a.out.
4523 # It will help us diagnose broken compilers, and finding out an intuition
4525 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4526 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4527 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4529 (eval $ac_link_default) 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 # Find the output, starting from the most likely. This scheme is
4534 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4537 # Be careful to initialize this variable, since it used to be cached.
4538 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4540 # b.out is created by i960 compilers.
4541 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4543 test -f "$ac_file" || continue
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4548 # This is the source file.
4551 # We found the default executable, but exeext='' is most
4555 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556 # FIXME: I believe we export ac_cv_exeext for Libtool,
4557 # but it would be cool to find out if it's true. Does anybody
4558 # maintain Libtool? --akim.
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&2;}
4573 { (exit 77); exit 77; }; }
4576 ac_exeext=$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_file" >&5
4578 echo "${ECHO_T}$ac_file" >&6
4580 # Check the compiler produces executables we can run. If not, either
4581 # the compiler is broken, or we cross compile.
4582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4585 # If not cross compiling, check that we can run a simple program.
4586 if test "$cross_compiling" != yes; then
4587 if { ac_try='./$ac_file'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 if test "$cross_compiling" = maybe; then
4598 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4599 If you meant to cross compile, use \`--host'.
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run C compiled programs.
4602 If you meant to cross compile, use \`--host'.
4603 See \`config.log' for more details." >&2;}
4604 { (exit 1); exit 1; }; }
4608 echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6
4611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 # Check the compiler produces executables we can run. If not, either
4614 # the compiler is broken, or we cross compile.
4615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4618 echo "${ECHO_T}$cross_compiling" >&6
4620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; then
4627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4628 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4629 # work properly (i.e., refer to `conftest.exe'), while it won't with
4631 for ac_file in conftest.exe conftest conftest.*; do
4632 test -f "$ac_file" || continue
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4642 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&2;}
4646 { (exit 1); exit 1; }; }
4649 rm -f conftest$ac_cv_exeext
4650 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4651 echo "${ECHO_T}$ac_cv_exeext" >&6
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4656 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4658 if test "${ac_cv_objext+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 cat >conftest.$ac_ext <<_ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4676 rm -f conftest.o conftest.obj
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; then
4682 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&2;}
4697 { (exit 1); exit 1; }; }
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4702 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4703 echo "${ECHO_T}$ac_cv_objext" >&6
4704 OBJEXT=$ac_cv_objext
4706 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4733 grep -v '^ *+' conftest.er1 >conftest.err
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4762 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4764 GCC=`test $ac_compiler_gnu = yes && echo yes`
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4768 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4770 if test "${ac_cv_prog_cc_g+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>conftest.er1
4792 grep -v '^ *+' conftest.er1 >conftest.err
4794 cat conftest.err >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -z "$ac_c_werror_flag"
4798 || test ! -s conftest.err'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; } &&
4804 { ac_try='test -s conftest.$ac_objext'
4805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; }; then
4812 echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4821 if test "$ac_test_CFLAGS" = set; then
4822 CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824 if test "$GCC" = yes; then
4830 if test "$GCC" = yes; then
4836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 ac_cv_prog_cc_stdc=no
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4867 s = g (p, va_arg (v,int));
4872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4873 function prototypes and stuff, but not '\xHH' hex character constants.
4874 These don't provoke an error unfortunately, instead are silently treated
4875 as 'x'. The following induces an error, until -std1 is added to get
4876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4877 array size at least. It's necessary to write '\x00'==0 to get something
4878 that's true only with -std1. */
4879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4881 int test (int i, double x);
4882 struct s1 {int (*f) (int a);};
4883 struct s2 {int (*f) (double a);};
4884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4890 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4895 # Don't try gcc -ansi; that turns off useful extensions and
4896 # breaks some systems' header files.
4897 # AIX -qlanglvl=ansi
4898 # Ultrix and OSF/1 -std1
4899 # HP-UX 10.20 and later -Ae
4900 # HP-UX older versions -Aa -D_HPUX_SOURCE
4901 # SVR4 -Xc -D__EXTENSIONS__
4902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4904 CC="$ac_save_CC $ac_arg"
4905 rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907 (eval $ac_compile) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest.$ac_objext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_prog_cc_stdc=$ac_arg
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4934 rm -f conftest.err conftest.$ac_objext
4936 rm -f conftest.$ac_ext conftest.$ac_objext
4941 case "x$ac_cv_prog_cc_stdc" in
4943 echo "$as_me:$LINENO: result: none needed" >&5
4944 echo "${ECHO_T}none needed" >&6 ;;
4946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4948 CC="$CC $ac_cv_prog_cc_stdc" ;;
4951 # Some people use a C++ compiler to compile C. Since we use `exit',
4952 # in C++ we need to declare it. In case someone uses the same compiler
4953 # for both compiling C and C++ we need to have the C++ compiler decide
4954 # the declaration of exit, since it's the most demanding environment.
4955 cat >conftest.$ac_ext <<_ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 for ac_declaration in \
4984 'extern "C" void std::exit (int) throw (); using std::exit;' \
4985 'extern "C" void std::exit (int); using std::exit;' \
4986 'extern "C" void exit (int) throw ();' \
4987 'extern "C" void exit (int);' \
4990 cat >conftest.$ac_ext <<_ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5010 grep -v '^ *+' conftest.er1 >conftest.err
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag"
5016 || test ! -s conftest.err'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5030 echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 if test -n "$ac_declaration"; then
5083 echo '#ifdef __cplusplus' >>confdefs.h
5084 echo $ac_declaration >>confdefs.h
5085 echo '#endif' >>confdefs.h
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 depcc="$CC" am_compiler_list=
5102 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5108 # We make a subdir and do the tests there. Otherwise we can end up
5109 # making bogus files that we don't know about and never remove. For
5110 # instance it was reported that on HP-UX the gcc test will end up
5111 # making a dummy file named `D' -- because `-MD' means `put the output
5114 # Copy depcomp to subdir because otherwise we won't find it if we're
5115 # using a relative directory.
5116 cp "$am_depcomp" conftest.dir
5118 # We will build objects and dependencies in a subdirectory because
5119 # it helps to detect inapplicable dependency modes. For instance
5120 # both Tru64's cc and ICC support -MD to output dependencies as a
5121 # side effect of compilation, but ICC will put the dependencies in
5122 # the current directory while Tru64 will put them in the object
5126 am_cv_CC_dependencies_compiler_type=none
5127 if test "$am_compiler_list" = ""; then
5128 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5130 for depmode in $am_compiler_list; do
5131 # Setup a source with many dependencies, because some compilers
5132 # like to wrap large dependency lists on column 80 (with \), and
5133 # we should not choose a depcomp mode which is confused by this.
5135 # We need to recreate these files for each test, as the compiler may
5136 # overwrite some of them when testing with obscure command lines.
5137 # This happens at least with the AIX C compiler.
5139 for i in 1 2 3 4 5 6; do
5140 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142 # Solaris 8's {/usr,}/bin/sh.
5143 touch sub/conftst$i.h
5145 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5149 # after this tag, mechanisms are not by side-effect, so they'll
5150 # only be used when explicitly requested
5151 if test "x$enable_dependency_tracking" = xyes; then
5159 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5160 # mode. It turns out that the SunPro C++ compiler does not properly
5161 # handle `-M -o', and we need to detect this.
5162 if depmode=$depmode \
5163 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5164 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5166 >/dev/null 2>conftest.err &&
5167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170 # icc doesn't choke on unknown options, it will just issue warnings
5171 # or remarks (even with -Werror). So we grep stderr for any message
5172 # that says an option was ignored or not supported.
5173 # When given -MP, icc 7.0 and 7.1 complain thusly:
5174 # icc: Command line warning: ignoring option '-M'; no argument required
5175 # The diagnosis changed in icc 8.0:
5176 # icc: Command line remark: option '-MP' not supported
5177 if (grep 'ignoring option' conftest.err ||
5178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179 am_cv_CC_dependencies_compiler_type=$depmode
5188 am_cv_CC_dependencies_compiler_type=none
5192 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5193 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5199 test "x$enable_dependency_tracking" != xno \
5200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5202 am__fastdepCC_FALSE='#'
5204 am__fastdepCC_TRUE='#'
5205 am__fastdepCC_FALSE=
5209 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5210 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5211 if test "${lt_cv_path_SED+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 # Loop through the user's path and test for sed and gsed.
5215 # Then use that list of sed's as ones to test for truncation.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for lt_ac_prog in sed gsed; do
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5224 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5231 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5232 # along with /bin/sed that truncates output.
5233 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5234 test ! -f $lt_ac_sed && continue
5235 cat /dev/null > conftest.in
5237 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5238 # Check for GNU sed and select it if it is found.
5239 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5240 lt_cv_path_SED=$lt_ac_sed
5244 cat conftest.in conftest.in >conftest.tmp
5245 mv conftest.tmp conftest.in
5246 cp conftest.in conftest.nl
5248 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5249 cmp -s conftest.out conftest.nl || break
5250 # 10000 chars as input seems more than enough
5251 test $lt_ac_count -gt 10 && break
5252 lt_ac_count=`expr $lt_ac_count + 1`
5253 if test $lt_ac_count -gt $lt_ac_max; then
5254 lt_ac_max=$lt_ac_count
5255 lt_cv_path_SED=$lt_ac_sed
5263 echo "$as_me:$LINENO: result: $SED" >&5
5264 echo "${ECHO_T}$SED" >&6
5266 echo "$as_me:$LINENO: checking for egrep" >&5
5267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5268 if test "${ac_cv_prog_egrep+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5272 then ac_cv_prog_egrep='grep -E'
5273 else ac_cv_prog_egrep='egrep'
5276 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5277 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5278 EGREP=$ac_cv_prog_egrep
5282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then
5284 withval="$with_gnu_ld"
5285 test "$withval" = no || with_gnu_ld=yes
5290 if test "$GCC" = yes; then
5291 # Check if gcc -print-prog-name=ld gives a path.
5292 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5296 # gcc leaves a trailing carriage return which upsets mingw
5297 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5299 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5302 # Accept absolute paths.
5304 re_direlt='/[^/][^/]*/\.\./'
5305 # Canonicalize the pathname of ld
5306 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5307 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5308 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5310 test -z "$LD" && LD="$ac_prog"
5313 # If it fails, then pretend we aren't using GCC.
5317 # If it is relative, then search for the first ld in PATH.
5321 elif test "$with_gnu_ld" = yes; then
5322 echo "$as_me:$LINENO: checking for GNU ld" >&5
5323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5325 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5328 if test "${lt_cv_path_LD+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 if test -z "$LD"; then
5332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333 for ac_dir in $PATH; do
5335 test -z "$ac_dir" && ac_dir=.
5336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337 lt_cv_path_LD="$ac_dir/$ac_prog"
5338 # Check to see if the program is GNU ld. I'd rather use --version,
5339 # but apparently some variants of GNU ld only accept -v.
5340 # Break only if it was the GNU/non-GNU ld that we prefer.
5341 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342 *GNU* | *'with BFD'*)
5343 test "$with_gnu_ld" != no && break
5346 test "$with_gnu_ld" != yes && break
5353 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5358 if test -n "$LD"; then
5359 echo "$as_me:$LINENO: result: $LD" >&5
5360 echo "${ECHO_T}$LD" >&6
5362 echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5367 { (exit 1); exit 1; }; }
5368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5374 case `$LD -v 2>&1 </dev/null` in
5375 *GNU* | *'with BFD'*)
5376 lt_cv_prog_gnu_ld=yes
5379 lt_cv_prog_gnu_ld=no
5383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5385 with_gnu_ld=$lt_cv_prog_gnu_ld
5388 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5389 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5390 if test "${lt_cv_ld_reload_flag+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 lt_cv_ld_reload_flag='-r'
5395 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5396 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5397 reload_flag=$lt_cv_ld_reload_flag
5398 case $reload_flag in
5400 *) reload_flag=" $reload_flag" ;;
5402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5405 if test "$GCC" = yes; then
5406 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5408 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5413 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5414 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5415 if test "${lt_cv_path_NM+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 if test -n "$NM"; then
5419 # Let the user override the test.
5422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5425 test -z "$ac_dir" && ac_dir=.
5426 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5427 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428 # Check to see if the nm accepts a BSD-compat flag.
5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430 # nm: unknown option "B" ignored
5431 # Tru64's nm complains that /dev/null is an invalid object file
5432 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433 */dev/null* | *'Invalid file or object type'*)
5434 lt_cv_path_NM="$tmp_nm -B"
5438 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5440 lt_cv_path_NM="$tmp_nm -p"
5444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445 continue # so that we can try to find one that supports BSD flags
5452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5455 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5456 echo "${ECHO_T}$lt_cv_path_NM" >&6
5459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5462 if test "$LN_S" = "ln -s"; then
5463 echo "$as_me:$LINENO: result: yes" >&5
5464 echo "${ECHO_T}yes" >&6
5466 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5467 echo "${ECHO_T}no, using $LN_S" >&6
5470 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5471 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5472 if test "${lt_cv_deplibs_check_method+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 lt_cv_file_magic_cmd='$MAGIC_CMD'
5476 lt_cv_file_magic_test_file=
5477 lt_cv_deplibs_check_method='unknown'
5478 # Need to set the preceding variable on all platforms that support
5479 # interlibrary dependencies.
5480 # 'none' -- dependencies not supported.
5481 # `unknown' -- same as none, but documents that we really don't know.
5482 # 'pass_all' -- all dependencies passed with no checks.
5483 # 'test_compile' -- check by making test program.
5484 # 'file_magic [[regex]]' -- check by looking for files in library path
5485 # which responds to the $file_magic_cmd with a given extended regex.
5486 # If you have `file' or equivalent on your system and you're not sure
5487 # whether `pass_all' will *always* work, you probably want this one.
5491 lt_cv_deplibs_check_method=pass_all
5495 lt_cv_deplibs_check_method=pass_all
5499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5500 lt_cv_file_magic_cmd='/usr/bin/file -L'
5501 lt_cv_file_magic_test_file=/shlib/libc.so
5505 # func_win32_libid is a shell function defined in ltmain.sh
5506 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5507 lt_cv_file_magic_cmd='func_win32_libid'
5511 # Base MSYS/MinGW do not provide the 'file' command needed by
5512 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5513 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514 lt_cv_file_magic_cmd='$OBJDUMP -f'
5517 darwin* | rhapsody*)
5518 lt_cv_deplibs_check_method=pass_all
5521 freebsd* | kfreebsd*-gnu | dragonfly*)
5522 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5525 # Not sure whether the presence of OpenBSD here was a mistake.
5526 # Let's accept both of them until this is cleared up.
5527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5528 lt_cv_file_magic_cmd=/usr/bin/file
5529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5533 lt_cv_deplibs_check_method=pass_all
5538 lt_cv_deplibs_check_method=pass_all
5541 hpux10.20* | hpux11*)
5542 lt_cv_file_magic_cmd=/usr/bin/file
5545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5546 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5549 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]'
5550 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5553 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5554 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5559 irix5* | irix6* | nonstopux*)
5561 *-32|*"-32 ") libmagic=32-bit;;
5562 *-n32|*"-n32 ") libmagic=N32;;
5563 *-64|*"-64 ") libmagic=64-bit;;
5564 *) libmagic=never-match;;
5566 lt_cv_deplibs_check_method=pass_all
5569 # This must be Linux ELF.
5571 lt_cv_deplibs_check_method=pass_all
5575 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5589 lt_cv_deplibs_check_method=unknown
5593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600 osf3* | osf4* | osf5*)
5601 lt_cv_deplibs_check_method=pass_all
5605 lt_cv_deplibs_check_method=pass_all
5609 lt_cv_deplibs_check_method=pass_all
5612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5613 case $host_vendor in
5615 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]'
5616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5619 lt_cv_deplibs_check_method=pass_all
5622 lt_cv_file_magic_cmd='/bin/file'
5623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5626 lt_cv_file_magic_cmd='/bin/file'
5627 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628 lt_cv_file_magic_test_file=/lib/libc.so
5631 lt_cv_deplibs_check_method=pass_all
5636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5637 lt_cv_deplibs_check_method=pass_all
5642 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5643 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5651 # If no C compiler was specified, use CC.
5654 # Allow CC to be a program name with arguments.
5658 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5659 if test "${enable_libtool_lock+set}" = set; then
5660 enableval="$enable_libtool_lock"
5663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5665 # Some flags need to be propagated to the compiler or linker for good
5669 # Find out which ABI we are using.
5670 echo 'int i;' > conftest.$ac_ext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; then
5676 case `/usr/bin/file conftest.$ac_objext` in
5688 # Find out which ABI we are using.
5689 echo '#line 5689 "configure"' > conftest.$ac_ext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691 (eval $ac_compile) 2>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; then
5695 if test "$lt_cv_prog_gnu_ld" = yes; then
5696 case `/usr/bin/file conftest.$ac_objext` in
5698 LD="${LD-ld} -melf32bsmip"
5701 LD="${LD-ld} -melf32bmipn32"
5704 LD="${LD-ld} -melf64bmip"
5708 case `/usr/bin/file conftest.$ac_objext` in
5724 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5725 # Find out which ABI we are using.
5726 echo 'int i;' > conftest.$ac_ext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; then
5732 case `/usr/bin/file conftest.o` in
5736 LD="${LD-ld} -m elf_i386"
5738 ppc64-*linux*|powerpc64-*linux*)
5739 LD="${LD-ld} -m elf32ppclinux"
5742 LD="${LD-ld} -m elf_s390"
5745 LD="${LD-ld} -m elf32_sparc"
5752 LD="${LD-ld} -m elf_x86_64"
5754 ppc*-*linux*|powerpc*-*linux*)
5755 LD="${LD-ld} -m elf64ppc"
5758 LD="${LD-ld} -m elf64_s390"
5761 LD="${LD-ld} -m elf64_sparc"
5771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772 SAVE_CFLAGS="$CFLAGS"
5773 CFLAGS="$CFLAGS -belf"
5774 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5776 if test "${lt_cv_cc_needs_belf+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 cat >conftest.$ac_ext <<_ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802 (eval $ac_link) 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_c_werror_flag"
5810 || test ! -s conftest.err'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 lt_cv_cc_needs_belf=yes
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 lt_cv_cc_needs_belf=no
5829 rm -f conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5839 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5842 CFLAGS="$SAVE_CFLAGS"
5845 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -n "$DLLTOOL"; then
5855 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 DLLTOOL=$ac_cv_prog_DLLTOOL
5874 if test -n "$DLLTOOL"; then
5875 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5876 echo "${ECHO_T}$DLLTOOL" >&6
5878 echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5883 if test -z "$ac_cv_prog_DLLTOOL"; then
5884 ac_ct_DLLTOOL=$DLLTOOL
5885 # Extract the first word of "dlltool", so it can be a program name with args.
5886 set dummy dlltool; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 if test -n "$ac_ct_DLLTOOL"; then
5893 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5912 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5913 if test -n "$ac_ct_DLLTOOL"; then
5914 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5915 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5921 DLLTOOL=$ac_ct_DLLTOOL
5923 DLLTOOL="$ac_cv_prog_DLLTOOL"
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}as; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_AS+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 if test -n "$AS"; then
5935 ac_cv_prog_AS="$AS" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_AS="${ac_tool_prefix}as"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 if test -n "$AS"; then
5955 echo "$as_me:$LINENO: result: $AS" >&5
5956 echo "${ECHO_T}$AS" >&6
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5963 if test -z "$ac_cv_prog_AS"; then
5965 # Extract the first word of "as", so it can be a program name with args.
5966 set dummy as; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 if test -n "$ac_ct_AS"; then
5973 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_ac_ct_AS="as"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5992 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5993 if test -n "$ac_ct_AS"; then
5994 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5995 echo "${ECHO_T}$ac_ct_AS" >&6
5997 echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 if test -n "$OBJDUMP"; then
6015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 OBJDUMP=$ac_cv_prog_OBJDUMP
6034 if test -n "$OBJDUMP"; then
6035 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6036 echo "${ECHO_T}$OBJDUMP" >&6
6038 echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044 ac_ct_OBJDUMP=$OBJDUMP
6045 # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 if test -n "$ac_ct_OBJDUMP"; then
6053 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073 if test -n "$ac_ct_OBJDUMP"; then
6074 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6075 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6077 echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6081 OBJDUMP=$ac_ct_OBJDUMP
6083 OBJDUMP="$ac_cv_prog_OBJDUMP"
6090 need_locks="$enable_libtool_lock"
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6100 # On Suns, sometimes $CPP names a directory.
6101 if test -n "$CPP" && test -d "$CPP"; then
6104 if test -z "$CPP"; then
6105 if test "${ac_cv_prog_CPP+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 # Double quotes because CPP needs to be expanded
6109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6112 for ac_c_preproc_warn_flag in '' yes
6114 # Use a header file that comes with gcc, so configuring glibc
6115 # with a fresh cross-compiler works.
6116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117 # <limits.h> exists even on freestanding compilers.
6118 # On the NeXT, cc -E runs the code through the compiler's parser,
6119 # not just through cpp. "Syntax error" is here to catch this case.
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6127 # include <limits.h>
6129 # include <assert.h>
6133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } >/dev/null; then
6141 if test -s conftest.err; then
6142 ac_cpp_err=$ac_c_preproc_warn_flag
6143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6150 if test -z "$ac_cpp_err"; then
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 # Broken: fails on valid input.
6159 rm -f conftest.err conftest.$ac_ext
6161 # OK, works on sane cases. Now check whether non-existent headers
6162 # can be detected and how.
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <ac_nonexistent.h>
6171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1 >conftest.err
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } >/dev/null; then
6179 if test -s conftest.err; then
6180 ac_cpp_err=$ac_c_preproc_warn_flag
6181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6188 if test -z "$ac_cpp_err"; then
6189 # Broken: success on invalid input.
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6195 # Passes both tests.
6199 rm -f conftest.err conftest.$ac_ext
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6216 echo "$as_me:$LINENO: result: $CPP" >&5
6217 echo "${ECHO_T}$CPP" >&6
6219 for ac_c_preproc_warn_flag in '' yes
6221 # Use a header file that comes with gcc, so configuring glibc
6222 # with a fresh cross-compiler works.
6223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224 # <limits.h> exists even on freestanding compilers.
6225 # On the NeXT, cc -E runs the code through the compiler's parser,
6226 # not just through cpp. "Syntax error" is here to catch this case.
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 # include <limits.h>
6236 # include <assert.h>
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null; then
6248 if test -s conftest.err; then
6249 ac_cpp_err=$ac_c_preproc_warn_flag
6250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6257 if test -z "$ac_cpp_err"; then
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 # Broken: fails on valid input.
6266 rm -f conftest.err conftest.$ac_ext
6268 # OK, works on sane cases. Now check whether non-existent headers
6269 # can be detected and how.
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <ac_nonexistent.h>
6278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } >/dev/null; then
6286 if test -s conftest.err; then
6287 ac_cpp_err=$ac_c_preproc_warn_flag
6288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6295 if test -z "$ac_cpp_err"; then
6296 # Broken: success on invalid input.
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 # Passes both tests.
6306 rm -f conftest.err conftest.$ac_ext
6309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310 rm -f conftest.err conftest.$ac_ext
6311 if $ac_preproc_ok; then
6314 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&2;}
6318 { (exit 1); exit 1; }; }
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6330 if test "${ac_cv_header_stdc+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 cat >conftest.$ac_ext <<_ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354 (eval $ac_compile) 2>conftest.er1
6356 grep -v '^ *+' conftest.er1 >conftest.err
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -z "$ac_c_werror_flag"
6362 || test ! -s conftest.err'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; } &&
6368 { ac_try='test -s conftest.$ac_objext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_cv_header_stdc=yes
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6379 ac_cv_header_stdc=no
6381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383 if test $ac_cv_header_stdc = yes; then
6384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395 $EGREP "memchr" >/dev/null 2>&1; then
6398 ac_cv_header_stdc=no
6404 if test $ac_cv_header_stdc = yes; then
6405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6406 cat >conftest.$ac_ext <<_ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416 $EGREP "free" >/dev/null 2>&1; then
6419 ac_cv_header_stdc=no
6425 if test $ac_cv_header_stdc = yes; then
6426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6427 if test "$cross_compiling" = yes; then
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6437 #if ((' ' & 0x0FF) == 0x020)
6438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6441 # define ISLOWER(c) \
6442 (('a' <= (c) && (c) <= 'i') \
6443 || ('j' <= (c) && (c) <= 'r') \
6444 || ('s' <= (c) && (c) <= 'z'))
6445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6453 for (i = 0; i < 256; i++)
6454 if (XOR (islower (i), ISLOWER (i))
6455 || toupper (i) != TOUPPER (i))
6460 rm -f conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462 (eval $ac_link) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6473 echo "$as_me: program exited with status $ac_status" >&5
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_cv_header_stdc=no
6480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6484 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6485 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6486 if test $ac_cv_header_stdc = yes; then
6488 cat >>confdefs.h <<\_ACEOF
6489 #define STDC_HEADERS 1
6494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6505 inttypes.h stdint.h unistd.h
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6521 #include <$ac_header>
6523 rm -f conftest.$ac_objext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525 (eval $ac_compile) 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_c_werror_flag"
6533 || test ! -s conftest.err'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; } &&
6539 { ac_try='test -s conftest.$ac_objext'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6545 eval "$as_ac_Header=yes"
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6550 eval "$as_ac_Header=no"
6552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557 cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567 for ac_header in dlfcn.h
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571 echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6579 # Is the header compilable?
6580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6588 $ac_includes_default
6589 #include <$ac_header>
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593 (eval $ac_compile) 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_header_compiler=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 ac_header_compiler=no
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622 echo "${ECHO_T}$ac_header_compiler" >&6
6624 # Is the header present?
6625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6627 cat >conftest.$ac_ext <<_ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #include <$ac_header>
6635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } >/dev/null; then
6643 if test -s conftest.err; then
6644 ac_cpp_err=$ac_c_preproc_warn_flag
6645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6652 if test -z "$ac_cpp_err"; then
6653 ac_header_preproc=yes
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 ac_header_preproc=no
6660 rm -f conftest.err conftest.$ac_ext
6661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6662 echo "${ECHO_T}$ac_header_preproc" >&6
6664 # So? What about this header?
6665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6671 ac_header_preproc=yes
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6688 ## --------------------------------------------- ##
6689 ## Report this to <http://www.openldap.org/its/> ##
6690 ## --------------------------------------------- ##
6693 sed "s/^/$as_me: WARNING: /" >&2
6696 echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 eval "$as_ac_Header=\$ac_header_preproc"
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6708 cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6717 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6719 # find the maximum length of command line arguments
6720 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6721 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6722 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 # On DJGPP, this test can blow up pretty badly due to problems in libc
6731 # (any single argument exceeding 2000 bytes causes a buffer overrun
6732 # during glob expansion). Even if it were fixed, the result of this
6733 # check would be larger than it should be.
6734 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6738 # Under GNU Hurd, this test is not required because there is
6739 # no limit to the length of command line arguments.
6740 # Libtool will interpret -1 as no limit whatsoever
6741 lt_cv_sys_max_cmd_len=-1;
6745 # On Win9x/ME, this test blows up -- it succeeds, but takes
6746 # about 5 minutes as the teststring grows exponentially.
6747 # Worse, since 9x/ME are not pre-emptively multitasking,
6748 # you end up with a "frozen" computer, even though with patience
6749 # the test eventually succeeds (with a max line length of 256k).
6750 # Instead, let's just punt: use the minimum linelength reported by
6751 # all of the supported platforms: 8192 (on NT/2K/XP).
6752 lt_cv_sys_max_cmd_len=8192;
6756 # On AmigaOS with pdksh, this test takes hours, literally.
6757 # So we just punt and use a minimum line length of 8192.
6758 lt_cv_sys_max_cmd_len=8192;
6761 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6762 # This has been around since 386BSD, at least. Likely further.
6763 if test -x /sbin/sysctl; then
6764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6765 elif test -x /usr/sbin/sysctl; then
6766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6768 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6770 # And add a safety zone
6771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6775 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6776 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6777 # nice to cause kernel panics so lets avoid the loop below.
6778 # First set a reasonable default.
6779 lt_cv_sys_max_cmd_len=16384
6781 if test -x /sbin/sysconfig; then
6782 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6783 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6788 # If test is not a shell built-in, we'll probably end up computing a
6789 # maximum length that is only half of the actual maximum length, but
6791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6792 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6793 = "XX$teststring") >/dev/null 2>&1 &&
6794 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6795 lt_cv_sys_max_cmd_len=$new_result &&
6796 test $i != 17 # 1/2 MB should be enough
6799 teststring=$teststring$teststring
6802 # Add a significant safety factor because C++ compilers can tack on massive
6803 # amounts of additional arguments before passing them to the linker.
6804 # It appears as though 1/2 is a usable value.
6805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6811 if test -n $lt_cv_sys_max_cmd_len ; then
6812 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6813 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6815 echo "$as_me:$LINENO: result: none" >&5
6816 echo "${ECHO_T}none" >&6
6822 # Check for command to grab the raw symbol name followed by C symbol from nm.
6823 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6824 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6825 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 # These are sane defaults that work on at least a few old systems.
6830 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6832 # Character class describing NM global symbol codes.
6833 symcode='[BCDEGRST]'
6835 # Regexp to match symbols that can be accessed directly from C.
6836 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6838 # Transform an extracted symbol line into a proper C declaration
6839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6841 # Transform an extracted symbol line into symbol name and symbol address
6842 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'"
6844 # Define system-specific variables.
6849 cygwin* | mingw* | pw32*)
6850 symcode='[ABCDGISTW]'
6852 hpux*) # Its linker distinguishes data from code symbols
6853 if test "$host_cpu" = ia64; then
6854 symcode='[ABCDEGRST]'
6856 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6857 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'"
6860 if test "$host_cpu" = ia64; then
6861 symcode='[ABCDGIRSTW]'
6862 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863 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'"
6867 symcode='[BCDEGRST]'
6870 symcode='[BCDEGQRST]'
6880 # Handle CRLF in mingw tool chain
6884 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6888 # If we're using GNU nm, then use its standard symbol codes.
6889 case `$NM -V 2>&1` in
6890 *GNU* | *'with BFD'*)
6891 symcode='[ABCDGIRSTW]' ;;
6894 # Try without a prefix undercore, then with it.
6895 for ac_symprfx in "" "_"; do
6897 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898 symxfrm="\\1 $ac_symprfx\\2 \\2"
6900 # Write the raw and C identifiers.
6901 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6903 # Check to see that the pipe works correctly.
6907 cat > conftest.$ac_ext <<EOF
6912 void nm_test_func(){}
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920 (eval $ac_compile) 2>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; then
6924 # Now try to grab the symbols.
6926 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } && test -s "$nlist"; then
6931 # Try sorting and uniquifying the output.
6932 if sort "$nlist" | uniq > "$nlist"T; then
6933 mv -f "$nlist"T "$nlist"
6938 # Make sure that we snagged all the symbols we need.
6939 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6940 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6941 cat <<EOF > conftest.$ac_ext
6947 # Now generate the symbol file.
6948 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6950 cat <<EOF >> conftest.$ac_ext
6951 #if defined (__STDC__) && __STDC__
6952 # define lt_ptr_t void *
6954 # define lt_ptr_t char *
6958 /* The mapping between symbol names and symbols. */
6963 lt_preloaded_symbols[] =
6966 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6967 cat <<\EOF >> conftest.$ac_ext
6975 # Now try linking the two files.
6976 mv conftest.$ac_objext conftstm.$ac_objext
6977 lt_save_LIBS="$LIBS"
6978 lt_save_CFLAGS="$CFLAGS"
6979 LIBS="conftstm.$ac_objext"
6980 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982 (eval $ac_link) 2>&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6988 LIBS="$lt_save_LIBS"
6989 CFLAGS="$lt_save_CFLAGS"
6991 echo "cannot find nm_test_func in $nlist" >&5
6994 echo "cannot find nm_test_var in $nlist" >&5
6997 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7000 echo "$progname: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 rm -f conftest* conftst*
7005 # Do not use the global_symbol_pipe unless it works.
7006 if test "$pipe_works" = yes; then
7009 lt_cv_sys_global_symbol_pipe=
7015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016 lt_cv_sys_global_symbol_to_cdecl=
7018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019 echo "$as_me:$LINENO: result: failed" >&5
7020 echo "${ECHO_T}failed" >&6
7022 echo "$as_me:$LINENO: result: ok" >&5
7023 echo "${ECHO_T}ok" >&6
7026 echo "$as_me:$LINENO: checking for objdir" >&5
7027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7028 if test "${lt_cv_objdir+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 rm -f .libs 2>/dev/null
7032 mkdir .libs 2>/dev/null
7033 if test -d .libs; then
7036 # MS-DOS does not allow filenames that begin with a dot.
7039 rmdir .libs 2>/dev/null
7041 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7042 echo "${ECHO_T}$lt_cv_objdir" >&6
7043 objdir=$lt_cv_objdir
7051 # AIX sometimes has problems with the GCC collect2 program. For some
7052 # reason, if we set the COLLECT_NAMES environment variable, the problems
7053 # vanish in a puff of smoke.
7054 if test "X${COLLECT_NAMES+set}" != Xset; then
7056 export COLLECT_NAMES
7061 # Sed substitution that helps us do robust quoting. It backslashifies
7062 # metacharacters that are still active within double-quoted strings.
7063 Xsed='sed -e 1s/^X//'
7064 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7066 # Same as above, but do not quote variable references.
7067 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7069 # Sed substitution to delay expansion of an escaped shell variable in a
7070 # double_quote_subst'ed string.
7071 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7080 default_ofile=libtool
7081 can_build_shared=yes
7083 # All known linkers require a `.a' archive for static linking (except MSVC,
7084 # which needs '.lib').
7086 ltmain="$ac_aux_dir/ltmain.sh"
7087 ofile="$default_ofile"
7088 with_gnu_ld="$lt_cv_prog_gnu_ld"
7090 if test -n "$ac_tool_prefix"; then
7091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}ar; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_AR+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 if test -n "$AR"; then
7099 ac_cv_prog_AR="$AR" # Let the user override the test.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_AR="${ac_tool_prefix}ar"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 if test -n "$AR"; then
7119 echo "$as_me:$LINENO: result: $AR" >&5
7120 echo "${ECHO_T}$AR" >&6
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7127 if test -z "$ac_cv_prog_AR"; then
7129 # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 if test -n "$ac_ct_AR"; then
7137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_ac_ct_AR="ar"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7159 echo "${ECHO_T}$ac_ct_AR" >&6
7161 echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_prog_RANLIB+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 if test -n "$RANLIB"; then
7179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199 echo "$as_me:$LINENO: result: $RANLIB" >&5
7200 echo "${ECHO_T}$RANLIB" >&6
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7207 if test -z "$ac_cv_prog_RANLIB"; then
7208 ac_ct_RANLIB=$RANLIB
7209 # Extract the first word of "ranlib", so it can be a program name with args.
7210 set dummy ranlib; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 if test -n "$ac_ct_RANLIB"; then
7217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_ac_ct_RANLIB="ranlib"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237 if test -n "$ac_ct_RANLIB"; then
7238 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7241 echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7245 RANLIB=$ac_ct_RANLIB
7247 RANLIB="$ac_cv_prog_RANLIB"
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}strip; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_STRIP+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 if test -n "$STRIP"; then
7259 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 STRIP=$ac_cv_prog_STRIP
7278 if test -n "$STRIP"; then
7279 echo "$as_me:$LINENO: result: $STRIP" >&5
7280 echo "${ECHO_T}$STRIP" >&6
7282 echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7287 if test -z "$ac_cv_prog_STRIP"; then
7289 # Extract the first word of "strip", so it can be a program name with args.
7290 set dummy strip; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 if test -n "$ac_ct_STRIP"; then
7297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_STRIP="strip"
7307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317 if test -n "$ac_ct_STRIP"; then
7318 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319 echo "${ECHO_T}$ac_ct_STRIP" >&6
7321 echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7327 STRIP="$ac_cv_prog_STRIP"
7332 old_CFLAGS="$CFLAGS"
7334 # Set sane defaults for various variables
7335 test -z "$AR" && AR=ar
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7337 test -z "$AS" && AS=as
7338 test -z "$CC" && CC=cc
7339 test -z "$LTCC" && LTCC=$CC
7340 test -z "$DLLTOOL" && DLLTOOL=dlltool
7341 test -z "$LD" && LD=ld
7342 test -z "$LN_S" && LN_S="ln -s"
7343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7344 test -z "$NM" && NM=nm
7345 test -z "$SED" && SED=sed
7346 test -z "$OBJDUMP" && OBJDUMP=objdump
7347 test -z "$RANLIB" && RANLIB=:
7348 test -z "$STRIP" && STRIP=:
7349 test -z "$ac_objext" && ac_objext=o
7351 # Determine commands to create old-style static archives.
7352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7353 old_postinstall_cmds='chmod 644 $oldlib'
7354 old_postuninstall_cmds=
7356 if test -n "$RANLIB"; then
7359 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7362 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7365 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7368 for cc_temp in $compiler""; do
7370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7379 # Only perform the check for file, if the check method requires it
7380 case $deplibs_check_method in
7382 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7383 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7384 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7393 lt_save_MAGIC_CMD="$MAGIC_CMD"
7394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396 for ac_dir in $ac_dummy; do
7398 test -z "$ac_dir" && ac_dir=.
7399 if test -f $ac_dir/${ac_tool_prefix}file; then
7400 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7401 if test -n "$file_magic_test_file"; then
7402 case $deplibs_check_method in
7404 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407 $EGREP "$file_magic_regex" > /dev/null; then
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such. This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem. Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7429 MAGIC_CMD="$lt_save_MAGIC_CMD"
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7443 if test -z "$lt_cv_path_MAGIC_CMD"; then
7444 if test -n "$ac_tool_prefix"; then
7445 echo "$as_me:$LINENO: checking for file" >&5
7446 echo $ECHO_N "checking for file... $ECHO_C" >&6
7447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7455 lt_save_MAGIC_CMD="$MAGIC_CMD"
7456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458 for ac_dir in $ac_dummy; do
7460 test -z "$ac_dir" && ac_dir=.
7461 if test -f $ac_dir/file; then
7462 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463 if test -n "$file_magic_test_file"; then
7464 case $deplibs_check_method in
7466 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469 $EGREP "$file_magic_regex" > /dev/null; then
7474 *** Warning: the command libtool uses to detect shared libraries,
7475 *** $file_magic_cmd, produces output that libtool cannot recognize.
7476 *** The result is that libtool may fail to recognize shared libraries
7477 *** as such. This will affect the creation of libtool libraries that
7478 *** depend on shared libraries, but programs linked with such libtool
7479 *** libraries will work regardless of this problem. Nevertheless, you
7480 *** may want to report the problem to your system manager and/or to
7481 *** bug-libtool@gnu.org
7491 MAGIC_CMD="$lt_save_MAGIC_CMD"
7496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497 if test -n "$MAGIC_CMD"; then
7498 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7499 echo "${ECHO_T}$MAGIC_CMD" >&6
7501 echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7515 enable_win32_dll=yes
7517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7518 if test "${enable_libtool_lock+set}" = set; then
7519 enableval="$enable_libtool_lock"
7522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7525 # Check whether --with-pic or --without-pic was given.
7526 if test "${with_pic+set}" = set; then
7532 test -z "$pic_mode" && pic_mode=default
7534 # Use C for the default configuration in the libtool script
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544 # Source file extension for C test sources.
7547 # Object file extension for compiled C test sources.
7551 # Code to be used in simple compile tests
7552 lt_simple_compile_test_code="int some_variable = 0;\n"
7554 # Code to be used in simple link tests
7555 lt_simple_link_test_code='int main(){return(0);}\n'
7558 # If no C compiler was specified, use CC.
7561 # Allow CC to be a program name with arguments.
7565 # save warnings/boilerplate of simple test code
7566 ac_outfile=conftest.$ac_objext
7567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7569 _lt_compiler_boilerplate=`cat conftest.err`
7572 ac_outfile=conftest.$ac_objext
7573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7575 _lt_linker_boilerplate=`cat conftest.err`
7580 # Check for any special shared library compilation flags.
7583 if test "$GCC" = no; then
7586 lt_prog_cc_shlib='-belf'
7590 if test -n "$lt_prog_cc_shlib"; then
7591 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7592 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7593 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7595 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7596 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7597 lt_cv_prog_cc_can_build_shared=no
7603 # Check to make sure the static flag actually works.
7605 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7606 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_static_works+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 lt_prog_compiler_static_works=no
7611 save_LDFLAGS="$LDFLAGS"
7612 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7613 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7614 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7615 # The linker can only warn and ignore the option if not recognized
7616 # So say no if there are warnings
7617 if test -s conftest.err; then
7618 # Append any errors to the config.log.
7619 cat conftest.err 1>&5
7620 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7621 $SED '/^$/d' conftest.err >conftest.er2
7622 if diff conftest.exp conftest.er2 >/dev/null; then
7623 lt_prog_compiler_static_works=yes
7626 lt_prog_compiler_static_works=yes
7630 LDFLAGS="$save_LDFLAGS"
7633 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7636 if test x"$lt_prog_compiler_static_works" = xyes; then
7639 lt_prog_compiler_static=
7645 lt_prog_compiler_no_builtin_flag=
7647 if test "$GCC" = yes; then
7648 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 lt_cv_prog_compiler_rtti_exceptions=no
7657 ac_outfile=conftest.$ac_objext
7658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7659 lt_compiler_flag="-fno-rtti -fno-exceptions"
7660 # Insert the option either (1) after the last *FLAGS variable, or
7661 # (2) before a word containing "conftest.", or (3) at the end.
7662 # Note that $ac_compile itself does not contain backslashes and begins
7663 # with a dollar sign (not a hyphen), so the echo should work correctly.
7664 # The option is referenced via a variable to avoid confusing sed.
7665 lt_compile=`echo "$ac_compile" | $SED \
7666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668 -e 's:$: $lt_compiler_flag:'`
7669 (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670 (eval "$lt_compile" 2>conftest.err)
7672 cat conftest.err >&5
7673 echo "$as_me:7673: \$? = $ac_status" >&5
7674 if (exit $ac_status) && test -s "$ac_outfile"; then
7675 # The compiler can only warn and ignore the option if not recognized
7676 # So say no if there are warnings other than the usual output.
7677 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7678 $SED '/^$/d' conftest.err >conftest.er2
7679 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7680 lt_cv_prog_compiler_rtti_exceptions=yes
7686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7690 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7697 lt_prog_compiler_wl=
7698 lt_prog_compiler_pic=
7699 lt_prog_compiler_static=
7701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7704 if test "$GCC" = yes; then
7705 lt_prog_compiler_wl='-Wl,'
7706 lt_prog_compiler_static='-static'
7710 # All AIX code is PIC.
7711 if test "$host_cpu" = ia64; then
7712 # AIX 5 now supports IA64 processor
7713 lt_prog_compiler_static='-Bstatic'
7718 # FIXME: we need at least 68020 code to build shared libraries, but
7719 # adding the `-m68020' flag to GCC prevents building anything better,
7721 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7724 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725 # PIC is the default for these OSes.
7728 mingw* | pw32* | os2*)
7729 # This hack is so that the source file can tell whether it is being
7730 # built for inclusion in a dll (and should export symbols for example).
7731 lt_prog_compiler_pic='-DDLL_EXPORT'
7734 darwin* | rhapsody*)
7735 # PIC is the default on this platform
7736 # Common symbols not allowed in MH_DYLIB files
7737 lt_prog_compiler_pic='-fno-common'
7741 # Just because we use GCC doesn't mean we suddenly get shared libraries
7742 # on systems that don't support them.
7743 lt_prog_compiler_can_build_shared=no
7748 if test -d /usr/nec; then
7749 lt_prog_compiler_pic=-Kconform_pic
7754 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7761 lt_prog_compiler_pic='-fPIC'
7767 lt_prog_compiler_pic='-fPIC'
7771 # PORTME Check for flag to pass linker flags through the system compiler.
7774 lt_prog_compiler_wl='-Wl,'
7775 if test "$host_cpu" = ia64; then
7776 # AIX 5 now supports IA64 processor
7777 lt_prog_compiler_static='-Bstatic'
7779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7783 # PIC is the default on this platform
7784 # Common symbols not allowed in MH_DYLIB files
7785 case $cc_basename in
7787 lt_prog_compiler_pic='-qnocommon'
7788 lt_prog_compiler_wl='-Wl,'
7793 mingw* | pw32* | os2*)
7794 # This hack is so that the source file can tell whether it is being
7795 # built for inclusion in a dll (and should export symbols for example).
7796 lt_prog_compiler_pic='-DDLL_EXPORT'
7799 hpux9* | hpux10* | hpux11*)
7800 lt_prog_compiler_wl='-Wl,'
7801 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7808 lt_prog_compiler_pic='+Z'
7811 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812 lt_prog_compiler_static='${wl}-a ${wl}archive'
7815 irix5* | irix6* | nonstopux*)
7816 lt_prog_compiler_wl='-Wl,'
7817 # PIC (with -KPIC) is the default.
7818 lt_prog_compiler_static='-non_shared'
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7827 case $cc_basename in
7829 lt_prog_compiler_wl='-Wl,'
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-static'
7833 pgcc* | pgf77* | pgf90* | pgf95*)
7834 # Portland Group compilers (*not* the Pentium gcc compiler,
7835 # which looks to be a dead project)
7836 lt_prog_compiler_wl='-Wl,'
7837 lt_prog_compiler_pic='-fpic'
7838 lt_prog_compiler_static='-Bstatic'
7841 lt_prog_compiler_wl='-Wl,'
7842 # All Alpha code is PIC.
7843 lt_prog_compiler_static='-non_shared'
7848 osf3* | osf4* | osf5*)
7849 lt_prog_compiler_wl='-Wl,'
7850 # All OSF/1 code is PIC.
7851 lt_prog_compiler_static='-non_shared'
7855 lt_prog_compiler_pic='-Kpic'
7856 lt_prog_compiler_static='-dn'
7860 lt_prog_compiler_pic='-KPIC'
7861 lt_prog_compiler_static='-Bstatic'
7862 case $cc_basename in
7864 lt_prog_compiler_wl='-Qoption ld ';;
7866 lt_prog_compiler_wl='-Wl,';;
7871 lt_prog_compiler_wl='-Qoption ld '
7872 lt_prog_compiler_pic='-PIC'
7873 lt_prog_compiler_static='-Bstatic'
7876 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7877 lt_prog_compiler_wl='-Wl,'
7878 lt_prog_compiler_pic='-KPIC'
7879 lt_prog_compiler_static='-Bstatic'
7883 if test -d /usr/nec ;then
7884 lt_prog_compiler_pic='-Kconform_pic'
7885 lt_prog_compiler_static='-Bstatic'
7890 lt_prog_compiler_wl='-Wl,'
7891 lt_prog_compiler_can_build_shared=no
7895 lt_prog_compiler_pic='-pic'
7896 lt_prog_compiler_static='-Bstatic'
7900 lt_prog_compiler_can_build_shared=no
7905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7906 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7909 # Check to make sure the PIC flag actually works.
7911 if test -n "$lt_prog_compiler_pic"; then
7913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7915 if test "${lt_prog_compiler_pic_works+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 lt_prog_compiler_pic_works=no
7919 ac_outfile=conftest.$ac_objext
7920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7921 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7922 # Insert the option either (1) after the last *FLAGS variable, or
7923 # (2) before a word containing "conftest.", or (3) at the end.
7924 # Note that $ac_compile itself does not contain backslashes and begins
7925 # with a dollar sign (not a hyphen), so the echo should work correctly.
7926 # The option is referenced via a variable to avoid confusing sed.
7927 lt_compile=`echo "$ac_compile" | $SED \
7928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930 -e 's:$: $lt_compiler_flag:'`
7931 (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
7932 (eval "$lt_compile" 2>conftest.err)
7934 cat conftest.err >&5
7935 echo "$as_me:7935: \$? = $ac_status" >&5
7936 if (exit $ac_status) && test -s "$ac_outfile"; then
7937 # The compiler can only warn and ignore the option if not recognized
7938 # So say no if there are warnings other than the usual output.
7939 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7940 $SED '/^$/d' conftest.err >conftest.er2
7941 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7942 lt_prog_compiler_pic_works=yes
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7951 if test x"$lt_prog_compiler_pic_works" = xyes; then
7952 case $lt_prog_compiler_pic in
7954 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7957 lt_prog_compiler_pic=
7958 lt_prog_compiler_can_build_shared=no
7963 # For platforms which do not support PIC, -DPIC is meaningless:
7965 lt_prog_compiler_pic=
7968 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7972 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 lt_cv_prog_compiler_c_o=no
7978 $rm -r conftest 2>/dev/null
7982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7984 lt_compiler_flag="-o out/conftest2.$ac_objext"
7985 # Insert the option either (1) after the last *FLAGS variable, or
7986 # (2) before a word containing "conftest.", or (3) at the end.
7987 # Note that $ac_compile itself does not contain backslashes and begins
7988 # with a dollar sign (not a hyphen), so the echo should work correctly.
7989 lt_compile=`echo "$ac_compile" | $SED \
7990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7992 -e 's:$: $lt_compiler_flag:'`
7993 (eval echo "\"\$as_me:7993: $lt_compile\"" >&5)
7994 (eval "$lt_compile" 2>out/conftest.err)
7996 cat out/conftest.err >&5
7997 echo "$as_me:7997: \$? = $ac_status" >&5
7998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8000 # The compiler can only warn and ignore the option if not recognized
8001 # So say no if there are warnings
8002 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8003 $SED '/^$/d' out/conftest.err >out/conftest.er2
8004 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8005 lt_cv_prog_compiler_c_o=yes
8010 # SGI C++ compiler will create directory out/ii_files/ for
8011 # template instantiation
8012 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8013 $rm out/* && rmdir out
8019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8023 hard_links="nottested"
8024 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8025 # do not overwrite the value of need_locks provided by the user
8026 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8032 ln conftest.a conftest.b 2>&5 || hard_links=no
8033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034 echo "$as_me:$LINENO: result: $hard_links" >&5
8035 echo "${ECHO_T}$hard_links" >&6
8036 if test "$hard_links" = no; then
8037 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8045 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8049 allow_undefined_flag=
8050 enable_shared_with_static_runtimes=no
8052 archive_expsym_cmds=
8053 old_archive_From_new_cmds=
8054 old_archive_from_expsyms_cmds=
8055 export_dynamic_flag_spec=
8056 whole_archive_flag_spec=
8057 thread_safe_flag_spec=
8058 hardcode_libdir_flag_spec=
8059 hardcode_libdir_flag_spec_ld=
8060 hardcode_libdir_separator=
8063 hardcode_shlibpath_var=unsupported
8064 link_all_deplibs=unknown
8065 hardcode_automatic=no
8068 always_export_symbols=no
8069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8070 # include_expsyms should be a list of space-separated symbols to be *always*
8071 # included in the symbol list
8073 # exclude_expsyms can be an extended regexp of symbols to exclude
8074 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8075 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8076 # as well as any symbol that contains `d'.
8077 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8079 # platforms (ab)use it in PIC code, but their linkers get confused if
8080 # the symbol is explicitly referenced. Since portable code cannot
8081 # rely on this symbol name, it's probably fine to never include it in
8082 # preloaded symbol tables.
8083 extract_expsyms_cmds=
8084 # Just being paranoid about ensuring that cc_basename is set.
8085 for cc_temp in $compiler""; do
8087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8096 cygwin* | mingw* | pw32*)
8097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8098 # When not using gcc, we currently assume that we are using
8099 # Microsoft Visual C++.
8100 if test "$GCC" != yes; then
8110 if test "$with_gnu_ld" = yes; then
8111 # If archive_cmds runs LD, not CC, wlarc should be empty
8114 # Set some defaults for GNU ld with shared library support. These
8115 # are reset later if shared libraries are not supported. Putting them
8116 # here allows them to be overridden if necessary.
8117 runpath_var=LD_RUN_PATH
8118 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119 export_dynamic_flag_spec='${wl}--export-dynamic'
8120 # ancient GNU ld didn't support --whole-archive et. al.
8121 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8124 whole_archive_flag_spec=
8126 supports_anon_versioning=no
8127 case `$LD -v 2>/dev/null` in
8128 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131 *\ 2.11.*) ;; # other 2.11 versions
8132 *) supports_anon_versioning=yes ;;
8135 # See if GNU ld supports shared libraries.
8137 aix3* | aix4* | aix5*)
8138 # On AIX/PPC, the GNU linker is very broken
8139 if test "$host_cpu" != ia64; then
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support. If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8154 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)'
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 hardcode_minus_L=yes
8158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159 # that the semantics of dynamic libraries on AmigaOS, at least up
8160 # to version 4, is to share data among multiple programs linked
8161 # with the same dynamic library. Since this doesn't match the
8162 # behavior of shared libraries on other platforms, we can't use
8168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169 allow_undefined_flag=unsupported
8170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171 # support --undefined. This deserves some investigation. FIXME
8172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178 cygwin* | mingw* | pw32*)
8179 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180 # as there is no search path for DLLs.
8181 hardcode_libdir_flag_spec='-L$libdir'
8182 allow_undefined_flag=unsupported
8183 always_export_symbols=no
8184 enable_shared_with_static_runtimes=yes
8185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8187 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8189 # If the export-symbols file already is a .def file (1st line
8190 # is EXPORTS), use it as is; otherwise, prepend...
8191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192 cp $export_symbols $output_objdir/$soname.def;
8194 echo EXPORTS > $output_objdir/$soname.def;
8195 cat $export_symbols >> $output_objdir/$soname.def;
8197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206 case $cc_basename,$host_cpu in
8207 pgcc*) # Portland Group C compiler
8208 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'
8209 tmp_addflag=' $pic_flag'
8211 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8212 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'
8213 tmp_addflag=' $pic_flag -Mnomain' ;;
8214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8215 tmp_addflag=' -i_dynamic' ;;
8216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8217 tmp_addflag=' -i_dynamic -nofor_main' ;;
8218 ifc* | ifort*) # Intel Fortran compiler
8219 tmp_addflag=' -nofor_main' ;;
8221 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 if test $supports_anon_versioning = yes; then
8224 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226 $echo "local: *; };" >> $output_objdir/$libname.ver~
8227 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8245 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8250 *** create shared libraries on Solaris systems. Therefore, libtool
8251 *** is disabling shared libraries support. We urge you to upgrade GNU
8252 *** binutils to release 2.9.1 or newer. Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8257 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8269 hardcode_shlibpath_var=no
8273 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8282 if test "$ld_shlibs" = no; then
8284 hardcode_libdir_flag_spec=
8285 export_dynamic_flag_spec=
8286 whole_archive_flag_spec=
8289 # PORTME fill in a description of your system's linker (not GNU ld)
8292 allow_undefined_flag=unsupported
8293 always_export_symbols=yes
8294 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'
8295 # Note: this linker hardcodes the directories in LIBPATH if there
8296 # are no directories specified by -L.
8297 hardcode_minus_L=yes
8298 if test "$GCC" = yes && test -z "$link_static_flag"; then
8299 # Neither direct hardcoding nor static linking is supported with a
8301 hardcode_direct=unsupported
8306 if test "$host_cpu" = ia64; then
8307 # On IA64, the linker does run time linking by default, so we don't
8308 # have to do anything special.
8309 aix_use_runtimelinking=no
8310 exp_sym_flag='-Bexport'
8313 # If we're using GNU nm, then we don't want the "-C" option.
8314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8316 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'
8318 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'
8320 aix_use_runtimelinking=no
8322 # Test if we are trying to use run time linking or normal
8323 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8324 # need to do runtime linking.
8325 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8326 for ld_flag in $LDFLAGS; do
8327 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8328 aix_use_runtimelinking=yes
8334 exp_sym_flag='-bexport'
8335 no_entry_flag='-bnoentry'
8338 # When large executables or shared objects are built, AIX ld can
8339 # have problems creating the table of contents. If linking a library
8340 # or program results in "error TOC overflow" add -mminimal-toc to
8341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8346 hardcode_libdir_separator=':'
8347 link_all_deplibs=yes
8349 if test "$GCC" = yes; then
8350 case $host_os in aix4.[012]|aix4.[012].*)
8351 # We only want to do this on AIX 4.2 and lower, the check
8352 # below for broken collect2 doesn't work under 4.3+
8353 collect2name=`${CC} -print-prog-name=collect2`
8354 if test -f "$collect2name" && \
8355 strings "$collect2name" | grep resolve_lib_name >/dev/null
8357 # We have reworked collect2
8360 # We have old collect2
8361 hardcode_direct=unsupported
8362 # It fails to find uninstalled libraries when the uninstalled
8363 # path is not listed in the libpath. Setting hardcode_minus_L
8364 # to unsupported forces relinking
8365 hardcode_minus_L=yes
8366 hardcode_libdir_flag_spec='-L$libdir'
8367 hardcode_libdir_separator=
8370 shared_flag='-shared'
8371 if test "$aix_use_runtimelinking" = yes; then
8372 shared_flag="$shared_flag "'${wl}-G'
8376 if test "$host_cpu" = ia64; then
8377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8378 # chokes on -Wl,-G. The following line is correct:
8381 if test "$aix_use_runtimelinking" = yes; then
8382 shared_flag='${wl}-G'
8384 shared_flag='${wl}-bM:SRE'
8389 # It seems that -bexpall does not export symbols beginning with
8390 # underscore (_), so it is better to generate a list of symbols to export.
8391 always_export_symbols=yes
8392 if test "$aix_use_runtimelinking" = yes; then
8393 # Warning - without using the other runtime loading flags (-brtl),
8394 # -berok will link without error, but may produce a broken library.
8395 allow_undefined_flag='-berok'
8396 # Determine the default libpath from the value encoded in an empty executable.
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414 (eval $ac_link) 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8437 # Check for a 64-bit object if we didn't find anything.
8438 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; }
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8445 rm -f conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8449 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8450 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"
8452 if test "$host_cpu" = ia64; then
8453 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8454 allow_undefined_flag="-z nodefs"
8455 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"
8457 # Determine the default libpath from the value encoded in an empty executable.
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>conftest.er1
8477 grep -v '^ *+' conftest.er1 >conftest.err
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest$ac_exeext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8498 # Check for a 64-bit object if we didn't find anything.
8499 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; }
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8506 rm -f conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8510 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511 # Warning - without using the other run time loading flags,
8512 # -berok will link without error, but may produce a broken library.
8513 no_undefined_flag=' ${wl}-bernotok'
8514 allow_undefined_flag=' ${wl}-berok'
8515 # -bexpall does not export symbols beginning with underscore (_)
8516 always_export_symbols=yes
8517 # Exported symbols can be pulled into shared objects from archives
8518 whole_archive_flag_spec=' '
8519 archive_cmds_need_lc=yes
8520 # This is similar to how AIX traditionally builds its shared libraries.
8521 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'
8527 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)'
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 hardcode_minus_L=yes
8530 # see comment about different semantics on the GNU ld section
8535 export_dynamic_flag_spec=-rdynamic
8538 cygwin* | mingw* | pw32*)
8539 # When not using gcc, we currently assume that we are using
8540 # Microsoft Visual C++.
8541 # hardcode_libdir_flag_spec is actually meaningless, as there is
8542 # no search path for DLLs.
8543 hardcode_libdir_flag_spec=' '
8544 allow_undefined_flag=unsupported
8545 # Tell ltmain to make .lib files, not .a files.
8547 # Tell ltmain to make .dll files, not .so files.
8549 # FIXME: Setting linknames here is a bad hack.
8550 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8551 # The linker will automatically build a .lib file if we build a DLL.
8552 old_archive_From_new_cmds='true'
8553 # FIXME: Should let the user specify the lib program.
8554 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8555 fix_srcfile_path='`cygpath -w "$srcfile"`'
8556 enable_shared_with_static_runtimes=yes
8559 darwin* | rhapsody*)
8561 rhapsody* | darwin1.[012])
8562 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8565 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8566 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8568 case ${MACOSX_DEPLOYMENT_TARGET} in
8570 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8573 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8579 archive_cmds_need_lc=no
8581 hardcode_automatic=yes
8582 hardcode_shlibpath_var=unsupported
8583 whole_archive_flag_spec=''
8584 link_all_deplibs=yes
8585 if test "$GCC" = yes ; then
8586 output_verbose_link_cmd='echo'
8587 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8588 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8590 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}'
8591 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}'
8593 case $cc_basename in
8595 output_verbose_link_cmd='echo'
8596 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8597 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8599 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}'
8600 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}'
8610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_libdir_flag_spec='-L$libdir'
8612 hardcode_shlibpath_var=no
8619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620 # support. Future versions do this automatically, but an explicit c++rt0.o
8621 # does not break anything, and helps significantly (at the cost of a little
8624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625 hardcode_libdir_flag_spec='-R$libdir'
8627 hardcode_shlibpath_var=no
8630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8634 hardcode_minus_L=yes
8635 hardcode_shlibpath_var=no
8638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639 freebsd* | kfreebsd*-gnu | dragonfly*)
8640 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641 hardcode_libdir_flag_spec='-R$libdir'
8643 hardcode_shlibpath_var=no
8647 if test "$GCC" = yes; then
8648 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'
8650 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'
8652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653 hardcode_libdir_separator=:
8656 # hardcode_minus_L: Not really in the search PATH,
8657 # but as the default location of the library.
8658 hardcode_minus_L=yes
8659 export_dynamic_flag_spec='${wl}-E'
8663 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8666 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8675 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8682 if test "$with_gnu_ld" = no; then
8685 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686 hardcode_libdir_flag_spec_ld='+b $libdir'
8687 hardcode_libdir_separator=:
8689 hardcode_shlibpath_var=no
8692 hardcode_libdir_flag_spec='-L$libdir'
8694 hardcode_shlibpath_var=no
8696 # hardcode_minus_L: Not really in the search PATH,
8697 # but as the default location of the library.
8698 hardcode_minus_L=yes
8701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702 hardcode_libdir_separator=:
8704 export_dynamic_flag_spec='${wl}-E'
8706 # hardcode_minus_L: Not really in the search PATH,
8707 # but as the default location of the library.
8708 hardcode_minus_L=yes
8714 irix5* | irix6* | nonstopux*)
8715 if test "$GCC" = yes; then
8716 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'
8718 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'
8719 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722 hardcode_libdir_separator=:
8723 link_all_deplibs=yes
8727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8730 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8732 hardcode_libdir_flag_spec='-R$libdir'
8734 hardcode_shlibpath_var=no
8738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 hardcode_libdir_separator=:
8742 hardcode_shlibpath_var=no
8747 hardcode_shlibpath_var=no
8748 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8752 export_dynamic_flag_spec='${wl}-E'
8755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757 hardcode_libdir_flag_spec='-R$libdir'
8760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768 hardcode_libdir_flag_spec='-L$libdir'
8769 hardcode_minus_L=yes
8770 allow_undefined_flag=unsupported
8771 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'
8772 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8776 if test "$GCC" = yes; then
8777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778 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'
8780 allow_undefined_flag=' -expect_unresolved \*'
8781 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'
8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784 hardcode_libdir_separator=:
8787 osf4* | osf5*) # as osf3* with the addition of -msym flag
8788 if test "$GCC" = yes; then
8789 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790 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'
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 allow_undefined_flag=' -expect_unresolved \*'
8794 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'
8795 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8796 $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'
8798 # Both c and cxx compiler support -rpath directly
8799 hardcode_libdir_flag_spec='-rpath $libdir'
8801 hardcode_libdir_separator=:
8805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_shlibpath_var=no
8807 export_dynamic_flag_spec='${wl}-Bexport'
8808 runpath_var=LD_RUN_PATH
8809 hardcode_runpath_var=yes
8813 no_undefined_flag=' -z text'
8814 if test "$GCC" = yes; then
8816 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8821 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8825 hardcode_libdir_flag_spec='-R$libdir'
8826 hardcode_shlibpath_var=no
8828 solaris2.[0-5] | solaris2.[0-5].*) ;;
8830 # The compiler driver will combine linker options so we
8831 # cannot just pass the convience library names through
8832 # without $wl, iff we do not link with $LD.
8833 # Luckily, gcc supports the same syntax we need for Sun Studio.
8834 # Supported since Solaris 2.6 (maybe 2.5.1?)
8837 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8839 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' ;;
8842 link_all_deplibs=yes
8846 if test "x$host_vendor" = xsequent; then
8847 # Use $CC to link under sequent, because it throws in some extra .o
8848 # files that make .init and .fini sections work.
8849 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_minus_L=yes
8856 hardcode_shlibpath_var=no
8860 case $host_vendor in
8862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863 hardcode_direct=yes # is this really true???
8866 ## LD is ld it makes a PLAMLIB
8867 ## CC just makes a GrossModule.
8868 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8869 reload_cmds='$CC -r -o $output$reload_objs'
8873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8877 runpath_var='LD_RUN_PATH'
8878 hardcode_shlibpath_var=no
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_shlibpath_var=no
8884 export_dynamic_flag_spec='-Bexport'
8888 if test -d /usr/nec; then
8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_shlibpath_var=no
8891 runpath_var=LD_RUN_PATH
8892 hardcode_runpath_var=yes
8898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_shlibpath_var=no
8902 hardcode_runpath_var=yes
8903 runpath_var=LD_RUN_PATH
8906 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8907 no_undefined_flag='${wl}-z ${wl}text'
8908 if test "$GCC" = yes; then
8909 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913 runpath_var='LD_RUN_PATH'
8914 hardcode_shlibpath_var=no
8918 no_undefined_flag=' -z text'
8919 # $CC -shared without GNU ld will not create a library from C++
8920 # object files and a static libstdc++, better avoid it by now
8921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8924 hardcode_libdir_flag_spec=
8925 hardcode_shlibpath_var=no
8926 runpath_var='LD_RUN_PATH'
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_shlibpath_var=no
8941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8942 echo "${ECHO_T}$ld_shlibs" >&6
8943 test "$ld_shlibs" = no && can_build_shared=no
8945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8946 if test "$GCC" = yes; then
8947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8951 # Do we need to explicitly link libc?
8953 case "x$archive_cmds_need_lc" in
8955 # Assume -lc should be added
8956 archive_cmds_need_lc=yes
8958 if test "$enable_shared" = yes && test "$GCC" = yes; then
8959 case $archive_cmds in
8961 # FIXME: we may have to deal with multi-command sequences.
8964 # Test whether the compiler implicitly links with -lc since on some
8965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966 # to ld, don't add -lc before -lgcc.
8967 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973 (eval $ac_compile) 2>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } 2>conftest.err; then
8979 libobjs=conftest.$ac_objext
8981 wl=$lt_prog_compiler_wl
8987 lt_save_allow_undefined_flag=$allow_undefined_flag
8988 allow_undefined_flag=
8989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8990 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }
8995 archive_cmds_need_lc=no
8997 archive_cmds_need_lc=yes
8999 allow_undefined_flag=$lt_save_allow_undefined_flag
9001 cat conftest.err 1>&5
9004 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9015 libname_spec='lib$name'
9023 shlibpath_overrides_runpath=unknown
9025 dynamic_linker="$host_os ld.so"
9026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9027 if test "$GCC" = yes; then
9028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9030 # if the path contains ";" then we assume it to be the separator
9031 # otherwise default to the standard path separator (i.e. ":") - it is
9032 # assumed that no part of a normal pathname contains ";" but that should
9033 # okay in the real world where ";" in dirpaths is itself problematic.
9034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9041 need_lib_prefix=unknown
9042 hardcode_into_libs=no
9044 # when you set need_version to no, make sure it does not cause -set_version
9045 # flags to be left without arguments
9046 need_version=unknown
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9052 shlibpath_var=LIBPATH
9054 # AIX 3 has no versioning support, so we append a major version to the name.
9055 soname_spec='${libname}${release}${shared_ext}$major'
9062 hardcode_into_libs=yes
9063 if test "$host_cpu" = ia64; then
9064 # AIX 5 supports IA64
9065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9066 shlibpath_var=LD_LIBRARY_PATH
9068 # With GCC up to 2.95.x, collect2 would create an import file
9069 # for dependence libraries. The import file would start with
9070 # the line `#! .'. This would cause the generated library to
9071 # depend on `.', always an invalid library. This was fixed in
9072 # development snapshots of GCC prior to 3.0.
9074 aix4 | aix4.[01] | aix4.[01].*)
9075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9085 # soname into executable. Probably we can add versioning support to
9086 # collect2, so additional links can be useful in future.
9087 if test "$aix_use_runtimelinking" = yes; then
9088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9089 # instead of lib<name>.a to let people know that these are not
9090 # typical AIX shared libraries.
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 # We preserve .a as extension for shared libraries through AIX4.2
9094 # and later when we are not doing run time linking.
9095 library_names_spec='${libname}${release}.a $libname.a'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9098 shlibpath_var=LIBPATH
9103 library_names_spec='$libname.ixlibrary $libname.a'
9104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105 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'
9109 library_names_spec='${libname}${shared_ext}'
9110 dynamic_linker="$host_os ld.so"
9111 shlibpath_var=LIBRARY_PATH
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9123 # the default ld.so.conf also contains /usr/contrib/lib and
9124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9125 # libtool to hard-code these into programs
9128 cygwin* | mingw* | pw32*)
9129 version_type=windows
9134 case $GCC,$host_os in
9135 yes,cygwin* | yes,mingw* | yes,pw32*)
9136 library_names_spec='$libname.dll.a'
9137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9138 postinstall_cmds='base_file=`basename \${file}`~
9139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9140 dldir=$destdir/`dirname \$dlpath`~
9141 test -d \$dldir || mkdir -p \$dldir~
9142 $install_prog $dir/$dlname \$dldir/$dlname~
9143 chmod a+x \$dldir/$dlname'
9144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9145 dlpath=$dir/\$dldll~
9147 shlibpath_overrides_runpath=yes
9151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9153 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9156 # MinGW DLLs use traditional 'lib' prefix
9157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9159 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9160 # It is most probably a Windows format PATH printed by
9161 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9162 # path with ; separators, and with drive letters. We can handle the
9163 # drive letters (cygwin fileutils understands them), so leave them,
9164 # especially as we might pass files found there to a mingw objdump,
9165 # which wouldn't understand a cygwinified path. Ahh.
9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9172 # pw32 DLLs use 'pw' prefix rather than 'lib'
9173 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9179 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9182 dynamic_linker='Win32 ld.exe'
9183 # FIXME: first we should search . and the directory the executable is in
9187 darwin* | rhapsody*)
9188 dynamic_linker="$host_os dyld"
9192 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9193 soname_spec='${libname}${release}${major}$shared_ext'
9194 shlibpath_overrides_runpath=yes
9195 shlibpath_var=DYLD_LIBRARY_PATH
9196 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9197 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9198 if test "$GCC" = yes; then
9199 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"`
9201 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9203 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 shlibpath_var=LD_LIBRARY_PATH
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 shlibpath_overrides_runpath=no
9227 hardcode_into_libs=yes
9228 dynamic_linker='GNU ld.so'
9231 freebsd* | dragonfly*)
9232 # DragonFly does not have aout. When/if they implement a new
9233 # versioning mechanism, adjust this.
9234 if test -x /usr/bin/objformat; then
9235 objformat=`/usr/bin/objformat`
9238 freebsd[123]*) objformat=aout ;;
9242 version_type=freebsd-$objformat
9243 case $version_type in
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9254 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9259 freebsd3.[01]* | freebsdelf3.[01]*)
9260 shlibpath_overrides_runpath=yes
9261 hardcode_into_libs=yes
9264 shlibpath_overrides_runpath=no
9265 hardcode_into_libs=yes
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 hardcode_into_libs=yes
9280 hpux9* | hpux10* | hpux11*)
9281 # Give a soname corresponding to the major version so that dld.sl refuses to
9282 # link against other versions.
9289 hardcode_into_libs=yes
9290 dynamic_linker="$host_os dld.so"
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 if test "X$HPUX_IA64_MODE" = X32; then
9296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9304 hardcode_into_libs=yes
9305 dynamic_linker="$host_os dld.sl"
9306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9315 dynamic_linker="$host_os dld.sl"
9316 shlibpath_var=SHLIB_PATH
9317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9322 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9323 postinstall_cmds='chmod 555 $lib'
9326 irix5* | irix6* | nonstopux*)
9328 nonstopux*) version_type=nonstopux ;;
9330 if test "$lt_cv_prog_gnu_ld" = yes; then
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9341 irix5* | nonstopux*)
9345 case $LD in # libtool.m4 will add one of these switches to LD
9346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9347 libsuff= shlibsuff= libmagic=32-bit;;
9348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9349 libsuff=32 shlibsuff=N32 libmagic=N32;;
9350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9352 *) libsuff= shlibsuff= libmagic=never-match;;
9356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9357 shlibpath_overrides_runpath=no
9358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9360 hardcode_into_libs=yes
9363 # No shared lib support for Linux oldld, aout, or coff.
9364 linux*oldld* | linux*aout* | linux*coff*)
9368 # This must be Linux ELF.
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=no
9378 # This implies no fast_install, which is unacceptable.
9379 # Some rework will be needed to allow for fast_install
9380 # before this can be enabled.
9381 hardcode_into_libs=yes
9383 # Append ld.so.conf contents to the search path
9384 if test -f /etc/ld.so.conf; then
9385 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' ' '`
9386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9389 # We used to test for /lib/ld.so.1 and disable shared libraries on
9390 # powerpc, because MkLinux only supported shared libraries with the
9391 # GNU dynamic linker. Since this was broken with cross compilers,
9392 # most powerpc-linux boxes support dynamic linking these days and
9393 # people can always --disable-shared, the test was removed, and we
9394 # assume the GNU/Linux dynamic linker is in use.
9395 dynamic_linker='GNU/Linux ld.so'
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 shlibpath_overrides_runpath=no
9406 hardcode_into_libs=yes
9407 dynamic_linker='GNU ld.so'
9414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9417 dynamic_linker='NetBSD (a.out) ld.so'
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 dynamic_linker='NetBSD ld.elf_so'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=yes
9425 hardcode_into_libs=yes
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 shlibpath_overrides_runpath=yes
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9451 *) need_version=no ;;
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9458 openbsd2.[89] | openbsd2.[89].*)
9459 shlibpath_overrides_runpath=no
9462 shlibpath_overrides_runpath=yes
9466 shlibpath_overrides_runpath=yes
9471 libname_spec='$name'
9474 library_names_spec='$libname${shared_ext} $libname.a'
9475 dynamic_linker='OS/2 ld.exe'
9476 shlibpath_var=LIBPATH
9479 osf3* | osf4* | osf5*)
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 shlibpath_var=LD_LIBRARY_PATH
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 shlibpath_overrides_runpath=yes
9505 hardcode_into_libs=yes
9506 # ldd complains unless libraries are executable
9507 postinstall_cmds='chmod +x $lib'
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9514 shlibpath_var=LD_LIBRARY_PATH
9515 shlibpath_overrides_runpath=yes
9516 if test "$with_gnu_ld" = yes; then
9522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 case $host_vendor in
9529 shlibpath_overrides_runpath=no
9531 export_dynamic_flag_spec='${wl}-Blargedynsym'
9532 runpath_var=LD_RUN_PATH
9540 shlibpath_overrides_runpath=no
9541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9547 if test -d /usr/nec ;then
9549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9550 soname_spec='$libname${shared_ext}.$major'
9551 shlibpath_var=LD_LIBRARY_PATH
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 shlibpath_var=LD_LIBRARY_PATH
9566 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9567 echo "${ECHO_T}$dynamic_linker" >&6
9568 test "$dynamic_linker" = no && can_build_shared=no
9570 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9571 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9573 if test -n "$hardcode_libdir_flag_spec" || \
9574 test -n "$runpath_var" || \
9575 test "X$hardcode_automatic" = "Xyes" ; then
9577 # We can hardcode non-existant directories.
9578 if test "$hardcode_direct" != no &&
9579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9580 # have to relink, otherwise we might link with an installed library
9581 # when we should be linking with a yet-to-be-installed one
9582 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9583 test "$hardcode_minus_L" != no; then
9584 # Linking always hardcodes the temporary library directory.
9585 hardcode_action=relink
9587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9588 hardcode_action=immediate
9591 # We cannot hardcode anything, or else we can only hardcode existing
9593 hardcode_action=unsupported
9595 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9596 echo "${ECHO_T}$hardcode_action" >&6
9598 if test "$hardcode_action" = relink; then
9599 # Fast installation is not supported
9600 enable_fast_install=no
9601 elif test "$shlibpath_overrides_runpath" = yes ||
9602 test "$enable_shared" = no; then
9603 # Fast installation is not necessary
9604 enable_fast_install=needless
9609 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9610 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9611 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9612 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9613 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9614 echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6
9617 # FIXME - insert some real tests, host_os isn't really good enough
9620 if test -n "$STRIP" ; then
9621 striplib="$STRIP -x"
9622 echo "$as_me:$LINENO: result: yes" >&5
9623 echo "${ECHO_T}yes" >&6
9625 echo "$as_me:$LINENO: result: no" >&5
9626 echo "${ECHO_T}no" >&6
9630 echo "$as_me:$LINENO: result: no" >&5
9631 echo "${ECHO_T}no" >&6
9636 if test "x$enable_dlopen" != xyes; then
9637 enable_dlopen=unknown
9638 enable_dlopen_self=unknown
9639 enable_dlopen_self_static=unknown
9646 lt_cv_dlopen="load_add_on"
9648 lt_cv_dlopen_self=yes
9652 lt_cv_dlopen="LoadLibrary"
9657 lt_cv_dlopen="dlopen"
9662 # if libdl is installed we need to link against it
9663 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any gcc2 internal prototype to avoid an error. */
9681 /* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } &&
9701 { ac_try='test -z "$ac_c_werror_flag"
9702 || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_lib_dl_dlopen=yes
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_cv_lib_dl_dlopen=no
9721 rm -f conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9725 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9726 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9727 if test $ac_cv_lib_dl_dlopen = yes; then
9728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9733 lt_cv_dlopen_self=yes
9740 echo "$as_me:$LINENO: checking for shl_load" >&5
9741 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9742 if test "${ac_cv_func_shl_load+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 cat >conftest.$ac_ext <<_ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9753 #define shl_load innocuous_shl_load
9755 /* System header to define __stub macros and hopefully few prototypes,
9756 which can conflict with char shl_load (); below.
9757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9758 <limits.h> exists even on freestanding compilers. */
9761 # include <limits.h>
9763 # include <assert.h>
9768 /* Override any gcc2 internal prototype to avoid an error. */
9773 /* We use char because int might match the return type of a gcc2
9774 builtin and then its argument prototype would still apply. */
9776 /* The GNU C library defines this for functions which it implements
9777 to always fail with ENOSYS. Some functions are actually named
9778 something starting with __ and the normal name is an alias. */
9779 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9782 char (*f) () = shl_load;
9791 return f != shl_load;
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798 (eval $ac_link) 2>conftest.er1
9800 grep -v '^ *+' conftest.er1 >conftest.err
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag"
9806 || test ! -s conftest.err'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; } &&
9812 { ac_try='test -s conftest$ac_exeext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_func_shl_load=yes
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_cv_func_shl_load=no
9825 rm -f conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9830 if test $ac_cv_func_shl_load = yes; then
9831 lt_cv_dlopen="shl_load"
9833 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9834 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9835 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_check_lib_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9847 /* Override any gcc2 internal prototype to avoid an error. */
9851 /* We use char because int might match the return type of a gcc2
9852 builtin and then its argument prototype would still apply. */
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -z "$ac_c_werror_flag"
9872 || test ! -s conftest.err'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9884 ac_cv_lib_dld_shl_load=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9889 ac_cv_lib_dld_shl_load=no
9891 rm -f conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9896 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9897 if test $ac_cv_lib_dld_shl_load = yes; then
9898 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9900 echo "$as_me:$LINENO: checking for dlopen" >&5
9901 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9902 if test "${ac_cv_func_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9911 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9913 #define dlopen innocuous_dlopen
9915 /* System header to define __stub macros and hopefully few prototypes,
9916 which can conflict with char dlopen (); below.
9917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9918 <limits.h> exists even on freestanding compilers. */
9921 # include <limits.h>
9923 # include <assert.h>
9928 /* Override any gcc2 internal prototype to avoid an error. */
9933 /* We use char because int might match the return type of a gcc2
9934 builtin and then its argument prototype would still apply. */
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9942 char (*f) () = dlopen;
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag"
9966 || test ! -s conftest.err'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_func_dlopen=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_func_dlopen=no
9985 rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9988 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9989 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9990 if test $ac_cv_func_dlopen = yes; then
9991 lt_cv_dlopen="dlopen"
9993 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 ac_check_lib_save_LIBS=$LIBS
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10007 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024 (eval $ac_link) 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } &&
10031 { ac_try='test -z "$ac_c_werror_flag"
10032 || test ! -s conftest.err'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; }; then
10044 ac_cv_lib_dl_dlopen=yes
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10049 ac_cv_lib_dl_dlopen=no
10051 rm -f conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10057 if test $ac_cv_lib_dl_dlopen = yes; then
10058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10060 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10061 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10062 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-lsvld $LIBS"
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10074 /* Override any gcc2 internal prototype to avoid an error. */
10078 /* We use char because int might match the return type of a gcc2
10079 builtin and then its argument prototype would still apply. */
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10091 (eval $ac_link) 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag"
10099 || test ! -s conftest.err'
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest$ac_exeext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_lib_svld_dlopen=yes
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_cv_lib_svld_dlopen=no
10118 rm -f conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10123 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10124 if test $ac_cv_lib_svld_dlopen = yes; then
10125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10127 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10128 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10129 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 ac_check_lib_save_LIBS=$LIBS
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10141 /* Override any gcc2 internal prototype to avoid an error. */
10145 /* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_c_werror_flag"
10166 || test ! -s conftest.err'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_lib_dld_dld_link=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_lib_dld_dld_link=no
10185 rm -f conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187 LIBS=$ac_check_lib_save_LIBS
10189 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10190 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10191 if test $ac_cv_lib_dld_dld_link = yes; then
10192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10213 if test "x$lt_cv_dlopen" != xno; then
10219 case $lt_cv_dlopen in
10221 save_CPPFLAGS="$CPPFLAGS"
10222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10224 save_LDFLAGS="$LDFLAGS"
10225 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10228 LIBS="$lt_cv_dlopen_libs $LIBS"
10230 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10231 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10232 if test "${lt_cv_dlopen_self+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 if test "$cross_compiling" = yes; then :
10236 lt_cv_dlopen_self=cross
10238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10239 lt_status=$lt_dlunknown
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10241 "configure"
10242 #include "confdefs.h"
10251 # define LT_DLGLOBAL RTLD_GLOBAL
10254 # define LT_DLGLOBAL DL_GLOBAL
10256 # define LT_DLGLOBAL 0
10260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10261 find out it does not work in some platform. */
10262 #ifndef LT_DLLAZY_OR_NOW
10264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10267 # define LT_DLLAZY_OR_NOW DL_LAZY
10270 # define LT_DLLAZY_OR_NOW RTLD_NOW
10273 # define LT_DLLAZY_OR_NOW DL_NOW
10275 # define LT_DLLAZY_OR_NOW 0
10283 extern "C" void exit (int);
10286 void fnord() { int i=42;}
10289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10290 int status = $lt_dlunknown;
10294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10295 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10296 /* dlclose (self); */
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303 (eval $ac_link) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10307 (./conftest; exit; ) >&5 2>/dev/null
10309 case x$lt_status in
10310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10312 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10315 # compilation failed
10316 lt_cv_dlopen_self=no
10323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10324 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10326 if test "x$lt_cv_dlopen_self" = xyes; then
10327 LDFLAGS="$LDFLAGS $link_static_flag"
10328 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10329 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10330 if test "${lt_cv_dlopen_self_static+set}" = set; then
10331 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 if test "$cross_compiling" = yes; then :
10334 lt_cv_dlopen_self_static=cross
10336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10337 lt_status=$lt_dlunknown
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10339 "configure"
10340 #include "confdefs.h"
10349 # define LT_DLGLOBAL RTLD_GLOBAL
10352 # define LT_DLGLOBAL DL_GLOBAL
10354 # define LT_DLGLOBAL 0
10358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10359 find out it does not work in some platform. */
10360 #ifndef LT_DLLAZY_OR_NOW
10362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10365 # define LT_DLLAZY_OR_NOW DL_LAZY
10368 # define LT_DLLAZY_OR_NOW RTLD_NOW
10371 # define LT_DLLAZY_OR_NOW DL_NOW
10373 # define LT_DLLAZY_OR_NOW 0
10381 extern "C" void exit (int);
10384 void fnord() { int i=42;}
10387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10388 int status = $lt_dlunknown;
10392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10393 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10394 /* dlclose (self); */
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10405 (./conftest; exit; ) >&5 2>/dev/null
10407 case x$lt_status in
10408 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10409 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10410 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10413 # compilation failed
10414 lt_cv_dlopen_self_static=no
10421 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10422 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10425 CPPFLAGS="$save_CPPFLAGS"
10426 LDFLAGS="$save_LDFLAGS"
10431 case $lt_cv_dlopen_self in
10432 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10433 *) enable_dlopen_self=unknown ;;
10436 case $lt_cv_dlopen_self_static in
10437 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10438 *) enable_dlopen_self_static=unknown ;;
10443 # Report which librarie types wil actually be built
10444 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10446 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10447 echo "${ECHO_T}$can_build_shared" >&6
10449 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10451 test "$can_build_shared" = "no" && enable_shared=no
10453 # On AIX, shared libraries and static libraries use the same namespace, and
10454 # are all built from PIC.
10457 test "$enable_shared" = yes && enable_static=no
10458 if test -n "$RANLIB"; then
10459 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10460 postinstall_cmds='$RANLIB $lib'
10465 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10466 test "$enable_shared" = yes && enable_static=no
10470 echo "$as_me:$LINENO: result: $enable_shared" >&5
10471 echo "${ECHO_T}$enable_shared" >&6
10473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10475 # Make sure either enable_shared or enable_static is yes.
10476 test "$enable_shared" = yes || enable_static=yes
10477 echo "$as_me:$LINENO: result: $enable_static" >&5
10478 echo "${ECHO_T}$enable_static" >&6
10480 # The else clause should only fire when bootstrapping the
10481 # libtool distribution, otherwise you forgot to ship ltmain.sh
10482 # with your package, and you will get complaints that there are
10483 # no rules to generate ltmain.sh.
10484 if test -f "$ltmain"; then
10485 # See if we are running on zsh, and set the options which allow our commands through
10486 # without removal of \ escapes.
10487 if test -n "${ZSH_VERSION+set}" ; then
10488 setopt NO_GLOB_SUBST
10490 # Now quote all the things that may contain metacharacters while being
10491 # careful not to overquote the AC_SUBSTed values. We take copies of the
10492 # variables and quote the copies for generation of the libtool script.
10493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10497 deplibs_check_method reload_flag reload_cmds need_locks \
10498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10499 lt_cv_sys_global_symbol_to_c_name_address \
10500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10501 old_postinstall_cmds old_postuninstall_cmds \
10505 lt_prog_compiler_wl \
10506 lt_prog_compiler_pic \
10507 lt_prog_compiler_static \
10508 lt_prog_compiler_no_builtin_flag \
10509 export_dynamic_flag_spec \
10510 thread_safe_flag_spec \
10511 whole_archive_flag_spec \
10512 enable_shared_with_static_runtimes \
10514 old_archive_from_new_cmds \
10519 compiler_lib_search_path \
10521 archive_expsym_cmds \
10523 postuninstall_cmds \
10524 old_archive_from_expsyms_cmds \
10525 allow_undefined_flag \
10526 no_undefined_flag \
10527 export_symbols_cmds \
10528 hardcode_libdir_flag_spec \
10529 hardcode_libdir_flag_spec_ld \
10530 hardcode_libdir_separator \
10531 hardcode_automatic \
10533 module_expsym_cmds \
10534 lt_cv_prog_compiler_c_o \
10536 include_expsyms; do
10539 old_archive_cmds | \
10540 old_archive_from_new_cmds | \
10542 archive_expsym_cmds | \
10544 module_expsym_cmds | \
10545 old_archive_from_expsyms_cmds | \
10546 export_symbols_cmds | \
10547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10548 postinstall_cmds | postuninstall_cmds | \
10549 old_postinstall_cmds | old_postuninstall_cmds | \
10550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10551 # Double-quote double-evaled strings.
10552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10561 *'\$0 --fallback-echo"')
10562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10566 cfgfile="${ofile}T"
10567 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10569 { echo "$as_me:$LINENO: creating $ofile" >&5
10570 echo "$as_me: creating $ofile" >&6;}
10572 cat <<__EOF__ >> "$cfgfile"
10575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10580 # Free Software Foundation, Inc.
10582 # This file is part of GNU Libtool:
10583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10585 # This program is free software; you can redistribute it and/or modify
10586 # it under the terms of the GNU General Public License as published by
10587 # the Free Software Foundation; either version 2 of the License, or
10588 # (at your option) any later version.
10590 # This program is distributed in the hope that it will be useful, but
10591 # WITHOUT ANY WARRANTY; without even the implied warranty of
10592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10593 # General Public License for more details.
10595 # You should have received a copy of the GNU General Public License
10596 # along with this program; if not, write to the Free Software
10597 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10599 # As a special exception to the GNU General Public License, if you
10600 # distribute this file as part of a program that contains a
10601 # configuration script generated by Autoconf, you may include it under
10602 # the same distribution terms that you use for the rest of that program.
10604 # A sed program that does not truncate output.
10607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10608 Xsed="$SED -e 1s/^X//"
10610 # The HP-UX ksh and POSIX shell print the target directory to stdout
10611 # if CDPATH is set.
10612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10614 # The names of the tagged configurations supported by this script.
10617 # ### BEGIN LIBTOOL CONFIG
10619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10621 # Shell to use when invoking shell scripts.
10624 # Whether or not to build shared libraries.
10625 build_libtool_libs=$enable_shared
10627 # Whether or not to build static libraries.
10628 build_old_libs=$enable_static
10630 # Whether or not to add -lc for building shared libraries.
10631 build_libtool_need_lc=$archive_cmds_need_lc
10633 # Whether or not to disallow shared libs when runtime libs are static
10634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10636 # Whether or not to optimize for fast installation.
10637 fast_install=$enable_fast_install
10640 host_alias=$host_alias
10644 # The build system.
10645 build_alias=$build_alias
10649 # An echo program that does not interpret backslashes.
10654 AR_FLAGS=$lt_AR_FLAGS
10659 # A language-specific compiler.
10662 # Is the compiler the GNU C compiler?
10668 # The linker used to build libraries.
10671 # Whether we need hard or soft links.
10674 # A BSD-compatible nm program.
10677 # A symbol stripping program
10680 # Used to examine libraries when file_magic_cmd begins "file"
10681 MAGIC_CMD=$MAGIC_CMD
10683 # Used on cygwin: DLL creation program.
10686 # Used on cygwin: object dumper.
10689 # Used on cygwin: assembler.
10692 # The name of the directory that contains temporary libtool files.
10695 # How to create reloadable object files.
10696 reload_flag=$lt_reload_flag
10697 reload_cmds=$lt_reload_cmds
10699 # How to pass a linker flag through the compiler.
10700 wl=$lt_lt_prog_compiler_wl
10702 # Object file suffix (normally "o").
10703 objext="$ac_objext"
10705 # Old archive suffix (normally "a").
10708 # Shared library suffix (normally ".so").
10709 shrext_cmds='$shrext_cmds'
10711 # Executable file suffix (normally "").
10714 # Additional compiler flags for building library objects.
10715 pic_flag=$lt_lt_prog_compiler_pic
10718 # What is the maximum length of a command?
10719 max_cmd_len=$lt_cv_sys_max_cmd_len
10721 # Does compiler simultaneously support -c and -o options?
10722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10724 # Must we lock files when doing compilation?
10725 need_locks=$lt_need_locks
10727 # Do we need the lib prefix for modules?
10728 need_lib_prefix=$need_lib_prefix
10730 # Do we need a version for libraries?
10731 need_version=$need_version
10733 # Whether dlopen is supported.
10734 dlopen_support=$enable_dlopen
10736 # Whether dlopen of programs is supported.
10737 dlopen_self=$enable_dlopen_self
10739 # Whether dlopen of statically linked programs is supported.
10740 dlopen_self_static=$enable_dlopen_self_static
10742 # Compiler flag to prevent dynamic linking.
10743 link_static_flag=$lt_lt_prog_compiler_static
10745 # Compiler flag to turn off builtin functions.
10746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10748 # Compiler flag to allow reflexive dlopens.
10749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10751 # Compiler flag to generate shared objects directly from archives.
10752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10754 # Compiler flag to generate thread-safe objects.
10755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10757 # Library versioning type.
10758 version_type=$version_type
10760 # Format of library name prefix.
10761 libname_spec=$lt_libname_spec
10763 # List of archive names. First name is the real one, the rest are links.
10764 # The last name is the one that the linker finds with -lNAME.
10765 library_names_spec=$lt_library_names_spec
10767 # The coded name of the library, if different from the real name.
10768 soname_spec=$lt_soname_spec
10770 # Commands used to build and install an old-style archive.
10772 old_archive_cmds=$lt_old_archive_cmds
10773 old_postinstall_cmds=$lt_old_postinstall_cmds
10774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10776 # Create an old-style archive from a shared archive.
10777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10779 # Create a temporary old-style archive to link instead of a shared archive.
10780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10782 # Commands used to build and install a shared archive.
10783 archive_cmds=$lt_archive_cmds
10784 archive_expsym_cmds=$lt_archive_expsym_cmds
10785 postinstall_cmds=$lt_postinstall_cmds
10786 postuninstall_cmds=$lt_postuninstall_cmds
10788 # Commands used to build a loadable module (assumed same as above if empty)
10789 module_cmds=$lt_module_cmds
10790 module_expsym_cmds=$lt_module_expsym_cmds
10792 # Commands to strip libraries.
10793 old_striplib=$lt_old_striplib
10794 striplib=$lt_striplib
10796 # Dependencies to place before the objects being linked to create a
10798 predep_objects=$lt_predep_objects
10800 # Dependencies to place after the objects being linked to create a
10802 postdep_objects=$lt_postdep_objects
10804 # Dependencies to place before the objects being linked to create a
10806 predeps=$lt_predeps
10808 # Dependencies to place after the objects being linked to create a
10810 postdeps=$lt_postdeps
10812 # The library search path used internally by the compiler when linking
10813 # a shared library.
10814 compiler_lib_search_path=$lt_compiler_lib_search_path
10816 # Method to check whether dependent libraries are shared objects.
10817 deplibs_check_method=$lt_deplibs_check_method
10819 # Command to use when deplibs_check_method == file_magic.
10820 file_magic_cmd=$lt_file_magic_cmd
10822 # Flag that allows shared libraries with undefined symbols to be built.
10823 allow_undefined_flag=$lt_allow_undefined_flag
10825 # Flag that forces no undefined symbols.
10826 no_undefined_flag=$lt_no_undefined_flag
10828 # Commands used to finish a libtool library installation in a directory.
10829 finish_cmds=$lt_finish_cmds
10831 # Same as above, but a single script fragment to be evaled but not shown.
10832 finish_eval=$lt_finish_eval
10834 # Take the output of nm and produce a listing of raw symbols and C names.
10835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10837 # Transform the output of nm in a proper C declaration
10838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10840 # Transform the output of nm in a C name address pair
10841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10843 # This is the shared library runtime path variable.
10844 runpath_var=$runpath_var
10846 # This is the shared library path variable.
10847 shlibpath_var=$shlibpath_var
10849 # Is shlibpath searched before the hard-coded library search path?
10850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10852 # How to hardcode a shared library path into an executable.
10853 hardcode_action=$hardcode_action
10855 # Whether we should hardcode library paths into libraries.
10856 hardcode_into_libs=$hardcode_into_libs
10858 # Flag to hardcode \$libdir into a binary during linking.
10859 # This must work even if \$libdir does not exist.
10860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10862 # If ld is used when linking, flag to hardcode \$libdir into
10863 # a binary during linking. This must work even if \$libdir does
10865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10867 # Whether we need a single -rpath flag with a separated argument.
10868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10871 # resulting binary.
10872 hardcode_direct=$hardcode_direct
10874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10875 # resulting binary.
10876 hardcode_minus_L=$hardcode_minus_L
10878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10879 # the resulting binary.
10880 hardcode_shlibpath_var=$hardcode_shlibpath_var
10882 # Set to yes if building a shared library automatically hardcodes DIR into the library
10883 # and all subsequent libraries and executables linked against it.
10884 hardcode_automatic=$hardcode_automatic
10886 # Variables whose values should be saved in libtool wrapper scripts and
10887 # restored at relink time.
10888 variables_saved_for_relink="$variables_saved_for_relink"
10890 # Whether libtool must link a program against all its dependency libraries.
10891 link_all_deplibs=$link_all_deplibs
10893 # Compile-time system search path for libraries
10894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10896 # Run-time system search path for libraries
10897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10899 # Fix the shell variable \$srcfile for the compiler.
10900 fix_srcfile_path="$fix_srcfile_path"
10902 # Set to yes if exported symbols are required.
10903 always_export_symbols=$always_export_symbols
10905 # The commands to list exported symbols.
10906 export_symbols_cmds=$lt_export_symbols_cmds
10908 # The commands to extract the exported symbol list from a shared archive.
10909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10911 # Symbols that should not be listed in the preloaded symbols.
10912 exclude_expsyms=$lt_exclude_expsyms
10914 # Symbols that must always be exported.
10915 include_expsyms=$lt_include_expsyms
10917 # ### END LIBTOOL CONFIG
10924 cat <<\EOF >> "$cfgfile"
10926 # AIX sometimes has problems with the GCC collect2 program. For some
10927 # reason, if we set the COLLECT_NAMES environment variable, the problems
10928 # vanish in a puff of smoke.
10929 if test "X${COLLECT_NAMES+set}" != Xset; then
10931 export COLLECT_NAMES
10937 # We use sed instead of cat because bash on DJGPP gets confused if
10938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10939 # text mode, it properly converts lines to CR/LF. This bash problem
10940 # is reportedly fixed, but why not run on old versions too?
10941 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10943 mv -f "$cfgfile" "$ofile" || \
10944 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10948 # If there is no Makefile yet, we rely on a make rule to execute
10949 # `config.status --recheck' to rerun these tests and create the
10950 # libtool script then.
10951 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10952 if test -f "$ltmain_in"; then
10953 test -f Makefile && make "$ltmain"
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10967 # Check whether --with-tags or --without-tags was given.
10968 if test "${with_tags+set}" = set; then
10969 withval="$with_tags"
10970 tagnames="$withval"
10973 if test -f "$ltmain" && test -n "$tagnames"; then
10974 if test ! -f "${ofile}"; then
10975 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10979 if test -z "$LTCC"; then
10980 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10981 if test -z "$LTCC"; then
10982 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10990 # Extract list of available tagged configurations in $ofile.
10991 # Note that this assumes the entire list is on one line.
10992 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10995 for tagname in $tagnames; do
10997 # Check whether tagname contains only valid characters
10998 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11000 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11001 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11002 { (exit 1); exit 1; }; }
11006 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11008 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11009 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11010 { (exit 1); exit 1; }; }
11013 # Update the list of available tags.
11014 if test -n "$tagname"; then
11015 echo appending configuration tag \"$tagname\" to $ofile
11019 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11020 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11021 (test "X$CXX" != "Xg++"))) ; then
11029 if test -n "$F77" && test "X$F77" != "Xno"; then
11037 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11048 # Source file extension for RC test sources.
11051 # Object file extension for compiled RC test sources.
11055 # Code to be used in simple compile tests
11056 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11058 # Code to be used in simple link tests
11059 lt_simple_link_test_code="$lt_simple_compile_test_code"
11061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11063 # If no C compiler was specified, use CC.
11066 # Allow CC to be a program name with arguments.
11070 # save warnings/boilerplate of simple test code
11071 ac_outfile=conftest.$ac_objext
11072 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11074 _lt_compiler_boilerplate=`cat conftest.err`
11077 ac_outfile=conftest.$ac_objext
11078 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11080 _lt_linker_boilerplate=`cat conftest.err`
11084 # Allow CC to be a program name with arguments.
11089 for cc_temp in $compiler""; do
11091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11097 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11099 lt_cv_prog_compiler_c_o_RC=yes
11101 # The else clause should only fire when bootstrapping the
11102 # libtool distribution, otherwise you forgot to ship ltmain.sh
11103 # with your package, and you will get complaints that there are
11104 # no rules to generate ltmain.sh.
11105 if test -f "$ltmain"; then
11106 # See if we are running on zsh, and set the options which allow our commands through
11107 # without removal of \ escapes.
11108 if test -n "${ZSH_VERSION+set}" ; then
11109 setopt NO_GLOB_SUBST
11111 # Now quote all the things that may contain metacharacters while being
11112 # careful not to overquote the AC_SUBSTed values. We take copies of the
11113 # variables and quote the copies for generation of the libtool script.
11114 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11116 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11117 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11118 deplibs_check_method reload_flag reload_cmds need_locks \
11119 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11120 lt_cv_sys_global_symbol_to_c_name_address \
11121 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11122 old_postinstall_cmds old_postuninstall_cmds \
11126 lt_prog_compiler_wl_RC \
11127 lt_prog_compiler_pic_RC \
11128 lt_prog_compiler_static_RC \
11129 lt_prog_compiler_no_builtin_flag_RC \
11130 export_dynamic_flag_spec_RC \
11131 thread_safe_flag_spec_RC \
11132 whole_archive_flag_spec_RC \
11133 enable_shared_with_static_runtimes_RC \
11134 old_archive_cmds_RC \
11135 old_archive_from_new_cmds_RC \
11136 predep_objects_RC \
11137 postdep_objects_RC \
11140 compiler_lib_search_path_RC \
11142 archive_expsym_cmds_RC \
11143 postinstall_cmds_RC \
11144 postuninstall_cmds_RC \
11145 old_archive_from_expsyms_cmds_RC \
11146 allow_undefined_flag_RC \
11147 no_undefined_flag_RC \
11148 export_symbols_cmds_RC \
11149 hardcode_libdir_flag_spec_RC \
11150 hardcode_libdir_flag_spec_ld_RC \
11151 hardcode_libdir_separator_RC \
11152 hardcode_automatic_RC \
11154 module_expsym_cmds_RC \
11155 lt_cv_prog_compiler_c_o_RC \
11156 exclude_expsyms_RC \
11157 include_expsyms_RC; do
11160 old_archive_cmds_RC | \
11161 old_archive_from_new_cmds_RC | \
11162 archive_cmds_RC | \
11163 archive_expsym_cmds_RC | \
11165 module_expsym_cmds_RC | \
11166 old_archive_from_expsyms_cmds_RC | \
11167 export_symbols_cmds_RC | \
11168 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11169 postinstall_cmds | postuninstall_cmds | \
11170 old_postinstall_cmds | old_postuninstall_cmds | \
11171 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11172 # Double-quote double-evaled strings.
11173 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11182 *'\$0 --fallback-echo"')
11183 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11189 cat <<__EOF__ >> "$cfgfile"
11190 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11194 # Shell to use when invoking shell scripts.
11197 # Whether or not to build shared libraries.
11198 build_libtool_libs=$enable_shared
11200 # Whether or not to build static libraries.
11201 build_old_libs=$enable_static
11203 # Whether or not to add -lc for building shared libraries.
11204 build_libtool_need_lc=$archive_cmds_need_lc_RC
11206 # Whether or not to disallow shared libs when runtime libs are static
11207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11209 # Whether or not to optimize for fast installation.
11210 fast_install=$enable_fast_install
11213 host_alias=$host_alias
11217 # The build system.
11218 build_alias=$build_alias
11222 # An echo program that does not interpret backslashes.
11227 AR_FLAGS=$lt_AR_FLAGS
11232 # A language-specific compiler.
11235 # Is the compiler the GNU C compiler?
11241 # The linker used to build libraries.
11244 # Whether we need hard or soft links.
11247 # A BSD-compatible nm program.
11250 # A symbol stripping program
11253 # Used to examine libraries when file_magic_cmd begins "file"
11254 MAGIC_CMD=$MAGIC_CMD
11256 # Used on cygwin: DLL creation program.
11259 # Used on cygwin: object dumper.
11262 # Used on cygwin: assembler.
11265 # The name of the directory that contains temporary libtool files.
11268 # How to create reloadable object files.
11269 reload_flag=$lt_reload_flag
11270 reload_cmds=$lt_reload_cmds
11272 # How to pass a linker flag through the compiler.
11273 wl=$lt_lt_prog_compiler_wl_RC
11275 # Object file suffix (normally "o").
11276 objext="$ac_objext"
11278 # Old archive suffix (normally "a").
11281 # Shared library suffix (normally ".so").
11282 shrext_cmds='$shrext_cmds'
11284 # Executable file suffix (normally "").
11287 # Additional compiler flags for building library objects.
11288 pic_flag=$lt_lt_prog_compiler_pic_RC
11291 # What is the maximum length of a command?
11292 max_cmd_len=$lt_cv_sys_max_cmd_len
11294 # Does compiler simultaneously support -c and -o options?
11295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11297 # Must we lock files when doing compilation?
11298 need_locks=$lt_need_locks
11300 # Do we need the lib prefix for modules?
11301 need_lib_prefix=$need_lib_prefix
11303 # Do we need a version for libraries?
11304 need_version=$need_version
11306 # Whether dlopen is supported.
11307 dlopen_support=$enable_dlopen
11309 # Whether dlopen of programs is supported.
11310 dlopen_self=$enable_dlopen_self
11312 # Whether dlopen of statically linked programs is supported.
11313 dlopen_self_static=$enable_dlopen_self_static
11315 # Compiler flag to prevent dynamic linking.
11316 link_static_flag=$lt_lt_prog_compiler_static_RC
11318 # Compiler flag to turn off builtin functions.
11319 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11321 # Compiler flag to allow reflexive dlopens.
11322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11324 # Compiler flag to generate shared objects directly from archives.
11325 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11327 # Compiler flag to generate thread-safe objects.
11328 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11330 # Library versioning type.
11331 version_type=$version_type
11333 # Format of library name prefix.
11334 libname_spec=$lt_libname_spec
11336 # List of archive names. First name is the real one, the rest are links.
11337 # The last name is the one that the linker finds with -lNAME.
11338 library_names_spec=$lt_library_names_spec
11340 # The coded name of the library, if different from the real name.
11341 soname_spec=$lt_soname_spec
11343 # Commands used to build and install an old-style archive.
11345 old_archive_cmds=$lt_old_archive_cmds_RC
11346 old_postinstall_cmds=$lt_old_postinstall_cmds
11347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11349 # Create an old-style archive from a shared archive.
11350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11352 # Create a temporary old-style archive to link instead of a shared archive.
11353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11355 # Commands used to build and install a shared archive.
11356 archive_cmds=$lt_archive_cmds_RC
11357 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11358 postinstall_cmds=$lt_postinstall_cmds
11359 postuninstall_cmds=$lt_postuninstall_cmds
11361 # Commands used to build a loadable module (assumed same as above if empty)
11362 module_cmds=$lt_module_cmds_RC
11363 module_expsym_cmds=$lt_module_expsym_cmds_RC
11365 # Commands to strip libraries.
11366 old_striplib=$lt_old_striplib
11367 striplib=$lt_striplib
11369 # Dependencies to place before the objects being linked to create a
11371 predep_objects=$lt_predep_objects_RC
11373 # Dependencies to place after the objects being linked to create a
11375 postdep_objects=$lt_postdep_objects_RC
11377 # Dependencies to place before the objects being linked to create a
11379 predeps=$lt_predeps_RC
11381 # Dependencies to place after the objects being linked to create a
11383 postdeps=$lt_postdeps_RC
11385 # The library search path used internally by the compiler when linking
11386 # a shared library.
11387 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11389 # Method to check whether dependent libraries are shared objects.
11390 deplibs_check_method=$lt_deplibs_check_method
11392 # Command to use when deplibs_check_method == file_magic.
11393 file_magic_cmd=$lt_file_magic_cmd
11395 # Flag that allows shared libraries with undefined symbols to be built.
11396 allow_undefined_flag=$lt_allow_undefined_flag_RC
11398 # Flag that forces no undefined symbols.
11399 no_undefined_flag=$lt_no_undefined_flag_RC
11401 # Commands used to finish a libtool library installation in a directory.
11402 finish_cmds=$lt_finish_cmds
11404 # Same as above, but a single script fragment to be evaled but not shown.
11405 finish_eval=$lt_finish_eval
11407 # Take the output of nm and produce a listing of raw symbols and C names.
11408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11410 # Transform the output of nm in a proper C declaration
11411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11413 # Transform the output of nm in a C name address pair
11414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11416 # This is the shared library runtime path variable.
11417 runpath_var=$runpath_var
11419 # This is the shared library path variable.
11420 shlibpath_var=$shlibpath_var
11422 # Is shlibpath searched before the hard-coded library search path?
11423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11425 # How to hardcode a shared library path into an executable.
11426 hardcode_action=$hardcode_action_RC
11428 # Whether we should hardcode library paths into libraries.
11429 hardcode_into_libs=$hardcode_into_libs
11431 # Flag to hardcode \$libdir into a binary during linking.
11432 # This must work even if \$libdir does not exist.
11433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11435 # If ld is used when linking, flag to hardcode \$libdir into
11436 # a binary during linking. This must work even if \$libdir does
11438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11440 # Whether we need a single -rpath flag with a separated argument.
11441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11444 # resulting binary.
11445 hardcode_direct=$hardcode_direct_RC
11447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11448 # resulting binary.
11449 hardcode_minus_L=$hardcode_minus_L_RC
11451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11452 # the resulting binary.
11453 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11455 # Set to yes if building a shared library automatically hardcodes DIR into the library
11456 # and all subsequent libraries and executables linked against it.
11457 hardcode_automatic=$hardcode_automatic_RC
11459 # Variables whose values should be saved in libtool wrapper scripts and
11460 # restored at relink time.
11461 variables_saved_for_relink="$variables_saved_for_relink"
11463 # Whether libtool must link a program against all its dependency libraries.
11464 link_all_deplibs=$link_all_deplibs_RC
11466 # Compile-time system search path for libraries
11467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11469 # Run-time system search path for libraries
11470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11472 # Fix the shell variable \$srcfile for the compiler.
11473 fix_srcfile_path="$fix_srcfile_path_RC"
11475 # Set to yes if exported symbols are required.
11476 always_export_symbols=$always_export_symbols_RC
11478 # The commands to list exported symbols.
11479 export_symbols_cmds=$lt_export_symbols_cmds_RC
11481 # The commands to extract the exported symbol list from a shared archive.
11482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11484 # Symbols that should not be listed in the preloaded symbols.
11485 exclude_expsyms=$lt_exclude_expsyms_RC
11487 # Symbols that must always be exported.
11488 include_expsyms=$lt_include_expsyms_RC
11490 # ### END LIBTOOL TAG CONFIG: $tagname
11496 # If there is no Makefile yet, we rely on a make rule to execute
11497 # `config.status --recheck' to rerun these tests and create the
11498 # libtool script then.
11499 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11500 if test -f "$ltmain_in"; then
11501 test -f Makefile && make "$ltmain"
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11517 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11519 { (exit 1); exit 1; }; }
11523 # Append the new tag name to the list of available tags.
11524 if test -n "$tagname" ; then
11525 available_tags="$available_tags $tagname"
11531 # Now substitute the updated list of available tags.
11532 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11533 mv "${ofile}T" "$ofile"
11537 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11539 { (exit 1); exit 1; }; }
11545 # This can be used to rebuild libtool when needed
11546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11548 # Always use our own libtool.
11549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11551 # Prevent multiple expansion
11563 if test $ol_enable_perl != no ; then
11564 # Extract the first word of "perl", so it can be a program name with args.
11565 set dummy perl; ac_word=$2
11566 echo "$as_me:$LINENO: checking for $ac_word" >&5
11567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568 if test "${ac_cv_path_PERLBIN+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11594 PERLBIN=$ac_cv_path_PERLBIN
11596 if test -n "$PERLBIN"; then
11597 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11598 echo "${ECHO_T}$PERLBIN" >&6
11600 echo "$as_me:$LINENO: result: no" >&5
11601 echo "${ECHO_T}no" >&6
11605 if test "no$PERLBIN" = "no" ; then
11606 if test $ol_enable_perl = yes ; then
11607 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11608 echo "$as_me: error: could not locate perl" >&2;}
11609 { (exit 1); exit 1; }; }
11613 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11614 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11616 if test x"$ol_enable_perl" = "xyes" ; then
11617 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11619 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11626 ac_cpp='$CPP $CPPFLAGS'
11627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11630 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11632 # On Suns, sometimes $CPP names a directory.
11633 if test -n "$CPP" && test -d "$CPP"; then
11636 if test -z "$CPP"; then
11637 if test "${ac_cv_prog_CPP+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 # Double quotes because CPP needs to be expanded
11641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11643 ac_preproc_ok=false
11644 for ac_c_preproc_warn_flag in '' yes
11646 # Use a header file that comes with gcc, so configuring glibc
11647 # with a fresh cross-compiler works.
11648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 # <limits.h> exists even on freestanding compilers.
11650 # On the NeXT, cc -E runs the code through the compiler's parser,
11651 # not just through cpp. "Syntax error" is here to catch this case.
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11659 # include <limits.h>
11661 # include <assert.h>
11665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668 grep -v '^ *+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } >/dev/null; then
11673 if test -s conftest.err; then
11674 ac_cpp_err=$ac_c_preproc_warn_flag
11675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11682 if test -z "$ac_cpp_err"; then
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 # Broken: fails on valid input.
11691 rm -f conftest.err conftest.$ac_ext
11693 # OK, works on sane cases. Now check whether non-existent headers
11694 # can be detected and how.
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <ac_nonexistent.h>
11703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11706 grep -v '^ *+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } >/dev/null; then
11711 if test -s conftest.err; then
11712 ac_cpp_err=$ac_c_preproc_warn_flag
11713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11720 if test -z "$ac_cpp_err"; then
11721 # Broken: success on invalid input.
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 # Passes both tests.
11731 rm -f conftest.err conftest.$ac_ext
11734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11735 rm -f conftest.err conftest.$ac_ext
11736 if $ac_preproc_ok; then
11741 ac_cv_prog_CPP=$CPP
11744 CPP=$ac_cv_prog_CPP
11746 ac_cv_prog_CPP=$CPP
11748 echo "$as_me:$LINENO: result: $CPP" >&5
11749 echo "${ECHO_T}$CPP" >&6
11750 ac_preproc_ok=false
11751 for ac_c_preproc_warn_flag in '' yes
11753 # Use a header file that comes with gcc, so configuring glibc
11754 # with a fresh cross-compiler works.
11755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 # <limits.h> exists even on freestanding compilers.
11757 # On the NeXT, cc -E runs the code through the compiler's parser,
11758 # not just through cpp. "Syntax error" is here to catch this case.
11759 cat >conftest.$ac_ext <<_ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11766 # include <limits.h>
11768 # include <assert.h>
11772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } >/dev/null; then
11780 if test -s conftest.err; then
11781 ac_cpp_err=$ac_c_preproc_warn_flag
11782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11789 if test -z "$ac_cpp_err"; then
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 # Broken: fails on valid input.
11798 rm -f conftest.err conftest.$ac_ext
11800 # OK, works on sane cases. Now check whether non-existent headers
11801 # can be detected and how.
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <ac_nonexistent.h>
11810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11813 grep -v '^ *+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } >/dev/null; then
11818 if test -s conftest.err; then
11819 ac_cpp_err=$ac_c_preproc_warn_flag
11820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11827 if test -z "$ac_cpp_err"; then
11828 # Broken: success on invalid input.
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 # Passes both tests.
11838 rm -f conftest.err conftest.$ac_ext
11841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11842 rm -f conftest.err conftest.$ac_ext
11843 if $ac_preproc_ok; then
11846 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11847 See \`config.log' for more details." >&5
11848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11849 See \`config.log' for more details." >&2;}
11850 { (exit 1); exit 1; }; }
11854 ac_cpp='$CPP $CPPFLAGS'
11855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11861 *mingw32* ) ac_cv_mingw32=yes ;;
11862 *cygwin* ) ac_cv_cygwin=yes ;;
11868 cat >>confdefs.h <<_ACEOF
11869 #define EXEEXT "${EXEEXT}"
11873 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11874 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11875 if test "${ac_cv_lib_be_be_app+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lbe -lroot -lnet $LIBS"
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11887 /* Override any gcc2 internal prototype to avoid an error. */
11891 /* We use char because int might match the return type of a gcc2
11892 builtin and then its argument prototype would still apply. */
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_lib_be_be_app=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_lib_be_be_app=no
11931 rm -f conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11935 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11936 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11937 if test $ac_cv_lib_be_be_app = yes; then
11938 LIBS="$LIBS -lbe -lroot -lnet"
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949 if test -n "$ac_tool_prefix"; then
11950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11952 echo "$as_me:$LINENO: checking for $ac_word" >&5
11953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11954 if test "${ac_cv_prog_CC+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 if test -n "$CC"; then
11958 ac_cv_prog_CC="$CC" # Let the user override the test.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11977 if test -n "$CC"; then
11978 echo "$as_me:$LINENO: result: $CC" >&5
11979 echo "${ECHO_T}$CC" >&6
11981 echo "$as_me:$LINENO: result: no" >&5
11982 echo "${ECHO_T}no" >&6
11986 if test -z "$ac_cv_prog_CC"; then
11988 # Extract the first word of "gcc", so it can be a program name with args.
11989 set dummy gcc; ac_word=$2
11990 echo "$as_me:$LINENO: checking for $ac_word" >&5
11991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 if test -n "$ac_ct_CC"; then
11996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005 ac_cv_prog_ac_ct_CC="gcc"
12006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12015 if test -n "$ac_ct_CC"; then
12016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12017 echo "${ECHO_T}$ac_ct_CC" >&6
12019 echo "$as_me:$LINENO: result: no" >&5
12020 echo "${ECHO_T}no" >&6
12025 CC="$ac_cv_prog_CC"
12028 if test -z "$CC"; then
12029 if test -n "$ac_tool_prefix"; then
12030 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12031 set dummy ${ac_tool_prefix}cc; ac_word=$2
12032 echo "$as_me:$LINENO: checking for $ac_word" >&5
12033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12034 if test "${ac_cv_prog_CC+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 if test -n "$CC"; then
12038 ac_cv_prog_CC="$CC" # Let the user override the test.
12040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12044 test -z "$as_dir" && as_dir=.
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047 ac_cv_prog_CC="${ac_tool_prefix}cc"
12048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 if test -n "$CC"; then
12058 echo "$as_me:$LINENO: result: $CC" >&5
12059 echo "${ECHO_T}$CC" >&6
12061 echo "$as_me:$LINENO: result: no" >&5
12062 echo "${ECHO_T}no" >&6
12066 if test -z "$ac_cv_prog_CC"; then
12068 # Extract the first word of "cc", so it can be a program name with args.
12069 set dummy cc; ac_word=$2
12070 echo "$as_me:$LINENO: checking for $ac_word" >&5
12071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 if test -n "$ac_ct_CC"; then
12076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12085 ac_cv_prog_ac_ct_CC="cc"
12086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12095 if test -n "$ac_ct_CC"; then
12096 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12097 echo "${ECHO_T}$ac_ct_CC" >&6
12099 echo "$as_me:$LINENO: result: no" >&5
12100 echo "${ECHO_T}no" >&6
12105 CC="$ac_cv_prog_CC"
12109 if test -z "$CC"; then
12110 # Extract the first word of "cc", so it can be a program name with args.
12111 set dummy cc; ac_word=$2
12112 echo "$as_me:$LINENO: checking for $ac_word" >&5
12113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114 if test "${ac_cv_prog_CC+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 if test -n "$CC"; then
12118 ac_cv_prog_CC="$CC" # Let the user override the test.
12120 ac_prog_rejected=no
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12129 ac_prog_rejected=yes
12133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 if test $ac_prog_rejected = yes; then
12140 # We found a bogon in the path, so make sure we never use it.
12141 set dummy $ac_cv_prog_CC
12143 if test $# != 0; then
12144 # We chose a different compiler from the bogus one.
12145 # However, it has the same basename, so the bogon will be chosen
12146 # first if we set CC to just the basename; use the full file name.
12148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12154 if test -n "$CC"; then
12155 echo "$as_me:$LINENO: result: $CC" >&5
12156 echo "${ECHO_T}$CC" >&6
12158 echo "$as_me:$LINENO: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12163 if test -z "$CC"; then
12164 if test -n "$ac_tool_prefix"; then
12167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12169 echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12171 if test "${ac_cv_prog_CC+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 if test -n "$CC"; then
12175 ac_cv_prog_CC="$CC" # Let the user override the test.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 if test -n "$CC"; then
12195 echo "$as_me:$LINENO: result: $CC" >&5
12196 echo "${ECHO_T}$CC" >&6
12198 echo "$as_me:$LINENO: result: no" >&5
12199 echo "${ECHO_T}no" >&6
12202 test -n "$CC" && break
12205 if test -z "$CC"; then
12209 # Extract the first word of "$ac_prog", so it can be a program name with args.
12210 set dummy $ac_prog; ac_word=$2
12211 echo "$as_me:$LINENO: checking for $ac_word" >&5
12212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 if test -n "$ac_ct_CC"; then
12217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220 for as_dir in $PATH
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226 ac_cv_prog_ac_ct_CC="$ac_prog"
12227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12236 if test -n "$ac_ct_CC"; then
12237 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12238 echo "${ECHO_T}$ac_ct_CC" >&6
12240 echo "$as_me:$LINENO: result: no" >&5
12241 echo "${ECHO_T}no" >&6
12244 test -n "$ac_ct_CC" && break
12253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12254 See \`config.log' for more details." >&5
12255 echo "$as_me: error: no acceptable C compiler found in \$PATH
12256 See \`config.log' for more details." >&2;}
12257 { (exit 1); exit 1; }; }
12259 # Provide some information about the compiler.
12260 echo "$as_me:$LINENO:" \
12261 "checking for C compiler version" >&5
12262 ac_compiler=`set X $ac_compile; echo $2`
12263 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12264 (eval $ac_compiler --version </dev/null >&5) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }
12268 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12269 (eval $ac_compiler -v </dev/null >&5) 2>&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }
12273 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12274 (eval $ac_compiler -V </dev/null >&5) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }
12279 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12280 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12281 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>conftest.er1
12306 grep -v '^ *+' conftest.er1 >conftest.err
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -z "$ac_c_werror_flag"
12312 || test ! -s conftest.err'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest.$ac_objext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 ac_compiler_gnu=yes
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12332 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12335 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12336 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12337 GCC=`test $ac_compiler_gnu = yes && echo yes`
12338 ac_test_CFLAGS=${CFLAGS+set}
12339 ac_save_CFLAGS=$CFLAGS
12341 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12342 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12343 if test "${ac_cv_prog_cc_g+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12361 rm -f conftest.$ac_objext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12363 (eval $ac_compile) 2>conftest.er1
12365 grep -v '^ *+' conftest.er1 >conftest.err
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_prog_cc_g=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12392 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12393 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12394 if test "$ac_test_CFLAGS" = set; then
12395 CFLAGS=$ac_save_CFLAGS
12396 elif test $ac_cv_prog_cc_g = yes; then
12397 if test "$GCC" = yes; then
12403 if test "$GCC" = yes; then
12409 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12410 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12411 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12414 ac_cv_prog_cc_stdc=no
12416 cat >conftest.$ac_ext <<_ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 #include <stdarg.h>
12424 #include <sys/types.h>
12425 #include <sys/stat.h>
12426 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12427 struct buf { int x; };
12428 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12429 static char *e (p, i)
12435 static char *f (char * (*g) (char **, int), char **p, ...)
12440 s = g (p, va_arg (v,int));
12445 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12446 function prototypes and stuff, but not '\xHH' hex character constants.
12447 These don't provoke an error unfortunately, instead are silently treated
12448 as 'x'. The following induces an error, until -std1 is added to get
12449 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12450 array size at least. It's necessary to write '\x00'==0 to get something
12451 that's true only with -std1. */
12452 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12454 int test (int i, double x);
12455 struct s1 {int (*f) (int a);};
12456 struct s2 {int (*f) (double a);};
12457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12463 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12468 # Don't try gcc -ansi; that turns off useful extensions and
12469 # breaks some systems' header files.
12470 # AIX -qlanglvl=ansi
12471 # Ultrix and OSF/1 -std1
12472 # HP-UX 10.20 and later -Ae
12473 # HP-UX older versions -Aa -D_HPUX_SOURCE
12474 # SVR4 -Xc -D__EXTENSIONS__
12475 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12477 CC="$ac_save_CC $ac_arg"
12478 rm -f conftest.$ac_objext
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480 (eval $ac_compile) 2>conftest.er1
12482 grep -v '^ *+' conftest.er1 >conftest.err
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -z "$ac_c_werror_flag"
12488 || test ! -s conftest.err'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; } &&
12494 { ac_try='test -s conftest.$ac_objext'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
12500 ac_cv_prog_cc_stdc=$ac_arg
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12507 rm -f conftest.err conftest.$ac_objext
12509 rm -f conftest.$ac_ext conftest.$ac_objext
12514 case "x$ac_cv_prog_cc_stdc" in
12516 echo "$as_me:$LINENO: result: none needed" >&5
12517 echo "${ECHO_T}none needed" >&6 ;;
12519 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12520 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12521 CC="$CC $ac_cv_prog_cc_stdc" ;;
12524 # Some people use a C++ compiler to compile C. Since we use `exit',
12525 # in C++ we need to declare it. In case someone uses the same compiler
12526 # for both compiling C and C++ we need to have the C++ compiler decide
12527 # the declaration of exit, since it's the most demanding environment.
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #ifndef __cplusplus
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>conftest.er1
12537 grep -v '^ *+' conftest.er1 >conftest.err
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12555 for ac_declaration in \
12557 'extern "C" void std::exit (int) throw (); using std::exit;' \
12558 'extern "C" void std::exit (int); using std::exit;' \
12559 'extern "C" void exit (int) throw ();' \
12560 'extern "C" void exit (int);' \
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 #include <stdlib.h>
12579 rm -f conftest.$ac_objext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>conftest.er1
12583 grep -v '^ *+' conftest.er1 >conftest.err
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_c_werror_flag"
12589 || test ! -s conftest.err'
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); }; } &&
12595 { ac_try='test -s conftest.$ac_objext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626 (eval $ac_compile) 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12655 if test -n "$ac_declaration"; then
12656 echo '#ifdef __cplusplus' >>confdefs.h
12657 echo $ac_declaration >>confdefs.h
12658 echo '#endif' >>confdefs.h
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673 depcc="$CC" am_compiler_list=
12675 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12676 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12681 # We make a subdir and do the tests there. Otherwise we can end up
12682 # making bogus files that we don't know about and never remove. For
12683 # instance it was reported that on HP-UX the gcc test will end up
12684 # making a dummy file named `D' -- because `-MD' means `put the output
12687 # Copy depcomp to subdir because otherwise we won't find it if we're
12688 # using a relative directory.
12689 cp "$am_depcomp" conftest.dir
12691 # We will build objects and dependencies in a subdirectory because
12692 # it helps to detect inapplicable dependency modes. For instance
12693 # both Tru64's cc and ICC support -MD to output dependencies as a
12694 # side effect of compilation, but ICC will put the dependencies in
12695 # the current directory while Tru64 will put them in the object
12699 am_cv_CC_dependencies_compiler_type=none
12700 if test "$am_compiler_list" = ""; then
12701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12703 for depmode in $am_compiler_list; do
12704 # Setup a source with many dependencies, because some compilers
12705 # like to wrap large dependency lists on column 80 (with \), and
12706 # we should not choose a depcomp mode which is confused by this.
12708 # We need to recreate these files for each test, as the compiler may
12709 # overwrite some of them when testing with obscure command lines.
12710 # This happens at least with the AIX C compiler.
12712 for i in 1 2 3 4 5 6; do
12713 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12714 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12715 # Solaris 8's {/usr,}/bin/sh.
12716 touch sub/conftst$i.h
12718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12722 # after this tag, mechanisms are not by side-effect, so they'll
12723 # only be used when explicitly requested
12724 if test "x$enable_dependency_tracking" = xyes; then
12732 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12733 # mode. It turns out that the SunPro C++ compiler does not properly
12734 # handle `-M -o', and we need to detect this.
12735 if depmode=$depmode \
12736 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12737 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12738 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12739 >/dev/null 2>conftest.err &&
12740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12741 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12743 # icc doesn't choke on unknown options, it will just issue warnings
12744 # or remarks (even with -Werror). So we grep stderr for any message
12745 # that says an option was ignored or not supported.
12746 # When given -MP, icc 7.0 and 7.1 complain thusly:
12747 # icc: Command line warning: ignoring option '-M'; no argument required
12748 # The diagnosis changed in icc 8.0:
12749 # icc: Command line remark: option '-MP' not supported
12750 if (grep 'ignoring option' conftest.err ||
12751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12752 am_cv_CC_dependencies_compiler_type=$depmode
12759 rm -rf conftest.dir
12761 am_cv_CC_dependencies_compiler_type=none
12765 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12766 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12767 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12772 test "x$enable_dependency_tracking" != xno \
12773 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12774 am__fastdepCC_TRUE=
12775 am__fastdepCC_FALSE='#'
12777 am__fastdepCC_TRUE='#'
12778 am__fastdepCC_FALSE=
12782 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12783 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12784 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12785 { (exit 1); exit 1; }; }
12788 # test for make depend flag
12791 if test -z "${MKDEP}"; then
12792 OL_MKDEP="${CC-cc}"
12793 if test -z "${MKDEP_FLAGS}"; then
12794 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12795 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12796 if test "${ol_cv_mkdep+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 for flag in "-M" "-xM"; do
12802 cat > conftest.c <<EOF
12805 if { ac_try='$OL_MKDEP $flag conftest.c'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; } \
12811 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12813 if test ! -f conftest."${ac_object}" ; then
12815 OL_MKDEP_FLAGS="$flag"
12823 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12824 echo "${ECHO_T}$ol_cv_mkdep" >&6
12827 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12831 OL_MKDEP="${MKDEP}"
12832 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12837 if test "${ol_cv_mkdep}" = no ; then
12838 # this will soon become an error
12839 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12840 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12843 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12844 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12845 if test "${ac_cv_lib_s_afopen+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_check_lib_save_LIBS=$LIBS
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any gcc2 internal prototype to avoid an error. */
12861 /* We use char because int might match the return type of a gcc2
12862 builtin and then its argument prototype would still apply. */
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12874 (eval $ac_link) 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag"
12882 || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_lib_s_afopen=yes
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_cv_lib_s_afopen=no
12901 rm -f conftest.err conftest.$ac_objext \
12902 conftest$ac_exeext conftest.$ac_ext
12903 LIBS=$ac_check_lib_save_LIBS
12905 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12906 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12907 if test $ac_cv_lib_s_afopen = yes; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_AIX_SECURITY 1
12921 ac_cv_func_getopt=no
12923 cat >>confdefs.h <<\_ACEOF
12924 #define BOTH_STRINGS_H 1
12931 WITH_MODULES_ENABLED=no
12932 if test $ol_enable_modules != no ; then
12934 for ac_header in ltdl.h
12936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12938 echo "$as_me:$LINENO: checking for $ac_header" >&5
12939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12946 # Is the header compilable?
12947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 $ac_includes_default
12956 #include <$ac_header>
12958 rm -f conftest.$ac_objext
12959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12960 (eval $ac_compile) 2>conftest.er1
12962 grep -v '^ *+' conftest.er1 >conftest.err
12964 cat conftest.err >&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } &&
12967 { ac_try='test -z "$ac_c_werror_flag"
12968 || test ! -s conftest.err'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; } &&
12974 { ac_try='test -s conftest.$ac_objext'
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; }; then
12980 ac_header_compiler=yes
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12985 ac_header_compiler=no
12987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12989 echo "${ECHO_T}$ac_header_compiler" >&6
12991 # Is the header present?
12992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 #include <$ac_header>
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_c_preproc_warn_flag
13012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13019 if test -z "$ac_cpp_err"; then
13020 ac_header_preproc=yes
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 ac_header_preproc=no
13027 rm -f conftest.err conftest.$ac_ext
13028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13029 echo "${ECHO_T}$ac_header_preproc" >&6
13031 # So? What about this header?
13032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13038 ac_header_preproc=yes
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13055 ## --------------------------------------------- ##
13056 ## Report this to <http://www.openldap.org/its/> ##
13057 ## --------------------------------------------- ##
13060 sed "s/^/$as_me: WARNING: /" >&2
13063 echo "$as_me:$LINENO: checking for $ac_header" >&5
13064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 eval "$as_ac_Header=\$ac_header_preproc"
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13075 cat >>confdefs.h <<_ACEOF
13076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13084 if test $ac_cv_header_ltdl_h = no ; then
13085 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13086 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13087 { (exit 1); exit 1; }; }
13090 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13091 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13092 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 ac_check_lib_save_LIBS=$LIBS
13096 LIBS="-lltdl $LIBS"
13097 cat >conftest.$ac_ext <<_ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13104 /* Override any gcc2 internal prototype to avoid an error. */
13108 /* We use char because int might match the return type of a gcc2
13109 builtin and then its argument prototype would still apply. */
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -z "$ac_c_werror_flag"
13129 || test ! -s conftest.err'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 ac_cv_lib_ltdl_lt_dlinit=yes
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13146 ac_cv_lib_ltdl_lt_dlinit=no
13148 rm -f conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13152 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13153 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13154 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13156 MODULES_LIBS=-lltdl
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_LIBLTDL 1
13166 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13167 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13168 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13169 { (exit 1); exit 1; }; }
13171 ol_link_modules=yes
13172 WITH_MODULES_ENABLED=yes
13175 for i in $Backends; do
13176 eval "ol_tmp=\$ol_enable_$i"
13177 if test $ol_tmp = mod ; then
13178 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13179 echo "$as_me: WARNING: building static $i backend" >&2;}
13180 eval "ol_enable_$i=yes"
13183 for i in $Overlays; do
13184 eval "ol_tmp=\$ol_enable_$i"
13185 if test $ol_tmp = mod ; then
13186 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13187 echo "$as_me: WARNING: building static $i overlay" >&2;}
13188 eval "ol_enable_$i=yes"
13194 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13195 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13196 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13208 #include <__ASCII__/generate_error.h>
13212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } >/dev/null; then
13220 if test -s conftest.err; then
13221 ac_cpp_err=$ac_c_preproc_warn_flag
13222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13229 if test -z "$ac_cpp_err"; then
13230 ol_cv_cpp_ebcdic=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ol_cv_cpp_ebcdic=no
13237 rm -f conftest.err conftest.$ac_ext
13239 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13240 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13241 if test $ol_cv_cpp_ebcdic = yes ; then
13243 cat >>confdefs.h <<\_ACEOF
13244 #define HAVE_EBCDIC 1
13249 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13251 if test "${ol_cv_header_stdc+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13260 #include <stdlib.h>
13261 #include <stdarg.h>
13262 #include <string.h>
13265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } >/dev/null; then
13273 if test -s conftest.err; then
13274 ac_cpp_err=$ac_c_preproc_warn_flag
13275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13282 if test -z "$ac_cpp_err"; then
13283 ol_cv_header_stdc=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ol_cv_header_stdc=no
13290 rm -f conftest.err conftest.$ac_ext
13292 if test $ol_cv_header_stdc = yes; then
13293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include <string.h>
13303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13304 $EGREP "memchr" >/dev/null 2>&1; then
13307 ol_cv_header_stdc=no
13313 if test $ol_cv_header_stdc = yes; then
13314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 #include <stdlib.h>
13324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325 $EGREP "free" >/dev/null 2>&1; then
13328 ol_cv_header_stdc=no
13334 if test $ol_cv_header_stdc = yes; then
13335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13336 if test "$cross_compiling" = yes; then
13339 cat >conftest.$ac_ext <<_ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13346 #ifndef HAVE_EBCDIC
13347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13350 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13351 || ('j' <= (c) && (c) <= 'r') \
13352 || ('s' <= (c) && (c) <= 'z'))
13353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13356 int main () { int i; for (i = 0; i < 256; i++)
13357 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13361 rm -f conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13374 echo "$as_me: program exited with status $ac_status" >&5
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13378 ( exit $ac_status )
13379 ol_cv_header_stdc=no
13381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13385 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13386 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13387 if test $ol_cv_header_stdc = yes; then
13388 cat >>confdefs.h <<\_ACEOF
13389 #define STDC_HEADERS 1
13393 ac_cv_header_stdc=disable
13396 if test $ol_cv_header_stdc != yes; then
13397 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13398 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13406 ac_header_dirent=no
13407 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13408 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13409 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13410 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 #include <sys/types.h>
13432 rm -f conftest.$ac_objext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
13441 { ac_try='test -z "$ac_c_werror_flag"
13442 || test ! -s conftest.err'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } &&
13448 { ac_try='test -s conftest.$ac_objext'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 eval "$as_ac_Header=yes"
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 eval "$as_ac_Header=no"
13461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13470 ac_header_dirent=$ac_hdr; break
13474 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13475 if test $ac_header_dirent = dirent.h; then
13476 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13477 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13478 if test "${ac_cv_search_opendir+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 ac_func_search_save_LIBS=$LIBS
13482 ac_cv_search_opendir=no
13483 cat >conftest.$ac_ext <<_ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13490 /* Override any gcc2 internal prototype to avoid an error. */
13494 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13507 (eval $ac_link) 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_search_opendir="none required"
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13533 rm -f conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13535 if test "$ac_cv_search_opendir" = no; then
13536 for ac_lib in dir; do
13537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13545 /* Override any gcc2 internal prototype to avoid an error. */
13549 /* We use char because int might match the return type of a gcc2
13550 builtin and then its argument prototype would still apply. */
13560 rm -f conftest.$ac_objext conftest$ac_exeext
13561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13562 (eval $ac_link) 2>conftest.er1
13564 grep -v '^ *+' conftest.er1 >conftest.err
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest$ac_exeext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_search_opendir="-l$ac_lib"
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13589 rm -f conftest.err conftest.$ac_objext \
13590 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_func_search_save_LIBS
13595 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13596 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13597 if test "$ac_cv_search_opendir" != no; then
13598 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13603 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13605 if test "${ac_cv_search_opendir+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 ac_func_search_save_LIBS=$LIBS
13609 ac_cv_search_opendir=no
13610 cat >conftest.$ac_ext <<_ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13617 /* Override any gcc2 internal prototype to avoid an error. */
13621 /* We use char because int might match the return type of a gcc2
13622 builtin and then its argument prototype would still apply. */
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634 (eval $ac_link) 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest$ac_exeext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_search_opendir="none required"
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13660 rm -f conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13662 if test "$ac_cv_search_opendir" = no; then
13663 for ac_lib in x; do
13664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 /* Override any gcc2 internal prototype to avoid an error. */
13676 /* We use char because int might match the return type of a gcc2
13677 builtin and then its argument prototype would still apply. */
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13689 (eval $ac_link) 2>conftest.er1
13691 grep -v '^ *+' conftest.er1 >conftest.err
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -z "$ac_c_werror_flag"
13697 || test ! -s conftest.err'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_search_opendir="-l$ac_lib"
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13716 rm -f conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_func_search_save_LIBS
13722 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13723 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13724 if test "$ac_cv_search_opendir" != no; then
13725 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13731 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13732 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13733 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 #include <sys/types.h>
13743 #include <sys/wait.h>
13744 #ifndef WEXITSTATUS
13745 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13748 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13756 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763 (eval $ac_compile) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -z "$ac_c_werror_flag"
13771 || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 ac_cv_header_sys_wait_h=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_header_sys_wait_h=no
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13793 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13794 if test $ac_cv_header_sys_wait_h = yes; then
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_SYS_WAIT_H 1
13802 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13803 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13804 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 #include <sys/types.h>
13814 #include <termios.h>
13820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13821 $EGREP "yes" >/dev/null 2>&1; then
13822 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13824 ac_cv_sys_tiocgwinsz_in_termios_h=no
13829 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13830 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13832 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13833 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13834 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13835 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 #include <sys/types.h>
13845 #include <sys/ioctl.h>
13851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13852 $EGREP "yes" >/dev/null 2>&1; then
13853 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13855 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13860 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13861 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13863 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13865 cat >>confdefs.h <<\_ACEOF
13866 #define GWINSZ_IN_SYS_IOCTL 1
13964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13966 echo "$as_me:$LINENO: checking for $ac_header" >&5
13967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13974 # Is the header compilable?
13975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 $ac_includes_default
13984 #include <$ac_header>
13986 rm -f conftest.$ac_objext
13987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13988 (eval $ac_compile) 2>conftest.er1
13990 grep -v '^ *+' conftest.er1 >conftest.err
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag"
13996 || test ! -s conftest.err'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; } &&
14002 { ac_try='test -s conftest.$ac_objext'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008 ac_header_compiler=yes
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_header_compiler=no
14015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14017 echo "${ECHO_T}$ac_header_compiler" >&6
14019 # Is the header present?
14020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 #include <$ac_header>
14030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } >/dev/null; then
14038 if test -s conftest.err; then
14039 ac_cpp_err=$ac_c_preproc_warn_flag
14040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14047 if test -z "$ac_cpp_err"; then
14048 ac_header_preproc=yes
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_header_preproc=no
14055 rm -f conftest.err conftest.$ac_ext
14056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14057 echo "${ECHO_T}$ac_header_preproc" >&6
14059 # So? What about this header?
14060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14062 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14066 ac_header_preproc=yes
14069 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14072 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14076 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14083 ## --------------------------------------------- ##
14084 ## Report this to <http://www.openldap.org/its/> ##
14085 ## --------------------------------------------- ##
14088 sed "s/^/$as_me: WARNING: /" >&2
14091 echo "$as_me:$LINENO: checking for $ac_header" >&5
14092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 eval "$as_ac_Header=\$ac_header_preproc"
14098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14103 cat >>confdefs.h <<_ACEOF
14104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14112 if test "$ac_cv_mingw32" = yes ; then
14115 for ac_header in winsock.h winsock2.h
14117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo "$as_me:$LINENO: checking for $ac_header" >&5
14120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14127 # Is the header compilable?
14128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14130 cat >conftest.$ac_ext <<_ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 $ac_includes_default
14137 #include <$ac_header>
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest.$ac_objext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_header_compiler=yes
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14166 ac_header_compiler=no
14168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14170 echo "${ECHO_T}$ac_header_compiler" >&6
14172 # Is the header present?
14173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14175 cat >conftest.$ac_ext <<_ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 #include <$ac_header>
14183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } >/dev/null; then
14191 if test -s conftest.err; then
14192 ac_cpp_err=$ac_c_preproc_warn_flag
14193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14200 if test -z "$ac_cpp_err"; then
14201 ac_header_preproc=yes
14203 echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.$ac_ext >&5
14206 ac_header_preproc=no
14208 rm -f conftest.err conftest.$ac_ext
14209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14210 echo "${ECHO_T}$ac_header_preproc" >&6
14212 # So? What about this header?
14213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14219 ac_header_preproc=yes
14222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14236 ## --------------------------------------------- ##
14237 ## Report this to <http://www.openldap.org/its/> ##
14238 ## --------------------------------------------- ##
14241 sed "s/^/$as_me: WARNING: /" >&2
14244 echo "$as_me:$LINENO: checking for $ac_header" >&5
14245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 eval "$as_ac_Header=\$ac_header_preproc"
14251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14256 cat >>confdefs.h <<_ACEOF
14257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14267 for ac_header in resolv.h
14269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14270 echo "$as_me:$LINENO: checking for $ac_header" >&5
14271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 $ac_includes_default
14282 #include <netinet/in.h>
14285 #include <$ac_header>
14287 rm -f conftest.$ac_objext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289 (eval $ac_compile) 2>conftest.er1
14291 grep -v '^ *+' conftest.er1 >conftest.err
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest.$ac_objext'
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 eval "$as_ac_Header=yes"
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14314 eval "$as_ac_Header=no"
14316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14321 cat >>confdefs.h <<_ACEOF
14322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14331 for ac_header in netinet/tcp.h
14333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14334 echo "$as_me:$LINENO: checking for $ac_header" >&5
14335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 $ac_includes_default
14346 #include <netinet/in.h>
14349 #include <$ac_header>
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353 (eval $ac_compile) 2>conftest.er1
14355 grep -v '^ *+' conftest.er1 >conftest.err
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag"
14361 || test ! -s conftest.err'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; } &&
14367 { ac_try='test -s conftest.$ac_objext'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; }; then
14373 eval "$as_ac_Header=yes"
14375 echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14378 eval "$as_ac_Header=no"
14380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14385 cat >>confdefs.h <<_ACEOF
14386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14395 for ac_header in sys/ucred.h
14397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398 echo "$as_me:$LINENO: checking for $ac_header" >&5
14399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14401 echo $ECHO_N "(cached) $ECHO_C" >&6
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14409 $ac_includes_default
14410 #ifdef HAVE_SYS_PARAM_H
14411 #include <sys/param.h>
14415 #include <$ac_header>
14417 rm -f conftest.$ac_objext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419 (eval $ac_compile) 2>conftest.er1
14421 grep -v '^ *+' conftest.er1 >conftest.err
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
14426 { ac_try='test -z "$ac_c_werror_flag"
14427 || test ! -s conftest.err'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; } &&
14433 { ac_try='test -s conftest.$ac_objext'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 eval "$as_ac_Header=yes"
14441 echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14444 eval "$as_ac_Header=no"
14446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14451 cat >>confdefs.h <<_ACEOF
14452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14463 for ac_func in sigaction sigset
14465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14466 echo "$as_me:$LINENO: checking for $ac_func" >&5
14467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14468 if eval "test \"\${$as_ac_var+set}\" = set"; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 cat >conftest.$ac_ext <<_ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h. */
14477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14479 #define $ac_func innocuous_$ac_func
14481 /* System header to define __stub macros and hopefully few prototypes,
14482 which can conflict with char $ac_func (); below.
14483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14484 <limits.h> exists even on freestanding compilers. */
14487 # include <limits.h>
14489 # include <assert.h>
14494 /* Override any gcc2 internal prototype to avoid an error. */
14499 /* We use char because int might match the return type of a gcc2
14500 builtin and then its argument prototype would still apply. */
14502 /* The GNU C library defines this for functions which it implements
14503 to always fail with ENOSYS. Some functions are actually named
14504 something starting with __ and the normal name is an alias. */
14505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14508 char (*f) () = $ac_func;
14517 return f != $ac_func;
14522 rm -f conftest.$ac_objext conftest$ac_exeext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14524 (eval $ac_link) 2>conftest.er1
14526 grep -v '^ *+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag"
14532 || test ! -s conftest.err'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest$ac_exeext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 eval "$as_ac_var=yes"
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14549 eval "$as_ac_var=no"
14551 rm -f conftest.err conftest.$ac_objext \
14552 conftest$ac_exeext conftest.$ac_ext
14554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14556 if test `eval echo '${'$as_ac_var'}'` = yes; then
14557 cat >>confdefs.h <<_ACEOF
14558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14565 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14567 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14568 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14569 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 ac_check_lib_save_LIBS=$LIBS
14574 cat >conftest.$ac_ext <<_ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14581 /* Override any gcc2 internal prototype to avoid an error. */
14585 /* We use char because int might match the return type of a gcc2
14586 builtin and then its argument prototype would still apply. */
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_cv_lib_V3_sigset=yes
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 ac_cv_lib_V3_sigset=no
14625 rm -f conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627 LIBS=$ac_check_lib_save_LIBS
14629 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14630 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14631 if test $ac_cv_lib_V3_sigset = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633 #define HAVE_LIBV3 1
14642 if test "$ac_cv_header_winsock_h" = yes; then
14643 echo "$as_me:$LINENO: checking for winsock" >&5
14644 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14645 if test "${ol_cv_winsock+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 for curlib in ws2_32 wsock32; do
14650 LIBS="$LIBS -l$curlib"
14651 cat >conftest.$ac_ext <<_ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657 #include <winsock.h>
14664 select(0,NULL,NULL,NULL,NULL);
14666 gethostname(NULL,0);
14672 rm -f conftest.$ac_objext conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674 (eval $ac_link) 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -z "$ac_c_werror_flag"
14682 || test ! -s conftest.err'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest$ac_exeext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14701 rm -f conftest.err conftest.$ac_objext \
14702 conftest$ac_exeext conftest.$ac_ext
14704 if test $ol_cv_winsock = yes; then
14706 cat >>confdefs.h <<\_ACEOF
14707 #define HAVE_WINSOCK 1
14710 ac_cv_func_socket=yes
14711 ac_cv_func_select=yes
14712 ac_cv_func_closesocket=yes
14713 ac_cv_func_gethostname=yes
14714 if test $curlib = ws2_32; then
14715 ol_cv_winsock=winsock2
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_WINSOCK2 1
14727 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14728 echo "${ECHO_T}$ol_cv_winsock" >&6
14732 echo "$as_me:$LINENO: checking for socket" >&5
14733 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14734 if test "${ac_cv_func_socket+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14745 #define socket innocuous_socket
14747 /* System header to define __stub macros and hopefully few prototypes,
14748 which can conflict with char socket (); below.
14749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14750 <limits.h> exists even on freestanding compilers. */
14753 # include <limits.h>
14755 # include <assert.h>
14760 /* Override any gcc2 internal prototype to avoid an error. */
14765 /* We use char because int might match the return type of a gcc2
14766 builtin and then its argument prototype would still apply. */
14768 /* The GNU C library defines this for functions which it implements
14769 to always fail with ENOSYS. Some functions are actually named
14770 something starting with __ and the normal name is an alias. */
14771 #if defined (__stub_socket) || defined (__stub___socket)
14774 char (*f) () = socket;
14783 return f != socket;
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14790 (eval $ac_link) 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest$ac_exeext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_func_socket=yes
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_cv_func_socket=no
14817 rm -f conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext conftest.$ac_ext
14820 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14821 echo "${ECHO_T}$ac_cv_func_socket" >&6
14822 if test $ac_cv_func_socket = yes; then
14827 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14828 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14829 if test "${ac_cv_lib_socket_main+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 ac_check_lib_save_LIBS=$LIBS
14833 LIBS="-lsocket $LIBS"
14834 cat >conftest.$ac_ext <<_ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 (eval $ac_link) 2>conftest.er1
14854 grep -v '^ *+' conftest.er1 >conftest.err
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag"
14860 || test ! -s conftest.err'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest$ac_exeext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_cv_lib_socket_main=yes
14874 echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 ac_cv_lib_socket_main=no
14879 rm -f conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14883 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14884 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14885 if test $ac_cv_lib_socket_main = yes; then
14886 cat >>confdefs.h <<_ACEOF
14887 #define HAVE_LIBSOCKET 1
14890 LIBS="-lsocket $LIBS"
14895 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14896 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14897 if test "${ac_cv_lib_net_main+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 ac_check_lib_save_LIBS=$LIBS
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14920 (eval $ac_link) 2>conftest.er1
14922 grep -v '^ *+' conftest.er1 >conftest.err
14924 cat conftest.err >&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } &&
14927 { ac_try='test -z "$ac_c_werror_flag"
14928 || test ! -s conftest.err'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; } &&
14934 { ac_try='test -s conftest$ac_exeext'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_cv_lib_net_main=yes
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_cv_lib_net_main=no
14947 rm -f conftest.err conftest.$ac_objext \
14948 conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14951 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14952 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14953 if test $ac_cv_lib_net_main = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_LIBNET 1
14963 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14964 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14965 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 ac_check_lib_save_LIBS=$LIBS
14969 LIBS="-lnsl_s $LIBS"
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>conftest.er1
14990 grep -v '^ *+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_lib_nsl_s_main=yes
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ac_cv_lib_nsl_s_main=no
15015 rm -f conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017 LIBS=$ac_check_lib_save_LIBS
15019 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15020 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15021 if test $ac_cv_lib_nsl_s_main = yes; then
15022 cat >>confdefs.h <<_ACEOF
15023 #define HAVE_LIBNSL_S 1
15026 LIBS="-lnsl_s $LIBS"
15031 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15032 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15033 if test "${ac_cv_lib_nsl_main+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 ac_check_lib_save_LIBS=$LIBS
15038 cat >conftest.$ac_ext <<_ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15054 rm -f conftest.$ac_objext conftest$ac_exeext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15056 (eval $ac_link) 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } &&
15063 { ac_try='test -z "$ac_c_werror_flag"
15064 || test ! -s conftest.err'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; } &&
15070 { ac_try='test -s conftest$ac_exeext'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 ac_cv_lib_nsl_main=yes
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 ac_cv_lib_nsl_main=no
15083 rm -f conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15085 LIBS=$ac_check_lib_save_LIBS
15087 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15088 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15089 if test $ac_cv_lib_nsl_main = yes; then
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_LIBNSL 1
15099 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15100 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15101 if test "${ac_cv_lib_inet_socket+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 ac_check_lib_save_LIBS=$LIBS
15105 LIBS="-linet $LIBS"
15106 cat >conftest.$ac_ext <<_ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15113 /* Override any gcc2 internal prototype to avoid an error. */
15117 /* We use char because int might match the return type of a gcc2
15118 builtin and then its argument prototype would still apply. */
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130 (eval $ac_link) 2>conftest.er1
15132 grep -v '^ *+' conftest.er1 >conftest.err
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } &&
15137 { ac_try='test -z "$ac_c_werror_flag"
15138 || test ! -s conftest.err'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_cv_lib_inet_socket=yes
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 ac_cv_lib_inet_socket=no
15157 rm -f conftest.err conftest.$ac_objext \
15158 conftest$ac_exeext conftest.$ac_ext
15159 LIBS=$ac_check_lib_save_LIBS
15161 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15162 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15163 if test $ac_cv_lib_inet_socket = yes; then
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_LIBINET 1
15168 LIBS="-linet $LIBS"
15173 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15174 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15175 if test "${ac_cv_lib_gen_main+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 ac_check_lib_save_LIBS=$LIBS
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15196 rm -f conftest.$ac_objext conftest$ac_exeext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15198 (eval $ac_link) 2>conftest.er1
15200 grep -v '^ *+' conftest.er1 >conftest.err
15202 cat conftest.err >&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try='test -z "$ac_c_werror_flag"
15206 || test ! -s conftest.err'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; } &&
15212 { ac_try='test -s conftest$ac_exeext'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15218 ac_cv_lib_gen_main=yes
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_cv_lib_gen_main=no
15225 rm -f conftest.err conftest.$ac_objext \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15230 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15231 if test $ac_cv_lib_gen_main = yes; then
15232 cat >>confdefs.h <<_ACEOF
15233 #define HAVE_LIBGEN 1
15244 echo "$as_me:$LINENO: checking for select" >&5
15245 echo $ECHO_N "checking for select... $ECHO_C" >&6
15246 if test "${ac_cv_func_select+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 /* Define select to an innocuous variant, in case <limits.h> declares select.
15256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15257 #define select innocuous_select
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char select (); below.
15261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262 <limits.h> exists even on freestanding compilers. */
15265 # include <limits.h>
15267 # include <assert.h>
15272 /* Override any gcc2 internal prototype to avoid an error. */
15277 /* We use char because int might match the return type of a gcc2
15278 builtin and then its argument prototype would still apply. */
15280 /* The GNU C library defines this for functions which it implements
15281 to always fail with ENOSYS. Some functions are actually named
15282 something starting with __ and the normal name is an alias. */
15283 #if defined (__stub_select) || defined (__stub___select)
15286 char (*f) () = select;
15295 return f != select;
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15302 (eval $ac_link) 2>conftest.er1
15304 grep -v '^ *+' conftest.er1 >conftest.err
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } &&
15309 { ac_try='test -z "$ac_c_werror_flag"
15310 || test ! -s conftest.err'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; } &&
15316 { ac_try='test -s conftest$ac_exeext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15322 ac_cv_func_select=yes
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ac_cv_func_select=no
15329 rm -f conftest.err conftest.$ac_objext \
15330 conftest$ac_exeext conftest.$ac_ext
15332 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15333 echo "${ECHO_T}$ac_cv_func_select" >&6
15334 if test $ac_cv_func_select = yes; then
15337 { { echo "$as_me:$LINENO: error: select() required." >&5
15338 echo "$as_me: error: select() required." >&2;}
15339 { (exit 1); exit 1; }; }
15343 if test "${ac_cv_header_winsock_h}" != yes; then
15346 for ac_header in sys/select.h sys/socket.h
15348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15350 echo "$as_me:$LINENO: checking for $ac_header" >&5
15351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15358 # Is the header compilable?
15359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 $ac_includes_default
15368 #include <$ac_header>
15370 rm -f conftest.$ac_objext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15372 (eval $ac_compile) 2>conftest.er1
15374 grep -v '^ *+' conftest.er1 >conftest.err
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -z "$ac_c_werror_flag"
15380 || test ! -s conftest.err'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest.$ac_objext'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392 ac_header_compiler=yes
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15397 ac_header_compiler=no
15399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401 echo "${ECHO_T}$ac_header_compiler" >&6
15403 # Is the header present?
15404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 #include <$ac_header>
15414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } >/dev/null; then
15422 if test -s conftest.err; then
15423 ac_cpp_err=$ac_c_preproc_warn_flag
15424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15431 if test -z "$ac_cpp_err"; then
15432 ac_header_preproc=yes
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 ac_header_preproc=no
15439 rm -f conftest.err conftest.$ac_ext
15440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15441 echo "${ECHO_T}$ac_header_preproc" >&6
15443 # So? What about this header?
15444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15450 ac_header_preproc=yes
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15467 ## --------------------------------------------- ##
15468 ## Report this to <http://www.openldap.org/its/> ##
15469 ## --------------------------------------------- ##
15472 sed "s/^/$as_me: WARNING: /" >&2
15475 echo "$as_me:$LINENO: checking for $ac_header" >&5
15476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 eval "$as_ac_Header=\$ac_header_preproc"
15482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15487 cat >>confdefs.h <<_ACEOF
15488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15495 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15496 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15497 if test "${ac_cv_func_select_args+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15501 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15502 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15503 cat >conftest.$ac_ext <<_ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 $ac_includes_default
15510 #if HAVE_SYS_SELECT_H
15511 # include <sys/select.h>
15513 #if HAVE_SYS_SOCKET_H
15514 # include <sys/socket.h>
15520 extern int select ($ac_arg1,
15521 $ac_arg234, $ac_arg234, $ac_arg234,
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529 (eval $ac_compile) 2>conftest.er1
15531 grep -v '^ *+' conftest.er1 >conftest.err
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -z "$ac_c_werror_flag"
15537 || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest.$ac_objext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15559 # Provide a safe default value.
15560 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15563 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15564 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15565 ac_save_IFS=$IFS; IFS=','
15566 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15570 cat >>confdefs.h <<_ACEOF
15571 #define SELECT_TYPE_ARG1 $1
15575 cat >>confdefs.h <<_ACEOF
15576 #define SELECT_TYPE_ARG234 ($2)
15580 cat >>confdefs.h <<_ACEOF
15581 #define SELECT_TYPE_ARG5 ($3)
15590 for ac_func in poll
15592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15593 echo "$as_me:$LINENO: checking for $ac_func" >&5
15594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15595 if eval "test \"\${$as_ac_var+set}\" = set"; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15606 #define $ac_func innocuous_$ac_func
15608 /* System header to define __stub macros and hopefully few prototypes,
15609 which can conflict with char $ac_func (); below.
15610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15611 <limits.h> exists even on freestanding compilers. */
15614 # include <limits.h>
15616 # include <assert.h>
15621 /* Override any gcc2 internal prototype to avoid an error. */
15626 /* We use char because int might match the return type of a gcc2
15627 builtin and then its argument prototype would still apply. */
15629 /* The GNU C library defines this for functions which it implements
15630 to always fail with ENOSYS. Some functions are actually named
15631 something starting with __ and the normal name is an alias. */
15632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15635 char (*f) () = $ac_func;
15644 return f != $ac_func;
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651 (eval $ac_link) 2>conftest.er1
15653 grep -v '^ *+' conftest.er1 >conftest.err
15655 cat conftest.err >&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); } &&
15658 { ac_try='test -z "$ac_c_werror_flag"
15659 || test ! -s conftest.err'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 eval "$as_ac_var=yes"
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 eval "$as_ac_var=no"
15678 rm -f conftest.err conftest.$ac_objext \
15679 conftest$ac_exeext conftest.$ac_ext
15681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15683 if test `eval echo '${'$as_ac_var'}'` = yes; then
15684 cat >>confdefs.h <<_ACEOF
15685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15691 if test $ac_cv_func_poll = yes; then
15694 for ac_header in poll.h sys/poll.h
15696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698 echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15706 # Is the header compilable?
15707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 $ac_includes_default
15716 #include <$ac_header>
15718 rm -f conftest.$ac_objext
15719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15720 (eval $ac_compile) 2>conftest.er1
15722 grep -v '^ *+' conftest.er1 >conftest.err
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -z "$ac_c_werror_flag"
15728 || test ! -s conftest.err'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest.$ac_objext'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_header_compiler=yes
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 ac_header_compiler=no
15747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15749 echo "${ECHO_T}$ac_header_compiler" >&6
15751 # Is the header present?
15752 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15754 cat >conftest.$ac_ext <<_ACEOF
15757 cat confdefs.h >>conftest.$ac_ext
15758 cat >>conftest.$ac_ext <<_ACEOF
15759 /* end confdefs.h. */
15760 #include <$ac_header>
15762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15765 grep -v '^ *+' conftest.er1 >conftest.err
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } >/dev/null; then
15770 if test -s conftest.err; then
15771 ac_cpp_err=$ac_c_preproc_warn_flag
15772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15779 if test -z "$ac_cpp_err"; then
15780 ac_header_preproc=yes
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_preproc=no
15787 rm -f conftest.err conftest.$ac_ext
15788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15789 echo "${ECHO_T}$ac_header_preproc" >&6
15791 # So? What about this header?
15792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15798 ac_header_preproc=yes
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15815 ## --------------------------------------------- ##
15816 ## Report this to <http://www.openldap.org/its/> ##
15817 ## --------------------------------------------- ##
15820 sed "s/^/$as_me: WARNING: /" >&2
15823 echo "$as_me:$LINENO: checking for $ac_header" >&5
15824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 eval "$as_ac_Header=\$ac_header_preproc"
15830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15835 cat >>confdefs.h <<_ACEOF
15836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15846 for ac_header in sys/epoll.h
15848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15850 echo "$as_me:$LINENO: checking for $ac_header" >&5
15851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15858 # Is the header compilable?
15859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15861 cat >conftest.$ac_ext <<_ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 $ac_includes_default
15868 #include <$ac_header>
15870 rm -f conftest.$ac_objext
15871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15872 (eval $ac_compile) 2>conftest.er1
15874 grep -v '^ *+' conftest.er1 >conftest.err
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -z "$ac_c_werror_flag"
15880 || test ! -s conftest.err'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; } &&
15886 { ac_try='test -s conftest.$ac_objext'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }; then
15892 ac_header_compiler=yes
15894 echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 ac_header_compiler=no
15899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15901 echo "${ECHO_T}$ac_header_compiler" >&6
15903 # Is the header present?
15904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15906 cat >conftest.$ac_ext <<_ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 #include <$ac_header>
15914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15917 grep -v '^ *+' conftest.er1 >conftest.err
15919 cat conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } >/dev/null; then
15922 if test -s conftest.err; then
15923 ac_cpp_err=$ac_c_preproc_warn_flag
15924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15931 if test -z "$ac_cpp_err"; then
15932 ac_header_preproc=yes
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_header_preproc=no
15939 rm -f conftest.err conftest.$ac_ext
15940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15941 echo "${ECHO_T}$ac_header_preproc" >&6
15943 # So? What about this header?
15944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15950 ac_header_preproc=yes
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15967 ## --------------------------------------------- ##
15968 ## Report this to <http://www.openldap.org/its/> ##
15969 ## --------------------------------------------- ##
15972 sed "s/^/$as_me: WARNING: /" >&2
15975 echo "$as_me:$LINENO: checking for $ac_header" >&5
15976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 eval "$as_ac_Header=\$ac_header_preproc"
15982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15987 cat >>confdefs.h <<_ACEOF
15988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15995 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15996 echo "$as_me:$LINENO: checking for epoll system call" >&5
15997 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15998 if test "$cross_compiling" = yes; then
15999 echo "$as_me:$LINENO: result: no" >&5
16000 echo "${ECHO_T}no" >&6
16002 cat >conftest.$ac_ext <<_ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 int main(int argc, char **argv)
16010 int epfd = epoll_create(256);
16011 exit (epfd == -1 ? 1 : 0);
16014 rm -f conftest$ac_exeext
16015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 echo "$as_me:$LINENO: result: yes" >&5
16026 echo "${ECHO_T}yes" >&6
16028 cat >>confdefs.h <<\_ACEOF
16029 #define HAVE_EPOLL 1
16033 echo "$as_me: program exited with status $ac_status" >&5
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ( exit $ac_status )
16038 echo "$as_me:$LINENO: result: no" >&5
16039 echo "${ECHO_T}no" >&6
16041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16046 for ac_header in sys/devpoll.h
16048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16050 echo "$as_me:$LINENO: checking for $ac_header" >&5
16051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16058 # Is the header compilable?
16059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16061 cat >conftest.$ac_ext <<_ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 $ac_includes_default
16068 #include <$ac_header>
16070 rm -f conftest.$ac_objext
16071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16072 (eval $ac_compile) 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); } &&
16079 { ac_try='test -z "$ac_c_werror_flag"
16080 || test ! -s conftest.err'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; } &&
16086 { ac_try='test -s conftest.$ac_objext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_header_compiler=yes
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_compiler=no
16099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16101 echo "${ECHO_T}$ac_header_compiler" >&6
16103 # Is the header present?
16104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <$ac_header>
16114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16117 grep -v '^ *+' conftest.er1 >conftest.err
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } >/dev/null; then
16122 if test -s conftest.err; then
16123 ac_cpp_err=$ac_c_preproc_warn_flag
16124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16131 if test -z "$ac_cpp_err"; then
16132 ac_header_preproc=yes
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_header_preproc=no
16139 rm -f conftest.err conftest.$ac_ext
16140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16141 echo "${ECHO_T}$ac_header_preproc" >&6
16143 # So? What about this header?
16144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16150 ac_header_preproc=yes
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16167 ## --------------------------------------------- ##
16168 ## Report this to <http://www.openldap.org/its/> ##
16169 ## --------------------------------------------- ##
16172 sed "s/^/$as_me: WARNING: /" >&2
16175 echo "$as_me:$LINENO: checking for $ac_header" >&5
16176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 eval "$as_ac_Header=\$ac_header_preproc"
16182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16195 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16196 -a "${ac_cv_header_poll_h}" = yes ; \
16198 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16199 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16200 if test "$cross_compiling" = yes; then
16201 echo "$as_me:$LINENO: result: no" >&5
16202 echo "${ECHO_T}no" >&6
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 int main(int argc, char **argv)
16212 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16213 exit (devpollfd == -1 ? 1 : 0);
16216 rm -f conftest$ac_exeext
16217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16218 (eval $ac_link) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 echo "$as_me:$LINENO: result: yes" >&5
16228 echo "${ECHO_T}yes" >&6
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_DEVPOLL 1
16235 echo "$as_me: program exited with status $ac_status" >&5
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ( exit $ac_status )
16240 echo "$as_me:$LINENO: result: no" >&5
16241 echo "${ECHO_T}no" >&6
16243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16248 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16249 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16250 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 cat >conftest.$ac_ext <<_ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16262 #include <sys/types.h>
16265 #include <stdlib.h>
16270 char *c = (char *) *sys_errlist
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277 (eval $ac_compile) 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag"
16285 || test ! -s conftest.err'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest.$ac_objext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 ol_cv_dcl_sys_errlist=yes
16298 ol_cv_have_sys_errlist=yes
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16303 ol_cv_dcl_sys_errlist=no
16305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16307 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16308 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16310 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16311 if test $ol_cv_dcl_sys_errlist = no ; then
16313 cat >>confdefs.h <<\_ACEOF
16314 #define DECL_SYS_ERRLIST 1
16318 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16319 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16320 if test "${ol_cv_have_sys_errlist+set}" = set; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 cat >conftest.$ac_ext <<_ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16334 char *c = (char *) *sys_errlist
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>conftest.er1
16343 grep -v '^ *+' conftest.er1 >conftest.err
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try='test -z "$ac_c_werror_flag"
16349 || test ! -s conftest.err'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
16355 { ac_try='test -s conftest$ac_exeext'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 ol_cv_have_sys_errlist=yes
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.$ac_ext >&5
16366 ol_cv_have_sys_errlist=no
16368 rm -f conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
16371 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16372 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16374 if test $ol_cv_have_sys_errlist = yes ; then
16376 cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_SYS_ERRLIST 1
16383 for ac_func in strerror strerror_r
16385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16386 echo "$as_me:$LINENO: checking for $ac_func" >&5
16387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16388 if eval "test \"\${$as_ac_var+set}\" = set"; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 cat >conftest.$ac_ext <<_ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16399 #define $ac_func innocuous_$ac_func
16401 /* System header to define __stub macros and hopefully few prototypes,
16402 which can conflict with char $ac_func (); below.
16403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16404 <limits.h> exists even on freestanding compilers. */
16407 # include <limits.h>
16409 # include <assert.h>
16414 /* Override any gcc2 internal prototype to avoid an error. */
16419 /* We use char because int might match the return type of a gcc2
16420 builtin and then its argument prototype would still apply. */
16422 /* The GNU C library defines this for functions which it implements
16423 to always fail with ENOSYS. Some functions are actually named
16424 something starting with __ and the normal name is an alias. */
16425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16428 char (*f) () = $ac_func;
16437 return f != $ac_func;
16442 rm -f conftest.$ac_objext conftest$ac_exeext
16443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16444 (eval $ac_link) 2>conftest.er1
16446 grep -v '^ *+' conftest.er1 >conftest.err
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try='test -z "$ac_c_werror_flag"
16452 || test ! -s conftest.err'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest$ac_exeext'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 eval "$as_ac_var=yes"
16466 echo "$as_me: failed program was:" >&5
16467 sed 's/^/| /' conftest.$ac_ext >&5
16469 eval "$as_ac_var=no"
16471 rm -f conftest.err conftest.$ac_objext \
16472 conftest$ac_exeext conftest.$ac_ext
16474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16476 if test `eval echo '${'$as_ac_var'}'` = yes; then
16477 cat >>confdefs.h <<_ACEOF
16478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16484 ol_cv_func_strerror_r=no
16485 if test "${ac_cv_func_strerror_r}" = yes ; then
16486 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16487 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16488 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 cat >conftest.$ac_ext <<_ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 #include <string.h>
16500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16501 $EGREP "strerror_r" >/dev/null 2>&1; then
16502 ol_decl_strerror_r=yes
16504 ol_decl_strerror_r=no
16508 if test $ol_decl_strerror_r = yes ; then
16509 cat >conftest.$ac_ext <<_ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16515 #include <string.h>
16519 /* from autoconf 2.59 */
16521 char x = *strerror_r (0, buf, sizeof buf);
16522 char *p = strerror_r (0, buf, sizeof buf);
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530 (eval $ac_compile) 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } &&
16537 { ac_try='test -z "$ac_c_werror_flag"
16538 || test ! -s conftest.err'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; } &&
16544 { ac_try='test -s conftest.$ac_objext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ol_cv_nonposix_strerror_r=yes
16552 echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ol_cv_nonposix_strerror_r=no
16557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16559 if test "$cross_compiling" = yes; then
16560 ol_cv_nonposix_strerror=no
16562 cat >conftest.$ac_ext <<_ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16572 strerror_r( 1, buf, sizeof buf );
16573 exit( buf[0] == 0 );
16577 rm -f conftest$ac_exeext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579 (eval $ac_link) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ol_cv_nonposix_strerror_r=yes
16590 echo "$as_me: program exited with status $ac_status" >&5
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ( exit $ac_status )
16595 ol_cv_nonposix_strerror=no
16597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16602 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16603 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16604 if test $ol_cv_nonposix_strerror_r = yes ; then
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_NONPOSIX_STRERROR_R 1
16612 elif test "${ac_cv_func_strerror}" = no ; then
16613 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16614 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16615 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16627 #include <sys/types.h>
16630 #include <stdlib.h>
16635 char *c = (char *) *sys_errlist
16640 rm -f conftest.$ac_objext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16642 (eval $ac_compile) 2>conftest.er1
16644 grep -v '^ *+' conftest.er1 >conftest.err
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag"
16650 || test ! -s conftest.err'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ol_cv_dcl_sys_errlist=yes
16663 ol_cv_have_sys_errlist=yes
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ol_cv_dcl_sys_errlist=no
16670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16673 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16675 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16676 if test $ol_cv_dcl_sys_errlist = no ; then
16678 cat >>confdefs.h <<\_ACEOF
16679 #define DECL_SYS_ERRLIST 1
16683 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16684 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16685 if test "${ol_cv_have_sys_errlist+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 cat >conftest.$ac_ext <<_ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16699 char *c = (char *) *sys_errlist
16704 rm -f conftest.$ac_objext conftest$ac_exeext
16705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16706 (eval $ac_link) 2>conftest.er1
16708 grep -v '^ *+' conftest.er1 >conftest.err
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -z "$ac_c_werror_flag"
16714 || test ! -s conftest.err'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try='test -s conftest$ac_exeext'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ol_cv_have_sys_errlist=yes
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ol_cv_have_sys_errlist=no
16733 rm -f conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16736 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16737 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16739 if test $ol_cv_have_sys_errlist = yes ; then
16741 cat >>confdefs.h <<\_ACEOF
16742 #define HAVE_SYS_ERRLIST 1
16751 for ac_header in regex.h
16753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16754 echo "$as_me:$LINENO: checking for $ac_header" >&5
16755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16757 echo $ECHO_N "(cached) $ECHO_C" >&6
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16765 $ac_includes_default
16766 #ifdef HAVE_SYS_TYPES_H
16767 #include <sys/types.h>
16771 #include <$ac_header>
16773 rm -f conftest.$ac_objext
16774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16775 (eval $ac_compile) 2>conftest.er1
16777 grep -v '^ *+' conftest.er1 >conftest.err
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -z "$ac_c_werror_flag"
16783 || test ! -s conftest.err'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; } &&
16789 { ac_try='test -s conftest.$ac_objext'
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; }; then
16795 eval "$as_ac_Header=yes"
16797 echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 eval "$as_ac_Header=no"
16802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16807 cat >>confdefs.h <<_ACEOF
16808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16816 if test "$ac_cv_header_regex_h" != yes ; then
16817 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16818 echo "$as_me: error: POSIX regex.h required." >&2;}
16819 { (exit 1); exit 1; }; }
16821 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16822 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16823 if test "${ac_cv_search_regfree+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 ac_func_search_save_LIBS=$LIBS
16827 ac_cv_search_regfree=no
16828 cat >conftest.$ac_ext <<_ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16835 /* Override any gcc2 internal prototype to avoid an error. */
16839 /* We use char because int might match the return type of a gcc2
16840 builtin and then its argument prototype would still apply. */
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16852 (eval $ac_link) 2>conftest.er1
16854 grep -v '^ *+' conftest.er1 >conftest.err
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try='test -z "$ac_c_werror_flag"
16860 || test ! -s conftest.err'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; } &&
16866 { ac_try='test -s conftest$ac_exeext'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_search_regfree="none required"
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16878 rm -f conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880 if test "$ac_cv_search_regfree" = no; then
16881 for ac_lib in regex gnuregex; do
16882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16883 cat >conftest.$ac_ext <<_ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16890 /* Override any gcc2 internal prototype to avoid an error. */
16894 /* We use char because int might match the return type of a gcc2
16895 builtin and then its argument prototype would still apply. */
16905 rm -f conftest.$ac_objext conftest$ac_exeext
16906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16907 (eval $ac_link) 2>conftest.er1
16909 grep -v '^ *+' conftest.er1 >conftest.err
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -z "$ac_c_werror_flag"
16915 || test ! -s conftest.err'
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest$ac_exeext'
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_cv_search_regfree="-l$ac_lib"
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16934 rm -f conftest.err conftest.$ac_objext \
16935 conftest$ac_exeext conftest.$ac_ext
16938 LIBS=$ac_func_search_save_LIBS
16940 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16941 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16942 if test "$ac_cv_search_regfree" != no; then
16943 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16946 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16947 echo "$as_me: error: POSIX regex required." >&2;}
16948 { (exit 1); exit 1; }; }
16953 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16954 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16955 if test "${ol_cv_c_posix_regex+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 if test "$cross_compiling" = yes; then
16960 ol_cv_c_posix_regex=cross
16962 cat >conftest.$ac_ext <<_ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16969 #include <sys/types.h>
16971 static char *pattern, *string;
16979 if(regcomp(&re, pattern, 0)) {
16983 string = "ALL MATCH";
16985 rc = regexec(&re, string, 0, (void*)0, 0);
16992 rm -f conftest$ac_exeext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16994 (eval $ac_link) 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ol_cv_c_posix_regex=yes
17005 echo "$as_me: program exited with status $ac_status" >&5
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ( exit $ac_status )
17010 ol_cv_c_posix_regex=no
17012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17015 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17016 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17018 if test "$ol_cv_c_posix_regex" = no ; then
17019 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17020 echo "$as_me: error: broken POSIX regex!" >&2;}
17021 { (exit 1); exit 1; }; }
17027 for ac_header in sys/uuid.h
17029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17031 echo "$as_me:$LINENO: checking for $ac_header" >&5
17032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17039 # Is the header compilable?
17040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17042 cat >conftest.$ac_ext <<_ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 $ac_includes_default
17049 #include <$ac_header>
17051 rm -f conftest.$ac_objext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053 (eval $ac_compile) 2>conftest.er1
17055 grep -v '^ *+' conftest.er1 >conftest.err
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -z "$ac_c_werror_flag"
17061 || test ! -s conftest.err'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; } &&
17067 { ac_try='test -s conftest.$ac_objext'
17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069 (eval $ac_try) 2>&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; }; then
17073 ac_header_compiler=yes
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 ac_header_compiler=no
17080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17082 echo "${ECHO_T}$ac_header_compiler" >&6
17084 # Is the header present?
17085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17087 cat >conftest.$ac_ext <<_ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 #include <$ac_header>
17095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } >/dev/null; then
17103 if test -s conftest.err; then
17104 ac_cpp_err=$ac_c_preproc_warn_flag
17105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17112 if test -z "$ac_cpp_err"; then
17113 ac_header_preproc=yes
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17118 ac_header_preproc=no
17120 rm -f conftest.err conftest.$ac_ext
17121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17122 echo "${ECHO_T}$ac_header_preproc" >&6
17124 # So? What about this header?
17125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17131 ac_header_preproc=yes
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17148 ## --------------------------------------------- ##
17149 ## Report this to <http://www.openldap.org/its/> ##
17150 ## --------------------------------------------- ##
17153 sed "s/^/$as_me: WARNING: /" >&2
17156 echo "$as_me:$LINENO: checking for $ac_header" >&5
17157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 eval "$as_ac_Header=\$ac_header_preproc"
17163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17168 cat >>confdefs.h <<_ACEOF
17169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17176 if test $ac_cv_header_sys_uuid_h = yes ; then
17178 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17179 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17180 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 ac_func_search_save_LIBS=$LIBS
17184 ac_cv_search_uuid_to_str=no
17185 cat >conftest.$ac_ext <<_ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17192 /* Override any gcc2 internal prototype to avoid an error. */
17196 /* We use char because int might match the return type of a gcc2
17197 builtin and then its argument prototype would still apply. */
17198 char uuid_to_str ();
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try='test -z "$ac_c_werror_flag"
17217 || test ! -s conftest.err'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; } &&
17223 { ac_try='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 ac_cv_search_uuid_to_str="none required"
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17235 rm -f conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237 if test "$ac_cv_search_uuid_to_str" = no; then
17238 for ac_lib in uuid; do
17239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17247 /* Override any gcc2 internal prototype to avoid an error. */
17251 /* We use char because int might match the return type of a gcc2
17252 builtin and then its argument prototype would still apply. */
17253 char uuid_to_str ();
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17264 (eval $ac_link) 2>conftest.er1
17266 grep -v '^ *+' conftest.er1 >conftest.err
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try='test -z "$ac_c_werror_flag"
17272 || test ! -s conftest.err'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 ac_cv_search_uuid_to_str="-l$ac_lib"
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17291 rm -f conftest.err conftest.$ac_objext \
17292 conftest$ac_exeext conftest.$ac_ext
17295 LIBS=$ac_func_search_save_LIBS
17297 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17298 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17299 if test "$ac_cv_search_uuid_to_str" != no; then
17300 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17308 if test have_uuid = yes ; then
17310 cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_UUID_TO_STR 1
17315 test "$ac_cv_search_uuid_to_str" = "none required" || \
17316 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17320 if test $have_uuid = no ; then
17321 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17322 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17324 LIBS="$LIBS -lrpcrt4"
17325 cat >conftest.$ac_ext <<_ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h. */
17332 int __stdcall UuidCreate(void *);
17333 int __stdcall UuidToStringA(void *,void **);
17340 UuidToStringA(0,0);
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17348 (eval $ac_link) 2>conftest.er1
17350 grep -v '^ *+' conftest.er1 >conftest.err
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag"
17356 || test ! -s conftest.err'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17375 rm -f conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
17377 if test $need_rpcrt = yes; then
17378 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17381 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17382 echo "${ECHO_T}$need_rpcrt" >&6
17385 ol_cv_lib_resolver=no
17386 if test $ol_cv_lib_resolver = no ; then
17387 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17388 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17389 if test "${ol_cv_resolver_none+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 LIBS="$ol_RESOLVER_LIB $LIBS"
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17404 #ifdef HAVE_SYS_TYPES_H
17405 # include <sys/types.h>
17407 #include <netinet/in.h>
17408 #ifdef HAVE_ARPA_NAMESER_H
17409 # include <arpa/nameser.h>
17411 #ifdef HAVE_RESOLV_H
17412 # include <resolv.h>
17420 char *request = NULL;
17421 unsigned char reply[64*1024];
17422 unsigned char host[64*1024];
17426 /* Bind 8/9 interface */
17427 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17429 /* Bind 4 interface */
17433 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17437 /* Bind 8/9 interface */
17439 #elif defined(HFIXEDSZ)
17440 /* Bind 4 interface w/ HFIXEDSZ */
17443 /* Bind 4 interface w/o HFIXEDSZ */
17444 p += sizeof(HEADER);
17446 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17452 rm -f conftest.$ac_objext conftest$ac_exeext
17453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17454 (eval $ac_link) 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } &&
17461 { ac_try='test -z "$ac_c_werror_flag"
17462 || test ! -s conftest.err'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest$ac_exeext'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ol_cv_resolver_none=yes
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ol_cv_resolver_none=no
17481 rm -f conftest.err conftest.$ac_objext \
17482 conftest$ac_exeext conftest.$ac_ext
17487 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17488 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17490 if test $ol_cv_resolver_none = yes ; then
17491 ol_cv_lib_resolver=yes
17495 if test $ol_cv_lib_resolver = no ; then
17496 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17497 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17498 if test "${ol_cv_resolver_resolv+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 ol_RESOLVER_LIB=-lresolv
17504 LIBS="$ol_RESOLVER_LIB $LIBS"
17506 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17513 #ifdef HAVE_SYS_TYPES_H
17514 # include <sys/types.h>
17516 #include <netinet/in.h>
17517 #ifdef HAVE_ARPA_NAMESER_H
17518 # include <arpa/nameser.h>
17520 #ifdef HAVE_RESOLV_H
17521 # include <resolv.h>
17529 char *request = NULL;
17530 unsigned char reply[64*1024];
17531 unsigned char host[64*1024];
17535 /* Bind 8/9 interface */
17536 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17538 /* Bind 4 interface */
17542 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17546 /* Bind 8/9 interface */
17548 #elif defined(HFIXEDSZ)
17549 /* Bind 4 interface w/ HFIXEDSZ */
17552 /* Bind 4 interface w/o HFIXEDSZ */
17553 p += sizeof(HEADER);
17555 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17563 (eval $ac_link) 2>conftest.er1
17565 grep -v '^ *+' conftest.er1 >conftest.err
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
17570 { ac_try='test -z "$ac_c_werror_flag"
17571 || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ol_cv_resolver_resolv=yes
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 ol_cv_resolver_resolv=no
17590 rm -f conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
17596 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17597 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17599 if test $ol_cv_resolver_resolv = yes ; then
17600 ol_cv_lib_resolver=-lresolv
17604 if test $ol_cv_lib_resolver = no ; then
17605 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17606 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17607 if test "${ol_cv_resolver_bind+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17611 ol_RESOLVER_LIB=-lbind
17613 LIBS="$ol_RESOLVER_LIB $LIBS"
17615 cat >conftest.$ac_ext <<_ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17622 #ifdef HAVE_SYS_TYPES_H
17623 # include <sys/types.h>
17625 #include <netinet/in.h>
17626 #ifdef HAVE_ARPA_NAMESER_H
17627 # include <arpa/nameser.h>
17629 #ifdef HAVE_RESOLV_H
17630 # include <resolv.h>
17638 char *request = NULL;
17639 unsigned char reply[64*1024];
17640 unsigned char host[64*1024];
17644 /* Bind 8/9 interface */
17645 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17647 /* Bind 4 interface */
17651 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17655 /* Bind 8/9 interface */
17657 #elif defined(HFIXEDSZ)
17658 /* Bind 4 interface w/ HFIXEDSZ */
17661 /* Bind 4 interface w/o HFIXEDSZ */
17662 p += sizeof(HEADER);
17664 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17672 (eval $ac_link) 2>conftest.er1
17674 grep -v '^ *+' conftest.er1 >conftest.err
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } &&
17679 { ac_try='test -z "$ac_c_werror_flag"
17680 || test ! -s conftest.err'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest$ac_exeext'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 ol_cv_resolver_bind=yes
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ol_cv_resolver_bind=no
17699 rm -f conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
17705 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17706 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17708 if test $ol_cv_resolver_bind = yes ; then
17709 ol_cv_lib_resolver=-lbind
17716 if test "$ol_cv_lib_resolver" != no ; then
17718 cat >>confdefs.h <<\_ACEOF
17719 #define HAVE_RES_QUERY 1
17723 if test "$ol_enable_dnssrv" != no ; then
17727 if test "$ol_cv_lib_resolver" != yes ; then
17728 LIBS="$ol_cv_lib_resolver $LIBS"
17732 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17733 if test "$ol_link_dnssrv" = no ; then
17734 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17735 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17736 { (exit 1); exit 1; }; }
17739 ol_enable_dnssrv=no
17743 for ac_func in hstrerror
17745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17746 echo "$as_me:$LINENO: checking for $ac_func" >&5
17747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17748 if eval "test \"\${$as_ac_var+set}\" = set"; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 cat >conftest.$ac_ext <<_ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17759 #define $ac_func innocuous_$ac_func
17761 /* System header to define __stub macros and hopefully few prototypes,
17762 which can conflict with char $ac_func (); below.
17763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17764 <limits.h> exists even on freestanding compilers. */
17767 # include <limits.h>
17769 # include <assert.h>
17774 /* Override any gcc2 internal prototype to avoid an error. */
17779 /* We use char because int might match the return type of a gcc2
17780 builtin and then its argument prototype would still apply. */
17782 /* The GNU C library defines this for functions which it implements
17783 to always fail with ENOSYS. Some functions are actually named
17784 something starting with __ and the normal name is an alias. */
17785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17788 char (*f) () = $ac_func;
17797 return f != $ac_func;
17802 rm -f conftest.$ac_objext conftest$ac_exeext
17803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17804 (eval $ac_link) 2>conftest.er1
17806 grep -v '^ *+' conftest.er1 >conftest.err
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag"
17812 || test ! -s conftest.err'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } &&
17818 { ac_try='test -s conftest$ac_exeext'
17819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820 (eval $ac_try) 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 eval "$as_ac_var=yes"
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 eval "$as_ac_var=no"
17831 rm -f conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17836 if test `eval echo '${'$as_ac_var'}'` = yes; then
17837 cat >>confdefs.h <<_ACEOF
17838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17849 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17852 echo "$as_me:$LINENO: checking for $ac_func" >&5
17853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17854 if eval "test \"\${$as_ac_var+set}\" = set"; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 cat >conftest.$ac_ext <<_ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17865 #define $ac_func innocuous_$ac_func
17867 /* System header to define __stub macros and hopefully few prototypes,
17868 which can conflict with char $ac_func (); below.
17869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17870 <limits.h> exists even on freestanding compilers. */
17873 # include <limits.h>
17875 # include <assert.h>
17880 /* Override any gcc2 internal prototype to avoid an error. */
17885 /* We use char because int might match the return type of a gcc2
17886 builtin and then its argument prototype would still apply. */
17888 /* The GNU C library defines this for functions which it implements
17889 to always fail with ENOSYS. Some functions are actually named
17890 something starting with __ and the normal name is an alias. */
17891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17894 char (*f) () = $ac_func;
17903 return f != $ac_func;
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>conftest.er1
17912 grep -v '^ *+' conftest.er1 >conftest.err
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest$ac_exeext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 eval "$as_ac_var=yes"
17932 echo "$as_me: failed program was:" >&5
17933 sed 's/^/| /' conftest.$ac_ext >&5
17935 eval "$as_ac_var=no"
17937 rm -f conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17942 if test `eval echo '${'$as_ac_var'}'` = yes; then
17943 cat >>confdefs.h <<_ACEOF
17944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17952 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17953 if test $ol_enable_ipv6 = yes ; then
17954 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17955 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17956 { (exit 1); exit 1; }; }
17958 elif test $ol_enable_ipv6 != no ; then
17959 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17960 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17961 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17972 # include <netinet/in.h>
17973 # ifdef INET6_ADDRSTRLEN
17974 __has_inet6_addrstrlen__;
17978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17979 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17980 ol_cv_inet6_addrstrlen=yes
17982 ol_cv_inet6_addrstrlen=no
17987 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17988 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17991 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17992 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17993 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 cat >conftest.$ac_ext <<_ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18004 #include <sys/types.h>
18005 #include <sys/socket.h>
18011 struct sockaddr_storage ss;
18017 rm -f conftest.$ac_objext
18018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18019 (eval $ac_compile) 2>conftest.er1
18021 grep -v '^ *+' conftest.er1 >conftest.err
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } &&
18026 { ac_try='test -z "$ac_c_werror_flag"
18027 || test ! -s conftest.err'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ol_cv_struct_sockaddr_storage=yes
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 ol_cv_struct_sockaddr_storage=no
18046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18048 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18049 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18051 if test $ol_cv_inet6_addrstrlen = yes &&
18052 test $ol_cv_struct_sockaddr_storage = yes ; then
18054 elif test $ol_enable_ipv6 = yes &&
18055 test $ol_cv_inet6_addrstrlen = no ; then
18056 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18057 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18058 { (exit 1); exit 1; }; }
18059 elif test $ol_enable_ipv6 = yes &&
18060 test $ol_cv_struct_sockaddr_storage = no ; then
18061 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18062 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18063 { (exit 1); exit 1; }; }
18067 if test $ol_enable_local != no ; then
18069 for ac_header in sys/un.h
18071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18073 echo "$as_me:$LINENO: checking for $ac_header" >&5
18074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18081 # Is the header compilable?
18082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 $ac_includes_default
18091 #include <$ac_header>
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18095 (eval $ac_compile) 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -z "$ac_c_werror_flag"
18103 || test ! -s conftest.err'
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try='test -s conftest.$ac_objext'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 ac_header_compiler=yes
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18120 ac_header_compiler=no
18122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18124 echo "${ECHO_T}$ac_header_compiler" >&6
18126 # Is the header present?
18127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 #include <$ac_header>
18137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18140 grep -v '^ *+' conftest.er1 >conftest.err
18142 cat conftest.err >&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } >/dev/null; then
18145 if test -s conftest.err; then
18146 ac_cpp_err=$ac_c_preproc_warn_flag
18147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18154 if test -z "$ac_cpp_err"; then
18155 ac_header_preproc=yes
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_header_preproc=no
18162 rm -f conftest.err conftest.$ac_ext
18163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18164 echo "${ECHO_T}$ac_header_preproc" >&6
18166 # So? What about this header?
18167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18173 ac_header_preproc=yes
18176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18190 ## --------------------------------------------- ##
18191 ## Report this to <http://www.openldap.org/its/> ##
18192 ## --------------------------------------------- ##
18195 sed "s/^/$as_me: WARNING: /" >&2
18198 echo "$as_me:$LINENO: checking for $ac_header" >&5
18199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18201 echo $ECHO_N "(cached) $ECHO_C" >&6
18203 eval "$as_ac_Header=\$ac_header_preproc"
18205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18210 cat >>confdefs.h <<_ACEOF
18211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18219 if test $ol_enable_local = auto ; then
18220 ol_enable_local=$ac_cv_header_sys_un_h
18221 elif test $ac_cv_header_sys_un_h = no ; then
18222 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18223 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18224 { (exit 1); exit 1; }; }
18232 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18235 for ac_header in krb5.h
18237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18239 echo "$as_me:$LINENO: checking for $ac_header" >&5
18240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18247 # Is the header compilable?
18248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 $ac_includes_default
18257 #include <$ac_header>
18259 rm -f conftest.$ac_objext
18260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18261 (eval $ac_compile) 2>conftest.er1
18263 grep -v '^ *+' conftest.er1 >conftest.err
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } &&
18268 { ac_try='test -z "$ac_c_werror_flag"
18269 || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest.$ac_objext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_header_compiler=yes
18283 echo "$as_me: failed program was:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_header_compiler=no
18288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18290 echo "${ECHO_T}$ac_header_compiler" >&6
18292 # Is the header present?
18293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18295 cat >conftest.$ac_ext <<_ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301 #include <$ac_header>
18303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18306 grep -v '^ *+' conftest.er1 >conftest.err
18308 cat conftest.err >&5
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); } >/dev/null; then
18311 if test -s conftest.err; then
18312 ac_cpp_err=$ac_c_preproc_warn_flag
18313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18320 if test -z "$ac_cpp_err"; then
18321 ac_header_preproc=yes
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_header_preproc=no
18328 rm -f conftest.err conftest.$ac_ext
18329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18330 echo "${ECHO_T}$ac_header_preproc" >&6
18332 # So? What about this header?
18333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18339 ac_header_preproc=yes
18342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18356 ## --------------------------------------------- ##
18357 ## Report this to <http://www.openldap.org/its/> ##
18358 ## --------------------------------------------- ##
18361 sed "s/^/$as_me: WARNING: /" >&2
18364 echo "$as_me:$LINENO: checking for $ac_header" >&5
18365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 eval "$as_ac_Header=\$ac_header_preproc"
18371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18376 cat >>confdefs.h <<_ACEOF
18377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18385 if test $ac_cv_header_krb5_h = yes ; then
18387 for ac_header in heim_err.h
18389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18391 echo "$as_me:$LINENO: checking for $ac_header" >&5
18392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18399 # Is the header compilable?
18400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18402 cat >conftest.$ac_ext <<_ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 $ac_includes_default
18409 #include <$ac_header>
18411 rm -f conftest.$ac_objext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18413 (eval $ac_compile) 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag"
18421 || test ! -s conftest.err'
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; } &&
18427 { ac_try='test -s conftest.$ac_objext'
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; }; then
18433 ac_header_compiler=yes
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 ac_header_compiler=no
18440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18442 echo "${ECHO_T}$ac_header_compiler" >&6
18444 # Is the header present?
18445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 #include <$ac_header>
18455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } >/dev/null; then
18463 if test -s conftest.err; then
18464 ac_cpp_err=$ac_c_preproc_warn_flag
18465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18472 if test -z "$ac_cpp_err"; then
18473 ac_header_preproc=yes
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ac_header_preproc=no
18480 rm -f conftest.err conftest.$ac_ext
18481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18482 echo "${ECHO_T}$ac_header_preproc" >&6
18484 # So? What about this header?
18485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18491 ac_header_preproc=yes
18494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18508 ## --------------------------------------------- ##
18509 ## Report this to <http://www.openldap.org/its/> ##
18510 ## --------------------------------------------- ##
18513 sed "s/^/$as_me: WARNING: /" >&2
18516 echo "$as_me:$LINENO: checking for $ac_header" >&5
18517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 eval "$as_ac_Header=\$ac_header_preproc"
18523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18528 cat >>confdefs.h <<_ACEOF
18529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18536 if test $ac_cv_header_heim_err_h = yes ; then
18542 if test $krb5_impl = mit; then
18543 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18544 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18545 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 ac_check_lib_save_LIBS=$LIBS
18549 LIBS="-lk5crypto $LIBS"
18550 cat >conftest.$ac_ext <<_ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18566 rm -f conftest.$ac_objext conftest$ac_exeext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18568 (eval $ac_link) 2>conftest.er1
18570 grep -v '^ *+' conftest.er1 >conftest.err
18572 cat conftest.err >&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); } &&
18575 { ac_try='test -z "$ac_c_werror_flag"
18576 || test ! -s conftest.err'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest$ac_exeext'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 ac_cv_lib_k5crypto_main=yes
18590 echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 ac_cv_lib_k5crypto_main=no
18595 rm -f conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18597 LIBS=$ac_check_lib_save_LIBS
18599 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18600 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18601 if test $ac_cv_lib_k5crypto_main = yes; then
18602 krb5crypto=k5crypto
18608 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18609 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18610 if test "${ac_cv_lib_krb5_main+set}" = set; then
18611 echo $ECHO_N "(cached) $ECHO_C" >&6
18613 ac_check_lib_save_LIBS=$LIBS
18614 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18615 cat >conftest.$ac_ext <<_ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h. */
18631 rm -f conftest.$ac_objext conftest$ac_exeext
18632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18633 (eval $ac_link) 2>conftest.er1
18635 grep -v '^ *+' conftest.er1 >conftest.err
18637 cat conftest.err >&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); } &&
18640 { ac_try='test -z "$ac_c_werror_flag"
18641 || test ! -s conftest.err'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; } &&
18647 { ac_try='test -s conftest$ac_exeext'
18648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; }; then
18653 ac_cv_lib_krb5_main=yes
18655 echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18658 ac_cv_lib_krb5_main=no
18660 rm -f conftest.err conftest.$ac_objext \
18661 conftest$ac_exeext conftest.$ac_ext
18662 LIBS=$ac_check_lib_save_LIBS
18664 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18665 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18666 if test $ac_cv_lib_krb5_main = yes; then
18668 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18674 elif test $krb5_impl = heimdal; then
18675 echo "$as_me:$LINENO: checking for main in -ldes" >&5
18676 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18677 if test "${ac_cv_lib_des_main+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 ac_check_lib_save_LIBS=$LIBS
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18698 rm -f conftest.$ac_objext conftest$ac_exeext
18699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700 (eval $ac_link) 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } &&
18707 { ac_try='test -z "$ac_c_werror_flag"
18708 || test ! -s conftest.err'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; } &&
18714 { ac_try='test -s conftest$ac_exeext'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 ac_cv_lib_des_main=yes
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 ac_cv_lib_des_main=no
18727 rm -f conftest.err conftest.$ac_objext \
18728 conftest$ac_exeext conftest.$ac_ext
18729 LIBS=$ac_check_lib_save_LIBS
18731 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18732 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18733 if test $ac_cv_lib_des_main = yes; then
18740 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18741 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18742 if test "${ac_cv_lib_krb5_main+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 ac_check_lib_save_LIBS=$LIBS
18746 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18747 cat >conftest.$ac_ext <<_ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18765 (eval $ac_link) 2>conftest.er1
18767 grep -v '^ *+' conftest.er1 >conftest.err
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag"
18773 || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest$ac_exeext'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; }; then
18785 ac_cv_lib_krb5_main=yes
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_cv_lib_krb5_main=no
18792 rm -f conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
18794 LIBS=$ac_check_lib_save_LIBS
18796 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18797 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18798 if test $ac_cv_lib_krb5_main = yes; then
18800 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18807 cat >>confdefs.h <<\_ACEOF
18808 #define HAVE_HEIMDAL_KERBEROS 1
18814 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18815 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18818 if test $have_krb5 = yes ; then
18822 cat >>confdefs.h <<\_ACEOF
18823 #define HAVE_KRB5 1
18827 if test $ol_with_kerberos = k5only ; then
18828 ol_with_kerberos=found
18831 elif test $ol_with_kerberos != auto ; then
18832 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18833 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18834 { (exit 1); exit 1; }; }
18841 if test $ol_link_krb5 = yes &&
18842 { test $ol_with_kerberos = yes ||
18843 test $ol_with_kerberos = auto ||
18844 test $ol_with_kerberos = k425; }; then
18848 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18852 echo "$as_me:$LINENO: checking for $ac_header" >&5
18853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18860 # Is the header compilable?
18861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18863 cat >conftest.$ac_ext <<_ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18869 $ac_includes_default
18870 #include <$ac_header>
18872 rm -f conftest.$ac_objext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18874 (eval $ac_compile) 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_c_werror_flag"
18882 || test ! -s conftest.err'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest.$ac_objext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_header_compiler=yes
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 ac_header_compiler=no
18901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18903 echo "${ECHO_T}$ac_header_compiler" >&6
18905 # Is the header present?
18906 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18908 cat >conftest.$ac_ext <<_ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 #include <$ac_header>
18916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } >/dev/null; then
18924 if test -s conftest.err; then
18925 ac_cpp_err=$ac_c_preproc_warn_flag
18926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18933 if test -z "$ac_cpp_err"; then
18934 ac_header_preproc=yes
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_header_preproc=no
18941 rm -f conftest.err conftest.$ac_ext
18942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18943 echo "${ECHO_T}$ac_header_preproc" >&6
18945 # So? What about this header?
18946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18952 ac_header_preproc=yes
18955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18969 ## --------------------------------------------- ##
18970 ## Report this to <http://www.openldap.org/its/> ##
18971 ## --------------------------------------------- ##
18974 sed "s/^/$as_me: WARNING: /" >&2
18977 echo "$as_me:$LINENO: checking for $ac_header" >&5
18978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 eval "$as_ac_Header=\$ac_header_preproc"
18984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18989 cat >>confdefs.h <<_ACEOF
18990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18998 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18999 if test $krb5_impl = mit; then
19000 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19001 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19002 if test "${ac_cv_lib_krb4_main+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 ac_check_lib_save_LIBS=$LIBS
19006 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
19007 cat >conftest.$ac_ext <<_ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h. */
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19025 (eval $ac_link) 2>conftest.er1
19027 grep -v '^ *+' conftest.er1 >conftest.err
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } &&
19032 { ac_try='test -z "$ac_c_werror_flag"
19033 || test ! -s conftest.err'
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest$ac_exeext'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045 ac_cv_lib_krb4_main=yes
19047 echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19050 ac_cv_lib_krb4_main=no
19052 rm -f conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19054 LIBS=$ac_check_lib_save_LIBS
19056 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19057 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19058 if test $ac_cv_lib_krb4_main = yes; then
19060 KRB4_LIBS="-lkrb4 -ldes425"
19066 elif test $krb5_impl = heimdal; then
19067 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19068 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19069 if test "${ac_cv_lib_krb4_main+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 ac_check_lib_save_LIBS=$LIBS
19073 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
19074 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19090 rm -f conftest.$ac_objext conftest$ac_exeext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19092 (eval $ac_link) 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag"
19100 || test ! -s conftest.err'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_cv_lib_krb4_main=yes
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ac_cv_lib_krb4_main=no
19119 rm -f conftest.err conftest.$ac_objext \
19120 conftest$ac_exeext conftest.$ac_ext
19121 LIBS=$ac_check_lib_save_LIBS
19123 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19124 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19125 if test $ac_cv_lib_krb4_main = yes; then
19135 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
19136 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
19139 if test $have_k425 = yes ; then
19140 ol_with_kerberos=found
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE_KRB425 1
19149 cat >>confdefs.h <<\_ACEOF
19150 #define HAVE_KRB4 1
19154 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19155 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19156 if test "${ol_cv_var_des_debug+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19162 cat >conftest.$ac_ext <<_ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19169 #include <kerberosIV/krb.h>
19170 #include <kerberosIV/des.h>
19171 extern int des_debug;
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185 (eval $ac_link) 2>conftest.er1
19187 grep -v '^ *+' conftest.er1 >conftest.err
19189 cat conftest.err >&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } &&
19192 { ac_try='test -z "$ac_c_werror_flag"
19193 || test ! -s conftest.err'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest$ac_exeext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ol_cv_var_des_debug=yes
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 ol_cv_var_des_debug=no
19212 rm -f conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19217 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19218 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19220 if test $ol_cv_var_des_debug = yes ; then
19222 cat >>confdefs.h <<\_ACEOF
19223 #define HAVE_DES_DEBUG 1
19233 if test $ol_link_krb5 = yes ; then
19234 ol_with_kerberos=found
19237 case $ol_with_kerberos in yes | auto | k4 | kth)
19242 for ac_header in krb.h des.h krb-archaeology.h
19244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19246 echo "$as_me:$LINENO: checking for $ac_header" >&5
19247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19254 # Is the header compilable?
19255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 $ac_includes_default
19264 #include <$ac_header>
19266 rm -f conftest.$ac_objext
19267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19268 (eval $ac_compile) 2>conftest.er1
19270 grep -v '^ *+' conftest.er1 >conftest.err
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
19275 { ac_try='test -z "$ac_c_werror_flag"
19276 || test ! -s conftest.err'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try='test -s conftest.$ac_objext'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_header_compiler=yes
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_header_compiler=no
19295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19297 echo "${ECHO_T}$ac_header_compiler" >&6
19299 # Is the header present?
19300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 #include <$ac_header>
19310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19313 grep -v '^ *+' conftest.er1 >conftest.err
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } >/dev/null; then
19318 if test -s conftest.err; then
19319 ac_cpp_err=$ac_c_preproc_warn_flag
19320 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19327 if test -z "$ac_cpp_err"; then
19328 ac_header_preproc=yes
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ac_header_preproc=no
19335 rm -f conftest.err conftest.$ac_ext
19336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19337 echo "${ECHO_T}$ac_header_preproc" >&6
19339 # So? What about this header?
19340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19346 ac_header_preproc=yes
19349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19363 ## --------------------------------------------- ##
19364 ## Report this to <http://www.openldap.org/its/> ##
19365 ## --------------------------------------------- ##
19368 sed "s/^/$as_me: WARNING: /" >&2
19371 echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 eval "$as_ac_Header=\$ac_header_preproc"
19378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19383 cat >>confdefs.h <<_ACEOF
19384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19392 if test $ac_cv_header_krb_h = yes ; then
19393 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19394 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19395 if test "${ac_cv_lib_krb_main+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19398 ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-lkrb -ldes $LIBS"
19400 cat >conftest.$ac_ext <<_ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>conftest.er1
19420 grep -v '^ *+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_lib_krb_main=yes
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_lib_krb_main=no
19445 rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19447 LIBS=$ac_check_lib_save_LIBS
19449 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19450 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19451 if test $ac_cv_lib_krb_main = yes; then
19458 if test $have_k4 = yes ; then
19459 ol_with_kerberos=found
19463 cat >>confdefs.h <<\_ACEOF
19464 #define HAVE_KRB4 1
19468 KRB4_LIBS="-lkrb -ldes"
19470 if test $ac_cv_header_krb_archaeology_h = yes ; then
19472 cat >>confdefs.h <<\_ACEOF
19473 #define HAVE_KTH_KERBEROS 1
19482 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19485 elif test $ol_enable_kbind = yes ; then
19486 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19487 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19488 { (exit 1); exit 1; }; }
19491 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_KERBEROS 1
19498 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19499 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19500 echo "$as_me: error: Kerberos detection failed" >&2;}
19501 { (exit 1); exit 1; }; }
19505 if test $ol_with_tls = yes ; then
19510 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19512 for ac_header in openssl/ssl.h
19514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19516 echo "$as_me:$LINENO: checking for $ac_header" >&5
19517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19524 # Is the header compilable?
19525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 $ac_includes_default
19534 #include <$ac_header>
19536 rm -f conftest.$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538 (eval $ac_compile) 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try='test -z "$ac_c_werror_flag"
19546 || test ! -s conftest.err'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try='test -s conftest.$ac_objext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_header_compiler=yes
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_header_compiler=no
19565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19567 echo "${ECHO_T}$ac_header_compiler" >&6
19569 # Is the header present?
19570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 #include <$ac_header>
19580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19583 grep -v '^ *+' conftest.er1 >conftest.err
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } >/dev/null; then
19588 if test -s conftest.err; then
19589 ac_cpp_err=$ac_c_preproc_warn_flag
19590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19597 if test -z "$ac_cpp_err"; then
19598 ac_header_preproc=yes
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_header_preproc=no
19605 rm -f conftest.err conftest.$ac_ext
19606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19607 echo "${ECHO_T}$ac_header_preproc" >&6
19609 # So? What about this header?
19610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19616 ac_header_preproc=yes
19619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19633 ## --------------------------------------------- ##
19634 ## Report this to <http://www.openldap.org/its/> ##
19635 ## --------------------------------------------- ##
19638 sed "s/^/$as_me: WARNING: /" >&2
19641 echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 eval "$as_ac_Header=\$ac_header_preproc"
19648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19662 if test $ac_cv_header_openssl_ssl_h = yes ; then
19663 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19664 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19665 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 ac_check_lib_save_LIBS=$LIBS
19669 LIBS="-lssl -lcrypto $LIBS"
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19677 /* Override any gcc2 internal prototype to avoid an error. */
19681 /* We use char because int might match the return type of a gcc2
19682 builtin and then its argument prototype would still apply. */
19683 char SSL_library_init ();
19687 SSL_library_init ();
19692 rm -f conftest.$ac_objext conftest$ac_exeext
19693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19694 (eval $ac_link) 2>conftest.er1
19696 grep -v '^ *+' conftest.er1 >conftest.err
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -z "$ac_c_werror_flag"
19702 || test ! -s conftest.err'
19703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19704 (eval $ac_try) 2>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; } &&
19708 { ac_try='test -s conftest$ac_exeext'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 ac_cv_lib_ssl_SSL_library_init=yes
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19719 ac_cv_lib_ssl_SSL_library_init=no
19721 rm -f conftest.err conftest.$ac_objext \
19722 conftest$ac_exeext conftest.$ac_ext
19723 LIBS=$ac_check_lib_save_LIBS
19725 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19726 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19727 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19735 if test $have_openssl = no ; then
19736 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19737 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19738 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19750 /* Override any gcc2 internal prototype to avoid an error. */
19754 /* We use char because int might match the return type of a gcc2
19755 builtin and then its argument prototype would still apply. */
19756 char ssl3_accept ();
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19767 (eval $ac_link) 2>conftest.er1
19769 grep -v '^ *+' conftest.er1 >conftest.err
19771 cat conftest.err >&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
19774 { ac_try='test -z "$ac_c_werror_flag"
19775 || test ! -s conftest.err'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; } &&
19781 { ac_try='test -s conftest$ac_exeext'
19782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19783 (eval $ac_try) 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_cv_lib_ssl_ssl3_accept=yes
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_lib_ssl_ssl3_accept=no
19794 rm -f conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19798 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19799 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19800 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19809 if test $have_openssl = yes ; then
19810 ol_with_tls=openssl
19814 cat >>confdefs.h <<\_ACEOF
19815 #define HAVE_OPENSSL 1
19819 if test $need_rsaref = yes; then
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_RSAREF 1
19826 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19828 TLS_LIBS="-lssl -lcrypto"
19831 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19832 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19833 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 cat >conftest.$ac_ext <<_ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19844 #ifdef HAVE_OPENSSL_SSL_H
19845 #include <openssl/ssl.h>
19848 /* Require 0.9.7d+ */
19849 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19850 char *__ssl_compat = "0.9.7d";
19854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19855 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19856 ol_cv_ssl_crl_compat=yes
19858 ol_cv_ssl_crl_compat=no
19863 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19864 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19866 if test $ol_cv_ssl_crl_compat = yes ; then
19868 cat >>confdefs.h <<\_ACEOF
19869 #define HAVE_OPENSSL_CRL 1
19878 if test $ol_link_tls = yes ; then
19880 cat >>confdefs.h <<\_ACEOF
19885 elif test $ol_with_tls = auto ; then
19886 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19887 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19889 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19890 elif test $ol_with_tls != no ; then
19891 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19892 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19893 { (exit 1); exit 1; }; }
19895 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19896 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19899 if test $ol_enable_lmpasswd != no; then
19900 if test $ol_link_tls != yes ; then
19901 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19902 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19903 { (exit 1); exit 1; }; }
19907 cat >>confdefs.h <<\_ACEOF
19908 #define SLAPD_LMHASH 1
19915 case $ol_with_threads in auto | yes | nt)
19918 echo "$as_me:$LINENO: checking for _beginthread" >&5
19919 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19920 if test "${ac_cv_func__beginthread+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 cat >conftest.$ac_ext <<_ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19929 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19931 #define _beginthread innocuous__beginthread
19933 /* System header to define __stub macros and hopefully few prototypes,
19934 which can conflict with char _beginthread (); below.
19935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19936 <limits.h> exists even on freestanding compilers. */
19939 # include <limits.h>
19941 # include <assert.h>
19944 #undef _beginthread
19946 /* Override any gcc2 internal prototype to avoid an error. */
19951 /* We use char because int might match the return type of a gcc2
19952 builtin and then its argument prototype would still apply. */
19953 char _beginthread ();
19954 /* The GNU C library defines this for functions which it implements
19955 to always fail with ENOSYS. Some functions are actually named
19956 something starting with __ and the normal name is an alias. */
19957 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19960 char (*f) () = _beginthread;
19969 return f != _beginthread;
19974 rm -f conftest.$ac_objext conftest$ac_exeext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19976 (eval $ac_link) 2>conftest.er1
19978 grep -v '^ *+' conftest.er1 >conftest.err
19980 cat conftest.err >&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); } &&
19983 { ac_try='test -z "$ac_c_werror_flag"
19984 || test ! -s conftest.err'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest$ac_exeext'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; }; then
19996 ac_cv_func__beginthread=yes
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_cv_func__beginthread=no
20003 rm -f conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
20006 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20007 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
20010 if test $ac_cv_func__beginthread = yes ; then
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_NT_THREADS 1
20016 ol_cv_nt_threads=yes
20020 if test "$ol_cv_nt_threads" = yes ; then
20022 ol_with_threads=found
20023 ol_with_yielding_select=yes
20026 cat >>confdefs.h <<\_ACEOF
20027 #define HAVE_NT_SERVICE_MANAGER 1
20031 cat >>confdefs.h <<\_ACEOF
20032 #define HAVE_NT_EVENT_LOG 1
20037 if test $ol_with_threads = nt ; then
20038 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20039 echo "$as_me: error: could not locate NT Threads" >&2;}
20040 { (exit 1); exit 1; }; }
20045 case $ol_with_threads in auto | yes | posix)
20048 for ac_header in pthread.h
20050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20052 echo "$as_me:$LINENO: checking for $ac_header" >&5
20053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20060 # Is the header compilable?
20061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20063 cat >conftest.$ac_ext <<_ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20069 $ac_includes_default
20070 #include <$ac_header>
20072 rm -f conftest.$ac_objext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074 (eval $ac_compile) 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } &&
20081 { ac_try='test -z "$ac_c_werror_flag"
20082 || test ! -s conftest.err'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; } &&
20088 { ac_try='test -s conftest.$ac_objext'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094 ac_header_compiler=yes
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20099 ac_header_compiler=no
20101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20103 echo "${ECHO_T}$ac_header_compiler" >&6
20105 # Is the header present?
20106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20108 cat >conftest.$ac_ext <<_ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 #include <$ac_header>
20116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20119 grep -v '^ *+' conftest.er1 >conftest.err
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } >/dev/null; then
20124 if test -s conftest.err; then
20125 ac_cpp_err=$ac_c_preproc_warn_flag
20126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20133 if test -z "$ac_cpp_err"; then
20134 ac_header_preproc=yes
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 ac_header_preproc=no
20141 rm -f conftest.err conftest.$ac_ext
20142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20143 echo "${ECHO_T}$ac_header_preproc" >&6
20145 # So? What about this header?
20146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20152 ac_header_preproc=yes
20155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20169 ## --------------------------------------------- ##
20170 ## Report this to <http://www.openldap.org/its/> ##
20171 ## --------------------------------------------- ##
20174 sed "s/^/$as_me: WARNING: /" >&2
20177 echo "$as_me:$LINENO: checking for $ac_header" >&5
20178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20182 eval "$as_ac_Header=\$ac_header_preproc"
20184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20189 cat >>confdefs.h <<_ACEOF
20190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20198 if test $ac_cv_header_pthread_h = yes ; then
20199 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20200 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20201 if test "${ol_cv_pthread_version+set}" = set; then
20202 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 cat >conftest.$ac_ext <<_ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20212 # include <pthread.h>
20218 int i = PTHREAD_CREATE_JOINABLE;
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>conftest.er1
20228 grep -v '^ *+' conftest.er1 >conftest.err
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20247 cat >conftest.$ac_ext <<_ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 #include <pthread.h>
20256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20257 $EGREP "pthread_detach" >/dev/null 2>&1; then
20258 ol_cv_pthread_version=10
20260 ol_cv_pthread_version=8
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20276 # include <pthread.h>
20277 # ifdef PTHREAD_CREATE_UNDETACHED
20282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20283 $EGREP "draft7" >/dev/null 2>&1; then
20284 ol_cv_pthread_version=7
20287 cat >conftest.$ac_ext <<_ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 #include <pthread.h>
20296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20297 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20298 ol_cv_pthread_version=6
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20308 # include <pthread.h>
20309 #ifdef PTHREAD_MUTEX_INITIALIZER
20314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20315 $EGREP "draft5" >/dev/null 2>&1; then
20316 ol_cv_pthread_version=5
20318 ol_cv_pthread_version=4
20329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20332 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20333 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20336 if test $ol_cv_pthread_version != 0 ; then
20338 cat >>confdefs.h <<_ACEOF
20339 #define HAVE_PTHREADS $ol_cv_pthread_version
20343 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20344 echo "$as_me: error: unknown pthread version" >&2;}
20345 { (exit 1); exit 1; }; }
20348 # consider threads found
20349 ol_with_threads=found
20352 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20353 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20354 if test "${ol_cv_header_linux_threads+set}" = set; then
20355 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20363 #include <pthread.h>
20365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20366 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20367 ol_cv_header_linux_threads=yes
20369 ol_cv_header_linux_threads=no
20375 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20376 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20377 if test $ol_cv_header_linux_threads = yes; then
20379 cat >>confdefs.h <<\_ACEOF
20380 #define HAVE_LINUX_THREADS 1
20386 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20387 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20388 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 #include <pthread.h>
20398 #ifdef _POSIX_THREAD_IS_GNU_PTH
20403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20404 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20405 ol_cv_header_gnu_pth_pthread_h=yes
20407 ol_cv_header_gnu_pth_pthread_h=no
20413 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20414 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20417 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20419 for ac_header in sched.h
20421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20423 echo "$as_me:$LINENO: checking for $ac_header" >&5
20424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20426 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20431 # Is the header compilable?
20432 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20434 cat >conftest.$ac_ext <<_ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440 $ac_includes_default
20441 #include <$ac_header>
20443 rm -f conftest.$ac_objext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20445 (eval $ac_compile) 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } &&
20452 { ac_try='test -z "$ac_c_werror_flag"
20453 || test ! -s conftest.err'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; } &&
20459 { ac_try='test -s conftest.$ac_objext'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 ac_header_compiler=yes
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_header_compiler=no
20472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20474 echo "${ECHO_T}$ac_header_compiler" >&6
20476 # Is the header present?
20477 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 #include <$ac_header>
20487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20490 grep -v '^ *+' conftest.er1 >conftest.err
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } >/dev/null; then
20495 if test -s conftest.err; then
20496 ac_cpp_err=$ac_c_preproc_warn_flag
20497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20504 if test -z "$ac_cpp_err"; then
20505 ac_header_preproc=yes
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 ac_header_preproc=no
20512 rm -f conftest.err conftest.$ac_ext
20513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20514 echo "${ECHO_T}$ac_header_preproc" >&6
20516 # So? What about this header?
20517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20523 ac_header_preproc=yes
20526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20540 ## --------------------------------------------- ##
20541 ## Report this to <http://www.openldap.org/its/> ##
20542 ## --------------------------------------------- ##
20545 sed "s/^/$as_me: WARNING: /" >&2
20548 echo "$as_me:$LINENO: checking for $ac_header" >&5
20549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 eval "$as_ac_Header=\$ac_header_preproc"
20555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20560 cat >>confdefs.h <<_ACEOF
20561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20571 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20572 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20573 if test "${ol_cv_pthread_create+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 if test "$cross_compiling" = yes; then
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 /* pthread test headers */
20586 #include <pthread.h>
20587 #if HAVE_PTHREADS < 7
20591 #define NULL (void*)0
20594 static void *task(p)
20597 return (void *) (p == NULL);
20604 /* pthread test function */
20605 #ifndef PTHREAD_CREATE_DETACHED
20606 #define PTHREAD_CREATE_DETACHED 1
20610 int detach = PTHREAD_CREATE_DETACHED;
20612 #if HAVE_PTHREADS > 4
20613 /* Final pthreads */
20614 pthread_attr_t attr;
20616 status = pthread_attr_init(&attr);
20617 if( status ) return status;
20619 #if HAVE_PTHREADS < 7
20620 status = pthread_attr_setdetachstate(&attr, &detach);
20621 if( status < 0 ) status = errno;
20623 status = pthread_attr_setdetachstate(&attr, detach);
20625 if( status ) return status;
20626 status = pthread_create( &t, &attr, task, NULL );
20627 #if HAVE_PTHREADS < 7
20628 if( status < 0 ) status = errno;
20630 if( status ) return status;
20632 /* Draft 4 pthreads */
20633 status = pthread_create( &t, pthread_attr_default, task, NULL );
20634 if( status ) return errno;
20636 /* give thread a chance to complete */
20637 /* it should remain joinable and hence detachable */
20640 status = pthread_detach( &t );
20641 if( status ) return errno;
20644 #ifdef HAVE_LINUX_THREADS
20645 pthread_kill_other_threads_np();
20654 rm -f conftest.$ac_objext conftest$ac_exeext
20655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20656 (eval $ac_link) 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } &&
20663 { ac_try='test -z "$ac_c_werror_flag"
20664 || test ! -s conftest.err'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; } &&
20670 { ac_try='test -s conftest$ac_exeext'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20676 ol_cv_pthread_create=yes
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20681 ol_cv_pthread_create=no
20683 rm -f conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20686 cat >conftest.$ac_ext <<_ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20693 /* pthread test headers */
20694 #include <pthread.h>
20695 #if HAVE_PTHREADS < 7
20699 #define NULL (void*)0
20702 static void *task(p)
20705 return (void *) (p == NULL);
20709 int main(argc, argv)
20714 /* pthread test function */
20715 #ifndef PTHREAD_CREATE_DETACHED
20716 #define PTHREAD_CREATE_DETACHED 1
20720 int detach = PTHREAD_CREATE_DETACHED;
20722 #if HAVE_PTHREADS > 4
20723 /* Final pthreads */
20724 pthread_attr_t attr;
20726 status = pthread_attr_init(&attr);
20727 if( status ) return status;
20729 #if HAVE_PTHREADS < 7
20730 status = pthread_attr_setdetachstate(&attr, &detach);
20731 if( status < 0 ) status = errno;
20733 status = pthread_attr_setdetachstate(&attr, detach);
20735 if( status ) return status;
20736 status = pthread_create( &t, &attr, task, NULL );
20737 #if HAVE_PTHREADS < 7
20738 if( status < 0 ) status = errno;
20740 if( status ) return status;
20742 /* Draft 4 pthreads */
20743 status = pthread_create( &t, pthread_attr_default, task, NULL );
20744 if( status ) return errno;
20746 /* give thread a chance to complete */
20747 /* it should remain joinable and hence detachable */
20750 status = pthread_detach( &t );
20751 if( status ) return errno;
20754 #ifdef HAVE_LINUX_THREADS
20755 pthread_kill_other_threads_np();
20763 rm -f conftest$ac_exeext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765 (eval $ac_link) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 ol_cv_pthread_create=yes
20776 echo "$as_me: program exited with status $ac_status" >&5
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ( exit $ac_status )
20781 ol_cv_pthread_create=no
20783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20786 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20787 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20789 if test $ol_cv_pthread_create != no ; then
20790 ol_link_threads=posix
20791 ol_link_pthreads=""
20794 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20795 if test "$ol_link_threads" = no ; then
20797 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20798 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20799 if test "${ol_cv_pthread_kthread+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 LIBS="-kthread $LIBS"
20807 if test "$cross_compiling" = yes; then
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20815 /* pthread test headers */
20816 #include <pthread.h>
20817 #if HAVE_PTHREADS < 7
20821 #define NULL (void*)0
20824 static void *task(p)
20827 return (void *) (p == NULL);
20834 /* pthread test function */
20835 #ifndef PTHREAD_CREATE_DETACHED
20836 #define PTHREAD_CREATE_DETACHED 1
20840 int detach = PTHREAD_CREATE_DETACHED;
20842 #if HAVE_PTHREADS > 4
20843 /* Final pthreads */
20844 pthread_attr_t attr;
20846 status = pthread_attr_init(&attr);
20847 if( status ) return status;
20849 #if HAVE_PTHREADS < 7
20850 status = pthread_attr_setdetachstate(&attr, &detach);
20851 if( status < 0 ) status = errno;
20853 status = pthread_attr_setdetachstate(&attr, detach);
20855 if( status ) return status;
20856 status = pthread_create( &t, &attr, task, NULL );
20857 #if HAVE_PTHREADS < 7
20858 if( status < 0 ) status = errno;
20860 if( status ) return status;
20862 /* Draft 4 pthreads */
20863 status = pthread_create( &t, pthread_attr_default, task, NULL );
20864 if( status ) return errno;
20866 /* give thread a chance to complete */
20867 /* it should remain joinable and hence detachable */
20870 status = pthread_detach( &t );
20871 if( status ) return errno;
20874 #ifdef HAVE_LINUX_THREADS
20875 pthread_kill_other_threads_np();
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
20893 { ac_try='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest$ac_exeext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ol_cv_pthread_kthread=yes
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ol_cv_pthread_kthread=no
20913 rm -f conftest.err conftest.$ac_objext \
20914 conftest$ac_exeext conftest.$ac_ext
20916 cat >conftest.$ac_ext <<_ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20923 /* pthread test headers */
20924 #include <pthread.h>
20925 #if HAVE_PTHREADS < 7
20929 #define NULL (void*)0
20932 static void *task(p)
20935 return (void *) (p == NULL);
20939 int main(argc, argv)
20944 /* pthread test function */
20945 #ifndef PTHREAD_CREATE_DETACHED
20946 #define PTHREAD_CREATE_DETACHED 1
20950 int detach = PTHREAD_CREATE_DETACHED;
20952 #if HAVE_PTHREADS > 4
20953 /* Final pthreads */
20954 pthread_attr_t attr;
20956 status = pthread_attr_init(&attr);
20957 if( status ) return status;
20959 #if HAVE_PTHREADS < 7
20960 status = pthread_attr_setdetachstate(&attr, &detach);
20961 if( status < 0 ) status = errno;
20963 status = pthread_attr_setdetachstate(&attr, detach);
20965 if( status ) return status;
20966 status = pthread_create( &t, &attr, task, NULL );
20967 #if HAVE_PTHREADS < 7
20968 if( status < 0 ) status = errno;
20970 if( status ) return status;
20972 /* Draft 4 pthreads */
20973 status = pthread_create( &t, pthread_attr_default, task, NULL );
20974 if( status ) return errno;
20976 /* give thread a chance to complete */
20977 /* it should remain joinable and hence detachable */
20980 status = pthread_detach( &t );
20981 if( status ) return errno;
20984 #ifdef HAVE_LINUX_THREADS
20985 pthread_kill_other_threads_np();
20993 rm -f conftest$ac_exeext
20994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20995 (eval $ac_link) 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 ol_cv_pthread_kthread=yes
21006 echo "$as_me: program exited with status $ac_status" >&5
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ( exit $ac_status )
21011 ol_cv_pthread_kthread=no
21013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21020 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21021 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
21023 if test $ol_cv_pthread_kthread = yes ; then
21024 ol_link_pthreads="-kthread"
21025 ol_link_threads=posix
21029 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21030 if test "$ol_link_threads" = no ; then
21032 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21033 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
21034 if test "${ol_cv_pthread_pthread+set}" = set; then
21035 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 LIBS="-pthread $LIBS"
21042 if test "$cross_compiling" = yes; then
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21050 /* pthread test headers */
21051 #include <pthread.h>
21052 #if HAVE_PTHREADS < 7
21056 #define NULL (void*)0
21059 static void *task(p)
21062 return (void *) (p == NULL);
21069 /* pthread test function */
21070 #ifndef PTHREAD_CREATE_DETACHED
21071 #define PTHREAD_CREATE_DETACHED 1
21075 int detach = PTHREAD_CREATE_DETACHED;
21077 #if HAVE_PTHREADS > 4
21078 /* Final pthreads */
21079 pthread_attr_t attr;
21081 status = pthread_attr_init(&attr);
21082 if( status ) return status;
21084 #if HAVE_PTHREADS < 7
21085 status = pthread_attr_setdetachstate(&attr, &detach);
21086 if( status < 0 ) status = errno;
21088 status = pthread_attr_setdetachstate(&attr, detach);
21090 if( status ) return status;
21091 status = pthread_create( &t, &attr, task, NULL );
21092 #if HAVE_PTHREADS < 7
21093 if( status < 0 ) status = errno;
21095 if( status ) return status;
21097 /* Draft 4 pthreads */
21098 status = pthread_create( &t, pthread_attr_default, task, NULL );
21099 if( status ) return errno;
21101 /* give thread a chance to complete */
21102 /* it should remain joinable and hence detachable */
21105 status = pthread_detach( &t );
21106 if( status ) return errno;
21109 #ifdef HAVE_LINUX_THREADS
21110 pthread_kill_other_threads_np();
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21121 (eval $ac_link) 2>conftest.er1
21123 grep -v '^ *+' conftest.er1 >conftest.err
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } &&
21128 { ac_try='test -z "$ac_c_werror_flag"
21129 || test ! -s conftest.err'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; } &&
21135 { ac_try='test -s conftest$ac_exeext'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ol_cv_pthread_pthread=yes
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ol_cv_pthread_pthread=no
21148 rm -f conftest.err conftest.$ac_objext \
21149 conftest$ac_exeext conftest.$ac_ext
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21158 /* pthread test headers */
21159 #include <pthread.h>
21160 #if HAVE_PTHREADS < 7
21164 #define NULL (void*)0
21167 static void *task(p)
21170 return (void *) (p == NULL);
21174 int main(argc, argv)
21179 /* pthread test function */
21180 #ifndef PTHREAD_CREATE_DETACHED
21181 #define PTHREAD_CREATE_DETACHED 1
21185 int detach = PTHREAD_CREATE_DETACHED;
21187 #if HAVE_PTHREADS > 4
21188 /* Final pthreads */
21189 pthread_attr_t attr;
21191 status = pthread_attr_init(&attr);
21192 if( status ) return status;
21194 #if HAVE_PTHREADS < 7
21195 status = pthread_attr_setdetachstate(&attr, &detach);
21196 if( status < 0 ) status = errno;
21198 status = pthread_attr_setdetachstate(&attr, detach);
21200 if( status ) return status;
21201 status = pthread_create( &t, &attr, task, NULL );
21202 #if HAVE_PTHREADS < 7
21203 if( status < 0 ) status = errno;
21205 if( status ) return status;
21207 /* Draft 4 pthreads */
21208 status = pthread_create( &t, pthread_attr_default, task, NULL );
21209 if( status ) return errno;
21211 /* give thread a chance to complete */
21212 /* it should remain joinable and hence detachable */
21215 status = pthread_detach( &t );
21216 if( status ) return errno;
21219 #ifdef HAVE_LINUX_THREADS
21220 pthread_kill_other_threads_np();
21228 rm -f conftest$ac_exeext
21229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21230 (eval $ac_link) 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; }; then
21239 ol_cv_pthread_pthread=yes
21241 echo "$as_me: program exited with status $ac_status" >&5
21242 echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ( exit $ac_status )
21246 ol_cv_pthread_pthread=no
21248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21255 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21256 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21258 if test $ol_cv_pthread_pthread = yes ; then
21259 ol_link_pthreads="-pthread"
21260 ol_link_threads=posix
21264 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21265 if test "$ol_link_threads" = no ; then
21267 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21268 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21269 if test "${ol_cv_pthread_pthreads+set}" = set; then
21270 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 LIBS="-pthreads $LIBS"
21277 if test "$cross_compiling" = yes; then
21278 cat >conftest.$ac_ext <<_ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21285 /* pthread test headers */
21286 #include <pthread.h>
21287 #if HAVE_PTHREADS < 7
21291 #define NULL (void*)0
21294 static void *task(p)
21297 return (void *) (p == NULL);
21304 /* pthread test function */
21305 #ifndef PTHREAD_CREATE_DETACHED
21306 #define PTHREAD_CREATE_DETACHED 1
21310 int detach = PTHREAD_CREATE_DETACHED;
21312 #if HAVE_PTHREADS > 4
21313 /* Final pthreads */
21314 pthread_attr_t attr;
21316 status = pthread_attr_init(&attr);
21317 if( status ) return status;
21319 #if HAVE_PTHREADS < 7
21320 status = pthread_attr_setdetachstate(&attr, &detach);
21321 if( status < 0 ) status = errno;
21323 status = pthread_attr_setdetachstate(&attr, detach);
21325 if( status ) return status;
21326 status = pthread_create( &t, &attr, task, NULL );
21327 #if HAVE_PTHREADS < 7
21328 if( status < 0 ) status = errno;
21330 if( status ) return status;
21332 /* Draft 4 pthreads */
21333 status = pthread_create( &t, pthread_attr_default, task, NULL );
21334 if( status ) return errno;
21336 /* give thread a chance to complete */
21337 /* it should remain joinable and hence detachable */
21340 status = pthread_detach( &t );
21341 if( status ) return errno;
21344 #ifdef HAVE_LINUX_THREADS
21345 pthread_kill_other_threads_np();
21354 rm -f conftest.$ac_objext conftest$ac_exeext
21355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21356 (eval $ac_link) 2>conftest.er1
21358 grep -v '^ *+' conftest.er1 >conftest.err
21360 cat conftest.err >&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
21363 { ac_try='test -z "$ac_c_werror_flag"
21364 || test ! -s conftest.err'
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest$ac_exeext'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 ol_cv_pthread_pthreads=yes
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 ol_cv_pthread_pthreads=no
21383 rm -f conftest.err conftest.$ac_objext \
21384 conftest$ac_exeext conftest.$ac_ext
21386 cat >conftest.$ac_ext <<_ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h. */
21393 /* pthread test headers */
21394 #include <pthread.h>
21395 #if HAVE_PTHREADS < 7
21399 #define NULL (void*)0
21402 static void *task(p)
21405 return (void *) (p == NULL);
21409 int main(argc, argv)
21414 /* pthread test function */
21415 #ifndef PTHREAD_CREATE_DETACHED
21416 #define PTHREAD_CREATE_DETACHED 1
21420 int detach = PTHREAD_CREATE_DETACHED;
21422 #if HAVE_PTHREADS > 4
21423 /* Final pthreads */
21424 pthread_attr_t attr;
21426 status = pthread_attr_init(&attr);
21427 if( status ) return status;
21429 #if HAVE_PTHREADS < 7
21430 status = pthread_attr_setdetachstate(&attr, &detach);
21431 if( status < 0 ) status = errno;
21433 status = pthread_attr_setdetachstate(&attr, detach);
21435 if( status ) return status;
21436 status = pthread_create( &t, &attr, task, NULL );
21437 #if HAVE_PTHREADS < 7
21438 if( status < 0 ) status = errno;
21440 if( status ) return status;
21442 /* Draft 4 pthreads */
21443 status = pthread_create( &t, pthread_attr_default, task, NULL );
21444 if( status ) return errno;
21446 /* give thread a chance to complete */
21447 /* it should remain joinable and hence detachable */
21450 status = pthread_detach( &t );
21451 if( status ) return errno;
21454 #ifdef HAVE_LINUX_THREADS
21455 pthread_kill_other_threads_np();
21463 rm -f conftest$ac_exeext
21464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21465 (eval $ac_link) 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; }; then
21474 ol_cv_pthread_pthreads=yes
21476 echo "$as_me: program exited with status $ac_status" >&5
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ( exit $ac_status )
21481 ol_cv_pthread_pthreads=no
21483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21490 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21491 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21493 if test $ol_cv_pthread_pthreads = yes ; then
21494 ol_link_pthreads="-pthreads"
21495 ol_link_threads=posix
21499 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21500 if test "$ol_link_threads" = no ; then
21502 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21503 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21504 if test "${ol_cv_pthread_mthreads+set}" = set; then
21505 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 LIBS="-mthreads $LIBS"
21512 if test "$cross_compiling" = yes; then
21513 cat >conftest.$ac_ext <<_ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21520 /* pthread test headers */
21521 #include <pthread.h>
21522 #if HAVE_PTHREADS < 7
21526 #define NULL (void*)0
21529 static void *task(p)
21532 return (void *) (p == NULL);
21539 /* pthread test function */
21540 #ifndef PTHREAD_CREATE_DETACHED
21541 #define PTHREAD_CREATE_DETACHED 1
21545 int detach = PTHREAD_CREATE_DETACHED;
21547 #if HAVE_PTHREADS > 4
21548 /* Final pthreads */
21549 pthread_attr_t attr;
21551 status = pthread_attr_init(&attr);
21552 if( status ) return status;
21554 #if HAVE_PTHREADS < 7
21555 status = pthread_attr_setdetachstate(&attr, &detach);
21556 if( status < 0 ) status = errno;
21558 status = pthread_attr_setdetachstate(&attr, detach);
21560 if( status ) return status;
21561 status = pthread_create( &t, &attr, task, NULL );
21562 #if HAVE_PTHREADS < 7
21563 if( status < 0 ) status = errno;
21565 if( status ) return status;
21567 /* Draft 4 pthreads */
21568 status = pthread_create( &t, pthread_attr_default, task, NULL );
21569 if( status ) return errno;
21571 /* give thread a chance to complete */
21572 /* it should remain joinable and hence detachable */
21575 status = pthread_detach( &t );
21576 if( status ) return errno;
21579 #ifdef HAVE_LINUX_THREADS
21580 pthread_kill_other_threads_np();
21589 rm -f conftest.$ac_objext conftest$ac_exeext
21590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21591 (eval $ac_link) 2>conftest.er1
21593 grep -v '^ *+' conftest.er1 >conftest.err
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } &&
21598 { ac_try='test -z "$ac_c_werror_flag"
21599 || test ! -s conftest.err'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; } &&
21605 { ac_try='test -s conftest$ac_exeext'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; }; then
21611 ol_cv_pthread_mthreads=yes
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ol_cv_pthread_mthreads=no
21618 rm -f conftest.err conftest.$ac_objext \
21619 conftest$ac_exeext conftest.$ac_ext
21621 cat >conftest.$ac_ext <<_ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21628 /* pthread test headers */
21629 #include <pthread.h>
21630 #if HAVE_PTHREADS < 7
21634 #define NULL (void*)0
21637 static void *task(p)
21640 return (void *) (p == NULL);
21644 int main(argc, argv)
21649 /* pthread test function */
21650 #ifndef PTHREAD_CREATE_DETACHED
21651 #define PTHREAD_CREATE_DETACHED 1
21655 int detach = PTHREAD_CREATE_DETACHED;
21657 #if HAVE_PTHREADS > 4
21658 /* Final pthreads */
21659 pthread_attr_t attr;
21661 status = pthread_attr_init(&attr);
21662 if( status ) return status;
21664 #if HAVE_PTHREADS < 7
21665 status = pthread_attr_setdetachstate(&attr, &detach);
21666 if( status < 0 ) status = errno;
21668 status = pthread_attr_setdetachstate(&attr, detach);
21670 if( status ) return status;
21671 status = pthread_create( &t, &attr, task, NULL );
21672 #if HAVE_PTHREADS < 7
21673 if( status < 0 ) status = errno;
21675 if( status ) return status;
21677 /* Draft 4 pthreads */
21678 status = pthread_create( &t, pthread_attr_default, task, NULL );
21679 if( status ) return errno;
21681 /* give thread a chance to complete */
21682 /* it should remain joinable and hence detachable */
21685 status = pthread_detach( &t );
21686 if( status ) return errno;
21689 #ifdef HAVE_LINUX_THREADS
21690 pthread_kill_other_threads_np();
21698 rm -f conftest$ac_exeext
21699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21700 (eval $ac_link) 2>&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; }; then
21709 ol_cv_pthread_mthreads=yes
21711 echo "$as_me: program exited with status $ac_status" >&5
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ( exit $ac_status )
21716 ol_cv_pthread_mthreads=no
21718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21725 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21726 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21728 if test $ol_cv_pthread_mthreads = yes ; then
21729 ol_link_pthreads="-mthreads"
21730 ol_link_threads=posix
21734 # Pthread try link: -thread (ol_cv_pthread_thread)
21735 if test "$ol_link_threads" = no ; then
21737 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21738 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21739 if test "${ol_cv_pthread_thread+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 LIBS="-thread $LIBS"
21747 if test "$cross_compiling" = yes; then
21748 cat >conftest.$ac_ext <<_ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21755 /* pthread test headers */
21756 #include <pthread.h>
21757 #if HAVE_PTHREADS < 7
21761 #define NULL (void*)0
21764 static void *task(p)
21767 return (void *) (p == NULL);
21774 /* pthread test function */
21775 #ifndef PTHREAD_CREATE_DETACHED
21776 #define PTHREAD_CREATE_DETACHED 1
21780 int detach = PTHREAD_CREATE_DETACHED;
21782 #if HAVE_PTHREADS > 4
21783 /* Final pthreads */
21784 pthread_attr_t attr;
21786 status = pthread_attr_init(&attr);
21787 if( status ) return status;
21789 #if HAVE_PTHREADS < 7
21790 status = pthread_attr_setdetachstate(&attr, &detach);
21791 if( status < 0 ) status = errno;
21793 status = pthread_attr_setdetachstate(&attr, detach);
21795 if( status ) return status;
21796 status = pthread_create( &t, &attr, task, NULL );
21797 #if HAVE_PTHREADS < 7
21798 if( status < 0 ) status = errno;
21800 if( status ) return status;
21802 /* Draft 4 pthreads */
21803 status = pthread_create( &t, pthread_attr_default, task, NULL );
21804 if( status ) return errno;
21806 /* give thread a chance to complete */
21807 /* it should remain joinable and hence detachable */
21810 status = pthread_detach( &t );
21811 if( status ) return errno;
21814 #ifdef HAVE_LINUX_THREADS
21815 pthread_kill_other_threads_np();
21824 rm -f conftest.$ac_objext conftest$ac_exeext
21825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21826 (eval $ac_link) 2>conftest.er1
21828 grep -v '^ *+' conftest.er1 >conftest.err
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } &&
21833 { ac_try='test -z "$ac_c_werror_flag"
21834 || test ! -s conftest.err'
21835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836 (eval $ac_try) 2>&5
21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); }; } &&
21840 { ac_try='test -s conftest$ac_exeext'
21841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21842 (eval $ac_try) 2>&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); }; }; then
21846 ol_cv_pthread_thread=yes
21848 echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21851 ol_cv_pthread_thread=no
21853 rm -f conftest.err conftest.$ac_objext \
21854 conftest$ac_exeext conftest.$ac_ext
21856 cat >conftest.$ac_ext <<_ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21863 /* pthread test headers */
21864 #include <pthread.h>
21865 #if HAVE_PTHREADS < 7
21869 #define NULL (void*)0
21872 static void *task(p)
21875 return (void *) (p == NULL);
21879 int main(argc, argv)
21884 /* pthread test function */
21885 #ifndef PTHREAD_CREATE_DETACHED
21886 #define PTHREAD_CREATE_DETACHED 1
21890 int detach = PTHREAD_CREATE_DETACHED;
21892 #if HAVE_PTHREADS > 4
21893 /* Final pthreads */
21894 pthread_attr_t attr;
21896 status = pthread_attr_init(&attr);
21897 if( status ) return status;
21899 #if HAVE_PTHREADS < 7
21900 status = pthread_attr_setdetachstate(&attr, &detach);
21901 if( status < 0 ) status = errno;
21903 status = pthread_attr_setdetachstate(&attr, detach);
21905 if( status ) return status;
21906 status = pthread_create( &t, &attr, task, NULL );
21907 #if HAVE_PTHREADS < 7
21908 if( status < 0 ) status = errno;
21910 if( status ) return status;
21912 /* Draft 4 pthreads */
21913 status = pthread_create( &t, pthread_attr_default, task, NULL );
21914 if( status ) return errno;
21916 /* give thread a chance to complete */
21917 /* it should remain joinable and hence detachable */
21920 status = pthread_detach( &t );
21921 if( status ) return errno;
21924 #ifdef HAVE_LINUX_THREADS
21925 pthread_kill_other_threads_np();
21933 rm -f conftest$ac_exeext
21934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21935 (eval $ac_link) 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940 (eval $ac_try) 2>&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); }; }; then
21944 ol_cv_pthread_thread=yes
21946 echo "$as_me: program exited with status $ac_status" >&5
21947 echo "$as_me: failed program was:" >&5
21948 sed 's/^/| /' conftest.$ac_ext >&5
21950 ( exit $ac_status )
21951 ol_cv_pthread_thread=no
21953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21960 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21961 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21963 if test $ol_cv_pthread_thread = yes ; then
21964 ol_link_pthreads="-thread"
21965 ol_link_threads=posix
21970 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21971 if test "$ol_link_threads" = no ; then
21972 # try -lpthread -lmach -lexc -lc_r
21973 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21974 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21975 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21976 echo $ECHO_N "(cached) $ECHO_C" >&6
21981 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21983 if test "$cross_compiling" = yes; then
21984 cat >conftest.$ac_ext <<_ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21991 /* pthread test headers */
21992 #include <pthread.h>
21993 #if HAVE_PTHREADS < 7
21997 #define NULL (void*)0
22000 static void *task(p)
22003 return (void *) (p == NULL);
22010 /* pthread test function */
22011 #ifndef PTHREAD_CREATE_DETACHED
22012 #define PTHREAD_CREATE_DETACHED 1
22016 int detach = PTHREAD_CREATE_DETACHED;
22018 #if HAVE_PTHREADS > 4
22019 /* Final pthreads */
22020 pthread_attr_t attr;
22022 status = pthread_attr_init(&attr);
22023 if( status ) return status;
22025 #if HAVE_PTHREADS < 7
22026 status = pthread_attr_setdetachstate(&attr, &detach);
22027 if( status < 0 ) status = errno;
22029 status = pthread_attr_setdetachstate(&attr, detach);
22031 if( status ) return status;
22032 status = pthread_create( &t, &attr, task, NULL );
22033 #if HAVE_PTHREADS < 7
22034 if( status < 0 ) status = errno;
22036 if( status ) return status;
22038 /* Draft 4 pthreads */
22039 status = pthread_create( &t, pthread_attr_default, task, NULL );
22040 if( status ) return errno;
22042 /* give thread a chance to complete */
22043 /* it should remain joinable and hence detachable */
22046 status = pthread_detach( &t );
22047 if( status ) return errno;
22050 #ifdef HAVE_LINUX_THREADS
22051 pthread_kill_other_threads_np();
22060 rm -f conftest.$ac_objext conftest$ac_exeext
22061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22062 (eval $ac_link) 2>conftest.er1
22064 grep -v '^ *+' conftest.er1 >conftest.err
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try='test -z "$ac_c_werror_flag"
22070 || test ! -s conftest.err'
22071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072 (eval $ac_try) 2>&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); }; } &&
22076 { ac_try='test -s conftest$ac_exeext'
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; }; then
22082 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22087 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22089 rm -f conftest.err conftest.$ac_objext \
22090 conftest$ac_exeext conftest.$ac_ext
22092 cat >conftest.$ac_ext <<_ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22099 /* pthread test headers */
22100 #include <pthread.h>
22101 #if HAVE_PTHREADS < 7
22105 #define NULL (void*)0
22108 static void *task(p)
22111 return (void *) (p == NULL);
22115 int main(argc, argv)
22120 /* pthread test function */
22121 #ifndef PTHREAD_CREATE_DETACHED
22122 #define PTHREAD_CREATE_DETACHED 1
22126 int detach = PTHREAD_CREATE_DETACHED;
22128 #if HAVE_PTHREADS > 4
22129 /* Final pthreads */
22130 pthread_attr_t attr;
22132 status = pthread_attr_init(&attr);
22133 if( status ) return status;
22135 #if HAVE_PTHREADS < 7
22136 status = pthread_attr_setdetachstate(&attr, &detach);
22137 if( status < 0 ) status = errno;
22139 status = pthread_attr_setdetachstate(&attr, detach);
22141 if( status ) return status;
22142 status = pthread_create( &t, &attr, task, NULL );
22143 #if HAVE_PTHREADS < 7
22144 if( status < 0 ) status = errno;
22146 if( status ) return status;
22148 /* Draft 4 pthreads */
22149 status = pthread_create( &t, pthread_attr_default, task, NULL );
22150 if( status ) return errno;
22152 /* give thread a chance to complete */
22153 /* it should remain joinable and hence detachable */
22156 status = pthread_detach( &t );
22157 if( status ) return errno;
22160 #ifdef HAVE_LINUX_THREADS
22161 pthread_kill_other_threads_np();
22169 rm -f conftest$ac_exeext
22170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22171 (eval $ac_link) 2>&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22182 echo "$as_me: program exited with status $ac_status" >&5
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ( exit $ac_status )
22187 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22196 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22197 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22199 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22200 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22201 ol_link_threads=posix
22205 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22206 if test "$ol_link_threads" = no ; then
22207 # try -lpthread -lmach -lexc
22208 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22209 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22210 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 LIBS="-lpthread -lmach -lexc $LIBS"
22218 if test "$cross_compiling" = yes; then
22219 cat >conftest.$ac_ext <<_ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 /* pthread test headers */
22227 #include <pthread.h>
22228 #if HAVE_PTHREADS < 7
22232 #define NULL (void*)0
22235 static void *task(p)
22238 return (void *) (p == NULL);
22245 /* pthread test function */
22246 #ifndef PTHREAD_CREATE_DETACHED
22247 #define PTHREAD_CREATE_DETACHED 1
22251 int detach = PTHREAD_CREATE_DETACHED;
22253 #if HAVE_PTHREADS > 4
22254 /* Final pthreads */
22255 pthread_attr_t attr;
22257 status = pthread_attr_init(&attr);
22258 if( status ) return status;
22260 #if HAVE_PTHREADS < 7
22261 status = pthread_attr_setdetachstate(&attr, &detach);
22262 if( status < 0 ) status = errno;
22264 status = pthread_attr_setdetachstate(&attr, detach);
22266 if( status ) return status;
22267 status = pthread_create( &t, &attr, task, NULL );
22268 #if HAVE_PTHREADS < 7
22269 if( status < 0 ) status = errno;
22271 if( status ) return status;
22273 /* Draft 4 pthreads */
22274 status = pthread_create( &t, pthread_attr_default, task, NULL );
22275 if( status ) return errno;
22277 /* give thread a chance to complete */
22278 /* it should remain joinable and hence detachable */
22281 status = pthread_detach( &t );
22282 if( status ) return errno;
22285 #ifdef HAVE_LINUX_THREADS
22286 pthread_kill_other_threads_np();
22295 rm -f conftest.$ac_objext conftest$ac_exeext
22296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22297 (eval $ac_link) 2>conftest.er1
22299 grep -v '^ *+' conftest.er1 >conftest.err
22301 cat conftest.err >&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } &&
22304 { ac_try='test -z "$ac_c_werror_flag"
22305 || test ! -s conftest.err'
22306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; } &&
22311 { ac_try='test -s conftest$ac_exeext'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; }; then
22317 ol_cv_pthread_lpthread_lmach_lexc=yes
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22322 ol_cv_pthread_lpthread_lmach_lexc=no
22324 rm -f conftest.err conftest.$ac_objext \
22325 conftest$ac_exeext conftest.$ac_ext
22327 cat >conftest.$ac_ext <<_ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22334 /* pthread test headers */
22335 #include <pthread.h>
22336 #if HAVE_PTHREADS < 7
22340 #define NULL (void*)0
22343 static void *task(p)
22346 return (void *) (p == NULL);
22350 int main(argc, argv)
22355 /* pthread test function */
22356 #ifndef PTHREAD_CREATE_DETACHED
22357 #define PTHREAD_CREATE_DETACHED 1
22361 int detach = PTHREAD_CREATE_DETACHED;
22363 #if HAVE_PTHREADS > 4
22364 /* Final pthreads */
22365 pthread_attr_t attr;
22367 status = pthread_attr_init(&attr);
22368 if( status ) return status;
22370 #if HAVE_PTHREADS < 7
22371 status = pthread_attr_setdetachstate(&attr, &detach);
22372 if( status < 0 ) status = errno;
22374 status = pthread_attr_setdetachstate(&attr, detach);
22376 if( status ) return status;
22377 status = pthread_create( &t, &attr, task, NULL );
22378 #if HAVE_PTHREADS < 7
22379 if( status < 0 ) status = errno;
22381 if( status ) return status;
22383 /* Draft 4 pthreads */
22384 status = pthread_create( &t, pthread_attr_default, task, NULL );
22385 if( status ) return errno;
22387 /* give thread a chance to complete */
22388 /* it should remain joinable and hence detachable */
22391 status = pthread_detach( &t );
22392 if( status ) return errno;
22395 #ifdef HAVE_LINUX_THREADS
22396 pthread_kill_other_threads_np();
22404 rm -f conftest$ac_exeext
22405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22406 (eval $ac_link) 2>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411 (eval $ac_try) 2>&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); }; }; then
22415 ol_cv_pthread_lpthread_lmach_lexc=yes
22417 echo "$as_me: program exited with status $ac_status" >&5
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 ( exit $ac_status )
22422 ol_cv_pthread_lpthread_lmach_lexc=no
22424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22431 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22432 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22434 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22435 ol_link_pthreads="-lpthread -lmach -lexc"
22436 ol_link_threads=posix
22441 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22442 if test "$ol_link_threads" = no ; then
22443 # try -lpthread -Wl,-woff,85
22444 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22445 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22446 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22452 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22454 if test "$cross_compiling" = yes; then
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22462 /* pthread test headers */
22463 #include <pthread.h>
22464 #if HAVE_PTHREADS < 7
22468 #define NULL (void*)0
22471 static void *task(p)
22474 return (void *) (p == NULL);
22481 /* pthread test function */
22482 #ifndef PTHREAD_CREATE_DETACHED
22483 #define PTHREAD_CREATE_DETACHED 1
22487 int detach = PTHREAD_CREATE_DETACHED;
22489 #if HAVE_PTHREADS > 4
22490 /* Final pthreads */
22491 pthread_attr_t attr;
22493 status = pthread_attr_init(&attr);
22494 if( status ) return status;
22496 #if HAVE_PTHREADS < 7
22497 status = pthread_attr_setdetachstate(&attr, &detach);
22498 if( status < 0 ) status = errno;
22500 status = pthread_attr_setdetachstate(&attr, detach);
22502 if( status ) return status;
22503 status = pthread_create( &t, &attr, task, NULL );
22504 #if HAVE_PTHREADS < 7
22505 if( status < 0 ) status = errno;
22507 if( status ) return status;
22509 /* Draft 4 pthreads */
22510 status = pthread_create( &t, pthread_attr_default, task, NULL );
22511 if( status ) return errno;
22513 /* give thread a chance to complete */
22514 /* it should remain joinable and hence detachable */
22517 status = pthread_detach( &t );
22518 if( status ) return errno;
22521 #ifdef HAVE_LINUX_THREADS
22522 pthread_kill_other_threads_np();
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533 (eval $ac_link) 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } &&
22540 { ac_try='test -z "$ac_c_werror_flag"
22541 || test ! -s conftest.err'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; } &&
22547 { ac_try='test -s conftest$ac_exeext'
22548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549 (eval $ac_try) 2>&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); }; }; then
22553 ol_cv_pthread_lib_lpthread_woff=yes
22555 echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22558 ol_cv_pthread_lib_lpthread_woff=no
22560 rm -f conftest.err conftest.$ac_objext \
22561 conftest$ac_exeext conftest.$ac_ext
22563 cat >conftest.$ac_ext <<_ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22570 /* pthread test headers */
22571 #include <pthread.h>
22572 #if HAVE_PTHREADS < 7
22576 #define NULL (void*)0
22579 static void *task(p)
22582 return (void *) (p == NULL);
22586 int main(argc, argv)
22591 /* pthread test function */
22592 #ifndef PTHREAD_CREATE_DETACHED
22593 #define PTHREAD_CREATE_DETACHED 1
22597 int detach = PTHREAD_CREATE_DETACHED;
22599 #if HAVE_PTHREADS > 4
22600 /* Final pthreads */
22601 pthread_attr_t attr;
22603 status = pthread_attr_init(&attr);
22604 if( status ) return status;
22606 #if HAVE_PTHREADS < 7
22607 status = pthread_attr_setdetachstate(&attr, &detach);
22608 if( status < 0 ) status = errno;
22610 status = pthread_attr_setdetachstate(&attr, detach);
22612 if( status ) return status;
22613 status = pthread_create( &t, &attr, task, NULL );
22614 #if HAVE_PTHREADS < 7
22615 if( status < 0 ) status = errno;
22617 if( status ) return status;
22619 /* Draft 4 pthreads */
22620 status = pthread_create( &t, pthread_attr_default, task, NULL );
22621 if( status ) return errno;
22623 /* give thread a chance to complete */
22624 /* it should remain joinable and hence detachable */
22627 status = pthread_detach( &t );
22628 if( status ) return errno;
22631 #ifdef HAVE_LINUX_THREADS
22632 pthread_kill_other_threads_np();
22640 rm -f conftest$ac_exeext
22641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22642 (eval $ac_link) 2>&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647 (eval $ac_try) 2>&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); }; }; then
22651 ol_cv_pthread_lib_lpthread_woff=yes
22653 echo "$as_me: program exited with status $ac_status" >&5
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ( exit $ac_status )
22658 ol_cv_pthread_lib_lpthread_woff=no
22660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22667 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22668 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22670 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22671 ol_link_pthreads="-lpthread -Wl,-woff,85"
22672 ol_link_threads=posix
22677 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22678 if test "$ol_link_threads" = no ; then
22680 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22681 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22682 if test "${ol_cv_pthread_lpthread+set}" = set; then
22683 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 LIBS="-lpthread $LIBS"
22690 if test "$cross_compiling" = yes; then
22691 cat >conftest.$ac_ext <<_ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22698 /* pthread test headers */
22699 #include <pthread.h>
22700 #if HAVE_PTHREADS < 7
22704 #define NULL (void*)0
22707 static void *task(p)
22710 return (void *) (p == NULL);
22717 /* pthread test function */
22718 #ifndef PTHREAD_CREATE_DETACHED
22719 #define PTHREAD_CREATE_DETACHED 1
22723 int detach = PTHREAD_CREATE_DETACHED;
22725 #if HAVE_PTHREADS > 4
22726 /* Final pthreads */
22727 pthread_attr_t attr;
22729 status = pthread_attr_init(&attr);
22730 if( status ) return status;
22732 #if HAVE_PTHREADS < 7
22733 status = pthread_attr_setdetachstate(&attr, &detach);
22734 if( status < 0 ) status = errno;
22736 status = pthread_attr_setdetachstate(&attr, detach);
22738 if( status ) return status;
22739 status = pthread_create( &t, &attr, task, NULL );
22740 #if HAVE_PTHREADS < 7
22741 if( status < 0 ) status = errno;
22743 if( status ) return status;
22745 /* Draft 4 pthreads */
22746 status = pthread_create( &t, pthread_attr_default, task, NULL );
22747 if( status ) return errno;
22749 /* give thread a chance to complete */
22750 /* it should remain joinable and hence detachable */
22753 status = pthread_detach( &t );
22754 if( status ) return errno;
22757 #ifdef HAVE_LINUX_THREADS
22758 pthread_kill_other_threads_np();
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22769 (eval $ac_link) 2>conftest.er1
22771 grep -v '^ *+' conftest.er1 >conftest.err
22773 cat conftest.err >&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } &&
22776 { ac_try='test -z "$ac_c_werror_flag"
22777 || test ! -s conftest.err'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; } &&
22783 { ac_try='test -s conftest$ac_exeext'
22784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785 (eval $ac_try) 2>&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); }; }; then
22789 ol_cv_pthread_lpthread=yes
22791 echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 ol_cv_pthread_lpthread=no
22796 rm -f conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext conftest.$ac_ext
22799 cat >conftest.$ac_ext <<_ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22806 /* pthread test headers */
22807 #include <pthread.h>
22808 #if HAVE_PTHREADS < 7
22812 #define NULL (void*)0
22815 static void *task(p)
22818 return (void *) (p == NULL);
22822 int main(argc, argv)
22827 /* pthread test function */
22828 #ifndef PTHREAD_CREATE_DETACHED
22829 #define PTHREAD_CREATE_DETACHED 1
22833 int detach = PTHREAD_CREATE_DETACHED;
22835 #if HAVE_PTHREADS > 4
22836 /* Final pthreads */
22837 pthread_attr_t attr;
22839 status = pthread_attr_init(&attr);
22840 if( status ) return status;
22842 #if HAVE_PTHREADS < 7
22843 status = pthread_attr_setdetachstate(&attr, &detach);
22844 if( status < 0 ) status = errno;
22846 status = pthread_attr_setdetachstate(&attr, detach);
22848 if( status ) return status;
22849 status = pthread_create( &t, &attr, task, NULL );
22850 #if HAVE_PTHREADS < 7
22851 if( status < 0 ) status = errno;
22853 if( status ) return status;
22855 /* Draft 4 pthreads */
22856 status = pthread_create( &t, pthread_attr_default, task, NULL );
22857 if( status ) return errno;
22859 /* give thread a chance to complete */
22860 /* it should remain joinable and hence detachable */
22863 status = pthread_detach( &t );
22864 if( status ) return errno;
22867 #ifdef HAVE_LINUX_THREADS
22868 pthread_kill_other_threads_np();
22876 rm -f conftest$ac_exeext
22877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22878 (eval $ac_link) 2>&5
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 ol_cv_pthread_lpthread=yes
22889 echo "$as_me: program exited with status $ac_status" >&5
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ( exit $ac_status )
22894 ol_cv_pthread_lpthread=no
22896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22903 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22904 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22906 if test $ol_cv_pthread_lpthread = yes ; then
22907 ol_link_pthreads="-lpthread"
22908 ol_link_threads=posix
22912 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22913 if test "$ol_link_threads" = no ; then
22915 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22916 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22917 if test "${ol_cv_pthread_lc_r+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22925 if test "$cross_compiling" = yes; then
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22933 /* pthread test headers */
22934 #include <pthread.h>
22935 #if HAVE_PTHREADS < 7
22939 #define NULL (void*)0
22942 static void *task(p)
22945 return (void *) (p == NULL);
22952 /* pthread test function */
22953 #ifndef PTHREAD_CREATE_DETACHED
22954 #define PTHREAD_CREATE_DETACHED 1
22958 int detach = PTHREAD_CREATE_DETACHED;
22960 #if HAVE_PTHREADS > 4
22961 /* Final pthreads */
22962 pthread_attr_t attr;
22964 status = pthread_attr_init(&attr);
22965 if( status ) return status;
22967 #if HAVE_PTHREADS < 7
22968 status = pthread_attr_setdetachstate(&attr, &detach);
22969 if( status < 0 ) status = errno;
22971 status = pthread_attr_setdetachstate(&attr, detach);
22973 if( status ) return status;
22974 status = pthread_create( &t, &attr, task, NULL );
22975 #if HAVE_PTHREADS < 7
22976 if( status < 0 ) status = errno;
22978 if( status ) return status;
22980 /* Draft 4 pthreads */
22981 status = pthread_create( &t, pthread_attr_default, task, NULL );
22982 if( status ) return errno;
22984 /* give thread a chance to complete */
22985 /* it should remain joinable and hence detachable */
22988 status = pthread_detach( &t );
22989 if( status ) return errno;
22992 #ifdef HAVE_LINUX_THREADS
22993 pthread_kill_other_threads_np();
23002 rm -f conftest.$ac_objext conftest$ac_exeext
23003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23004 (eval $ac_link) 2>conftest.er1
23006 grep -v '^ *+' conftest.er1 >conftest.err
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } &&
23011 { ac_try='test -z "$ac_c_werror_flag"
23012 || test ! -s conftest.err'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; } &&
23018 { ac_try='test -s conftest$ac_exeext'
23019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020 (eval $ac_try) 2>&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); }; }; then
23024 ol_cv_pthread_lc_r=yes
23026 echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23029 ol_cv_pthread_lc_r=no
23031 rm -f conftest.err conftest.$ac_objext \
23032 conftest$ac_exeext conftest.$ac_ext
23034 cat >conftest.$ac_ext <<_ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23041 /* pthread test headers */
23042 #include <pthread.h>
23043 #if HAVE_PTHREADS < 7
23047 #define NULL (void*)0
23050 static void *task(p)
23053 return (void *) (p == NULL);
23057 int main(argc, argv)
23062 /* pthread test function */
23063 #ifndef PTHREAD_CREATE_DETACHED
23064 #define PTHREAD_CREATE_DETACHED 1
23068 int detach = PTHREAD_CREATE_DETACHED;
23070 #if HAVE_PTHREADS > 4
23071 /* Final pthreads */
23072 pthread_attr_t attr;
23074 status = pthread_attr_init(&attr);
23075 if( status ) return status;
23077 #if HAVE_PTHREADS < 7
23078 status = pthread_attr_setdetachstate(&attr, &detach);
23079 if( status < 0 ) status = errno;
23081 status = pthread_attr_setdetachstate(&attr, detach);
23083 if( status ) return status;
23084 status = pthread_create( &t, &attr, task, NULL );
23085 #if HAVE_PTHREADS < 7
23086 if( status < 0 ) status = errno;
23088 if( status ) return status;
23090 /* Draft 4 pthreads */
23091 status = pthread_create( &t, pthread_attr_default, task, NULL );
23092 if( status ) return errno;
23094 /* give thread a chance to complete */
23095 /* it should remain joinable and hence detachable */
23098 status = pthread_detach( &t );
23099 if( status ) return errno;
23102 #ifdef HAVE_LINUX_THREADS
23103 pthread_kill_other_threads_np();
23111 rm -f conftest$ac_exeext
23112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23113 (eval $ac_link) 2>&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118 (eval $ac_try) 2>&5
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; }; then
23122 ol_cv_pthread_lc_r=yes
23124 echo "$as_me: program exited with status $ac_status" >&5
23125 echo "$as_me: failed program was:" >&5
23126 sed 's/^/| /' conftest.$ac_ext >&5
23128 ( exit $ac_status )
23129 ol_cv_pthread_lc_r=no
23131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23138 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23139 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23141 if test $ol_cv_pthread_lc_r = yes ; then
23142 ol_link_pthreads="-lc_r"
23143 ol_link_threads=posix
23148 # Pthread try link: -threads (ol_cv_pthread_threads)
23149 if test "$ol_link_threads" = no ; then
23151 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23152 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23153 if test "${ol_cv_pthread_threads+set}" = set; then
23154 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 LIBS="-threads $LIBS"
23161 if test "$cross_compiling" = yes; then
23162 cat >conftest.$ac_ext <<_ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23169 /* pthread test headers */
23170 #include <pthread.h>
23171 #if HAVE_PTHREADS < 7
23175 #define NULL (void*)0
23178 static void *task(p)
23181 return (void *) (p == NULL);
23188 /* pthread test function */
23189 #ifndef PTHREAD_CREATE_DETACHED
23190 #define PTHREAD_CREATE_DETACHED 1
23194 int detach = PTHREAD_CREATE_DETACHED;
23196 #if HAVE_PTHREADS > 4
23197 /* Final pthreads */
23198 pthread_attr_t attr;
23200 status = pthread_attr_init(&attr);
23201 if( status ) return status;
23203 #if HAVE_PTHREADS < 7
23204 status = pthread_attr_setdetachstate(&attr, &detach);
23205 if( status < 0 ) status = errno;
23207 status = pthread_attr_setdetachstate(&attr, detach);
23209 if( status ) return status;
23210 status = pthread_create( &t, &attr, task, NULL );
23211 #if HAVE_PTHREADS < 7
23212 if( status < 0 ) status = errno;
23214 if( status ) return status;
23216 /* Draft 4 pthreads */
23217 status = pthread_create( &t, pthread_attr_default, task, NULL );
23218 if( status ) return errno;
23220 /* give thread a chance to complete */
23221 /* it should remain joinable and hence detachable */
23224 status = pthread_detach( &t );
23225 if( status ) return errno;
23228 #ifdef HAVE_LINUX_THREADS
23229 pthread_kill_other_threads_np();
23238 rm -f conftest.$ac_objext conftest$ac_exeext
23239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23240 (eval $ac_link) 2>conftest.er1
23242 grep -v '^ *+' conftest.er1 >conftest.err
23244 cat conftest.err >&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } &&
23247 { ac_try='test -z "$ac_c_werror_flag"
23248 || test ! -s conftest.err'
23249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23250 (eval $ac_try) 2>&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); }; } &&
23254 { ac_try='test -s conftest$ac_exeext'
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; }; then
23260 ol_cv_pthread_threads=yes
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23265 ol_cv_pthread_threads=no
23267 rm -f conftest.err conftest.$ac_objext \
23268 conftest$ac_exeext conftest.$ac_ext
23270 cat >conftest.$ac_ext <<_ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23277 /* pthread test headers */
23278 #include <pthread.h>
23279 #if HAVE_PTHREADS < 7
23283 #define NULL (void*)0
23286 static void *task(p)
23289 return (void *) (p == NULL);
23293 int main(argc, argv)
23298 /* pthread test function */
23299 #ifndef PTHREAD_CREATE_DETACHED
23300 #define PTHREAD_CREATE_DETACHED 1
23304 int detach = PTHREAD_CREATE_DETACHED;
23306 #if HAVE_PTHREADS > 4
23307 /* Final pthreads */
23308 pthread_attr_t attr;
23310 status = pthread_attr_init(&attr);
23311 if( status ) return status;
23313 #if HAVE_PTHREADS < 7
23314 status = pthread_attr_setdetachstate(&attr, &detach);
23315 if( status < 0 ) status = errno;
23317 status = pthread_attr_setdetachstate(&attr, detach);
23319 if( status ) return status;
23320 status = pthread_create( &t, &attr, task, NULL );
23321 #if HAVE_PTHREADS < 7
23322 if( status < 0 ) status = errno;
23324 if( status ) return status;
23326 /* Draft 4 pthreads */
23327 status = pthread_create( &t, pthread_attr_default, task, NULL );
23328 if( status ) return errno;
23330 /* give thread a chance to complete */
23331 /* it should remain joinable and hence detachable */
23334 status = pthread_detach( &t );
23335 if( status ) return errno;
23338 #ifdef HAVE_LINUX_THREADS
23339 pthread_kill_other_threads_np();
23347 rm -f conftest$ac_exeext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23349 (eval $ac_link) 2>&5
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23358 ol_cv_pthread_threads=yes
23360 echo "$as_me: program exited with status $ac_status" >&5
23361 echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23364 ( exit $ac_status )
23365 ol_cv_pthread_threads=no
23367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23374 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23375 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23377 if test $ol_cv_pthread_threads = yes ; then
23378 ol_link_pthreads="-threads"
23379 ol_link_threads=posix
23384 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23385 if test "$ol_link_threads" = no ; then
23386 # try -lpthreads -lmach -lexc -lc_r
23387 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23388 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23389 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23395 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23397 if test "$cross_compiling" = yes; then
23398 cat >conftest.$ac_ext <<_ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23405 /* pthread test headers */
23406 #include <pthread.h>
23407 #if HAVE_PTHREADS < 7
23411 #define NULL (void*)0
23414 static void *task(p)
23417 return (void *) (p == NULL);
23424 /* pthread test function */
23425 #ifndef PTHREAD_CREATE_DETACHED
23426 #define PTHREAD_CREATE_DETACHED 1
23430 int detach = PTHREAD_CREATE_DETACHED;
23432 #if HAVE_PTHREADS > 4
23433 /* Final pthreads */
23434 pthread_attr_t attr;
23436 status = pthread_attr_init(&attr);
23437 if( status ) return status;
23439 #if HAVE_PTHREADS < 7
23440 status = pthread_attr_setdetachstate(&attr, &detach);
23441 if( status < 0 ) status = errno;
23443 status = pthread_attr_setdetachstate(&attr, detach);
23445 if( status ) return status;
23446 status = pthread_create( &t, &attr, task, NULL );
23447 #if HAVE_PTHREADS < 7
23448 if( status < 0 ) status = errno;
23450 if( status ) return status;
23452 /* Draft 4 pthreads */
23453 status = pthread_create( &t, pthread_attr_default, task, NULL );
23454 if( status ) return errno;
23456 /* give thread a chance to complete */
23457 /* it should remain joinable and hence detachable */
23460 status = pthread_detach( &t );
23461 if( status ) return errno;
23464 #ifdef HAVE_LINUX_THREADS
23465 pthread_kill_other_threads_np();
23474 rm -f conftest.$ac_objext conftest$ac_exeext
23475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23476 (eval $ac_link) 2>conftest.er1
23478 grep -v '^ *+' conftest.er1 >conftest.err
23480 cat conftest.err >&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } &&
23483 { ac_try='test -z "$ac_c_werror_flag"
23484 || test ! -s conftest.err'
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; } &&
23490 { ac_try='test -s conftest$ac_exeext'
23491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492 (eval $ac_try) 2>&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); }; }; then
23496 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23498 echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23501 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23503 rm -f conftest.err conftest.$ac_objext \
23504 conftest$ac_exeext conftest.$ac_ext
23506 cat >conftest.$ac_ext <<_ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23513 /* pthread test headers */
23514 #include <pthread.h>
23515 #if HAVE_PTHREADS < 7
23519 #define NULL (void*)0
23522 static void *task(p)
23525 return (void *) (p == NULL);
23529 int main(argc, argv)
23534 /* pthread test function */
23535 #ifndef PTHREAD_CREATE_DETACHED
23536 #define PTHREAD_CREATE_DETACHED 1
23540 int detach = PTHREAD_CREATE_DETACHED;
23542 #if HAVE_PTHREADS > 4
23543 /* Final pthreads */
23544 pthread_attr_t attr;
23546 status = pthread_attr_init(&attr);
23547 if( status ) return status;
23549 #if HAVE_PTHREADS < 7
23550 status = pthread_attr_setdetachstate(&attr, &detach);
23551 if( status < 0 ) status = errno;
23553 status = pthread_attr_setdetachstate(&attr, detach);
23555 if( status ) return status;
23556 status = pthread_create( &t, &attr, task, NULL );
23557 #if HAVE_PTHREADS < 7
23558 if( status < 0 ) status = errno;
23560 if( status ) return status;
23562 /* Draft 4 pthreads */
23563 status = pthread_create( &t, pthread_attr_default, task, NULL );
23564 if( status ) return errno;
23566 /* give thread a chance to complete */
23567 /* it should remain joinable and hence detachable */
23570 status = pthread_detach( &t );
23571 if( status ) return errno;
23574 #ifdef HAVE_LINUX_THREADS
23575 pthread_kill_other_threads_np();
23583 rm -f conftest$ac_exeext
23584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23585 (eval $ac_link) 2>&5
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; }; then
23594 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23596 echo "$as_me: program exited with status $ac_status" >&5
23597 echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23600 ( exit $ac_status )
23601 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23610 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23611 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23613 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23614 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23615 ol_link_threads=posix
23619 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23620 if test "$ol_link_threads" = no ; then
23621 # try -lpthreads -lmach -lexc
23622 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23623 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23624 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23630 LIBS="-lpthreads -lmach -lexc $LIBS"
23632 if test "$cross_compiling" = yes; then
23633 cat >conftest.$ac_ext <<_ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23640 /* pthread test headers */
23641 #include <pthread.h>
23642 #if HAVE_PTHREADS < 7
23646 #define NULL (void*)0
23649 static void *task(p)
23652 return (void *) (p == NULL);
23659 /* pthread test function */
23660 #ifndef PTHREAD_CREATE_DETACHED
23661 #define PTHREAD_CREATE_DETACHED 1
23665 int detach = PTHREAD_CREATE_DETACHED;
23667 #if HAVE_PTHREADS > 4
23668 /* Final pthreads */
23669 pthread_attr_t attr;
23671 status = pthread_attr_init(&attr);
23672 if( status ) return status;
23674 #if HAVE_PTHREADS < 7
23675 status = pthread_attr_setdetachstate(&attr, &detach);
23676 if( status < 0 ) status = errno;
23678 status = pthread_attr_setdetachstate(&attr, detach);
23680 if( status ) return status;
23681 status = pthread_create( &t, &attr, task, NULL );
23682 #if HAVE_PTHREADS < 7
23683 if( status < 0 ) status = errno;
23685 if( status ) return status;
23687 /* Draft 4 pthreads */
23688 status = pthread_create( &t, pthread_attr_default, task, NULL );
23689 if( status ) return errno;
23691 /* give thread a chance to complete */
23692 /* it should remain joinable and hence detachable */
23695 status = pthread_detach( &t );
23696 if( status ) return errno;
23699 #ifdef HAVE_LINUX_THREADS
23700 pthread_kill_other_threads_np();
23709 rm -f conftest.$ac_objext conftest$ac_exeext
23710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23711 (eval $ac_link) 2>conftest.er1
23713 grep -v '^ *+' conftest.er1 >conftest.err
23715 cat conftest.err >&5
23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23717 (exit $ac_status); } &&
23718 { ac_try='test -z "$ac_c_werror_flag"
23719 || test ! -s conftest.err'
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; } &&
23725 { ac_try='test -s conftest$ac_exeext'
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 ol_cv_pthread_lpthreads_lmach_lexc=yes
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ol_cv_pthread_lpthreads_lmach_lexc=no
23738 rm -f conftest.err conftest.$ac_objext \
23739 conftest$ac_exeext conftest.$ac_ext
23741 cat >conftest.$ac_ext <<_ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23748 /* pthread test headers */
23749 #include <pthread.h>
23750 #if HAVE_PTHREADS < 7
23754 #define NULL (void*)0
23757 static void *task(p)
23760 return (void *) (p == NULL);
23764 int main(argc, argv)
23769 /* pthread test function */
23770 #ifndef PTHREAD_CREATE_DETACHED
23771 #define PTHREAD_CREATE_DETACHED 1
23775 int detach = PTHREAD_CREATE_DETACHED;
23777 #if HAVE_PTHREADS > 4
23778 /* Final pthreads */
23779 pthread_attr_t attr;
23781 status = pthread_attr_init(&attr);
23782 if( status ) return status;
23784 #if HAVE_PTHREADS < 7
23785 status = pthread_attr_setdetachstate(&attr, &detach);
23786 if( status < 0 ) status = errno;
23788 status = pthread_attr_setdetachstate(&attr, detach);
23790 if( status ) return status;
23791 status = pthread_create( &t, &attr, task, NULL );
23792 #if HAVE_PTHREADS < 7
23793 if( status < 0 ) status = errno;
23795 if( status ) return status;
23797 /* Draft 4 pthreads */
23798 status = pthread_create( &t, pthread_attr_default, task, NULL );
23799 if( status ) return errno;
23801 /* give thread a chance to complete */
23802 /* it should remain joinable and hence detachable */
23805 status = pthread_detach( &t );
23806 if( status ) return errno;
23809 #ifdef HAVE_LINUX_THREADS
23810 pthread_kill_other_threads_np();
23818 rm -f conftest$ac_exeext
23819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23820 (eval $ac_link) 2>&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; }; then
23829 ol_cv_pthread_lpthreads_lmach_lexc=yes
23831 echo "$as_me: program exited with status $ac_status" >&5
23832 echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23835 ( exit $ac_status )
23836 ol_cv_pthread_lpthreads_lmach_lexc=no
23838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23845 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23846 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23848 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23849 ol_link_pthreads="-lpthreads -lmach -lexc"
23850 ol_link_threads=posix
23854 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23855 if test "$ol_link_threads" = no ; then
23856 # try -lpthreads -lexc
23857 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23858 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23859 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23865 LIBS="-lpthreads -lexc $LIBS"
23867 if test "$cross_compiling" = yes; then
23868 cat >conftest.$ac_ext <<_ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23875 /* pthread test headers */
23876 #include <pthread.h>
23877 #if HAVE_PTHREADS < 7
23881 #define NULL (void*)0
23884 static void *task(p)
23887 return (void *) (p == NULL);
23894 /* pthread test function */
23895 #ifndef PTHREAD_CREATE_DETACHED
23896 #define PTHREAD_CREATE_DETACHED 1
23900 int detach = PTHREAD_CREATE_DETACHED;
23902 #if HAVE_PTHREADS > 4
23903 /* Final pthreads */
23904 pthread_attr_t attr;
23906 status = pthread_attr_init(&attr);
23907 if( status ) return status;
23909 #if HAVE_PTHREADS < 7
23910 status = pthread_attr_setdetachstate(&attr, &detach);
23911 if( status < 0 ) status = errno;
23913 status = pthread_attr_setdetachstate(&attr, detach);
23915 if( status ) return status;
23916 status = pthread_create( &t, &attr, task, NULL );
23917 #if HAVE_PTHREADS < 7
23918 if( status < 0 ) status = errno;
23920 if( status ) return status;
23922 /* Draft 4 pthreads */
23923 status = pthread_create( &t, pthread_attr_default, task, NULL );
23924 if( status ) return errno;
23926 /* give thread a chance to complete */
23927 /* it should remain joinable and hence detachable */
23930 status = pthread_detach( &t );
23931 if( status ) return errno;
23934 #ifdef HAVE_LINUX_THREADS
23935 pthread_kill_other_threads_np();
23944 rm -f conftest.$ac_objext conftest$ac_exeext
23945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23946 (eval $ac_link) 2>conftest.er1
23948 grep -v '^ *+' conftest.er1 >conftest.err
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } &&
23953 { ac_try='test -z "$ac_c_werror_flag"
23954 || test ! -s conftest.err'
23955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; } &&
23960 { ac_try='test -s conftest$ac_exeext'
23961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962 (eval $ac_try) 2>&5
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); }; }; then
23966 ol_cv_pthread_lpthreads_lexc=yes
23968 echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23971 ol_cv_pthread_lpthreads_lexc=no
23973 rm -f conftest.err conftest.$ac_objext \
23974 conftest$ac_exeext conftest.$ac_ext
23976 cat >conftest.$ac_ext <<_ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23983 /* pthread test headers */
23984 #include <pthread.h>
23985 #if HAVE_PTHREADS < 7
23989 #define NULL (void*)0
23992 static void *task(p)
23995 return (void *) (p == NULL);
23999 int main(argc, argv)
24004 /* pthread test function */
24005 #ifndef PTHREAD_CREATE_DETACHED
24006 #define PTHREAD_CREATE_DETACHED 1
24010 int detach = PTHREAD_CREATE_DETACHED;
24012 #if HAVE_PTHREADS > 4
24013 /* Final pthreads */
24014 pthread_attr_t attr;
24016 status = pthread_attr_init(&attr);
24017 if( status ) return status;
24019 #if HAVE_PTHREADS < 7
24020 status = pthread_attr_setdetachstate(&attr, &detach);
24021 if( status < 0 ) status = errno;
24023 status = pthread_attr_setdetachstate(&attr, detach);
24025 if( status ) return status;
24026 status = pthread_create( &t, &attr, task, NULL );
24027 #if HAVE_PTHREADS < 7
24028 if( status < 0 ) status = errno;
24030 if( status ) return status;
24032 /* Draft 4 pthreads */
24033 status = pthread_create( &t, pthread_attr_default, task, NULL );
24034 if( status ) return errno;
24036 /* give thread a chance to complete */
24037 /* it should remain joinable and hence detachable */
24040 status = pthread_detach( &t );
24041 if( status ) return errno;
24044 #ifdef HAVE_LINUX_THREADS
24045 pthread_kill_other_threads_np();
24053 rm -f conftest$ac_exeext
24054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24055 (eval $ac_link) 2>&5
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; }; then
24064 ol_cv_pthread_lpthreads_lexc=yes
24066 echo "$as_me: program exited with status $ac_status" >&5
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24070 ( exit $ac_status )
24071 ol_cv_pthread_lpthreads_lexc=no
24073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24080 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24081 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24083 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24084 ol_link_pthreads="-lpthreads -lexc"
24085 ol_link_threads=posix
24090 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24091 if test "$ol_link_threads" = no ; then
24093 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24094 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24095 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24096 echo $ECHO_N "(cached) $ECHO_C" >&6
24101 LIBS="-lpthreads $LIBS"
24103 if test "$cross_compiling" = yes; then
24104 cat >conftest.$ac_ext <<_ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h. */
24111 /* pthread test headers */
24112 #include <pthread.h>
24113 #if HAVE_PTHREADS < 7
24117 #define NULL (void*)0
24120 static void *task(p)
24123 return (void *) (p == NULL);
24130 /* pthread test function */
24131 #ifndef PTHREAD_CREATE_DETACHED
24132 #define PTHREAD_CREATE_DETACHED 1
24136 int detach = PTHREAD_CREATE_DETACHED;
24138 #if HAVE_PTHREADS > 4
24139 /* Final pthreads */
24140 pthread_attr_t attr;
24142 status = pthread_attr_init(&attr);
24143 if( status ) return status;
24145 #if HAVE_PTHREADS < 7
24146 status = pthread_attr_setdetachstate(&attr, &detach);
24147 if( status < 0 ) status = errno;
24149 status = pthread_attr_setdetachstate(&attr, detach);
24151 if( status ) return status;
24152 status = pthread_create( &t, &attr, task, NULL );
24153 #if HAVE_PTHREADS < 7
24154 if( status < 0 ) status = errno;
24156 if( status ) return status;
24158 /* Draft 4 pthreads */
24159 status = pthread_create( &t, pthread_attr_default, task, NULL );
24160 if( status ) return errno;
24162 /* give thread a chance to complete */
24163 /* it should remain joinable and hence detachable */
24166 status = pthread_detach( &t );
24167 if( status ) return errno;
24170 #ifdef HAVE_LINUX_THREADS
24171 pthread_kill_other_threads_np();
24180 rm -f conftest.$ac_objext conftest$ac_exeext
24181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24182 (eval $ac_link) 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } &&
24189 { ac_try='test -z "$ac_c_werror_flag"
24190 || test ! -s conftest.err'
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; } &&
24196 { ac_try='test -s conftest$ac_exeext'
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 ol_cv_pthread_lib_lpthreads=yes
24204 echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24207 ol_cv_pthread_lib_lpthreads=no
24209 rm -f conftest.err conftest.$ac_objext \
24210 conftest$ac_exeext conftest.$ac_ext
24212 cat >conftest.$ac_ext <<_ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24219 /* pthread test headers */
24220 #include <pthread.h>
24221 #if HAVE_PTHREADS < 7
24225 #define NULL (void*)0
24228 static void *task(p)
24231 return (void *) (p == NULL);
24235 int main(argc, argv)
24240 /* pthread test function */
24241 #ifndef PTHREAD_CREATE_DETACHED
24242 #define PTHREAD_CREATE_DETACHED 1
24246 int detach = PTHREAD_CREATE_DETACHED;
24248 #if HAVE_PTHREADS > 4
24249 /* Final pthreads */
24250 pthread_attr_t attr;
24252 status = pthread_attr_init(&attr);
24253 if( status ) return status;
24255 #if HAVE_PTHREADS < 7
24256 status = pthread_attr_setdetachstate(&attr, &detach);
24257 if( status < 0 ) status = errno;
24259 status = pthread_attr_setdetachstate(&attr, detach);
24261 if( status ) return status;
24262 status = pthread_create( &t, &attr, task, NULL );
24263 #if HAVE_PTHREADS < 7
24264 if( status < 0 ) status = errno;
24266 if( status ) return status;
24268 /* Draft 4 pthreads */
24269 status = pthread_create( &t, pthread_attr_default, task, NULL );
24270 if( status ) return errno;
24272 /* give thread a chance to complete */
24273 /* it should remain joinable and hence detachable */
24276 status = pthread_detach( &t );
24277 if( status ) return errno;
24280 #ifdef HAVE_LINUX_THREADS
24281 pthread_kill_other_threads_np();
24289 rm -f conftest$ac_exeext
24290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24291 (eval $ac_link) 2>&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24296 (eval $ac_try) 2>&5
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); }; }; then
24300 ol_cv_pthread_lib_lpthreads=yes
24302 echo "$as_me: program exited with status $ac_status" >&5
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24306 ( exit $ac_status )
24307 ol_cv_pthread_lib_lpthreads=no
24309 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24316 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24317 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24319 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24320 ol_link_pthreads="-lpthreads"
24321 ol_link_threads=posix
24326 if test $ol_link_threads != no ; then
24327 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24329 save_CPPFLAGS="$CPPFLAGS"
24331 LIBS="$LTHREAD_LIBS $LIBS"
24336 for ac_func in sched_yield pthread_yield thr_yield
24338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24339 echo "$as_me:$LINENO: checking for $ac_func" >&5
24340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24341 if eval "test \"\${$as_ac_var+set}\" = set"; then
24342 echo $ECHO_N "(cached) $ECHO_C" >&6
24344 cat >conftest.$ac_ext <<_ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24352 #define $ac_func innocuous_$ac_func
24354 /* System header to define __stub macros and hopefully few prototypes,
24355 which can conflict with char $ac_func (); below.
24356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24357 <limits.h> exists even on freestanding compilers. */
24360 # include <limits.h>
24362 # include <assert.h>
24367 /* Override any gcc2 internal prototype to avoid an error. */
24372 /* We use char because int might match the return type of a gcc2
24373 builtin and then its argument prototype would still apply. */
24375 /* The GNU C library defines this for functions which it implements
24376 to always fail with ENOSYS. Some functions are actually named
24377 something starting with __ and the normal name is an alias. */
24378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24381 char (*f) () = $ac_func;
24390 return f != $ac_func;
24395 rm -f conftest.$ac_objext conftest$ac_exeext
24396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24397 (eval $ac_link) 2>conftest.er1
24399 grep -v '^ *+' conftest.er1 >conftest.err
24401 cat conftest.err >&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); } &&
24404 { ac_try='test -z "$ac_c_werror_flag"
24405 || test ! -s conftest.err'
24406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407 (eval $ac_try) 2>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; } &&
24411 { ac_try='test -s conftest$ac_exeext'
24412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413 (eval $ac_try) 2>&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24417 eval "$as_ac_var=yes"
24419 echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24422 eval "$as_ac_var=no"
24424 rm -f conftest.err conftest.$ac_objext \
24425 conftest$ac_exeext conftest.$ac_ext
24427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24429 if test `eval echo '${'$as_ac_var'}'` = yes; then
24430 cat >>confdefs.h <<_ACEOF
24431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24438 if test $ac_cv_func_sched_yield = no &&
24439 test $ac_cv_func_pthread_yield = no &&
24440 test $ac_cv_func_thr_yield = no ; then
24441 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24442 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24443 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24444 echo $ECHO_N "(cached) $ECHO_C" >&6
24446 ac_check_lib_save_LIBS=$LIBS
24448 cat >conftest.$ac_ext <<_ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24455 /* Override any gcc2 internal prototype to avoid an error. */
24459 /* We use char because int might match the return type of a gcc2
24460 builtin and then its argument prototype would still apply. */
24461 char sched_yield ();
24470 rm -f conftest.$ac_objext conftest$ac_exeext
24471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24472 (eval $ac_link) 2>conftest.er1
24474 grep -v '^ *+' conftest.er1 >conftest.err
24476 cat conftest.err >&5
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); } &&
24479 { ac_try='test -z "$ac_c_werror_flag"
24480 || test ! -s conftest.err'
24481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482 (eval $ac_try) 2>&5
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); }; } &&
24486 { ac_try='test -s conftest$ac_exeext'
24487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488 (eval $ac_try) 2>&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; }; then
24492 ac_cv_lib_rt_sched_yield=yes
24494 echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24497 ac_cv_lib_rt_sched_yield=no
24499 rm -f conftest.err conftest.$ac_objext \
24500 conftest$ac_exeext conftest.$ac_ext
24501 LIBS=$ac_check_lib_save_LIBS
24503 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24504 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24505 if test $ac_cv_lib_rt_sched_yield = yes; then
24506 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24508 cat >>confdefs.h <<\_ACEOF
24509 #define HAVE_SCHED_YIELD 1
24512 ac_cv_func_sched_yield=yes
24514 ac_cv_func_sched_yield=no
24518 if test $ac_cv_func_sched_yield = no &&
24519 test $ac_cv_func_pthread_yield = no &&
24520 test "$ac_cv_func_thr_yield" = no ; then
24521 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24522 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24527 for ac_func in pthread_kill pthread_rwlock_destroy
24529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24530 echo "$as_me:$LINENO: checking for $ac_func" >&5
24531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24532 if eval "test \"\${$as_ac_var+set}\" = set"; then
24533 echo $ECHO_N "(cached) $ECHO_C" >&6
24535 cat >conftest.$ac_ext <<_ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24543 #define $ac_func innocuous_$ac_func
24545 /* System header to define __stub macros and hopefully few prototypes,
24546 which can conflict with char $ac_func (); below.
24547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24548 <limits.h> exists even on freestanding compilers. */
24551 # include <limits.h>
24553 # include <assert.h>
24558 /* Override any gcc2 internal prototype to avoid an error. */
24563 /* We use char because int might match the return type of a gcc2
24564 builtin and then its argument prototype would still apply. */
24566 /* The GNU C library defines this for functions which it implements
24567 to always fail with ENOSYS. Some functions are actually named
24568 something starting with __ and the normal name is an alias. */
24569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24572 char (*f) () = $ac_func;
24581 return f != $ac_func;
24586 rm -f conftest.$ac_objext conftest$ac_exeext
24587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24588 (eval $ac_link) 2>conftest.er1
24590 grep -v '^ *+' conftest.er1 >conftest.err
24592 cat conftest.err >&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } &&
24595 { ac_try='test -z "$ac_c_werror_flag"
24596 || test ! -s conftest.err'
24597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598 (eval $ac_try) 2>&5
24600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601 (exit $ac_status); }; } &&
24602 { ac_try='test -s conftest$ac_exeext'
24603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604 (eval $ac_try) 2>&5
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; }; then
24608 eval "$as_ac_var=yes"
24610 echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24613 eval "$as_ac_var=no"
24615 rm -f conftest.err conftest.$ac_objext \
24616 conftest$ac_exeext conftest.$ac_ext
24618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24620 if test `eval echo '${'$as_ac_var'}'` = yes; then
24621 cat >>confdefs.h <<_ACEOF
24622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24629 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24630 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24631 if test "${ol_cv_func_pthread_detach+set}" = set; then
24632 echo $ECHO_N "(cached) $ECHO_C" >&6
24635 cat >conftest.$ac_ext <<_ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24642 #include <pthread.h>
24644 #define NULL (void*)0
24650 pthread_detach(NULL);
24655 rm -f conftest.$ac_objext conftest$ac_exeext
24656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24657 (eval $ac_link) 2>conftest.er1
24659 grep -v '^ *+' conftest.er1 >conftest.err
24661 cat conftest.err >&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } &&
24664 { ac_try='test -z "$ac_c_werror_flag"
24665 || test ! -s conftest.err'
24666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24667 (eval $ac_try) 2>&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; } &&
24671 { ac_try='test -s conftest$ac_exeext'
24672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673 (eval $ac_try) 2>&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; }; then
24677 ol_cv_func_pthread_detach=yes
24679 echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24682 ol_cv_func_pthread_detach=no
24684 rm -f conftest.err conftest.$ac_objext \
24685 conftest$ac_exeext conftest.$ac_ext
24688 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24689 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24691 if test $ol_cv_func_pthread_detach = no ; then
24692 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24693 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24694 { (exit 1); exit 1; }; }
24698 cat >>confdefs.h <<\_ACEOF
24699 #define HAVE_PTHREAD_DETACH 1
24708 pthread_setconcurrency \
24709 pthread_getconcurrency \
24710 thr_setconcurrency \
24711 thr_getconcurrency \
24714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24715 echo "$as_me:$LINENO: checking for $ac_func" >&5
24716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24717 if eval "test \"\${$as_ac_var+set}\" = set"; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24720 cat >conftest.$ac_ext <<_ACEOF
24723 cat confdefs.h >>conftest.$ac_ext
24724 cat >>conftest.$ac_ext <<_ACEOF
24725 /* end confdefs.h. */
24726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24728 #define $ac_func innocuous_$ac_func
24730 /* System header to define __stub macros and hopefully few prototypes,
24731 which can conflict with char $ac_func (); below.
24732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24733 <limits.h> exists even on freestanding compilers. */
24736 # include <limits.h>
24738 # include <assert.h>
24743 /* Override any gcc2 internal prototype to avoid an error. */
24748 /* We use char because int might match the return type of a gcc2
24749 builtin and then its argument prototype would still apply. */
24751 /* The GNU C library defines this for functions which it implements
24752 to always fail with ENOSYS. Some functions are actually named
24753 something starting with __ and the normal name is an alias. */
24754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24757 char (*f) () = $ac_func;
24766 return f != $ac_func;
24771 rm -f conftest.$ac_objext conftest$ac_exeext
24772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24773 (eval $ac_link) 2>conftest.er1
24775 grep -v '^ *+' conftest.er1 >conftest.err
24777 cat conftest.err >&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); } &&
24780 { ac_try='test -z "$ac_c_werror_flag"
24781 || test ! -s conftest.err'
24782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783 (eval $ac_try) 2>&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); }; } &&
24787 { ac_try='test -s conftest$ac_exeext'
24788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789 (eval $ac_try) 2>&5
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); }; }; then
24793 eval "$as_ac_var=yes"
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24798 eval "$as_ac_var=no"
24800 rm -f conftest.err conftest.$ac_objext \
24801 conftest$ac_exeext conftest.$ac_ext
24803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24805 if test `eval echo '${'$as_ac_var'}'` = yes; then
24806 cat >>confdefs.h <<_ACEOF
24807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24816 for ac_func in pthread_kill_other_threads_np
24818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24819 echo "$as_me:$LINENO: checking for $ac_func" >&5
24820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24821 if eval "test \"\${$as_ac_var+set}\" = set"; then
24822 echo $ECHO_N "(cached) $ECHO_C" >&6
24824 cat >conftest.$ac_ext <<_ACEOF
24827 cat confdefs.h >>conftest.$ac_ext
24828 cat >>conftest.$ac_ext <<_ACEOF
24829 /* end confdefs.h. */
24830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24832 #define $ac_func innocuous_$ac_func
24834 /* System header to define __stub macros and hopefully few prototypes,
24835 which can conflict with char $ac_func (); below.
24836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24837 <limits.h> exists even on freestanding compilers. */
24840 # include <limits.h>
24842 # include <assert.h>
24847 /* Override any gcc2 internal prototype to avoid an error. */
24852 /* We use char because int might match the return type of a gcc2
24853 builtin and then its argument prototype would still apply. */
24855 /* The GNU C library defines this for functions which it implements
24856 to always fail with ENOSYS. Some functions are actually named
24857 something starting with __ and the normal name is an alias. */
24858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24861 char (*f) () = $ac_func;
24870 return f != $ac_func;
24875 rm -f conftest.$ac_objext conftest$ac_exeext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877 (eval $ac_link) 2>conftest.er1
24879 grep -v '^ *+' conftest.er1 >conftest.err
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag"
24885 || test ! -s conftest.err'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 eval "$as_ac_var=yes"
24899 echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24902 eval "$as_ac_var=no"
24904 rm -f conftest.err conftest.$ac_objext \
24905 conftest$ac_exeext conftest.$ac_ext
24907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24909 if test `eval echo '${'$as_ac_var'}'` = yes; then
24910 cat >>confdefs.h <<_ACEOF
24911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24917 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24918 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24919 if test "${ol_cv_sys_linux_threads+set}" = set; then
24920 echo $ECHO_N "(cached) $ECHO_C" >&6
24922 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24924 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24925 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24930 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24931 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24932 if test "${ol_cv_linux_threads+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 if test $ol_cv_header_linux_threads = yes &&
24937 test $ol_cv_sys_linux_threads = yes; then
24938 ol_cv_linux_threads=yes
24939 elif test $ol_cv_header_linux_threads = no &&
24940 test $ol_cv_sys_linux_threads = no; then
24941 ol_cv_linux_threads=no
24943 ol_cv_linux_threads=error
24947 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24948 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24951 if test $ol_cv_linux_threads = error; then
24952 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24953 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24954 { (exit 1); exit 1; }; };
24957 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24958 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24959 if test "${ol_cv_pthread_create_works+set}" = set; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24963 if test "$cross_compiling" = yes; then
24964 ol_cv_pthread_create_works=yes
24966 cat >conftest.$ac_ext <<_ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h. */
24973 /* pthread test headers */
24974 #include <pthread.h>
24975 #if HAVE_PTHREADS < 7
24979 #define NULL (void*)0
24982 static void *task(p)
24985 return (void *) (p == NULL);
24989 int main(argc, argv)
24994 /* pthread test function */
24995 #ifndef PTHREAD_CREATE_DETACHED
24996 #define PTHREAD_CREATE_DETACHED 1
25000 int detach = PTHREAD_CREATE_DETACHED;
25002 #if HAVE_PTHREADS > 4
25003 /* Final pthreads */
25004 pthread_attr_t attr;
25006 status = pthread_attr_init(&attr);
25007 if( status ) return status;
25009 #if HAVE_PTHREADS < 7
25010 status = pthread_attr_setdetachstate(&attr, &detach);
25011 if( status < 0 ) status = errno;
25013 status = pthread_attr_setdetachstate(&attr, detach);
25015 if( status ) return status;
25016 status = pthread_create( &t, &attr, task, NULL );
25017 #if HAVE_PTHREADS < 7
25018 if( status < 0 ) status = errno;
25020 if( status ) return status;
25022 /* Draft 4 pthreads */
25023 status = pthread_create( &t, pthread_attr_default, task, NULL );
25024 if( status ) return errno;
25026 /* give thread a chance to complete */
25027 /* it should remain joinable and hence detachable */
25030 status = pthread_detach( &t );
25031 if( status ) return errno;
25034 #ifdef HAVE_LINUX_THREADS
25035 pthread_kill_other_threads_np();
25043 rm -f conftest$ac_exeext
25044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25045 (eval $ac_link) 2>&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050 (eval $ac_try) 2>&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; }; then
25054 ol_cv_pthread_create_works=yes
25056 echo "$as_me: program exited with status $ac_status" >&5
25057 echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25060 ( exit $ac_status )
25061 ol_cv_pthread_create_works=no
25063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25066 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25067 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25069 if test $ol_cv_pthread_create_works = no ; then
25070 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25071 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25072 { (exit 1); exit 1; }; }
25075 ol_replace_broken_yield=no
25077 if test $ol_replace_broken_yield = yes ; then
25079 cat >>confdefs.h <<\_ACEOF
25080 #define REPLACE_BROKEN_YIELD 1
25085 if test $ol_with_yielding_select = auto ; then
25086 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25087 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25088 if test "${ol_cv_pthread_select_yields+set}" = set; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 if test "$cross_compiling" = yes; then
25093 ol_cv_pthread_select_yields=cross
25095 cat >conftest.$ac_ext <<_ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h. */
25102 #include <sys/types.h>
25103 #include <sys/time.h>
25104 #include <unistd.h>
25105 #include <pthread.h>
25107 #define NULL (void*) 0
25110 static int fildes[2];
25112 static void *task(p)
25124 FD_SET(fildes[0], &rfds);
25126 /* we're not interested in any fds */
25127 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25134 exit(0); /* if we exit here, the select blocked the whole process */
25137 int main(argc, argv)
25143 /* create a pipe to select */
25144 if(pipe(&fildes[0])) {
25149 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25150 (void) pthread_setconcurrency(2);
25152 #ifdef HAVE_THR_SETCONCURRENCY
25153 /* Set Solaris LWP concurrency to 2 */
25154 thr_setconcurrency(2);
25158 #if HAVE_PTHREADS < 6
25159 pthread_create(&t, pthread_attr_default, task, NULL);
25161 pthread_create(&t, NULL, task, NULL);
25164 /* make sure task runs first */
25167 #elif defined( HAVE_SCHED_YIELD )
25169 #elif defined( HAVE_PTHREAD_YIELD )
25176 rm -f conftest$ac_exeext
25177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25178 (eval $ac_link) 2>&5
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25183 (eval $ac_try) 2>&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); }; }; then
25187 ol_cv_pthread_select_yields=no
25189 echo "$as_me: program exited with status $ac_status" >&5
25190 echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 ( exit $ac_status )
25194 ol_cv_pthread_select_yields=yes
25196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25199 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25200 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25202 if test $ol_cv_pthread_select_yields = cross ; then
25203 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25204 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25205 { (exit 1); exit 1; }; }
25208 if test $ol_cv_pthread_select_yields = yes ; then
25209 ol_with_yielding_select=yes
25213 CPPFLAGS="$save_CPPFLAGS"
25216 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25217 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25218 { (exit 1); exit 1; }; }
25222 if test $ol_with_threads = posix ; then
25223 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25224 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25225 { (exit 1); exit 1; }; }
25230 case $ol_with_threads in auto | yes | mach)
25234 for ac_header in mach/cthreads.h cthreads.h
25236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25238 echo "$as_me:$LINENO: checking for $ac_header" >&5
25239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25241 echo $ECHO_N "(cached) $ECHO_C" >&6
25243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25246 # Is the header compilable?
25247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25249 cat >conftest.$ac_ext <<_ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h. */
25255 $ac_includes_default
25256 #include <$ac_header>
25258 rm -f conftest.$ac_objext
25259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25260 (eval $ac_compile) 2>conftest.er1
25262 grep -v '^ *+' conftest.er1 >conftest.err
25264 cat conftest.err >&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } &&
25267 { ac_try='test -z "$ac_c_werror_flag"
25268 || test ! -s conftest.err'
25269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270 (eval $ac_try) 2>&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); }; } &&
25274 { ac_try='test -s conftest.$ac_objext'
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; }; then
25280 ac_header_compiler=yes
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25285 ac_header_compiler=no
25287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25289 echo "${ECHO_T}$ac_header_compiler" >&6
25291 # Is the header present?
25292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25294 cat >conftest.$ac_ext <<_ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h. */
25300 #include <$ac_header>
25302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25305 grep -v '^ *+' conftest.er1 >conftest.err
25307 cat conftest.err >&5
25308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309 (exit $ac_status); } >/dev/null; then
25310 if test -s conftest.err; then
25311 ac_cpp_err=$ac_c_preproc_warn_flag
25312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25319 if test -z "$ac_cpp_err"; then
25320 ac_header_preproc=yes
25322 echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25325 ac_header_preproc=no
25327 rm -f conftest.err conftest.$ac_ext
25328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25329 echo "${ECHO_T}$ac_header_preproc" >&6
25331 # So? What about this header?
25332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25338 ac_header_preproc=yes
25341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25355 ## --------------------------------------------- ##
25356 ## Report this to <http://www.openldap.org/its/> ##
25357 ## --------------------------------------------- ##
25360 sed "s/^/$as_me: WARNING: /" >&2
25363 echo "$as_me:$LINENO: checking for $ac_header" >&5
25364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25366 echo $ECHO_N "(cached) $ECHO_C" >&6
25368 eval "$as_ac_Header=\$ac_header_preproc"
25370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25375 cat >>confdefs.h <<_ACEOF
25376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25383 if test $ac_cv_header_mach_cthreads_h = yes ; then
25384 ol_with_threads=found
25386 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25387 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25388 if test "${ac_cv_func_cthread_fork+set}" = set; then
25389 echo $ECHO_N "(cached) $ECHO_C" >&6
25391 cat >conftest.$ac_ext <<_ACEOF
25394 cat confdefs.h >>conftest.$ac_ext
25395 cat >>conftest.$ac_ext <<_ACEOF
25396 /* end confdefs.h. */
25397 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25399 #define cthread_fork innocuous_cthread_fork
25401 /* System header to define __stub macros and hopefully few prototypes,
25402 which can conflict with char cthread_fork (); below.
25403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25404 <limits.h> exists even on freestanding compilers. */
25407 # include <limits.h>
25409 # include <assert.h>
25412 #undef cthread_fork
25414 /* Override any gcc2 internal prototype to avoid an error. */
25419 /* We use char because int might match the return type of a gcc2
25420 builtin and then its argument prototype would still apply. */
25421 char cthread_fork ();
25422 /* The GNU C library defines this for functions which it implements
25423 to always fail with ENOSYS. Some functions are actually named
25424 something starting with __ and the normal name is an alias. */
25425 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25428 char (*f) () = cthread_fork;
25437 return f != cthread_fork;
25442 rm -f conftest.$ac_objext conftest$ac_exeext
25443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25444 (eval $ac_link) 2>conftest.er1
25446 grep -v '^ *+' conftest.er1 >conftest.err
25448 cat conftest.err >&5
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
25451 { ac_try='test -z "$ac_c_werror_flag"
25452 || test ! -s conftest.err'
25453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25454 (eval $ac_try) 2>&5
25456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457 (exit $ac_status); }; } &&
25458 { ac_try='test -s conftest$ac_exeext'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; }; then
25464 ac_cv_func_cthread_fork=yes
25466 echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25469 ac_cv_func_cthread_fork=no
25471 rm -f conftest.err conftest.$ac_objext \
25472 conftest$ac_exeext conftest.$ac_ext
25474 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25475 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25476 if test $ac_cv_func_cthread_fork = yes; then
25477 ol_link_threads=yes
25481 if test $ol_link_threads = no ; then
25482 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25483 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25484 if test "${ol_cv_cthread_all_load+set}" = set; then
25485 echo $ECHO_N "(cached) $ECHO_C" >&6
25489 LIBS="-all_load $LIBS"
25490 cat >conftest.$ac_ext <<_ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h. */
25496 #include <mach/cthreads.h>
25501 cthread_fork((void *)0, (void *)0);
25507 rm -f conftest.$ac_objext conftest$ac_exeext
25508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25509 (eval $ac_link) 2>conftest.er1
25511 grep -v '^ *+' conftest.er1 >conftest.err
25513 cat conftest.err >&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } &&
25516 { ac_try='test -z "$ac_c_werror_flag"
25517 || test ! -s conftest.err'
25518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519 (eval $ac_try) 2>&5
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); }; } &&
25523 { ac_try='test -s conftest$ac_exeext'
25524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25525 (eval $ac_try) 2>&5
25527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528 (exit $ac_status); }; }; then
25529 ol_cv_cthread_all_load=yes
25531 echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25534 ol_cv_cthread_all_load=no
25536 rm -f conftest.err conftest.$ac_objext \
25537 conftest$ac_exeext conftest.$ac_ext
25541 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25542 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25544 if test $ol_cv_cthread_all_load = yes ; then
25545 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25546 ol_link_threads=mach
25547 ol_with_threads=found
25551 elif test $ac_cv_header_cthreads_h = yes ; then
25553 ol_with_threads=found
25556 LIBS="$LIBS -lthreads"
25557 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25558 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25559 if test "${ac_cv_func_cthread_fork+set}" = set; then
25560 echo $ECHO_N "(cached) $ECHO_C" >&6
25562 cat >conftest.$ac_ext <<_ACEOF
25565 cat confdefs.h >>conftest.$ac_ext
25566 cat >>conftest.$ac_ext <<_ACEOF
25567 /* end confdefs.h. */
25568 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25570 #define cthread_fork innocuous_cthread_fork
25572 /* System header to define __stub macros and hopefully few prototypes,
25573 which can conflict with char cthread_fork (); below.
25574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25575 <limits.h> exists even on freestanding compilers. */
25578 # include <limits.h>
25580 # include <assert.h>
25583 #undef cthread_fork
25585 /* Override any gcc2 internal prototype to avoid an error. */
25590 /* We use char because int might match the return type of a gcc2
25591 builtin and then its argument prototype would still apply. */
25592 char cthread_fork ();
25593 /* The GNU C library defines this for functions which it implements
25594 to always fail with ENOSYS. Some functions are actually named
25595 something starting with __ and the normal name is an alias. */
25596 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25599 char (*f) () = cthread_fork;
25608 return f != cthread_fork;
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25615 (eval $ac_link) 2>conftest.er1
25617 grep -v '^ *+' conftest.er1 >conftest.err
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } &&
25622 { ac_try='test -z "$ac_c_werror_flag"
25623 || test ! -s conftest.err'
25624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25625 (eval $ac_try) 2>&5
25627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25628 (exit $ac_status); }; } &&
25629 { ac_try='test -s conftest$ac_exeext'
25630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631 (eval $ac_try) 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; }; then
25635 ac_cv_func_cthread_fork=yes
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 ac_cv_func_cthread_fork=no
25642 rm -f conftest.err conftest.$ac_objext \
25643 conftest$ac_exeext conftest.$ac_ext
25645 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25646 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25647 if test $ac_cv_func_cthread_fork = yes; then
25648 ol_link_threads=yes
25653 if test $ol_link_threads = yes ; then
25654 LTHREAD_LIBS="-lthreads"
25655 ol_link_threads=mach
25656 ol_with_threads=found
25658 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25659 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25660 { (exit 1); exit 1; }; }
25663 elif test $ol_with_threads = mach ; then
25664 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25665 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25666 { (exit 1); exit 1; }; }
25669 if test $ol_link_threads = mach ; then
25671 cat >>confdefs.h <<\_ACEOF
25672 #define HAVE_MACH_CTHREADS 1
25675 elif test $ol_with_threads = found ; then
25676 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25677 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25678 { (exit 1); exit 1; }; }
25683 case $ol_with_threads in auto | yes | pth)
25686 for ac_header in pth.h
25688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25690 echo "$as_me:$LINENO: checking for $ac_header" >&5
25691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
25695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25698 # Is the header compilable?
25699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25701 cat >conftest.$ac_ext <<_ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 $ac_includes_default
25708 #include <$ac_header>
25710 rm -f conftest.$ac_objext
25711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25712 (eval $ac_compile) 2>conftest.er1
25714 grep -v '^ *+' conftest.er1 >conftest.err
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest.$ac_objext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 ac_header_compiler=yes
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 ac_header_compiler=no
25739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25741 echo "${ECHO_T}$ac_header_compiler" >&6
25743 # Is the header present?
25744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25746 cat >conftest.$ac_ext <<_ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h. */
25752 #include <$ac_header>
25754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25757 grep -v '^ *+' conftest.er1 >conftest.err
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); } >/dev/null; then
25762 if test -s conftest.err; then
25763 ac_cpp_err=$ac_c_preproc_warn_flag
25764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25771 if test -z "$ac_cpp_err"; then
25772 ac_header_preproc=yes
25774 echo "$as_me: failed program was:" >&5
25775 sed 's/^/| /' conftest.$ac_ext >&5
25777 ac_header_preproc=no
25779 rm -f conftest.err conftest.$ac_ext
25780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25781 echo "${ECHO_T}$ac_header_preproc" >&6
25783 # So? What about this header?
25784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25790 ac_header_preproc=yes
25793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25807 ## --------------------------------------------- ##
25808 ## Report this to <http://www.openldap.org/its/> ##
25809 ## --------------------------------------------- ##
25812 sed "s/^/$as_me: WARNING: /" >&2
25815 echo "$as_me:$LINENO: checking for $ac_header" >&5
25816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25818 echo $ECHO_N "(cached) $ECHO_C" >&6
25820 eval "$as_ac_Header=\$ac_header_preproc"
25822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25827 cat >>confdefs.h <<_ACEOF
25828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25836 if test $ac_cv_header_pth_h = yes ; then
25837 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25838 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25839 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25842 ac_check_lib_save_LIBS=$LIBS
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25851 /* Override any gcc2 internal prototype to avoid an error. */
25855 /* We use char because int might match the return type of a gcc2
25856 builtin and then its argument prototype would still apply. */
25857 char pth_version ();
25866 rm -f conftest.$ac_objext conftest$ac_exeext
25867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25868 (eval $ac_link) 2>conftest.er1
25870 grep -v '^ *+' conftest.er1 >conftest.err
25872 cat conftest.err >&5
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } &&
25875 { ac_try='test -z "$ac_c_werror_flag"
25876 || test ! -s conftest.err'
25877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878 (eval $ac_try) 2>&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); }; } &&
25882 { ac_try='test -s conftest$ac_exeext'
25883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884 (eval $ac_try) 2>&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; }; then
25888 ac_cv_lib_pth_pth_version=yes
25890 echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25893 ac_cv_lib_pth_pth_version=no
25895 rm -f conftest.err conftest.$ac_objext \
25896 conftest$ac_exeext conftest.$ac_ext
25897 LIBS=$ac_check_lib_save_LIBS
25899 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25900 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25901 if test $ac_cv_lib_pth_pth_version = yes; then
25908 if test $have_pth = yes ; then
25910 cat >>confdefs.h <<\_ACEOF
25911 #define HAVE_GNU_PTH 1
25914 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25915 ol_link_threads=pth
25916 ol_with_threads=found
25918 if test $ol_with_yielding_select = auto ; then
25919 ol_with_yielding_select=yes
25926 case $ol_with_threads in auto | yes | lwp)
25930 for ac_header in thread.h synch.h
25932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25934 echo "$as_me:$LINENO: checking for $ac_header" >&5
25935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25937 echo $ECHO_N "(cached) $ECHO_C" >&6
25939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25942 # Is the header compilable?
25943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25945 cat >conftest.$ac_ext <<_ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25951 $ac_includes_default
25952 #include <$ac_header>
25954 rm -f conftest.$ac_objext
25955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25956 (eval $ac_compile) 2>conftest.er1
25958 grep -v '^ *+' conftest.er1 >conftest.err
25960 cat conftest.err >&5
25961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962 (exit $ac_status); } &&
25963 { ac_try='test -z "$ac_c_werror_flag"
25964 || test ! -s conftest.err'
25965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 (eval $ac_try) 2>&5
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; } &&
25970 { ac_try='test -s conftest.$ac_objext'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; }; then
25976 ac_header_compiler=yes
25978 echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25981 ac_header_compiler=no
25983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25985 echo "${ECHO_T}$ac_header_compiler" >&6
25987 # Is the header present?
25988 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25990 cat >conftest.$ac_ext <<_ACEOF
25993 cat confdefs.h >>conftest.$ac_ext
25994 cat >>conftest.$ac_ext <<_ACEOF
25995 /* end confdefs.h. */
25996 #include <$ac_header>
25998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26001 grep -v '^ *+' conftest.er1 >conftest.err
26003 cat conftest.err >&5
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } >/dev/null; then
26006 if test -s conftest.err; then
26007 ac_cpp_err=$ac_c_preproc_warn_flag
26008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26015 if test -z "$ac_cpp_err"; then
26016 ac_header_preproc=yes
26018 echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26021 ac_header_preproc=no
26023 rm -f conftest.err conftest.$ac_ext
26024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26025 echo "${ECHO_T}$ac_header_preproc" >&6
26027 # So? What about this header?
26028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26034 ac_header_preproc=yes
26037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26051 ## --------------------------------------------- ##
26052 ## Report this to <http://www.openldap.org/its/> ##
26053 ## --------------------------------------------- ##
26056 sed "s/^/$as_me: WARNING: /" >&2
26059 echo "$as_me:$LINENO: checking for $ac_header" >&5
26060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26062 echo $ECHO_N "(cached) $ECHO_C" >&6
26064 eval "$as_ac_Header=\$ac_header_preproc"
26066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26067 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26071 cat >>confdefs.h <<_ACEOF
26072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26079 if test $ac_cv_header_thread_h = yes &&
26080 test $ac_cv_header_synch_h = yes ; then
26081 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26082 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26083 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26084 echo $ECHO_N "(cached) $ECHO_C" >&6
26086 ac_check_lib_save_LIBS=$LIBS
26087 LIBS="-lthread $LIBS"
26088 cat >conftest.$ac_ext <<_ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h. */
26095 /* Override any gcc2 internal prototype to avoid an error. */
26099 /* We use char because int might match the return type of a gcc2
26100 builtin and then its argument prototype would still apply. */
26101 char thr_create ();
26110 rm -f conftest.$ac_objext conftest$ac_exeext
26111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26112 (eval $ac_link) 2>conftest.er1
26114 grep -v '^ *+' conftest.er1 >conftest.err
26116 cat conftest.err >&5
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); } &&
26119 { ac_try='test -z "$ac_c_werror_flag"
26120 || test ! -s conftest.err'
26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122 (eval $ac_try) 2>&5
26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125 (exit $ac_status); }; } &&
26126 { ac_try='test -s conftest$ac_exeext'
26127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128 (eval $ac_try) 2>&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); }; }; then
26132 ac_cv_lib_thread_thr_create=yes
26134 echo "$as_me: failed program was:" >&5
26135 sed 's/^/| /' conftest.$ac_ext >&5
26137 ac_cv_lib_thread_thr_create=no
26139 rm -f conftest.err conftest.$ac_objext \
26140 conftest$ac_exeext conftest.$ac_ext
26141 LIBS=$ac_check_lib_save_LIBS
26143 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26144 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26145 if test $ac_cv_lib_thread_thr_create = yes; then
26152 if test $have_thr = yes ; then
26154 cat >>confdefs.h <<\_ACEOF
26158 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26159 ol_link_threads=thr
26161 if test $ol_with_yielding_select = auto ; then
26162 ol_with_yielding_select=yes
26168 thr_setconcurrency \
26169 thr_getconcurrency \
26172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26173 echo "$as_me:$LINENO: checking for $ac_func" >&5
26174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26175 if eval "test \"\${$as_ac_var+set}\" = set"; then
26176 echo $ECHO_N "(cached) $ECHO_C" >&6
26178 cat >conftest.$ac_ext <<_ACEOF
26181 cat confdefs.h >>conftest.$ac_ext
26182 cat >>conftest.$ac_ext <<_ACEOF
26183 /* end confdefs.h. */
26184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26186 #define $ac_func innocuous_$ac_func
26188 /* System header to define __stub macros and hopefully few prototypes,
26189 which can conflict with char $ac_func (); below.
26190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26191 <limits.h> exists even on freestanding compilers. */
26194 # include <limits.h>
26196 # include <assert.h>
26201 /* Override any gcc2 internal prototype to avoid an error. */
26206 /* We use char because int might match the return type of a gcc2
26207 builtin and then its argument prototype would still apply. */
26209 /* The GNU C library defines this for functions which it implements
26210 to always fail with ENOSYS. Some functions are actually named
26211 something starting with __ and the normal name is an alias. */
26212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26215 char (*f) () = $ac_func;
26224 return f != $ac_func;
26229 rm -f conftest.$ac_objext conftest$ac_exeext
26230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26231 (eval $ac_link) 2>conftest.er1
26233 grep -v '^ *+' conftest.er1 >conftest.err
26235 cat conftest.err >&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } &&
26238 { ac_try='test -z "$ac_c_werror_flag"
26239 || test ! -s conftest.err'
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; } &&
26245 { ac_try='test -s conftest$ac_exeext'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; }; then
26251 eval "$as_ac_var=yes"
26253 echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26256 eval "$as_ac_var=no"
26258 rm -f conftest.err conftest.$ac_objext \
26259 conftest$ac_exeext conftest.$ac_ext
26261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26263 if test `eval echo '${'$as_ac_var'}'` = yes; then
26264 cat >>confdefs.h <<_ACEOF
26265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26275 for ac_header in lwp/lwp.h
26277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26279 echo "$as_me:$LINENO: checking for $ac_header" >&5
26280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26282 echo $ECHO_N "(cached) $ECHO_C" >&6
26284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26287 # Is the header compilable?
26288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26290 cat >conftest.$ac_ext <<_ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26296 $ac_includes_default
26297 #include <$ac_header>
26299 rm -f conftest.$ac_objext
26300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26301 (eval $ac_compile) 2>conftest.er1
26303 grep -v '^ *+' conftest.er1 >conftest.err
26305 cat conftest.err >&5
26306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); } &&
26308 { ac_try='test -z "$ac_c_werror_flag"
26309 || test ! -s conftest.err'
26310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311 (eval $ac_try) 2>&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; } &&
26315 { ac_try='test -s conftest.$ac_objext'
26316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26317 (eval $ac_try) 2>&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); }; }; then
26321 ac_header_compiler=yes
26323 echo "$as_me: failed program was:" >&5
26324 sed 's/^/| /' conftest.$ac_ext >&5
26326 ac_header_compiler=no
26328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26330 echo "${ECHO_T}$ac_header_compiler" >&6
26332 # Is the header present?
26333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26335 cat >conftest.$ac_ext <<_ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h. */
26341 #include <$ac_header>
26343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26346 grep -v '^ *+' conftest.er1 >conftest.err
26348 cat conftest.err >&5
26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26350 (exit $ac_status); } >/dev/null; then
26351 if test -s conftest.err; then
26352 ac_cpp_err=$ac_c_preproc_warn_flag
26353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26360 if test -z "$ac_cpp_err"; then
26361 ac_header_preproc=yes
26363 echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26366 ac_header_preproc=no
26368 rm -f conftest.err conftest.$ac_ext
26369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26370 echo "${ECHO_T}$ac_header_preproc" >&6
26372 # So? What about this header?
26373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26379 ac_header_preproc=yes
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26396 ## --------------------------------------------- ##
26397 ## Report this to <http://www.openldap.org/its/> ##
26398 ## --------------------------------------------- ##
26401 sed "s/^/$as_me: WARNING: /" >&2
26404 echo "$as_me:$LINENO: checking for $ac_header" >&5
26405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26407 echo $ECHO_N "(cached) $ECHO_C" >&6
26409 eval "$as_ac_Header=\$ac_header_preproc"
26411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26416 cat >>confdefs.h <<_ACEOF
26417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26424 if test $ac_cv_header_lwp_lwp_h = yes ; then
26425 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26426 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26427 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26428 echo $ECHO_N "(cached) $ECHO_C" >&6
26430 ac_check_lib_save_LIBS=$LIBS
26432 cat >conftest.$ac_ext <<_ACEOF
26435 cat confdefs.h >>conftest.$ac_ext
26436 cat >>conftest.$ac_ext <<_ACEOF
26437 /* end confdefs.h. */
26439 /* Override any gcc2 internal prototype to avoid an error. */
26443 /* We use char because int might match the return type of a gcc2
26444 builtin and then its argument prototype would still apply. */
26445 char lwp_create ();
26454 rm -f conftest.$ac_objext conftest$ac_exeext
26455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26456 (eval $ac_link) 2>conftest.er1
26458 grep -v '^ *+' conftest.er1 >conftest.err
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } &&
26463 { ac_try='test -z "$ac_c_werror_flag"
26464 || test ! -s conftest.err'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest$ac_exeext'
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476 ac_cv_lib_lwp_lwp_create=yes
26478 echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26481 ac_cv_lib_lwp_lwp_create=no
26483 rm -f conftest.err conftest.$ac_objext \
26484 conftest$ac_exeext conftest.$ac_ext
26485 LIBS=$ac_check_lib_save_LIBS
26487 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26488 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26489 if test $ac_cv_lib_lwp_lwp_create = yes; then
26496 if test $have_lwp = yes ; then
26498 cat >>confdefs.h <<\_ACEOF
26502 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26503 ol_link_threads=lwp
26505 if test $ol_with_yielding_select = auto ; then
26506 ol_with_yielding_select=no
26513 if test $ol_with_yielding_select = yes ; then
26515 cat >>confdefs.h <<\_ACEOF
26516 #define HAVE_YIELDING_SELECT 1
26521 if test $ol_with_threads = manual ; then
26522 ol_link_threads=yes
26524 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26525 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26529 for ac_header in pthread.h sched.h
26531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26533 echo "$as_me:$LINENO: checking for $ac_header" >&5
26534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26536 echo $ECHO_N "(cached) $ECHO_C" >&6
26538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26541 # Is the header compilable?
26542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26544 cat >conftest.$ac_ext <<_ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h. */
26550 $ac_includes_default
26551 #include <$ac_header>
26553 rm -f conftest.$ac_objext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26555 (eval $ac_compile) 2>conftest.er1
26557 grep -v '^ *+' conftest.er1 >conftest.err
26559 cat conftest.err >&5
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); } &&
26562 { ac_try='test -z "$ac_c_werror_flag"
26563 || test ! -s conftest.err'
26564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565 (eval $ac_try) 2>&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); }; } &&
26569 { ac_try='test -s conftest.$ac_objext'
26570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26571 (eval $ac_try) 2>&5
26573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574 (exit $ac_status); }; }; then
26575 ac_header_compiler=yes
26577 echo "$as_me: failed program was:" >&5
26578 sed 's/^/| /' conftest.$ac_ext >&5
26580 ac_header_compiler=no
26582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26584 echo "${ECHO_T}$ac_header_compiler" >&6
26586 # Is the header present?
26587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26589 cat >conftest.$ac_ext <<_ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h. */
26595 #include <$ac_header>
26597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26600 grep -v '^ *+' conftest.er1 >conftest.err
26602 cat conftest.err >&5
26603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604 (exit $ac_status); } >/dev/null; then
26605 if test -s conftest.err; then
26606 ac_cpp_err=$ac_c_preproc_warn_flag
26607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26614 if test -z "$ac_cpp_err"; then
26615 ac_header_preproc=yes
26617 echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26620 ac_header_preproc=no
26622 rm -f conftest.err conftest.$ac_ext
26623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26624 echo "${ECHO_T}$ac_header_preproc" >&6
26626 # So? What about this header?
26627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26633 ac_header_preproc=yes
26636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26650 ## --------------------------------------------- ##
26651 ## Report this to <http://www.openldap.org/its/> ##
26652 ## --------------------------------------------- ##
26655 sed "s/^/$as_me: WARNING: /" >&2
26658 echo "$as_me:$LINENO: checking for $ac_header" >&5
26659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26661 echo $ECHO_N "(cached) $ECHO_C" >&6
26663 eval "$as_ac_Header=\$ac_header_preproc"
26665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26670 cat >>confdefs.h <<_ACEOF
26671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26680 for ac_func in sched_yield pthread_yield
26682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26683 echo "$as_me:$LINENO: checking for $ac_func" >&5
26684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26685 if eval "test \"\${$as_ac_var+set}\" = set"; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26688 cat >conftest.$ac_ext <<_ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h. */
26694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26696 #define $ac_func innocuous_$ac_func
26698 /* System header to define __stub macros and hopefully few prototypes,
26699 which can conflict with char $ac_func (); below.
26700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26701 <limits.h> exists even on freestanding compilers. */
26704 # include <limits.h>
26706 # include <assert.h>
26711 /* Override any gcc2 internal prototype to avoid an error. */
26716 /* We use char because int might match the return type of a gcc2
26717 builtin and then its argument prototype would still apply. */
26719 /* The GNU C library defines this for functions which it implements
26720 to always fail with ENOSYS. Some functions are actually named
26721 something starting with __ and the normal name is an alias. */
26722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26725 char (*f) () = $ac_func;
26734 return f != $ac_func;
26739 rm -f conftest.$ac_objext conftest$ac_exeext
26740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26741 (eval $ac_link) 2>conftest.er1
26743 grep -v '^ *+' conftest.er1 >conftest.err
26745 cat conftest.err >&5
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } &&
26748 { ac_try='test -z "$ac_c_werror_flag"
26749 || test ! -s conftest.err'
26750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751 (eval $ac_try) 2>&5
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; } &&
26755 { ac_try='test -s conftest$ac_exeext'
26756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26757 (eval $ac_try) 2>&5
26759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760 (exit $ac_status); }; }; then
26761 eval "$as_ac_var=yes"
26763 echo "$as_me: failed program was:" >&5
26764 sed 's/^/| /' conftest.$ac_ext >&5
26766 eval "$as_ac_var=no"
26768 rm -f conftest.err conftest.$ac_objext \
26769 conftest$ac_exeext conftest.$ac_ext
26771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26773 if test `eval echo '${'$as_ac_var'}'` = yes; then
26774 cat >>confdefs.h <<_ACEOF
26775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26782 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26783 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26784 if test "${ol_cv_header_linux_threads+set}" = set; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26793 #include <pthread.h>
26795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26796 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26797 ol_cv_header_linux_threads=yes
26799 ol_cv_header_linux_threads=no
26805 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26806 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26807 if test $ol_cv_header_linux_threads = yes; then
26809 cat >>confdefs.h <<\_ACEOF
26810 #define HAVE_LINUX_THREADS 1
26817 for ac_header in mach/cthreads.h
26819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26821 echo "$as_me:$LINENO: checking for $ac_header" >&5
26822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26824 echo $ECHO_N "(cached) $ECHO_C" >&6
26826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26829 # Is the header compilable?
26830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26832 cat >conftest.$ac_ext <<_ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h. */
26838 $ac_includes_default
26839 #include <$ac_header>
26841 rm -f conftest.$ac_objext
26842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26843 (eval $ac_compile) 2>conftest.er1
26845 grep -v '^ *+' conftest.er1 >conftest.err
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } &&
26850 { ac_try='test -z "$ac_c_werror_flag"
26851 || test ! -s conftest.err'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; } &&
26857 { ac_try='test -s conftest.$ac_objext'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
26863 ac_header_compiler=yes
26865 echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26868 ac_header_compiler=no
26870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26872 echo "${ECHO_T}$ac_header_compiler" >&6
26874 # Is the header present?
26875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26877 cat >conftest.$ac_ext <<_ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h. */
26883 #include <$ac_header>
26885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26888 grep -v '^ *+' conftest.er1 >conftest.err
26890 cat conftest.err >&5
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); } >/dev/null; then
26893 if test -s conftest.err; then
26894 ac_cpp_err=$ac_c_preproc_warn_flag
26895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26902 if test -z "$ac_cpp_err"; then
26903 ac_header_preproc=yes
26905 echo "$as_me: failed program was:" >&5
26906 sed 's/^/| /' conftest.$ac_ext >&5
26908 ac_header_preproc=no
26910 rm -f conftest.err conftest.$ac_ext
26911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26912 echo "${ECHO_T}$ac_header_preproc" >&6
26914 # So? What about this header?
26915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26921 ac_header_preproc=yes
26924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26938 ## --------------------------------------------- ##
26939 ## Report this to <http://www.openldap.org/its/> ##
26940 ## --------------------------------------------- ##
26943 sed "s/^/$as_me: WARNING: /" >&2
26946 echo "$as_me:$LINENO: checking for $ac_header" >&5
26947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26949 echo $ECHO_N "(cached) $ECHO_C" >&6
26951 eval "$as_ac_Header=\$ac_header_preproc"
26953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26958 cat >>confdefs.h <<_ACEOF
26959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26967 for ac_header in lwp/lwp.h
26969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26971 echo "$as_me:$LINENO: checking for $ac_header" >&5
26972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26974 echo $ECHO_N "(cached) $ECHO_C" >&6
26976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26979 # Is the header compilable?
26980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26982 cat >conftest.$ac_ext <<_ACEOF
26985 cat confdefs.h >>conftest.$ac_ext
26986 cat >>conftest.$ac_ext <<_ACEOF
26987 /* end confdefs.h. */
26988 $ac_includes_default
26989 #include <$ac_header>
26991 rm -f conftest.$ac_objext
26992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26993 (eval $ac_compile) 2>conftest.er1
26995 grep -v '^ *+' conftest.er1 >conftest.err
26997 cat conftest.err >&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); } &&
27000 { ac_try='test -z "$ac_c_werror_flag"
27001 || test ! -s conftest.err'
27002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003 (eval $ac_try) 2>&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); }; } &&
27007 { ac_try='test -s conftest.$ac_objext'
27008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27009 (eval $ac_try) 2>&5
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); }; }; then
27013 ac_header_compiler=yes
27015 echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27018 ac_header_compiler=no
27020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27022 echo "${ECHO_T}$ac_header_compiler" >&6
27024 # Is the header present?
27025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27027 cat >conftest.$ac_ext <<_ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27033 #include <$ac_header>
27035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27038 grep -v '^ *+' conftest.er1 >conftest.err
27040 cat conftest.err >&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); } >/dev/null; then
27043 if test -s conftest.err; then
27044 ac_cpp_err=$ac_c_preproc_warn_flag
27045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27052 if test -z "$ac_cpp_err"; then
27053 ac_header_preproc=yes
27055 echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27058 ac_header_preproc=no
27060 rm -f conftest.err conftest.$ac_ext
27061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27062 echo "${ECHO_T}$ac_header_preproc" >&6
27064 # So? What about this header?
27065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27071 ac_header_preproc=yes
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27088 ## --------------------------------------------- ##
27089 ## Report this to <http://www.openldap.org/its/> ##
27090 ## --------------------------------------------- ##
27093 sed "s/^/$as_me: WARNING: /" >&2
27096 echo "$as_me:$LINENO: checking for $ac_header" >&5
27097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27099 echo $ECHO_N "(cached) $ECHO_C" >&6
27101 eval "$as_ac_Header=\$ac_header_preproc"
27103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27108 cat >>confdefs.h <<_ACEOF
27109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27118 for ac_header in thread.h synch.h
27120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27122 echo "$as_me:$LINENO: checking for $ac_header" >&5
27123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27125 echo $ECHO_N "(cached) $ECHO_C" >&6
27127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27130 # Is the header compilable?
27131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27133 cat >conftest.$ac_ext <<_ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h. */
27139 $ac_includes_default
27140 #include <$ac_header>
27142 rm -f conftest.$ac_objext
27143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27144 (eval $ac_compile) 2>conftest.er1
27146 grep -v '^ *+' conftest.er1 >conftest.err
27148 cat conftest.err >&5
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); } &&
27151 { ac_try='test -z "$ac_c_werror_flag"
27152 || test ! -s conftest.err'
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; } &&
27158 { ac_try='test -s conftest.$ac_objext'
27159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27160 (eval $ac_try) 2>&5
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); }; }; then
27164 ac_header_compiler=yes
27166 echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27169 ac_header_compiler=no
27171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27173 echo "${ECHO_T}$ac_header_compiler" >&6
27175 # Is the header present?
27176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27178 cat >conftest.$ac_ext <<_ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27184 #include <$ac_header>
27186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27189 grep -v '^ *+' conftest.er1 >conftest.err
27191 cat conftest.err >&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); } >/dev/null; then
27194 if test -s conftest.err; then
27195 ac_cpp_err=$ac_c_preproc_warn_flag
27196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27203 if test -z "$ac_cpp_err"; then
27204 ac_header_preproc=yes
27206 echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27209 ac_header_preproc=no
27211 rm -f conftest.err conftest.$ac_ext
27212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27213 echo "${ECHO_T}$ac_header_preproc" >&6
27215 # So? What about this header?
27216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27222 ac_header_preproc=yes
27225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27239 ## --------------------------------------------- ##
27240 ## Report this to <http://www.openldap.org/its/> ##
27241 ## --------------------------------------------- ##
27244 sed "s/^/$as_me: WARNING: /" >&2
27247 echo "$as_me:$LINENO: checking for $ac_header" >&5
27248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27250 echo $ECHO_N "(cached) $ECHO_C" >&6
27252 eval "$as_ac_Header=\$ac_header_preproc"
27254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27259 cat >>confdefs.h <<_ACEOF
27260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27269 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27270 cat >>confdefs.h <<\_ACEOF
27271 #define REENTRANT 1
27274 cat >>confdefs.h <<\_ACEOF
27275 #define _REENTRANT 1
27278 cat >>confdefs.h <<\_ACEOF
27279 #define THREAD_SAFE 1
27282 cat >>confdefs.h <<\_ACEOF
27283 #define _THREAD_SAFE 1
27286 cat >>confdefs.h <<\_ACEOF
27287 #define THREADSAFE 1
27290 cat >>confdefs.h <<\_ACEOF
27291 #define _THREADSAFE 1
27294 cat >>confdefs.h <<\_ACEOF
27295 #define _SGI_MP_SOURCE 1
27299 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27300 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27301 if test "${ol_cv_errno_thread_specific+set}" = set; then
27302 echo $ECHO_N "(cached) $ECHO_C" >&6
27305 cat >conftest.$ac_ext <<_ACEOF
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h. */
27320 rm -f conftest.$ac_objext conftest$ac_exeext
27321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27322 (eval $ac_link) 2>conftest.er1
27324 grep -v '^ *+' conftest.er1 >conftest.err
27326 cat conftest.err >&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } &&
27329 { ac_try='test -z "$ac_c_werror_flag"
27330 || test ! -s conftest.err'
27331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 (eval $ac_try) 2>&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; } &&
27336 { ac_try='test -s conftest$ac_exeext'
27337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27338 (eval $ac_try) 2>&5
27340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341 (exit $ac_status); }; }; then
27342 ol_cv_errno_thread_specific=yes
27344 echo "$as_me: failed program was:" >&5
27345 sed 's/^/| /' conftest.$ac_ext >&5
27347 ol_cv_errno_thread_specific=no
27349 rm -f conftest.err conftest.$ac_objext \
27350 conftest$ac_exeext conftest.$ac_ext
27353 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27354 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27356 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27357 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27358 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27362 cat >conftest.$ac_ext <<_ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h. */
27377 rm -f conftest.$ac_objext conftest$ac_exeext
27378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27379 (eval $ac_link) 2>conftest.er1
27381 grep -v '^ *+' conftest.er1 >conftest.err
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } &&
27386 { ac_try='test -z "$ac_c_werror_flag"
27387 || test ! -s conftest.err'
27388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389 (eval $ac_try) 2>&5
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; } &&
27393 { ac_try='test -s conftest$ac_exeext'
27394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395 (eval $ac_try) 2>&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; }; then
27399 ol_cv_h_errno_thread_specific=yes
27401 echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27404 ol_cv_h_errno_thread_specific=no
27406 rm -f conftest.err conftest.$ac_objext \
27407 conftest$ac_exeext conftest.$ac_ext
27410 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27411 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27413 if test $ol_cv_errno_thread_specific != yes ||
27414 test $ol_cv_h_errno_thread_specific != yes ; then
27415 LIBS="$LTHREAD_LIBS $LIBS"
27421 if test $ol_link_threads = no ; then
27422 if test $ol_with_threads = yes ; then
27423 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27424 echo "$as_me: error: no suitable thread support" >&2;}
27425 { (exit 1); exit 1; }; }
27428 if test $ol_with_threads = auto ; then
27429 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27430 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27435 cat >>confdefs.h <<\_ACEOF
27436 #define NO_THREADS 1
27445 if test $ol_link_threads != no ; then
27447 cat >>confdefs.h <<\_ACEOF
27448 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27458 gethostbyname_r gethostbyaddr_r \
27461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27462 echo "$as_me:$LINENO: checking for $ac_func" >&5
27463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27464 if eval "test \"\${$as_ac_var+set}\" = set"; then
27465 echo $ECHO_N "(cached) $ECHO_C" >&6
27467 cat >conftest.$ac_ext <<_ACEOF
27470 cat confdefs.h >>conftest.$ac_ext
27471 cat >>conftest.$ac_ext <<_ACEOF
27472 /* end confdefs.h. */
27473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27475 #define $ac_func innocuous_$ac_func
27477 /* System header to define __stub macros and hopefully few prototypes,
27478 which can conflict with char $ac_func (); below.
27479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27480 <limits.h> exists even on freestanding compilers. */
27483 # include <limits.h>
27485 # include <assert.h>
27490 /* Override any gcc2 internal prototype to avoid an error. */
27495 /* We use char because int might match the return type of a gcc2
27496 builtin and then its argument prototype would still apply. */
27498 /* The GNU C library defines this for functions which it implements
27499 to always fail with ENOSYS. Some functions are actually named
27500 something starting with __ and the normal name is an alias. */
27501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27504 char (*f) () = $ac_func;
27513 return f != $ac_func;
27518 rm -f conftest.$ac_objext conftest$ac_exeext
27519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27520 (eval $ac_link) 2>conftest.er1
27522 grep -v '^ *+' conftest.er1 >conftest.err
27524 cat conftest.err >&5
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } &&
27527 { ac_try='test -z "$ac_c_werror_flag"
27528 || test ! -s conftest.err'
27529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530 (eval $ac_try) 2>&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; } &&
27534 { ac_try='test -s conftest$ac_exeext'
27535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27536 (eval $ac_try) 2>&5
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); }; }; then
27540 eval "$as_ac_var=yes"
27542 echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27545 eval "$as_ac_var=no"
27547 rm -f conftest.err conftest.$ac_objext \
27548 conftest$ac_exeext conftest.$ac_ext
27550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27552 if test `eval echo '${'$as_ac_var'}'` = yes; then
27553 cat >>confdefs.h <<_ACEOF
27554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27561 if test "$ac_cv_func_ctime_r" = no ; then
27562 ol_cv_func_ctime_r_nargs=0
27564 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27565 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27566 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27567 echo $ECHO_N "(cached) $ECHO_C" >&6
27569 cat >conftest.$ac_ext <<_ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h. */
27579 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27584 rm -f conftest.$ac_objext
27585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27586 (eval $ac_compile) 2>conftest.er1
27588 grep -v '^ *+' conftest.er1 >conftest.err
27590 cat conftest.err >&5
27591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592 (exit $ac_status); } &&
27593 { ac_try='test -z "$ac_c_werror_flag"
27594 || test ! -s conftest.err'
27595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596 (eval $ac_try) 2>&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; } &&
27600 { ac_try='test -s conftest.$ac_objext'
27601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27602 (eval $ac_try) 2>&5
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; }; then
27606 ol_cv_func_ctime_r_nargs3=yes
27608 echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27611 ol_cv_func_ctime_r_nargs3=no
27613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27615 cat >conftest.$ac_ext <<_ACEOF
27618 cat confdefs.h >>conftest.$ac_ext
27619 cat >>conftest.$ac_ext <<_ACEOF
27620 /* end confdefs.h. */
27625 time_t ti; char *buffer; ctime_r(&ti,buffer);
27630 rm -f conftest.$ac_objext
27631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27632 (eval $ac_compile) 2>conftest.er1
27634 grep -v '^ *+' conftest.er1 >conftest.err
27636 cat conftest.err >&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); } &&
27639 { ac_try='test -z "$ac_c_werror_flag"
27640 || test ! -s conftest.err'
27641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; } &&
27646 { ac_try='test -s conftest.$ac_objext'
27647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648 (eval $ac_try) 2>&5
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; }; then
27652 ol_cv_func_ctime_r_nargs2=yes
27654 echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27657 ol_cv_func_ctime_r_nargs2=no
27659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27661 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27662 test $ol_cv_func_ctime_r_nargs2 = no ; then
27664 ol_cv_func_ctime_r_nargs=3
27666 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27667 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27669 ol_cv_func_ctime_r_nargs=2
27672 ol_cv_func_ctime_r_nargs=0
27676 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27677 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27679 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27681 cat >>confdefs.h <<_ACEOF
27682 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27689 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27690 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27691 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27692 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27693 echo $ECHO_N "(cached) $ECHO_C" >&6
27695 cat >conftest.$ac_ext <<_ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701 #include <sys/types.h>
27702 #include <sys/socket.h>
27703 #include <netinet/in.h>
27705 #define BUFSIZE (sizeof(struct hostent)+10)
27709 struct hostent hent; char buffer[BUFSIZE];
27710 int bufsize=BUFSIZE;int h_errno;
27711 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27712 buffer, bufsize, &h_errno);
27717 rm -f conftest.$ac_objext
27718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27719 (eval $ac_compile) 2>conftest.er1
27721 grep -v '^ *+' conftest.er1 >conftest.err
27723 cat conftest.err >&5
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); } &&
27726 { ac_try='test -z "$ac_c_werror_flag"
27727 || test ! -s conftest.err'
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; } &&
27733 { ac_try='test -s conftest.$ac_objext'
27734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27735 (eval $ac_try) 2>&5
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); }; }; then
27739 ol_cv_func_gethostbyname_r_nargs5=yes
27741 echo "$as_me: failed program was:" >&5
27742 sed 's/^/| /' conftest.$ac_ext >&5
27744 ol_cv_func_gethostbyname_r_nargs5=no
27746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27748 cat >conftest.$ac_ext <<_ACEOF
27751 cat confdefs.h >>conftest.$ac_ext
27752 cat >>conftest.$ac_ext <<_ACEOF
27753 /* end confdefs.h. */
27754 #include <sys/types.h>
27755 #include <sys/socket.h>
27756 #include <netinet/in.h>
27758 #define BUFSIZE (sizeof(struct hostent)+10)
27762 struct hostent hent;struct hostent *rhent;
27763 char buffer[BUFSIZE];
27764 int bufsize=BUFSIZE;int h_errno;
27765 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27771 rm -f conftest.$ac_objext
27772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27773 (eval $ac_compile) 2>conftest.er1
27775 grep -v '^ *+' conftest.er1 >conftest.err
27777 cat conftest.err >&5
27778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779 (exit $ac_status); } &&
27780 { ac_try='test -z "$ac_c_werror_flag"
27781 || test ! -s conftest.err'
27782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783 (eval $ac_try) 2>&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest.$ac_objext'
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
27793 ol_cv_func_gethostbyname_r_nargs6=yes
27795 echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27798 ol_cv_func_gethostbyname_r_nargs6=no
27800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27802 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27803 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27805 ol_cv_func_gethostbyname_r_nargs=5
27807 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27808 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27810 ol_cv_func_gethostbyname_r_nargs=6
27813 ol_cv_func_gethostbyname_r_nargs=0
27817 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27818 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27819 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27821 cat >>confdefs.h <<_ACEOF
27822 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27828 ol_cv_func_gethostbyname_r_nargs=0
27831 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27832 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27833 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27834 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27835 echo $ECHO_N "(cached) $ECHO_C" >&6
27837 cat >conftest.$ac_ext <<_ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h. */
27843 #include <sys/types.h>
27844 #include <sys/socket.h>
27845 #include <netinet/in.h>
27847 #define BUFSIZE (sizeof(struct hostent)+10)
27851 struct hostent hent; char buffer[BUFSIZE];
27852 struct in_addr add;
27853 size_t alen=sizeof(struct in_addr);
27854 int bufsize=BUFSIZE;int h_errno;
27855 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27856 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27861 rm -f conftest.$ac_objext
27862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27863 (eval $ac_compile) 2>conftest.er1
27865 grep -v '^ *+' conftest.er1 >conftest.err
27867 cat conftest.err >&5
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); } &&
27870 { ac_try='test -z "$ac_c_werror_flag"
27871 || test ! -s conftest.err'
27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27873 (eval $ac_try) 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest.$ac_objext'
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; }; then
27883 ol_cv_func_gethostbyaddr_r_nargs7=yes
27885 echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.$ac_ext >&5
27888 ol_cv_func_gethostbyaddr_r_nargs7=no
27890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27892 cat >conftest.$ac_ext <<_ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h. */
27898 #include <sys/types.h>
27899 #include <sys/socket.h>
27900 #include <netinet/in.h>
27902 #define BUFSIZE (sizeof(struct hostent)+10)
27906 struct hostent hent;
27907 struct hostent *rhent; char buffer[BUFSIZE];
27908 struct in_addr add;
27909 size_t alen=sizeof(struct in_addr);
27910 int bufsize=BUFSIZE;int h_errno;
27911 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27912 alen, AF_INET, &hent, buffer, bufsize,
27918 rm -f conftest.$ac_objext
27919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27920 (eval $ac_compile) 2>conftest.er1
27922 grep -v '^ *+' conftest.er1 >conftest.err
27924 cat conftest.err >&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926 (exit $ac_status); } &&
27927 { ac_try='test -z "$ac_c_werror_flag"
27928 || test ! -s conftest.err'
27929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930 (eval $ac_try) 2>&5
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); }; } &&
27934 { ac_try='test -s conftest.$ac_objext'
27935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936 (eval $ac_try) 2>&5
27938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939 (exit $ac_status); }; }; then
27940 ol_cv_func_gethostbyaddr_r_nargs8=yes
27942 echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27945 ol_cv_func_gethostbyaddr_r_nargs8=no
27947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27949 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27950 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27952 ol_cv_func_gethostbyaddr_r_nargs=7
27954 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27955 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27957 ol_cv_func_gethostbyaddr_r_nargs=8
27960 ol_cv_func_gethostbyaddr_r_nargs=0
27964 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27965 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27966 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27968 cat >>confdefs.h <<_ACEOF
27969 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27975 ol_cv_func_gethostbyaddr_r_nargs=0
27980 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27981 ol_cv_berkeley_db=no
27983 for ac_header in db.h
27985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27987 echo "$as_me:$LINENO: checking for $ac_header" >&5
27988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27995 # Is the header compilable?
27996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28004 $ac_includes_default
28005 #include <$ac_header>
28007 rm -f conftest.$ac_objext
28008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28009 (eval $ac_compile) 2>conftest.er1
28011 grep -v '^ *+' conftest.er1 >conftest.err
28013 cat conftest.err >&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); } &&
28016 { ac_try='test -z "$ac_c_werror_flag"
28017 || test ! -s conftest.err'
28018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28019 (eval $ac_try) 2>&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); }; } &&
28023 { ac_try='test -s conftest.$ac_objext'
28024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28025 (eval $ac_try) 2>&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); }; }; then
28029 ac_header_compiler=yes
28031 echo "$as_me: failed program was:" >&5
28032 sed 's/^/| /' conftest.$ac_ext >&5
28034 ac_header_compiler=no
28036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28038 echo "${ECHO_T}$ac_header_compiler" >&6
28040 # Is the header present?
28041 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28042 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28043 cat >conftest.$ac_ext <<_ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h. */
28049 #include <$ac_header>
28051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28054 grep -v '^ *+' conftest.er1 >conftest.err
28056 cat conftest.err >&5
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); } >/dev/null; then
28059 if test -s conftest.err; then
28060 ac_cpp_err=$ac_c_preproc_warn_flag
28061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28068 if test -z "$ac_cpp_err"; then
28069 ac_header_preproc=yes
28071 echo "$as_me: failed program was:" >&5
28072 sed 's/^/| /' conftest.$ac_ext >&5
28074 ac_header_preproc=no
28076 rm -f conftest.err conftest.$ac_ext
28077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28078 echo "${ECHO_T}$ac_header_preproc" >&6
28080 # So? What about this header?
28081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28087 ac_header_preproc=yes
28090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28104 ## --------------------------------------------- ##
28105 ## Report this to <http://www.openldap.org/its/> ##
28106 ## --------------------------------------------- ##
28109 sed "s/^/$as_me: WARNING: /" >&2
28112 echo "$as_me:$LINENO: checking for $ac_header" >&5
28113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
28117 eval "$as_ac_Header=\$ac_header_preproc"
28119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28124 cat >>confdefs.h <<_ACEOF
28125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28132 if test $ac_cv_header_db_h = yes; then
28135 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28136 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28137 if test "${ol_cv_bdb_major+set}" = set; then
28138 echo $ECHO_N "(cached) $ECHO_C" >&6
28142 if test $ol_cv_bdb_major = 0 ; then
28143 cat >conftest.$ac_ext <<_ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h. */
28151 #ifndef DB_VERSION_MAJOR
28152 # define DB_VERSION_MAJOR 1
28154 #if DB_VERSION_MAJOR == 4
28159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28160 $EGREP "__db_version" >/dev/null 2>&1; then
28168 if test $ol_cv_bdb_major = 0 ; then
28169 cat >conftest.$ac_ext <<_ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h. */
28177 #ifndef DB_VERSION_MAJOR
28178 # define DB_VERSION_MAJOR 1
28180 #if DB_VERSION_MAJOR == 3
28185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28186 $EGREP "__db_version" >/dev/null 2>&1; then
28194 if test $ol_cv_bdb_major = 0 ; then
28195 cat >conftest.$ac_ext <<_ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28203 #ifndef DB_VERSION_MAJOR
28204 # define DB_VERSION_MAJOR 1
28206 #if DB_VERSION_MAJOR == 2
28211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28212 $EGREP "__db_version" >/dev/null 2>&1; then
28220 if test $ol_cv_bdb_major = 0 ; then
28221 cat >conftest.$ac_ext <<_ACEOF
28224 cat confdefs.h >>conftest.$ac_ext
28225 cat >>conftest.$ac_ext <<_ACEOF
28226 /* end confdefs.h. */
28229 #ifndef DB_VERSION_MAJOR
28230 # define DB_VERSION_MAJOR 1
28232 #if DB_VERSION_MAJOR == 1
28237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28238 $EGREP "__db_version" >/dev/null 2>&1; then
28247 if test $ol_cv_bdb_major = 0 ; then
28248 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28249 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28250 { (exit 1); exit 1; }; }
28254 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28255 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28257 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28258 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28259 if test "${ol_cv_bdb_minor+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28264 if test $ol_cv_bdb_minor = 0 ; then
28265 cat >conftest.$ac_ext <<_ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h. */
28273 #ifndef DB_VERSION_MINOR
28274 # define DB_VERSION_MINOR 0
28276 #if DB_VERSION_MINOR == 9
28281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28282 $EGREP "__db_version" >/dev/null 2>&1; then
28290 if test $ol_cv_bdb_minor = 0 ; then
28291 cat >conftest.$ac_ext <<_ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h. */
28299 #ifndef DB_VERSION_MINOR
28300 # define DB_VERSION_MINOR 0
28302 #if DB_VERSION_MINOR == 8
28307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28308 $EGREP "__db_version" >/dev/null 2>&1; then
28316 if test $ol_cv_bdb_minor = 0 ; then
28317 cat >conftest.$ac_ext <<_ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h. */
28325 #ifndef DB_VERSION_MINOR
28326 # define DB_VERSION_MINOR 0
28328 #if DB_VERSION_MINOR == 7
28333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28334 $EGREP "__db_version" >/dev/null 2>&1; then
28342 if test $ol_cv_bdb_minor = 0 ; then
28343 cat >conftest.$ac_ext <<_ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28351 #ifndef DB_VERSION_MINOR
28352 # define DB_VERSION_MINOR 0
28354 #if DB_VERSION_MINOR == 6
28359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28360 $EGREP "__db_version" >/dev/null 2>&1; then
28368 if test $ol_cv_bdb_minor = 0 ; then
28369 cat >conftest.$ac_ext <<_ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h. */
28377 #ifndef DB_VERSION_MINOR
28378 # define DB_VERSION_MINOR 0
28380 #if DB_VERSION_MINOR == 5
28385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28386 $EGREP "__db_version" >/dev/null 2>&1; then
28394 if test $ol_cv_bdb_minor = 0 ; then
28395 cat >conftest.$ac_ext <<_ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h. */
28403 #ifndef DB_VERSION_MINOR
28404 # define DB_VERSION_MINOR 0
28406 #if DB_VERSION_MINOR == 4
28411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28412 $EGREP "__db_version" >/dev/null 2>&1; then
28420 if test $ol_cv_bdb_minor = 0 ; then
28421 cat >conftest.$ac_ext <<_ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h. */
28429 #ifndef DB_VERSION_MINOR
28430 # define DB_VERSION_MINOR 0
28432 #if DB_VERSION_MINOR == 3
28437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28438 $EGREP "__db_version" >/dev/null 2>&1; then
28446 if test $ol_cv_bdb_minor = 0 ; then
28447 cat >conftest.$ac_ext <<_ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h. */
28455 #ifndef DB_VERSION_MINOR
28456 # define DB_VERSION_MINOR 0
28458 #if DB_VERSION_MINOR == 2
28463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28464 $EGREP "__db_version" >/dev/null 2>&1; then
28472 if test $ol_cv_bdb_minor = 0 ; then
28473 cat >conftest.$ac_ext <<_ACEOF
28476 cat confdefs.h >>conftest.$ac_ext
28477 cat >>conftest.$ac_ext <<_ACEOF
28478 /* end confdefs.h. */
28481 #ifndef DB_VERSION_MINOR
28482 # define DB_VERSION_MINOR 0
28484 #if DB_VERSION_MINOR == 1
28489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28490 $EGREP "__db_version" >/dev/null 2>&1; then
28500 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28501 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28503 if test $ol_cv_bdb_major = 4 ; then
28504 if test $ol_cv_bdb_minor = 4 ; then
28505 if test $ol_cv_lib_db = no ; then
28506 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28507 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28508 if test "${ol_cv_db_db44+set}" = set; then
28509 echo $ECHO_N "(cached) $ECHO_C" >&6
28514 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28516 cat >conftest.$ac_ext <<_ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h. */
28523 #ifdef HAVE_DB_185_H
28524 # include <db_185.h>
28529 #ifndef DB_VERSION_MAJOR
28530 # define DB_VERSION_MAJOR 1
28534 #define NULL ((void*)0)
28541 #if DB_VERSION_MAJOR > 1
28544 int major, minor, patch;
28546 version = db_version( &major, &minor, &patch );
28548 if( major != DB_VERSION_MAJOR ||
28549 minor < DB_VERSION_MINOR )
28551 printf("Berkeley DB version mismatch\n"
28552 "\theader: %s\n\tlibrary: %s\n",
28553 DB_VERSION_STRING, version);
28559 #if DB_VERSION_MAJOR > 2
28560 db_env_create( NULL, 0 );
28561 #elif DB_VERSION_MAJOR > 1
28562 db_appexit( NULL );
28564 (void) dbopen( NULL, 0, 0, 0, NULL);
28571 rm -f conftest.$ac_objext conftest$ac_exeext
28572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28573 (eval $ac_link) 2>conftest.er1
28575 grep -v '^ *+' conftest.er1 >conftest.err
28577 cat conftest.err >&5
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); } &&
28580 { ac_try='test -z "$ac_c_werror_flag"
28581 || test ! -s conftest.err'
28582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583 (eval $ac_try) 2>&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; } &&
28587 { ac_try='test -s conftest$ac_exeext'
28588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28589 (eval $ac_try) 2>&5
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
28595 echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28600 rm -f conftest.err conftest.$ac_objext \
28601 conftest$ac_exeext conftest.$ac_ext
28606 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28607 echo "${ECHO_T}$ol_cv_db_db44" >&6
28609 if test $ol_cv_db_db44 = yes ; then
28610 ol_cv_lib_db=-ldb44
28614 if test $ol_cv_lib_db = no ; then
28615 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28616 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28617 if test "${ol_cv_db_db_44+set}" = set; then
28618 echo $ECHO_N "(cached) $ECHO_C" >&6
28623 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28625 cat >conftest.$ac_ext <<_ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h. */
28632 #ifdef HAVE_DB_185_H
28633 # include <db_185.h>
28638 #ifndef DB_VERSION_MAJOR
28639 # define DB_VERSION_MAJOR 1
28643 #define NULL ((void*)0)
28650 #if DB_VERSION_MAJOR > 1
28653 int major, minor, patch;
28655 version = db_version( &major, &minor, &patch );
28657 if( major != DB_VERSION_MAJOR ||
28658 minor < DB_VERSION_MINOR )
28660 printf("Berkeley DB version mismatch\n"
28661 "\theader: %s\n\tlibrary: %s\n",
28662 DB_VERSION_STRING, version);
28668 #if DB_VERSION_MAJOR > 2
28669 db_env_create( NULL, 0 );
28670 #elif DB_VERSION_MAJOR > 1
28671 db_appexit( NULL );
28673 (void) dbopen( NULL, 0, 0, 0, NULL);
28680 rm -f conftest.$ac_objext conftest$ac_exeext
28681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28682 (eval $ac_link) 2>conftest.er1
28684 grep -v '^ *+' conftest.er1 >conftest.err
28686 cat conftest.err >&5
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } &&
28689 { ac_try='test -z "$ac_c_werror_flag"
28690 || test ! -s conftest.err'
28691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28692 (eval $ac_try) 2>&5
28694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); }; } &&
28696 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28704 echo "$as_me: failed program was:" >&5
28705 sed 's/^/| /' conftest.$ac_ext >&5
28709 rm -f conftest.err conftest.$ac_objext \
28710 conftest$ac_exeext conftest.$ac_ext
28715 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28716 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28718 if test $ol_cv_db_db_44 = yes ; then
28719 ol_cv_lib_db=-ldb-44
28723 if test $ol_cv_lib_db = no ; then
28724 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28725 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28726 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28727 echo $ECHO_N "(cached) $ECHO_C" >&6
28732 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28734 cat >conftest.$ac_ext <<_ACEOF
28737 cat confdefs.h >>conftest.$ac_ext
28738 cat >>conftest.$ac_ext <<_ACEOF
28739 /* end confdefs.h. */
28741 #ifdef HAVE_DB_185_H
28742 # include <db_185.h>
28747 #ifndef DB_VERSION_MAJOR
28748 # define DB_VERSION_MAJOR 1
28752 #define NULL ((void*)0)
28759 #if DB_VERSION_MAJOR > 1
28762 int major, minor, patch;
28764 version = db_version( &major, &minor, &patch );
28766 if( major != DB_VERSION_MAJOR ||
28767 minor < DB_VERSION_MINOR )
28769 printf("Berkeley DB version mismatch\n"
28770 "\theader: %s\n\tlibrary: %s\n",
28771 DB_VERSION_STRING, version);
28777 #if DB_VERSION_MAJOR > 2
28778 db_env_create( NULL, 0 );
28779 #elif DB_VERSION_MAJOR > 1
28780 db_appexit( NULL );
28782 (void) dbopen( NULL, 0, 0, 0, NULL);
28789 rm -f conftest.$ac_objext conftest$ac_exeext
28790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28791 (eval $ac_link) 2>conftest.er1
28793 grep -v '^ *+' conftest.er1 >conftest.err
28795 cat conftest.err >&5
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } &&
28798 { ac_try='test -z "$ac_c_werror_flag"
28799 || test ! -s conftest.err'
28800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28801 (eval $ac_try) 2>&5
28803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); }; } &&
28805 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28811 ol_cv_db_db_4_dot_4=yes
28813 echo "$as_me: failed program was:" >&5
28814 sed 's/^/| /' conftest.$ac_ext >&5
28816 ol_cv_db_db_4_dot_4=no
28818 rm -f conftest.err conftest.$ac_objext \
28819 conftest$ac_exeext conftest.$ac_ext
28824 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28825 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28827 if test $ol_cv_db_db_4_dot_4 = yes ; then
28828 ol_cv_lib_db=-ldb-4.4
28832 if test $ol_cv_lib_db = no ; then
28833 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28834 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28835 if test "${ol_cv_db_db_4_4+set}" = set; then
28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28841 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28843 cat >conftest.$ac_ext <<_ACEOF
28846 cat confdefs.h >>conftest.$ac_ext
28847 cat >>conftest.$ac_ext <<_ACEOF
28848 /* end confdefs.h. */
28850 #ifdef HAVE_DB_185_H
28851 # include <db_185.h>
28856 #ifndef DB_VERSION_MAJOR
28857 # define DB_VERSION_MAJOR 1
28861 #define NULL ((void*)0)
28868 #if DB_VERSION_MAJOR > 1
28871 int major, minor, patch;
28873 version = db_version( &major, &minor, &patch );
28875 if( major != DB_VERSION_MAJOR ||
28876 minor < DB_VERSION_MINOR )
28878 printf("Berkeley DB version mismatch\n"
28879 "\theader: %s\n\tlibrary: %s\n",
28880 DB_VERSION_STRING, version);
28886 #if DB_VERSION_MAJOR > 2
28887 db_env_create( NULL, 0 );
28888 #elif DB_VERSION_MAJOR > 1
28889 db_appexit( NULL );
28891 (void) dbopen( NULL, 0, 0, 0, NULL);
28898 rm -f conftest.$ac_objext conftest$ac_exeext
28899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28900 (eval $ac_link) 2>conftest.er1
28902 grep -v '^ *+' conftest.er1 >conftest.err
28904 cat conftest.err >&5
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); } &&
28907 { ac_try='test -z "$ac_c_werror_flag"
28908 || test ! -s conftest.err'
28909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910 (eval $ac_try) 2>&5
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; } &&
28914 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28920 ol_cv_db_db_4_4=yes
28922 echo "$as_me: failed program was:" >&5
28923 sed 's/^/| /' conftest.$ac_ext >&5
28927 rm -f conftest.err conftest.$ac_objext \
28928 conftest$ac_exeext conftest.$ac_ext
28933 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28934 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28936 if test $ol_cv_db_db_4_4 = yes ; then
28937 ol_cv_lib_db=-ldb-4-4
28941 elif test $ol_cv_bdb_minor = 3 ; then
28942 if test $ol_cv_lib_db = no ; then
28943 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28944 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28945 if test "${ol_cv_db_db43+set}" = set; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28951 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28953 cat >conftest.$ac_ext <<_ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28960 #ifdef HAVE_DB_185_H
28961 # include <db_185.h>
28966 #ifndef DB_VERSION_MAJOR
28967 # define DB_VERSION_MAJOR 1
28971 #define NULL ((void*)0)
28978 #if DB_VERSION_MAJOR > 1
28981 int major, minor, patch;
28983 version = db_version( &major, &minor, &patch );
28985 if( major != DB_VERSION_MAJOR ||
28986 minor < DB_VERSION_MINOR )
28988 printf("Berkeley DB version mismatch\n"
28989 "\theader: %s\n\tlibrary: %s\n",
28990 DB_VERSION_STRING, version);
28996 #if DB_VERSION_MAJOR > 2
28997 db_env_create( NULL, 0 );
28998 #elif DB_VERSION_MAJOR > 1
28999 db_appexit( NULL );
29001 (void) dbopen( NULL, 0, 0, 0, NULL);
29008 rm -f conftest.$ac_objext conftest$ac_exeext
29009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29010 (eval $ac_link) 2>conftest.er1
29012 grep -v '^ *+' conftest.er1 >conftest.err
29014 cat conftest.err >&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } &&
29017 { ac_try='test -z "$ac_c_werror_flag"
29018 || test ! -s conftest.err'
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; } &&
29024 { ac_try='test -s conftest$ac_exeext'
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; }; then
29032 echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29037 rm -f conftest.err conftest.$ac_objext \
29038 conftest$ac_exeext conftest.$ac_ext
29043 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
29044 echo "${ECHO_T}$ol_cv_db_db43" >&6
29046 if test $ol_cv_db_db43 = yes ; then
29047 ol_cv_lib_db=-ldb43
29051 if test $ol_cv_lib_db = no ; then
29052 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29053 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29054 if test "${ol_cv_db_db_43+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29060 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29062 cat >conftest.$ac_ext <<_ACEOF
29065 cat confdefs.h >>conftest.$ac_ext
29066 cat >>conftest.$ac_ext <<_ACEOF
29067 /* end confdefs.h. */
29069 #ifdef HAVE_DB_185_H
29070 # include <db_185.h>
29075 #ifndef DB_VERSION_MAJOR
29076 # define DB_VERSION_MAJOR 1
29080 #define NULL ((void*)0)
29087 #if DB_VERSION_MAJOR > 1
29090 int major, minor, patch;
29092 version = db_version( &major, &minor, &patch );
29094 if( major != DB_VERSION_MAJOR ||
29095 minor < DB_VERSION_MINOR )
29097 printf("Berkeley DB version mismatch\n"
29098 "\theader: %s\n\tlibrary: %s\n",
29099 DB_VERSION_STRING, version);
29105 #if DB_VERSION_MAJOR > 2
29106 db_env_create( NULL, 0 );
29107 #elif DB_VERSION_MAJOR > 1
29108 db_appexit( NULL );
29110 (void) dbopen( NULL, 0, 0, 0, NULL);
29117 rm -f conftest.$ac_objext conftest$ac_exeext
29118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29119 (eval $ac_link) 2>conftest.er1
29121 grep -v '^ *+' conftest.er1 >conftest.err
29123 cat conftest.err >&5
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
29126 { ac_try='test -z "$ac_c_werror_flag"
29127 || test ! -s conftest.err'
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; } &&
29133 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29146 rm -f conftest.err conftest.$ac_objext \
29147 conftest$ac_exeext conftest.$ac_ext
29152 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29153 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29155 if test $ol_cv_db_db_43 = yes ; then
29156 ol_cv_lib_db=-ldb-43
29160 if test $ol_cv_lib_db = no ; then
29161 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29162 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29163 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29169 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29171 cat >conftest.$ac_ext <<_ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h. */
29178 #ifdef HAVE_DB_185_H
29179 # include <db_185.h>
29184 #ifndef DB_VERSION_MAJOR
29185 # define DB_VERSION_MAJOR 1
29189 #define NULL ((void*)0)
29196 #if DB_VERSION_MAJOR > 1
29199 int major, minor, patch;
29201 version = db_version( &major, &minor, &patch );
29203 if( major != DB_VERSION_MAJOR ||
29204 minor < DB_VERSION_MINOR )
29206 printf("Berkeley DB version mismatch\n"
29207 "\theader: %s\n\tlibrary: %s\n",
29208 DB_VERSION_STRING, version);
29214 #if DB_VERSION_MAJOR > 2
29215 db_env_create( NULL, 0 );
29216 #elif DB_VERSION_MAJOR > 1
29217 db_appexit( NULL );
29219 (void) dbopen( NULL, 0, 0, 0, NULL);
29226 rm -f conftest.$ac_objext conftest$ac_exeext
29227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29228 (eval $ac_link) 2>conftest.er1
29230 grep -v '^ *+' conftest.er1 >conftest.err
29232 cat conftest.err >&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); } &&
29235 { ac_try='test -z "$ac_c_werror_flag"
29236 || test ! -s conftest.err'
29237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238 (eval $ac_try) 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; } &&
29242 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29248 ol_cv_db_db_4_dot_3=yes
29250 echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29253 ol_cv_db_db_4_dot_3=no
29255 rm -f conftest.err conftest.$ac_objext \
29256 conftest$ac_exeext conftest.$ac_ext
29261 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29262 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29264 if test $ol_cv_db_db_4_dot_3 = yes ; then
29265 ol_cv_lib_db=-ldb-4.3
29269 if test $ol_cv_lib_db = no ; then
29270 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29271 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29272 if test "${ol_cv_db_db_4_3+set}" = set; then
29273 echo $ECHO_N "(cached) $ECHO_C" >&6
29278 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29280 cat >conftest.$ac_ext <<_ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h. */
29287 #ifdef HAVE_DB_185_H
29288 # include <db_185.h>
29293 #ifndef DB_VERSION_MAJOR
29294 # define DB_VERSION_MAJOR 1
29298 #define NULL ((void*)0)
29305 #if DB_VERSION_MAJOR > 1
29308 int major, minor, patch;
29310 version = db_version( &major, &minor, &patch );
29312 if( major != DB_VERSION_MAJOR ||
29313 minor < DB_VERSION_MINOR )
29315 printf("Berkeley DB version mismatch\n"
29316 "\theader: %s\n\tlibrary: %s\n",
29317 DB_VERSION_STRING, version);
29323 #if DB_VERSION_MAJOR > 2
29324 db_env_create( NULL, 0 );
29325 #elif DB_VERSION_MAJOR > 1
29326 db_appexit( NULL );
29328 (void) dbopen( NULL, 0, 0, 0, NULL);
29335 rm -f conftest.$ac_objext conftest$ac_exeext
29336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29337 (eval $ac_link) 2>conftest.er1
29339 grep -v '^ *+' conftest.er1 >conftest.err
29341 cat conftest.err >&5
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); } &&
29344 { ac_try='test -z "$ac_c_werror_flag"
29345 || test ! -s conftest.err'
29346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29347 (eval $ac_try) 2>&5
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); }; } &&
29351 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29357 ol_cv_db_db_4_3=yes
29359 echo "$as_me: failed program was:" >&5
29360 sed 's/^/| /' conftest.$ac_ext >&5
29364 rm -f conftest.err conftest.$ac_objext \
29365 conftest$ac_exeext conftest.$ac_ext
29370 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29371 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29373 if test $ol_cv_db_db_4_3 = yes ; then
29374 ol_cv_lib_db=-ldb-4-3
29378 elif test $ol_cv_bdb_minor = 2 ; then
29379 if test $ol_cv_lib_db = no ; then
29380 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29381 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29382 if test "${ol_cv_db_db42+set}" = set; then
29383 echo $ECHO_N "(cached) $ECHO_C" >&6
29388 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29390 cat >conftest.$ac_ext <<_ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h. */
29397 #ifdef HAVE_DB_185_H
29398 # include <db_185.h>
29403 #ifndef DB_VERSION_MAJOR
29404 # define DB_VERSION_MAJOR 1
29408 #define NULL ((void*)0)
29415 #if DB_VERSION_MAJOR > 1
29418 int major, minor, patch;
29420 version = db_version( &major, &minor, &patch );
29422 if( major != DB_VERSION_MAJOR ||
29423 minor < DB_VERSION_MINOR )
29425 printf("Berkeley DB version mismatch\n"
29426 "\theader: %s\n\tlibrary: %s\n",
29427 DB_VERSION_STRING, version);
29433 #if DB_VERSION_MAJOR > 2
29434 db_env_create( NULL, 0 );
29435 #elif DB_VERSION_MAJOR > 1
29436 db_appexit( NULL );
29438 (void) dbopen( NULL, 0, 0, 0, NULL);
29445 rm -f conftest.$ac_objext conftest$ac_exeext
29446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29447 (eval $ac_link) 2>conftest.er1
29449 grep -v '^ *+' conftest.er1 >conftest.err
29451 cat conftest.err >&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } &&
29454 { ac_try='test -z "$ac_c_werror_flag"
29455 || test ! -s conftest.err'
29456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457 (eval $ac_try) 2>&5
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; } &&
29461 { ac_try='test -s conftest$ac_exeext'
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; }; then
29469 echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29474 rm -f conftest.err conftest.$ac_objext \
29475 conftest$ac_exeext conftest.$ac_ext
29480 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29481 echo "${ECHO_T}$ol_cv_db_db42" >&6
29483 if test $ol_cv_db_db42 = yes ; then
29484 ol_cv_lib_db=-ldb42
29488 if test $ol_cv_lib_db = no ; then
29489 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29490 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29491 if test "${ol_cv_db_db_42+set}" = set; then
29492 echo $ECHO_N "(cached) $ECHO_C" >&6
29497 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29499 cat >conftest.$ac_ext <<_ACEOF
29502 cat confdefs.h >>conftest.$ac_ext
29503 cat >>conftest.$ac_ext <<_ACEOF
29504 /* end confdefs.h. */
29506 #ifdef HAVE_DB_185_H
29507 # include <db_185.h>
29512 #ifndef DB_VERSION_MAJOR
29513 # define DB_VERSION_MAJOR 1
29517 #define NULL ((void*)0)
29524 #if DB_VERSION_MAJOR > 1
29527 int major, minor, patch;
29529 version = db_version( &major, &minor, &patch );
29531 if( major != DB_VERSION_MAJOR ||
29532 minor < DB_VERSION_MINOR )
29534 printf("Berkeley DB version mismatch\n"
29535 "\theader: %s\n\tlibrary: %s\n",
29536 DB_VERSION_STRING, version);
29542 #if DB_VERSION_MAJOR > 2
29543 db_env_create( NULL, 0 );
29544 #elif DB_VERSION_MAJOR > 1
29545 db_appexit( NULL );
29547 (void) dbopen( NULL, 0, 0, 0, NULL);
29554 rm -f conftest.$ac_objext conftest$ac_exeext
29555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29556 (eval $ac_link) 2>conftest.er1
29558 grep -v '^ *+' conftest.er1 >conftest.err
29560 cat conftest.err >&5
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); } &&
29563 { ac_try='test -z "$ac_c_werror_flag"
29564 || test ! -s conftest.err'
29565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29566 (eval $ac_try) 2>&5
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); }; } &&
29570 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29578 echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29583 rm -f conftest.err conftest.$ac_objext \
29584 conftest$ac_exeext conftest.$ac_ext
29589 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29590 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29592 if test $ol_cv_db_db_42 = yes ; then
29593 ol_cv_lib_db=-ldb-42
29597 if test $ol_cv_lib_db = no ; then
29598 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29599 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29600 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29601 echo $ECHO_N "(cached) $ECHO_C" >&6
29606 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29608 cat >conftest.$ac_ext <<_ACEOF
29611 cat confdefs.h >>conftest.$ac_ext
29612 cat >>conftest.$ac_ext <<_ACEOF
29613 /* end confdefs.h. */
29615 #ifdef HAVE_DB_185_H
29616 # include <db_185.h>
29621 #ifndef DB_VERSION_MAJOR
29622 # define DB_VERSION_MAJOR 1
29626 #define NULL ((void*)0)
29633 #if DB_VERSION_MAJOR > 1
29636 int major, minor, patch;
29638 version = db_version( &major, &minor, &patch );
29640 if( major != DB_VERSION_MAJOR ||
29641 minor < DB_VERSION_MINOR )
29643 printf("Berkeley DB version mismatch\n"
29644 "\theader: %s\n\tlibrary: %s\n",
29645 DB_VERSION_STRING, version);
29651 #if DB_VERSION_MAJOR > 2
29652 db_env_create( NULL, 0 );
29653 #elif DB_VERSION_MAJOR > 1
29654 db_appexit( NULL );
29656 (void) dbopen( NULL, 0, 0, 0, NULL);
29663 rm -f conftest.$ac_objext conftest$ac_exeext
29664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29665 (eval $ac_link) 2>conftest.er1
29667 grep -v '^ *+' conftest.er1 >conftest.err
29669 cat conftest.err >&5
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); } &&
29672 { ac_try='test -z "$ac_c_werror_flag"
29673 || test ! -s conftest.err'
29674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675 (eval $ac_try) 2>&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; } &&
29679 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29685 ol_cv_db_db_4_dot_2=yes
29687 echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29690 ol_cv_db_db_4_dot_2=no
29692 rm -f conftest.err conftest.$ac_objext \
29693 conftest$ac_exeext conftest.$ac_ext
29698 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29699 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29701 if test $ol_cv_db_db_4_dot_2 = yes ; then
29702 ol_cv_lib_db=-ldb-4.2
29706 if test $ol_cv_lib_db = no ; then
29707 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29708 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29709 if test "${ol_cv_db_db_4_2+set}" = set; then
29710 echo $ECHO_N "(cached) $ECHO_C" >&6
29715 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29717 cat >conftest.$ac_ext <<_ACEOF
29720 cat confdefs.h >>conftest.$ac_ext
29721 cat >>conftest.$ac_ext <<_ACEOF
29722 /* end confdefs.h. */
29724 #ifdef HAVE_DB_185_H
29725 # include <db_185.h>
29730 #ifndef DB_VERSION_MAJOR
29731 # define DB_VERSION_MAJOR 1
29735 #define NULL ((void*)0)
29742 #if DB_VERSION_MAJOR > 1
29745 int major, minor, patch;
29747 version = db_version( &major, &minor, &patch );
29749 if( major != DB_VERSION_MAJOR ||
29750 minor < DB_VERSION_MINOR )
29752 printf("Berkeley DB version mismatch\n"
29753 "\theader: %s\n\tlibrary: %s\n",
29754 DB_VERSION_STRING, version);
29760 #if DB_VERSION_MAJOR > 2
29761 db_env_create( NULL, 0 );
29762 #elif DB_VERSION_MAJOR > 1
29763 db_appexit( NULL );
29765 (void) dbopen( NULL, 0, 0, 0, NULL);
29772 rm -f conftest.$ac_objext conftest$ac_exeext
29773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29774 (eval $ac_link) 2>conftest.er1
29776 grep -v '^ *+' conftest.er1 >conftest.err
29778 cat conftest.err >&5
29779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } &&
29781 { ac_try='test -z "$ac_c_werror_flag"
29782 || test ! -s conftest.err'
29783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29784 (eval $ac_try) 2>&5
29786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); }; } &&
29788 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29794 ol_cv_db_db_4_2=yes
29796 echo "$as_me: failed program was:" >&5
29797 sed 's/^/| /' conftest.$ac_ext >&5
29801 rm -f conftest.err conftest.$ac_objext \
29802 conftest$ac_exeext conftest.$ac_ext
29807 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29808 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29810 if test $ol_cv_db_db_4_2 = yes ; then
29811 ol_cv_lib_db=-ldb-4-2
29815 elif test $ol_cv_bdb_minor = 1 ; then
29816 if test $ol_cv_lib_db = no ; then
29817 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29818 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29819 if test "${ol_cv_db_db41+set}" = set; then
29820 echo $ECHO_N "(cached) $ECHO_C" >&6
29825 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29827 cat >conftest.$ac_ext <<_ACEOF
29830 cat confdefs.h >>conftest.$ac_ext
29831 cat >>conftest.$ac_ext <<_ACEOF
29832 /* end confdefs.h. */
29834 #ifdef HAVE_DB_185_H
29835 # include <db_185.h>
29840 #ifndef DB_VERSION_MAJOR
29841 # define DB_VERSION_MAJOR 1
29845 #define NULL ((void*)0)
29852 #if DB_VERSION_MAJOR > 1
29855 int major, minor, patch;
29857 version = db_version( &major, &minor, &patch );
29859 if( major != DB_VERSION_MAJOR ||
29860 minor < DB_VERSION_MINOR )
29862 printf("Berkeley DB version mismatch\n"
29863 "\theader: %s\n\tlibrary: %s\n",
29864 DB_VERSION_STRING, version);
29870 #if DB_VERSION_MAJOR > 2
29871 db_env_create( NULL, 0 );
29872 #elif DB_VERSION_MAJOR > 1
29873 db_appexit( NULL );
29875 (void) dbopen( NULL, 0, 0, 0, NULL);
29882 rm -f conftest.$ac_objext conftest$ac_exeext
29883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29884 (eval $ac_link) 2>conftest.er1
29886 grep -v '^ *+' conftest.er1 >conftest.err
29888 cat conftest.err >&5
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); } &&
29891 { ac_try='test -z "$ac_c_werror_flag"
29892 || test ! -s conftest.err'
29893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29894 (eval $ac_try) 2>&5
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; } &&
29898 { ac_try='test -s conftest$ac_exeext'
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; }; then
29906 echo "$as_me: failed program was:" >&5
29907 sed 's/^/| /' conftest.$ac_ext >&5
29911 rm -f conftest.err conftest.$ac_objext \
29912 conftest$ac_exeext conftest.$ac_ext
29917 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29918 echo "${ECHO_T}$ol_cv_db_db41" >&6
29920 if test $ol_cv_db_db41 = yes ; then
29921 ol_cv_lib_db=-ldb41
29925 if test $ol_cv_lib_db = no ; then
29926 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29927 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29928 if test "${ol_cv_db_db_41+set}" = set; then
29929 echo $ECHO_N "(cached) $ECHO_C" >&6
29934 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29936 cat >conftest.$ac_ext <<_ACEOF
29939 cat confdefs.h >>conftest.$ac_ext
29940 cat >>conftest.$ac_ext <<_ACEOF
29941 /* end confdefs.h. */
29943 #ifdef HAVE_DB_185_H
29944 # include <db_185.h>
29949 #ifndef DB_VERSION_MAJOR
29950 # define DB_VERSION_MAJOR 1
29954 #define NULL ((void*)0)
29961 #if DB_VERSION_MAJOR > 1
29964 int major, minor, patch;
29966 version = db_version( &major, &minor, &patch );
29968 if( major != DB_VERSION_MAJOR ||
29969 minor < DB_VERSION_MINOR )
29971 printf("Berkeley DB version mismatch\n"
29972 "\theader: %s\n\tlibrary: %s\n",
29973 DB_VERSION_STRING, version);
29979 #if DB_VERSION_MAJOR > 2
29980 db_env_create( NULL, 0 );
29981 #elif DB_VERSION_MAJOR > 1
29982 db_appexit( NULL );
29984 (void) dbopen( NULL, 0, 0, 0, NULL);
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29993 (eval $ac_link) 2>conftest.er1
29995 grep -v '^ *+' conftest.er1 >conftest.err
29997 cat conftest.err >&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); } &&
30000 { ac_try='test -z "$ac_c_werror_flag"
30001 || test ! -s conftest.err'
30002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003 (eval $ac_try) 2>&5
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); }; } &&
30007 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30015 echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30020 rm -f conftest.err conftest.$ac_objext \
30021 conftest$ac_exeext conftest.$ac_ext
30026 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
30027 echo "${ECHO_T}$ol_cv_db_db_41" >&6
30029 if test $ol_cv_db_db_41 = yes ; then
30030 ol_cv_lib_db=-ldb-41
30034 if test $ol_cv_lib_db = no ; then
30035 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
30036 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
30037 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
30038 echo $ECHO_N "(cached) $ECHO_C" >&6
30043 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30045 cat >conftest.$ac_ext <<_ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h. */
30052 #ifdef HAVE_DB_185_H
30053 # include <db_185.h>
30058 #ifndef DB_VERSION_MAJOR
30059 # define DB_VERSION_MAJOR 1
30063 #define NULL ((void*)0)
30070 #if DB_VERSION_MAJOR > 1
30073 int major, minor, patch;
30075 version = db_version( &major, &minor, &patch );
30077 if( major != DB_VERSION_MAJOR ||
30078 minor < DB_VERSION_MINOR )
30080 printf("Berkeley DB version mismatch\n"
30081 "\theader: %s\n\tlibrary: %s\n",
30082 DB_VERSION_STRING, version);
30088 #if DB_VERSION_MAJOR > 2
30089 db_env_create( NULL, 0 );
30090 #elif DB_VERSION_MAJOR > 1
30091 db_appexit( NULL );
30093 (void) dbopen( NULL, 0, 0, 0, NULL);
30100 rm -f conftest.$ac_objext conftest$ac_exeext
30101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30102 (eval $ac_link) 2>conftest.er1
30104 grep -v '^ *+' conftest.er1 >conftest.err
30106 cat conftest.err >&5
30107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108 (exit $ac_status); } &&
30109 { ac_try='test -z "$ac_c_werror_flag"
30110 || test ! -s conftest.err'
30111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112 (eval $ac_try) 2>&5
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30122 ol_cv_db_db_4_dot_1=yes
30124 echo "$as_me: failed program was:" >&5
30125 sed 's/^/| /' conftest.$ac_ext >&5
30127 ol_cv_db_db_4_dot_1=no
30129 rm -f conftest.err conftest.$ac_objext \
30130 conftest$ac_exeext conftest.$ac_ext
30135 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30136 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30138 if test $ol_cv_db_db_4_dot_1 = yes ; then
30139 ol_cv_lib_db=-ldb-4.1
30143 if test $ol_cv_lib_db = no ; then
30144 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30145 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30146 if test "${ol_cv_db_db_4_1+set}" = set; then
30147 echo $ECHO_N "(cached) $ECHO_C" >&6
30152 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30154 cat >conftest.$ac_ext <<_ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h. */
30161 #ifdef HAVE_DB_185_H
30162 # include <db_185.h>
30167 #ifndef DB_VERSION_MAJOR
30168 # define DB_VERSION_MAJOR 1
30172 #define NULL ((void*)0)
30179 #if DB_VERSION_MAJOR > 1
30182 int major, minor, patch;
30184 version = db_version( &major, &minor, &patch );
30186 if( major != DB_VERSION_MAJOR ||
30187 minor < DB_VERSION_MINOR )
30189 printf("Berkeley DB version mismatch\n"
30190 "\theader: %s\n\tlibrary: %s\n",
30191 DB_VERSION_STRING, version);
30197 #if DB_VERSION_MAJOR > 2
30198 db_env_create( NULL, 0 );
30199 #elif DB_VERSION_MAJOR > 1
30200 db_appexit( NULL );
30202 (void) dbopen( NULL, 0, 0, 0, NULL);
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30211 (eval $ac_link) 2>conftest.er1
30213 grep -v '^ *+' conftest.er1 >conftest.err
30215 cat conftest.err >&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } &&
30218 { ac_try='test -z "$ac_c_werror_flag"
30219 || test ! -s conftest.err'
30220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30221 (eval $ac_try) 2>&5
30223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224 (exit $ac_status); }; } &&
30225 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
30231 ol_cv_db_db_4_1=yes
30233 echo "$as_me: failed program was:" >&5
30234 sed 's/^/| /' conftest.$ac_ext >&5
30238 rm -f conftest.err conftest.$ac_objext \
30239 conftest$ac_exeext conftest.$ac_ext
30244 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30245 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30247 if test $ol_cv_db_db_4_1 = yes ; then
30248 ol_cv_lib_db=-ldb-4-1
30253 if test $ol_cv_lib_db = no ; then
30254 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30255 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30256 if test "${ol_cv_db_db_4+set}" = set; then
30257 echo $ECHO_N "(cached) $ECHO_C" >&6
30262 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30264 cat >conftest.$ac_ext <<_ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h. */
30271 #ifdef HAVE_DB_185_H
30272 # include <db_185.h>
30277 #ifndef DB_VERSION_MAJOR
30278 # define DB_VERSION_MAJOR 1
30282 #define NULL ((void*)0)
30289 #if DB_VERSION_MAJOR > 1
30292 int major, minor, patch;
30294 version = db_version( &major, &minor, &patch );
30296 if( major != DB_VERSION_MAJOR ||
30297 minor < DB_VERSION_MINOR )
30299 printf("Berkeley DB version mismatch\n"
30300 "\theader: %s\n\tlibrary: %s\n",
30301 DB_VERSION_STRING, version);
30307 #if DB_VERSION_MAJOR > 2
30308 db_env_create( NULL, 0 );
30309 #elif DB_VERSION_MAJOR > 1
30310 db_appexit( NULL );
30312 (void) dbopen( NULL, 0, 0, 0, NULL);
30319 rm -f conftest.$ac_objext conftest$ac_exeext
30320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30321 (eval $ac_link) 2>conftest.er1
30323 grep -v '^ *+' conftest.er1 >conftest.err
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); } &&
30328 { ac_try='test -z "$ac_c_werror_flag"
30329 || test ! -s conftest.err'
30330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30331 (eval $ac_try) 2>&5
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; } &&
30335 { ac_try='test -s conftest$ac_exeext'
30336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30337 (eval $ac_try) 2>&5
30339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340 (exit $ac_status); }; }; then
30343 echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30348 rm -f conftest.err conftest.$ac_objext \
30349 conftest$ac_exeext conftest.$ac_ext
30354 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30355 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30357 if test $ol_cv_db_db_4 = yes ; then
30358 ol_cv_lib_db=-ldb-4
30362 if test $ol_cv_lib_db = no ; then
30363 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30364 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30365 if test "${ol_cv_db_db4+set}" = set; then
30366 echo $ECHO_N "(cached) $ECHO_C" >&6
30371 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30373 cat >conftest.$ac_ext <<_ACEOF
30376 cat confdefs.h >>conftest.$ac_ext
30377 cat >>conftest.$ac_ext <<_ACEOF
30378 /* end confdefs.h. */
30380 #ifdef HAVE_DB_185_H
30381 # include <db_185.h>
30386 #ifndef DB_VERSION_MAJOR
30387 # define DB_VERSION_MAJOR 1
30391 #define NULL ((void*)0)
30398 #if DB_VERSION_MAJOR > 1
30401 int major, minor, patch;
30403 version = db_version( &major, &minor, &patch );
30405 if( major != DB_VERSION_MAJOR ||
30406 minor < DB_VERSION_MINOR )
30408 printf("Berkeley DB version mismatch\n"
30409 "\theader: %s\n\tlibrary: %s\n",
30410 DB_VERSION_STRING, version);
30416 #if DB_VERSION_MAJOR > 2
30417 db_env_create( NULL, 0 );
30418 #elif DB_VERSION_MAJOR > 1
30419 db_appexit( NULL );
30421 (void) dbopen( NULL, 0, 0, 0, NULL);
30428 rm -f conftest.$ac_objext conftest$ac_exeext
30429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30430 (eval $ac_link) 2>conftest.er1
30432 grep -v '^ *+' conftest.er1 >conftest.err
30434 cat conftest.err >&5
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); } &&
30437 { ac_try='test -z "$ac_c_werror_flag"
30438 || test ! -s conftest.err'
30439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440 (eval $ac_try) 2>&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); }; } &&
30444 { ac_try='test -s conftest$ac_exeext'
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; }; then
30452 echo "$as_me: failed program was:" >&5
30453 sed 's/^/| /' conftest.$ac_ext >&5
30457 rm -f conftest.err conftest.$ac_objext \
30458 conftest$ac_exeext conftest.$ac_ext
30463 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30464 echo "${ECHO_T}$ol_cv_db_db4" >&6
30466 if test $ol_cv_db_db4 = yes ; then
30471 if test $ol_cv_lib_db = no ; then
30472 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30473 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30474 if test "${ol_cv_db_db+set}" = set; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30480 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30482 cat >conftest.$ac_ext <<_ACEOF
30485 cat confdefs.h >>conftest.$ac_ext
30486 cat >>conftest.$ac_ext <<_ACEOF
30487 /* end confdefs.h. */
30489 #ifdef HAVE_DB_185_H
30490 # include <db_185.h>
30495 #ifndef DB_VERSION_MAJOR
30496 # define DB_VERSION_MAJOR 1
30500 #define NULL ((void*)0)
30507 #if DB_VERSION_MAJOR > 1
30510 int major, minor, patch;
30512 version = db_version( &major, &minor, &patch );
30514 if( major != DB_VERSION_MAJOR ||
30515 minor < DB_VERSION_MINOR )
30517 printf("Berkeley DB version mismatch\n"
30518 "\theader: %s\n\tlibrary: %s\n",
30519 DB_VERSION_STRING, version);
30525 #if DB_VERSION_MAJOR > 2
30526 db_env_create( NULL, 0 );
30527 #elif DB_VERSION_MAJOR > 1
30528 db_appexit( NULL );
30530 (void) dbopen( NULL, 0, 0, 0, NULL);
30537 rm -f conftest.$ac_objext conftest$ac_exeext
30538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30539 (eval $ac_link) 2>conftest.er1
30541 grep -v '^ *+' conftest.er1 >conftest.err
30543 cat conftest.err >&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); } &&
30546 { ac_try='test -z "$ac_c_werror_flag"
30547 || test ! -s conftest.err'
30548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30549 (eval $ac_try) 2>&5
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; } &&
30553 { ac_try='test -s conftest$ac_exeext'
30554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30555 (eval $ac_try) 2>&5
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; }; then
30561 echo "$as_me: failed program was:" >&5
30562 sed 's/^/| /' conftest.$ac_ext >&5
30566 rm -f conftest.err conftest.$ac_objext \
30567 conftest$ac_exeext conftest.$ac_ext
30572 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30573 echo "${ECHO_T}$ol_cv_db_db" >&6
30575 if test $ol_cv_db_db = yes ; then
30581 elif test $ol_cv_bdb_major = 3 ; then
30582 if test $ol_cv_lib_db = no ; then
30583 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30584 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30585 if test "${ol_cv_db_db3+set}" = set; then
30586 echo $ECHO_N "(cached) $ECHO_C" >&6
30591 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30593 cat >conftest.$ac_ext <<_ACEOF
30596 cat confdefs.h >>conftest.$ac_ext
30597 cat >>conftest.$ac_ext <<_ACEOF
30598 /* end confdefs.h. */
30600 #ifdef HAVE_DB_185_H
30601 # include <db_185.h>
30606 #ifndef DB_VERSION_MAJOR
30607 # define DB_VERSION_MAJOR 1
30611 #define NULL ((void*)0)
30618 #if DB_VERSION_MAJOR > 1
30621 int major, minor, patch;
30623 version = db_version( &major, &minor, &patch );
30625 if( major != DB_VERSION_MAJOR ||
30626 minor < DB_VERSION_MINOR )
30628 printf("Berkeley DB version mismatch\n"
30629 "\theader: %s\n\tlibrary: %s\n",
30630 DB_VERSION_STRING, version);
30636 #if DB_VERSION_MAJOR > 2
30637 db_env_create( NULL, 0 );
30638 #elif DB_VERSION_MAJOR > 1
30639 db_appexit( NULL );
30641 (void) dbopen( NULL, 0, 0, 0, NULL);
30648 rm -f conftest.$ac_objext conftest$ac_exeext
30649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30650 (eval $ac_link) 2>conftest.er1
30652 grep -v '^ *+' conftest.er1 >conftest.err
30654 cat conftest.err >&5
30655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30656 (exit $ac_status); } &&
30657 { ac_try='test -z "$ac_c_werror_flag"
30658 || test ! -s conftest.err'
30659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30660 (eval $ac_try) 2>&5
30662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663 (exit $ac_status); }; } &&
30664 { ac_try='test -s conftest$ac_exeext'
30665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30666 (eval $ac_try) 2>&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; }; then
30672 echo "$as_me: failed program was:" >&5
30673 sed 's/^/| /' conftest.$ac_ext >&5
30677 rm -f conftest.err conftest.$ac_objext \
30678 conftest$ac_exeext conftest.$ac_ext
30683 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30684 echo "${ECHO_T}$ol_cv_db_db3" >&6
30686 if test $ol_cv_db_db3 = yes ; then
30691 if test $ol_cv_lib_db = no ; then
30692 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30693 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30694 if test "${ol_cv_db_db_3+set}" = set; then
30695 echo $ECHO_N "(cached) $ECHO_C" >&6
30700 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30702 cat >conftest.$ac_ext <<_ACEOF
30705 cat confdefs.h >>conftest.$ac_ext
30706 cat >>conftest.$ac_ext <<_ACEOF
30707 /* end confdefs.h. */
30709 #ifdef HAVE_DB_185_H
30710 # include <db_185.h>
30715 #ifndef DB_VERSION_MAJOR
30716 # define DB_VERSION_MAJOR 1
30720 #define NULL ((void*)0)
30727 #if DB_VERSION_MAJOR > 1
30730 int major, minor, patch;
30732 version = db_version( &major, &minor, &patch );
30734 if( major != DB_VERSION_MAJOR ||
30735 minor < DB_VERSION_MINOR )
30737 printf("Berkeley DB version mismatch\n"
30738 "\theader: %s\n\tlibrary: %s\n",
30739 DB_VERSION_STRING, version);
30745 #if DB_VERSION_MAJOR > 2
30746 db_env_create( NULL, 0 );
30747 #elif DB_VERSION_MAJOR > 1
30748 db_appexit( NULL );
30750 (void) dbopen( NULL, 0, 0, 0, NULL);
30757 rm -f conftest.$ac_objext conftest$ac_exeext
30758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30759 (eval $ac_link) 2>conftest.er1
30761 grep -v '^ *+' conftest.er1 >conftest.err
30763 cat conftest.err >&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); } &&
30766 { ac_try='test -z "$ac_c_werror_flag"
30767 || test ! -s conftest.err'
30768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769 (eval $ac_try) 2>&5
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); }; } &&
30773 { ac_try='test -s conftest$ac_exeext'
30774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775 (eval $ac_try) 2>&5
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; }; then
30781 echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.$ac_ext >&5
30786 rm -f conftest.err conftest.$ac_objext \
30787 conftest$ac_exeext conftest.$ac_ext
30792 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30793 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30795 if test $ol_cv_db_db_3 = yes ; then
30796 ol_cv_lib_db=-ldb-3
30801 elif test $ol_cv_bdb_major = 2 ; then
30802 if test $ol_cv_lib_db = no ; then
30803 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30804 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30805 if test "${ol_cv_db_db2+set}" = set; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
30811 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30813 cat >conftest.$ac_ext <<_ACEOF
30816 cat confdefs.h >>conftest.$ac_ext
30817 cat >>conftest.$ac_ext <<_ACEOF
30818 /* end confdefs.h. */
30820 #ifdef HAVE_DB_185_H
30821 # include <db_185.h>
30826 #ifndef DB_VERSION_MAJOR
30827 # define DB_VERSION_MAJOR 1
30831 #define NULL ((void*)0)
30838 #if DB_VERSION_MAJOR > 1
30841 int major, minor, patch;
30843 version = db_version( &major, &minor, &patch );
30845 if( major != DB_VERSION_MAJOR ||
30846 minor < DB_VERSION_MINOR )
30848 printf("Berkeley DB version mismatch\n"
30849 "\theader: %s\n\tlibrary: %s\n",
30850 DB_VERSION_STRING, version);
30856 #if DB_VERSION_MAJOR > 2
30857 db_env_create( NULL, 0 );
30858 #elif DB_VERSION_MAJOR > 1
30859 db_appexit( NULL );
30861 (void) dbopen( NULL, 0, 0, 0, NULL);
30868 rm -f conftest.$ac_objext conftest$ac_exeext
30869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30870 (eval $ac_link) 2>conftest.er1
30872 grep -v '^ *+' conftest.er1 >conftest.err
30874 cat conftest.err >&5
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); } &&
30877 { ac_try='test -z "$ac_c_werror_flag"
30878 || test ! -s conftest.err'
30879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30880 (eval $ac_try) 2>&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; } &&
30884 { ac_try='test -s conftest$ac_exeext'
30885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886 (eval $ac_try) 2>&5
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); }; }; then
30892 echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30897 rm -f conftest.err conftest.$ac_objext \
30898 conftest$ac_exeext conftest.$ac_ext
30903 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30904 echo "${ECHO_T}$ol_cv_db_db2" >&6
30906 if test $ol_cv_db_db2 = yes ; then
30911 if test $ol_cv_lib_db = no ; then
30912 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30913 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30914 if test "${ol_cv_db_db_2+set}" = set; then
30915 echo $ECHO_N "(cached) $ECHO_C" >&6
30920 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30922 cat >conftest.$ac_ext <<_ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h. */
30929 #ifdef HAVE_DB_185_H
30930 # include <db_185.h>
30935 #ifndef DB_VERSION_MAJOR
30936 # define DB_VERSION_MAJOR 1
30940 #define NULL ((void*)0)
30947 #if DB_VERSION_MAJOR > 1
30950 int major, minor, patch;
30952 version = db_version( &major, &minor, &patch );
30954 if( major != DB_VERSION_MAJOR ||
30955 minor < DB_VERSION_MINOR )
30957 printf("Berkeley DB version mismatch\n"
30958 "\theader: %s\n\tlibrary: %s\n",
30959 DB_VERSION_STRING, version);
30965 #if DB_VERSION_MAJOR > 2
30966 db_env_create( NULL, 0 );
30967 #elif DB_VERSION_MAJOR > 1
30968 db_appexit( NULL );
30970 (void) dbopen( NULL, 0, 0, 0, NULL);
30977 rm -f conftest.$ac_objext conftest$ac_exeext
30978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30979 (eval $ac_link) 2>conftest.er1
30981 grep -v '^ *+' conftest.er1 >conftest.err
30983 cat conftest.err >&5
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); } &&
30986 { ac_try='test -z "$ac_c_werror_flag"
30987 || test ! -s conftest.err'
30988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989 (eval $ac_try) 2>&5
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; } &&
30993 { ac_try='test -s conftest$ac_exeext'
30994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30995 (eval $ac_try) 2>&5
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); }; }; then
31001 echo "$as_me: failed program was:" >&5
31002 sed 's/^/| /' conftest.$ac_ext >&5
31006 rm -f conftest.err conftest.$ac_objext \
31007 conftest$ac_exeext conftest.$ac_ext
31012 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
31013 echo "${ECHO_T}$ol_cv_db_db_2" >&6
31015 if test $ol_cv_db_db_2 = yes ; then
31016 ol_cv_lib_db=-ldb-2
31021 elif test $ol_cv_bdb_major = 1 ; then
31022 if test $ol_cv_lib_db = no ; then
31023 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
31024 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
31025 if test "${ol_cv_db_db1+set}" = set; then
31026 echo $ECHO_N "(cached) $ECHO_C" >&6
31031 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31033 cat >conftest.$ac_ext <<_ACEOF
31036 cat confdefs.h >>conftest.$ac_ext
31037 cat >>conftest.$ac_ext <<_ACEOF
31038 /* end confdefs.h. */
31040 #ifdef HAVE_DB_185_H
31041 # include <db_185.h>
31046 #ifndef DB_VERSION_MAJOR
31047 # define DB_VERSION_MAJOR 1
31051 #define NULL ((void*)0)
31058 #if DB_VERSION_MAJOR > 1
31061 int major, minor, patch;
31063 version = db_version( &major, &minor, &patch );
31065 if( major != DB_VERSION_MAJOR ||
31066 minor < DB_VERSION_MINOR )
31068 printf("Berkeley DB version mismatch\n"
31069 "\theader: %s\n\tlibrary: %s\n",
31070 DB_VERSION_STRING, version);
31076 #if DB_VERSION_MAJOR > 2
31077 db_env_create( NULL, 0 );
31078 #elif DB_VERSION_MAJOR > 1
31079 db_appexit( NULL );
31081 (void) dbopen( NULL, 0, 0, 0, NULL);
31088 rm -f conftest.$ac_objext conftest$ac_exeext
31089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31090 (eval $ac_link) 2>conftest.er1
31092 grep -v '^ *+' conftest.er1 >conftest.err
31094 cat conftest.err >&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); } &&
31097 { ac_try='test -z "$ac_c_werror_flag"
31098 || test ! -s conftest.err'
31099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31100 (eval $ac_try) 2>&5
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103 (exit $ac_status); }; } &&
31104 { ac_try='test -s conftest$ac_exeext'
31105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31106 (eval $ac_try) 2>&5
31108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109 (exit $ac_status); }; }; then
31112 echo "$as_me: failed program was:" >&5
31113 sed 's/^/| /' conftest.$ac_ext >&5
31117 rm -f conftest.err conftest.$ac_objext \
31118 conftest$ac_exeext conftest.$ac_ext
31123 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31124 echo "${ECHO_T}$ol_cv_db_db1" >&6
31126 if test $ol_cv_db_db1 = yes ; then
31131 if test $ol_cv_lib_db = no ; then
31132 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31133 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31134 if test "${ol_cv_db_db_1+set}" = set; then
31135 echo $ECHO_N "(cached) $ECHO_C" >&6
31140 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31142 cat >conftest.$ac_ext <<_ACEOF
31145 cat confdefs.h >>conftest.$ac_ext
31146 cat >>conftest.$ac_ext <<_ACEOF
31147 /* end confdefs.h. */
31149 #ifdef HAVE_DB_185_H
31150 # include <db_185.h>
31155 #ifndef DB_VERSION_MAJOR
31156 # define DB_VERSION_MAJOR 1
31160 #define NULL ((void*)0)
31167 #if DB_VERSION_MAJOR > 1
31170 int major, minor, patch;
31172 version = db_version( &major, &minor, &patch );
31174 if( major != DB_VERSION_MAJOR ||
31175 minor < DB_VERSION_MINOR )
31177 printf("Berkeley DB version mismatch\n"
31178 "\theader: %s\n\tlibrary: %s\n",
31179 DB_VERSION_STRING, version);
31185 #if DB_VERSION_MAJOR > 2
31186 db_env_create( NULL, 0 );
31187 #elif DB_VERSION_MAJOR > 1
31188 db_appexit( NULL );
31190 (void) dbopen( NULL, 0, 0, 0, NULL);
31197 rm -f conftest.$ac_objext conftest$ac_exeext
31198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31199 (eval $ac_link) 2>conftest.er1
31201 grep -v '^ *+' conftest.er1 >conftest.err
31203 cat conftest.err >&5
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); } &&
31206 { ac_try='test -z "$ac_c_werror_flag"
31207 || test ! -s conftest.err'
31208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209 (eval $ac_try) 2>&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; } &&
31213 { ac_try='test -s conftest$ac_exeext'
31214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31215 (eval $ac_try) 2>&5
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); }; }; then
31221 echo "$as_me: failed program was:" >&5
31222 sed 's/^/| /' conftest.$ac_ext >&5
31226 rm -f conftest.err conftest.$ac_objext \
31227 conftest$ac_exeext conftest.$ac_ext
31232 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31233 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31235 if test $ol_cv_db_db_1 = yes ; then
31236 ol_cv_lib_db=-ldb-1
31241 if test $ol_cv_lib_db = no ; then
31242 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31243 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31244 if test "${ol_cv_db_none+set}" = set; then
31245 echo $ECHO_N "(cached) $ECHO_C" >&6
31250 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31252 cat >conftest.$ac_ext <<_ACEOF
31255 cat confdefs.h >>conftest.$ac_ext
31256 cat >>conftest.$ac_ext <<_ACEOF
31257 /* end confdefs.h. */
31259 #ifdef HAVE_DB_185_H
31260 # include <db_185.h>
31265 #ifndef DB_VERSION_MAJOR
31266 # define DB_VERSION_MAJOR 1
31270 #define NULL ((void*)0)
31277 #if DB_VERSION_MAJOR > 1
31280 int major, minor, patch;
31282 version = db_version( &major, &minor, &patch );
31284 if( major != DB_VERSION_MAJOR ||
31285 minor < DB_VERSION_MINOR )
31287 printf("Berkeley DB version mismatch\n"
31288 "\theader: %s\n\tlibrary: %s\n",
31289 DB_VERSION_STRING, version);
31295 #if DB_VERSION_MAJOR > 2
31296 db_env_create( NULL, 0 );
31297 #elif DB_VERSION_MAJOR > 1
31298 db_appexit( NULL );
31300 (void) dbopen( NULL, 0, 0, 0, NULL);
31307 rm -f conftest.$ac_objext conftest$ac_exeext
31308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31309 (eval $ac_link) 2>conftest.er1
31311 grep -v '^ *+' conftest.er1 >conftest.err
31313 cat conftest.err >&5
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); } &&
31316 { ac_try='test -z "$ac_c_werror_flag"
31317 || test ! -s conftest.err'
31318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319 (eval $ac_try) 2>&5
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; } &&
31323 { ac_try='test -s conftest$ac_exeext'
31324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325 (eval $ac_try) 2>&5
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; }; then
31331 echo "$as_me: failed program was:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31336 rm -f conftest.err conftest.$ac_objext \
31337 conftest$ac_exeext conftest.$ac_ext
31342 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31343 echo "${ECHO_T}$ol_cv_db_none" >&6
31345 if test $ol_cv_db_none = yes ; then
31351 if test "$ol_cv_lib_db" != no ; then
31352 ol_cv_berkeley_db=yes
31353 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31354 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31355 if test "${ol_cv_berkeley_db_version+set}" = set; then
31356 echo $ECHO_N "(cached) $ECHO_C" >&6
31360 LIBS="$LTHREAD_LIBS $LIBS"
31361 if test $ol_cv_lib_db != yes ; then
31362 LIBS="$ol_cv_lib_db $LIBS"
31365 if test "$cross_compiling" = yes; then
31366 ol_cv_berkeley_db_version=cross
31368 cat >conftest.$ac_ext <<_ACEOF
31371 cat confdefs.h >>conftest.$ac_ext
31372 cat >>conftest.$ac_ext <<_ACEOF
31373 /* end confdefs.h. */
31375 #ifdef HAVE_DB_185_H
31380 #ifndef DB_VERSION_MAJOR
31381 # define DB_VERSION_MAJOR 1
31384 #define NULL ((void *)0)
31388 #if DB_VERSION_MAJOR > 1
31390 int major, minor, patch;
31392 version = db_version( &major, &minor, &patch );
31394 if( major != DB_VERSION_MAJOR ||
31395 minor != DB_VERSION_MINOR ||
31396 patch != DB_VERSION_PATCH )
31398 printf("Berkeley DB version mismatch\n"
31399 "\theader: %s\n\tlibrary: %s\n",
31400 DB_VERSION_STRING, version);
31408 rm -f conftest$ac_exeext
31409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31410 (eval $ac_link) 2>&5
31412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31415 (eval $ac_try) 2>&5
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418 (exit $ac_status); }; }; then
31419 ol_cv_berkeley_db_version=yes
31421 echo "$as_me: program exited with status $ac_status" >&5
31422 echo "$as_me: failed program was:" >&5
31423 sed 's/^/| /' conftest.$ac_ext >&5
31425 ( exit $ac_status )
31426 ol_cv_berkeley_db_version=no
31428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31434 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31435 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31437 if test $ol_cv_berkeley_db_version = no ; then
31438 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31439 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31440 { (exit 1); exit 1; }; }
31443 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31444 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31445 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31446 echo $ECHO_N "(cached) $ECHO_C" >&6
31450 LIBS="$LTHREAD_LIBS $LIBS"
31451 if test $ol_cv_lib_db != yes ; then
31452 LIBS="$ol_cv_lib_db $LIBS"
31455 if test "$cross_compiling" = yes; then
31456 ol_cv_berkeley_db_thread=cross
31458 cat >conftest.$ac_ext <<_ACEOF
31461 cat confdefs.h >>conftest.$ac_ext
31462 cat >>conftest.$ac_ext <<_ACEOF
31463 /* end confdefs.h. */
31465 #ifdef HAVE_DB_185_H
31471 #define NULL ((void *)0)
31476 u_int32_t flags = DB_CREATE |
31482 #if DB_VERSION_MAJOR > 2
31483 DB_ENV *env = NULL;
31485 rc = db_env_create( &env, 0 );
31487 flags |= DB_INIT_MPOOL;
31488 #ifdef DB_MPOOL_PRIVATE
31489 flags |= DB_MPOOL_PRIVATE;
31493 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31497 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31498 rc = env->open( env, NULL, flags, 0 );
31500 rc = env->open( env, NULL, NULL, flags, 0 );
31504 rc = env->close( env, 0 );
31508 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31514 memset( &env, '\0', sizeof(env) );
31516 rc = db_appinit( NULL, NULL, &env, flags );
31519 db_appexit( &env );
31522 unlink("__db_mpool.share");
31523 unlink("__db_lock.share");
31529 rm -f conftest$ac_exeext
31530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31531 (eval $ac_link) 2>&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536 (eval $ac_try) 2>&5
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; }; then
31540 ol_cv_berkeley_db_thread=yes
31542 echo "$as_me: program exited with status $ac_status" >&5
31543 echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.$ac_ext >&5
31546 ( exit $ac_status )
31547 ol_cv_berkeley_db_thread=no
31549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31555 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31556 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31558 if test $ol_cv_berkeley_db_thread != no ; then
31560 cat >>confdefs.h <<\_ACEOF
31561 #define HAVE_BERKELEY_DB_THREAD 1
31570 if test $ol_cv_berkeley_db = no ; then
31571 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31572 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31573 { (exit 1); exit 1; }; }
31577 cat >>confdefs.h <<\_ACEOF
31578 #define HAVE_BERKELEY_DB 1
31582 if test $ol_cv_lib_db != yes ; then
31583 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31586 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31587 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31588 if test "${ol_cv_bdb_compat+set}" = set; then
31589 echo $ECHO_N "(cached) $ECHO_C" >&6
31592 cat >conftest.$ac_ext <<_ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h. */
31601 /* this check could be improved */
31602 #ifndef DB_VERSION_MAJOR
31603 # define DB_VERSION_MAJOR 1
31605 #ifndef DB_VERSION_MINOR
31606 # define DB_VERSION_MINOR 0
31609 /* require 4.2 or later */
31610 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
31611 __db_version_compat
31615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31616 $EGREP "__db_version_compat" >/dev/null 2>&1; then
31617 ol_cv_bdb_compat=yes
31619 ol_cv_bdb_compat=no
31624 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31625 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31628 if test $ol_cv_bdb_compat != yes ; then
31629 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31630 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31631 { (exit 1); exit 1; }; }
31634 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31640 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31641 BUILD_LIBS_DYNAMIC=shared
31643 cat >>confdefs.h <<\_ACEOF
31644 #define LDAP_LIBS_DYNAMIC 1
31649 BUILD_LIBS_DYNAMIC=static
31653 if test $ol_enable_wrappers != no ; then
31655 for ac_header in tcpd.h
31657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31659 echo "$as_me:$LINENO: checking for $ac_header" >&5
31660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31667 # Is the header compilable?
31668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31670 cat >conftest.$ac_ext <<_ACEOF
31673 cat confdefs.h >>conftest.$ac_ext
31674 cat >>conftest.$ac_ext <<_ACEOF
31675 /* end confdefs.h. */
31676 $ac_includes_default
31677 #include <$ac_header>
31679 rm -f conftest.$ac_objext
31680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31681 (eval $ac_compile) 2>conftest.er1
31683 grep -v '^ *+' conftest.er1 >conftest.err
31685 cat conftest.err >&5
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687 (exit $ac_status); } &&
31688 { ac_try='test -z "$ac_c_werror_flag"
31689 || test ! -s conftest.err'
31690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31691 (eval $ac_try) 2>&5
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); }; } &&
31695 { ac_try='test -s conftest.$ac_objext'
31696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31697 (eval $ac_try) 2>&5
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; }; then
31701 ac_header_compiler=yes
31703 echo "$as_me: failed program was:" >&5
31704 sed 's/^/| /' conftest.$ac_ext >&5
31706 ac_header_compiler=no
31708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31710 echo "${ECHO_T}$ac_header_compiler" >&6
31712 # Is the header present?
31713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31715 cat >conftest.$ac_ext <<_ACEOF
31718 cat confdefs.h >>conftest.$ac_ext
31719 cat >>conftest.$ac_ext <<_ACEOF
31720 /* end confdefs.h. */
31721 #include <$ac_header>
31723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31726 grep -v '^ *+' conftest.er1 >conftest.err
31728 cat conftest.err >&5
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); } >/dev/null; then
31731 if test -s conftest.err; then
31732 ac_cpp_err=$ac_c_preproc_warn_flag
31733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31740 if test -z "$ac_cpp_err"; then
31741 ac_header_preproc=yes
31743 echo "$as_me: failed program was:" >&5
31744 sed 's/^/| /' conftest.$ac_ext >&5
31746 ac_header_preproc=no
31748 rm -f conftest.err conftest.$ac_ext
31749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31750 echo "${ECHO_T}$ac_header_preproc" >&6
31752 # So? What about this header?
31753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31759 ac_header_preproc=yes
31762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31776 ## --------------------------------------------- ##
31777 ## Report this to <http://www.openldap.org/its/> ##
31778 ## --------------------------------------------- ##
31781 sed "s/^/$as_me: WARNING: /" >&2
31784 echo "$as_me:$LINENO: checking for $ac_header" >&5
31785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31787 echo $ECHO_N "(cached) $ECHO_C" >&6
31789 eval "$as_ac_Header=\$ac_header_preproc"
31791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31796 cat >>confdefs.h <<_ACEOF
31797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31800 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31801 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31803 LIBS="$LIBS -lwrap"
31804 cat >conftest.$ac_ext <<_ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h. */
31812 int allow_severity = 0;
31813 int deny_severity = 0;
31815 struct request_info *req;
31827 rm -f conftest.$ac_objext conftest$ac_exeext
31828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31829 (eval $ac_link) 2>conftest.er1
31831 grep -v '^ *+' conftest.er1 >conftest.err
31833 cat conftest.err >&5
31834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835 (exit $ac_status); } &&
31836 { ac_try='test -z "$ac_c_werror_flag"
31837 || test ! -s conftest.err'
31838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31839 (eval $ac_try) 2>&5
31841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31842 (exit $ac_status); }; } &&
31843 { ac_try='test -s conftest$ac_exeext'
31844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31845 (eval $ac_try) 2>&5
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); }; }; then
31849 echo "$as_me:$LINENO: result: -lwrap" >&5
31850 echo "${ECHO_T}-lwrap" >&6
31854 echo "$as_me: failed program was:" >&5
31855 sed 's/^/| /' conftest.$ac_ext >&5
31859 cat >conftest.$ac_ext <<_ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h. */
31867 int allow_severity = 0;
31868 int deny_severity = 0;
31870 struct request_info *req;
31882 rm -f conftest.$ac_objext conftest$ac_exeext
31883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31884 (eval $ac_link) 2>conftest.er1
31886 grep -v '^ *+' conftest.er1 >conftest.err
31888 cat conftest.err >&5
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); } &&
31891 { ac_try='test -z "$ac_c_werror_flag"
31892 || test ! -s conftest.err'
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; } &&
31898 { ac_try='test -s conftest$ac_exeext'
31899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900 (eval $ac_try) 2>&5
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; }; then
31904 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31905 echo "${ECHO_T}-lwrap -lnsl" >&6
31907 LIBS="$save_LIBS -lnsl"
31909 echo "$as_me: failed program was:" >&5
31910 sed 's/^/| /' conftest.$ac_ext >&5
31913 echo "$as_me:$LINENO: result: no" >&5
31914 echo "${ECHO_T}no" >&6
31918 rm -f conftest.err conftest.$ac_objext \
31919 conftest$ac_exeext conftest.$ac_ext
31921 rm -f conftest.err conftest.$ac_objext \
31922 conftest$ac_exeext conftest.$ac_ext
31930 if test $have_wrappers = yes ; then
31932 cat >>confdefs.h <<\_ACEOF
31933 #define HAVE_TCPD 1
31937 elif test $ol_enable_wrappers = yes ; then
31938 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31939 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31940 { (exit 1); exit 1; }; }
31942 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31943 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31948 if test $ol_enable_syslog != no ; then
31949 echo "$as_me:$LINENO: checking for openlog" >&5
31950 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31951 if test "${ac_cv_func_openlog+set}" = set; then
31952 echo $ECHO_N "(cached) $ECHO_C" >&6
31954 cat >conftest.$ac_ext <<_ACEOF
31957 cat confdefs.h >>conftest.$ac_ext
31958 cat >>conftest.$ac_ext <<_ACEOF
31959 /* end confdefs.h. */
31960 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31962 #define openlog innocuous_openlog
31964 /* System header to define __stub macros and hopefully few prototypes,
31965 which can conflict with char openlog (); below.
31966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31967 <limits.h> exists even on freestanding compilers. */
31970 # include <limits.h>
31972 # include <assert.h>
31977 /* Override any gcc2 internal prototype to avoid an error. */
31982 /* We use char because int might match the return type of a gcc2
31983 builtin and then its argument prototype would still apply. */
31985 /* The GNU C library defines this for functions which it implements
31986 to always fail with ENOSYS. Some functions are actually named
31987 something starting with __ and the normal name is an alias. */
31988 #if defined (__stub_openlog) || defined (__stub___openlog)
31991 char (*f) () = openlog;
32000 return f != openlog;
32005 rm -f conftest.$ac_objext conftest$ac_exeext
32006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32007 (eval $ac_link) 2>conftest.er1
32009 grep -v '^ *+' conftest.er1 >conftest.err
32011 cat conftest.err >&5
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); } &&
32014 { ac_try='test -z "$ac_c_werror_flag"
32015 || test ! -s conftest.err'
32016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32017 (eval $ac_try) 2>&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; } &&
32021 { ac_try='test -s conftest$ac_exeext'
32022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32023 (eval $ac_try) 2>&5
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); }; }; then
32027 ac_cv_func_openlog=yes
32029 echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32032 ac_cv_func_openlog=no
32034 rm -f conftest.err conftest.$ac_objext \
32035 conftest$ac_exeext conftest.$ac_ext
32037 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
32038 echo "${ECHO_T}$ac_cv_func_openlog" >&6
32040 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
32041 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
32042 echo "$as_me: error: could not find syslog" >&2;}
32043 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
32045 ol_enable_syslog=$ac_cv_func_openlog
32049 if test $ol_enable_sql != no ; then
32052 for ac_header in sql.h sqlext.h
32054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32056 echo "$as_me:$LINENO: checking for $ac_header" >&5
32057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32059 echo $ECHO_N "(cached) $ECHO_C" >&6
32061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32064 # Is the header compilable?
32065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32067 cat >conftest.$ac_ext <<_ACEOF
32070 cat confdefs.h >>conftest.$ac_ext
32071 cat >>conftest.$ac_ext <<_ACEOF
32072 /* end confdefs.h. */
32073 $ac_includes_default
32074 #include <$ac_header>
32076 rm -f conftest.$ac_objext
32077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32078 (eval $ac_compile) 2>conftest.er1
32080 grep -v '^ *+' conftest.er1 >conftest.err
32082 cat conftest.err >&5
32083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); } &&
32085 { ac_try='test -z "$ac_c_werror_flag"
32086 || test ! -s conftest.err'
32087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32088 (eval $ac_try) 2>&5
32090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091 (exit $ac_status); }; } &&
32092 { ac_try='test -s conftest.$ac_objext'
32093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32094 (eval $ac_try) 2>&5
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); }; }; then
32098 ac_header_compiler=yes
32100 echo "$as_me: failed program was:" >&5
32101 sed 's/^/| /' conftest.$ac_ext >&5
32103 ac_header_compiler=no
32105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32107 echo "${ECHO_T}$ac_header_compiler" >&6
32109 # Is the header present?
32110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32112 cat >conftest.$ac_ext <<_ACEOF
32115 cat confdefs.h >>conftest.$ac_ext
32116 cat >>conftest.$ac_ext <<_ACEOF
32117 /* end confdefs.h. */
32118 #include <$ac_header>
32120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32123 grep -v '^ *+' conftest.er1 >conftest.err
32125 cat conftest.err >&5
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); } >/dev/null; then
32128 if test -s conftest.err; then
32129 ac_cpp_err=$ac_c_preproc_warn_flag
32130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32137 if test -z "$ac_cpp_err"; then
32138 ac_header_preproc=yes
32140 echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32143 ac_header_preproc=no
32145 rm -f conftest.err conftest.$ac_ext
32146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32147 echo "${ECHO_T}$ac_header_preproc" >&6
32149 # So? What about this header?
32150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32156 ac_header_preproc=yes
32159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32173 ## --------------------------------------------- ##
32174 ## Report this to <http://www.openldap.org/its/> ##
32175 ## --------------------------------------------- ##
32178 sed "s/^/$as_me: WARNING: /" >&2
32181 echo "$as_me:$LINENO: checking for $ac_header" >&5
32182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32184 echo $ECHO_N "(cached) $ECHO_C" >&6
32186 eval "$as_ac_Header=\$ac_header_preproc"
32188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32193 cat >>confdefs.h <<_ACEOF
32194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32199 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
32200 echo "$as_me: error: could not locate SQL headers" >&2;}
32201 { (exit 1); exit 1; }; }
32209 LIBS="$LTHREAD_LIBS"
32211 if test $ol_with_odbc = auto ; then
32212 ol_with_odbc="iodbc unixodbc"
32215 for odbc in $ol_with_odbc ; do
32216 if test $ol_link_sql = no ; then
32219 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
32220 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
32221 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
32222 echo $ECHO_N "(cached) $ECHO_C" >&6
32224 ac_check_lib_save_LIBS=$LIBS
32225 LIBS="-liodbc $LIBS"
32226 cat >conftest.$ac_ext <<_ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32233 /* Override any gcc2 internal prototype to avoid an error. */
32237 /* We use char because int might match the return type of a gcc2
32238 builtin and then its argument prototype would still apply. */
32239 char SQLDriverConnect ();
32243 SQLDriverConnect ();
32248 rm -f conftest.$ac_objext conftest$ac_exeext
32249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32250 (eval $ac_link) 2>conftest.er1
32252 grep -v '^ *+' conftest.er1 >conftest.err
32254 cat conftest.err >&5
32255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32256 (exit $ac_status); } &&
32257 { ac_try='test -z "$ac_c_werror_flag"
32258 || test ! -s conftest.err'
32259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260 (eval $ac_try) 2>&5
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); }; } &&
32264 { ac_try='test -s conftest$ac_exeext'
32265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266 (eval $ac_try) 2>&5
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); }; }; then
32270 ac_cv_lib_iodbc_SQLDriverConnect=yes
32272 echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32275 ac_cv_lib_iodbc_SQLDriverConnect=no
32277 rm -f conftest.err conftest.$ac_objext \
32278 conftest$ac_exeext conftest.$ac_ext
32279 LIBS=$ac_check_lib_save_LIBS
32281 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32282 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32283 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32289 if test $have_iodbc = yes ; then
32290 ol_link_sql="-liodbc"
32295 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32296 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32297 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32298 echo $ECHO_N "(cached) $ECHO_C" >&6
32300 ac_check_lib_save_LIBS=$LIBS
32301 LIBS="-lodbc $LIBS"
32302 cat >conftest.$ac_ext <<_ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h. */
32309 /* Override any gcc2 internal prototype to avoid an error. */
32313 /* We use char because int might match the return type of a gcc2
32314 builtin and then its argument prototype would still apply. */
32315 char SQLDriverConnect ();
32319 SQLDriverConnect ();
32324 rm -f conftest.$ac_objext conftest$ac_exeext
32325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32326 (eval $ac_link) 2>conftest.er1
32328 grep -v '^ *+' conftest.er1 >conftest.err
32330 cat conftest.err >&5
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); } &&
32333 { ac_try='test -z "$ac_c_werror_flag"
32334 || test ! -s conftest.err'
32335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32336 (eval $ac_try) 2>&5
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); }; } &&
32340 { ac_try='test -s conftest$ac_exeext'
32341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32342 (eval $ac_try) 2>&5
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); }; }; then
32346 ac_cv_lib_odbc_SQLDriverConnect=yes
32348 echo "$as_me: failed program was:" >&5
32349 sed 's/^/| /' conftest.$ac_ext >&5
32351 ac_cv_lib_odbc_SQLDriverConnect=no
32353 rm -f conftest.err conftest.$ac_objext \
32354 conftest$ac_exeext conftest.$ac_ext
32355 LIBS=$ac_check_lib_save_LIBS
32357 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32358 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32359 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32365 if test $have_odbc = yes ; then
32366 ol_link_sql="-lodbc"
32371 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32372 echo "$as_me: error: unknown ODBC library" >&2;}
32373 { (exit 1); exit 1; }; }
32381 if test $ol_link_sql != no ; then
32382 SLAPD_SQL_LIBS="$ol_link_sql"
32384 elif test $ol_enable_sql != auto ; then
32385 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32386 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32387 { (exit 1); exit 1; }; }
32393 for ac_header in unicode/utypes.h
32395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32397 echo "$as_me:$LINENO: checking for $ac_header" >&5
32398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32400 echo $ECHO_N "(cached) $ECHO_C" >&6
32402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32405 # Is the header compilable?
32406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32408 cat >conftest.$ac_ext <<_ACEOF
32411 cat confdefs.h >>conftest.$ac_ext
32412 cat >>conftest.$ac_ext <<_ACEOF
32413 /* end confdefs.h. */
32414 $ac_includes_default
32415 #include <$ac_header>
32417 rm -f conftest.$ac_objext
32418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32419 (eval $ac_compile) 2>conftest.er1
32421 grep -v '^ *+' conftest.er1 >conftest.err
32423 cat conftest.err >&5
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); } &&
32426 { ac_try='test -z "$ac_c_werror_flag"
32427 || test ! -s conftest.err'
32428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32429 (eval $ac_try) 2>&5
32431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432 (exit $ac_status); }; } &&
32433 { ac_try='test -s conftest.$ac_objext'
32434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435 (eval $ac_try) 2>&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; }; then
32439 ac_header_compiler=yes
32441 echo "$as_me: failed program was:" >&5
32442 sed 's/^/| /' conftest.$ac_ext >&5
32444 ac_header_compiler=no
32446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32448 echo "${ECHO_T}$ac_header_compiler" >&6
32450 # Is the header present?
32451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32453 cat >conftest.$ac_ext <<_ACEOF
32456 cat confdefs.h >>conftest.$ac_ext
32457 cat >>conftest.$ac_ext <<_ACEOF
32458 /* end confdefs.h. */
32459 #include <$ac_header>
32461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32464 grep -v '^ *+' conftest.er1 >conftest.err
32466 cat conftest.err >&5
32467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468 (exit $ac_status); } >/dev/null; then
32469 if test -s conftest.err; then
32470 ac_cpp_err=$ac_c_preproc_warn_flag
32471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32478 if test -z "$ac_cpp_err"; then
32479 ac_header_preproc=yes
32481 echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32484 ac_header_preproc=no
32486 rm -f conftest.err conftest.$ac_ext
32487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32488 echo "${ECHO_T}$ac_header_preproc" >&6
32490 # So? What about this header?
32491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32497 ac_header_preproc=yes
32500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32514 ## --------------------------------------------- ##
32515 ## Report this to <http://www.openldap.org/its/> ##
32516 ## --------------------------------------------- ##
32519 sed "s/^/$as_me: WARNING: /" >&2
32522 echo "$as_me:$LINENO: checking for $ac_header" >&5
32523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32525 echo $ECHO_N "(cached) $ECHO_C" >&6
32527 eval "$as_ac_Header=\$ac_header_preproc"
32529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32534 cat >>confdefs.h <<_ACEOF
32535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32542 if test $ac_cv_header_unicode_utypes_h = yes ; then
32543 OL_ICULIBS="-licuuc -licudata"
32545 echo "$as_me:$LINENO: checking for ICU libraries" >&5
32546 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32547 if test "${ol_cv_lib_icu+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32552 LIBS="$OL_ICULIBS $LIBS"
32553 cat >conftest.$ac_ext <<_ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h. */
32560 #include <unicode/utypes.h>
32566 (void) u_errorName(0);
32572 rm -f conftest.$ac_objext conftest$ac_exeext
32573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32574 (eval $ac_link) 2>conftest.er1
32576 grep -v '^ *+' conftest.er1 >conftest.err
32578 cat conftest.err >&5
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); } &&
32581 { ac_try='test -z "$ac_c_werror_flag"
32582 || test ! -s conftest.err'
32583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32584 (eval $ac_try) 2>&5
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); }; } &&
32588 { ac_try='test -s conftest$ac_exeext'
32589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590 (eval $ac_try) 2>&5
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; }; then
32596 echo "$as_me: failed program was:" >&5
32597 sed 's/^/| /' conftest.$ac_ext >&5
32601 rm -f conftest.err conftest.$ac_objext \
32602 conftest$ac_exeext conftest.$ac_ext
32606 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32607 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32609 if test $ol_cv_lib_icu != no ; then
32610 ol_icu="$OL_ICULIBS"
32612 cat >>confdefs.h <<\_ACEOF
32619 if test "$ol_icu" = no ; then
32620 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32621 echo "$as_me: WARNING: ICU not available" >&2;}
32628 if test $ol_with_cyrus_sasl != no ; then
32631 for ac_header in sasl/sasl.h sasl.h
32633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32635 echo "$as_me:$LINENO: checking for $ac_header" >&5
32636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32638 echo $ECHO_N "(cached) $ECHO_C" >&6
32640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32643 # Is the header compilable?
32644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32646 cat >conftest.$ac_ext <<_ACEOF
32649 cat confdefs.h >>conftest.$ac_ext
32650 cat >>conftest.$ac_ext <<_ACEOF
32651 /* end confdefs.h. */
32652 $ac_includes_default
32653 #include <$ac_header>
32655 rm -f conftest.$ac_objext
32656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32657 (eval $ac_compile) 2>conftest.er1
32659 grep -v '^ *+' conftest.er1 >conftest.err
32661 cat conftest.err >&5
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); } &&
32664 { ac_try='test -z "$ac_c_werror_flag"
32665 || test ! -s conftest.err'
32666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32667 (eval $ac_try) 2>&5
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); }; } &&
32671 { ac_try='test -s conftest.$ac_objext'
32672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32673 (eval $ac_try) 2>&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); }; }; then
32677 ac_header_compiler=yes
32679 echo "$as_me: failed program was:" >&5
32680 sed 's/^/| /' conftest.$ac_ext >&5
32682 ac_header_compiler=no
32684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32686 echo "${ECHO_T}$ac_header_compiler" >&6
32688 # Is the header present?
32689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32691 cat >conftest.$ac_ext <<_ACEOF
32694 cat confdefs.h >>conftest.$ac_ext
32695 cat >>conftest.$ac_ext <<_ACEOF
32696 /* end confdefs.h. */
32697 #include <$ac_header>
32699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32702 grep -v '^ *+' conftest.er1 >conftest.err
32704 cat conftest.err >&5
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); } >/dev/null; then
32707 if test -s conftest.err; then
32708 ac_cpp_err=$ac_c_preproc_warn_flag
32709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32716 if test -z "$ac_cpp_err"; then
32717 ac_header_preproc=yes
32719 echo "$as_me: failed program was:" >&5
32720 sed 's/^/| /' conftest.$ac_ext >&5
32722 ac_header_preproc=no
32724 rm -f conftest.err conftest.$ac_ext
32725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32726 echo "${ECHO_T}$ac_header_preproc" >&6
32728 # So? What about this header?
32729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32735 ac_header_preproc=yes
32738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32752 ## --------------------------------------------- ##
32753 ## Report this to <http://www.openldap.org/its/> ##
32754 ## --------------------------------------------- ##
32757 sed "s/^/$as_me: WARNING: /" >&2
32760 echo "$as_me:$LINENO: checking for $ac_header" >&5
32761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32763 echo $ECHO_N "(cached) $ECHO_C" >&6
32765 eval "$as_ac_Header=\$ac_header_preproc"
32767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32772 cat >>confdefs.h <<_ACEOF
32773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32781 if test $ac_cv_header_sasl_sasl_h = yes ||
32782 test $ac_cv_header_sasl_h = yes; then
32783 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32784 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32785 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32786 echo $ECHO_N "(cached) $ECHO_C" >&6
32788 ac_check_lib_save_LIBS=$LIBS
32789 LIBS="-lsasl2 $LIBS"
32790 cat >conftest.$ac_ext <<_ACEOF
32793 cat confdefs.h >>conftest.$ac_ext
32794 cat >>conftest.$ac_ext <<_ACEOF
32795 /* end confdefs.h. */
32797 /* Override any gcc2 internal prototype to avoid an error. */
32801 /* We use char because int might match the return type of a gcc2
32802 builtin and then its argument prototype would still apply. */
32803 char sasl_client_init ();
32807 sasl_client_init ();
32812 rm -f conftest.$ac_objext conftest$ac_exeext
32813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32814 (eval $ac_link) 2>conftest.er1
32816 grep -v '^ *+' conftest.er1 >conftest.err
32818 cat conftest.err >&5
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); } &&
32821 { ac_try='test -z "$ac_c_werror_flag"
32822 || test ! -s conftest.err'
32823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824 (eval $ac_try) 2>&5
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest$ac_exeext'
32829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830 (eval $ac_try) 2>&5
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 ac_cv_lib_sasl2_sasl_client_init=yes
32836 echo "$as_me: failed program was:" >&5
32837 sed 's/^/| /' conftest.$ac_ext >&5
32839 ac_cv_lib_sasl2_sasl_client_init=no
32841 rm -f conftest.err conftest.$ac_objext \
32842 conftest$ac_exeext conftest.$ac_ext
32843 LIBS=$ac_check_lib_save_LIBS
32845 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32846 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32847 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32848 ol_link_sasl="-lsasl2"
32850 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32851 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32852 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32853 echo $ECHO_N "(cached) $ECHO_C" >&6
32855 ac_check_lib_save_LIBS=$LIBS
32856 LIBS="-lsasl $LIBS"
32857 cat >conftest.$ac_ext <<_ACEOF
32860 cat confdefs.h >>conftest.$ac_ext
32861 cat >>conftest.$ac_ext <<_ACEOF
32862 /* end confdefs.h. */
32864 /* Override any gcc2 internal prototype to avoid an error. */
32868 /* We use char because int might match the return type of a gcc2
32869 builtin and then its argument prototype would still apply. */
32870 char sasl_client_init ();
32874 sasl_client_init ();
32879 rm -f conftest.$ac_objext conftest$ac_exeext
32880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32881 (eval $ac_link) 2>conftest.er1
32883 grep -v '^ *+' conftest.er1 >conftest.err
32885 cat conftest.err >&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); } &&
32888 { ac_try='test -z "$ac_c_werror_flag"
32889 || test ! -s conftest.err'
32890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32891 (eval $ac_try) 2>&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; } &&
32895 { ac_try='test -s conftest$ac_exeext'
32896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32897 (eval $ac_try) 2>&5
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); }; }; then
32901 ac_cv_lib_sasl_sasl_client_init=yes
32903 echo "$as_me: failed program was:" >&5
32904 sed 's/^/| /' conftest.$ac_ext >&5
32906 ac_cv_lib_sasl_sasl_client_init=no
32908 rm -f conftest.err conftest.$ac_objext \
32909 conftest$ac_exeext conftest.$ac_ext
32910 LIBS=$ac_check_lib_save_LIBS
32912 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32913 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32914 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32915 ol_link_sasl="-lsasl"
32922 if test $ol_link_sasl = no ; then
32923 if test $ol_with_cyrus_sasl != auto ; then
32924 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32925 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32926 { (exit 1); exit 1; }; }
32928 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32929 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32930 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32931 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32932 if test $ol_link_tls = no ; then
32933 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32934 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32938 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32939 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32940 if test "${ol_cv_sasl_compat+set}" = set; then
32941 echo $ECHO_N "(cached) $ECHO_C" >&6
32944 cat >conftest.$ac_ext <<_ACEOF
32947 cat confdefs.h >>conftest.$ac_ext
32948 cat >>conftest.$ac_ext <<_ACEOF
32949 /* end confdefs.h. */
32951 #ifdef HAVE_SASL_SASL_H
32952 #include <sasl/sasl.h>
32957 /* Require 2.1.15+ */
32958 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
32959 char *__sasl_compat = "2.2+ or better okay (we guess)";
32960 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
32961 && SASL_VERSION_STEP >=15
32962 char *__sasl_compat = "2.1.15+ or better okay";
32966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32967 $EGREP "__sasl_compat" >/dev/null 2>&1; then
32968 ol_cv_sasl_compat=yes
32970 ol_cv_sasl_compat=no
32975 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32976 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32978 if test $ol_cv_sasl_compat = no ; then
32980 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32981 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32982 { (exit 1); exit 1; }; }
32986 cat >>confdefs.h <<\_ACEOF
32987 #define HAVE_CYRUS_SASL 1
32990 SASL_LIBS="$ol_link_sasl"
32991 if test $ol_enable_spasswd != no ; then
32992 ol_link_spasswd=yes
32995 ac_save_LIBS="$LIBS"
32996 LIBS="$LIBS $ol_link_sasl"
32997 echo "$as_me:$LINENO: checking for sasl_version" >&5
32998 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32999 if test "${ac_cv_func_sasl_version+set}" = set; then
33000 echo $ECHO_N "(cached) $ECHO_C" >&6
33002 cat >conftest.$ac_ext <<_ACEOF
33005 cat confdefs.h >>conftest.$ac_ext
33006 cat >>conftest.$ac_ext <<_ACEOF
33007 /* end confdefs.h. */
33008 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
33009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33010 #define sasl_version innocuous_sasl_version
33012 /* System header to define __stub macros and hopefully few prototypes,
33013 which can conflict with char sasl_version (); below.
33014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33015 <limits.h> exists even on freestanding compilers. */
33018 # include <limits.h>
33020 # include <assert.h>
33023 #undef sasl_version
33025 /* Override any gcc2 internal prototype to avoid an error. */
33030 /* We use char because int might match the return type of a gcc2
33031 builtin and then its argument prototype would still apply. */
33032 char sasl_version ();
33033 /* The GNU C library defines this for functions which it implements
33034 to always fail with ENOSYS. Some functions are actually named
33035 something starting with __ and the normal name is an alias. */
33036 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
33039 char (*f) () = sasl_version;
33048 return f != sasl_version;
33053 rm -f conftest.$ac_objext conftest$ac_exeext
33054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33055 (eval $ac_link) 2>conftest.er1
33057 grep -v '^ *+' conftest.er1 >conftest.err
33059 cat conftest.err >&5
33060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061 (exit $ac_status); } &&
33062 { ac_try='test -z "$ac_c_werror_flag"
33063 || test ! -s conftest.err'
33064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065 (eval $ac_try) 2>&5
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; } &&
33069 { ac_try='test -s conftest$ac_exeext'
33070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33071 (eval $ac_try) 2>&5
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); }; }; then
33075 ac_cv_func_sasl_version=yes
33077 echo "$as_me: failed program was:" >&5
33078 sed 's/^/| /' conftest.$ac_ext >&5
33080 ac_cv_func_sasl_version=no
33082 rm -f conftest.err conftest.$ac_objext \
33083 conftest$ac_exeext conftest.$ac_ext
33085 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
33086 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
33087 if test $ac_cv_func_sasl_version = yes; then
33089 cat >>confdefs.h <<\_ACEOF
33090 #define HAVE_SASL_VERSION 1
33095 LIBS="$ac_save_LIBS"
33101 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
33102 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
33103 if test $ol_link_tls = no ; then
33104 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
33105 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
33109 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
33111 if test -r /dev/urandom ; then
33112 dev="/dev/urandom";
33113 elif test -r /idev/urandom ; then
33114 dev="/idev/urandom";
33115 elif test -r /dev/srandom ; then
33116 dev="/dev/srandom";
33117 elif test -r /dev/random ; then
33119 elif test -r /idev/random ; then
33120 dev="/idev/random";
33123 if test $dev != no ; then
33125 cat >>confdefs.h <<_ACEOF
33126 #define URANDOM_DEVICE "$dev"
33133 if test $ol_with_fetch != no ; then
33135 LIBS="-lfetch -lcom_err $LIBS"
33136 echo "$as_me:$LINENO: checking fetch(3) library" >&5
33137 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
33138 if test "${ol_cv_lib_fetch+set}" = set; then
33139 echo $ECHO_N "(cached) $ECHO_C" >&6
33142 cat >conftest.$ac_ext <<_ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h. */
33149 #include <sys/param.h>
33155 struct url *u = fetchParseURL("file:///");
33160 rm -f conftest.$ac_objext conftest$ac_exeext
33161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33162 (eval $ac_link) 2>conftest.er1
33164 grep -v '^ *+' conftest.er1 >conftest.err
33166 cat conftest.err >&5
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); } &&
33169 { ac_try='test -z "$ac_c_werror_flag"
33170 || test ! -s conftest.err'
33171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33172 (eval $ac_try) 2>&5
33174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175 (exit $ac_status); }; } &&
33176 { ac_try='test -s conftest$ac_exeext'
33177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33178 (eval $ac_try) 2>&5
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); }; }; then
33182 ol_cv_lib_fetch=yes
33184 echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.$ac_ext >&5
33189 rm -f conftest.err conftest.$ac_objext \
33190 conftest$ac_exeext conftest.$ac_ext
33192 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33193 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33195 if test $ol_cv_lib_fetch != no ; then
33196 ol_link_fetch="-lfetch -lcom_err"
33198 cat >>confdefs.h <<\_ACEOF
33199 #define HAVE_FETCH 1
33205 if test $ol_cv_lib_fetch != no ; then
33206 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33207 ol_link_fetch=freebsd
33209 elif test $ol_with_fetch != auto ; then
33210 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33211 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33212 { (exit 1); exit 1; }; }
33216 if test $ol_enable_crypt != no ; then
33218 LIBS="$TLS_LIBS $LIBS"
33220 echo "$as_me:$LINENO: checking for crypt" >&5
33221 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33222 if test "${ac_cv_func_crypt+set}" = set; then
33223 echo $ECHO_N "(cached) $ECHO_C" >&6
33225 cat >conftest.$ac_ext <<_ACEOF
33228 cat confdefs.h >>conftest.$ac_ext
33229 cat >>conftest.$ac_ext <<_ACEOF
33230 /* end confdefs.h. */
33231 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33233 #define crypt innocuous_crypt
33235 /* System header to define __stub macros and hopefully few prototypes,
33236 which can conflict with char crypt (); below.
33237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33238 <limits.h> exists even on freestanding compilers. */
33241 # include <limits.h>
33243 # include <assert.h>
33248 /* Override any gcc2 internal prototype to avoid an error. */
33253 /* We use char because int might match the return type of a gcc2
33254 builtin and then its argument prototype would still apply. */
33256 /* The GNU C library defines this for functions which it implements
33257 to always fail with ENOSYS. Some functions are actually named
33258 something starting with __ and the normal name is an alias. */
33259 #if defined (__stub_crypt) || defined (__stub___crypt)
33262 char (*f) () = crypt;
33276 rm -f conftest.$ac_objext conftest$ac_exeext
33277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33278 (eval $ac_link) 2>conftest.er1
33280 grep -v '^ *+' conftest.er1 >conftest.err
33282 cat conftest.err >&5
33283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33284 (exit $ac_status); } &&
33285 { ac_try='test -z "$ac_c_werror_flag"
33286 || test ! -s conftest.err'
33287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33288 (eval $ac_try) 2>&5
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; } &&
33292 { ac_try='test -s conftest$ac_exeext'
33293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33294 (eval $ac_try) 2>&5
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; }; then
33298 ac_cv_func_crypt=yes
33300 echo "$as_me: failed program was:" >&5
33301 sed 's/^/| /' conftest.$ac_ext >&5
33303 ac_cv_func_crypt=no
33305 rm -f conftest.err conftest.$ac_objext \
33306 conftest$ac_exeext conftest.$ac_ext
33308 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33309 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33310 if test $ac_cv_func_crypt = yes; then
33315 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33316 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33317 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33318 echo $ECHO_N "(cached) $ECHO_C" >&6
33320 ac_check_lib_save_LIBS=$LIBS
33321 LIBS="-lcrypt $LIBS"
33322 cat >conftest.$ac_ext <<_ACEOF
33325 cat confdefs.h >>conftest.$ac_ext
33326 cat >>conftest.$ac_ext <<_ACEOF
33327 /* end confdefs.h. */
33329 /* Override any gcc2 internal prototype to avoid an error. */
33333 /* We use char because int might match the return type of a gcc2
33334 builtin and then its argument prototype would still apply. */
33344 rm -f conftest.$ac_objext conftest$ac_exeext
33345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33346 (eval $ac_link) 2>conftest.er1
33348 grep -v '^ *+' conftest.er1 >conftest.err
33350 cat conftest.err >&5
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); } &&
33353 { ac_try='test -z "$ac_c_werror_flag"
33354 || test ! -s conftest.err'
33355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33356 (eval $ac_try) 2>&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
33360 { ac_try='test -s conftest$ac_exeext'
33361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33362 (eval $ac_try) 2>&5
33364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 (exit $ac_status); }; }; then
33366 ac_cv_lib_crypt_crypt=yes
33368 echo "$as_me: failed program was:" >&5
33369 sed 's/^/| /' conftest.$ac_ext >&5
33371 ac_cv_lib_crypt_crypt=no
33373 rm -f conftest.err conftest.$ac_objext \
33374 conftest$ac_exeext conftest.$ac_ext
33375 LIBS=$ac_check_lib_save_LIBS
33377 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33378 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33379 if test $ac_cv_lib_crypt_crypt = yes; then
33380 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33391 if test $have_crypt = yes ; then
33393 cat >>confdefs.h <<\_ACEOF
33394 #define HAVE_CRYPT 1
33398 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33399 echo "$as_me: WARNING: could not find crypt" >&2;}
33400 if test $ol_enable_crypt = yes ; then
33401 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33402 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33403 { (exit 1); exit 1; }; }
33406 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33407 echo "$as_me: WARNING: disabling crypt support" >&2;}
33412 if test $ol_enable_proctitle != no ; then
33413 echo "$as_me:$LINENO: checking for setproctitle" >&5
33414 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33415 if test "${ac_cv_func_setproctitle+set}" = set; then
33416 echo $ECHO_N "(cached) $ECHO_C" >&6
33418 cat >conftest.$ac_ext <<_ACEOF
33421 cat confdefs.h >>conftest.$ac_ext
33422 cat >>conftest.$ac_ext <<_ACEOF
33423 /* end confdefs.h. */
33424 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33426 #define setproctitle innocuous_setproctitle
33428 /* System header to define __stub macros and hopefully few prototypes,
33429 which can conflict with char setproctitle (); below.
33430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33431 <limits.h> exists even on freestanding compilers. */
33434 # include <limits.h>
33436 # include <assert.h>
33439 #undef setproctitle
33441 /* Override any gcc2 internal prototype to avoid an error. */
33446 /* We use char because int might match the return type of a gcc2
33447 builtin and then its argument prototype would still apply. */
33448 char setproctitle ();
33449 /* The GNU C library defines this for functions which it implements
33450 to always fail with ENOSYS. Some functions are actually named
33451 something starting with __ and the normal name is an alias. */
33452 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33455 char (*f) () = setproctitle;
33464 return f != setproctitle;
33469 rm -f conftest.$ac_objext conftest$ac_exeext
33470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33471 (eval $ac_link) 2>conftest.er1
33473 grep -v '^ *+' conftest.er1 >conftest.err
33475 cat conftest.err >&5
33476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477 (exit $ac_status); } &&
33478 { ac_try='test -z "$ac_c_werror_flag"
33479 || test ! -s conftest.err'
33480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33481 (eval $ac_try) 2>&5
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } &&
33485 { ac_try='test -s conftest$ac_exeext'
33486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33487 (eval $ac_try) 2>&5
33489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490 (exit $ac_status); }; }; then
33491 ac_cv_func_setproctitle=yes
33493 echo "$as_me: failed program was:" >&5
33494 sed 's/^/| /' conftest.$ac_ext >&5
33496 ac_cv_func_setproctitle=no
33498 rm -f conftest.err conftest.$ac_objext \
33499 conftest$ac_exeext conftest.$ac_ext
33501 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33502 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33503 if test $ac_cv_func_setproctitle = yes; then
33504 have_setproctitle=yes
33507 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33508 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33509 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33510 echo $ECHO_N "(cached) $ECHO_C" >&6
33512 ac_check_lib_save_LIBS=$LIBS
33513 LIBS="-lutil $LIBS"
33514 cat >conftest.$ac_ext <<_ACEOF
33517 cat confdefs.h >>conftest.$ac_ext
33518 cat >>conftest.$ac_ext <<_ACEOF
33519 /* end confdefs.h. */
33521 /* Override any gcc2 internal prototype to avoid an error. */
33525 /* We use char because int might match the return type of a gcc2
33526 builtin and then its argument prototype would still apply. */
33527 char setproctitle ();
33536 rm -f conftest.$ac_objext conftest$ac_exeext
33537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33538 (eval $ac_link) 2>conftest.er1
33540 grep -v '^ *+' conftest.er1 >conftest.err
33542 cat conftest.err >&5
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); } &&
33545 { ac_try='test -z "$ac_c_werror_flag"
33546 || test ! -s conftest.err'
33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548 (eval $ac_try) 2>&5
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; } &&
33552 { ac_try='test -s conftest$ac_exeext'
33553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33554 (eval $ac_try) 2>&5
33556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33557 (exit $ac_status); }; }; then
33558 ac_cv_lib_util_setproctitle=yes
33560 echo "$as_me: failed program was:" >&5
33561 sed 's/^/| /' conftest.$ac_ext >&5
33563 ac_cv_lib_util_setproctitle=no
33565 rm -f conftest.err conftest.$ac_objext \
33566 conftest$ac_exeext conftest.$ac_ext
33567 LIBS=$ac_check_lib_save_LIBS
33569 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33570 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33571 if test $ac_cv_lib_util_setproctitle = yes; then
33572 have_setproctitle=yes
33573 LUTIL_LIBS="$LUTIL_LIBS -lutil"
33575 have_setproctitle=no
33577 "setproctitle.$ac_objext" | \
33578 *" setproctitle.$ac_objext" | \
33579 "setproctitle.$ac_objext "* | \
33580 *" setproctitle.$ac_objext "* ) ;;
33581 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33584 LIBSRCS="$LIBSRCS setproctitle.c"
33590 if test $have_setproctitle = yes ; then
33592 cat >>confdefs.h <<\_ACEOF
33593 #define HAVE_SETPROCTITLE 1
33599 if test $ol_enable_slp != no ; then
33601 for ac_header in slp.h
33603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33605 echo "$as_me:$LINENO: checking for $ac_header" >&5
33606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33608 echo $ECHO_N "(cached) $ECHO_C" >&6
33610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33613 # Is the header compilable?
33614 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33615 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33616 cat >conftest.$ac_ext <<_ACEOF
33619 cat confdefs.h >>conftest.$ac_ext
33620 cat >>conftest.$ac_ext <<_ACEOF
33621 /* end confdefs.h. */
33622 $ac_includes_default
33623 #include <$ac_header>
33625 rm -f conftest.$ac_objext
33626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33627 (eval $ac_compile) 2>conftest.er1
33629 grep -v '^ *+' conftest.er1 >conftest.err
33631 cat conftest.err >&5
33632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633 (exit $ac_status); } &&
33634 { ac_try='test -z "$ac_c_werror_flag"
33635 || test ! -s conftest.err'
33636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33637 (eval $ac_try) 2>&5
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); }; } &&
33641 { ac_try='test -s conftest.$ac_objext'
33642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33643 (eval $ac_try) 2>&5
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); }; }; then
33647 ac_header_compiler=yes
33649 echo "$as_me: failed program was:" >&5
33650 sed 's/^/| /' conftest.$ac_ext >&5
33652 ac_header_compiler=no
33654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33656 echo "${ECHO_T}$ac_header_compiler" >&6
33658 # Is the header present?
33659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33661 cat >conftest.$ac_ext <<_ACEOF
33664 cat confdefs.h >>conftest.$ac_ext
33665 cat >>conftest.$ac_ext <<_ACEOF
33666 /* end confdefs.h. */
33667 #include <$ac_header>
33669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33672 grep -v '^ *+' conftest.er1 >conftest.err
33674 cat conftest.err >&5
33675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); } >/dev/null; then
33677 if test -s conftest.err; then
33678 ac_cpp_err=$ac_c_preproc_warn_flag
33679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33686 if test -z "$ac_cpp_err"; then
33687 ac_header_preproc=yes
33689 echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33692 ac_header_preproc=no
33694 rm -f conftest.err conftest.$ac_ext
33695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33696 echo "${ECHO_T}$ac_header_preproc" >&6
33698 # So? What about this header?
33699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33705 ac_header_preproc=yes
33708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33722 ## --------------------------------------------- ##
33723 ## Report this to <http://www.openldap.org/its/> ##
33724 ## --------------------------------------------- ##
33727 sed "s/^/$as_me: WARNING: /" >&2
33730 echo "$as_me:$LINENO: checking for $ac_header" >&5
33731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33733 echo $ECHO_N "(cached) $ECHO_C" >&6
33735 eval "$as_ac_Header=\$ac_header_preproc"
33737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33742 cat >>confdefs.h <<_ACEOF
33743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33751 if test $ac_cv_header_slp_h = yes ; then
33752 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33753 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33754 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33755 echo $ECHO_N "(cached) $ECHO_C" >&6
33757 ac_check_lib_save_LIBS=$LIBS
33759 cat >conftest.$ac_ext <<_ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h. */
33766 /* Override any gcc2 internal prototype to avoid an error. */
33770 /* We use char because int might match the return type of a gcc2
33771 builtin and then its argument prototype would still apply. */
33781 rm -f conftest.$ac_objext conftest$ac_exeext
33782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33783 (eval $ac_link) 2>conftest.er1
33785 grep -v '^ *+' conftest.er1 >conftest.err
33787 cat conftest.err >&5
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); } &&
33790 { ac_try='test -z "$ac_c_werror_flag"
33791 || test ! -s conftest.err'
33792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793 (eval $ac_try) 2>&5
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); }; } &&
33797 { ac_try='test -s conftest$ac_exeext'
33798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799 (eval $ac_try) 2>&5
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
33803 ac_cv_lib_slp_SLPOpen=yes
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33808 ac_cv_lib_slp_SLPOpen=no
33810 rm -f conftest.err conftest.$ac_objext \
33811 conftest$ac_exeext conftest.$ac_ext
33812 LIBS=$ac_check_lib_save_LIBS
33814 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33815 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33816 if test $ac_cv_lib_slp_SLPOpen = yes; then
33822 if test $have_slp = yes ; then
33824 cat >>confdefs.h <<\_ACEOF
33828 SLAPD_SLP_LIBS=-lslp
33831 elif test $ol_enable_slp = yes ; then
33832 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33833 echo "$as_me: error: SLP not found" >&2;}
33834 { (exit 1); exit 1; }; }
33839 echo "$as_me:$LINENO: checking for mode_t" >&5
33840 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33841 if test "${ac_cv_type_mode_t+set}" = set; then
33842 echo $ECHO_N "(cached) $ECHO_C" >&6
33844 cat >conftest.$ac_ext <<_ACEOF
33847 cat confdefs.h >>conftest.$ac_ext
33848 cat >>conftest.$ac_ext <<_ACEOF
33849 /* end confdefs.h. */
33850 $ac_includes_default
33856 if (sizeof (mode_t))
33862 rm -f conftest.$ac_objext
33863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33864 (eval $ac_compile) 2>conftest.er1
33866 grep -v '^ *+' conftest.er1 >conftest.err
33868 cat conftest.err >&5
33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33870 (exit $ac_status); } &&
33871 { ac_try='test -z "$ac_c_werror_flag"
33872 || test ! -s conftest.err'
33873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33874 (eval $ac_try) 2>&5
33876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877 (exit $ac_status); }; } &&
33878 { ac_try='test -s conftest.$ac_objext'
33879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880 (eval $ac_try) 2>&5
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); }; }; then
33884 ac_cv_type_mode_t=yes
33886 echo "$as_me: failed program was:" >&5
33887 sed 's/^/| /' conftest.$ac_ext >&5
33889 ac_cv_type_mode_t=no
33891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33893 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33894 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33895 if test $ac_cv_type_mode_t = yes; then
33899 cat >>confdefs.h <<_ACEOF
33905 echo "$as_me:$LINENO: checking for off_t" >&5
33906 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33907 if test "${ac_cv_type_off_t+set}" = set; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
33910 cat >conftest.$ac_ext <<_ACEOF
33913 cat confdefs.h >>conftest.$ac_ext
33914 cat >>conftest.$ac_ext <<_ACEOF
33915 /* end confdefs.h. */
33916 $ac_includes_default
33922 if (sizeof (off_t))
33928 rm -f conftest.$ac_objext
33929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33930 (eval $ac_compile) 2>conftest.er1
33932 grep -v '^ *+' conftest.er1 >conftest.err
33934 cat conftest.err >&5
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); } &&
33937 { ac_try='test -z "$ac_c_werror_flag"
33938 || test ! -s conftest.err'
33939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33940 (eval $ac_try) 2>&5
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); }; } &&
33944 { ac_try='test -s conftest.$ac_objext'
33945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33946 (eval $ac_try) 2>&5
33948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949 (exit $ac_status); }; }; then
33950 ac_cv_type_off_t=yes
33952 echo "$as_me: failed program was:" >&5
33953 sed 's/^/| /' conftest.$ac_ext >&5
33955 ac_cv_type_off_t=no
33957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33959 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33960 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33961 if test $ac_cv_type_off_t = yes; then
33965 cat >>confdefs.h <<_ACEOF
33971 echo "$as_me:$LINENO: checking for pid_t" >&5
33972 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33973 if test "${ac_cv_type_pid_t+set}" = set; then
33974 echo $ECHO_N "(cached) $ECHO_C" >&6
33976 cat >conftest.$ac_ext <<_ACEOF
33979 cat confdefs.h >>conftest.$ac_ext
33980 cat >>conftest.$ac_ext <<_ACEOF
33981 /* end confdefs.h. */
33982 $ac_includes_default
33988 if (sizeof (pid_t))
33994 rm -f conftest.$ac_objext
33995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33996 (eval $ac_compile) 2>conftest.er1
33998 grep -v '^ *+' conftest.er1 >conftest.err
34000 cat conftest.err >&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } &&
34003 { ac_try='test -z "$ac_c_werror_flag"
34004 || test ! -s conftest.err'
34005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006 (eval $ac_try) 2>&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); }; } &&
34010 { ac_try='test -s conftest.$ac_objext'
34011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012 (eval $ac_try) 2>&5
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); }; }; then
34016 ac_cv_type_pid_t=yes
34018 echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34021 ac_cv_type_pid_t=no
34023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34025 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34027 if test $ac_cv_type_pid_t = yes; then
34031 cat >>confdefs.h <<_ACEOF
34037 echo "$as_me:$LINENO: checking for ssize_t" >&5
34038 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34039 if test "${ac_cv_type_ssize_t+set}" = set; then
34040 echo $ECHO_N "(cached) $ECHO_C" >&6
34042 cat >conftest.$ac_ext <<_ACEOF
34045 cat confdefs.h >>conftest.$ac_ext
34046 cat >>conftest.$ac_ext <<_ACEOF
34047 /* end confdefs.h. */
34048 $ac_includes_default
34054 if (sizeof (ssize_t))
34060 rm -f conftest.$ac_objext
34061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34062 (eval $ac_compile) 2>conftest.er1
34064 grep -v '^ *+' conftest.er1 >conftest.err
34066 cat conftest.err >&5
34067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068 (exit $ac_status); } &&
34069 { ac_try='test -z "$ac_c_werror_flag"
34070 || test ! -s conftest.err'
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; } &&
34076 { ac_try='test -s conftest.$ac_objext'
34077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34078 (eval $ac_try) 2>&5
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); }; }; then
34082 ac_cv_type_ssize_t=yes
34084 echo "$as_me: failed program was:" >&5
34085 sed 's/^/| /' conftest.$ac_ext >&5
34087 ac_cv_type_ssize_t=no
34089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34091 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34092 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34093 if test $ac_cv_type_ssize_t = yes; then
34097 cat >>confdefs.h <<_ACEOF
34098 #define ssize_t signed int
34103 echo "$as_me:$LINENO: checking for caddr_t" >&5
34104 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
34105 if test "${ac_cv_type_caddr_t+set}" = set; then
34106 echo $ECHO_N "(cached) $ECHO_C" >&6
34108 cat >conftest.$ac_ext <<_ACEOF
34111 cat confdefs.h >>conftest.$ac_ext
34112 cat >>conftest.$ac_ext <<_ACEOF
34113 /* end confdefs.h. */
34114 $ac_includes_default
34120 if (sizeof (caddr_t))
34126 rm -f conftest.$ac_objext
34127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34128 (eval $ac_compile) 2>conftest.er1
34130 grep -v '^ *+' conftest.er1 >conftest.err
34132 cat conftest.err >&5
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); } &&
34135 { ac_try='test -z "$ac_c_werror_flag"
34136 || test ! -s conftest.err'
34137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138 (eval $ac_try) 2>&5
34140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141 (exit $ac_status); }; } &&
34142 { ac_try='test -s conftest.$ac_objext'
34143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34144 (eval $ac_try) 2>&5
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); }; }; then
34148 ac_cv_type_caddr_t=yes
34150 echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34153 ac_cv_type_caddr_t=no
34155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34157 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
34158 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
34159 if test $ac_cv_type_caddr_t = yes; then
34163 cat >>confdefs.h <<_ACEOF
34164 #define caddr_t char *
34169 echo "$as_me:$LINENO: checking for size_t" >&5
34170 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34171 if test "${ac_cv_type_size_t+set}" = set; then
34172 echo $ECHO_N "(cached) $ECHO_C" >&6
34174 cat >conftest.$ac_ext <<_ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h. */
34180 $ac_includes_default
34186 if (sizeof (size_t))
34192 rm -f conftest.$ac_objext
34193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34194 (eval $ac_compile) 2>conftest.er1
34196 grep -v '^ *+' conftest.er1 >conftest.err
34198 cat conftest.err >&5
34199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200 (exit $ac_status); } &&
34201 { ac_try='test -z "$ac_c_werror_flag"
34202 || test ! -s conftest.err'
34203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34204 (eval $ac_try) 2>&5
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); }; } &&
34208 { ac_try='test -s conftest.$ac_objext'
34209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210 (eval $ac_try) 2>&5
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); }; }; then
34214 ac_cv_type_size_t=yes
34216 echo "$as_me: failed program was:" >&5
34217 sed 's/^/| /' conftest.$ac_ext >&5
34219 ac_cv_type_size_t=no
34221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34223 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34224 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34225 if test $ac_cv_type_size_t = yes; then
34229 cat >>confdefs.h <<_ACEOF
34230 #define size_t unsigned
34236 echo "$as_me:$LINENO: checking for long long" >&5
34237 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34238 if test "${ac_cv_type_long_long+set}" = set; then
34239 echo $ECHO_N "(cached) $ECHO_C" >&6
34241 cat >conftest.$ac_ext <<_ACEOF
34244 cat confdefs.h >>conftest.$ac_ext
34245 cat >>conftest.$ac_ext <<_ACEOF
34246 /* end confdefs.h. */
34247 $ac_includes_default
34251 if ((long long *) 0)
34253 if (sizeof (long long))
34259 rm -f conftest.$ac_objext
34260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34261 (eval $ac_compile) 2>conftest.er1
34263 grep -v '^ *+' conftest.er1 >conftest.err
34265 cat conftest.err >&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); } &&
34268 { ac_try='test -z "$ac_c_werror_flag"
34269 || test ! -s conftest.err'
34270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271 (eval $ac_try) 2>&5
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); }; } &&
34275 { ac_try='test -s conftest.$ac_objext'
34276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277 (eval $ac_try) 2>&5
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); }; }; then
34281 ac_cv_type_long_long=yes
34283 echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34286 ac_cv_type_long_long=no
34288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34290 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34291 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34292 if test $ac_cv_type_long_long = yes; then
34294 cat >>confdefs.h <<_ACEOF
34295 #define HAVE_LONG_LONG 1
34301 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34302 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34303 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34304 echo $ECHO_N "(cached) $ECHO_C" >&6
34306 cat >conftest.$ac_ext <<_ACEOF
34309 cat confdefs.h >>conftest.$ac_ext
34310 cat >>conftest.$ac_ext <<_ACEOF
34311 /* end confdefs.h. */
34312 $ac_includes_default
34316 if ((ptrdiff_t *) 0)
34318 if (sizeof (ptrdiff_t))
34324 rm -f conftest.$ac_objext
34325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34326 (eval $ac_compile) 2>conftest.er1
34328 grep -v '^ *+' conftest.er1 >conftest.err
34330 cat conftest.err >&5
34331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332 (exit $ac_status); } &&
34333 { ac_try='test -z "$ac_c_werror_flag"
34334 || test ! -s conftest.err'
34335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34336 (eval $ac_try) 2>&5
34338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34339 (exit $ac_status); }; } &&
34340 { ac_try='test -s conftest.$ac_objext'
34341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34342 (eval $ac_try) 2>&5
34344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345 (exit $ac_status); }; }; then
34346 ac_cv_type_ptrdiff_t=yes
34348 echo "$as_me: failed program was:" >&5
34349 sed 's/^/| /' conftest.$ac_ext >&5
34351 ac_cv_type_ptrdiff_t=no
34353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34355 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34356 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34357 if test $ac_cv_type_ptrdiff_t = yes; then
34359 cat >>confdefs.h <<_ACEOF
34360 #define HAVE_PTRDIFF_T 1
34367 echo "$as_me:$LINENO: checking for socklen_t" >&5
34368 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34369 if test "${ac_cv_type_socklen_t+set}" = set; then
34370 echo $ECHO_N "(cached) $ECHO_C" >&6
34372 cat >conftest.$ac_ext <<_ACEOF
34375 cat confdefs.h >>conftest.$ac_ext
34376 cat >>conftest.$ac_ext <<_ACEOF
34377 /* end confdefs.h. */
34378 $ac_includes_default
34379 #ifdef HAVE_SYS_SOCKET_H
34380 #include <sys/socket.h>
34387 if ((socklen_t *) 0)
34389 if (sizeof (socklen_t))
34395 rm -f conftest.$ac_objext
34396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34397 (eval $ac_compile) 2>conftest.er1
34399 grep -v '^ *+' conftest.er1 >conftest.err
34401 cat conftest.err >&5
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); } &&
34404 { ac_try='test -z "$ac_c_werror_flag"
34405 || test ! -s conftest.err'
34406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407 (eval $ac_try) 2>&5
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); }; } &&
34411 { ac_try='test -s conftest.$ac_objext'
34412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413 (eval $ac_try) 2>&5
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); }; }; then
34417 ac_cv_type_socklen_t=yes
34419 echo "$as_me: failed program was:" >&5
34420 sed 's/^/| /' conftest.$ac_ext >&5
34422 ac_cv_type_socklen_t=no
34424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34426 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34427 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34428 if test $ac_cv_type_socklen_t = yes; then
34432 cat >>confdefs.h <<_ACEOF
34433 #define socklen_t int
34439 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34440 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34441 if test "${ac_cv_type_signal+set}" = set; then
34442 echo $ECHO_N "(cached) $ECHO_C" >&6
34444 cat >conftest.$ac_ext <<_ACEOF
34447 cat confdefs.h >>conftest.$ac_ext
34448 cat >>conftest.$ac_ext <<_ACEOF
34449 /* end confdefs.h. */
34450 #include <sys/types.h>
34451 #include <signal.h>
34456 extern "C" void (*signal (int, void (*)(int)))(int);
34458 void (*signal ()) ();
34469 rm -f conftest.$ac_objext
34470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34471 (eval $ac_compile) 2>conftest.er1
34473 grep -v '^ *+' conftest.er1 >conftest.err
34475 cat conftest.err >&5
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); } &&
34478 { ac_try='test -z "$ac_c_werror_flag"
34479 || test ! -s conftest.err'
34480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481 (eval $ac_try) 2>&5
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; } &&
34485 { ac_try='test -s conftest.$ac_objext'
34486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487 (eval $ac_try) 2>&5
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); }; }; then
34491 ac_cv_type_signal=void
34493 echo "$as_me: failed program was:" >&5
34494 sed 's/^/| /' conftest.$ac_ext >&5
34496 ac_cv_type_signal=int
34498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34500 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34501 echo "${ECHO_T}$ac_cv_type_signal" >&6
34503 cat >>confdefs.h <<_ACEOF
34504 #define RETSIGTYPE $ac_cv_type_signal
34509 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34510 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34511 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34512 echo $ECHO_N "(cached) $ECHO_C" >&6
34514 cat >conftest.$ac_ext <<_ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h. */
34520 $ac_includes_default
34521 #include <signal.h>
34527 if ((sig_atomic_t *) 0)
34529 if (sizeof (sig_atomic_t))
34535 rm -f conftest.$ac_objext
34536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34537 (eval $ac_compile) 2>conftest.er1
34539 grep -v '^ *+' conftest.er1 >conftest.err
34541 cat conftest.err >&5
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); } &&
34544 { ac_try='test -z "$ac_c_werror_flag"
34545 || test ! -s conftest.err'
34546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547 (eval $ac_try) 2>&5
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); }; } &&
34551 { ac_try='test -s conftest.$ac_objext'
34552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553 (eval $ac_try) 2>&5
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; }; then
34557 ac_cv_type_sig_atomic_t=yes
34559 echo "$as_me: failed program was:" >&5
34560 sed 's/^/| /' conftest.$ac_ext >&5
34562 ac_cv_type_sig_atomic_t=no
34564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34566 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34567 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34568 if test $ac_cv_type_sig_atomic_t = yes; then
34572 cat >>confdefs.h <<_ACEOF
34573 #define sig_atomic_t int
34579 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34580 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34581 if test "${ac_cv_type_uid_t+set}" = set; then
34582 echo $ECHO_N "(cached) $ECHO_C" >&6
34584 cat >conftest.$ac_ext <<_ACEOF
34587 cat confdefs.h >>conftest.$ac_ext
34588 cat >>conftest.$ac_ext <<_ACEOF
34589 /* end confdefs.h. */
34590 #include <sys/types.h>
34593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34594 $EGREP "uid_t" >/dev/null 2>&1; then
34595 ac_cv_type_uid_t=yes
34597 ac_cv_type_uid_t=no
34602 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34603 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34604 if test $ac_cv_type_uid_t = no; then
34606 cat >>confdefs.h <<\_ACEOF
34611 cat >>confdefs.h <<\_ACEOF
34618 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34619 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34620 if test "${ac_cv_header_time+set}" = set; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34623 cat >conftest.$ac_ext <<_ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h. */
34629 #include <sys/types.h>
34630 #include <sys/time.h>
34636 if ((struct tm *) 0)
34642 rm -f conftest.$ac_objext
34643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34644 (eval $ac_compile) 2>conftest.er1
34646 grep -v '^ *+' conftest.er1 >conftest.err
34648 cat conftest.err >&5
34649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650 (exit $ac_status); } &&
34651 { ac_try='test -z "$ac_c_werror_flag"
34652 || test ! -s conftest.err'
34653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34654 (eval $ac_try) 2>&5
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); }; } &&
34658 { ac_try='test -s conftest.$ac_objext'
34659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34660 (eval $ac_try) 2>&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); }; }; then
34664 ac_cv_header_time=yes
34666 echo "$as_me: failed program was:" >&5
34667 sed 's/^/| /' conftest.$ac_ext >&5
34669 ac_cv_header_time=no
34671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34673 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34674 echo "${ECHO_T}$ac_cv_header_time" >&6
34675 if test $ac_cv_header_time = yes; then
34677 cat >>confdefs.h <<\_ACEOF
34678 #define TIME_WITH_SYS_TIME 1
34683 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34684 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34685 if test "${ac_cv_struct_tm+set}" = set; then
34686 echo $ECHO_N "(cached) $ECHO_C" >&6
34688 cat >conftest.$ac_ext <<_ACEOF
34691 cat confdefs.h >>conftest.$ac_ext
34692 cat >>conftest.$ac_ext <<_ACEOF
34693 /* end confdefs.h. */
34694 #include <sys/types.h>
34700 struct tm *tp; tp->tm_sec;
34705 rm -f conftest.$ac_objext
34706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34707 (eval $ac_compile) 2>conftest.er1
34709 grep -v '^ *+' conftest.er1 >conftest.err
34711 cat conftest.err >&5
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); } &&
34714 { ac_try='test -z "$ac_c_werror_flag"
34715 || test ! -s conftest.err'
34716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717 (eval $ac_try) 2>&5
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); }; } &&
34721 { ac_try='test -s conftest.$ac_objext'
34722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723 (eval $ac_try) 2>&5
34725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); }; }; then
34727 ac_cv_struct_tm=time.h
34729 echo "$as_me: failed program was:" >&5
34730 sed 's/^/| /' conftest.$ac_ext >&5
34732 ac_cv_struct_tm=sys/time.h
34734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34736 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34737 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34738 if test $ac_cv_struct_tm = sys/time.h; then
34740 cat >>confdefs.h <<\_ACEOF
34741 #define TM_IN_SYS_TIME 1
34746 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34747 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34748 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34749 echo $ECHO_N "(cached) $ECHO_C" >&6
34751 cat >conftest.$ac_ext <<_ACEOF
34754 cat confdefs.h >>conftest.$ac_ext
34755 cat >>conftest.$ac_ext <<_ACEOF
34756 /* end confdefs.h. */
34757 $ac_includes_default
34761 static struct stat ac_aggr;
34762 if (ac_aggr.st_blksize)
34768 rm -f conftest.$ac_objext
34769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34770 (eval $ac_compile) 2>conftest.er1
34772 grep -v '^ *+' conftest.er1 >conftest.err
34774 cat conftest.err >&5
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); } &&
34777 { ac_try='test -z "$ac_c_werror_flag"
34778 || test ! -s conftest.err'
34779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34780 (eval $ac_try) 2>&5
34782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34783 (exit $ac_status); }; } &&
34784 { ac_try='test -s conftest.$ac_objext'
34785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34786 (eval $ac_try) 2>&5
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); }; }; then
34790 ac_cv_member_struct_stat_st_blksize=yes
34792 echo "$as_me: failed program was:" >&5
34793 sed 's/^/| /' conftest.$ac_ext >&5
34795 cat >conftest.$ac_ext <<_ACEOF
34798 cat confdefs.h >>conftest.$ac_ext
34799 cat >>conftest.$ac_ext <<_ACEOF
34800 /* end confdefs.h. */
34801 $ac_includes_default
34805 static struct stat ac_aggr;
34806 if (sizeof ac_aggr.st_blksize)
34812 rm -f conftest.$ac_objext
34813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34814 (eval $ac_compile) 2>conftest.er1
34816 grep -v '^ *+' conftest.er1 >conftest.err
34818 cat conftest.err >&5
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); } &&
34821 { ac_try='test -z "$ac_c_werror_flag"
34822 || test ! -s conftest.err'
34823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34824 (eval $ac_try) 2>&5
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); }; } &&
34828 { ac_try='test -s conftest.$ac_objext'
34829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830 (eval $ac_try) 2>&5
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); }; }; then
34834 ac_cv_member_struct_stat_st_blksize=yes
34836 echo "$as_me: failed program was:" >&5
34837 sed 's/^/| /' conftest.$ac_ext >&5
34839 ac_cv_member_struct_stat_st_blksize=no
34841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34846 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34847 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34849 cat >>confdefs.h <<_ACEOF
34850 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34856 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34857 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34858 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34859 echo $ECHO_N "(cached) $ECHO_C" >&6
34861 cat >conftest.$ac_ext <<_ACEOF
34864 cat confdefs.h >>conftest.$ac_ext
34865 cat >>conftest.$ac_ext <<_ACEOF
34866 /* end confdefs.h. */
34867 $ac_includes_default
34873 static struct passwd ac_aggr;
34874 if (ac_aggr.pw_gecos)
34880 rm -f conftest.$ac_objext
34881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34882 (eval $ac_compile) 2>conftest.er1
34884 grep -v '^ *+' conftest.er1 >conftest.err
34886 cat conftest.err >&5
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); } &&
34889 { ac_try='test -z "$ac_c_werror_flag"
34890 || test ! -s conftest.err'
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; } &&
34896 { ac_try='test -s conftest.$ac_objext'
34897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34898 (eval $ac_try) 2>&5
34900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901 (exit $ac_status); }; }; then
34902 ac_cv_member_struct_passwd_pw_gecos=yes
34904 echo "$as_me: failed program was:" >&5
34905 sed 's/^/| /' conftest.$ac_ext >&5
34907 cat >conftest.$ac_ext <<_ACEOF
34910 cat confdefs.h >>conftest.$ac_ext
34911 cat >>conftest.$ac_ext <<_ACEOF
34912 /* end confdefs.h. */
34913 $ac_includes_default
34919 static struct passwd ac_aggr;
34920 if (sizeof ac_aggr.pw_gecos)
34926 rm -f conftest.$ac_objext
34927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34928 (eval $ac_compile) 2>conftest.er1
34930 grep -v '^ *+' conftest.er1 >conftest.err
34932 cat conftest.err >&5
34933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934 (exit $ac_status); } &&
34935 { ac_try='test -z "$ac_c_werror_flag"
34936 || test ! -s conftest.err'
34937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34938 (eval $ac_try) 2>&5
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); }; } &&
34942 { ac_try='test -s conftest.$ac_objext'
34943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34944 (eval $ac_try) 2>&5
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; }; then
34948 ac_cv_member_struct_passwd_pw_gecos=yes
34950 echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34953 ac_cv_member_struct_passwd_pw_gecos=no
34955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34960 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34961 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34963 cat >>confdefs.h <<_ACEOF
34964 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34970 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34971 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34972 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34973 echo $ECHO_N "(cached) $ECHO_C" >&6
34975 cat >conftest.$ac_ext <<_ACEOF
34978 cat confdefs.h >>conftest.$ac_ext
34979 cat >>conftest.$ac_ext <<_ACEOF
34980 /* end confdefs.h. */
34981 $ac_includes_default
34987 static struct passwd ac_aggr;
34988 if (ac_aggr.pw_passwd)
34994 rm -f conftest.$ac_objext
34995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34996 (eval $ac_compile) 2>conftest.er1
34998 grep -v '^ *+' conftest.er1 >conftest.err
35000 cat conftest.err >&5
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); } &&
35003 { ac_try='test -z "$ac_c_werror_flag"
35004 || test ! -s conftest.err'
35005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006 (eval $ac_try) 2>&5
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); }; } &&
35010 { ac_try='test -s conftest.$ac_objext'
35011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012 (eval $ac_try) 2>&5
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); }; }; then
35016 ac_cv_member_struct_passwd_pw_passwd=yes
35018 echo "$as_me: failed program was:" >&5
35019 sed 's/^/| /' conftest.$ac_ext >&5
35021 cat >conftest.$ac_ext <<_ACEOF
35024 cat confdefs.h >>conftest.$ac_ext
35025 cat >>conftest.$ac_ext <<_ACEOF
35026 /* end confdefs.h. */
35027 $ac_includes_default
35033 static struct passwd ac_aggr;
35034 if (sizeof ac_aggr.pw_passwd)
35040 rm -f conftest.$ac_objext
35041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35042 (eval $ac_compile) 2>conftest.er1
35044 grep -v '^ *+' conftest.er1 >conftest.err
35046 cat conftest.err >&5
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); } &&
35049 { ac_try='test -z "$ac_c_werror_flag"
35050 || test ! -s conftest.err'
35051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35052 (eval $ac_try) 2>&5
35054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35055 (exit $ac_status); }; } &&
35056 { ac_try='test -s conftest.$ac_objext'
35057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35058 (eval $ac_try) 2>&5
35060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061 (exit $ac_status); }; }; then
35062 ac_cv_member_struct_passwd_pw_passwd=yes
35064 echo "$as_me: failed program was:" >&5
35065 sed 's/^/| /' conftest.$ac_ext >&5
35067 ac_cv_member_struct_passwd_pw_passwd=no
35069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
35074 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
35075 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
35077 cat >>confdefs.h <<_ACEOF
35078 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
35085 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
35086 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
35087 if test "${ol_cv_c_upper_lower+set}" = set; then
35088 echo $ECHO_N "(cached) $ECHO_C" >&6
35091 if test "$cross_compiling" = yes; then
35092 ol_cv_c_upper_lower=safe
35094 cat >conftest.$ac_ext <<_ACEOF
35097 cat confdefs.h >>conftest.$ac_ext
35098 cat >>conftest.$ac_ext <<_ACEOF
35099 /* end confdefs.h. */
35104 if ('C' == toupper('C'))
35110 rm -f conftest$ac_exeext
35111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35112 (eval $ac_link) 2>&5
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35117 (eval $ac_try) 2>&5
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); }; }; then
35121 ol_cv_c_upper_lower=no
35123 echo "$as_me: program exited with status $ac_status" >&5
35124 echo "$as_me: failed program was:" >&5
35125 sed 's/^/| /' conftest.$ac_ext >&5
35127 ( exit $ac_status )
35128 ol_cv_c_upper_lower=yes
35130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35133 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
35134 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
35135 if test $ol_cv_c_upper_lower != no ; then
35137 cat >>confdefs.h <<\_ACEOF
35138 #define C_UPPER_LOWER 1
35143 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35144 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35145 if test "${ac_cv_c_const+set}" = set; then
35146 echo $ECHO_N "(cached) $ECHO_C" >&6
35148 cat >conftest.$ac_ext <<_ACEOF
35151 cat confdefs.h >>conftest.$ac_ext
35152 cat >>conftest.$ac_ext <<_ACEOF
35153 /* end confdefs.h. */
35158 /* FIXME: Include the comments suggested by Paul. */
35159 #ifndef __cplusplus
35160 /* Ultrix mips cc rejects this. */
35161 typedef int charset[2];
35163 /* SunOS 4.1.1 cc rejects this. */
35164 char const *const *ccp;
35166 /* NEC SVR4.0.2 mips cc rejects this. */
35167 struct point {int x, y;};
35168 static struct point const zero = {0,0};
35169 /* AIX XL C 1.02.0.0 rejects this.
35170 It does not let you subtract one const X* pointer from another in
35171 an arm of an if-expression whose if-part is not a constant
35173 const char *g = "string";
35174 ccp = &g + (g ? g-g : 0);
35175 /* HPUX 7.0 cc rejects these. */
35178 ccp = (char const *const *) p;
35179 { /* SCO 3.2v4 cc rejects this. */
35181 char const *s = 0 ? (char *) 0 : (char const *) 0;
35185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
35186 int x[] = {25, 17};
35187 const int *foo = &x[0];
35190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35191 typedef const int *iptr;
35195 { /* AIX XL C 1.02.0.0 rejects this saying
35196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35197 struct s { int j; const int *ap[3]; };
35198 struct s *b; b->j = 5;
35200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35201 const int foo = 10;
35209 rm -f conftest.$ac_objext
35210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35211 (eval $ac_compile) 2>conftest.er1
35213 grep -v '^ *+' conftest.er1 >conftest.err
35215 cat conftest.err >&5
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); } &&
35218 { ac_try='test -z "$ac_c_werror_flag"
35219 || test ! -s conftest.err'
35220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35221 (eval $ac_try) 2>&5
35223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35224 (exit $ac_status); }; } &&
35225 { ac_try='test -s conftest.$ac_objext'
35226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35227 (eval $ac_try) 2>&5
35229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230 (exit $ac_status); }; }; then
35233 echo "$as_me: failed program was:" >&5
35234 sed 's/^/| /' conftest.$ac_ext >&5
35238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35240 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35241 echo "${ECHO_T}$ac_cv_c_const" >&6
35242 if test $ac_cv_c_const = no; then
35244 cat >>confdefs.h <<\_ACEOF
35250 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35251 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35252 if test "${ol_cv_c_volatile+set}" = set; then
35253 echo $ECHO_N "(cached) $ECHO_C" >&6
35255 cat >conftest.$ac_ext <<_ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h. */
35265 volatile int a; int * volatile b = x ? &y : &z;
35266 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35272 rm -f conftest.$ac_objext
35273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35274 (eval $ac_compile) 2>conftest.er1
35276 grep -v '^ *+' conftest.er1 >conftest.err
35278 cat conftest.err >&5
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); } &&
35281 { ac_try='test -z "$ac_c_werror_flag"
35282 || test ! -s conftest.err'
35283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35284 (eval $ac_try) 2>&5
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); }; } &&
35288 { ac_try='test -s conftest.$ac_objext'
35289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35290 (eval $ac_try) 2>&5
35292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; }; then
35294 ol_cv_c_volatile=yes
35296 echo "$as_me: failed program was:" >&5
35297 sed 's/^/| /' conftest.$ac_ext >&5
35299 ol_cv_c_volatile=no
35301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35303 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35304 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35305 if test $ol_cv_c_volatile = yes; then
35309 cat >>confdefs.h <<\_ACEOF
35316 if test $cross_compiling = yes ; then
35317 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35318 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35320 cat >>confdefs.h <<\_ACEOF
35321 #define CROSS_COMPILING 1
35325 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35326 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35327 if test "${ac_cv_c_bigendian+set}" = set; then
35328 echo $ECHO_N "(cached) $ECHO_C" >&6
35330 # See if sys/param.h defines the BYTE_ORDER macro.
35331 cat >conftest.$ac_ext <<_ACEOF
35334 cat confdefs.h >>conftest.$ac_ext
35335 cat >>conftest.$ac_ext <<_ACEOF
35336 /* end confdefs.h. */
35337 #include <sys/types.h>
35338 #include <sys/param.h>
35343 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35344 bogus endian macros
35351 rm -f conftest.$ac_objext
35352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35353 (eval $ac_compile) 2>conftest.er1
35355 grep -v '^ *+' conftest.er1 >conftest.err
35357 cat conftest.err >&5
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); } &&
35360 { ac_try='test -z "$ac_c_werror_flag"
35361 || test ! -s conftest.err'
35362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35363 (eval $ac_try) 2>&5
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); }; } &&
35367 { ac_try='test -s conftest.$ac_objext'
35368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35369 (eval $ac_try) 2>&5
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); }; }; then
35373 # It does; now see whether it defined to BIG_ENDIAN or not.
35374 cat >conftest.$ac_ext <<_ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h. */
35380 #include <sys/types.h>
35381 #include <sys/param.h>
35386 #if BYTE_ORDER != BIG_ENDIAN
35394 rm -f conftest.$ac_objext
35395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35396 (eval $ac_compile) 2>conftest.er1
35398 grep -v '^ *+' conftest.er1 >conftest.err
35400 cat conftest.err >&5
35401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 (exit $ac_status); } &&
35403 { ac_try='test -z "$ac_c_werror_flag"
35404 || test ! -s conftest.err'
35405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35406 (eval $ac_try) 2>&5
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); }; } &&
35410 { ac_try='test -s conftest.$ac_objext'
35411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412 (eval $ac_try) 2>&5
35414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415 (exit $ac_status); }; }; then
35416 ac_cv_c_bigendian=yes
35418 echo "$as_me: failed program was:" >&5
35419 sed 's/^/| /' conftest.$ac_ext >&5
35421 ac_cv_c_bigendian=no
35423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35425 echo "$as_me: failed program was:" >&5
35426 sed 's/^/| /' conftest.$ac_ext >&5
35428 # It does not; compile a test program.
35429 if test "$cross_compiling" = yes; then
35430 # try to guess the endianness by grepping values into an object file
35431 ac_cv_c_bigendian=unknown
35432 cat >conftest.$ac_ext <<_ACEOF
35435 cat confdefs.h >>conftest.$ac_ext
35436 cat >>conftest.$ac_ext <<_ACEOF
35437 /* end confdefs.h. */
35438 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35439 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35440 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35441 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35442 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35443 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35447 _ascii (); _ebcdic ();
35452 rm -f conftest.$ac_objext
35453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35454 (eval $ac_compile) 2>conftest.er1
35456 grep -v '^ *+' conftest.er1 >conftest.err
35458 cat conftest.err >&5
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); } &&
35461 { ac_try='test -z "$ac_c_werror_flag"
35462 || test ! -s conftest.err'
35463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35464 (eval $ac_try) 2>&5
35466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467 (exit $ac_status); }; } &&
35468 { ac_try='test -s conftest.$ac_objext'
35469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35470 (eval $ac_try) 2>&5
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); }; }; then
35474 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35475 ac_cv_c_bigendian=yes
35477 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35478 if test "$ac_cv_c_bigendian" = unknown; then
35479 ac_cv_c_bigendian=no
35481 # finding both strings is unlikely to happen, but who knows?
35482 ac_cv_c_bigendian=unknown
35486 echo "$as_me: failed program was:" >&5
35487 sed 's/^/| /' conftest.$ac_ext >&5
35490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35492 cat >conftest.$ac_ext <<_ACEOF
35495 cat confdefs.h >>conftest.$ac_ext
35496 cat >>conftest.$ac_ext <<_ACEOF
35497 /* end confdefs.h. */
35501 /* Are we little or big endian? From Harbison&Steele. */
35505 char c[sizeof (long)];
35508 exit (u.c[sizeof (long) - 1] == 1);
35511 rm -f conftest$ac_exeext
35512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35513 (eval $ac_link) 2>&5
35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518 (eval $ac_try) 2>&5
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); }; }; then
35522 ac_cv_c_bigendian=no
35524 echo "$as_me: program exited with status $ac_status" >&5
35525 echo "$as_me: failed program was:" >&5
35526 sed 's/^/| /' conftest.$ac_ext >&5
35528 ( exit $ac_status )
35529 ac_cv_c_bigendian=yes
35531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35536 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35537 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35538 case $ac_cv_c_bigendian in
35541 cat >>confdefs.h <<\_ACEOF
35542 #define WORDS_BIGENDIAN 1
35548 { { echo "$as_me:$LINENO: error: unknown endianness
35549 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35550 echo "$as_me: error: unknown endianness
35551 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35552 { (exit 1); exit 1; }; } ;;
35557 echo "$as_me:$LINENO: checking for short" >&5
35558 echo $ECHO_N "checking for short... $ECHO_C" >&6
35559 if test "${ac_cv_type_short+set}" = set; then
35560 echo $ECHO_N "(cached) $ECHO_C" >&6
35562 cat >conftest.$ac_ext <<_ACEOF
35565 cat confdefs.h >>conftest.$ac_ext
35566 cat >>conftest.$ac_ext <<_ACEOF
35567 /* end confdefs.h. */
35568 $ac_includes_default
35574 if (sizeof (short))
35580 rm -f conftest.$ac_objext
35581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35582 (eval $ac_compile) 2>conftest.er1
35584 grep -v '^ *+' conftest.er1 >conftest.err
35586 cat conftest.err >&5
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); } &&
35589 { ac_try='test -z "$ac_c_werror_flag"
35590 || test ! -s conftest.err'
35591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35592 (eval $ac_try) 2>&5
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); }; } &&
35596 { ac_try='test -s conftest.$ac_objext'
35597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35598 (eval $ac_try) 2>&5
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); }; }; then
35602 ac_cv_type_short=yes
35604 echo "$as_me: failed program was:" >&5
35605 sed 's/^/| /' conftest.$ac_ext >&5
35607 ac_cv_type_short=no
35609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35611 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35612 echo "${ECHO_T}$ac_cv_type_short" >&6
35614 echo "$as_me:$LINENO: checking size of short" >&5
35615 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35616 if test "${ac_cv_sizeof_short+set}" = set; then
35617 echo $ECHO_N "(cached) $ECHO_C" >&6
35619 if test "$ac_cv_type_short" = yes; then
35620 # The cast to unsigned long works around a bug in the HP C Compiler
35621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35623 # This bug is HP SR number 8606223364.
35624 if test "$cross_compiling" = yes; then
35625 # Depending upon the size, compute the lo and hi bounds.
35626 cat >conftest.$ac_ext <<_ACEOF
35629 cat confdefs.h >>conftest.$ac_ext
35630 cat >>conftest.$ac_ext <<_ACEOF
35631 /* end confdefs.h. */
35632 $ac_includes_default
35636 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35643 rm -f conftest.$ac_objext
35644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35645 (eval $ac_compile) 2>conftest.er1
35647 grep -v '^ *+' conftest.er1 >conftest.err
35649 cat conftest.err >&5
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } &&
35652 { ac_try='test -z "$ac_c_werror_flag"
35653 || test ! -s conftest.err'
35654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35655 (eval $ac_try) 2>&5
35657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658 (exit $ac_status); }; } &&
35659 { ac_try='test -s conftest.$ac_objext'
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661 (eval $ac_try) 2>&5
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; }; then
35667 cat >conftest.$ac_ext <<_ACEOF
35670 cat confdefs.h >>conftest.$ac_ext
35671 cat >>conftest.$ac_ext <<_ACEOF
35672 /* end confdefs.h. */
35673 $ac_includes_default
35677 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35684 rm -f conftest.$ac_objext
35685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35686 (eval $ac_compile) 2>conftest.er1
35688 grep -v '^ *+' conftest.er1 >conftest.err
35690 cat conftest.err >&5
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); } &&
35693 { ac_try='test -z "$ac_c_werror_flag"
35694 || test ! -s conftest.err'
35695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35696 (eval $ac_try) 2>&5
35698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35699 (exit $ac_status); }; } &&
35700 { ac_try='test -s conftest.$ac_objext'
35701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35702 (eval $ac_try) 2>&5
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); }; }; then
35706 ac_hi=$ac_mid; break
35708 echo "$as_me: failed program was:" >&5
35709 sed 's/^/| /' conftest.$ac_ext >&5
35711 ac_lo=`expr $ac_mid + 1`
35712 if test $ac_lo -le $ac_mid; then
35716 ac_mid=`expr 2 '*' $ac_mid + 1`
35718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35721 echo "$as_me: failed program was:" >&5
35722 sed 's/^/| /' conftest.$ac_ext >&5
35724 cat >conftest.$ac_ext <<_ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h. */
35730 $ac_includes_default
35734 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35741 rm -f conftest.$ac_objext
35742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35743 (eval $ac_compile) 2>conftest.er1
35745 grep -v '^ *+' conftest.er1 >conftest.err
35747 cat conftest.err >&5
35748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749 (exit $ac_status); } &&
35750 { ac_try='test -z "$ac_c_werror_flag"
35751 || test ! -s conftest.err'
35752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35753 (eval $ac_try) 2>&5
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); }; } &&
35757 { ac_try='test -s conftest.$ac_objext'
35758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35759 (eval $ac_try) 2>&5
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); }; }; then
35765 cat >conftest.$ac_ext <<_ACEOF
35768 cat confdefs.h >>conftest.$ac_ext
35769 cat >>conftest.$ac_ext <<_ACEOF
35770 /* end confdefs.h. */
35771 $ac_includes_default
35775 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35782 rm -f conftest.$ac_objext
35783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35784 (eval $ac_compile) 2>conftest.er1
35786 grep -v '^ *+' conftest.er1 >conftest.err
35788 cat conftest.err >&5
35789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790 (exit $ac_status); } &&
35791 { ac_try='test -z "$ac_c_werror_flag"
35792 || test ! -s conftest.err'
35793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35794 (eval $ac_try) 2>&5
35796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797 (exit $ac_status); }; } &&
35798 { ac_try='test -s conftest.$ac_objext'
35799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35800 (eval $ac_try) 2>&5
35802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803 (exit $ac_status); }; }; then
35804 ac_lo=$ac_mid; break
35806 echo "$as_me: failed program was:" >&5
35807 sed 's/^/| /' conftest.$ac_ext >&5
35809 ac_hi=`expr '(' $ac_mid ')' - 1`
35810 if test $ac_mid -le $ac_hi; then
35814 ac_mid=`expr 2 '*' $ac_mid`
35816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35819 echo "$as_me: failed program was:" >&5
35820 sed 's/^/| /' conftest.$ac_ext >&5
35824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35827 # Binary search between lo and hi bounds.
35828 while test "x$ac_lo" != "x$ac_hi"; do
35829 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35830 cat >conftest.$ac_ext <<_ACEOF
35833 cat confdefs.h >>conftest.$ac_ext
35834 cat >>conftest.$ac_ext <<_ACEOF
35835 /* end confdefs.h. */
35836 $ac_includes_default
35840 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35847 rm -f conftest.$ac_objext
35848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35849 (eval $ac_compile) 2>conftest.er1
35851 grep -v '^ *+' conftest.er1 >conftest.err
35853 cat conftest.err >&5
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); } &&
35856 { ac_try='test -z "$ac_c_werror_flag"
35857 || test ! -s conftest.err'
35858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859 (eval $ac_try) 2>&5
35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862 (exit $ac_status); }; } &&
35863 { ac_try='test -s conftest.$ac_objext'
35864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35865 (eval $ac_try) 2>&5
35867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868 (exit $ac_status); }; }; then
35871 echo "$as_me: failed program was:" >&5
35872 sed 's/^/| /' conftest.$ac_ext >&5
35874 ac_lo=`expr '(' $ac_mid ')' + 1`
35876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35879 ?*) ac_cv_sizeof_short=$ac_lo;;
35880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35881 See \`config.log' for more details." >&5
35882 echo "$as_me: error: cannot compute sizeof (short), 77
35883 See \`config.log' for more details." >&2;}
35884 { (exit 1); exit 1; }; } ;;
35887 if test "$cross_compiling" = yes; then
35888 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35889 See \`config.log' for more details." >&5
35890 echo "$as_me: error: cannot run test program while cross compiling
35891 See \`config.log' for more details." >&2;}
35892 { (exit 1); exit 1; }; }
35894 cat >conftest.$ac_ext <<_ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h. */
35900 $ac_includes_default
35901 long longval () { return (long) (sizeof (short)); }
35902 unsigned long ulongval () { return (long) (sizeof (short)); }
35904 #include <stdlib.h>
35909 FILE *f = fopen ("conftest.val", "w");
35912 if (((long) (sizeof (short))) < 0)
35914 long i = longval ();
35915 if (i != ((long) (sizeof (short))))
35917 fprintf (f, "%ld\n", i);
35921 unsigned long i = ulongval ();
35922 if (i != ((long) (sizeof (short))))
35924 fprintf (f, "%lu\n", i);
35926 exit (ferror (f) || fclose (f) != 0);
35932 rm -f conftest$ac_exeext
35933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35934 (eval $ac_link) 2>&5
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35939 (eval $ac_try) 2>&5
35941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35942 (exit $ac_status); }; }; then
35943 ac_cv_sizeof_short=`cat conftest.val`
35945 echo "$as_me: program exited with status $ac_status" >&5
35946 echo "$as_me: failed program was:" >&5
35947 sed 's/^/| /' conftest.$ac_ext >&5
35949 ( exit $ac_status )
35950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35951 See \`config.log' for more details." >&5
35952 echo "$as_me: error: cannot compute sizeof (short), 77
35953 See \`config.log' for more details." >&2;}
35954 { (exit 1); exit 1; }; }
35956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35961 ac_cv_sizeof_short=0
35964 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35965 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35966 cat >>confdefs.h <<_ACEOF
35967 #define SIZEOF_SHORT $ac_cv_sizeof_short
35971 echo "$as_me:$LINENO: checking for int" >&5
35972 echo $ECHO_N "checking for int... $ECHO_C" >&6
35973 if test "${ac_cv_type_int+set}" = set; then
35974 echo $ECHO_N "(cached) $ECHO_C" >&6
35976 cat >conftest.$ac_ext <<_ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h. */
35982 $ac_includes_default
35994 rm -f conftest.$ac_objext
35995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35996 (eval $ac_compile) 2>conftest.er1
35998 grep -v '^ *+' conftest.er1 >conftest.err
36000 cat conftest.err >&5
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); } &&
36003 { ac_try='test -z "$ac_c_werror_flag"
36004 || test ! -s conftest.err'
36005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36006 (eval $ac_try) 2>&5
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); }; } &&
36010 { ac_try='test -s conftest.$ac_objext'
36011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36012 (eval $ac_try) 2>&5
36014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015 (exit $ac_status); }; }; then
36018 echo "$as_me: failed program was:" >&5
36019 sed 's/^/| /' conftest.$ac_ext >&5
36023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36025 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
36026 echo "${ECHO_T}$ac_cv_type_int" >&6
36028 echo "$as_me:$LINENO: checking size of int" >&5
36029 echo $ECHO_N "checking size of int... $ECHO_C" >&6
36030 if test "${ac_cv_sizeof_int+set}" = set; then
36031 echo $ECHO_N "(cached) $ECHO_C" >&6
36033 if test "$ac_cv_type_int" = yes; then
36034 # The cast to unsigned long works around a bug in the HP C Compiler
36035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36037 # This bug is HP SR number 8606223364.
36038 if test "$cross_compiling" = yes; then
36039 # Depending upon the size, compute the lo and hi bounds.
36040 cat >conftest.$ac_ext <<_ACEOF
36043 cat confdefs.h >>conftest.$ac_ext
36044 cat >>conftest.$ac_ext <<_ACEOF
36045 /* end confdefs.h. */
36046 $ac_includes_default
36050 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
36057 rm -f conftest.$ac_objext
36058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36059 (eval $ac_compile) 2>conftest.er1
36061 grep -v '^ *+' conftest.er1 >conftest.err
36063 cat conftest.err >&5
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); } &&
36066 { ac_try='test -z "$ac_c_werror_flag"
36067 || test ! -s conftest.err'
36068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36069 (eval $ac_try) 2>&5
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); }; } &&
36073 { ac_try='test -s conftest.$ac_objext'
36074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36075 (eval $ac_try) 2>&5
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); }; }; then
36081 cat >conftest.$ac_ext <<_ACEOF
36084 cat confdefs.h >>conftest.$ac_ext
36085 cat >>conftest.$ac_ext <<_ACEOF
36086 /* end confdefs.h. */
36087 $ac_includes_default
36091 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36098 rm -f conftest.$ac_objext
36099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36100 (eval $ac_compile) 2>conftest.er1
36102 grep -v '^ *+' conftest.er1 >conftest.err
36104 cat conftest.err >&5
36105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106 (exit $ac_status); } &&
36107 { ac_try='test -z "$ac_c_werror_flag"
36108 || test ! -s conftest.err'
36109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110 (eval $ac_try) 2>&5
36112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113 (exit $ac_status); }; } &&
36114 { ac_try='test -s conftest.$ac_objext'
36115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36116 (eval $ac_try) 2>&5
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); }; }; then
36120 ac_hi=$ac_mid; break
36122 echo "$as_me: failed program was:" >&5
36123 sed 's/^/| /' conftest.$ac_ext >&5
36125 ac_lo=`expr $ac_mid + 1`
36126 if test $ac_lo -le $ac_mid; then
36130 ac_mid=`expr 2 '*' $ac_mid + 1`
36132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36135 echo "$as_me: failed program was:" >&5
36136 sed 's/^/| /' conftest.$ac_ext >&5
36138 cat >conftest.$ac_ext <<_ACEOF
36141 cat confdefs.h >>conftest.$ac_ext
36142 cat >>conftest.$ac_ext <<_ACEOF
36143 /* end confdefs.h. */
36144 $ac_includes_default
36148 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
36155 rm -f conftest.$ac_objext
36156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36157 (eval $ac_compile) 2>conftest.er1
36159 grep -v '^ *+' conftest.er1 >conftest.err
36161 cat conftest.err >&5
36162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163 (exit $ac_status); } &&
36164 { ac_try='test -z "$ac_c_werror_flag"
36165 || test ! -s conftest.err'
36166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36167 (eval $ac_try) 2>&5
36169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170 (exit $ac_status); }; } &&
36171 { ac_try='test -s conftest.$ac_objext'
36172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36173 (eval $ac_try) 2>&5
36175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176 (exit $ac_status); }; }; then
36179 cat >conftest.$ac_ext <<_ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h. */
36185 $ac_includes_default
36189 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36196 rm -f conftest.$ac_objext
36197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36198 (eval $ac_compile) 2>conftest.er1
36200 grep -v '^ *+' conftest.er1 >conftest.err
36202 cat conftest.err >&5
36203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204 (exit $ac_status); } &&
36205 { ac_try='test -z "$ac_c_werror_flag"
36206 || test ! -s conftest.err'
36207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36208 (eval $ac_try) 2>&5
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); }; } &&
36212 { ac_try='test -s conftest.$ac_objext'
36213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36214 (eval $ac_try) 2>&5
36216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217 (exit $ac_status); }; }; then
36218 ac_lo=$ac_mid; break
36220 echo "$as_me: failed program was:" >&5
36221 sed 's/^/| /' conftest.$ac_ext >&5
36223 ac_hi=`expr '(' $ac_mid ')' - 1`
36224 if test $ac_mid -le $ac_hi; then
36228 ac_mid=`expr 2 '*' $ac_mid`
36230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36233 echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36241 # Binary search between lo and hi bounds.
36242 while test "x$ac_lo" != "x$ac_hi"; do
36243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36244 cat >conftest.$ac_ext <<_ACEOF
36247 cat confdefs.h >>conftest.$ac_ext
36248 cat >>conftest.$ac_ext <<_ACEOF
36249 /* end confdefs.h. */
36250 $ac_includes_default
36254 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36261 rm -f conftest.$ac_objext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36263 (eval $ac_compile) 2>conftest.er1
36265 grep -v '^ *+' conftest.er1 >conftest.err
36267 cat conftest.err >&5
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); } &&
36270 { ac_try='test -z "$ac_c_werror_flag"
36271 || test ! -s conftest.err'
36272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273 (eval $ac_try) 2>&5
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); }; } &&
36277 { ac_try='test -s conftest.$ac_objext'
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; }; then
36285 echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36288 ac_lo=`expr '(' $ac_mid ')' + 1`
36290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36293 ?*) ac_cv_sizeof_int=$ac_lo;;
36294 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36295 See \`config.log' for more details." >&5
36296 echo "$as_me: error: cannot compute sizeof (int), 77
36297 See \`config.log' for more details." >&2;}
36298 { (exit 1); exit 1; }; } ;;
36301 if test "$cross_compiling" = yes; then
36302 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36303 See \`config.log' for more details." >&5
36304 echo "$as_me: error: cannot run test program while cross compiling
36305 See \`config.log' for more details." >&2;}
36306 { (exit 1); exit 1; }; }
36308 cat >conftest.$ac_ext <<_ACEOF
36311 cat confdefs.h >>conftest.$ac_ext
36312 cat >>conftest.$ac_ext <<_ACEOF
36313 /* end confdefs.h. */
36314 $ac_includes_default
36315 long longval () { return (long) (sizeof (int)); }
36316 unsigned long ulongval () { return (long) (sizeof (int)); }
36318 #include <stdlib.h>
36323 FILE *f = fopen ("conftest.val", "w");
36326 if (((long) (sizeof (int))) < 0)
36328 long i = longval ();
36329 if (i != ((long) (sizeof (int))))
36331 fprintf (f, "%ld\n", i);
36335 unsigned long i = ulongval ();
36336 if (i != ((long) (sizeof (int))))
36338 fprintf (f, "%lu\n", i);
36340 exit (ferror (f) || fclose (f) != 0);
36346 rm -f conftest$ac_exeext
36347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36348 (eval $ac_link) 2>&5
36350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36353 (eval $ac_try) 2>&5
36355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356 (exit $ac_status); }; }; then
36357 ac_cv_sizeof_int=`cat conftest.val`
36359 echo "$as_me: program exited with status $ac_status" >&5
36360 echo "$as_me: failed program was:" >&5
36361 sed 's/^/| /' conftest.$ac_ext >&5
36363 ( exit $ac_status )
36364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36365 See \`config.log' for more details." >&5
36366 echo "$as_me: error: cannot compute sizeof (int), 77
36367 See \`config.log' for more details." >&2;}
36368 { (exit 1); exit 1; }; }
36370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36379 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36380 cat >>confdefs.h <<_ACEOF
36381 #define SIZEOF_INT $ac_cv_sizeof_int
36385 echo "$as_me:$LINENO: checking for long" >&5
36386 echo $ECHO_N "checking for long... $ECHO_C" >&6
36387 if test "${ac_cv_type_long+set}" = set; then
36388 echo $ECHO_N "(cached) $ECHO_C" >&6
36390 cat >conftest.$ac_ext <<_ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h. */
36396 $ac_includes_default
36408 rm -f conftest.$ac_objext
36409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36410 (eval $ac_compile) 2>conftest.er1
36412 grep -v '^ *+' conftest.er1 >conftest.err
36414 cat conftest.err >&5
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); } &&
36417 { ac_try='test -z "$ac_c_werror_flag"
36418 || test ! -s conftest.err'
36419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36420 (eval $ac_try) 2>&5
36422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423 (exit $ac_status); }; } &&
36424 { ac_try='test -s conftest.$ac_objext'
36425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36426 (eval $ac_try) 2>&5
36428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429 (exit $ac_status); }; }; then
36430 ac_cv_type_long=yes
36432 echo "$as_me: failed program was:" >&5
36433 sed 's/^/| /' conftest.$ac_ext >&5
36437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36439 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36440 echo "${ECHO_T}$ac_cv_type_long" >&6
36442 echo "$as_me:$LINENO: checking size of long" >&5
36443 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36444 if test "${ac_cv_sizeof_long+set}" = set; then
36445 echo $ECHO_N "(cached) $ECHO_C" >&6
36447 if test "$ac_cv_type_long" = yes; then
36448 # The cast to unsigned long works around a bug in the HP C Compiler
36449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36451 # This bug is HP SR number 8606223364.
36452 if test "$cross_compiling" = yes; then
36453 # Depending upon the size, compute the lo and hi bounds.
36454 cat >conftest.$ac_ext <<_ACEOF
36457 cat confdefs.h >>conftest.$ac_ext
36458 cat >>conftest.$ac_ext <<_ACEOF
36459 /* end confdefs.h. */
36460 $ac_includes_default
36464 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36471 rm -f conftest.$ac_objext
36472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36473 (eval $ac_compile) 2>conftest.er1
36475 grep -v '^ *+' conftest.er1 >conftest.err
36477 cat conftest.err >&5
36478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36479 (exit $ac_status); } &&
36480 { ac_try='test -z "$ac_c_werror_flag"
36481 || test ! -s conftest.err'
36482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36483 (eval $ac_try) 2>&5
36485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36486 (exit $ac_status); }; } &&
36487 { ac_try='test -s conftest.$ac_objext'
36488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36489 (eval $ac_try) 2>&5
36491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492 (exit $ac_status); }; }; then
36495 cat >conftest.$ac_ext <<_ACEOF
36498 cat confdefs.h >>conftest.$ac_ext
36499 cat >>conftest.$ac_ext <<_ACEOF
36500 /* end confdefs.h. */
36501 $ac_includes_default
36505 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36512 rm -f conftest.$ac_objext
36513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36514 (eval $ac_compile) 2>conftest.er1
36516 grep -v '^ *+' conftest.er1 >conftest.err
36518 cat conftest.err >&5
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); } &&
36521 { ac_try='test -z "$ac_c_werror_flag"
36522 || test ! -s conftest.err'
36523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36524 (eval $ac_try) 2>&5
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); }; } &&
36528 { ac_try='test -s conftest.$ac_objext'
36529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36530 (eval $ac_try) 2>&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); }; }; then
36534 ac_hi=$ac_mid; break
36536 echo "$as_me: failed program was:" >&5
36537 sed 's/^/| /' conftest.$ac_ext >&5
36539 ac_lo=`expr $ac_mid + 1`
36540 if test $ac_lo -le $ac_mid; then
36544 ac_mid=`expr 2 '*' $ac_mid + 1`
36546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36549 echo "$as_me: failed program was:" >&5
36550 sed 's/^/| /' conftest.$ac_ext >&5
36552 cat >conftest.$ac_ext <<_ACEOF
36555 cat confdefs.h >>conftest.$ac_ext
36556 cat >>conftest.$ac_ext <<_ACEOF
36557 /* end confdefs.h. */
36558 $ac_includes_default
36562 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36569 rm -f conftest.$ac_objext
36570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36571 (eval $ac_compile) 2>conftest.er1
36573 grep -v '^ *+' conftest.er1 >conftest.err
36575 cat conftest.err >&5
36576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36577 (exit $ac_status); } &&
36578 { ac_try='test -z "$ac_c_werror_flag"
36579 || test ! -s conftest.err'
36580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36581 (eval $ac_try) 2>&5
36583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584 (exit $ac_status); }; } &&
36585 { ac_try='test -s conftest.$ac_objext'
36586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36587 (eval $ac_try) 2>&5
36589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590 (exit $ac_status); }; }; then
36593 cat >conftest.$ac_ext <<_ACEOF
36596 cat confdefs.h >>conftest.$ac_ext
36597 cat >>conftest.$ac_ext <<_ACEOF
36598 /* end confdefs.h. */
36599 $ac_includes_default
36603 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36610 rm -f conftest.$ac_objext
36611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36612 (eval $ac_compile) 2>conftest.er1
36614 grep -v '^ *+' conftest.er1 >conftest.err
36616 cat conftest.err >&5
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); } &&
36619 { ac_try='test -z "$ac_c_werror_flag"
36620 || test ! -s conftest.err'
36621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36622 (eval $ac_try) 2>&5
36624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36625 (exit $ac_status); }; } &&
36626 { ac_try='test -s conftest.$ac_objext'
36627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36628 (eval $ac_try) 2>&5
36630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631 (exit $ac_status); }; }; then
36632 ac_lo=$ac_mid; break
36634 echo "$as_me: failed program was:" >&5
36635 sed 's/^/| /' conftest.$ac_ext >&5
36637 ac_hi=`expr '(' $ac_mid ')' - 1`
36638 if test $ac_mid -le $ac_hi; then
36642 ac_mid=`expr 2 '*' $ac_mid`
36644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36647 echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36655 # Binary search between lo and hi bounds.
36656 while test "x$ac_lo" != "x$ac_hi"; do
36657 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36658 cat >conftest.$ac_ext <<_ACEOF
36661 cat confdefs.h >>conftest.$ac_ext
36662 cat >>conftest.$ac_ext <<_ACEOF
36663 /* end confdefs.h. */
36664 $ac_includes_default
36668 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36675 rm -f conftest.$ac_objext
36676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36677 (eval $ac_compile) 2>conftest.er1
36679 grep -v '^ *+' conftest.er1 >conftest.err
36681 cat conftest.err >&5
36682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683 (exit $ac_status); } &&
36684 { ac_try='test -z "$ac_c_werror_flag"
36685 || test ! -s conftest.err'
36686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36687 (eval $ac_try) 2>&5
36689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690 (exit $ac_status); }; } &&
36691 { ac_try='test -s conftest.$ac_objext'
36692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36693 (eval $ac_try) 2>&5
36695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36696 (exit $ac_status); }; }; then
36699 echo "$as_me: failed program was:" >&5
36700 sed 's/^/| /' conftest.$ac_ext >&5
36702 ac_lo=`expr '(' $ac_mid ')' + 1`
36704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36707 ?*) ac_cv_sizeof_long=$ac_lo;;
36708 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36709 See \`config.log' for more details." >&5
36710 echo "$as_me: error: cannot compute sizeof (long), 77
36711 See \`config.log' for more details." >&2;}
36712 { (exit 1); exit 1; }; } ;;
36715 if test "$cross_compiling" = yes; then
36716 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36717 See \`config.log' for more details." >&5
36718 echo "$as_me: error: cannot run test program while cross compiling
36719 See \`config.log' for more details." >&2;}
36720 { (exit 1); exit 1; }; }
36722 cat >conftest.$ac_ext <<_ACEOF
36725 cat confdefs.h >>conftest.$ac_ext
36726 cat >>conftest.$ac_ext <<_ACEOF
36727 /* end confdefs.h. */
36728 $ac_includes_default
36729 long longval () { return (long) (sizeof (long)); }
36730 unsigned long ulongval () { return (long) (sizeof (long)); }
36732 #include <stdlib.h>
36737 FILE *f = fopen ("conftest.val", "w");
36740 if (((long) (sizeof (long))) < 0)
36742 long i = longval ();
36743 if (i != ((long) (sizeof (long))))
36745 fprintf (f, "%ld\n", i);
36749 unsigned long i = ulongval ();
36750 if (i != ((long) (sizeof (long))))
36752 fprintf (f, "%lu\n", i);
36754 exit (ferror (f) || fclose (f) != 0);
36760 rm -f conftest$ac_exeext
36761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36762 (eval $ac_link) 2>&5
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36767 (eval $ac_try) 2>&5
36769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36770 (exit $ac_status); }; }; then
36771 ac_cv_sizeof_long=`cat conftest.val`
36773 echo "$as_me: program exited with status $ac_status" >&5
36774 echo "$as_me: failed program was:" >&5
36775 sed 's/^/| /' conftest.$ac_ext >&5
36777 ( exit $ac_status )
36778 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36779 See \`config.log' for more details." >&5
36780 echo "$as_me: error: cannot compute sizeof (long), 77
36781 See \`config.log' for more details." >&2;}
36782 { (exit 1); exit 1; }; }
36784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36789 ac_cv_sizeof_long=0
36792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36793 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36794 cat >>confdefs.h <<_ACEOF
36795 #define SIZEOF_LONG $ac_cv_sizeof_long
36799 echo "$as_me:$LINENO: checking for long long" >&5
36800 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36801 if test "${ac_cv_type_long_long+set}" = set; then
36802 echo $ECHO_N "(cached) $ECHO_C" >&6
36804 cat >conftest.$ac_ext <<_ACEOF
36807 cat confdefs.h >>conftest.$ac_ext
36808 cat >>conftest.$ac_ext <<_ACEOF
36809 /* end confdefs.h. */
36810 $ac_includes_default
36814 if ((long long *) 0)
36816 if (sizeof (long long))
36822 rm -f conftest.$ac_objext
36823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36824 (eval $ac_compile) 2>conftest.er1
36826 grep -v '^ *+' conftest.er1 >conftest.err
36828 cat conftest.err >&5
36829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830 (exit $ac_status); } &&
36831 { ac_try='test -z "$ac_c_werror_flag"
36832 || test ! -s conftest.err'
36833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36834 (eval $ac_try) 2>&5
36836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36837 (exit $ac_status); }; } &&
36838 { ac_try='test -s conftest.$ac_objext'
36839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36840 (eval $ac_try) 2>&5
36842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843 (exit $ac_status); }; }; then
36844 ac_cv_type_long_long=yes
36846 echo "$as_me: failed program was:" >&5
36847 sed 's/^/| /' conftest.$ac_ext >&5
36849 ac_cv_type_long_long=no
36851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36853 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36854 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36856 echo "$as_me:$LINENO: checking size of long long" >&5
36857 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36858 if test "${ac_cv_sizeof_long_long+set}" = set; then
36859 echo $ECHO_N "(cached) $ECHO_C" >&6
36861 if test "$ac_cv_type_long_long" = yes; then
36862 # The cast to unsigned long works around a bug in the HP C Compiler
36863 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36864 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36865 # This bug is HP SR number 8606223364.
36866 if test "$cross_compiling" = yes; then
36867 # Depending upon the size, compute the lo and hi bounds.
36868 cat >conftest.$ac_ext <<_ACEOF
36871 cat confdefs.h >>conftest.$ac_ext
36872 cat >>conftest.$ac_ext <<_ACEOF
36873 /* end confdefs.h. */
36874 $ac_includes_default
36878 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36885 rm -f conftest.$ac_objext
36886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36887 (eval $ac_compile) 2>conftest.er1
36889 grep -v '^ *+' conftest.er1 >conftest.err
36891 cat conftest.err >&5
36892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893 (exit $ac_status); } &&
36894 { ac_try='test -z "$ac_c_werror_flag"
36895 || test ! -s conftest.err'
36896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36897 (eval $ac_try) 2>&5
36899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900 (exit $ac_status); }; } &&
36901 { ac_try='test -s conftest.$ac_objext'
36902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36903 (eval $ac_try) 2>&5
36905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906 (exit $ac_status); }; }; then
36909 cat >conftest.$ac_ext <<_ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h. */
36915 $ac_includes_default
36919 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36926 rm -f conftest.$ac_objext
36927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36928 (eval $ac_compile) 2>conftest.er1
36930 grep -v '^ *+' conftest.er1 >conftest.err
36932 cat conftest.err >&5
36933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36934 (exit $ac_status); } &&
36935 { ac_try='test -z "$ac_c_werror_flag"
36936 || test ! -s conftest.err'
36937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36938 (eval $ac_try) 2>&5
36940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36941 (exit $ac_status); }; } &&
36942 { ac_try='test -s conftest.$ac_objext'
36943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36944 (eval $ac_try) 2>&5
36946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36947 (exit $ac_status); }; }; then
36948 ac_hi=$ac_mid; break
36950 echo "$as_me: failed program was:" >&5
36951 sed 's/^/| /' conftest.$ac_ext >&5
36953 ac_lo=`expr $ac_mid + 1`
36954 if test $ac_lo -le $ac_mid; then
36958 ac_mid=`expr 2 '*' $ac_mid + 1`
36960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36963 echo "$as_me: failed program was:" >&5
36964 sed 's/^/| /' conftest.$ac_ext >&5
36966 cat >conftest.$ac_ext <<_ACEOF
36969 cat confdefs.h >>conftest.$ac_ext
36970 cat >>conftest.$ac_ext <<_ACEOF
36971 /* end confdefs.h. */
36972 $ac_includes_default
36976 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36983 rm -f conftest.$ac_objext
36984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36985 (eval $ac_compile) 2>conftest.er1
36987 grep -v '^ *+' conftest.er1 >conftest.err
36989 cat conftest.err >&5
36990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991 (exit $ac_status); } &&
36992 { ac_try='test -z "$ac_c_werror_flag"
36993 || test ! -s conftest.err'
36994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36995 (eval $ac_try) 2>&5
36997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998 (exit $ac_status); }; } &&
36999 { ac_try='test -s conftest.$ac_objext'
37000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37001 (eval $ac_try) 2>&5
37003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004 (exit $ac_status); }; }; then
37007 cat >conftest.$ac_ext <<_ACEOF
37010 cat confdefs.h >>conftest.$ac_ext
37011 cat >>conftest.$ac_ext <<_ACEOF
37012 /* end confdefs.h. */
37013 $ac_includes_default
37017 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
37024 rm -f conftest.$ac_objext
37025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37026 (eval $ac_compile) 2>conftest.er1
37028 grep -v '^ *+' conftest.er1 >conftest.err
37030 cat conftest.err >&5
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); } &&
37033 { ac_try='test -z "$ac_c_werror_flag"
37034 || test ! -s conftest.err'
37035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37036 (eval $ac_try) 2>&5
37038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37039 (exit $ac_status); }; } &&
37040 { ac_try='test -s conftest.$ac_objext'
37041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37042 (eval $ac_try) 2>&5
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); }; }; then
37046 ac_lo=$ac_mid; break
37048 echo "$as_me: failed program was:" >&5
37049 sed 's/^/| /' conftest.$ac_ext >&5
37051 ac_hi=`expr '(' $ac_mid ')' - 1`
37052 if test $ac_mid -le $ac_hi; then
37056 ac_mid=`expr 2 '*' $ac_mid`
37058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37061 echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37069 # Binary search between lo and hi bounds.
37070 while test "x$ac_lo" != "x$ac_hi"; do
37071 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37072 cat >conftest.$ac_ext <<_ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h. */
37078 $ac_includes_default
37082 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
37089 rm -f conftest.$ac_objext
37090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37091 (eval $ac_compile) 2>conftest.er1
37093 grep -v '^ *+' conftest.er1 >conftest.err
37095 cat conftest.err >&5
37096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37097 (exit $ac_status); } &&
37098 { ac_try='test -z "$ac_c_werror_flag"
37099 || test ! -s conftest.err'
37100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37101 (eval $ac_try) 2>&5
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); }; } &&
37105 { ac_try='test -s conftest.$ac_objext'
37106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37107 (eval $ac_try) 2>&5
37109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110 (exit $ac_status); }; }; then
37113 echo "$as_me: failed program was:" >&5
37114 sed 's/^/| /' conftest.$ac_ext >&5
37116 ac_lo=`expr '(' $ac_mid ')' + 1`
37118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37121 ?*) ac_cv_sizeof_long_long=$ac_lo;;
37122 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37123 See \`config.log' for more details." >&5
37124 echo "$as_me: error: cannot compute sizeof (long long), 77
37125 See \`config.log' for more details." >&2;}
37126 { (exit 1); exit 1; }; } ;;
37129 if test "$cross_compiling" = yes; then
37130 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37131 See \`config.log' for more details." >&5
37132 echo "$as_me: error: cannot run test program while cross compiling
37133 See \`config.log' for more details." >&2;}
37134 { (exit 1); exit 1; }; }
37136 cat >conftest.$ac_ext <<_ACEOF
37139 cat confdefs.h >>conftest.$ac_ext
37140 cat >>conftest.$ac_ext <<_ACEOF
37141 /* end confdefs.h. */
37142 $ac_includes_default
37143 long longval () { return (long) (sizeof (long long)); }
37144 unsigned long ulongval () { return (long) (sizeof (long long)); }
37146 #include <stdlib.h>
37151 FILE *f = fopen ("conftest.val", "w");
37154 if (((long) (sizeof (long long))) < 0)
37156 long i = longval ();
37157 if (i != ((long) (sizeof (long long))))
37159 fprintf (f, "%ld\n", i);
37163 unsigned long i = ulongval ();
37164 if (i != ((long) (sizeof (long long))))
37166 fprintf (f, "%lu\n", i);
37168 exit (ferror (f) || fclose (f) != 0);
37174 rm -f conftest$ac_exeext
37175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37176 (eval $ac_link) 2>&5
37178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37181 (eval $ac_try) 2>&5
37183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37184 (exit $ac_status); }; }; then
37185 ac_cv_sizeof_long_long=`cat conftest.val`
37187 echo "$as_me: program exited with status $ac_status" >&5
37188 echo "$as_me: failed program was:" >&5
37189 sed 's/^/| /' conftest.$ac_ext >&5
37191 ( exit $ac_status )
37192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37193 See \`config.log' for more details." >&5
37194 echo "$as_me: error: cannot compute sizeof (long long), 77
37195 See \`config.log' for more details." >&2;}
37196 { (exit 1); exit 1; }; }
37198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37203 ac_cv_sizeof_long_long=0
37206 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37207 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37208 cat >>confdefs.h <<_ACEOF
37209 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37213 echo "$as_me:$LINENO: checking for wchar_t" >&5
37214 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37215 if test "${ac_cv_type_wchar_t+set}" = set; then
37216 echo $ECHO_N "(cached) $ECHO_C" >&6
37218 cat >conftest.$ac_ext <<_ACEOF
37221 cat confdefs.h >>conftest.$ac_ext
37222 cat >>conftest.$ac_ext <<_ACEOF
37223 /* end confdefs.h. */
37224 $ac_includes_default
37230 if (sizeof (wchar_t))
37236 rm -f conftest.$ac_objext
37237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37238 (eval $ac_compile) 2>conftest.er1
37240 grep -v '^ *+' conftest.er1 >conftest.err
37242 cat conftest.err >&5
37243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244 (exit $ac_status); } &&
37245 { ac_try='test -z "$ac_c_werror_flag"
37246 || test ! -s conftest.err'
37247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37248 (eval $ac_try) 2>&5
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); }; } &&
37252 { ac_try='test -s conftest.$ac_objext'
37253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37254 (eval $ac_try) 2>&5
37256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257 (exit $ac_status); }; }; then
37258 ac_cv_type_wchar_t=yes
37260 echo "$as_me: failed program was:" >&5
37261 sed 's/^/| /' conftest.$ac_ext >&5
37263 ac_cv_type_wchar_t=no
37265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37267 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37268 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37270 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37271 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37272 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37273 echo $ECHO_N "(cached) $ECHO_C" >&6
37275 if test "$ac_cv_type_wchar_t" = yes; then
37276 # The cast to unsigned long works around a bug in the HP C Compiler
37277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37279 # This bug is HP SR number 8606223364.
37280 if test "$cross_compiling" = yes; then
37281 # Depending upon the size, compute the lo and hi bounds.
37282 cat >conftest.$ac_ext <<_ACEOF
37285 cat confdefs.h >>conftest.$ac_ext
37286 cat >>conftest.$ac_ext <<_ACEOF
37287 /* end confdefs.h. */
37288 $ac_includes_default
37292 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37299 rm -f conftest.$ac_objext
37300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37301 (eval $ac_compile) 2>conftest.er1
37303 grep -v '^ *+' conftest.er1 >conftest.err
37305 cat conftest.err >&5
37306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307 (exit $ac_status); } &&
37308 { ac_try='test -z "$ac_c_werror_flag"
37309 || test ! -s conftest.err'
37310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37311 (eval $ac_try) 2>&5
37313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37314 (exit $ac_status); }; } &&
37315 { ac_try='test -s conftest.$ac_objext'
37316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37317 (eval $ac_try) 2>&5
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); }; }; then
37323 cat >conftest.$ac_ext <<_ACEOF
37326 cat confdefs.h >>conftest.$ac_ext
37327 cat >>conftest.$ac_ext <<_ACEOF
37328 /* end confdefs.h. */
37329 $ac_includes_default
37333 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37340 rm -f conftest.$ac_objext
37341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37342 (eval $ac_compile) 2>conftest.er1
37344 grep -v '^ *+' conftest.er1 >conftest.err
37346 cat conftest.err >&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); } &&
37349 { ac_try='test -z "$ac_c_werror_flag"
37350 || test ! -s conftest.err'
37351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352 (eval $ac_try) 2>&5
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); }; } &&
37356 { ac_try='test -s conftest.$ac_objext'
37357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358 (eval $ac_try) 2>&5
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); }; }; then
37362 ac_hi=$ac_mid; break
37364 echo "$as_me: failed program was:" >&5
37365 sed 's/^/| /' conftest.$ac_ext >&5
37367 ac_lo=`expr $ac_mid + 1`
37368 if test $ac_lo -le $ac_mid; then
37372 ac_mid=`expr 2 '*' $ac_mid + 1`
37374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37377 echo "$as_me: failed program was:" >&5
37378 sed 's/^/| /' conftest.$ac_ext >&5
37380 cat >conftest.$ac_ext <<_ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h. */
37386 $ac_includes_default
37390 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37397 rm -f conftest.$ac_objext
37398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37399 (eval $ac_compile) 2>conftest.er1
37401 grep -v '^ *+' conftest.er1 >conftest.err
37403 cat conftest.err >&5
37404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37405 (exit $ac_status); } &&
37406 { ac_try='test -z "$ac_c_werror_flag"
37407 || test ! -s conftest.err'
37408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37409 (eval $ac_try) 2>&5
37411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37412 (exit $ac_status); }; } &&
37413 { ac_try='test -s conftest.$ac_objext'
37414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37415 (eval $ac_try) 2>&5
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); }; }; then
37421 cat >conftest.$ac_ext <<_ACEOF
37424 cat confdefs.h >>conftest.$ac_ext
37425 cat >>conftest.$ac_ext <<_ACEOF
37426 /* end confdefs.h. */
37427 $ac_includes_default
37431 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37438 rm -f conftest.$ac_objext
37439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37440 (eval $ac_compile) 2>conftest.er1
37442 grep -v '^ *+' conftest.er1 >conftest.err
37444 cat conftest.err >&5
37445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 (exit $ac_status); } &&
37447 { ac_try='test -z "$ac_c_werror_flag"
37448 || test ! -s conftest.err'
37449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37450 (eval $ac_try) 2>&5
37452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37453 (exit $ac_status); }; } &&
37454 { ac_try='test -s conftest.$ac_objext'
37455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37456 (eval $ac_try) 2>&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); }; }; then
37460 ac_lo=$ac_mid; break
37462 echo "$as_me: failed program was:" >&5
37463 sed 's/^/| /' conftest.$ac_ext >&5
37465 ac_hi=`expr '(' $ac_mid ')' - 1`
37466 if test $ac_mid -le $ac_hi; then
37470 ac_mid=`expr 2 '*' $ac_mid`
37472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37475 echo "$as_me: failed program was:" >&5
37476 sed 's/^/| /' conftest.$ac_ext >&5
37480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37483 # Binary search between lo and hi bounds.
37484 while test "x$ac_lo" != "x$ac_hi"; do
37485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37486 cat >conftest.$ac_ext <<_ACEOF
37489 cat confdefs.h >>conftest.$ac_ext
37490 cat >>conftest.$ac_ext <<_ACEOF
37491 /* end confdefs.h. */
37492 $ac_includes_default
37496 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37503 rm -f conftest.$ac_objext
37504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37505 (eval $ac_compile) 2>conftest.er1
37507 grep -v '^ *+' conftest.er1 >conftest.err
37509 cat conftest.err >&5
37510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); } &&
37512 { ac_try='test -z "$ac_c_werror_flag"
37513 || test ! -s conftest.err'
37514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37515 (eval $ac_try) 2>&5
37517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37518 (exit $ac_status); }; } &&
37519 { ac_try='test -s conftest.$ac_objext'
37520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37521 (eval $ac_try) 2>&5
37523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37524 (exit $ac_status); }; }; then
37527 echo "$as_me: failed program was:" >&5
37528 sed 's/^/| /' conftest.$ac_ext >&5
37530 ac_lo=`expr '(' $ac_mid ')' + 1`
37532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37535 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37536 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37537 See \`config.log' for more details." >&5
37538 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37539 See \`config.log' for more details." >&2;}
37540 { (exit 1); exit 1; }; } ;;
37543 if test "$cross_compiling" = yes; then
37544 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37545 See \`config.log' for more details." >&5
37546 echo "$as_me: error: cannot run test program while cross compiling
37547 See \`config.log' for more details." >&2;}
37548 { (exit 1); exit 1; }; }
37550 cat >conftest.$ac_ext <<_ACEOF
37553 cat confdefs.h >>conftest.$ac_ext
37554 cat >>conftest.$ac_ext <<_ACEOF
37555 /* end confdefs.h. */
37556 $ac_includes_default
37557 long longval () { return (long) (sizeof (wchar_t)); }
37558 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37560 #include <stdlib.h>
37565 FILE *f = fopen ("conftest.val", "w");
37568 if (((long) (sizeof (wchar_t))) < 0)
37570 long i = longval ();
37571 if (i != ((long) (sizeof (wchar_t))))
37573 fprintf (f, "%ld\n", i);
37577 unsigned long i = ulongval ();
37578 if (i != ((long) (sizeof (wchar_t))))
37580 fprintf (f, "%lu\n", i);
37582 exit (ferror (f) || fclose (f) != 0);
37588 rm -f conftest$ac_exeext
37589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37590 (eval $ac_link) 2>&5
37592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; }; then
37599 ac_cv_sizeof_wchar_t=`cat conftest.val`
37601 echo "$as_me: program exited with status $ac_status" >&5
37602 echo "$as_me: failed program was:" >&5
37603 sed 's/^/| /' conftest.$ac_ext >&5
37605 ( exit $ac_status )
37606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37607 See \`config.log' for more details." >&5
37608 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37609 See \`config.log' for more details." >&2;}
37610 { (exit 1); exit 1; }; }
37612 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37617 ac_cv_sizeof_wchar_t=0
37620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37621 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37622 cat >>confdefs.h <<_ACEOF
37623 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37628 if test "$ac_cv_sizeof_int" -lt 4 ; then
37629 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37630 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37633 cat >>confdefs.h <<\_ACEOF
37634 #define LBER_INT_T long
37639 cat >>confdefs.h <<\_ACEOF
37640 #define LBER_INT_T int
37646 cat >>confdefs.h <<\_ACEOF
37647 #define LBER_LEN_T long
37651 cat >>confdefs.h <<\_ACEOF
37652 #define LBER_SOCKET_T int
37656 cat >>confdefs.h <<\_ACEOF
37657 #define LBER_TAG_T long
37661 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37662 if test $ac_cv_sizeof_long_long -gt 4 ; then
37663 ol_with_mp=longlong
37665 cat >>confdefs.h <<\_ACEOF
37666 #define USE_MP_LONG_LONG 1
37669 elif test $ol_with_mp = longlong ; then
37670 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37671 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37672 { (exit 1); exit 1; }; }
37675 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37676 if test $ac_cv_sizeof_long -gt 4 ; then
37679 cat >>confdefs.h <<\_ACEOF
37680 #define USE_MP_LONG 1
37683 elif test $ol_with_mp = long ; then
37684 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37685 echo "$as_me: error: long unusable for multiple precision" >&2;}
37686 { (exit 1); exit 1; }; }
37689 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37691 for ac_header in openssl/bn.h
37693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37695 echo "$as_me:$LINENO: checking for $ac_header" >&5
37696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37698 echo $ECHO_N "(cached) $ECHO_C" >&6
37700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37703 # Is the header compilable?
37704 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37706 cat >conftest.$ac_ext <<_ACEOF
37709 cat confdefs.h >>conftest.$ac_ext
37710 cat >>conftest.$ac_ext <<_ACEOF
37711 /* end confdefs.h. */
37712 $ac_includes_default
37713 #include <$ac_header>
37715 rm -f conftest.$ac_objext
37716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37717 (eval $ac_compile) 2>conftest.er1
37719 grep -v '^ *+' conftest.er1 >conftest.err
37721 cat conftest.err >&5
37722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37723 (exit $ac_status); } &&
37724 { ac_try='test -z "$ac_c_werror_flag"
37725 || test ! -s conftest.err'
37726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727 (eval $ac_try) 2>&5
37729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730 (exit $ac_status); }; } &&
37731 { ac_try='test -s conftest.$ac_objext'
37732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37733 (eval $ac_try) 2>&5
37735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736 (exit $ac_status); }; }; then
37737 ac_header_compiler=yes
37739 echo "$as_me: failed program was:" >&5
37740 sed 's/^/| /' conftest.$ac_ext >&5
37742 ac_header_compiler=no
37744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37746 echo "${ECHO_T}$ac_header_compiler" >&6
37748 # Is the header present?
37749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37751 cat >conftest.$ac_ext <<_ACEOF
37754 cat confdefs.h >>conftest.$ac_ext
37755 cat >>conftest.$ac_ext <<_ACEOF
37756 /* end confdefs.h. */
37757 #include <$ac_header>
37759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37762 grep -v '^ *+' conftest.er1 >conftest.err
37764 cat conftest.err >&5
37765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766 (exit $ac_status); } >/dev/null; then
37767 if test -s conftest.err; then
37768 ac_cpp_err=$ac_c_preproc_warn_flag
37769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37776 if test -z "$ac_cpp_err"; then
37777 ac_header_preproc=yes
37779 echo "$as_me: failed program was:" >&5
37780 sed 's/^/| /' conftest.$ac_ext >&5
37782 ac_header_preproc=no
37784 rm -f conftest.err conftest.$ac_ext
37785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37786 echo "${ECHO_T}$ac_header_preproc" >&6
37788 # So? What about this header?
37789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37795 ac_header_preproc=yes
37798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37802 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37804 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37805 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37808 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37812 ## --------------------------------------------- ##
37813 ## Report this to <http://www.openldap.org/its/> ##
37814 ## --------------------------------------------- ##
37817 sed "s/^/$as_me: WARNING: /" >&2
37820 echo "$as_me:$LINENO: checking for $ac_header" >&5
37821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37823 echo $ECHO_N "(cached) $ECHO_C" >&6
37825 eval "$as_ac_Header=\$ac_header_preproc"
37827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37832 cat >>confdefs.h <<_ACEOF
37833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37841 for ac_header in openssl/crypto.h
37843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37845 echo "$as_me:$LINENO: checking for $ac_header" >&5
37846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37848 echo $ECHO_N "(cached) $ECHO_C" >&6
37850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37853 # Is the header compilable?
37854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37856 cat >conftest.$ac_ext <<_ACEOF
37859 cat confdefs.h >>conftest.$ac_ext
37860 cat >>conftest.$ac_ext <<_ACEOF
37861 /* end confdefs.h. */
37862 $ac_includes_default
37863 #include <$ac_header>
37865 rm -f conftest.$ac_objext
37866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37867 (eval $ac_compile) 2>conftest.er1
37869 grep -v '^ *+' conftest.er1 >conftest.err
37871 cat conftest.err >&5
37872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873 (exit $ac_status); } &&
37874 { ac_try='test -z "$ac_c_werror_flag"
37875 || test ! -s conftest.err'
37876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877 (eval $ac_try) 2>&5
37879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 (exit $ac_status); }; } &&
37881 { ac_try='test -s conftest.$ac_objext'
37882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37883 (eval $ac_try) 2>&5
37885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37886 (exit $ac_status); }; }; then
37887 ac_header_compiler=yes
37889 echo "$as_me: failed program was:" >&5
37890 sed 's/^/| /' conftest.$ac_ext >&5
37892 ac_header_compiler=no
37894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37896 echo "${ECHO_T}$ac_header_compiler" >&6
37898 # Is the header present?
37899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37901 cat >conftest.$ac_ext <<_ACEOF
37904 cat confdefs.h >>conftest.$ac_ext
37905 cat >>conftest.$ac_ext <<_ACEOF
37906 /* end confdefs.h. */
37907 #include <$ac_header>
37909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37912 grep -v '^ *+' conftest.er1 >conftest.err
37914 cat conftest.err >&5
37915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916 (exit $ac_status); } >/dev/null; then
37917 if test -s conftest.err; then
37918 ac_cpp_err=$ac_c_preproc_warn_flag
37919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37926 if test -z "$ac_cpp_err"; then
37927 ac_header_preproc=yes
37929 echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37932 ac_header_preproc=no
37934 rm -f conftest.err conftest.$ac_ext
37935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37936 echo "${ECHO_T}$ac_header_preproc" >&6
37938 # So? What about this header?
37939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37945 ac_header_preproc=yes
37948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37962 ## --------------------------------------------- ##
37963 ## Report this to <http://www.openldap.org/its/> ##
37964 ## --------------------------------------------- ##
37967 sed "s/^/$as_me: WARNING: /" >&2
37970 echo "$as_me:$LINENO: checking for $ac_header" >&5
37971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37973 echo $ECHO_N "(cached) $ECHO_C" >&6
37975 eval "$as_ac_Header=\$ac_header_preproc"
37977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37982 cat >>confdefs.h <<_ACEOF
37983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37990 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37991 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37992 test "$ol_with_tls" = "found" ; then
37995 cat >>confdefs.h <<\_ACEOF
37996 #define USE_MP_BIGNUM 1
37999 elif test $ol_with_mp = bignum ; then
38000 { { echo "$as_me:$LINENO: error: bignum not available" >&5
38001 echo "$as_me: error: bignum not available" >&2;}
38002 { (exit 1); exit 1; }; }
38005 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
38007 for ac_header in gmp.h
38009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38011 echo "$as_me:$LINENO: checking for $ac_header" >&5
38012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38014 echo $ECHO_N "(cached) $ECHO_C" >&6
38016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38019 # Is the header compilable?
38020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38022 cat >conftest.$ac_ext <<_ACEOF
38025 cat confdefs.h >>conftest.$ac_ext
38026 cat >>conftest.$ac_ext <<_ACEOF
38027 /* end confdefs.h. */
38028 $ac_includes_default
38029 #include <$ac_header>
38031 rm -f conftest.$ac_objext
38032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38033 (eval $ac_compile) 2>conftest.er1
38035 grep -v '^ *+' conftest.er1 >conftest.err
38037 cat conftest.err >&5
38038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039 (exit $ac_status); } &&
38040 { ac_try='test -z "$ac_c_werror_flag"
38041 || test ! -s conftest.err'
38042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38043 (eval $ac_try) 2>&5
38045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38046 (exit $ac_status); }; } &&
38047 { ac_try='test -s conftest.$ac_objext'
38048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38049 (eval $ac_try) 2>&5
38051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052 (exit $ac_status); }; }; then
38053 ac_header_compiler=yes
38055 echo "$as_me: failed program was:" >&5
38056 sed 's/^/| /' conftest.$ac_ext >&5
38058 ac_header_compiler=no
38060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38062 echo "${ECHO_T}$ac_header_compiler" >&6
38064 # Is the header present?
38065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38067 cat >conftest.$ac_ext <<_ACEOF
38070 cat confdefs.h >>conftest.$ac_ext
38071 cat >>conftest.$ac_ext <<_ACEOF
38072 /* end confdefs.h. */
38073 #include <$ac_header>
38075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38078 grep -v '^ *+' conftest.er1 >conftest.err
38080 cat conftest.err >&5
38081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38082 (exit $ac_status); } >/dev/null; then
38083 if test -s conftest.err; then
38084 ac_cpp_err=$ac_c_preproc_warn_flag
38085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38092 if test -z "$ac_cpp_err"; then
38093 ac_header_preproc=yes
38095 echo "$as_me: failed program was:" >&5
38096 sed 's/^/| /' conftest.$ac_ext >&5
38098 ac_header_preproc=no
38100 rm -f conftest.err conftest.$ac_ext
38101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38102 echo "${ECHO_T}$ac_header_preproc" >&6
38104 # So? What about this header?
38105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38111 ac_header_preproc=yes
38114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38128 ## --------------------------------------------- ##
38129 ## Report this to <http://www.openldap.org/its/> ##
38130 ## --------------------------------------------- ##
38133 sed "s/^/$as_me: WARNING: /" >&2
38136 echo "$as_me:$LINENO: checking for $ac_header" >&5
38137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38139 echo $ECHO_N "(cached) $ECHO_C" >&6
38141 eval "$as_ac_Header=\$ac_header_preproc"
38143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38148 cat >>confdefs.h <<_ACEOF
38149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38157 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38158 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38159 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38160 echo $ECHO_N "(cached) $ECHO_C" >&6
38162 ac_check_lib_save_LIBS=$LIBS
38164 cat >conftest.$ac_ext <<_ACEOF
38167 cat confdefs.h >>conftest.$ac_ext
38168 cat >>conftest.$ac_ext <<_ACEOF
38169 /* end confdefs.h. */
38171 /* Override any gcc2 internal prototype to avoid an error. */
38175 /* We use char because int might match the return type of a gcc2
38176 builtin and then its argument prototype would still apply. */
38177 char __gmpz_add_ui ();
38186 rm -f conftest.$ac_objext conftest$ac_exeext
38187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38188 (eval $ac_link) 2>conftest.er1
38190 grep -v '^ *+' conftest.er1 >conftest.err
38192 cat conftest.err >&5
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); } &&
38195 { ac_try='test -z "$ac_c_werror_flag"
38196 || test ! -s conftest.err'
38197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38198 (eval $ac_try) 2>&5
38200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38201 (exit $ac_status); }; } &&
38202 { ac_try='test -s conftest$ac_exeext'
38203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204 (eval $ac_try) 2>&5
38206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207 (exit $ac_status); }; }; then
38208 ac_cv_lib_gmp___gmpz_add_ui=yes
38210 echo "$as_me: failed program was:" >&5
38211 sed 's/^/| /' conftest.$ac_ext >&5
38213 ac_cv_lib_gmp___gmpz_add_ui=no
38215 rm -f conftest.err conftest.$ac_objext \
38216 conftest$ac_exeext conftest.$ac_ext
38217 LIBS=$ac_check_lib_save_LIBS
38219 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38220 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38221 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38222 cat >>confdefs.h <<_ACEOF
38223 #define HAVE_LIBGMP 1
38230 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38232 cat >>confdefs.h <<\_ACEOF
38233 #define USE_MP_GMP 1
38237 elif test $ol_with_mp = gmp ; then
38238 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38239 echo "$as_me: error: gmp not available" >&2;}
38240 { (exit 1); exit 1; }; }
38243 if test $ol_with_mp = auto ; then
38247 echo "$as_me:$LINENO: checking for working memcmp" >&5
38248 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38249 if test "${ac_cv_func_memcmp_working+set}" = set; then
38250 echo $ECHO_N "(cached) $ECHO_C" >&6
38252 if test "$cross_compiling" = yes; then
38253 ac_cv_func_memcmp_working=no
38255 cat >conftest.$ac_ext <<_ACEOF
38258 cat confdefs.h >>conftest.$ac_ext
38259 cat >>conftest.$ac_ext <<_ACEOF
38260 /* end confdefs.h. */
38261 $ac_includes_default
38266 /* Some versions of memcmp are not 8-bit clean. */
38267 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38268 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38271 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38272 or more and with at least one buffer not starting on a 4-byte boundary.
38273 William Lewis provided this test program. */
38278 for (i = 0; i < 4; i++)
38282 strcpy (a, "--------01111111");
38283 strcpy (b, "--------10000000");
38284 if (memcmp (a, b, 16) >= 0)
38294 rm -f conftest$ac_exeext
38295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38296 (eval $ac_link) 2>&5
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38301 (eval $ac_try) 2>&5
38303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304 (exit $ac_status); }; }; then
38305 ac_cv_func_memcmp_working=yes
38307 echo "$as_me: program exited with status $ac_status" >&5
38308 echo "$as_me: failed program was:" >&5
38309 sed 's/^/| /' conftest.$ac_ext >&5
38311 ( exit $ac_status )
38312 ac_cv_func_memcmp_working=no
38314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38317 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38318 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38319 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38320 "memcmp.$ac_objext" | \
38321 *" memcmp.$ac_objext" | \
38322 "memcmp.$ac_objext "* | \
38323 *" memcmp.$ac_objext "* ) ;;
38324 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38329 if test $ac_cv_func_memcmp_working = no ; then
38331 cat >>confdefs.h <<\_ACEOF
38332 #define NEED_MEMCMP_REPLACEMENT 1
38338 for ac_func in strftime
38340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38341 echo "$as_me:$LINENO: checking for $ac_func" >&5
38342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38343 if eval "test \"\${$as_ac_var+set}\" = set"; then
38344 echo $ECHO_N "(cached) $ECHO_C" >&6
38346 cat >conftest.$ac_ext <<_ACEOF
38349 cat confdefs.h >>conftest.$ac_ext
38350 cat >>conftest.$ac_ext <<_ACEOF
38351 /* end confdefs.h. */
38352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38354 #define $ac_func innocuous_$ac_func
38356 /* System header to define __stub macros and hopefully few prototypes,
38357 which can conflict with char $ac_func (); below.
38358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38359 <limits.h> exists even on freestanding compilers. */
38362 # include <limits.h>
38364 # include <assert.h>
38369 /* Override any gcc2 internal prototype to avoid an error. */
38374 /* We use char because int might match the return type of a gcc2
38375 builtin and then its argument prototype would still apply. */
38377 /* The GNU C library defines this for functions which it implements
38378 to always fail with ENOSYS. Some functions are actually named
38379 something starting with __ and the normal name is an alias. */
38380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38383 char (*f) () = $ac_func;
38392 return f != $ac_func;
38397 rm -f conftest.$ac_objext conftest$ac_exeext
38398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38399 (eval $ac_link) 2>conftest.er1
38401 grep -v '^ *+' conftest.er1 >conftest.err
38403 cat conftest.err >&5
38404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405 (exit $ac_status); } &&
38406 { ac_try='test -z "$ac_c_werror_flag"
38407 || test ! -s conftest.err'
38408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38409 (eval $ac_try) 2>&5
38411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412 (exit $ac_status); }; } &&
38413 { ac_try='test -s conftest$ac_exeext'
38414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38415 (eval $ac_try) 2>&5
38417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418 (exit $ac_status); }; }; then
38419 eval "$as_ac_var=yes"
38421 echo "$as_me: failed program was:" >&5
38422 sed 's/^/| /' conftest.$ac_ext >&5
38424 eval "$as_ac_var=no"
38426 rm -f conftest.err conftest.$ac_objext \
38427 conftest$ac_exeext conftest.$ac_ext
38429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38431 if test `eval echo '${'$as_ac_var'}'` = yes; then
38432 cat >>confdefs.h <<_ACEOF
38433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38437 # strftime is in -lintl on SCO UNIX.
38438 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38439 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38440 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38441 echo $ECHO_N "(cached) $ECHO_C" >&6
38443 ac_check_lib_save_LIBS=$LIBS
38444 LIBS="-lintl $LIBS"
38445 cat >conftest.$ac_ext <<_ACEOF
38448 cat confdefs.h >>conftest.$ac_ext
38449 cat >>conftest.$ac_ext <<_ACEOF
38450 /* end confdefs.h. */
38452 /* Override any gcc2 internal prototype to avoid an error. */
38456 /* We use char because int might match the return type of a gcc2
38457 builtin and then its argument prototype would still apply. */
38467 rm -f conftest.$ac_objext conftest$ac_exeext
38468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38469 (eval $ac_link) 2>conftest.er1
38471 grep -v '^ *+' conftest.er1 >conftest.err
38473 cat conftest.err >&5
38474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475 (exit $ac_status); } &&
38476 { ac_try='test -z "$ac_c_werror_flag"
38477 || test ! -s conftest.err'
38478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38479 (eval $ac_try) 2>&5
38481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38482 (exit $ac_status); }; } &&
38483 { ac_try='test -s conftest$ac_exeext'
38484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38485 (eval $ac_try) 2>&5
38487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488 (exit $ac_status); }; }; then
38489 ac_cv_lib_intl_strftime=yes
38491 echo "$as_me: failed program was:" >&5
38492 sed 's/^/| /' conftest.$ac_ext >&5
38494 ac_cv_lib_intl_strftime=no
38496 rm -f conftest.err conftest.$ac_objext \
38497 conftest$ac_exeext conftest.$ac_ext
38498 LIBS=$ac_check_lib_save_LIBS
38500 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38501 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38502 if test $ac_cv_lib_intl_strftime = yes; then
38503 cat >>confdefs.h <<\_ACEOF
38504 #define HAVE_STRFTIME 1
38507 LIBS="-lintl $LIBS"
38514 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38515 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38516 if test "${ol_cv_func_inet_aton+set}" = set; then
38517 echo $ECHO_N "(cached) $ECHO_C" >&6
38519 cat >conftest.$ac_ext <<_ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h. */
38526 #ifdef HAVE_SYS_TYPES_H
38527 # include <sys/types.h>
38529 #ifdef HAVE_SYS_SOCKET_H
38530 # include <sys/socket.h>
38531 # ifdef HAVE_SYS_SELECT_H
38532 # include <sys/select.h>
38534 # include <netinet/in.h>
38535 # ifdef HAVE_ARPA_INET_H
38536 # include <arpa/inet.h>
38544 int rc = inet_aton( "255.255.255.255", &in );
38549 rm -f conftest.$ac_objext conftest$ac_exeext
38550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38551 (eval $ac_link) 2>conftest.er1
38553 grep -v '^ *+' conftest.er1 >conftest.err
38555 cat conftest.err >&5
38556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38557 (exit $ac_status); } &&
38558 { ac_try='test -z "$ac_c_werror_flag"
38559 || test ! -s conftest.err'
38560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38561 (eval $ac_try) 2>&5
38563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38564 (exit $ac_status); }; } &&
38565 { ac_try='test -s conftest$ac_exeext'
38566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38567 (eval $ac_try) 2>&5
38569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570 (exit $ac_status); }; }; then
38571 ol_cv_func_inet_aton=yes
38573 echo "$as_me: failed program was:" >&5
38574 sed 's/^/| /' conftest.$ac_ext >&5
38576 ol_cv_func_inet_aton=no
38578 rm -f conftest.err conftest.$ac_objext \
38579 conftest$ac_exeext conftest.$ac_ext
38581 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38582 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38583 if test $ol_cv_func_inet_aton != no; then
38585 cat >>confdefs.h <<\_ACEOF
38586 #define HAVE_INET_ATON 1
38592 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38593 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38594 if test "${ac_cv_func__spawnlp+set}" = set; then
38595 echo $ECHO_N "(cached) $ECHO_C" >&6
38597 cat >conftest.$ac_ext <<_ACEOF
38600 cat confdefs.h >>conftest.$ac_ext
38601 cat >>conftest.$ac_ext <<_ACEOF
38602 /* end confdefs.h. */
38603 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38605 #define _spawnlp innocuous__spawnlp
38607 /* System header to define __stub macros and hopefully few prototypes,
38608 which can conflict with char _spawnlp (); below.
38609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38610 <limits.h> exists even on freestanding compilers. */
38613 # include <limits.h>
38615 # include <assert.h>
38620 /* Override any gcc2 internal prototype to avoid an error. */
38625 /* We use char because int might match the return type of a gcc2
38626 builtin and then its argument prototype would still apply. */
38628 /* The GNU C library defines this for functions which it implements
38629 to always fail with ENOSYS. Some functions are actually named
38630 something starting with __ and the normal name is an alias. */
38631 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38634 char (*f) () = _spawnlp;
38643 return f != _spawnlp;
38648 rm -f conftest.$ac_objext conftest$ac_exeext
38649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38650 (eval $ac_link) 2>conftest.er1
38652 grep -v '^ *+' conftest.er1 >conftest.err
38654 cat conftest.err >&5
38655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656 (exit $ac_status); } &&
38657 { ac_try='test -z "$ac_c_werror_flag"
38658 || test ! -s conftest.err'
38659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660 (eval $ac_try) 2>&5
38662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663 (exit $ac_status); }; } &&
38664 { ac_try='test -s conftest$ac_exeext'
38665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666 (eval $ac_try) 2>&5
38668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); }; }; then
38670 ac_cv_func__spawnlp=yes
38672 echo "$as_me: failed program was:" >&5
38673 sed 's/^/| /' conftest.$ac_ext >&5
38675 ac_cv_func__spawnlp=no
38677 rm -f conftest.err conftest.$ac_objext \
38678 conftest$ac_exeext conftest.$ac_ext
38680 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38681 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38682 if test $ac_cv_func__spawnlp = yes; then
38684 cat >>confdefs.h <<\_ACEOF
38685 #define HAVE_SPAWNLP 1
38691 echo "$as_me:$LINENO: checking for _snprintf" >&5
38692 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38693 if test "${ac_cv_func__snprintf+set}" = set; then
38694 echo $ECHO_N "(cached) $ECHO_C" >&6
38696 cat >conftest.$ac_ext <<_ACEOF
38699 cat confdefs.h >>conftest.$ac_ext
38700 cat >>conftest.$ac_ext <<_ACEOF
38701 /* end confdefs.h. */
38702 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38704 #define _snprintf innocuous__snprintf
38706 /* System header to define __stub macros and hopefully few prototypes,
38707 which can conflict with char _snprintf (); below.
38708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38709 <limits.h> exists even on freestanding compilers. */
38712 # include <limits.h>
38714 # include <assert.h>
38719 /* Override any gcc2 internal prototype to avoid an error. */
38724 /* We use char because int might match the return type of a gcc2
38725 builtin and then its argument prototype would still apply. */
38727 /* The GNU C library defines this for functions which it implements
38728 to always fail with ENOSYS. Some functions are actually named
38729 something starting with __ and the normal name is an alias. */
38730 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38733 char (*f) () = _snprintf;
38742 return f != _snprintf;
38747 rm -f conftest.$ac_objext conftest$ac_exeext
38748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38749 (eval $ac_link) 2>conftest.er1
38751 grep -v '^ *+' conftest.er1 >conftest.err
38753 cat conftest.err >&5
38754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); } &&
38756 { ac_try='test -z "$ac_c_werror_flag"
38757 || test ! -s conftest.err'
38758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38759 (eval $ac_try) 2>&5
38761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762 (exit $ac_status); }; } &&
38763 { ac_try='test -s conftest$ac_exeext'
38764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38765 (eval $ac_try) 2>&5
38767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768 (exit $ac_status); }; }; then
38769 ac_cv_func__snprintf=yes
38771 echo "$as_me: failed program was:" >&5
38772 sed 's/^/| /' conftest.$ac_ext >&5
38774 ac_cv_func__snprintf=no
38776 rm -f conftest.err conftest.$ac_objext \
38777 conftest$ac_exeext conftest.$ac_ext
38779 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38780 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38781 if test $ac_cv_func__snprintf = yes; then
38782 ac_cv_func_snprintf=yes
38784 cat >>confdefs.h <<\_ACEOF
38785 #define snprintf _snprintf
38792 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38793 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38794 if test "${ac_cv_func__vsnprintf+set}" = set; then
38795 echo $ECHO_N "(cached) $ECHO_C" >&6
38797 cat >conftest.$ac_ext <<_ACEOF
38800 cat confdefs.h >>conftest.$ac_ext
38801 cat >>conftest.$ac_ext <<_ACEOF
38802 /* end confdefs.h. */
38803 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38805 #define _vsnprintf innocuous__vsnprintf
38807 /* System header to define __stub macros and hopefully few prototypes,
38808 which can conflict with char _vsnprintf (); below.
38809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38810 <limits.h> exists even on freestanding compilers. */
38813 # include <limits.h>
38815 # include <assert.h>
38820 /* Override any gcc2 internal prototype to avoid an error. */
38825 /* We use char because int might match the return type of a gcc2
38826 builtin and then its argument prototype would still apply. */
38827 char _vsnprintf ();
38828 /* The GNU C library defines this for functions which it implements
38829 to always fail with ENOSYS. Some functions are actually named
38830 something starting with __ and the normal name is an alias. */
38831 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38834 char (*f) () = _vsnprintf;
38843 return f != _vsnprintf;
38848 rm -f conftest.$ac_objext conftest$ac_exeext
38849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38850 (eval $ac_link) 2>conftest.er1
38852 grep -v '^ *+' conftest.er1 >conftest.err
38854 cat conftest.err >&5
38855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38856 (exit $ac_status); } &&
38857 { ac_try='test -z "$ac_c_werror_flag"
38858 || test ! -s conftest.err'
38859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38860 (eval $ac_try) 2>&5
38862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38863 (exit $ac_status); }; } &&
38864 { ac_try='test -s conftest$ac_exeext'
38865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38866 (eval $ac_try) 2>&5
38868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38869 (exit $ac_status); }; }; then
38870 ac_cv_func__vsnprintf=yes
38872 echo "$as_me: failed program was:" >&5
38873 sed 's/^/| /' conftest.$ac_ext >&5
38875 ac_cv_func__vsnprintf=no
38877 rm -f conftest.err conftest.$ac_objext \
38878 conftest$ac_exeext conftest.$ac_ext
38880 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38881 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38882 if test $ac_cv_func__vsnprintf = yes; then
38883 ac_cv_func_vsnprintf=yes
38885 cat >>confdefs.h <<\_ACEOF
38886 #define vsnprintf _vsnprintf
38894 for ac_func in vprintf
38896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38897 echo "$as_me:$LINENO: checking for $ac_func" >&5
38898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38899 if eval "test \"\${$as_ac_var+set}\" = set"; then
38900 echo $ECHO_N "(cached) $ECHO_C" >&6
38902 cat >conftest.$ac_ext <<_ACEOF
38905 cat confdefs.h >>conftest.$ac_ext
38906 cat >>conftest.$ac_ext <<_ACEOF
38907 /* end confdefs.h. */
38908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38910 #define $ac_func innocuous_$ac_func
38912 /* System header to define __stub macros and hopefully few prototypes,
38913 which can conflict with char $ac_func (); below.
38914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38915 <limits.h> exists even on freestanding compilers. */
38918 # include <limits.h>
38920 # include <assert.h>
38925 /* Override any gcc2 internal prototype to avoid an error. */
38930 /* We use char because int might match the return type of a gcc2
38931 builtin and then its argument prototype would still apply. */
38933 /* The GNU C library defines this for functions which it implements
38934 to always fail with ENOSYS. Some functions are actually named
38935 something starting with __ and the normal name is an alias. */
38936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38939 char (*f) () = $ac_func;
38948 return f != $ac_func;
38953 rm -f conftest.$ac_objext conftest$ac_exeext
38954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38955 (eval $ac_link) 2>conftest.er1
38957 grep -v '^ *+' conftest.er1 >conftest.err
38959 cat conftest.err >&5
38960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961 (exit $ac_status); } &&
38962 { ac_try='test -z "$ac_c_werror_flag"
38963 || test ! -s conftest.err'
38964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38965 (eval $ac_try) 2>&5
38967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968 (exit $ac_status); }; } &&
38969 { ac_try='test -s conftest$ac_exeext'
38970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38971 (eval $ac_try) 2>&5
38973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38974 (exit $ac_status); }; }; then
38975 eval "$as_ac_var=yes"
38977 echo "$as_me: failed program was:" >&5
38978 sed 's/^/| /' conftest.$ac_ext >&5
38980 eval "$as_ac_var=no"
38982 rm -f conftest.err conftest.$ac_objext \
38983 conftest$ac_exeext conftest.$ac_ext
38985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38987 if test `eval echo '${'$as_ac_var'}'` = yes; then
38988 cat >>confdefs.h <<_ACEOF
38989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38992 echo "$as_me:$LINENO: checking for _doprnt" >&5
38993 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38994 if test "${ac_cv_func__doprnt+set}" = set; then
38995 echo $ECHO_N "(cached) $ECHO_C" >&6
38997 cat >conftest.$ac_ext <<_ACEOF
39000 cat confdefs.h >>conftest.$ac_ext
39001 cat >>conftest.$ac_ext <<_ACEOF
39002 /* end confdefs.h. */
39003 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39005 #define _doprnt innocuous__doprnt
39007 /* System header to define __stub macros and hopefully few prototypes,
39008 which can conflict with char _doprnt (); below.
39009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39010 <limits.h> exists even on freestanding compilers. */
39013 # include <limits.h>
39015 # include <assert.h>
39020 /* Override any gcc2 internal prototype to avoid an error. */
39025 /* We use char because int might match the return type of a gcc2
39026 builtin and then its argument prototype would still apply. */
39028 /* The GNU C library defines this for functions which it implements
39029 to always fail with ENOSYS. Some functions are actually named
39030 something starting with __ and the normal name is an alias. */
39031 #if defined (__stub__doprnt) || defined (__stub____doprnt)
39034 char (*f) () = _doprnt;
39043 return f != _doprnt;
39048 rm -f conftest.$ac_objext conftest$ac_exeext
39049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39050 (eval $ac_link) 2>conftest.er1
39052 grep -v '^ *+' conftest.er1 >conftest.err
39054 cat conftest.err >&5
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); } &&
39057 { ac_try='test -z "$ac_c_werror_flag"
39058 || test ! -s conftest.err'
39059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39060 (eval $ac_try) 2>&5
39062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39063 (exit $ac_status); }; } &&
39064 { ac_try='test -s conftest$ac_exeext'
39065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39066 (eval $ac_try) 2>&5
39068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069 (exit $ac_status); }; }; then
39070 ac_cv_func__doprnt=yes
39072 echo "$as_me: failed program was:" >&5
39073 sed 's/^/| /' conftest.$ac_ext >&5
39075 ac_cv_func__doprnt=no
39077 rm -f conftest.err conftest.$ac_objext \
39078 conftest$ac_exeext conftest.$ac_ext
39080 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39081 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
39082 if test $ac_cv_func__doprnt = yes; then
39084 cat >>confdefs.h <<\_ACEOF
39085 #define HAVE_DOPRNT 1
39095 if test $ac_cv_func_vprintf = yes ; then
39098 for ac_func in snprintf vsnprintf
39100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39101 echo "$as_me:$LINENO: checking for $ac_func" >&5
39102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39103 if eval "test \"\${$as_ac_var+set}\" = set"; then
39104 echo $ECHO_N "(cached) $ECHO_C" >&6
39106 cat >conftest.$ac_ext <<_ACEOF
39109 cat confdefs.h >>conftest.$ac_ext
39110 cat >>conftest.$ac_ext <<_ACEOF
39111 /* end confdefs.h. */
39112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39114 #define $ac_func innocuous_$ac_func
39116 /* System header to define __stub macros and hopefully few prototypes,
39117 which can conflict with char $ac_func (); below.
39118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39119 <limits.h> exists even on freestanding compilers. */
39122 # include <limits.h>
39124 # include <assert.h>
39129 /* Override any gcc2 internal prototype to avoid an error. */
39134 /* We use char because int might match the return type of a gcc2
39135 builtin and then its argument prototype would still apply. */
39137 /* The GNU C library defines this for functions which it implements
39138 to always fail with ENOSYS. Some functions are actually named
39139 something starting with __ and the normal name is an alias. */
39140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39143 char (*f) () = $ac_func;
39152 return f != $ac_func;
39157 rm -f conftest.$ac_objext conftest$ac_exeext
39158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39159 (eval $ac_link) 2>conftest.er1
39161 grep -v '^ *+' conftest.er1 >conftest.err
39163 cat conftest.err >&5
39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165 (exit $ac_status); } &&
39166 { ac_try='test -z "$ac_c_werror_flag"
39167 || test ! -s conftest.err'
39168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39169 (eval $ac_try) 2>&5
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); }; } &&
39173 { ac_try='test -s conftest$ac_exeext'
39174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175 (eval $ac_try) 2>&5
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); }; }; then
39179 eval "$as_ac_var=yes"
39181 echo "$as_me: failed program was:" >&5
39182 sed 's/^/| /' conftest.$ac_ext >&5
39184 eval "$as_ac_var=no"
39186 rm -f conftest.err conftest.$ac_objext \
39187 conftest$ac_exeext conftest.$ac_ext
39189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39191 if test `eval echo '${'$as_ac_var'}'` = yes; then
39192 cat >>confdefs.h <<_ACEOF
39193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39315 echo "$as_me:$LINENO: checking for $ac_func" >&5
39316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39317 if eval "test \"\${$as_ac_var+set}\" = set"; then
39318 echo $ECHO_N "(cached) $ECHO_C" >&6
39320 cat >conftest.$ac_ext <<_ACEOF
39323 cat confdefs.h >>conftest.$ac_ext
39324 cat >>conftest.$ac_ext <<_ACEOF
39325 /* end confdefs.h. */
39326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39328 #define $ac_func innocuous_$ac_func
39330 /* System header to define __stub macros and hopefully few prototypes,
39331 which can conflict with char $ac_func (); below.
39332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39333 <limits.h> exists even on freestanding compilers. */
39336 # include <limits.h>
39338 # include <assert.h>
39343 /* Override any gcc2 internal prototype to avoid an error. */
39348 /* We use char because int might match the return type of a gcc2
39349 builtin and then its argument prototype would still apply. */
39351 /* The GNU C library defines this for functions which it implements
39352 to always fail with ENOSYS. Some functions are actually named
39353 something starting with __ and the normal name is an alias. */
39354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39357 char (*f) () = $ac_func;
39366 return f != $ac_func;
39371 rm -f conftest.$ac_objext conftest$ac_exeext
39372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39373 (eval $ac_link) 2>conftest.er1
39375 grep -v '^ *+' conftest.er1 >conftest.err
39377 cat conftest.err >&5
39378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39379 (exit $ac_status); } &&
39380 { ac_try='test -z "$ac_c_werror_flag"
39381 || test ! -s conftest.err'
39382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39383 (eval $ac_try) 2>&5
39385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386 (exit $ac_status); }; } &&
39387 { ac_try='test -s conftest$ac_exeext'
39388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39389 (eval $ac_try) 2>&5
39391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392 (exit $ac_status); }; }; then
39393 eval "$as_ac_var=yes"
39395 echo "$as_me: failed program was:" >&5
39396 sed 's/^/| /' conftest.$ac_ext >&5
39398 eval "$as_ac_var=no"
39400 rm -f conftest.err conftest.$ac_objext \
39401 conftest$ac_exeext conftest.$ac_ext
39403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39405 if test `eval echo '${'$as_ac_var'}'` = yes; then
39406 cat >>confdefs.h <<_ACEOF
39407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39416 for ac_func in getopt getpeereid
39418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39419 echo "$as_me:$LINENO: checking for $ac_func" >&5
39420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39421 if eval "test \"\${$as_ac_var+set}\" = set"; then
39422 echo $ECHO_N "(cached) $ECHO_C" >&6
39424 cat >conftest.$ac_ext <<_ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h. */
39430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39432 #define $ac_func innocuous_$ac_func
39434 /* System header to define __stub macros and hopefully few prototypes,
39435 which can conflict with char $ac_func (); below.
39436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39437 <limits.h> exists even on freestanding compilers. */
39440 # include <limits.h>
39442 # include <assert.h>
39447 /* Override any gcc2 internal prototype to avoid an error. */
39452 /* We use char because int might match the return type of a gcc2
39453 builtin and then its argument prototype would still apply. */
39455 /* The GNU C library defines this for functions which it implements
39456 to always fail with ENOSYS. Some functions are actually named
39457 something starting with __ and the normal name is an alias. */
39458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39461 char (*f) () = $ac_func;
39470 return f != $ac_func;
39475 rm -f conftest.$ac_objext conftest$ac_exeext
39476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39477 (eval $ac_link) 2>conftest.er1
39479 grep -v '^ *+' conftest.er1 >conftest.err
39481 cat conftest.err >&5
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); } &&
39484 { ac_try='test -z "$ac_c_werror_flag"
39485 || test ! -s conftest.err'
39486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487 (eval $ac_try) 2>&5
39489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); }; } &&
39491 { ac_try='test -s conftest$ac_exeext'
39492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493 (eval $ac_try) 2>&5
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; }; then
39497 eval "$as_ac_var=yes"
39499 echo "$as_me: failed program was:" >&5
39500 sed 's/^/| /' conftest.$ac_ext >&5
39502 eval "$as_ac_var=no"
39504 rm -f conftest.err conftest.$ac_objext \
39505 conftest$ac_exeext conftest.$ac_ext
39507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39509 if test `eval echo '${'$as_ac_var'}'` = yes; then
39510 cat >>confdefs.h <<_ACEOF
39511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39516 "$ac_func.$ac_objext" | \
39517 *" $ac_func.$ac_objext" | \
39518 "$ac_func.$ac_objext "* | \
39519 *" $ac_func.$ac_objext "* ) ;;
39520 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39528 if test "$ac_cv_func_getopt" != yes; then
39529 LIBSRCS="$LIBSRCS getopt.c"
39532 if test "$ac_cv_func_getpeereid" != yes; then
39534 for ac_func in getpeerucred
39536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39537 echo "$as_me:$LINENO: checking for $ac_func" >&5
39538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39539 if eval "test \"\${$as_ac_var+set}\" = set"; then
39540 echo $ECHO_N "(cached) $ECHO_C" >&6
39542 cat >conftest.$ac_ext <<_ACEOF
39545 cat confdefs.h >>conftest.$ac_ext
39546 cat >>conftest.$ac_ext <<_ACEOF
39547 /* end confdefs.h. */
39548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39550 #define $ac_func innocuous_$ac_func
39552 /* System header to define __stub macros and hopefully few prototypes,
39553 which can conflict with char $ac_func (); below.
39554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39555 <limits.h> exists even on freestanding compilers. */
39558 # include <limits.h>
39560 # include <assert.h>
39565 /* Override any gcc2 internal prototype to avoid an error. */
39570 /* We use char because int might match the return type of a gcc2
39571 builtin and then its argument prototype would still apply. */
39573 /* The GNU C library defines this for functions which it implements
39574 to always fail with ENOSYS. Some functions are actually named
39575 something starting with __ and the normal name is an alias. */
39576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39579 char (*f) () = $ac_func;
39588 return f != $ac_func;
39593 rm -f conftest.$ac_objext conftest$ac_exeext
39594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39595 (eval $ac_link) 2>conftest.er1
39597 grep -v '^ *+' conftest.er1 >conftest.err
39599 cat conftest.err >&5
39600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601 (exit $ac_status); } &&
39602 { ac_try='test -z "$ac_c_werror_flag"
39603 || test ! -s conftest.err'
39604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39605 (eval $ac_try) 2>&5
39607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39608 (exit $ac_status); }; } &&
39609 { ac_try='test -s conftest$ac_exeext'
39610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39611 (eval $ac_try) 2>&5
39613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614 (exit $ac_status); }; }; then
39615 eval "$as_ac_var=yes"
39617 echo "$as_me: failed program was:" >&5
39618 sed 's/^/| /' conftest.$ac_ext >&5
39620 eval "$as_ac_var=no"
39622 rm -f conftest.err conftest.$ac_objext \
39623 conftest$ac_exeext conftest.$ac_ext
39625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39627 if test `eval echo '${'$as_ac_var'}'` = yes; then
39628 cat >>confdefs.h <<_ACEOF
39629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39635 if test "$ac_cv_func_getpeerucred" != yes ; then
39636 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39637 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39638 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39639 echo $ECHO_N "(cached) $ECHO_C" >&6
39641 cat >conftest.$ac_ext <<_ACEOF
39644 cat confdefs.h >>conftest.$ac_ext
39645 cat >>conftest.$ac_ext <<_ACEOF
39646 /* end confdefs.h. */
39647 $ac_includes_default
39648 #ifdef HAVE_SYS_SOCKET_H
39649 #include <sys/socket.h>
39655 static struct msghdr ac_aggr;
39656 if (ac_aggr.msg_accrightslen)
39662 rm -f conftest.$ac_objext
39663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39664 (eval $ac_compile) 2>conftest.er1
39666 grep -v '^ *+' conftest.er1 >conftest.err
39668 cat conftest.err >&5
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); } &&
39671 { ac_try='test -z "$ac_c_werror_flag"
39672 || test ! -s conftest.err'
39673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39674 (eval $ac_try) 2>&5
39676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677 (exit $ac_status); }; } &&
39678 { ac_try='test -s conftest.$ac_objext'
39679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39680 (eval $ac_try) 2>&5
39682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683 (exit $ac_status); }; }; then
39684 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39686 echo "$as_me: failed program was:" >&5
39687 sed 's/^/| /' conftest.$ac_ext >&5
39689 cat >conftest.$ac_ext <<_ACEOF
39692 cat confdefs.h >>conftest.$ac_ext
39693 cat >>conftest.$ac_ext <<_ACEOF
39694 /* end confdefs.h. */
39695 $ac_includes_default
39696 #ifdef HAVE_SYS_SOCKET_H
39697 #include <sys/socket.h>
39703 static struct msghdr ac_aggr;
39704 if (sizeof ac_aggr.msg_accrightslen)
39710 rm -f conftest.$ac_objext
39711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39712 (eval $ac_compile) 2>conftest.er1
39714 grep -v '^ *+' conftest.er1 >conftest.err
39716 cat conftest.err >&5
39717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718 (exit $ac_status); } &&
39719 { ac_try='test -z "$ac_c_werror_flag"
39720 || test ! -s conftest.err'
39721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39722 (eval $ac_try) 2>&5
39724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725 (exit $ac_status); }; } &&
39726 { ac_try='test -s conftest.$ac_objext'
39727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39728 (eval $ac_try) 2>&5
39730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731 (exit $ac_status); }; }; then
39732 ac_cv_member_struct_msghdr_msg_accrightslen=yes
39734 echo "$as_me: failed program was:" >&5
39735 sed 's/^/| /' conftest.$ac_ext >&5
39737 ac_cv_member_struct_msghdr_msg_accrightslen=no
39739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39743 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39744 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39745 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39747 cat >>confdefs.h <<_ACEOF
39748 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39754 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39755 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39756 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39757 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39758 echo $ECHO_N "(cached) $ECHO_C" >&6
39760 cat >conftest.$ac_ext <<_ACEOF
39763 cat confdefs.h >>conftest.$ac_ext
39764 cat >>conftest.$ac_ext <<_ACEOF
39765 /* end confdefs.h. */
39766 $ac_includes_default
39767 #ifdef HAVE_SYS_SOCKET_H
39768 #include <sys/socket.h>
39774 static struct msghdr ac_aggr;
39775 if (ac_aggr.msg_control)
39781 rm -f conftest.$ac_objext
39782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39783 (eval $ac_compile) 2>conftest.er1
39785 grep -v '^ *+' conftest.er1 >conftest.err
39787 cat conftest.err >&5
39788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39789 (exit $ac_status); } &&
39790 { ac_try='test -z "$ac_c_werror_flag"
39791 || test ! -s conftest.err'
39792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39793 (eval $ac_try) 2>&5
39795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39796 (exit $ac_status); }; } &&
39797 { ac_try='test -s conftest.$ac_objext'
39798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39799 (eval $ac_try) 2>&5
39801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802 (exit $ac_status); }; }; then
39803 ac_cv_member_struct_msghdr_msg_control=yes
39805 echo "$as_me: failed program was:" >&5
39806 sed 's/^/| /' conftest.$ac_ext >&5
39808 cat >conftest.$ac_ext <<_ACEOF
39811 cat confdefs.h >>conftest.$ac_ext
39812 cat >>conftest.$ac_ext <<_ACEOF
39813 /* end confdefs.h. */
39814 $ac_includes_default
39815 #ifdef HAVE_SYS_SOCKET_H
39816 #include <sys/socket.h>
39822 static struct msghdr ac_aggr;
39823 if (sizeof ac_aggr.msg_control)
39829 rm -f conftest.$ac_objext
39830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39831 (eval $ac_compile) 2>conftest.er1
39833 grep -v '^ *+' conftest.er1 >conftest.err
39835 cat conftest.err >&5
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); } &&
39838 { ac_try='test -z "$ac_c_werror_flag"
39839 || test ! -s conftest.err'
39840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39841 (eval $ac_try) 2>&5
39843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844 (exit $ac_status); }; } &&
39845 { ac_try='test -s conftest.$ac_objext'
39846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847 (eval $ac_try) 2>&5
39849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850 (exit $ac_status); }; }; then
39851 ac_cv_member_struct_msghdr_msg_control=yes
39853 echo "$as_me: failed program was:" >&5
39854 sed 's/^/| /' conftest.$ac_ext >&5
39856 ac_cv_member_struct_msghdr_msg_control=no
39858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39862 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39863 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39864 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39866 cat >>confdefs.h <<_ACEOF
39867 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39875 LIBSRCS="$LIBSRCS getpeereid.c"
39878 if test "$ac_cv_func_snprintf" != yes ||
39879 test "$ac_cv_func_vsnprintf" != yes; then
39880 if test "$ac_cv_func_snprintf" != yes; then
39882 cat >>confdefs.h <<\_ACEOF
39883 #define snprintf ber_pvt_snprintf
39887 if test "$ac_cv_func_vsnprintf" != yes; then
39889 cat >>confdefs.h <<\_ACEOF
39890 #define vsnprintf ber_pvt_vsnprintf
39897 if test "$ol_enable_slapi" != no ; then
39899 for ac_header in ltdl.h
39901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39903 echo "$as_me:$LINENO: checking for $ac_header" >&5
39904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39906 echo $ECHO_N "(cached) $ECHO_C" >&6
39908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39911 # Is the header compilable?
39912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39914 cat >conftest.$ac_ext <<_ACEOF
39917 cat confdefs.h >>conftest.$ac_ext
39918 cat >>conftest.$ac_ext <<_ACEOF
39919 /* end confdefs.h. */
39920 $ac_includes_default
39921 #include <$ac_header>
39923 rm -f conftest.$ac_objext
39924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39925 (eval $ac_compile) 2>conftest.er1
39927 grep -v '^ *+' conftest.er1 >conftest.err
39929 cat conftest.err >&5
39930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931 (exit $ac_status); } &&
39932 { ac_try='test -z "$ac_c_werror_flag"
39933 || test ! -s conftest.err'
39934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935 (eval $ac_try) 2>&5
39937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938 (exit $ac_status); }; } &&
39939 { ac_try='test -s conftest.$ac_objext'
39940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941 (eval $ac_try) 2>&5
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); }; }; then
39945 ac_header_compiler=yes
39947 echo "$as_me: failed program was:" >&5
39948 sed 's/^/| /' conftest.$ac_ext >&5
39950 ac_header_compiler=no
39952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39954 echo "${ECHO_T}$ac_header_compiler" >&6
39956 # Is the header present?
39957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39959 cat >conftest.$ac_ext <<_ACEOF
39962 cat confdefs.h >>conftest.$ac_ext
39963 cat >>conftest.$ac_ext <<_ACEOF
39964 /* end confdefs.h. */
39965 #include <$ac_header>
39967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39970 grep -v '^ *+' conftest.er1 >conftest.err
39972 cat conftest.err >&5
39973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39974 (exit $ac_status); } >/dev/null; then
39975 if test -s conftest.err; then
39976 ac_cpp_err=$ac_c_preproc_warn_flag
39977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39984 if test -z "$ac_cpp_err"; then
39985 ac_header_preproc=yes
39987 echo "$as_me: failed program was:" >&5
39988 sed 's/^/| /' conftest.$ac_ext >&5
39990 ac_header_preproc=no
39992 rm -f conftest.err conftest.$ac_ext
39993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39994 echo "${ECHO_T}$ac_header_preproc" >&6
39996 # So? What about this header?
39997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40003 ac_header_preproc=yes
40006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40020 ## --------------------------------------------- ##
40021 ## Report this to <http://www.openldap.org/its/> ##
40022 ## --------------------------------------------- ##
40025 sed "s/^/$as_me: WARNING: /" >&2
40028 echo "$as_me:$LINENO: checking for $ac_header" >&5
40029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40031 echo $ECHO_N "(cached) $ECHO_C" >&6
40033 eval "$as_ac_Header=\$ac_header_preproc"
40035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40040 cat >>confdefs.h <<_ACEOF
40041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40049 if test $ac_cv_header_ltdl_h != yes ; then
40050 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40051 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40052 { (exit 1); exit 1; }; }
40054 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40055 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40056 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40057 echo $ECHO_N "(cached) $ECHO_C" >&6
40059 ac_check_lib_save_LIBS=$LIBS
40060 LIBS="-lltdl $LIBS"
40061 cat >conftest.$ac_ext <<_ACEOF
40064 cat confdefs.h >>conftest.$ac_ext
40065 cat >>conftest.$ac_ext <<_ACEOF
40066 /* end confdefs.h. */
40068 /* Override any gcc2 internal prototype to avoid an error. */
40072 /* We use char because int might match the return type of a gcc2
40073 builtin and then its argument prototype would still apply. */
40083 rm -f conftest.$ac_objext conftest$ac_exeext
40084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40085 (eval $ac_link) 2>conftest.er1
40087 grep -v '^ *+' conftest.er1 >conftest.err
40089 cat conftest.err >&5
40090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40091 (exit $ac_status); } &&
40092 { ac_try='test -z "$ac_c_werror_flag"
40093 || test ! -s conftest.err'
40094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40095 (eval $ac_try) 2>&5
40097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098 (exit $ac_status); }; } &&
40099 { ac_try='test -s conftest$ac_exeext'
40100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40101 (eval $ac_try) 2>&5
40103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104 (exit $ac_status); }; }; then
40105 ac_cv_lib_ltdl_lt_dlinit=yes
40107 echo "$as_me: failed program was:" >&5
40108 sed 's/^/| /' conftest.$ac_ext >&5
40110 ac_cv_lib_ltdl_lt_dlinit=no
40112 rm -f conftest.err conftest.$ac_objext \
40113 conftest$ac_exeext conftest.$ac_ext
40114 LIBS=$ac_check_lib_save_LIBS
40116 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40117 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40118 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40121 LIBSLAPI=libslapi.a
40122 LIBSLAPITOOLS=../libslapi.a
40124 cat >>confdefs.h <<\_ACEOF
40125 #define HAVE_LIBLTDL 1
40130 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40131 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40132 { (exit 1); exit 1; }; }
40137 cat >>confdefs.h <<\_ACEOF
40138 #define LDAP_SLAPI 1
40143 if test "$ol_enable_debug" != no ; then
40144 if test "$ol_enable_debug" = traditional; then
40146 cat >>confdefs.h <<\_ACEOF
40147 #define OLD_DEBUG 1
40152 cat >>confdefs.h <<\_ACEOF
40153 #define LDAP_DEBUG 1
40157 if test "$ol_enable_syslog" = yes ; then
40159 cat >>confdefs.h <<\_ACEOF
40160 #define LDAP_SYSLOG 1
40164 if test "$ol_link_kbind" != no ; then
40166 cat >>confdefs.h <<\_ACEOF
40167 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
40171 if test "$ol_enable_proctitle" != no ; then
40173 cat >>confdefs.h <<\_ACEOF
40174 #define LDAP_PROCTITLE 1
40178 if test "$ol_enable_referrals" != no ; then
40180 cat >>confdefs.h <<\_ACEOF
40181 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40185 if test "$ol_enable_local" != no; then
40187 cat >>confdefs.h <<\_ACEOF
40188 #define LDAP_PF_LOCAL 1
40192 if test "$ol_link_ipv6" != no; then
40194 cat >>confdefs.h <<\_ACEOF
40195 #define LDAP_PF_INET6 1
40199 if test "$ol_enable_cleartext" != no ; then
40201 cat >>confdefs.h <<\_ACEOF
40202 #define SLAPD_CLEARTEXT 1
40206 if test "$ol_enable_crypt" != no ; then
40208 cat >>confdefs.h <<\_ACEOF
40209 #define SLAPD_CRYPT 1
40213 if test "$ol_link_spasswd" != no ; then
40215 cat >>confdefs.h <<\_ACEOF
40216 #define SLAPD_SPASSWD 1
40220 if test "$ol_enable_rlookups" != no ; then
40222 cat >>confdefs.h <<\_ACEOF
40223 #define SLAPD_RLOOKUPS 1
40227 if test "$ol_enable_aci" != no ; then
40228 if test $ol_enable_dynacl = no ; then
40229 ol_enable_dynacl=yes
40230 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40231 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40233 if test "$ol_enable_aci" = mod ; then
40234 MFLAG=SLAPD_MOD_DYNAMIC
40235 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40236 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40237 { (exit 1); exit 1; }; }
40239 MFLAG=SLAPD_MOD_STATIC
40241 WITH_ACI_ENABLED=$ol_enable_aci
40243 cat >>confdefs.h <<_ACEOF
40244 #define SLAPD_ACI_ENABLED $MFLAG
40248 WITH_ACI_ENABLED=no
40250 if test "$ol_enable_dynacl" != no ; then
40252 cat >>confdefs.h <<\_ACEOF
40253 #define SLAP_DYNACL 1
40258 if test "$ol_link_modules" != no ; then
40260 cat >>confdefs.h <<\_ACEOF
40261 #define SLAPD_MODULES 1
40265 SLAPD_MODULES_LDFLAGS="-dlopen self"
40269 cat >>confdefs.h <<\_ACEOF
40270 #define SLAPD_MOD_STATIC 1
40274 cat >>confdefs.h <<\_ACEOF
40275 #define SLAPD_MOD_DYNAMIC 2
40279 if test "$ol_enable_monitor" != no ; then
40281 BUILD_MONITOR=$ol_enable_monitor
40282 if test "$ol_enable_monitor" = mod ; then
40283 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40284 MFLAG=SLAPD_MOD_DYNAMIC
40286 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40287 MFLAG=SLAPD_MOD_STATIC
40290 cat >>confdefs.h <<_ACEOF
40291 #define SLAPD_MONITOR $MFLAG
40296 if test "$ol_enable_bdb" != no ; then
40298 BUILD_BDB=$ol_enable_bdb
40299 if test "$ol_enable_bdb" = mod ; then
40300 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40301 MFLAG=SLAPD_MOD_DYNAMIC
40303 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40304 MFLAG=SLAPD_MOD_STATIC
40307 cat >>confdefs.h <<_ACEOF
40308 #define SLAPD_BDB $MFLAG
40313 if test "$ol_enable_dnssrv" != no ; then
40315 BUILD_DNSSRV=$ol_enable_dnssrv
40316 if test "$ol_enable_dnssrv" = mod ; then
40317 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40318 MFLAG=SLAPD_MOD_DYNAMIC
40320 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40321 MFLAG=SLAPD_MOD_STATIC
40324 cat >>confdefs.h <<_ACEOF
40325 #define SLAPD_DNSSRV $MFLAG
40330 if test "$ol_enable_hdb" != no ; then
40332 BUILD_HDB=$ol_enable_hdb
40333 if test "$ol_enable_hdb" = mod ; then
40334 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40335 MFLAG=SLAPD_MOD_DYNAMIC
40337 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40338 MFLAG=SLAPD_MOD_STATIC
40341 cat >>confdefs.h <<_ACEOF
40342 #define SLAPD_HDB $MFLAG
40347 if test "$ol_enable_ldap" != no ; then
40349 BUILD_LDAP=$ol_enable_ldap
40350 if test "$ol_enable_ldap" = mod ; then
40351 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40352 MFLAG=SLAPD_MOD_DYNAMIC
40354 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40355 MFLAG=SLAPD_MOD_STATIC
40358 cat >>confdefs.h <<_ACEOF
40359 #define SLAPD_LDAP $MFLAG
40364 if test "$ol_enable_meta" != no ; then
40366 BUILD_META=$ol_enable_meta
40368 if test "$ol_enable_meta" = mod ; then
40369 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40370 MFLAG=SLAPD_MOD_DYNAMIC
40372 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40373 MFLAG=SLAPD_MOD_STATIC
40376 cat >>confdefs.h <<_ACEOF
40377 #define SLAPD_META $MFLAG
40382 if test "$ol_enable_null" != no ; then
40384 BUILD_NULL=$ol_enable_null
40385 if test "$ol_enable_null" = mod ; then
40386 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40387 MFLAG=SLAPD_MOD_DYNAMIC
40389 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40390 MFLAG=SLAPD_MOD_STATIC
40393 cat >>confdefs.h <<_ACEOF
40394 #define SLAPD_NULL $MFLAG
40399 if test "$ol_enable_passwd" != no ; then
40401 BUILD_PASSWD=$ol_enable_passwd
40402 if test "$ol_enable_passwd" = mod ; then
40403 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40404 MFLAG=SLAPD_MOD_DYNAMIC
40406 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40407 MFLAG=SLAPD_MOD_STATIC
40410 cat >>confdefs.h <<_ACEOF
40411 #define SLAPD_PASSWD $MFLAG
40416 if test "$ol_link_perl" != no ; then
40418 BUILD_PERL=$ol_enable_perl
40419 if test "$ol_enable_perl" = mod ; then
40420 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40421 MFLAG=SLAPD_MOD_DYNAMIC
40423 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40424 MFLAG=SLAPD_MOD_STATIC
40427 cat >>confdefs.h <<_ACEOF
40428 #define SLAPD_PERL $MFLAG
40433 if test "$ol_enable_relay" != no ; then
40435 BUILD_RELAY=$ol_enable_relay
40436 if test "$ol_enable_relay" = mod ; then
40437 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40438 MFLAG=SLAPD_MOD_DYNAMIC
40440 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40441 MFLAG=SLAPD_MOD_STATIC
40444 cat >>confdefs.h <<_ACEOF
40445 #define SLAPD_RELAY $MFLAG
40450 if test "$ol_enable_shell" != no ; then
40451 if test "$ol_link_threads" != no ; then
40452 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40453 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40456 BUILD_SHELL=$ol_enable_shell
40457 if test "$ol_enable_shell" = mod ; then
40458 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40459 MFLAG=SLAPD_MOD_DYNAMIC
40461 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40462 MFLAG=SLAPD_MOD_STATIC
40465 cat >>confdefs.h <<_ACEOF
40466 #define SLAPD_SHELL $MFLAG
40471 if test "$ol_link_sql" != no ; then
40473 BUILD_SQL=$ol_enable_sql
40474 if test "$ol_enable_sql" = mod; then
40475 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40476 MFLAG=SLAPD_MOD_DYNAMIC
40478 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40479 MFLAG=SLAPD_MOD_STATIC
40482 cat >>confdefs.h <<_ACEOF
40483 #define SLAPD_SQL $MFLAG
40488 if test "$ol_enable_accesslog" != no ; then
40489 BUILD_ACCESSLOG=$ol_enable_accesslog
40490 if test "$ol_enable_accesslog" = mod ; then
40491 MFLAG=SLAPD_MOD_DYNAMIC
40492 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40494 MFLAG=SLAPD_MOD_STATIC
40495 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40498 cat >>confdefs.h <<_ACEOF
40499 #define SLAPD_OVER_ACCESSLOG $MFLAG
40504 if test "$ol_enable_auditlog" != no ; then
40505 BUILD_AUDITLOG=$ol_enable_auditlog
40506 if test "$ol_enable_auditlog" = mod ; then
40507 MFLAG=SLAPD_MOD_DYNAMIC
40508 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40510 MFLAG=SLAPD_MOD_STATIC
40511 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40514 cat >>confdefs.h <<_ACEOF
40515 #define SLAPD_OVER_AUDITLOG $MFLAG
40520 if test "$ol_enable_constraint" != no ; then
40521 BUILD_CONSTRAINT=$ol_enable_constraint
40522 if test "$ol_enable_constraint" = mod ; then
40523 MFLAG=SLAPD_MOD_DYNAMIC
40524 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40526 MFLAG=SLAPD_MOD_STATIC
40527 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40530 cat >>confdefs.h <<_ACEOF
40531 #define SLAPD_OVER_CONSTRAINT $MFLAG
40536 if test "$ol_enable_dds" != no ; then
40537 BUILD_DDS=$ol_enable_dds
40538 if test "$ol_enable_dds" = mod ; then
40539 MFLAG=SLAPD_MOD_DYNAMIC
40540 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40542 MFLAG=SLAPD_MOD_STATIC
40543 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40546 cat >>confdefs.h <<_ACEOF
40547 #define SLAPD_OVER_DDS $MFLAG
40552 if test "$ol_enable_denyop" != no ; then
40553 BUILD_DENYOP=$ol_enable_denyop
40554 if test "$ol_enable_denyop" = mod ; then
40555 MFLAG=SLAPD_MOD_DYNAMIC
40556 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
40558 MFLAG=SLAPD_MOD_STATIC
40559 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
40562 cat >>confdefs.h <<_ACEOF
40563 #define SLAPD_OVER_DENYOP $MFLAG
40568 if test "$ol_enable_dyngroup" != no ; then
40569 BUILD_DYNGROUP=$ol_enable_dyngroup
40570 if test "$ol_enable_dyngroup" = mod ; then
40571 MFLAG=SLAPD_MOD_DYNAMIC
40572 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40574 MFLAG=SLAPD_MOD_STATIC
40575 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40578 cat >>confdefs.h <<_ACEOF
40579 #define SLAPD_OVER_DYNGROUP $MFLAG
40584 if test "$ol_enable_dynlist" != no ; then
40585 BUILD_DYNLIST=$ol_enable_dynlist
40586 if test "$ol_enable_dynlist" = mod ; then
40587 MFLAG=SLAPD_MOD_DYNAMIC
40588 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40590 MFLAG=SLAPD_MOD_STATIC
40591 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40594 cat >>confdefs.h <<_ACEOF
40595 #define SLAPD_OVER_DYNLIST $MFLAG
40600 if test "$ol_enable_lastmod" != no ; then
40601 BUILD_LASTMOD=$ol_enable_lastmod
40602 if test "$ol_enable_lastmod" = mod ; then
40603 MFLAG=SLAPD_MOD_DYNAMIC
40604 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
40606 MFLAG=SLAPD_MOD_STATIC
40607 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
40610 cat >>confdefs.h <<_ACEOF
40611 #define SLAPD_OVER_LASTMOD $MFLAG
40616 if test "$ol_enable_ppolicy" != no ; then
40617 BUILD_PPOLICY=$ol_enable_ppolicy
40618 if test "$ol_enable_ppolicy" = mod ; then
40619 MFLAG=SLAPD_MOD_DYNAMIC
40620 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40622 MFLAG=SLAPD_MOD_STATIC
40623 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40626 cat >>confdefs.h <<_ACEOF
40627 #define SLAPD_OVER_PPOLICY $MFLAG
40632 if test "$ol_enable_proxycache" != no ; then
40633 BUILD_PROXYCACHE=$ol_enable_proxycache
40634 if test "$ol_enable_proxycache" = mod ; then
40635 MFLAG=SLAPD_MOD_DYNAMIC
40636 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40638 MFLAG=SLAPD_MOD_STATIC
40639 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40642 cat >>confdefs.h <<_ACEOF
40643 #define SLAPD_OVER_PROXYCACHE $MFLAG
40648 if test "$ol_enable_refint" != no ; then
40649 BUILD_REFINT=$ol_enable_refint
40650 if test "$ol_enable_refint" = mod ; then
40651 MFLAG=SLAPD_MOD_DYNAMIC
40652 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40654 MFLAG=SLAPD_MOD_STATIC
40655 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40658 cat >>confdefs.h <<_ACEOF
40659 #define SLAPD_OVER_REFINT $MFLAG
40664 if test "$ol_enable_retcode" != no ; then
40665 BUILD_RETCODE=$ol_enable_retcode
40666 if test "$ol_enable_retcode" = mod ; then
40667 MFLAG=SLAPD_MOD_DYNAMIC
40668 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40670 MFLAG=SLAPD_MOD_STATIC
40671 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40674 cat >>confdefs.h <<_ACEOF
40675 #define SLAPD_OVER_RETCODE $MFLAG
40680 if test "$ol_enable_rwm" != no ; then
40682 BUILD_RWM=$ol_enable_rwm
40683 if test "$ol_enable_rwm" = mod ; then
40684 MFLAG=SLAPD_MOD_DYNAMIC
40685 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40687 MFLAG=SLAPD_MOD_STATIC
40688 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40691 cat >>confdefs.h <<_ACEOF
40692 #define SLAPD_OVER_RWM $MFLAG
40697 if test "$ol_enable_seqmod" != no ; then
40698 BUILD_SEQMOD=$ol_enable_seqmod
40699 if test "$ol_enable_seqmod" = mod ; then
40700 MFLAG=SLAPD_MOD_DYNAMIC
40701 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40703 MFLAG=SLAPD_MOD_STATIC
40704 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40707 cat >>confdefs.h <<_ACEOF
40708 #define SLAPD_OVER_SEQMOD $MFLAG
40713 if test "$ol_enable_syncprov" != no ; then
40714 BUILD_SYNCPROV=$ol_enable_syncprov
40715 if test "$ol_enable_syncprov" = mod ; then
40716 MFLAG=SLAPD_MOD_DYNAMIC
40717 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40719 MFLAG=SLAPD_MOD_STATIC
40720 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40723 cat >>confdefs.h <<_ACEOF
40724 #define SLAPD_OVER_SYNCPROV $MFLAG
40729 if test "$ol_enable_translucent" != no ; then
40730 BUILD_TRANSLUCENT=$ol_enable_translucent
40731 if test "$ol_enable_translucent" = mod ; then
40732 MFLAG=SLAPD_MOD_DYNAMIC
40733 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40735 MFLAG=SLAPD_MOD_STATIC
40736 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40739 cat >>confdefs.h <<_ACEOF
40740 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40745 if test "$ol_enable_unique" != no ; then
40746 BUILD_UNIQUE=$ol_enable_unique
40747 if test "$ol_enable_unique" = mod ; then
40748 MFLAG=SLAPD_MOD_DYNAMIC
40749 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40751 MFLAG=SLAPD_MOD_STATIC
40752 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40755 cat >>confdefs.h <<_ACEOF
40756 #define SLAPD_OVER_UNIQUE $MFLAG
40761 if test "$ol_enable_valsort" != no ; then
40762 BUILD_VALSORT=$ol_enable_valsort
40763 if test "$ol_enable_valsort" = mod ; then
40764 MFLAG=SLAPD_MOD_DYNAMIC
40765 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40767 MFLAG=SLAPD_MOD_STATIC
40768 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40771 cat >>confdefs.h <<_ACEOF
40772 #define SLAPD_OVER_VALSORT $MFLAG
40777 if test "$ol_enable_slurpd" != no &&
40778 test "$ol_link_threads" != no &&
40779 test $BUILD_SLAPD = yes ; then
40783 if test "$ol_enable_rewrite" != no ; then
40785 cat >>confdefs.h <<\_ACEOF
40786 #define ENABLE_REWRITE 1
40792 if test "$ol_enable_slapi" != no ; then
40794 cat >>confdefs.h <<\_ACEOF
40795 #define ENABLE_SLAPI 1
40799 SLAPD_SLAPI_DEPEND=libslapi.a
40804 if test "$ac_cv_mingw32" = yes ; then
40806 SLAPD_MODULES_LDFLAGS=
40895 # Check whether --with-xxinstall or --without-xxinstall was given.
40896 if test "${with_xxinstall+set}" = set; then
40897 withval="$with_xxinstall"
40902 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"
40905 ac_config_commands="$ac_config_commands default"
40909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40910 # Let make expand exec_prefix.
40911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40913 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40914 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40915 # trailing colons and then remove the whole line if VPATH becomes empty
40916 # (actually we leave an empty line to preserve line numbers).
40917 if test "x$srcdir" = x.; then
40918 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40919 s/:*\$(srcdir):*/:/;
40920 s/:*\${srcdir}:*/:/;
40922 s/^\([^=]*=[ ]*\):*/\1/;
40928 DEFS=-DHAVE_CONFIG_H
40932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40933 # 1. Remove the extension, and $U if already installed.
40934 ac_i=`echo "$ac_i" |
40935 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40937 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40938 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40940 LIBOBJS=$ac_libobjs
40942 LTLIBOBJS=$ac_ltlibobjs
40945 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40946 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40947 Usually this means the macro was only invoked conditionally." >&5
40948 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40949 Usually this means the macro was only invoked conditionally." >&2;}
40950 { (exit 1); exit 1; }; }
40952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40953 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40954 Usually this means the macro was only invoked conditionally." >&5
40955 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40956 Usually this means the macro was only invoked conditionally." >&2;}
40957 { (exit 1); exit 1; }; }
40959 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40960 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40961 Usually this means the macro was only invoked conditionally." >&5
40962 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40963 Usually this means the macro was only invoked conditionally." >&2;}
40964 { (exit 1); exit 1; }; }
40967 : ${CONFIG_STATUS=./config.status}
40968 ac_clean_files_save=$ac_clean_files
40969 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40970 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40971 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40972 cat >$CONFIG_STATUS <<_ACEOF
40974 # Generated by $as_me.
40975 # Run this file to recreate the current configuration.
40976 # Compiler output produced by configure, useful for debugging
40977 # configure, is in config.log if it exists.
40980 ac_cs_recheck=false
40982 SHELL=\${CONFIG_SHELL-$SHELL}
40985 cat >>$CONFIG_STATUS <<\_ACEOF
40986 ## --------------------- ##
40987 ## M4sh Initialization. ##
40988 ## --------------------- ##
40990 # Be Bourne compatible
40991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40994 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40995 # is contrary to our usage. Disable this feature.
40996 alias -g '${1+"$@"}'='"$@"'
40997 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41000 DUALCASE=1; export DUALCASE # for MKS sh
41002 # Support unset when possible.
41003 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41010 # Work around bugs in pre-3.0 UWIN ksh.
41011 $as_unset ENV MAIL MAILPATH
41018 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41019 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41020 LC_TELEPHONE LC_TIME
41022 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41023 eval $as_var=C; export $as_var
41029 # Required to use basename.
41030 if expr a : '\(a\)' >/dev/null 2>&1; then
41036 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41037 as_basename=basename
41043 # Name of the executable.
41044 as_me=`$as_basename "$0" ||
41045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41046 X"$0" : 'X\(//\)$' \| \
41047 X"$0" : 'X\(/\)$' \| \
41048 . : '\(.\)' 2>/dev/null ||
41050 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41051 /^X\/\(\/\/\)$/{ s//\1/; q; }
41052 /^X\/\(\/\).*/{ s//\1/; q; }
41056 # PATH needs CR, and LINENO needs CR and PATH.
41057 # Avoid depending upon Character Ranges.
41058 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41059 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41060 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41061 as_cr_digits='0123456789'
41062 as_cr_alnum=$as_cr_Letters$as_cr_digits
41064 # The user is always right.
41065 if test "${PATH_SEPARATOR+set}" != set; then
41066 echo "#! /bin/sh" >conf$$.sh
41067 echo "exit 0" >>conf$$.sh
41069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41078 as_lineno_1=$LINENO
41079 as_lineno_2=$LINENO
41080 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41081 test "x$as_lineno_1" != "x$as_lineno_2" &&
41082 test "x$as_lineno_3" = "x$as_lineno_2" || {
41083 # Find who we are. Look in the path if we contain no path at all
41086 *[\\/]* ) as_myself=$0 ;;
41087 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41088 for as_dir in $PATH
41091 test -z "$as_dir" && as_dir=.
41092 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41097 # We did not find ourselves, most probably we were run as `sh COMMAND'
41098 # in which case we are not to be found in the path.
41099 if test "x$as_myself" = x; then
41102 if test ! -f "$as_myself"; then
41103 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41104 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41105 { (exit 1); exit 1; }; }
41107 case $CONFIG_SHELL in
41109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41110 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41113 test -z "$as_dir" && as_dir=.
41114 for as_base in sh bash ksh sh5; do
41117 if ("$as_dir/$as_base" -c '
41118 as_lineno_1=$LINENO
41119 as_lineno_2=$LINENO
41120 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41121 test "x$as_lineno_1" != "x$as_lineno_2" &&
41122 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41123 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41124 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41125 CONFIG_SHELL=$as_dir/$as_base
41126 export CONFIG_SHELL
41127 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41135 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41136 # uniformly replaced by the line number. The first 'sed' inserts a
41137 # line-number line before each line; the second 'sed' does the real
41138 # work. The second script uses 'N' to pair each line-number line
41139 # with the numbered line, and appends trailing '-' during
41140 # substitution so that $LINENO is not a special case at line end.
41141 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41142 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41143 sed '=' <$as_myself |
41148 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41151 s,^['$as_cr_digits']*\n,,
41152 ' >$as_me.lineno &&
41153 chmod +x $as_me.lineno ||
41154 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41155 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41156 { (exit 1); exit 1; }; }
41158 # Don't try to exec as it changes $[0], causing all sort of problems
41159 # (the dirname of $[0] is not the place where we might find the
41160 # original and so on. Autoconf is especially sensible to this).
41162 # Exit status is that of the last command.
41167 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41168 *c*,-n*) ECHO_N= ECHO_C='
41170 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41171 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41174 if expr a : '\(a\)' >/dev/null 2>&1; then
41180 rm -f conf$$ conf$$.exe conf$$.file
41182 if ln -s conf$$.file conf$$ 2>/dev/null; then
41183 # We could just check for DJGPP; but this test a) works b) is more generic
41184 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41185 if test -f conf$$.exe; then
41186 # Don't use ln at all; we don't have any links
41191 elif ln conf$$.file conf$$ 2>/dev/null; then
41196 rm -f conf$$ conf$$.exe conf$$.file
41198 if mkdir -p . 2>/dev/null; then
41201 test -d ./-p && rmdir ./-p
41205 as_executable_p="test -f"
41207 # Sed expression to map a string onto a valid CPP name.
41208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41210 # Sed expression to map a string onto a valid variable name.
41211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41215 # We need space, tab and new line, in precisely that order.
41225 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41226 # report actual input values of CONFIG_FILES etc. instead of their
41227 # values after options handling. Logging --version etc. is OK.
41231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41232 ## Running $as_me. ##
41237 This file was extended by $as_me, which was
41238 generated by GNU Autoconf 2.59. Invocation command line was
41240 CONFIG_FILES = $CONFIG_FILES
41241 CONFIG_HEADERS = $CONFIG_HEADERS
41242 CONFIG_LINKS = $CONFIG_LINKS
41243 CONFIG_COMMANDS = $CONFIG_COMMANDS
41247 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41251 # Files that config.status was made for.
41252 if test -n "$ac_config_files"; then
41253 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41256 if test -n "$ac_config_headers"; then
41257 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41260 if test -n "$ac_config_links"; then
41261 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41264 if test -n "$ac_config_commands"; then
41265 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41268 cat >>$CONFIG_STATUS <<\_ACEOF
41271 \`$as_me' instantiates files from templates according to the
41272 current configuration.
41274 Usage: $0 [OPTIONS] [FILE]...
41276 -h, --help print this help, then exit
41277 -V, --version print version number, then exit
41278 -q, --quiet do not print progress messages
41279 -d, --debug don't remove temporary files
41280 --recheck update $as_me by reconfiguring in the same conditions
41281 --file=FILE[:TEMPLATE]
41282 instantiate the configuration file FILE
41283 --header=FILE[:TEMPLATE]
41284 instantiate the configuration header FILE
41286 Configuration files:
41289 Configuration headers:
41292 Configuration commands:
41295 Report bugs to <bug-autoconf@gnu.org>."
41298 cat >>$CONFIG_STATUS <<_ACEOF
41301 configured by $0, generated by GNU Autoconf 2.59,
41302 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41304 Copyright (C) 2003 Free Software Foundation, Inc.
41305 This config.status script is free software; the Free Software Foundation
41306 gives unlimited permission to copy, distribute and modify it."
41311 cat >>$CONFIG_STATUS <<\_ACEOF
41312 # If no file are specified by the user, then we need to provide default
41313 # value. By we need to know if files were specified by the user.
41319 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41320 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41328 *) # This is not an option, so the user has probably given explicit
41331 ac_need_defaults=false;;
41335 # Handling of the options.
41337 cat >>$CONFIG_STATUS <<\_ACEOF
41338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41340 --version | --vers* | -V )
41341 echo "$ac_cs_version"; exit 0 ;;
41343 # Conflict between --help and --header
41344 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41345 Try \`$0 --help' for more information." >&5
41346 echo "$as_me: error: ambiguous option: $1
41347 Try \`$0 --help' for more information." >&2;}
41348 { (exit 1); exit 1; }; };;
41349 --help | --hel | -h )
41350 echo "$ac_cs_usage"; exit 0 ;;
41351 --debug | --d* | -d )
41353 --file | --fil | --fi | --f )
41355 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41356 ac_need_defaults=false;;
41357 --header | --heade | --head | --hea )
41359 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41360 ac_need_defaults=false;;
41361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41365 # This is an error.
41366 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41367 Try \`$0 --help' for more information." >&5
41368 echo "$as_me: error: unrecognized option: $1
41369 Try \`$0 --help' for more information." >&2;}
41370 { (exit 1); exit 1; }; } ;;
41372 *) ac_config_targets="$ac_config_targets $1" ;;
41378 ac_configure_extra_args=
41380 if $ac_cs_silent; then
41382 ac_configure_extra_args="$ac_configure_extra_args --silent"
41386 cat >>$CONFIG_STATUS <<_ACEOF
41387 if \$ac_cs_recheck; then
41388 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41389 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41394 cat >>$CONFIG_STATUS <<_ACEOF
41396 # INIT-COMMANDS section.
41399 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41401 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41402 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41409 cat >>$CONFIG_STATUS <<\_ACEOF
41410 for ac_config_target in $ac_config_targets
41412 case "$ac_config_target" in
41413 # Handling of arguments.
41414 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41415 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41416 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41417 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41418 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41419 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41420 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41421 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41422 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41423 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41424 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41425 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41426 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41427 "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" ;;
41428 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41429 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41430 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41431 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41432 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41433 "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" ;;
41434 "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" ;;
41435 "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" ;;
41436 "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" ;;
41437 "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" ;;
41438 "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" ;;
41439 "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" ;;
41440 "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" ;;
41441 "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" ;;
41442 "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" ;;
41443 "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" ;;
41444 "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" ;;
41445 "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" ;;
41446 "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" ;;
41447 "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" ;;
41448 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41449 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
41450 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41451 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41452 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41453 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41454 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41455 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41456 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41457 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41458 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41459 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41460 { (exit 1); exit 1; }; };;
41464 # If the user did not use the arguments to specify the items to instantiate,
41465 # then the envvar interface is used. Set only those that are not.
41466 # We use the long form for the default assignment because of an extremely
41467 # bizarre bug on SunOS 4.1.3.
41468 if $ac_need_defaults; then
41469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41474 # Have a temporary directory for convenience. Make it in the build tree
41475 # simply because there is no reason to put it here, and in addition,
41476 # creating and moving files from /tmp can sometimes cause problems.
41477 # Create a temporary directory, and hook for its removal unless debugging.
41480 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41481 trap '{ (exit 1); exit 1; }' 1 2 13 15
41484 # Create a (secure) tmp directory for tmp files.
41487 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41488 test -n "$tmp" && test -d "$tmp"
41491 tmp=./confstat$$-$RANDOM
41492 (umask 077 && mkdir $tmp)
41495 echo "$me: cannot create a temporary directory in ." >&2
41496 { (exit 1); exit 1; }
41501 cat >>$CONFIG_STATUS <<_ACEOF
41504 # CONFIG_FILES section.
41507 # No need to generate the scripts if there are no CONFIG_FILES.
41508 # This happens for instance when ./config.status config.h
41509 if test -n "\$CONFIG_FILES"; then
41510 # Protect against being on the right side of a sed subst in config.status.
41511 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41512 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41513 s,@SHELL@,$SHELL,;t t
41514 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41515 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41516 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41517 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41518 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41519 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41520 s,@exec_prefix@,$exec_prefix,;t t
41521 s,@prefix@,$prefix,;t t
41522 s,@program_transform_name@,$program_transform_name,;t t
41523 s,@bindir@,$bindir,;t t
41524 s,@sbindir@,$sbindir,;t t
41525 s,@libexecdir@,$libexecdir,;t t
41526 s,@datadir@,$datadir,;t t
41527 s,@sysconfdir@,$sysconfdir,;t t
41528 s,@sharedstatedir@,$sharedstatedir,;t t
41529 s,@localstatedir@,$localstatedir,;t t
41530 s,@libdir@,$libdir,;t t
41531 s,@includedir@,$includedir,;t t
41532 s,@oldincludedir@,$oldincludedir,;t t
41533 s,@infodir@,$infodir,;t t
41534 s,@mandir@,$mandir,;t t
41535 s,@build_alias@,$build_alias,;t t
41536 s,@host_alias@,$host_alias,;t t
41537 s,@target_alias@,$target_alias,;t t
41538 s,@DEFS@,$DEFS,;t t
41539 s,@ECHO_C@,$ECHO_C,;t t
41540 s,@ECHO_N@,$ECHO_N,;t t
41541 s,@ECHO_T@,$ECHO_T,;t t
41542 s,@LIBS@,$LIBS,;t t
41543 s,@build@,$build,;t t
41544 s,@build_cpu@,$build_cpu,;t t
41545 s,@build_vendor@,$build_vendor,;t t
41546 s,@build_os@,$build_os,;t t
41547 s,@host@,$host,;t t
41548 s,@host_cpu@,$host_cpu,;t t
41549 s,@host_vendor@,$host_vendor,;t t
41550 s,@host_os@,$host_os,;t t
41551 s,@target@,$target,;t t
41552 s,@target_cpu@,$target_cpu,;t t
41553 s,@target_vendor@,$target_vendor,;t t
41554 s,@target_os@,$target_os,;t t
41555 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41556 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41557 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41558 s,@CYGPATH_W@,$CYGPATH_W,;t t
41559 s,@PACKAGE@,$PACKAGE,;t t
41560 s,@VERSION@,$VERSION,;t t
41561 s,@ACLOCAL@,$ACLOCAL,;t t
41562 s,@AUTOCONF@,$AUTOCONF,;t t
41563 s,@AUTOMAKE@,$AUTOMAKE,;t t
41564 s,@AUTOHEADER@,$AUTOHEADER,;t t
41565 s,@MAKEINFO@,$MAKEINFO,;t t
41566 s,@install_sh@,$install_sh,;t t
41567 s,@STRIP@,$STRIP,;t t
41568 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41569 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41570 s,@mkdir_p@,$mkdir_p,;t t
41572 s,@SET_MAKE@,$SET_MAKE,;t t
41573 s,@am__leading_dot@,$am__leading_dot,;t t
41574 s,@AMTAR@,$AMTAR,;t t
41575 s,@am__tar@,$am__tar,;t t
41576 s,@am__untar@,$am__untar,;t t
41577 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41578 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41579 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41580 s,@top_builddir@,$top_builddir,;t t
41581 s,@ldap_subdir@,$ldap_subdir,;t t
41584 s,@CFLAGS@,$CFLAGS,;t t
41585 s,@LDFLAGS@,$LDFLAGS,;t t
41586 s,@CPPFLAGS@,$CPPFLAGS,;t t
41587 s,@ac_ct_CC@,$ac_ct_CC,;t t
41588 s,@EXEEXT@,$EXEEXT,;t t
41589 s,@OBJEXT@,$OBJEXT,;t t
41590 s,@DEPDIR@,$DEPDIR,;t t
41591 s,@am__include@,$am__include,;t t
41592 s,@am__quote@,$am__quote,;t t
41593 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41594 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41595 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41596 s,@CCDEPMODE@,$CCDEPMODE,;t t
41597 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41598 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41599 s,@EGREP@,$EGREP,;t t
41600 s,@LN_S@,$LN_S,;t t
41601 s,@ECHO@,$ECHO,;t t
41602 s,@ac_ct_AR@,$ac_ct_AR,;t t
41603 s,@RANLIB@,$RANLIB,;t t
41604 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41605 s,@DLLTOOL@,$DLLTOOL,;t t
41606 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41608 s,@ac_ct_AS@,$ac_ct_AS,;t t
41609 s,@OBJDUMP@,$OBJDUMP,;t t
41610 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41612 s,@LIBTOOL@,$LIBTOOL,;t t
41613 s,@PERLBIN@,$PERLBIN,;t t
41614 s,@OL_MKDEP@,$OL_MKDEP,;t t
41615 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41616 s,@LTSTATIC@,$LTSTATIC,;t t
41617 s,@LIBOBJS@,$LIBOBJS,;t t
41618 s,@LIBSRCS@,$LIBSRCS,;t t
41619 s,@PLAT@,$PLAT,;t t
41620 s,@WITH_SASL@,$WITH_SASL,;t t
41621 s,@WITH_TLS@,$WITH_TLS,;t t
41622 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41623 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41624 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41625 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41626 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41627 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41628 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41629 s,@BUILD_BDB@,$BUILD_BDB,;t t
41630 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41631 s,@BUILD_HDB@,$BUILD_HDB,;t t
41632 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41633 s,@BUILD_META@,$BUILD_META,;t t
41634 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41635 s,@BUILD_NULL@,$BUILD_NULL,;t t
41636 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41637 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41638 s,@BUILD_PERL@,$BUILD_PERL,;t t
41639 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41640 s,@BUILD_SQL@,$BUILD_SQL,;t t
41641 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41642 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41643 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41644 s,@BUILD_DDS@,$BUILD_DDS,;t t
41645 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41646 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41647 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41648 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41649 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41650 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41651 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41652 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41653 s,@BUILD_RWM@,$BUILD_RWM,;t t
41654 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41655 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41656 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41657 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41658 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41659 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41660 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41661 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41662 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41663 s,@BDB_LIBS@,$BDB_LIBS,;t t
41664 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41665 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41666 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41667 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41668 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41669 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41670 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41671 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41672 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41673 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41674 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41675 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41676 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41677 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41678 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41679 s,@SASL_LIBS@,$SASL_LIBS,;t t
41680 s,@TLS_LIBS@,$TLS_LIBS,;t t
41681 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41682 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41683 s,@LIBSLAPI@,$LIBSLAPI,;t t
41684 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41685 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41686 s,@ICU_LIBS@,$ICU_LIBS,;t t
41687 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41688 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41689 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41690 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41691 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41692 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41697 cat >>$CONFIG_STATUS <<\_ACEOF
41698 # Split the substitutions into bite-sized pieces for seds with
41699 # small command number limits, like on Digital OSF/1 and HP-UX.
41700 ac_max_sed_lines=48
41701 ac_sed_frag=1 # Number of current file.
41702 ac_beg=1 # First line for current file.
41703 ac_end=$ac_max_sed_lines # Line after last line for current file.
41706 while $ac_more_lines; do
41707 if test $ac_beg -gt 1; then
41708 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41710 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41712 if test ! -s $tmp/subs.frag; then
41713 ac_more_lines=false
41715 # The purpose of the label and of the branching condition is to
41716 # speed up the sed processing (if there are no `@' at all, there
41717 # is no need to browse any of the substitutions).
41718 # These are the two extra sed commands mentioned above.
41720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41721 if test -z "$ac_sed_cmds"; then
41722 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41724 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41726 ac_sed_frag=`expr $ac_sed_frag + 1`
41728 ac_end=`expr $ac_end + $ac_max_sed_lines`
41731 if test -z "$ac_sed_cmds"; then
41734 fi # test -n "$CONFIG_FILES"
41737 cat >>$CONFIG_STATUS <<\_ACEOF
41738 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41741 - | *:- | *:-:* ) # input from stdin
41743 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41744 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41745 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41746 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41747 * ) ac_file_in=$ac_file.in ;;
41750 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41751 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41753 X"$ac_file" : 'X\(//\)[^/]' \| \
41754 X"$ac_file" : 'X\(//\)$' \| \
41755 X"$ac_file" : 'X\(/\)' \| \
41756 . : '\(.\)' 2>/dev/null ||
41758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41760 /^X\(\/\/\)$/{ s//\1/; q; }
41761 /^X\(\/\).*/{ s//\1/; q; }
41763 { if $as_mkdir_p; then
41768 while test ! -d "$as_dir"; do
41769 as_dirs="$as_dir $as_dirs"
41770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41772 X"$as_dir" : 'X\(//\)[^/]' \| \
41773 X"$as_dir" : 'X\(//\)$' \| \
41774 X"$as_dir" : 'X\(/\)' \| \
41775 . : '\(.\)' 2>/dev/null ||
41777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41779 /^X\(\/\/\)$/{ s//\1/; q; }
41780 /^X\(\/\).*/{ s//\1/; q; }
41783 test ! -n "$as_dirs" || mkdir $as_dirs
41784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41786 { (exit 1); exit 1; }; }; }
41790 if test "$ac_dir" != .; then
41791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41792 # A "../" for each directory in $ac_dir_suffix.
41793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41795 ac_dir_suffix= ac_top_builddir=
41799 .) # No --srcdir option. We are building in place.
41801 if test -z "$ac_top_builddir"; then
41804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41806 [\\/]* | ?:[\\/]* ) # Absolute path.
41807 ac_srcdir=$srcdir$ac_dir_suffix;
41808 ac_top_srcdir=$srcdir ;;
41809 *) # Relative path.
41810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41814 # Do not use `cd foo && pwd` to compute absolute paths, because
41815 # the directories may not exist.
41817 .) ac_abs_builddir="$ac_dir";;
41820 .) ac_abs_builddir=`pwd`;;
41821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41822 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41825 case $ac_abs_builddir in
41826 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41828 case ${ac_top_builddir}. in
41829 .) ac_abs_top_builddir=$ac_abs_builddir;;
41830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41834 case $ac_abs_builddir in
41835 .) ac_abs_srcdir=$ac_srcdir;;
41838 .) ac_abs_srcdir=$ac_abs_builddir;;
41839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41843 case $ac_abs_builddir in
41844 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41846 case $ac_top_srcdir in
41847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41856 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41859 if test x"$ac_file" != x-; then
41860 { echo "$as_me:$LINENO: creating $ac_file" >&5
41861 echo "$as_me: creating $ac_file" >&6;}
41864 # Let's still pretend it is `configure' which instantiates (i.e., don't
41865 # use $as_me), people would be surprised to read:
41866 # /* config.h. Generated by config.status. */
41867 if test x"$ac_file" = x-; then
41870 configure_input="$ac_file. "
41872 configure_input=$configure_input"Generated from `echo $ac_file_in |
41873 sed 's,.*/,,'` by configure."
41875 # First look for the input files in the build tree, otherwise in the
41877 ac_file_inputs=`IFS=:
41878 for f in $ac_file_in; do
41880 -) echo $tmp/stdin ;;
41882 # Absolute (can't be DOS-style, as IFS=:)
41883 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41884 echo "$as_me: error: cannot find input file: $f" >&2;}
41885 { (exit 1); exit 1; }; }
41888 if test -f "$f"; then
41891 elif test -f "$srcdir/$f"; then
41896 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41897 echo "$as_me: error: cannot find input file: $f" >&2;}
41898 { (exit 1); exit 1; }; }
41901 done` || { (exit 1); exit 1; }
41903 cat >>$CONFIG_STATUS <<_ACEOF
41907 cat >>$CONFIG_STATUS <<\_ACEOF
41909 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41910 s,@configure_input@,$configure_input,;t t
41911 s,@srcdir@,$ac_srcdir,;t t
41912 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41913 s,@top_srcdir@,$ac_top_srcdir,;t t
41914 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41915 s,@builddir@,$ac_builddir,;t t
41916 s,@abs_builddir@,$ac_abs_builddir,;t t
41917 s,@top_builddir@,$ac_top_builddir,;t t
41918 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41919 s,@INSTALL@,$ac_INSTALL,;t t
41920 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41922 if test x"$ac_file" != x-; then
41923 mv $tmp/out $ac_file
41931 cat >>$CONFIG_STATUS <<\_ACEOF
41934 # CONFIG_HEADER section.
41937 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41938 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41940 # ac_d sets the value in "#define NAME VALUE" lines.
41941 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41942 ac_dB='[ ].*$,\1#\2'
41945 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41946 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
41947 ac_uB='$,\1#\2define\3'
41951 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41952 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41954 - | *:- | *:-:* ) # input from stdin
41956 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41957 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41958 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41960 * ) ac_file_in=$ac_file.in ;;
41963 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41964 echo "$as_me: creating $ac_file" >&6;}
41966 # First look for the input files in the build tree, otherwise in the
41968 ac_file_inputs=`IFS=:
41969 for f in $ac_file_in; do
41971 -) echo $tmp/stdin ;;
41973 # Absolute (can't be DOS-style, as IFS=:)
41974 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41975 echo "$as_me: error: cannot find input file: $f" >&2;}
41976 { (exit 1); exit 1; }; }
41977 # Do quote $f, to prevent DOS paths from being IFS'd.
41980 if test -f "$f"; then
41983 elif test -f "$srcdir/$f"; then
41988 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41989 echo "$as_me: error: cannot find input file: $f" >&2;}
41990 { (exit 1); exit 1; }; }
41993 done` || { (exit 1); exit 1; }
41994 # Remove the trailing spaces.
41995 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
41999 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42000 # `conftest.undefs', that substitutes the proper values into
42001 # config.h.in to produce config.h. The first handles `#define'
42002 # templates, and the second `#undef' templates.
42003 # And first: Protect against being on the right side of a sed subst in
42004 # config.status. Protect against being in an unquoted here document
42005 # in config.status.
42006 rm -f conftest.defines conftest.undefs
42007 # Using a here document instead of a string reduces the quoting nightmare.
42008 # Putting comments in sed scripts is not portable.
42010 # `end' is used to avoid that the second main sed command (meant for
42011 # 0-ary CPP macros) applies to n-ary macro definitions.
42012 # See the Autoconf documentation for `clear'.
42013 cat >confdef2sed.sed <<\_ACEOF
42018 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42020 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42023 # If some macros were called several times there might be several times
42024 # the same #defines, which is useless. Nevertheless, we may not want to
42025 # sort them, since we want the *last* AC-DEFINE to be honored.
42026 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42027 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42028 rm -f confdef2sed.sed
42030 # This sed command replaces #undef with comments. This is necessary, for
42031 # example, in the case of _POSIX_SOURCE, which is predefined and required
42032 # on some systems where configure will not decide to define it.
42033 cat >>conftest.undefs <<\_ACEOF
42034 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42037 # Break up conftest.defines because some shells have a limit on the size
42038 # of here documents, and old seds have small limits too (100 cmds).
42039 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42040 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42041 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42042 echo ' :' >>$CONFIG_STATUS
42043 rm -f conftest.tail
42044 while grep . conftest.defines >/dev/null
42046 # Write a limited-size here document to $tmp/defines.sed.
42047 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42048 # Speed up: don't consider the non `#define' lines.
42049 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42050 # Work around the forget-to-reset-the-flag bug.
42051 echo 't clr' >>$CONFIG_STATUS
42052 echo ': clr' >>$CONFIG_STATUS
42053 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42055 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42057 mv $tmp/out $tmp/in
42059 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42060 rm -f conftest.defines
42061 mv conftest.tail conftest.defines
42063 rm -f conftest.defines
42064 echo ' fi # grep' >>$CONFIG_STATUS
42065 echo >>$CONFIG_STATUS
42067 # Break up conftest.undefs because some shells have a limit on the size
42068 # of here documents, and old seds have small limits too (100 cmds).
42069 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42070 rm -f conftest.tail
42071 while grep . conftest.undefs >/dev/null
42073 # Write a limited-size here document to $tmp/undefs.sed.
42074 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42075 # Speed up: don't consider the non `#undef'
42076 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42077 # Work around the forget-to-reset-the-flag bug.
42078 echo 't clr' >>$CONFIG_STATUS
42079 echo ': clr' >>$CONFIG_STATUS
42080 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42082 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42084 mv $tmp/out $tmp/in
42086 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42087 rm -f conftest.undefs
42088 mv conftest.tail conftest.undefs
42090 rm -f conftest.undefs
42092 cat >>$CONFIG_STATUS <<\_ACEOF
42093 # Let's still pretend it is `configure' which instantiates (i.e., don't
42094 # use $as_me), people would be surprised to read:
42095 # /* config.h. Generated by config.status. */
42096 if test x"$ac_file" = x-; then
42097 echo "/* Generated by configure. */" >$tmp/config.h
42099 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42101 cat $tmp/in >>$tmp/config.h
42103 if test x"$ac_file" != x-; then
42104 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42105 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42106 echo "$as_me: $ac_file is unchanged" >&6;}
42108 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42110 X"$ac_file" : 'X\(//\)[^/]' \| \
42111 X"$ac_file" : 'X\(//\)$' \| \
42112 X"$ac_file" : 'X\(/\)' \| \
42113 . : '\(.\)' 2>/dev/null ||
42115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42117 /^X\(\/\/\)$/{ s//\1/; q; }
42118 /^X\(\/\).*/{ s//\1/; q; }
42120 { if $as_mkdir_p; then
42125 while test ! -d "$as_dir"; do
42126 as_dirs="$as_dir $as_dirs"
42127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42129 X"$as_dir" : 'X\(//\)[^/]' \| \
42130 X"$as_dir" : 'X\(//\)$' \| \
42131 X"$as_dir" : 'X\(/\)' \| \
42132 . : '\(.\)' 2>/dev/null ||
42134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42136 /^X\(\/\/\)$/{ s//\1/; q; }
42137 /^X\(\/\).*/{ s//\1/; q; }
42140 test ! -n "$as_dirs" || mkdir $as_dirs
42141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42143 { (exit 1); exit 1; }; }; }
42146 mv $tmp/config.h $ac_file
42150 rm -f $tmp/config.h
42152 # Compute $ac_file's index in $config_headers.
42154 for _am_header in $config_headers :; do
42155 case $_am_header in
42156 $ac_file | $ac_file:* )
42159 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42162 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42163 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42164 X$ac_file : 'X\(//\)[^/]' \| \
42165 X$ac_file : 'X\(//\)$' \| \
42166 X$ac_file : 'X\(/\)' \| \
42167 . : '\(.\)' 2>/dev/null ||
42169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42171 /^X\(\/\/\)$/{ s//\1/; q; }
42172 /^X\(\/\).*/{ s//\1/; q; }
42173 s/.*/./; q'`/stamp-h$_am_stamp_count
42176 cat >>$CONFIG_STATUS <<\_ACEOF
42179 # CONFIG_COMMANDS section.
42181 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42182 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42183 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42184 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42185 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42186 X"$ac_dest" : 'X\(//\)[^/]' \| \
42187 X"$ac_dest" : 'X\(//\)$' \| \
42188 X"$ac_dest" : 'X\(/\)' \| \
42189 . : '\(.\)' 2>/dev/null ||
42191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42193 /^X\(\/\/\)$/{ s//\1/; q; }
42194 /^X\(\/\).*/{ s//\1/; q; }
42196 { if $as_mkdir_p; then
42201 while test ! -d "$as_dir"; do
42202 as_dirs="$as_dir $as_dirs"
42203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42205 X"$as_dir" : 'X\(//\)[^/]' \| \
42206 X"$as_dir" : 'X\(//\)$' \| \
42207 X"$as_dir" : 'X\(/\)' \| \
42208 . : '\(.\)' 2>/dev/null ||
42210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42212 /^X\(\/\/\)$/{ s//\1/; q; }
42213 /^X\(\/\).*/{ s//\1/; q; }
42216 test ! -n "$as_dirs" || mkdir $as_dirs
42217 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42219 { (exit 1); exit 1; }; }; }
42223 if test "$ac_dir" != .; then
42224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42225 # A "../" for each directory in $ac_dir_suffix.
42226 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42228 ac_dir_suffix= ac_top_builddir=
42232 .) # No --srcdir option. We are building in place.
42234 if test -z "$ac_top_builddir"; then
42237 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42239 [\\/]* | ?:[\\/]* ) # Absolute path.
42240 ac_srcdir=$srcdir$ac_dir_suffix;
42241 ac_top_srcdir=$srcdir ;;
42242 *) # Relative path.
42243 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42244 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42247 # Do not use `cd foo && pwd` to compute absolute paths, because
42248 # the directories may not exist.
42250 .) ac_abs_builddir="$ac_dir";;
42253 .) ac_abs_builddir=`pwd`;;
42254 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42255 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42258 case $ac_abs_builddir in
42259 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42261 case ${ac_top_builddir}. in
42262 .) ac_abs_top_builddir=$ac_abs_builddir;;
42263 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42264 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42267 case $ac_abs_builddir in
42268 .) ac_abs_srcdir=$ac_srcdir;;
42271 .) ac_abs_srcdir=$ac_abs_builddir;;
42272 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42273 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42276 case $ac_abs_builddir in
42277 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42279 case $ac_top_srcdir in
42280 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42281 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42282 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42287 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42288 echo "$as_me: executing $ac_dest commands" >&6;}
42290 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42291 # Strip MF so we end up with the name of the file.
42292 mf=`echo "$mf" | sed -e 's/:.*$//'`
42293 # Check whether this is an Automake generated Makefile or not.
42294 # We used to match only the files named `Makefile.in', but
42295 # some people rename them; so instead we look at the file content.
42296 # Grep'ing the first line is not enough: some people post-process
42297 # each Makefile.in and add a new line on top of each file to say so.
42298 # So let's grep whole file.
42299 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42300 dirpart=`(dirname "$mf") 2>/dev/null ||
42301 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42302 X"$mf" : 'X\(//\)[^/]' \| \
42303 X"$mf" : 'X\(//\)$' \| \
42304 X"$mf" : 'X\(/\)' \| \
42305 . : '\(.\)' 2>/dev/null ||
42307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42309 /^X\(\/\/\)$/{ s//\1/; q; }
42310 /^X\(\/\).*/{ s//\1/; q; }
42315 # Extract the definition of DEPDIR, am__include, and am__quote
42316 # from the Makefile without running `make'.
42317 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42318 test -z "$DEPDIR" && continue
42319 am__include=`sed -n 's/^am__include = //p' < "$mf"`
42320 test -z "am__include" && continue
42321 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42322 # When using ansi2knr, U may be empty or an underscore; expand it
42323 U=`sed -n 's/^U = //p' < "$mf"`
42324 # Find all dependency output files, they are included files with
42325 # $(DEPDIR) in their names. We invoke sed twice because it is the
42326 # simplest approach to changing $(DEPDIR) to its actual value in the
42328 for file in `sed -n "
42329 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42330 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42331 # Make sure the directory exists.
42332 test -f "$dirpart/$file" && continue
42333 fdir=`(dirname "$file") 2>/dev/null ||
42334 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42335 X"$file" : 'X\(//\)[^/]' \| \
42336 X"$file" : 'X\(//\)$' \| \
42337 X"$file" : 'X\(/\)' \| \
42338 . : '\(.\)' 2>/dev/null ||
42340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42342 /^X\(\/\/\)$/{ s//\1/; q; }
42343 /^X\(\/\).*/{ s//\1/; q; }
42345 { if $as_mkdir_p; then
42346 mkdir -p $dirpart/$fdir
42348 as_dir=$dirpart/$fdir
42350 while test ! -d "$as_dir"; do
42351 as_dirs="$as_dir $as_dirs"
42352 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42354 X"$as_dir" : 'X\(//\)[^/]' \| \
42355 X"$as_dir" : 'X\(//\)$' \| \
42356 X"$as_dir" : 'X\(/\)' \| \
42357 . : '\(.\)' 2>/dev/null ||
42359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42361 /^X\(\/\/\)$/{ s//\1/; q; }
42362 /^X\(\/\).*/{ s//\1/; q; }
42365 test ! -n "$as_dirs" || mkdir $as_dirs
42366 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42367 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42368 { (exit 1); exit 1; }; }; }
42370 # echo "creating $dirpart/$file"
42371 echo '# dummy' > "$dirpart/$file"
42378 BACKENDSC="servers/slapd/backends.c"
42379 echo "Making $BACKENDSC"
42381 cat > $BACKENDSC << ENDX
42382 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42384 * Copyright 1998-2006 The OpenLDAP Foundation.
42385 * All rights reserved.
42387 * Redistribution and use in source and binary forms, with or without
42388 * modification, are permitted only as authorized by the OpenLDAP
42391 * A copy of this license is available in the file LICENSE in the
42392 * top-level directory of the distribution or, alternatively, at
42393 * <http://www.OpenLDAP.org/license.html>.
42395 /* This file is automatically generated by configure; please do not edit. */
42397 #include "portable.h"
42401 if test "${STATIC_BACKENDS}"; then
42402 for b in config ${STATIC_BACKENDS}; do
42403 bb=`echo "${b}" | sed -e 's/back-//'`
42404 cat >> $BACKENDSC << ENDX
42405 extern BI_init ${bb}_back_initialize;
42409 cat >> $BACKENDSC << ENDX
42411 BackendInfo slap_binfo[] = {
42414 for b in config ${STATIC_BACKENDS}; do
42415 bb=`echo "${b}" | sed -e 's/back-//'`
42416 echo " Add ${bb} ..."
42417 cat >> $BACKENDSC << ENDX
42418 { "${bb}", ${bb}_back_initialize },
42422 cat >> $BACKENDSC << ENDX
42426 /* end of generated file */
42429 OVERLAYSC="servers/slapd/overlays/statover.c"
42430 echo "Making $OVERLAYSC"
42432 cat > $OVERLAYSC << ENDX
42433 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42435 * Copyright 1998-2006 The OpenLDAP Foundation.
42436 * All rights reserved.
42438 * Redistribution and use in source and binary forms, with or without
42439 * modification, are permitted only as authorized by the OpenLDAP
42442 * A copy of this license is available in the file LICENSE in the
42443 * top-level directory of the distribution or, alternatively, at
42444 * <http://www.OpenLDAP.org/license.html>.
42446 /* This file is automatically generated by configure; please do not edit. */
42448 #include "portable.h"
42452 if test "${STATIC_OVERLAYS}"; then
42453 for o in ${STATIC_OVERLAYS}; do
42454 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42455 cat >> $OVERLAYSC << ENDX
42456 extern OV_init ${oo}_initialize;
42461 cat >> $OVERLAYSC << ENDX
42463 OverlayInit slap_oinfo[] = {
42466 if test "${STATIC_OVERLAYS}"; then
42467 for o in ${STATIC_OVERLAYS}; do
42468 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42469 echo " Add ${oo} ..."
42470 cat >> $OVERLAYSC << ENDX
42471 { "${oo}", ${oo}_initialize },
42476 cat >> $OVERLAYSC << ENDX
42480 /* end of generated file */
42483 echo Please run \"make depend\" to build dependencies
42489 cat >>$CONFIG_STATUS <<\_ACEOF
42491 { (exit 0); exit 0; }
42493 chmod +x $CONFIG_STATUS
42494 ac_clean_files=$ac_clean_files_save
42497 # configure is writing to config.log, and then calls config.status.
42498 # config.status does its own redirection, appending to config.log.
42499 # Unfortunately, on DOS this fails, as config.log is still kept open
42500 # by configure, so config.status won't be able to write to it; its
42501 # output is simply discarded. So we exec the FD to /dev/null,
42502 # effectively closing config.log, so it can be properly (re)opened and
42503 # appended to by config.status. When coming back to configure, we
42504 # need to make the FD available again.
42505 if test "$no_create" != yes; then
42507 ac_config_status_args=
42508 test "$silent" = yes &&
42509 ac_config_status_args="$ac_config_status_args --quiet"
42511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42514 # would make configure fail if this is the last instruction.
42515 $ac_cs_success || { (exit 1); exit 1; }