2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.15 2008/11/08 00:14:44 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2008 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 MYSQL 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_NDB BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SOCK BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_COLLECT BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_MEMBEROF BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS SLAPD_NDB_LIBS SLAPD_NDB_INCS 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 GSSAPI_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-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1040 --enable-null enable null backend no|yes|mod [no]
1041 --enable-passwd enable passwd backend no|yes|mod [no]
1042 --enable-perl enable perl backend no|yes|mod [no]
1043 --enable-relay enable relay backend no|yes|mod [yes]
1044 --enable-shell enable shell backend no|yes|mod [no]
1045 --enable-sock enable sock backend no|yes|mod [no]
1046 --enable-sql enable sql backend no|yes|mod [no]
1048 SLAPD Overlay Options:
1049 --enable-overlays enable all available overlays no|yes|mod
1050 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1051 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1052 --enable-collect Collect overlay no|yes|mod [no]
1053 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1054 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1055 --enable-deref Dereference overlay no|yes|mod [no]
1056 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1057 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1058 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1059 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1060 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1061 --enable-refint Referential Integrity overlay no|yes|mod [no]
1062 --enable-retcode Return Code testing overlay no|yes|mod [no]
1063 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1064 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1065 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1066 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1067 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1068 --enable-valsort Value Sorting overlay no|yes|mod [no]
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-gssapi with GSSAPI support [auto]
1088 --with-threads with threads [auto]
1089 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1090 --with-yielding-select with implicitly yielding select [auto]
1091 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1092 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1093 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1094 --with-pic try to use only PIC/non-PIC objects [default=use
1097 include additional configurations [automatic]
1099 See INSTALL file for further details.
1101 Some influential environment variables:
1102 CC C compiler command
1103 CFLAGS C compiler flags
1104 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1105 nonstandard directory <lib dir>
1106 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107 headers in a nonstandard directory <include dir>
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1116 if test "$ac_init_help" = "recursive"; then
1117 # If there are subdirs, report their specific --help.
1119 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120 test -d $ac_dir || continue
1123 if test "$ac_dir" != .; then
1124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125 # A "../" for each directory in $ac_dir_suffix.
1126 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 ac_dir_suffix= ac_top_builddir=
1132 .) # No --srcdir option. We are building in place.
1134 if test -z "$ac_top_builddir"; then
1137 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139 [\\/]* | ?:[\\/]* ) # Absolute path.
1140 ac_srcdir=$srcdir$ac_dir_suffix;
1141 ac_top_srcdir=$srcdir ;;
1143 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1150 .) ac_abs_builddir="$ac_dir";;
1153 .) ac_abs_builddir=`pwd`;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 case ${ac_top_builddir}. in
1162 .) ac_abs_top_builddir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1171 .) ac_abs_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 case $ac_top_srcdir in
1180 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1187 # Check for guested configure; otherwise get Cygnus style configure.
1188 if test -f $ac_srcdir/configure.gnu; then
1190 $SHELL $ac_srcdir/configure.gnu --help=recursive
1191 elif test -f $ac_srcdir/configure; then
1193 $SHELL $ac_srcdir/configure --help=recursive
1194 elif test -f $ac_srcdir/configure.ac ||
1195 test -f $ac_srcdir/configure.in; then
1197 $ac_configure --help
1199 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1213 Copyright 1998-2008 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59. Invocation command line was
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258 test -z "$as_dir" && as_dir=.
1259 echo "PATH: $as_dir"
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1283 ac_must_keep_next=false
1289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1297 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300 if test $ac_must_keep_next = true; then
1301 ac_must_keep_next=false # Got value, back to normal.
1304 *=* | --config-cache | -C | -disable-* | --disable-* \
1305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307 | -with-* | --with-* | -without-* | --without-* | --x)
1308 case "$ac_configure_args0 " in
1309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1312 -* ) ac_must_keep_next=true ;;
1315 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316 # Get rid of the leading space.
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log. We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331 # Save into config.log some information that might help in debugging.
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1341 # The following way of writing the cache mishandles newlines in values,
1344 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1347 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1364 for ac_var in $ac_subst_vars
1366 eval ac_val=$`echo $ac_var`
1367 echo "$ac_var='"'"'$ac_val'"'"'"
1371 if test -n "$ac_subst_files"; then
1378 for ac_var in $ac_subst_files
1380 eval ac_val=$`echo $ac_var`
1381 echo "$ac_var='"'"'$ac_val'"'"'"
1386 if test -s confdefs.h; then
1393 sed "/^$/d" confdefs.h | sort
1396 test "$ac_signal" != 0 &&
1397 echo "$as_me: caught signal $ac_signal"
1398 echo "$as_me: exit $exit_status"
1400 rm -f core *.core &&
1401 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1404 for ac_signal in 1 2 13 15; do
1405 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1414 # Predefined preprocessor variables.
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444 if test "x$prefix" != xNONE; then
1445 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1450 for ac_site_file in $CONFIG_SITE; do
1451 if test -r "$ac_site_file"; then
1452 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454 sed 's/^/| /' "$ac_site_file" >&5
1460 # Check that the precious variables saved in the cache have kept the same
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1484 echo "$as_me: former value: $ac_old_val" >&2;}
1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1486 echo "$as_me: current value: $ac_new_val" >&2;}
1487 ac_cache_corrupted=:
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1560 for ac_dir in build $srcdir/build; do
1561 if test -f $ac_dir/install-sh; then
1563 ac_install_sh="$ac_aux_dir/install-sh -c"
1565 elif test -f $ac_dir/install.sh; then
1567 ac_install_sh="$ac_aux_dir/install.sh -c"
1569 elif test -f $ac_dir/shtool; then
1571 ac_install_sh="$ac_aux_dir/shtool install -c"
1575 if test -z "$ac_aux_dir"; then
1576 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1578 { (exit 1); exit 1; }; }
1580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1584 eval `$ac_aux_dir/version.sh`
1585 if test -z "$OL_STRING"; then
1586 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1587 echo "$as_me: error: could not determine version" >&2;}
1588 { (exit 1); exit 1; }; }
1591 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1592 ac_cv_shtool="$ac_aux_dir/shtool"
1594 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1595 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1596 { (exit 1); exit 1; }; }
1599 SHTOOL="$ac_cv_shtool"
1603 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1604 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1608 if test -d $ac_aux_dir/CVS; then
1609 OPENLDAP_CVS="(from CVS sources) "
1612 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1614 # Make sure we can run config.sub.
1615 $ac_config_sub sun4 >/dev/null 2>&1 ||
1616 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1617 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1618 { (exit 1); exit 1; }; }
1620 echo "$as_me:$LINENO: checking build system type" >&5
1621 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1622 if test "${ac_cv_build+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 ac_cv_build_alias=$build_alias
1626 test -z "$ac_cv_build_alias" &&
1627 ac_cv_build_alias=`$ac_config_guess`
1628 test -z "$ac_cv_build_alias" &&
1629 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1630 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1631 { (exit 1); exit 1; }; }
1632 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1633 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1634 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1635 { (exit 1); exit 1; }; }
1638 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1639 echo "${ECHO_T}$ac_cv_build" >&6
1641 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1642 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1643 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646 echo "$as_me:$LINENO: checking host system type" >&5
1647 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1648 if test "${ac_cv_host+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 ac_cv_host_alias=$host_alias
1652 test -z "$ac_cv_host_alias" &&
1653 ac_cv_host_alias=$ac_cv_build_alias
1654 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1655 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1656 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1657 { (exit 1); exit 1; }; }
1660 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1661 echo "${ECHO_T}$ac_cv_host" >&6
1663 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1664 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1665 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1668 echo "$as_me:$LINENO: checking target system type" >&5
1669 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1670 if test "${ac_cv_target+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 ac_cv_target_alias=$target_alias
1674 test "x$ac_cv_target_alias" = "x" &&
1675 ac_cv_target_alias=$ac_cv_host_alias
1676 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1677 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1678 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1679 { (exit 1); exit 1; }; }
1682 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1683 echo "${ECHO_T}$ac_cv_target" >&6
1684 target=$ac_cv_target
1685 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1686 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1687 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690 # The aliases save the names the user supplied, while $host etc.
1691 # will get canonicalized.
1692 test -n "$target_alias" &&
1693 test "$program_prefix$program_suffix$program_transform_name" = \
1695 program_prefix=${target_alias}-
1697 am__api_version="1.9"
1698 # Find a good install program. We prefer a C program (faster),
1699 # so one script is as good as another. But avoid the broken or
1700 # incompatible versions:
1701 # SysV /etc/install, /usr/sbin/install
1702 # SunOS /usr/etc/install
1703 # IRIX /sbin/install
1705 # AmigaOS /C/install, which installs bootblocks on floppy discs
1706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1709 # OS/2's system install, which has a completely different semantic
1710 # ./install, which can be erroneously created by make from ./install.sh.
1711 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1712 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1713 if test -z "$INSTALL"; then
1714 if test "${ac_cv_path_install+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir=.
1722 # Account for people who put trailing slashes in PATH elements.
1724 ./ | .// | /cC/* | \
1725 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1726 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1729 # OSF1 and SCO ODT 3.0 have their own names for install.
1730 # Don't use installbsd from OSF since it installs stuff as root
1732 for ac_prog in ginstall scoinst install; do
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1735 if test $ac_prog = install &&
1736 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737 # AIX install. It has an incompatible calling convention.
1739 elif test $ac_prog = install &&
1740 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1741 # program-specific install script used by HP pwplus--don't use.
1744 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1756 if test "${ac_cv_path_install+set}" = set; then
1757 INSTALL=$ac_cv_path_install
1759 # As a last resort, use the slow shell script. We don't cache a
1760 # path for INSTALL within a source directory, because that will
1761 # break other packages using the cache if that directory is
1762 # removed, or if the path is relative.
1763 INSTALL=$ac_install_sh
1766 echo "$as_me:$LINENO: result: $INSTALL" >&5
1767 echo "${ECHO_T}$INSTALL" >&6
1769 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1770 # It thinks the first close brace ends the variable substitution.
1771 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1773 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1775 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1777 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1778 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1781 echo timestamp > conftest.file
1782 # Do `set' in a subshell so we don't clobber the current shell's
1783 # arguments. Must try -L first in case configure is actually a
1784 # symlink; some systems play weird games with the mod time of symlinks
1785 # (eg FreeBSD returns the mod time of the symlink's containing
1788 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1789 if test "$*" = "X"; then
1791 set X `ls -t $srcdir/configure conftest.file`
1794 if test "$*" != "X $srcdir/configure conftest.file" \
1795 && test "$*" != "X conftest.file $srcdir/configure"; then
1797 # If neither matched, then we have a broken ls. This can happen
1798 # if, for instance, CONFIG_SHELL is bash and it inherits a
1799 # broken ls alias from the environment. This has actually
1800 # happened. Such a system could not be considered "sane".
1801 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1802 alias in your environment" >&5
1803 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1804 alias in your environment" >&2;}
1805 { (exit 1); exit 1; }; }
1808 test "$2" = conftest.file
1814 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1815 Check your system clock" >&5
1816 echo "$as_me: error: newly created file is older than distributed files!
1817 Check your system clock" >&2;}
1818 { (exit 1); exit 1; }; }
1820 echo "$as_me:$LINENO: result: yes" >&5
1821 echo "${ECHO_T}yes" >&6
1822 test "$program_prefix" != NONE &&
1823 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1824 # Use a double $ so make ignores it.
1825 test "$program_suffix" != NONE &&
1826 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1827 # Double any \ or $. echo might interpret backslashes.
1828 # By default was `s,x,x', remove it if useless.
1829 cat <<\_ACEOF >conftest.sed
1830 s/[\\$]/&&/g;s/;s,x,x,$//
1832 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1835 # expand $ac_aux_dir to an absolute path
1836 am_aux_dir=`cd $ac_aux_dir && pwd`
1838 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1839 # Use eval to expand $SHELL
1840 if eval "$MISSING --run true"; then
1841 am_missing_run="$MISSING --run "
1844 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1845 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1848 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1849 # We used to keeping the `.' as first argument, in order to
1850 # allow $(mkdir_p) to be used without argument. As in
1851 # $(mkdir_p) $(somedir)
1852 # where $(somedir) is conditionally defined. However this is wrong
1854 # 1. if the package is installed by a user who cannot write `.'
1855 # make install will fail,
1856 # 2. the above comment should most certainly read
1857 # $(mkdir_p) $(DESTDIR)$(somedir)
1858 # so it does not work when $(somedir) is undefined and
1859 # $(DESTDIR) is not.
1860 # To support the latter case, we have to write
1861 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1862 # so the `.' trick is pointless.
1863 mkdir_p='mkdir -p --'
1865 # On NextStep and OpenStep, the `mkdir' command does not
1866 # recognize any option. It will interpret all options as
1867 # directories to create, and then abort because `.' already
1869 for d in ./-p ./--version;
1871 test -d $d && rmdir $d
1873 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1874 if test -f "$ac_aux_dir/mkinstalldirs"; then
1875 mkdir_p='$(mkinstalldirs)'
1877 mkdir_p='$(install_sh) -d'
1881 for ac_prog in gawk mawk nawk awk
1883 # Extract the first word of "$ac_prog", so it can be a program name with args.
1884 set dummy $ac_prog; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_AWK+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$AWK"; then
1891 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_AWK="$ac_prog"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 if test -n "$AWK"; then
1911 echo "$as_me:$LINENO: result: $AWK" >&5
1912 echo "${ECHO_T}$AWK" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1918 test -n "$AWK" && break
1921 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1922 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1923 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1924 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 cat >conftest.make <<\_ACEOF
1929 @echo 'ac_maketemp="$(MAKE)"'
1931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1932 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1933 if test -n "$ac_maketemp"; then
1934 eval ac_cv_prog_make_${ac_make}_set=yes
1936 eval ac_cv_prog_make_${ac_make}_set=no
1940 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1941 echo "$as_me:$LINENO: result: yes" >&5
1942 echo "${ECHO_T}yes" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1947 SET_MAKE="MAKE=${MAKE-make}"
1950 rm -rf .tst 2>/dev/null
1951 mkdir .tst 2>/dev/null
1952 if test -d .tst; then
1957 rmdir .tst 2>/dev/null
1959 # test to see if srcdir already configured
1960 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1961 test -f $srcdir/config.status; then
1962 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1963 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1964 { (exit 1); exit 1; }; }
1967 # test whether we have cygpath
1968 if test -z "$CYGPATH_W"; then
1969 if (cygpath --version) >/dev/null 2>/dev/null; then
1970 CYGPATH_W='cygpath -w'
1977 # Define the identity of the package.
1982 # Some tools Automake needs.
1984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1998 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2000 # Installed binaries are usually stripped using `strip' when the user
2001 # run `make install-strip'. However `strip' might not be the right
2002 # tool to use in cross-compilation environments, therefore Automake
2003 # will honor the `STRIP' environment variable to overrule this program.
2004 if test "$cross_compiling" != no; then
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}strip; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_STRIP+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$STRIP"; then
2014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 STRIP=$ac_cv_prog_STRIP
2033 if test -n "$STRIP"; then
2034 echo "$as_me:$LINENO: result: $STRIP" >&5
2035 echo "${ECHO_T}$STRIP" >&6
2037 echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2042 if test -z "$ac_cv_prog_STRIP"; then
2044 # Extract the first word of "strip", so it can be a program name with args.
2045 set dummy strip; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test -n "$ac_ct_STRIP"; then
2052 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061 ac_cv_prog_ac_ct_STRIP="strip"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2071 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2072 if test -n "$ac_ct_STRIP"; then
2073 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2074 echo "${ECHO_T}$ac_ct_STRIP" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2082 STRIP="$ac_cv_prog_STRIP"
2086 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2088 # We need awk for the "check" target. The system "awk" is bad on
2090 # Always define AMTAR for backward compatibility.
2092 AMTAR=${AMTAR-"${am_missing_run}tar"}
2094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_PACKAGE "$PACKAGE"
2105 cat >>confdefs.h <<_ACEOF
2106 #define OPENLDAP_VERSION "$VERSION"
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION $OL_API_INC
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2126 cat >>confdefs.h <<_ACEOF
2127 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2131 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2133 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2135 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2143 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2145 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2147 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2150 echo "$as_me:$LINENO: checking configure arguments" >&5
2151 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2156 ldap_subdir="/openldap"
2159 # Check whether --with-subdir or --without-subdir was given.
2160 if test "${with_subdir+set}" = set; then
2161 withval="$with_subdir"
2168 ldap_subdir="$withval"
2171 ldap_subdir="/$withval"
2177 # OpenLDAP --enable-debug
2179 # Check whether --enable-debug or --disable-debug was given.
2180 if test "${enable_debug+set}" = set; then
2181 enableval="$enable_debug"
2184 for ol_val in no yes traditional ; do
2185 if test "$enableval" = "$ol_val" ; then
2189 if test "$ol_arg" = "invalid" ; then
2190 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2191 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2192 { (exit 1); exit 1; }; }
2194 ol_enable_debug="$ol_arg"
2199 # end --enable-debug
2200 # OpenLDAP --enable-dynamic
2202 # Check whether --enable-dynamic or --disable-dynamic was given.
2203 if test "${enable_dynamic+set}" = set; then
2204 enableval="$enable_dynamic"
2207 for ol_val in auto yes no ; do
2208 if test "$enableval" = "$ol_val" ; then
2212 if test "$ol_arg" = "invalid" ; then
2213 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2214 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2215 { (exit 1); exit 1; }; }
2217 ol_enable_dynamic="$ol_arg"
2220 ol_enable_dynamic=no
2222 # end --enable-dynamic
2223 # OpenLDAP --enable-syslog
2225 # Check whether --enable-syslog or --disable-syslog was given.
2226 if test "${enable_syslog+set}" = set; then
2227 enableval="$enable_syslog"
2230 for ol_val in auto yes no ; do
2231 if test "$enableval" = "$ol_val" ; then
2235 if test "$ol_arg" = "invalid" ; then
2236 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2237 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2238 { (exit 1); exit 1; }; }
2240 ol_enable_syslog="$ol_arg"
2243 ol_enable_syslog=auto
2245 # end --enable-syslog
2246 # OpenLDAP --enable-proctitle
2248 # Check whether --enable-proctitle or --disable-proctitle was given.
2249 if test "${enable_proctitle+set}" = set; then
2250 enableval="$enable_proctitle"
2253 for ol_val in auto yes no ; do
2254 if test "$enableval" = "$ol_val" ; then
2258 if test "$ol_arg" = "invalid" ; then
2259 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2260 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2261 { (exit 1); exit 1; }; }
2263 ol_enable_proctitle="$ol_arg"
2266 ol_enable_proctitle=yes
2268 # end --enable-proctitle
2269 ol_enable_referrals=${ol_enable_referrals-no}
2270 # OpenLDAP --enable-ipv6
2272 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2273 if test "${enable_ipv6+set}" = set; then
2274 enableval="$enable_ipv6"
2277 for ol_val in auto yes no ; do
2278 if test "$enableval" = "$ol_val" ; then
2282 if test "$ol_arg" = "invalid" ; then
2283 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2284 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2285 { (exit 1); exit 1; }; }
2287 ol_enable_ipv6="$ol_arg"
2293 # OpenLDAP --enable-local
2295 # Check whether --enable-local or --disable-local was given.
2296 if test "${enable_local+set}" = set; then
2297 enableval="$enable_local"
2300 for ol_val in auto yes no ; do
2301 if test "$enableval" = "$ol_val" ; then
2305 if test "$ol_arg" = "invalid" ; then
2306 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2307 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2308 { (exit 1); exit 1; }; }
2310 ol_enable_local="$ol_arg"
2313 ol_enable_local=auto
2315 # end --enable-local
2317 # OpenLDAP --with-cyrus_sasl
2319 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2320 if test "${with_cyrus_sasl+set}" = set; then
2321 withval="$with_cyrus_sasl"
2324 for ol_val in auto yes no ; do
2325 if test "$withval" = "$ol_val" ; then
2329 if test "$ol_arg" = "invalid" ; then
2330 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2331 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2332 { (exit 1); exit 1; }; }
2334 ol_with_cyrus_sasl="$ol_arg"
2337 ol_with_cyrus_sasl="auto"
2338 fi; # end --with-cyrus_sasl
2340 # OpenLDAP --with-fetch
2342 # Check whether --with-fetch or --without-fetch was given.
2343 if test "${with_fetch+set}" = set; then
2344 withval="$with_fetch"
2347 for ol_val in auto yes no ; do
2348 if test "$withval" = "$ol_val" ; then
2352 if test "$ol_arg" = "invalid" ; then
2353 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2354 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2355 { (exit 1); exit 1; }; }
2357 ol_with_fetch="$ol_arg"
2360 ol_with_fetch="auto"
2361 fi; # end --with-fetch
2363 # OpenLDAP --with-gssapi
2365 # Check whether --with-gssapi or --without-gssapi was given.
2366 if test "${with_gssapi+set}" = set; then
2367 withval="$with_gssapi"
2370 for ol_val in auto yes no ; do
2371 if test "$withval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2377 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2378 { (exit 1); exit 1; }; }
2380 ol_with_gssapi="$ol_arg"
2383 ol_with_gssapi="auto"
2384 fi; # end --with-gssapi
2386 # OpenLDAP --with-threads
2388 # Check whether --with-threads or --without-threads was given.
2389 if test "${with_threads+set}" = set; then
2390 withval="$with_threads"
2393 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2394 if test "$withval" = "$ol_val" ; then
2398 if test "$ol_arg" = "invalid" ; then
2399 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2400 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2401 { (exit 1); exit 1; }; }
2403 ol_with_threads="$ol_arg"
2406 ol_with_threads="auto"
2407 fi; # end --with-threads
2409 # OpenLDAP --with-tls
2411 # Check whether --with-tls or --without-tls was given.
2412 if test "${with_tls+set}" = set; then
2416 for ol_val in auto openssl gnutls yes no ; do
2417 if test "$withval" = "$ol_val" ; then
2421 if test "$ol_arg" = "invalid" ; then
2422 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2423 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2424 { (exit 1); exit 1; }; }
2426 ol_with_tls="$ol_arg"
2430 fi; # end --with-tls
2432 # OpenLDAP --with-yielding_select
2434 # Check whether --with-yielding_select or --without-yielding_select was given.
2435 if test "${with_yielding_select+set}" = set; then
2436 withval="$with_yielding_select"
2439 for ol_val in auto yes no manual ; do
2440 if test "$withval" = "$ol_val" ; then
2444 if test "$ol_arg" = "invalid" ; then
2445 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2446 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2447 { (exit 1); exit 1; }; }
2449 ol_with_yielding_select="$ol_arg"
2452 ol_with_yielding_select="auto"
2453 fi; # end --with-yielding_select
2455 # OpenLDAP --with-mp
2457 # Check whether --with-mp or --without-mp was given.
2458 if test "${with_mp+set}" = set; then
2462 for ol_val in auto longlong long bignum gmp yes no ; do
2463 if test "$withval" = "$ol_val" ; then
2467 if test "$ol_arg" = "invalid" ; then
2468 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2469 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2470 { (exit 1); exit 1; }; }
2472 ol_with_mp="$ol_arg"
2478 # OpenLDAP --with-odbc
2480 # Check whether --with-odbc or --without-odbc was given.
2481 if test "${with_odbc+set}" = set; then
2482 withval="$with_odbc"
2485 for ol_val in auto iodbc unixodbc odbc32 ; do
2486 if test "$withval" = "$ol_val" ; then
2490 if test "$ol_arg" = "invalid" ; then
2491 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2492 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2493 { (exit 1); exit 1; }; }
2495 ol_with_odbc="$ol_arg"
2499 fi; # end --with-odbc
2503 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2504 if test "${enable_xxslapdoptions+set}" = set; then
2505 enableval="$enable_xxslapdoptions"
2508 # OpenLDAP --enable-slapd
2510 # Check whether --enable-slapd or --disable-slapd was given.
2511 if test "${enable_slapd+set}" = set; then
2512 enableval="$enable_slapd"
2515 for ol_val in auto yes no ; do
2516 if test "$enableval" = "$ol_val" ; then
2520 if test "$ol_arg" = "invalid" ; then
2521 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2522 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2523 { (exit 1); exit 1; }; }
2525 ol_enable_slapd="$ol_arg"
2530 # end --enable-slapd
2531 # OpenLDAP --enable-dynacl
2533 # Check whether --enable-dynacl or --disable-dynacl was given.
2534 if test "${enable_dynacl+set}" = set; then
2535 enableval="$enable_dynacl"
2538 for ol_val in auto yes no ; do
2539 if test "$enableval" = "$ol_val" ; then
2543 if test "$ol_arg" = "invalid" ; then
2544 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2545 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2546 { (exit 1); exit 1; }; }
2548 ol_enable_dynacl="$ol_arg"
2553 # end --enable-dynacl
2554 # OpenLDAP --enable-aci
2556 # Check whether --enable-aci or --disable-aci was given.
2557 if test "${enable_aci+set}" = set; then
2558 enableval="$enable_aci"
2561 for ol_val in no yes mod ; do
2562 if test "$enableval" = "$ol_val" ; then
2566 if test "$ol_arg" = "invalid" ; then
2567 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2568 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2569 { (exit 1); exit 1; }; }
2571 ol_enable_aci="$ol_arg"
2577 # OpenLDAP --enable-cleartext
2579 # Check whether --enable-cleartext or --disable-cleartext was given.
2580 if test "${enable_cleartext+set}" = set; then
2581 enableval="$enable_cleartext"
2584 for ol_val in auto yes no ; do
2585 if test "$enableval" = "$ol_val" ; then
2589 if test "$ol_arg" = "invalid" ; then
2590 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2591 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2592 { (exit 1); exit 1; }; }
2594 ol_enable_cleartext="$ol_arg"
2597 ol_enable_cleartext=yes
2599 # end --enable-cleartext
2600 # OpenLDAP --enable-crypt
2602 # Check whether --enable-crypt or --disable-crypt was given.
2603 if test "${enable_crypt+set}" = set; then
2604 enableval="$enable_crypt"
2607 for ol_val in auto yes no ; do
2608 if test "$enableval" = "$ol_val" ; then
2612 if test "$ol_arg" = "invalid" ; then
2613 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2614 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2615 { (exit 1); exit 1; }; }
2617 ol_enable_crypt="$ol_arg"
2622 # end --enable-crypt
2623 # OpenLDAP --enable-lmpasswd
2625 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2626 if test "${enable_lmpasswd+set}" = set; then
2627 enableval="$enable_lmpasswd"
2630 for ol_val in auto yes no ; do
2631 if test "$enableval" = "$ol_val" ; then
2635 if test "$ol_arg" = "invalid" ; then
2636 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2637 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2638 { (exit 1); exit 1; }; }
2640 ol_enable_lmpasswd="$ol_arg"
2643 ol_enable_lmpasswd=no
2645 # end --enable-lmpasswd
2646 # OpenLDAP --enable-spasswd
2648 # Check whether --enable-spasswd or --disable-spasswd was given.
2649 if test "${enable_spasswd+set}" = set; then
2650 enableval="$enable_spasswd"
2653 for ol_val in auto yes no ; do
2654 if test "$enableval" = "$ol_val" ; then
2658 if test "$ol_arg" = "invalid" ; then
2659 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2660 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2661 { (exit 1); exit 1; }; }
2663 ol_enable_spasswd="$ol_arg"
2666 ol_enable_spasswd=no
2668 # end --enable-spasswd
2669 # OpenLDAP --enable-modules
2671 # Check whether --enable-modules or --disable-modules was given.
2672 if test "${enable_modules+set}" = set; then
2673 enableval="$enable_modules"
2676 for ol_val in auto yes no ; do
2677 if test "$enableval" = "$ol_val" ; then
2681 if test "$ol_arg" = "invalid" ; then
2682 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2683 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2684 { (exit 1); exit 1; }; }
2686 ol_enable_modules="$ol_arg"
2689 ol_enable_modules=no
2691 # end --enable-modules
2692 # OpenLDAP --enable-rewrite
2694 # Check whether --enable-rewrite or --disable-rewrite was given.
2695 if test "${enable_rewrite+set}" = set; then
2696 enableval="$enable_rewrite"
2699 for ol_val in auto yes no ; do
2700 if test "$enableval" = "$ol_val" ; then
2704 if test "$ol_arg" = "invalid" ; then
2705 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2706 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2707 { (exit 1); exit 1; }; }
2709 ol_enable_rewrite="$ol_arg"
2712 ol_enable_rewrite=auto
2714 # end --enable-rewrite
2715 # OpenLDAP --enable-rlookups
2717 # Check whether --enable-rlookups or --disable-rlookups was given.
2718 if test "${enable_rlookups+set}" = set; then
2719 enableval="$enable_rlookups"
2722 for ol_val in auto yes no ; do
2723 if test "$enableval" = "$ol_val" ; then
2727 if test "$ol_arg" = "invalid" ; then
2728 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2730 { (exit 1); exit 1; }; }
2732 ol_enable_rlookups="$ol_arg"
2735 ol_enable_rlookups=no
2737 # end --enable-rlookups
2738 # OpenLDAP --enable-slapi
2740 # Check whether --enable-slapi or --disable-slapi was given.
2741 if test "${enable_slapi+set}" = set; then
2742 enableval="$enable_slapi"
2745 for ol_val in auto yes no ; do
2746 if test "$enableval" = "$ol_val" ; then
2750 if test "$ol_arg" = "invalid" ; then
2751 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2753 { (exit 1); exit 1; }; }
2755 ol_enable_slapi="$ol_arg"
2760 # end --enable-slapi
2761 # OpenLDAP --enable-slp
2763 # Check whether --enable-slp or --disable-slp was given.
2764 if test "${enable_slp+set}" = set; then
2765 enableval="$enable_slp"
2768 for ol_val in auto yes no ; do
2769 if test "$enableval" = "$ol_val" ; then
2773 if test "$ol_arg" = "invalid" ; then
2774 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2775 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2776 { (exit 1); exit 1; }; }
2778 ol_enable_slp="$ol_arg"
2784 # OpenLDAP --enable-wrappers
2786 # Check whether --enable-wrappers or --disable-wrappers was given.
2787 if test "${enable_wrappers+set}" = set; then
2788 enableval="$enable_wrappers"
2791 for ol_val in auto yes no ; do
2792 if test "$enableval" = "$ol_val" ; then
2796 if test "$ol_arg" = "invalid" ; then
2797 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2798 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2799 { (exit 1); exit 1; }; }
2801 ol_enable_wrappers="$ol_arg"
2804 ol_enable_wrappers=no
2806 # end --enable-wrappers
2823 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2824 if test "${enable_xxslapbackends+set}" = set; then
2825 enableval="$enable_xxslapbackends"
2829 # OpenLDAP --enable-backends
2831 # Check whether --enable-backends or --disable-backends was given.
2832 if test "${enable_backends+set}" = set; then
2833 enableval="$enable_backends"
2836 for ol_val in no yes mod ; do
2837 if test "$enableval" = "$ol_val" ; then
2841 if test "$ol_arg" = "invalid" ; then
2842 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2843 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2844 { (exit 1); exit 1; }; }
2846 ol_enable_backends="$ol_arg"
2849 # end --enable-backends
2850 # OpenLDAP --enable-bdb
2852 # Check whether --enable-bdb or --disable-bdb was given.
2853 if test "${enable_bdb+set}" = set; then
2854 enableval="$enable_bdb"
2857 for ol_val in no yes mod ; do
2858 if test "$enableval" = "$ol_val" ; then
2862 if test "$ol_arg" = "invalid" ; then
2863 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2864 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2865 { (exit 1); exit 1; }; }
2867 ol_enable_bdb="$ol_arg"
2870 ol_enable_bdb=${ol_enable_backends:-yes}
2873 # OpenLDAP --enable-dnssrv
2875 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2876 if test "${enable_dnssrv+set}" = set; then
2877 enableval="$enable_dnssrv"
2880 for ol_val in no yes mod ; do
2881 if test "$enableval" = "$ol_val" ; then
2885 if test "$ol_arg" = "invalid" ; then
2886 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2887 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2888 { (exit 1); exit 1; }; }
2890 ol_enable_dnssrv="$ol_arg"
2893 ol_enable_dnssrv=${ol_enable_backends:-no}
2895 # end --enable-dnssrv
2896 # OpenLDAP --enable-hdb
2898 # Check whether --enable-hdb or --disable-hdb was given.
2899 if test "${enable_hdb+set}" = set; then
2900 enableval="$enable_hdb"
2903 for ol_val in no yes mod ; do
2904 if test "$enableval" = "$ol_val" ; then
2908 if test "$ol_arg" = "invalid" ; then
2909 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2910 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2911 { (exit 1); exit 1; }; }
2913 ol_enable_hdb="$ol_arg"
2916 ol_enable_hdb=${ol_enable_backends:-yes}
2919 # OpenLDAP --enable-ldap
2921 # Check whether --enable-ldap or --disable-ldap was given.
2922 if test "${enable_ldap+set}" = set; then
2923 enableval="$enable_ldap"
2926 for ol_val in no yes mod ; do
2927 if test "$enableval" = "$ol_val" ; then
2931 if test "$ol_arg" = "invalid" ; then
2932 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2933 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2934 { (exit 1); exit 1; }; }
2936 ol_enable_ldap="$ol_arg"
2939 ol_enable_ldap=${ol_enable_backends:-no}
2942 # OpenLDAP --enable-meta
2944 # Check whether --enable-meta or --disable-meta was given.
2945 if test "${enable_meta+set}" = set; then
2946 enableval="$enable_meta"
2949 for ol_val in no yes mod ; do
2950 if test "$enableval" = "$ol_val" ; then
2954 if test "$ol_arg" = "invalid" ; then
2955 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2956 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2957 { (exit 1); exit 1; }; }
2959 ol_enable_meta="$ol_arg"
2962 ol_enable_meta=${ol_enable_backends:-no}
2965 # OpenLDAP --enable-monitor
2967 # Check whether --enable-monitor or --disable-monitor was given.
2968 if test "${enable_monitor+set}" = set; then
2969 enableval="$enable_monitor"
2972 for ol_val in no yes mod ; do
2973 if test "$enableval" = "$ol_val" ; then
2977 if test "$ol_arg" = "invalid" ; then
2978 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2979 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2980 { (exit 1); exit 1; }; }
2982 ol_enable_monitor="$ol_arg"
2985 ol_enable_monitor=${ol_enable_backends:-yes}
2987 # end --enable-monitor
2988 # OpenLDAP --enable-ndb
2990 # Check whether --enable-ndb or --disable-ndb was given.
2991 if test "${enable_ndb+set}" = set; then
2992 enableval="$enable_ndb"
2995 for ol_val in no yes mod ; do
2996 if test "$enableval" = "$ol_val" ; then
3000 if test "$ol_arg" = "invalid" ; then
3001 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3002 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3003 { (exit 1); exit 1; }; }
3005 ol_enable_ndb="$ol_arg"
3008 ol_enable_ndb=${ol_enable_backends:-no}
3011 # OpenLDAP --enable-null
3013 # Check whether --enable-null or --disable-null was given.
3014 if test "${enable_null+set}" = set; then
3015 enableval="$enable_null"
3018 for ol_val in no yes mod ; do
3019 if test "$enableval" = "$ol_val" ; then
3023 if test "$ol_arg" = "invalid" ; then
3024 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3025 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3026 { (exit 1); exit 1; }; }
3028 ol_enable_null="$ol_arg"
3031 ol_enable_null=${ol_enable_backends:-no}
3034 # OpenLDAP --enable-passwd
3036 # Check whether --enable-passwd or --disable-passwd was given.
3037 if test "${enable_passwd+set}" = set; then
3038 enableval="$enable_passwd"
3041 for ol_val in no yes mod ; do
3042 if test "$enableval" = "$ol_val" ; then
3046 if test "$ol_arg" = "invalid" ; then
3047 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3048 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3049 { (exit 1); exit 1; }; }
3051 ol_enable_passwd="$ol_arg"
3054 ol_enable_passwd=${ol_enable_backends:-no}
3056 # end --enable-passwd
3057 # OpenLDAP --enable-perl
3059 # Check whether --enable-perl or --disable-perl was given.
3060 if test "${enable_perl+set}" = set; then
3061 enableval="$enable_perl"
3064 for ol_val in no yes mod ; do
3065 if test "$enableval" = "$ol_val" ; then
3069 if test "$ol_arg" = "invalid" ; then
3070 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3071 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3072 { (exit 1); exit 1; }; }
3074 ol_enable_perl="$ol_arg"
3077 ol_enable_perl=${ol_enable_backends:-no}
3080 # OpenLDAP --enable-relay
3082 # Check whether --enable-relay or --disable-relay was given.
3083 if test "${enable_relay+set}" = set; then
3084 enableval="$enable_relay"
3087 for ol_val in no yes mod ; do
3088 if test "$enableval" = "$ol_val" ; then
3092 if test "$ol_arg" = "invalid" ; then
3093 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3094 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3095 { (exit 1); exit 1; }; }
3097 ol_enable_relay="$ol_arg"
3100 ol_enable_relay=${ol_enable_backends:-yes}
3102 # end --enable-relay
3103 # OpenLDAP --enable-shell
3105 # Check whether --enable-shell or --disable-shell was given.
3106 if test "${enable_shell+set}" = set; then
3107 enableval="$enable_shell"
3110 for ol_val in no yes mod ; do
3111 if test "$enableval" = "$ol_val" ; then
3115 if test "$ol_arg" = "invalid" ; then
3116 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3117 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3118 { (exit 1); exit 1; }; }
3120 ol_enable_shell="$ol_arg"
3123 ol_enable_shell=${ol_enable_backends:-no}
3125 # end --enable-shell
3126 # OpenLDAP --enable-sock
3128 # Check whether --enable-sock or --disable-sock was given.
3129 if test "${enable_sock+set}" = set; then
3130 enableval="$enable_sock"
3133 for ol_val in no yes mod ; do
3134 if test "$enableval" = "$ol_val" ; then
3138 if test "$ol_arg" = "invalid" ; then
3139 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3140 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3141 { (exit 1); exit 1; }; }
3143 ol_enable_sock="$ol_arg"
3146 ol_enable_sock=${ol_enable_backends:-no}
3149 # OpenLDAP --enable-sql
3151 # Check whether --enable-sql or --disable-sql was given.
3152 if test "${enable_sql+set}" = set; then
3153 enableval="$enable_sql"
3156 for ol_val in no yes mod ; do
3157 if test "$enableval" = "$ol_val" ; then
3161 if test "$ol_arg" = "invalid" ; then
3162 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3163 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3164 { (exit 1); exit 1; }; }
3166 ol_enable_sql="$ol_arg"
3169 ol_enable_sql=${ol_enable_backends:-no}
3173 Overlays="accesslog \
3193 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3194 if test "${enable_xxslapoverlays+set}" = set; then
3195 enableval="$enable_xxslapoverlays"
3199 # OpenLDAP --enable-overlays
3201 # Check whether --enable-overlays or --disable-overlays was given.
3202 if test "${enable_overlays+set}" = set; then
3203 enableval="$enable_overlays"
3206 for ol_val in no yes mod ; do
3207 if test "$enableval" = "$ol_val" ; then
3211 if test "$ol_arg" = "invalid" ; then
3212 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3213 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3214 { (exit 1); exit 1; }; }
3216 ol_enable_overlays="$ol_arg"
3219 # end --enable-overlays
3220 # OpenLDAP --enable-accesslog
3222 # Check whether --enable-accesslog or --disable-accesslog was given.
3223 if test "${enable_accesslog+set}" = set; then
3224 enableval="$enable_accesslog"
3227 for ol_val in no yes mod ; do
3228 if test "$enableval" = "$ol_val" ; then
3232 if test "$ol_arg" = "invalid" ; then
3233 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3234 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3235 { (exit 1); exit 1; }; }
3237 ol_enable_accesslog="$ol_arg"
3240 ol_enable_accesslog=${ol_enable_overlays:-no}
3242 # end --enable-accesslog
3244 # OpenLDAP --enable-auditlog
3246 # Check whether --enable-auditlog or --disable-auditlog was given.
3247 if test "${enable_auditlog+set}" = set; then
3248 enableval="$enable_auditlog"
3251 for ol_val in no yes mod ; do
3252 if test "$enableval" = "$ol_val" ; then
3256 if test "$ol_arg" = "invalid" ; then
3257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3258 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3259 { (exit 1); exit 1; }; }
3261 ol_enable_auditlog="$ol_arg"
3264 ol_enable_auditlog=${ol_enable_overlays:-no}
3266 # end --enable-auditlog
3268 # OpenLDAP --enable-collect
3270 # Check whether --enable-collect or --disable-collect was given.
3271 if test "${enable_collect+set}" = set; then
3272 enableval="$enable_collect"
3275 for ol_val in no yes mod ; do
3276 if test "$enableval" = "$ol_val" ; then
3280 if test "$ol_arg" = "invalid" ; then
3281 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3282 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3283 { (exit 1); exit 1; }; }
3285 ol_enable_collect="$ol_arg"
3288 ol_enable_collect=${ol_enable_overlays:-no}
3290 # end --enable-collect
3292 # OpenLDAP --enable-constraint
3294 # Check whether --enable-constraint or --disable-constraint was given.
3295 if test "${enable_constraint+set}" = set; then
3296 enableval="$enable_constraint"
3299 for ol_val in no yes mod ; do
3300 if test "$enableval" = "$ol_val" ; then
3304 if test "$ol_arg" = "invalid" ; then
3305 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3306 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3307 { (exit 1); exit 1; }; }
3309 ol_enable_constraint="$ol_arg"
3312 ol_enable_constraint=${ol_enable_overlays:-no}
3314 # end --enable-constraint
3316 # OpenLDAP --enable-dds
3318 # Check whether --enable-dds or --disable-dds was given.
3319 if test "${enable_dds+set}" = set; then
3320 enableval="$enable_dds"
3323 for ol_val in no yes mod ; do
3324 if test "$enableval" = "$ol_val" ; then
3328 if test "$ol_arg" = "invalid" ; then
3329 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3330 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3331 { (exit 1); exit 1; }; }
3333 ol_enable_dds="$ol_arg"
3336 ol_enable_dds=${ol_enable_overlays:-no}
3340 # OpenLDAP --enable-deref
3342 # Check whether --enable-deref or --disable-deref was given.
3343 if test "${enable_deref+set}" = set; then
3344 enableval="$enable_deref"
3347 for ol_val in no yes mod ; do
3348 if test "$enableval" = "$ol_val" ; then
3352 if test "$ol_arg" = "invalid" ; then
3353 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3354 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3355 { (exit 1); exit 1; }; }
3357 ol_enable_deref="$ol_arg"
3360 ol_enable_deref=${ol_enable_overlays:-no}
3362 # end --enable-deref
3364 # OpenLDAP --enable-dyngroup
3366 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3367 if test "${enable_dyngroup+set}" = set; then
3368 enableval="$enable_dyngroup"
3371 for ol_val in no yes mod ; do
3372 if test "$enableval" = "$ol_val" ; then
3376 if test "$ol_arg" = "invalid" ; then
3377 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3378 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3379 { (exit 1); exit 1; }; }
3381 ol_enable_dyngroup="$ol_arg"
3384 ol_enable_dyngroup=${ol_enable_overlays:-no}
3386 # end --enable-dyngroup
3388 # OpenLDAP --enable-dynlist
3390 # Check whether --enable-dynlist or --disable-dynlist was given.
3391 if test "${enable_dynlist+set}" = set; then
3392 enableval="$enable_dynlist"
3395 for ol_val in no yes mod ; do
3396 if test "$enableval" = "$ol_val" ; then
3400 if test "$ol_arg" = "invalid" ; then
3401 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3402 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3403 { (exit 1); exit 1; }; }
3405 ol_enable_dynlist="$ol_arg"
3408 ol_enable_dynlist=${ol_enable_overlays:-no}
3410 # end --enable-dynlist
3412 # OpenLDAP --enable-memberof
3414 # Check whether --enable-memberof or --disable-memberof was given.
3415 if test "${enable_memberof+set}" = set; then
3416 enableval="$enable_memberof"
3419 for ol_val in no yes mod ; do
3420 if test "$enableval" = "$ol_val" ; then
3424 if test "$ol_arg" = "invalid" ; then
3425 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3426 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3427 { (exit 1); exit 1; }; }
3429 ol_enable_memberof="$ol_arg"
3432 ol_enable_memberof=${ol_enable_overlays:-no}
3434 # end --enable-memberof
3436 # OpenLDAP --enable-ppolicy
3438 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3439 if test "${enable_ppolicy+set}" = set; then
3440 enableval="$enable_ppolicy"
3443 for ol_val in no yes mod ; do
3444 if test "$enableval" = "$ol_val" ; then
3448 if test "$ol_arg" = "invalid" ; then
3449 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3450 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3451 { (exit 1); exit 1; }; }
3453 ol_enable_ppolicy="$ol_arg"
3456 ol_enable_ppolicy=${ol_enable_overlays:-no}
3458 # end --enable-ppolicy
3460 # OpenLDAP --enable-proxycache
3462 # Check whether --enable-proxycache or --disable-proxycache was given.
3463 if test "${enable_proxycache+set}" = set; then
3464 enableval="$enable_proxycache"
3467 for ol_val in no yes mod ; do
3468 if test "$enableval" = "$ol_val" ; then
3472 if test "$ol_arg" = "invalid" ; then
3473 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3474 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3475 { (exit 1); exit 1; }; }
3477 ol_enable_proxycache="$ol_arg"
3480 ol_enable_proxycache=${ol_enable_overlays:-no}
3482 # end --enable-proxycache
3484 # OpenLDAP --enable-refint
3486 # Check whether --enable-refint or --disable-refint was given.
3487 if test "${enable_refint+set}" = set; then
3488 enableval="$enable_refint"
3491 for ol_val in no yes mod ; do
3492 if test "$enableval" = "$ol_val" ; then
3496 if test "$ol_arg" = "invalid" ; then
3497 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3498 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3499 { (exit 1); exit 1; }; }
3501 ol_enable_refint="$ol_arg"
3504 ol_enable_refint=${ol_enable_overlays:-no}
3506 # end --enable-refint
3508 # OpenLDAP --enable-retcode
3510 # Check whether --enable-retcode or --disable-retcode was given.
3511 if test "${enable_retcode+set}" = set; then
3512 enableval="$enable_retcode"
3515 for ol_val in no yes mod ; do
3516 if test "$enableval" = "$ol_val" ; then
3520 if test "$ol_arg" = "invalid" ; then
3521 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3522 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3523 { (exit 1); exit 1; }; }
3525 ol_enable_retcode="$ol_arg"
3528 ol_enable_retcode=${ol_enable_overlays:-no}
3530 # end --enable-retcode
3532 # OpenLDAP --enable-rwm
3534 # Check whether --enable-rwm or --disable-rwm was given.
3535 if test "${enable_rwm+set}" = set; then
3536 enableval="$enable_rwm"
3539 for ol_val in no yes mod ; do
3540 if test "$enableval" = "$ol_val" ; then
3544 if test "$ol_arg" = "invalid" ; then
3545 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3547 { (exit 1); exit 1; }; }
3549 ol_enable_rwm="$ol_arg"
3552 ol_enable_rwm=${ol_enable_overlays:-no}
3556 # OpenLDAP --enable-seqmod
3558 # Check whether --enable-seqmod or --disable-seqmod was given.
3559 if test "${enable_seqmod+set}" = set; then
3560 enableval="$enable_seqmod"
3563 for ol_val in no yes mod ; do
3564 if test "$enableval" = "$ol_val" ; then
3568 if test "$ol_arg" = "invalid" ; then
3569 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3570 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3571 { (exit 1); exit 1; }; }
3573 ol_enable_seqmod="$ol_arg"
3576 ol_enable_seqmod=${ol_enable_overlays:-yes}
3578 # end --enable-seqmod
3580 # OpenLDAP --enable-syncprov
3582 # Check whether --enable-syncprov or --disable-syncprov was given.
3583 if test "${enable_syncprov+set}" = set; then
3584 enableval="$enable_syncprov"
3587 for ol_val in no yes mod ; do
3588 if test "$enableval" = "$ol_val" ; then
3592 if test "$ol_arg" = "invalid" ; then
3593 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3595 { (exit 1); exit 1; }; }
3597 ol_enable_syncprov="$ol_arg"
3600 ol_enable_syncprov=${ol_enable_overlays:-yes}
3602 # end --enable-syncprov
3604 # OpenLDAP --enable-translucent
3606 # Check whether --enable-translucent or --disable-translucent was given.
3607 if test "${enable_translucent+set}" = set; then
3608 enableval="$enable_translucent"
3611 for ol_val in no yes mod ; do
3612 if test "$enableval" = "$ol_val" ; then
3616 if test "$ol_arg" = "invalid" ; then
3617 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3618 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3619 { (exit 1); exit 1; }; }
3621 ol_enable_translucent="$ol_arg"
3624 ol_enable_translucent=${ol_enable_overlays:-no}
3626 # end --enable-translucent
3628 # OpenLDAP --enable-unique
3630 # Check whether --enable-unique or --disable-unique was given.
3631 if test "${enable_unique+set}" = set; then
3632 enableval="$enable_unique"
3635 for ol_val in no yes mod ; do
3636 if test "$enableval" = "$ol_val" ; then
3640 if test "$ol_arg" = "invalid" ; then
3641 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3642 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3643 { (exit 1); exit 1; }; }
3645 ol_enable_unique="$ol_arg"
3648 ol_enable_unique=${ol_enable_overlays:-no}
3650 # end --enable-unique
3652 # OpenLDAP --enable-valsort
3654 # Check whether --enable-valsort or --disable-valsort was given.
3655 if test "${enable_valsort+set}" = set; then
3656 enableval="$enable_valsort"
3659 for ol_val in no yes mod ; do
3660 if test "$enableval" = "$ol_val" ; then
3664 if test "$ol_arg" = "invalid" ; then
3665 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3666 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3667 { (exit 1); exit 1; }; }
3669 ol_enable_valsort="$ol_arg"
3672 ol_enable_valsort=${ol_enable_overlays:-no}
3674 # end --enable-valsort
3677 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3678 if test "${enable_xxliboptions+set}" = set; then
3679 enableval="$enable_xxliboptions"
3682 # Check whether --enable-static or --disable-static was given.
3683 if test "${enable_static+set}" = set; then
3684 enableval="$enable_static"
3685 p=${PACKAGE-default}
3687 yes) enable_static=yes ;;
3688 no) enable_static=no ;;
3691 # Look at the argument we got. We use all the common list separators.
3692 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3693 for pkg in $enableval; do
3695 if test "X$pkg" = "X$p"; then
3706 # Check whether --enable-shared or --disable-shared was given.
3707 if test "${enable_shared+set}" = set; then
3708 enableval="$enable_shared"
3709 p=${PACKAGE-default}
3711 yes) enable_shared=yes ;;
3712 no) enable_shared=no ;;
3715 # Look at the argument we got. We use all the common list separators.
3716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3717 for pkg in $enableval; do
3719 if test "X$pkg" = "X$p"; then
3733 if test $ol_enable_slapd = no ; then
3734 if test $ol_enable_slapi = yes ; then
3735 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3736 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3738 case "$ol_enable_backends" in yes | mod)
3739 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3740 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3742 for i in $Backends; do
3743 eval "ol_tmp=\$ol_enable_$i"
3744 if test $ol_tmp != no ; then
3745 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3746 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3747 eval "ol_enable_$i=no"
3750 if test $ol_enable_modules = yes ; then
3751 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3752 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3754 if test $ol_enable_wrappers = yes ; then
3755 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3756 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3758 if test $ol_enable_rlookups = yes ; then
3759 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3760 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3762 if test $ol_enable_dynacl = yes ; then
3763 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3764 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3766 if test $ol_enable_aci != no ; then
3767 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3768 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3770 if test $ol_enable_rewrite = yes ; then
3771 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3772 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3774 case "$ol_enable_overlays" in yes | mod)
3775 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3776 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3778 for i in $Overlays; do
3779 eval "ol_tmp=\$ol_enable_$i"
3780 if test $ol_tmp != no ; then
3781 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3782 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3783 eval "ol_enable_$i=no"
3787 # force settings to no
3792 ol_enable_modules=no
3793 ol_enable_rlookups=no
3796 ol_enable_wrappers=no
3798 ol_enable_rewrite=no
3800 elif test $ol_enable_modules != yes &&
3801 test $ol_enable_bdb = no &&
3802 test $ol_enable_dnssrv = no &&
3803 test $ol_enable_hdb = no &&
3804 test $ol_enable_ldap = no &&
3805 test $ol_enable_meta = no &&
3806 test $ol_enable_monitor = no &&
3807 test $ol_enable_ndb = no &&
3808 test $ol_enable_null = no &&
3809 test $ol_enable_passwd = no &&
3810 test $ol_enable_perl = no &&
3811 test $ol_enable_relay = no &&
3812 test $ol_enable_shell = no &&
3813 test $ol_enable_sock = no &&
3814 test $ol_enable_sql = no ; then
3816 if test $ol_enable_slapd = yes ; then
3817 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3818 echo "$as_me: error: slapd requires a backend" >&2;}
3819 { (exit 1); exit 1; }; }
3821 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3822 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3827 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3828 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3829 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3830 { (exit 1); exit 1; }; }
3833 if test $ol_enable_lmpasswd = yes ; then
3834 if test $ol_with_tls = no ; then
3835 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3836 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3837 { (exit 1); exit 1; }; }
3841 if test $ol_enable_spasswd = yes ; then
3842 if test $ol_with_cyrus_sasl = no ; then
3843 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3844 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3845 { (exit 1); exit 1; }; }
3847 ol_with_cyrus_sasl=yes
3850 echo "$as_me:$LINENO: result: done" >&5
3851 echo "${ECHO_T}done" >&6
3900 BUILD_TRANSLUCENT=no
3904 SLAPD_STATIC_OVERLAYS=
3905 SLAPD_DYNAMIC_OVERLAYS=
3907 SLAPD_MODULES_LDFLAGS=
3908 SLAPD_MODULES_CPPFLAGS=
3910 SLAPD_STATIC_BACKENDS=back-ldif
3911 SLAPD_DYNAMIC_BACKENDS=
3938 cat >>confdefs.h <<\_ACEOF
3939 #define HAVE_MKVERSION 1
3947 *-*-aix*) if test -z "$CC" ; then
3948 case "$ol_with_threads" in
3949 auto | yes | posix) ol_aix_threads=yes ;;
3955 if test $ol_aix_threads = yes ; then
3956 if test -z "${CC}" ; then
3957 for ac_prog in cc_r xlc_r cc
3959 # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_CC+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 if test -n "$CC"; then
3967 ac_cv_prog_CC="$CC" # Let the user override the test.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_CC="$ac_prog"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 if test -n "$CC"; then
3987 echo "$as_me:$LINENO: result: $CC" >&5
3988 echo "${ECHO_T}$CC" >&6
3990 echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3994 test -n "$CC" && break
3998 if test "$CC" = cc ; then
3999 if test $ol_with_threads != auto ; then
4000 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4001 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4002 { (exit 1); exit 1; }; }
4004 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4005 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4011 case ${CC} in cc_r | xlc_r)
4012 ol_with_threads=posix
4013 ol_cv_pthread_create=yes
4018 if test -z "${CC}"; then
4019 for ac_prog in cc gcc
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022 set dummy $ac_prog; ac_word=$2
4023 echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025 if test "${ac_cv_prog_CC+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_CC="$ac_prog"
4039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 if test -n "$CC"; then
4049 echo "$as_me:$LINENO: result: $CC" >&5
4050 echo "${ECHO_T}$CC" >&6
4052 echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4056 test -n "$CC" && break
4058 test -n "$CC" || CC="missing"
4061 if test "${CC}" = "missing" ; then
4062 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4063 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4064 { (exit 1); exit 1; }; }
4068 if test -z "${AR}"; then
4069 for ac_prog in ar gar
4071 # Extract the first word of "$ac_prog", so it can be a program name with args.
4072 set dummy $ac_prog; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_prog_AR+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 if test -n "$AR"; then
4079 ac_cv_prog_AR="$AR" # Let the user override the test.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_AR="$ac_prog"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 if test -n "$AR"; then
4099 echo "$as_me:$LINENO: result: $AR" >&5
4100 echo "${ECHO_T}$AR" >&6
4102 echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4106 test -n "$AR" && break
4108 test -n "$AR" || AR="missing"
4111 if test "${AR}" = "missing" ; then
4112 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4113 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4114 { (exit 1); exit 1; }; }
4122 # Check whether --enable-fast-install or --disable-fast-install was given.
4123 if test "${enable_fast_install+set}" = set; then
4124 enableval="$enable_fast_install"
4125 p=${PACKAGE-default}
4127 yes) enable_fast_install=yes ;;
4128 no) enable_fast_install=no ;;
4130 enable_fast_install=no
4131 # Look at the argument we got. We use all the common list separators.
4132 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4133 for pkg in $enableval; do
4135 if test "X$pkg" = "X$p"; then
4136 enable_fast_install=yes
4143 enable_fast_install=yes
4146 DEPDIR="${am__leading_dot}deps"
4148 ac_config_commands="$ac_config_commands depfiles"
4151 am_make=${MAKE-make}
4152 cat > confinc << 'END'
4157 # If we don't find an include directive, just comment out the code.
4158 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4159 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4163 # First try GNU make style include.
4164 echo "include confinc" > confmf
4165 # We grep out `Entering directory' and `Leaving directory'
4166 # messages which can occur if `w' ends up in MAKEFLAGS.
4167 # In particular we don't look at `^make:' because GNU make might
4168 # be invoked under some other name (usually "gmake"), in which
4169 # case it prints its new name instead of `make'.
4170 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4175 # Now try BSD make style include.
4176 if test "$am__include" = "#"; then
4177 echo '.include "confinc"' > confmf
4178 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4179 am__include=.include
4186 echo "$as_me:$LINENO: result: $_am_result" >&5
4187 echo "${ECHO_T}$_am_result" >&6
4188 rm -f confinc confmf
4190 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4191 if test "${enable_dependency_tracking+set}" = set; then
4192 enableval="$enable_dependency_tracking"
4195 if test "x$enable_dependency_tracking" != xno; then
4196 am_depcomp="$ac_aux_dir/depcomp"
4201 if test "x$enable_dependency_tracking" != xno; then
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 if test -n "$ac_tool_prefix"; then
4217 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4218 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4219 echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_CC+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$CC"; then
4225 ac_cv_prog_CC="$CC" # Let the user override the test.
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 test -z "$as_dir" && as_dir=.
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4234 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 if test -n "$CC"; then
4245 echo "$as_me:$LINENO: result: $CC" >&5
4246 echo "${ECHO_T}$CC" >&6
4248 echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6
4253 if test -z "$ac_cv_prog_CC"; then
4255 # Extract the first word of "gcc", so it can be a program name with args.
4256 set dummy gcc; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$ac_ct_CC"; then
4263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_ac_ct_CC="gcc"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4282 if test -n "$ac_ct_CC"; then
4283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4284 echo "${ECHO_T}$ac_ct_CC" >&6
4286 echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4295 if test -z "$CC"; then
4296 if test -n "$ac_tool_prefix"; then
4297 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4298 set dummy ${ac_tool_prefix}cc; ac_word=$2
4299 echo "$as_me:$LINENO: checking for $ac_word" >&5
4300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4301 if test "${ac_cv_prog_CC+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 if test -n "$CC"; then
4305 ac_cv_prog_CC="$CC" # Let the user override the test.
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_CC="${ac_tool_prefix}cc"
4315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 if test -n "$CC"; then
4325 echo "$as_me:$LINENO: result: $CC" >&5
4326 echo "${ECHO_T}$CC" >&6
4328 echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6
4333 if test -z "$ac_cv_prog_CC"; then
4335 # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc; ac_word=$2
4337 echo "$as_me:$LINENO: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 if test -n "$ac_ct_CC"; then
4343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4352 ac_cv_prog_ac_ct_CC="cc"
4353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4362 if test -n "$ac_ct_CC"; then
4363 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4364 echo "${ECHO_T}$ac_ct_CC" >&6
4366 echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6
4376 if test -z "$CC"; then
4377 # Extract the first word of "cc", so it can be a program name with args.
4378 set dummy cc; ac_word=$2
4379 echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4381 if test "${ac_cv_prog_CC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 if test -n "$CC"; then
4385 ac_cv_prog_CC="$CC" # Let the user override the test.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4396 ac_prog_rejected=yes
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 if test $ac_prog_rejected = yes; then
4407 # We found a bogon in the path, so make sure we never use it.
4408 set dummy $ac_cv_prog_CC
4410 if test $# != 0; then
4411 # We chose a different compiler from the bogus one.
4412 # However, it has the same basename, so the bogon will be chosen
4413 # first if we set CC to just the basename; use the full file name.
4415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4421 if test -n "$CC"; then
4422 echo "$as_me:$LINENO: result: $CC" >&5
4423 echo "${ECHO_T}$CC" >&6
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4430 if test -z "$CC"; then
4431 if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_prog_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 if test -n "$CC"; then
4442 ac_cv_prog_CC="$CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 if test -n "$CC"; then
4462 echo "$as_me:$LINENO: result: $CC" >&5
4463 echo "${ECHO_T}$CC" >&6
4465 echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6
4469 test -n "$CC" && break
4472 if test -z "$CC"; then
4476 # Extract the first word of "$ac_prog", so it can be a program name with args.
4477 set dummy $ac_prog; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$ac_ct_CC"; then
4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_ac_ct_CC="$ac_prog"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4503 if test -n "$ac_ct_CC"; then
4504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4505 echo "${ECHO_T}$ac_ct_CC" >&6
4507 echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6
4511 test -n "$ac_ct_CC" && break
4520 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4521 See \`config.log' for more details." >&5
4522 echo "$as_me: error: no acceptable C compiler found in \$PATH
4523 See \`config.log' for more details." >&2;}
4524 { (exit 1); exit 1; }; }
4526 # Provide some information about the compiler.
4527 echo "$as_me:$LINENO:" \
4528 "checking for C compiler version" >&5
4529 ac_compiler=`set X $ac_compile; echo $2`
4530 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4531 (eval $ac_compiler --version </dev/null >&5) 2>&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }
4535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4536 (eval $ac_compiler -v </dev/null >&5) 2>&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }
4540 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4541 (eval $ac_compiler -V </dev/null >&5) 2>&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4561 ac_clean_files_save=$ac_clean_files
4562 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4563 # Try to create an executable without -o first, disregard a.out.
4564 # It will help us diagnose broken compilers, and finding out an intuition
4566 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4567 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4568 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4569 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4570 (eval $ac_link_default) 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; then
4574 # Find the output, starting from the most likely. This scheme is
4575 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4578 # Be careful to initialize this variable, since it used to be cached.
4579 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4581 # b.out is created by i960 compilers.
4582 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4584 test -f "$ac_file" || continue
4586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4589 # This is the source file.
4592 # We found the default executable, but exeext='' is most
4596 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4597 # FIXME: I believe we export ac_cv_exeext for Libtool,
4598 # but it would be cool to find out if it's true. Does anybody
4599 # maintain Libtool? --akim.
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4611 See \`config.log' for more details." >&5
4612 echo "$as_me: error: C compiler cannot create executables
4613 See \`config.log' for more details." >&2;}
4614 { (exit 77); exit 77; }; }
4617 ac_exeext=$ac_cv_exeext
4618 echo "$as_me:$LINENO: result: $ac_file" >&5
4619 echo "${ECHO_T}$ac_file" >&6
4621 # Check the compiler produces executables we can run. If not, either
4622 # the compiler is broken, or we cross compile.
4623 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4624 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4625 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4626 # If not cross compiling, check that we can run a simple program.
4627 if test "$cross_compiling" != yes; then
4628 if { ac_try='./$ac_file'
4629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; }; then
4636 if test "$cross_compiling" = maybe; then
4639 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4640 If you meant to cross compile, use \`--host'.
4641 See \`config.log' for more details." >&5
4642 echo "$as_me: error: cannot run C compiled programs.
4643 If you meant to cross compile, use \`--host'.
4644 See \`config.log' for more details." >&2;}
4645 { (exit 1); exit 1; }; }
4649 echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6
4652 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4653 ac_clean_files=$ac_clean_files_save
4654 # Check the compiler produces executables we can run. If not, either
4655 # the compiler is broken, or we cross compile.
4656 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4657 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4658 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4659 echo "${ECHO_T}$cross_compiling" >&6
4661 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4662 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4664 (eval $ac_link) 2>&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; then
4668 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4669 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4670 # work properly (i.e., refer to `conftest.exe'), while it won't with
4672 for ac_file in conftest.exe conftest conftest.*; do
4673 test -f "$ac_file" || continue
4675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4676 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4683 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4684 See \`config.log' for more details." >&5
4685 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4686 See \`config.log' for more details." >&2;}
4687 { (exit 1); exit 1; }; }
4690 rm -f conftest$ac_cv_exeext
4691 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4692 echo "${ECHO_T}$ac_cv_exeext" >&6
4694 rm -f conftest.$ac_ext
4695 EXEEXT=$ac_cv_exeext
4697 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4698 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4699 if test "${ac_cv_objext+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4717 rm -f conftest.o conftest.obj
4718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; then
4723 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4726 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4734 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4735 See \`config.log' for more details." >&5
4736 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4737 See \`config.log' for more details." >&2;}
4738 { (exit 1); exit 1; }; }
4741 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4743 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4744 echo "${ECHO_T}$ac_cv_objext" >&6
4745 OBJEXT=$ac_cv_objext
4747 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4748 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4749 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772 (eval $ac_compile) 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -z "$ac_c_werror_flag"
4780 || test ! -s conftest.err'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; } &&
4786 { ac_try='test -s conftest.$ac_objext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4803 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4804 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4805 GCC=`test $ac_compiler_gnu = yes && echo yes`
4806 ac_test_CFLAGS=${CFLAGS+set}
4807 ac_save_CFLAGS=$CFLAGS
4809 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4810 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4811 if test "${ac_cv_prog_cc_g+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4829 rm -f conftest.$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4833 grep -v '^ *+' conftest.er1 >conftest.err
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -z "$ac_c_werror_flag"
4839 || test ! -s conftest.err'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; } &&
4845 { ac_try='test -s conftest.$ac_objext'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4861 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4862 if test "$ac_test_CFLAGS" = set; then
4863 CFLAGS=$ac_save_CFLAGS
4864 elif test $ac_cv_prog_cc_g = yes; then
4865 if test "$GCC" = yes; then
4871 if test "$GCC" = yes; then
4877 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4878 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4879 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 ac_cv_prog_cc_stdc=no
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4892 #include <sys/types.h>
4893 #include <sys/stat.h>
4894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4895 struct buf { int x; };
4896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4897 static char *e (p, i)
4903 static char *f (char * (*g) (char **, int), char **p, ...)
4908 s = g (p, va_arg (v,int));
4913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4914 function prototypes and stuff, but not '\xHH' hex character constants.
4915 These don't provoke an error unfortunately, instead are silently treated
4916 as 'x'. The following induces an error, until -std1 is added to get
4917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4918 array size at least. It's necessary to write '\x00'==0 to get something
4919 that's true only with -std1. */
4920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4922 int test (int i, double x);
4923 struct s1 {int (*f) (int a);};
4924 struct s2 {int (*f) (double a);};
4925 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4931 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4936 # Don't try gcc -ansi; that turns off useful extensions and
4937 # breaks some systems' header files.
4938 # AIX -qlanglvl=ansi
4939 # Ultrix and OSF/1 -std1
4940 # HP-UX 10.20 and later -Ae
4941 # HP-UX older versions -Aa -D_HPUX_SOURCE
4942 # SVR4 -Xc -D__EXTENSIONS__
4943 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4945 CC="$ac_save_CC $ac_arg"
4946 rm -f conftest.$ac_objext
4947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>conftest.er1
4950 grep -v '^ *+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_cv_prog_cc_stdc=$ac_arg
4971 echo "$as_me: failed program was:" >&5
4972 sed 's/^/| /' conftest.$ac_ext >&5
4975 rm -f conftest.err conftest.$ac_objext
4977 rm -f conftest.$ac_ext conftest.$ac_objext
4982 case "x$ac_cv_prog_cc_stdc" in
4984 echo "$as_me:$LINENO: result: none needed" >&5
4985 echo "${ECHO_T}none needed" >&6 ;;
4987 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4988 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4989 CC="$CC $ac_cv_prog_cc_stdc" ;;
4992 # Some people use a C++ compiler to compile C. Since we use `exit',
4993 # in C++ we need to declare it. In case someone uses the same compiler
4994 # for both compiling C and C++ we need to have the C++ compiler decide
4995 # the declaration of exit, since it's the most demanding environment.
4996 cat >conftest.$ac_ext <<_ACEOF
5001 rm -f conftest.$ac_objext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>conftest.er1
5005 grep -v '^ *+' conftest.er1 >conftest.err
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -z "$ac_c_werror_flag"
5011 || test ! -s conftest.err'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; } &&
5017 { ac_try='test -s conftest.$ac_objext'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; }; then
5023 for ac_declaration in \
5025 'extern "C" void std::exit (int) throw (); using std::exit;' \
5026 'extern "C" void std::exit (int); using std::exit;' \
5027 'extern "C" void exit (int) throw ();' \
5028 'extern "C" void exit (int);' \
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -z "$ac_c_werror_flag"
5057 || test ! -s conftest.err'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; } &&
5063 { ac_try='test -s conftest.$ac_objext'
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5077 cat >conftest.$ac_ext <<_ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag"
5102 || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest.$ac_objext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 if test -n "$ac_declaration"; then
5124 echo '#ifdef __cplusplus' >>confdefs.h
5125 echo $ac_declaration >>confdefs.h
5126 echo '#endif' >>confdefs.h
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141 depcc="$CC" am_compiler_list=
5143 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5144 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5145 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5149 # We make a subdir and do the tests there. Otherwise we can end up
5150 # making bogus files that we don't know about and never remove. For
5151 # instance it was reported that on HP-UX the gcc test will end up
5152 # making a dummy file named `D' -- because `-MD' means `put the output
5155 # Copy depcomp to subdir because otherwise we won't find it if we're
5156 # using a relative directory.
5157 cp "$am_depcomp" conftest.dir
5159 # We will build objects and dependencies in a subdirectory because
5160 # it helps to detect inapplicable dependency modes. For instance
5161 # both Tru64's cc and ICC support -MD to output dependencies as a
5162 # side effect of compilation, but ICC will put the dependencies in
5163 # the current directory while Tru64 will put them in the object
5167 am_cv_CC_dependencies_compiler_type=none
5168 if test "$am_compiler_list" = ""; then
5169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5171 for depmode in $am_compiler_list; do
5172 # Setup a source with many dependencies, because some compilers
5173 # like to wrap large dependency lists on column 80 (with \), and
5174 # we should not choose a depcomp mode which is confused by this.
5176 # We need to recreate these files for each test, as the compiler may
5177 # overwrite some of them when testing with obscure command lines.
5178 # This happens at least with the AIX C compiler.
5180 for i in 1 2 3 4 5 6; do
5181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5183 # Solaris 8's {/usr,}/bin/sh.
5184 touch sub/conftst$i.h
5186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5190 # after this tag, mechanisms are not by side-effect, so they'll
5191 # only be used when explicitly requested
5192 if test "x$enable_dependency_tracking" = xyes; then
5200 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5201 # mode. It turns out that the SunPro C++ compiler does not properly
5202 # handle `-M -o', and we need to detect this.
5203 if depmode=$depmode \
5204 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5206 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5207 >/dev/null 2>conftest.err &&
5208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5209 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5211 # icc doesn't choke on unknown options, it will just issue warnings
5212 # or remarks (even with -Werror). So we grep stderr for any message
5213 # that says an option was ignored or not supported.
5214 # When given -MP, icc 7.0 and 7.1 complain thusly:
5215 # icc: Command line warning: ignoring option '-M'; no argument required
5216 # The diagnosis changed in icc 8.0:
5217 # icc: Command line remark: option '-MP' not supported
5218 if (grep 'ignoring option' conftest.err ||
5219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5220 am_cv_CC_dependencies_compiler_type=$depmode
5229 am_cv_CC_dependencies_compiler_type=none
5233 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5234 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5240 test "x$enable_dependency_tracking" != xno \
5241 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5243 am__fastdepCC_FALSE='#'
5245 am__fastdepCC_TRUE='#'
5246 am__fastdepCC_FALSE=
5250 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5251 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5252 if test "${lt_cv_path_SED+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 # Loop through the user's path and test for sed and gsed.
5256 # Then use that list of sed's as ones to test for truncation.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for lt_ac_prog in sed gsed; do
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5265 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5272 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5273 # along with /bin/sed that truncates output.
5274 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5275 test ! -f $lt_ac_sed && continue
5276 cat /dev/null > conftest.in
5278 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5279 # Check for GNU sed and select it if it is found.
5280 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5281 lt_cv_path_SED=$lt_ac_sed
5285 cat conftest.in conftest.in >conftest.tmp
5286 mv conftest.tmp conftest.in
5287 cp conftest.in conftest.nl
5289 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5290 cmp -s conftest.out conftest.nl || break
5291 # 10000 chars as input seems more than enough
5292 test $lt_ac_count -gt 10 && break
5293 lt_ac_count=`expr $lt_ac_count + 1`
5294 if test $lt_ac_count -gt $lt_ac_max; then
5295 lt_ac_max=$lt_ac_count
5296 lt_cv_path_SED=$lt_ac_sed
5304 echo "$as_me:$LINENO: result: $SED" >&5
5305 echo "${ECHO_T}$SED" >&6
5307 echo "$as_me:$LINENO: checking for egrep" >&5
5308 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5309 if test "${ac_cv_prog_egrep+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5313 then ac_cv_prog_egrep='grep -E'
5314 else ac_cv_prog_egrep='egrep'
5317 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5318 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5319 EGREP=$ac_cv_prog_egrep
5323 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5324 if test "${with_gnu_ld+set}" = set; then
5325 withval="$with_gnu_ld"
5326 test "$withval" = no || with_gnu_ld=yes
5331 if test "$GCC" = yes; then
5332 # Check if gcc -print-prog-name=ld gives a path.
5333 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5334 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5337 # gcc leaves a trailing carriage return which upsets mingw
5338 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5340 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5343 # Accept absolute paths.
5345 re_direlt='/[^/][^/]*/\.\./'
5346 # Canonicalize the pathname of ld
5347 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5348 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5349 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5351 test -z "$LD" && LD="$ac_prog"
5354 # If it fails, then pretend we aren't using GCC.
5358 # If it is relative, then search for the first ld in PATH.
5362 elif test "$with_gnu_ld" = yes; then
5363 echo "$as_me:$LINENO: checking for GNU ld" >&5
5364 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5366 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5367 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5369 if test "${lt_cv_path_LD+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 if test -z "$LD"; then
5373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5374 for ac_dir in $PATH; do
5376 test -z "$ac_dir" && ac_dir=.
5377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5378 lt_cv_path_LD="$ac_dir/$ac_prog"
5379 # Check to see if the program is GNU ld. I'd rather use --version,
5380 # but apparently some variants of GNU ld only accept -v.
5381 # Break only if it was the GNU/non-GNU ld that we prefer.
5382 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5383 *GNU* | *'with BFD'*)
5384 test "$with_gnu_ld" != no && break
5387 test "$with_gnu_ld" != yes && break
5394 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5399 if test -n "$LD"; then
5400 echo "$as_me:$LINENO: result: $LD" >&5
5401 echo "${ECHO_T}$LD" >&6
5403 echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6
5406 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5407 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5408 { (exit 1); exit 1; }; }
5409 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5410 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5411 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5415 case `$LD -v 2>&1 </dev/null` in
5416 *GNU* | *'with BFD'*)
5417 lt_cv_prog_gnu_ld=yes
5420 lt_cv_prog_gnu_ld=no
5424 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5425 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5426 with_gnu_ld=$lt_cv_prog_gnu_ld
5429 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5430 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5431 if test "${lt_cv_ld_reload_flag+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 lt_cv_ld_reload_flag='-r'
5436 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5437 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5438 reload_flag=$lt_cv_ld_reload_flag
5439 case $reload_flag in
5441 *) reload_flag=" $reload_flag" ;;
5443 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446 if test "$GCC" = yes; then
5447 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5454 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5455 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5456 if test "${lt_cv_path_NM+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 if test -n "$NM"; then
5460 # Let the user override the test.
5463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5464 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5466 test -z "$ac_dir" && ac_dir=.
5467 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5468 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5469 # Check to see if the nm accepts a BSD-compat flag.
5470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5471 # nm: unknown option "B" ignored
5472 # Tru64's nm complains that /dev/null is an invalid object file
5473 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5474 */dev/null* | *'Invalid file or object type'*)
5475 lt_cv_path_NM="$tmp_nm -B"
5479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5481 lt_cv_path_NM="$tmp_nm -p"
5485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5486 continue # so that we can try to find one that supports BSD flags
5493 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5496 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5497 echo "${ECHO_T}$lt_cv_path_NM" >&6
5500 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5501 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5503 if test "$LN_S" = "ln -s"; then
5504 echo "$as_me:$LINENO: result: yes" >&5
5505 echo "${ECHO_T}yes" >&6
5507 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5508 echo "${ECHO_T}no, using $LN_S" >&6
5511 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5512 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5513 if test "${lt_cv_deplibs_check_method+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 lt_cv_file_magic_cmd='$MAGIC_CMD'
5517 lt_cv_file_magic_test_file=
5518 lt_cv_deplibs_check_method='unknown'
5519 # Need to set the preceding variable on all platforms that support
5520 # interlibrary dependencies.
5521 # 'none' -- dependencies not supported.
5522 # `unknown' -- same as none, but documents that we really don't know.
5523 # 'pass_all' -- all dependencies passed with no checks.
5524 # 'test_compile' -- check by making test program.
5525 # 'file_magic [[regex]]' -- check by looking for files in library path
5526 # which responds to the $file_magic_cmd with a given extended regex.
5527 # If you have `file' or equivalent on your system and you're not sure
5528 # whether `pass_all' will *always* work, you probably want this one.
5532 lt_cv_deplibs_check_method=pass_all
5536 lt_cv_deplibs_check_method=pass_all
5540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5541 lt_cv_file_magic_cmd='/usr/bin/file -L'
5542 lt_cv_file_magic_test_file=/shlib/libc.so
5546 # func_win32_libid is a shell function defined in ltmain.sh
5547 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5548 lt_cv_file_magic_cmd='func_win32_libid'
5552 # Base MSYS/MinGW do not provide the 'file' command needed by
5553 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5554 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5555 lt_cv_file_magic_cmd='$OBJDUMP -f'
5558 darwin* | rhapsody*)
5559 lt_cv_deplibs_check_method=pass_all
5562 freebsd* | kfreebsd*-gnu | dragonfly*)
5563 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5566 # Not sure whether the presence of OpenBSD here was a mistake.
5567 # Let's accept both of them until this is cleared up.
5568 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5569 lt_cv_file_magic_cmd=/usr/bin/file
5570 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5574 lt_cv_deplibs_check_method=pass_all
5579 lt_cv_deplibs_check_method=pass_all
5582 hpux10.20* | hpux11*)
5583 lt_cv_file_magic_cmd=/usr/bin/file
5586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5587 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5590 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]'
5591 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5595 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5600 irix5* | irix6* | nonstopux*)
5602 *-32|*"-32 ") libmagic=32-bit;;
5603 *-n32|*"-n32 ") libmagic=N32;;
5604 *-64|*"-64 ") libmagic=64-bit;;
5605 *) libmagic=never-match;;
5607 lt_cv_deplibs_check_method=pass_all
5610 # This must be Linux ELF.
5612 lt_cv_deplibs_check_method=pass_all
5616 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5625 lt_cv_file_magic_cmd=/usr/bin/file
5626 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5630 lt_cv_deplibs_check_method=unknown
5634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5641 osf3* | osf4* | osf5*)
5642 lt_cv_deplibs_check_method=pass_all
5646 lt_cv_deplibs_check_method=pass_all
5650 lt_cv_deplibs_check_method=pass_all
5653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5654 case $host_vendor in
5656 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]'
5657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5660 lt_cv_deplibs_check_method=pass_all
5663 lt_cv_file_magic_cmd='/bin/file'
5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5667 lt_cv_file_magic_cmd='/bin/file'
5668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5669 lt_cv_file_magic_test_file=/lib/libc.so
5672 lt_cv_deplibs_check_method=pass_all
5677 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5678 lt_cv_deplibs_check_method=pass_all
5683 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5684 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5685 file_magic_cmd=$lt_cv_file_magic_cmd
5686 deplibs_check_method=$lt_cv_deplibs_check_method
5687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5692 # If no C compiler was specified, use CC.
5695 # Allow CC to be a program name with arguments.
5699 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5700 if test "${enable_libtool_lock+set}" = set; then
5701 enableval="$enable_libtool_lock"
5704 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5706 # Some flags need to be propagated to the compiler or linker for good
5710 # Find out which ABI we are using.
5711 echo 'int i;' > conftest.$ac_ext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; then
5717 case `/usr/bin/file conftest.$ac_objext` in
5729 # Find out which ABI we are using.
5730 echo '#line 5730 "configure"' > conftest.$ac_ext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732 (eval $ac_compile) 2>&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; then
5736 if test "$lt_cv_prog_gnu_ld" = yes; then
5737 case `/usr/bin/file conftest.$ac_objext` in
5739 LD="${LD-ld} -melf32bsmip"
5742 LD="${LD-ld} -melf32bmipn32"
5745 LD="${LD-ld} -melf64bmip"
5749 case `/usr/bin/file conftest.$ac_objext` in
5765 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5766 # Find out which ABI we are using.
5767 echo 'int i;' > conftest.$ac_ext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; then
5773 case `/usr/bin/file conftest.o` in
5777 LD="${LD-ld} -m elf_i386"
5779 ppc64-*linux*|powerpc64-*linux*)
5780 LD="${LD-ld} -m elf32ppclinux"
5783 LD="${LD-ld} -m elf_s390"
5786 LD="${LD-ld} -m elf32_sparc"
5793 LD="${LD-ld} -m elf_x86_64"
5795 ppc*-*linux*|powerpc*-*linux*)
5796 LD="${LD-ld} -m elf64ppc"
5799 LD="${LD-ld} -m elf64_s390"
5802 LD="${LD-ld} -m elf64_sparc"
5812 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5813 SAVE_CFLAGS="$CFLAGS"
5814 CFLAGS="$CFLAGS -belf"
5815 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5816 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5817 if test "${lt_cv_cc_needs_belf+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 ac_cpp='$CPP $CPPFLAGS'
5822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5826 cat >conftest.$ac_ext <<_ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5841 rm -f conftest.$ac_objext conftest$ac_exeext
5842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5843 (eval $ac_link) 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag"
5851 || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest$ac_exeext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 lt_cv_cc_needs_belf=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 lt_cv_cc_needs_belf=no
5870 rm -f conftest.err conftest.$ac_objext \
5871 conftest$ac_exeext conftest.$ac_ext
5873 ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5880 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5883 CFLAGS="$SAVE_CFLAGS"
5886 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5887 if test -n "$ac_tool_prefix"; then
5888 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 if test -n "$DLLTOOL"; then
5896 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 DLLTOOL=$ac_cv_prog_DLLTOOL
5915 if test -n "$DLLTOOL"; then
5916 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5917 echo "${ECHO_T}$DLLTOOL" >&6
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5924 if test -z "$ac_cv_prog_DLLTOOL"; then
5925 ac_ct_DLLTOOL=$DLLTOOL
5926 # Extract the first word of "dlltool", so it can be a program name with args.
5927 set dummy dlltool; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 if test -n "$ac_ct_DLLTOOL"; then
5934 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5953 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5954 if test -n "$ac_ct_DLLTOOL"; then
5955 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5956 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5962 DLLTOOL=$ac_ct_DLLTOOL
5964 DLLTOOL="$ac_cv_prog_DLLTOOL"
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}as; ac_word=$2
5970 echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5972 if test "${ac_cv_prog_AS+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 if test -n "$AS"; then
5976 ac_cv_prog_AS="$AS" # Let the user override the test.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985 ac_cv_prog_AS="${ac_tool_prefix}as"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 if test -n "$AS"; then
5996 echo "$as_me:$LINENO: result: $AS" >&5
5997 echo "${ECHO_T}$AS" >&6
5999 echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6004 if test -z "$ac_cv_prog_AS"; then
6006 # Extract the first word of "as", so it can be a program name with args.
6007 set dummy as; ac_word=$2
6008 echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 if test -n "$ac_ct_AS"; then
6014 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_ac_ct_AS="as"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6033 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6034 if test -n "$ac_ct_AS"; then
6035 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6036 echo "${ECHO_T}$ac_ct_AS" >&6
6038 echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6050 echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 if test -n "$OBJDUMP"; then
6056 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 OBJDUMP=$ac_cv_prog_OBJDUMP
6075 if test -n "$OBJDUMP"; then
6076 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6077 echo "${ECHO_T}$OBJDUMP" >&6
6079 echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6084 if test -z "$ac_cv_prog_OBJDUMP"; then
6085 ac_ct_OBJDUMP=$OBJDUMP
6086 # Extract the first word of "objdump", so it can be a program name with args.
6087 set dummy objdump; ac_word=$2
6088 echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6090 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 if test -n "$ac_ct_OBJDUMP"; then
6094 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6113 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6114 if test -n "$ac_ct_OBJDUMP"; then
6115 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6116 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6118 echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6
6122 OBJDUMP=$ac_ct_OBJDUMP
6124 OBJDUMP="$ac_cv_prog_OBJDUMP"
6131 need_locks="$enable_libtool_lock"
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6141 # On Suns, sometimes $CPP names a directory.
6142 if test -n "$CPP" && test -d "$CPP"; then
6145 if test -z "$CPP"; then
6146 if test "${ac_cv_prog_CPP+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 # Double quotes because CPP needs to be expanded
6150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6153 for ac_c_preproc_warn_flag in '' yes
6155 # Use a header file that comes with gcc, so configuring glibc
6156 # with a fresh cross-compiler works.
6157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6158 # <limits.h> exists even on freestanding compilers.
6159 # On the NeXT, cc -E runs the code through the compiler's parser,
6160 # not just through cpp. "Syntax error" is here to catch this case.
6161 cat >conftest.$ac_ext <<_ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6168 # include <limits.h>
6170 # include <assert.h>
6174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6177 grep -v '^ *+' conftest.er1 >conftest.err
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } >/dev/null; then
6182 if test -s conftest.err; then
6183 ac_cpp_err=$ac_c_preproc_warn_flag
6184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6191 if test -z "$ac_cpp_err"; then
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 # Broken: fails on valid input.
6200 rm -f conftest.err conftest.$ac_ext
6202 # OK, works on sane cases. Now check whether non-existent headers
6203 # can be detected and how.
6204 cat >conftest.$ac_ext <<_ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <ac_nonexistent.h>
6212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } >/dev/null; then
6220 if test -s conftest.err; then
6221 ac_cpp_err=$ac_c_preproc_warn_flag
6222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6229 if test -z "$ac_cpp_err"; then
6230 # Broken: success on invalid input.
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 # Passes both tests.
6240 rm -f conftest.err conftest.$ac_ext
6243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6244 rm -f conftest.err conftest.$ac_ext
6245 if $ac_preproc_ok; then
6257 echo "$as_me:$LINENO: result: $CPP" >&5
6258 echo "${ECHO_T}$CPP" >&6
6260 for ac_c_preproc_warn_flag in '' yes
6262 # Use a header file that comes with gcc, so configuring glibc
6263 # with a fresh cross-compiler works.
6264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6265 # <limits.h> exists even on freestanding compilers.
6266 # On the NeXT, cc -E runs the code through the compiler's parser,
6267 # not just through cpp. "Syntax error" is here to catch this case.
6268 cat >conftest.$ac_ext <<_ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6275 # include <limits.h>
6277 # include <assert.h>
6281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6284 grep -v '^ *+' conftest.er1 >conftest.err
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } >/dev/null; then
6289 if test -s conftest.err; then
6290 ac_cpp_err=$ac_c_preproc_warn_flag
6291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6298 if test -z "$ac_cpp_err"; then
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 # Broken: fails on valid input.
6307 rm -f conftest.err conftest.$ac_ext
6309 # OK, works on sane cases. Now check whether non-existent headers
6310 # can be detected and how.
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 #include <ac_nonexistent.h>
6319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6322 grep -v '^ *+' conftest.er1 >conftest.err
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null; then
6327 if test -s conftest.err; then
6328 ac_cpp_err=$ac_c_preproc_warn_flag
6329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6336 if test -z "$ac_cpp_err"; then
6337 # Broken: success on invalid input.
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 # Passes both tests.
6347 rm -f conftest.err conftest.$ac_ext
6350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6351 rm -f conftest.err conftest.$ac_ext
6352 if $ac_preproc_ok; then
6355 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6356 See \`config.log' for more details." >&5
6357 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6358 See \`config.log' for more details." >&2;}
6359 { (exit 1); exit 1; }; }
6363 ac_cpp='$CPP $CPPFLAGS'
6364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6370 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6371 if test "${ac_cv_header_stdc+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6393 rm -f conftest.$ac_objext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395 (eval $ac_compile) 2>conftest.er1
6397 grep -v '^ *+' conftest.er1 >conftest.err
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_c_werror_flag"
6403 || test ! -s conftest.err'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; } &&
6409 { ac_try='test -s conftest.$ac_objext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
6415 ac_cv_header_stdc=yes
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 ac_cv_header_stdc=no
6422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 if test $ac_cv_header_stdc = yes; then
6425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6436 $EGREP "memchr" >/dev/null 2>&1; then
6439 ac_cv_header_stdc=no
6445 if test $ac_cv_header_stdc = yes; then
6446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6457 $EGREP "free" >/dev/null 2>&1; then
6460 ac_cv_header_stdc=no
6466 if test $ac_cv_header_stdc = yes; then
6467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6468 if test "$cross_compiling" = yes; then
6471 cat >conftest.$ac_ext <<_ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6478 #if ((' ' & 0x0FF) == 0x020)
6479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6482 # define ISLOWER(c) \
6483 (('a' <= (c) && (c) <= 'i') \
6484 || ('j' <= (c) && (c) <= 'r') \
6485 || ('s' <= (c) && (c) <= 'z'))
6486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6494 for (i = 0; i < 256; i++)
6495 if (XOR (islower (i), ISLOWER (i))
6496 || toupper (i) != TOUPPER (i))
6501 rm -f conftest$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6514 echo "$as_me: program exited with status $ac_status" >&5
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6519 ac_cv_header_stdc=no
6521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6525 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6526 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6527 if test $ac_cv_header_stdc = yes; then
6529 cat >>confdefs.h <<\_ACEOF
6530 #define STDC_HEADERS 1
6535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6546 inttypes.h stdint.h unistd.h
6548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6549 echo "$as_me:$LINENO: checking for $ac_header" >&5
6550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6562 #include <$ac_header>
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>conftest.er1
6568 grep -v '^ *+' conftest.er1 >conftest.err
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -z "$ac_c_werror_flag"
6574 || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest.$ac_objext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 eval "$as_ac_Header=yes"
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 eval "$as_ac_Header=no"
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6598 cat >>confdefs.h <<_ACEOF
6599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 for ac_header in dlfcn.h
6610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612 echo "$as_me:$LINENO: checking for $ac_header" >&5
6613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6620 # Is the header compilable?
6621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 $ac_includes_default
6630 #include <$ac_header>
6632 rm -f conftest.$ac_objext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>conftest.er1
6636 grep -v '^ *+' conftest.er1 >conftest.err
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try='test -z "$ac_c_werror_flag"
6642 || test ! -s conftest.err'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_header_compiler=yes
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6659 ac_header_compiler=no
6661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6663 echo "${ECHO_T}$ac_header_compiler" >&6
6665 # Is the header present?
6666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6668 cat >conftest.$ac_ext <<_ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6674 #include <$ac_header>
6676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } >/dev/null; then
6684 if test -s conftest.err; then
6685 ac_cpp_err=$ac_c_preproc_warn_flag
6686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6693 if test -z "$ac_cpp_err"; then
6694 ac_header_preproc=yes
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_header_preproc=no
6701 rm -f conftest.err conftest.$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6703 echo "${ECHO_T}$ac_header_preproc" >&6
6705 # So? What about this header?
6706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6712 ac_header_preproc=yes
6715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6729 ## --------------------------------------------- ##
6730 ## Report this to <http://www.openldap.org/its/> ##
6731 ## --------------------------------------------- ##
6734 sed "s/^/$as_me: WARNING: /" >&2
6737 echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 eval "$as_ac_Header=\$ac_header_preproc"
6744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6749 cat >>confdefs.h <<_ACEOF
6750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6758 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6760 # find the maximum length of command line arguments
6761 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6762 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6763 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 # On DJGPP, this test can blow up pretty badly due to problems in libc
6772 # (any single argument exceeding 2000 bytes causes a buffer overrun
6773 # during glob expansion). Even if it were fixed, the result of this
6774 # check would be larger than it should be.
6775 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6779 # Under GNU Hurd, this test is not required because there is
6780 # no limit to the length of command line arguments.
6781 # Libtool will interpret -1 as no limit whatsoever
6782 lt_cv_sys_max_cmd_len=-1;
6786 # On Win9x/ME, this test blows up -- it succeeds, but takes
6787 # about 5 minutes as the teststring grows exponentially.
6788 # Worse, since 9x/ME are not pre-emptively multitasking,
6789 # you end up with a "frozen" computer, even though with patience
6790 # the test eventually succeeds (with a max line length of 256k).
6791 # Instead, let's just punt: use the minimum linelength reported by
6792 # all of the supported platforms: 8192 (on NT/2K/XP).
6793 lt_cv_sys_max_cmd_len=8192;
6797 # On AmigaOS with pdksh, this test takes hours, literally.
6798 # So we just punt and use a minimum line length of 8192.
6799 lt_cv_sys_max_cmd_len=8192;
6802 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6803 # This has been around since 386BSD, at least. Likely further.
6804 if test -x /sbin/sysctl; then
6805 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6806 elif test -x /usr/sbin/sysctl; then
6807 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6809 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6811 # And add a safety zone
6812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6816 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6817 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6818 # nice to cause kernel panics so lets avoid the loop below.
6819 # First set a reasonable default.
6820 lt_cv_sys_max_cmd_len=16384
6822 if test -x /sbin/sysconfig; then
6823 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6824 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6829 # If test is not a shell built-in, we'll probably end up computing a
6830 # maximum length that is only half of the actual maximum length, but
6832 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6833 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6834 = "XX$teststring") >/dev/null 2>&1 &&
6835 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6836 lt_cv_sys_max_cmd_len=$new_result &&
6837 test $i != 17 # 1/2 MB should be enough
6840 teststring=$teststring$teststring
6843 # Add a significant safety factor because C++ compilers can tack on massive
6844 # amounts of additional arguments before passing them to the linker.
6845 # It appears as though 1/2 is a usable value.
6846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6852 if test -n $lt_cv_sys_max_cmd_len ; then
6853 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6854 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6856 echo "$as_me:$LINENO: result: none" >&5
6857 echo "${ECHO_T}none" >&6
6863 # Check for command to grab the raw symbol name followed by C symbol from nm.
6864 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6865 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6866 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 # These are sane defaults that work on at least a few old systems.
6871 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6873 # Character class describing NM global symbol codes.
6874 symcode='[BCDEGRST]'
6876 # Regexp to match symbols that can be accessed directly from C.
6877 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6879 # Transform an extracted symbol line into a proper C declaration
6880 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6882 # Transform an extracted symbol line into symbol name and symbol address
6883 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'"
6885 # Define system-specific variables.
6890 cygwin* | mingw* | pw32*)
6891 symcode='[ABCDGISTW]'
6893 hpux*) # Its linker distinguishes data from code symbols
6894 if test "$host_cpu" = ia64; then
6895 symcode='[ABCDEGRST]'
6897 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6898 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'"
6901 if test "$host_cpu" = ia64; then
6902 symcode='[ABCDGIRSTW]'
6903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6904 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'"
6908 symcode='[BCDEGRST]'
6911 symcode='[BCDEGQRST]'
6921 # Handle CRLF in mingw tool chain
6925 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6929 # If we're using GNU nm, then use its standard symbol codes.
6930 case `$NM -V 2>&1` in
6931 *GNU* | *'with BFD'*)
6932 symcode='[ABCDGIRSTW]' ;;
6935 # Try without a prefix undercore, then with it.
6936 for ac_symprfx in "" "_"; do
6938 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6939 symxfrm="\\1 $ac_symprfx\\2 \\2"
6941 # Write the raw and C identifiers.
6942 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6944 # Check to see that the pipe works correctly.
6948 cat > conftest.$ac_ext <<EOF
6953 void nm_test_func(){}
6957 int main(){nm_test_var='a';nm_test_func();return(0);}
6960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6961 (eval $ac_compile) 2>&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; then
6965 # Now try to grab the symbols.
6967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } && test -s "$nlist"; then
6972 # Try sorting and uniquifying the output.
6973 if sort "$nlist" | uniq > "$nlist"T; then
6974 mv -f "$nlist"T "$nlist"
6979 # Make sure that we snagged all the symbols we need.
6980 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6981 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6982 cat <<EOF > conftest.$ac_ext
6988 # Now generate the symbol file.
6989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6991 cat <<EOF >> conftest.$ac_ext
6992 #if defined (__STDC__) && __STDC__
6993 # define lt_ptr_t void *
6995 # define lt_ptr_t char *
6999 /* The mapping between symbol names and symbols. */
7004 lt_preloaded_symbols[] =
7007 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7008 cat <<\EOF >> conftest.$ac_ext
7016 # Now try linking the two files.
7017 mv conftest.$ac_objext conftstm.$ac_objext
7018 lt_save_LIBS="$LIBS"
7019 lt_save_CFLAGS="$CFLAGS"
7020 LIBS="conftstm.$ac_objext"
7021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023 (eval $ac_link) 2>&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7029 LIBS="$lt_save_LIBS"
7030 CFLAGS="$lt_save_CFLAGS"
7032 echo "cannot find nm_test_func in $nlist" >&5
7035 echo "cannot find nm_test_var in $nlist" >&5
7038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7041 echo "$progname: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7044 rm -f conftest* conftst*
7046 # Do not use the global_symbol_pipe unless it works.
7047 if test "$pipe_works" = yes; then
7050 lt_cv_sys_global_symbol_pipe=
7056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7057 lt_cv_sys_global_symbol_to_cdecl=
7059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7060 echo "$as_me:$LINENO: result: failed" >&5
7061 echo "${ECHO_T}failed" >&6
7063 echo "$as_me:$LINENO: result: ok" >&5
7064 echo "${ECHO_T}ok" >&6
7067 echo "$as_me:$LINENO: checking for objdir" >&5
7068 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7069 if test "${lt_cv_objdir+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 rm -f .libs 2>/dev/null
7073 mkdir .libs 2>/dev/null
7074 if test -d .libs; then
7077 # MS-DOS does not allow filenames that begin with a dot.
7080 rmdir .libs 2>/dev/null
7082 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7083 echo "${ECHO_T}$lt_cv_objdir" >&6
7084 objdir=$lt_cv_objdir
7092 # AIX sometimes has problems with the GCC collect2 program. For some
7093 # reason, if we set the COLLECT_NAMES environment variable, the problems
7094 # vanish in a puff of smoke.
7095 if test "X${COLLECT_NAMES+set}" != Xset; then
7097 export COLLECT_NAMES
7102 # Sed substitution that helps us do robust quoting. It backslashifies
7103 # metacharacters that are still active within double-quoted strings.
7104 Xsed='sed -e 1s/^X//'
7105 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7107 # Same as above, but do not quote variable references.
7108 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7110 # Sed substitution to delay expansion of an escaped shell variable in a
7111 # double_quote_subst'ed string.
7112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7114 # Sed substitution to avoid accidental globbing in evaled expressions
7115 no_glob_subst='s/\*/\\\*/g'
7121 default_ofile=libtool
7122 can_build_shared=yes
7124 # All known linkers require a `.a' archive for static linking (except MSVC,
7125 # which needs '.lib').
7127 ltmain="$ac_aux_dir/ltmain.sh"
7128 ofile="$default_ofile"
7129 with_gnu_ld="$lt_cv_prog_gnu_ld"
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}ar; ac_word=$2
7134 echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136 if test "${ac_cv_prog_AR+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 if test -n "$AR"; then
7140 ac_cv_prog_AR="$AR" # Let the user override the test.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_AR="${ac_tool_prefix}ar"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 if test -n "$AR"; then
7160 echo "$as_me:$LINENO: result: $AR" >&5
7161 echo "${ECHO_T}$AR" >&6
7163 echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7168 if test -z "$ac_cv_prog_AR"; then
7170 # Extract the first word of "ar", so it can be a program name with args.
7171 set dummy ar; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$ac_ct_AR"; then
7178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_ac_ct_AR="ar"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7198 if test -n "$ac_ct_AR"; then
7199 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7200 echo "${ECHO_T}$ac_ct_AR" >&6
7202 echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7214 echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7216 if test "${ac_cv_prog_RANLIB+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 if test -n "$RANLIB"; then
7220 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 RANLIB=$ac_cv_prog_RANLIB
7239 if test -n "$RANLIB"; then
7240 echo "$as_me:$LINENO: result: $RANLIB" >&5
7241 echo "${ECHO_T}$RANLIB" >&6
7243 echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6
7248 if test -z "$ac_cv_prog_RANLIB"; then
7249 ac_ct_RANLIB=$RANLIB
7250 # Extract the first word of "ranlib", so it can be a program name with args.
7251 set dummy ranlib; ac_word=$2
7252 echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 if test -n "$ac_ct_RANLIB"; then
7258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_ac_ct_RANLIB="ranlib"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7277 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7278 if test -n "$ac_ct_RANLIB"; then
7279 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7280 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7282 echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7286 RANLIB=$ac_ct_RANLIB
7288 RANLIB="$ac_cv_prog_RANLIB"
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}strip; ac_word=$2
7294 echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7296 if test "${ac_cv_prog_STRIP+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 if test -n "$STRIP"; then
7300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 STRIP=$ac_cv_prog_STRIP
7319 if test -n "$STRIP"; then
7320 echo "$as_me:$LINENO: result: $STRIP" >&5
7321 echo "${ECHO_T}$STRIP" >&6
7323 echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7328 if test -z "$ac_cv_prog_STRIP"; then
7330 # Extract the first word of "strip", so it can be a program name with args.
7331 set dummy strip; ac_word=$2
7332 echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7334 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 if test -n "$ac_ct_STRIP"; then
7338 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_ac_ct_STRIP="strip"
7348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7358 if test -n "$ac_ct_STRIP"; then
7359 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7360 echo "${ECHO_T}$ac_ct_STRIP" >&6
7362 echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7368 STRIP="$ac_cv_prog_STRIP"
7373 old_CFLAGS="$CFLAGS"
7375 # Set sane defaults for various variables
7376 test -z "$AR" && AR=ar
7377 test -z "$AR_FLAGS" && AR_FLAGS=cru
7378 test -z "$AS" && AS=as
7379 test -z "$CC" && CC=cc
7380 test -z "$LTCC" && LTCC=$CC
7381 test -z "$DLLTOOL" && DLLTOOL=dlltool
7382 test -z "$LD" && LD=ld
7383 test -z "$LN_S" && LN_S="ln -s"
7384 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7385 test -z "$NM" && NM=nm
7386 test -z "$SED" && SED=sed
7387 test -z "$OBJDUMP" && OBJDUMP=objdump
7388 test -z "$RANLIB" && RANLIB=:
7389 test -z "$STRIP" && STRIP=:
7390 test -z "$ac_objext" && ac_objext=o
7392 # Determine commands to create old-style static archives.
7393 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7394 old_postinstall_cmds='chmod 644 $oldlib'
7395 old_postuninstall_cmds=
7397 if test -n "$RANLIB"; then
7400 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7403 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7406 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7409 for cc_temp in $compiler""; do
7411 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7412 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7417 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7420 # Only perform the check for file, if the check method requires it
7421 case $deplibs_check_method in
7423 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7424 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7425 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7426 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7434 lt_save_MAGIC_CMD="$MAGIC_CMD"
7435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7436 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7437 for ac_dir in $ac_dummy; do
7439 test -z "$ac_dir" && ac_dir=.
7440 if test -f $ac_dir/${ac_tool_prefix}file; then
7441 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7442 if test -n "$file_magic_test_file"; then
7443 case $deplibs_check_method in
7445 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7448 $EGREP "$file_magic_regex" > /dev/null; then
7453 *** Warning: the command libtool uses to detect shared libraries,
7454 *** $file_magic_cmd, produces output that libtool cannot recognize.
7455 *** The result is that libtool may fail to recognize shared libraries
7456 *** as such. This will affect the creation of libtool libraries that
7457 *** depend on shared libraries, but programs linked with such libtool
7458 *** libraries will work regardless of this problem. Nevertheless, you
7459 *** may want to report the problem to your system manager and/or to
7460 *** bug-libtool@gnu.org
7470 MAGIC_CMD="$lt_save_MAGIC_CMD"
7475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7476 if test -n "$MAGIC_CMD"; then
7477 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7478 echo "${ECHO_T}$MAGIC_CMD" >&6
7480 echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6
7484 if test -z "$lt_cv_path_MAGIC_CMD"; then
7485 if test -n "$ac_tool_prefix"; then
7486 echo "$as_me:$LINENO: checking for file" >&5
7487 echo $ECHO_N "checking for file... $ECHO_C" >&6
7488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7496 lt_save_MAGIC_CMD="$MAGIC_CMD"
7497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7499 for ac_dir in $ac_dummy; do
7501 test -z "$ac_dir" && ac_dir=.
7502 if test -f $ac_dir/file; then
7503 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7504 if test -n "$file_magic_test_file"; then
7505 case $deplibs_check_method in
7507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7510 $EGREP "$file_magic_regex" > /dev/null; then
7515 *** Warning: the command libtool uses to detect shared libraries,
7516 *** $file_magic_cmd, produces output that libtool cannot recognize.
7517 *** The result is that libtool may fail to recognize shared libraries
7518 *** as such. This will affect the creation of libtool libraries that
7519 *** depend on shared libraries, but programs linked with such libtool
7520 *** libraries will work regardless of this problem. Nevertheless, you
7521 *** may want to report the problem to your system manager and/or to
7522 *** bug-libtool@gnu.org
7532 MAGIC_CMD="$lt_save_MAGIC_CMD"
7537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7538 if test -n "$MAGIC_CMD"; then
7539 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7540 echo "${ECHO_T}$MAGIC_CMD" >&6
7542 echo "$as_me:$LINENO: result: no" >&5
7543 echo "${ECHO_T}no" >&6
7556 enable_win32_dll=yes
7558 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7559 if test "${enable_libtool_lock+set}" = set; then
7560 enableval="$enable_libtool_lock"
7563 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7566 # Check whether --with-pic or --without-pic was given.
7567 if test "${with_pic+set}" = set; then
7573 test -z "$pic_mode" && pic_mode=default
7575 # Use C for the default configuration in the libtool script
7579 ac_cpp='$CPP $CPPFLAGS'
7580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585 # Source file extension for C test sources.
7588 # Object file extension for compiled C test sources.
7592 # Code to be used in simple compile tests
7593 lt_simple_compile_test_code="int some_variable = 0;\n"
7595 # Code to be used in simple link tests
7596 lt_simple_link_test_code='int main(){return(0);}\n'
7599 # If no C compiler was specified, use CC.
7602 # Allow CC to be a program name with arguments.
7606 # save warnings/boilerplate of simple test code
7607 ac_outfile=conftest.$ac_objext
7608 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7609 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7610 _lt_compiler_boilerplate=`cat conftest.err`
7613 ac_outfile=conftest.$ac_objext
7614 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7615 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7616 _lt_linker_boilerplate=`cat conftest.err`
7621 # Check for any special shared library compilation flags.
7624 if test "$GCC" = no; then
7627 lt_prog_cc_shlib='-belf'
7631 if test -n "$lt_prog_cc_shlib"; then
7632 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7633 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7634 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7636 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7637 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7638 lt_cv_prog_cc_can_build_shared=no
7644 # Check to make sure the static flag actually works.
7646 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7647 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7648 if test "${lt_prog_compiler_static_works+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 lt_prog_compiler_static_works=no
7652 save_LDFLAGS="$LDFLAGS"
7653 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7654 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7656 # The linker can only warn and ignore the option if not recognized
7657 # So say no if there are warnings
7658 if test -s conftest.err; then
7659 # Append any errors to the config.log.
7660 cat conftest.err 1>&5
7661 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7662 $SED '/^$/d' conftest.err >conftest.er2
7663 if diff conftest.exp conftest.er2 >/dev/null; then
7664 lt_prog_compiler_static_works=yes
7667 lt_prog_compiler_static_works=yes
7671 LDFLAGS="$save_LDFLAGS"
7674 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7675 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7677 if test x"$lt_prog_compiler_static_works" = xyes; then
7680 lt_prog_compiler_static=
7686 lt_prog_compiler_no_builtin_flag=
7688 if test "$GCC" = yes; then
7689 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7692 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7693 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 lt_cv_prog_compiler_rtti_exceptions=no
7698 ac_outfile=conftest.$ac_objext
7699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7700 lt_compiler_flag="-fno-rtti -fno-exceptions"
7701 # Insert the option either (1) after the last *FLAGS variable, or
7702 # (2) before a word containing "conftest.", or (3) at the end.
7703 # Note that $ac_compile itself does not contain backslashes and begins
7704 # with a dollar sign (not a hyphen), so the echo should work correctly.
7705 # The option is referenced via a variable to avoid confusing sed.
7706 lt_compile=`echo "$ac_compile" | $SED \
7707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7709 -e 's:$: $lt_compiler_flag:'`
7710 (eval echo "\"\$as_me:7710: $lt_compile\"" >&5)
7711 (eval "$lt_compile" 2>conftest.err)
7713 cat conftest.err >&5
7714 echo "$as_me:7714: \$? = $ac_status" >&5
7715 if (exit $ac_status) && test -s "$ac_outfile"; then
7716 # The compiler can only warn and ignore the option if not recognized
7717 # So say no if there are warnings other than the usual output.
7718 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7719 $SED '/^$/d' conftest.err >conftest.er2
7720 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7721 lt_cv_prog_compiler_rtti_exceptions=yes
7727 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7728 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7730 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7731 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7738 lt_prog_compiler_wl=
7739 lt_prog_compiler_pic=
7740 lt_prog_compiler_static=
7742 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7743 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7745 if test "$GCC" = yes; then
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_static='-static'
7751 # All AIX code is PIC.
7752 if test "$host_cpu" = ia64; then
7753 # AIX 5 now supports IA64 processor
7754 lt_prog_compiler_static='-Bstatic'
7759 # FIXME: we need at least 68020 code to build shared libraries, but
7760 # adding the `-m68020' flag to GCC prevents building anything better,
7762 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7765 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7766 # PIC is the default for these OSes.
7769 mingw* | pw32* | os2*)
7770 # This hack is so that the source file can tell whether it is being
7771 # built for inclusion in a dll (and should export symbols for example).
7772 lt_prog_compiler_pic='-DDLL_EXPORT'
7775 darwin* | rhapsody*)
7776 # PIC is the default on this platform
7777 # Common symbols not allowed in MH_DYLIB files
7778 lt_prog_compiler_pic='-fno-common'
7782 # Just because we use GCC doesn't mean we suddenly get shared libraries
7783 # on systems that don't support them.
7784 lt_prog_compiler_can_build_shared=no
7789 if test -d /usr/nec; then
7790 lt_prog_compiler_pic=-Kconform_pic
7795 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7802 lt_prog_compiler_pic='-fPIC'
7808 lt_prog_compiler_pic='-fPIC'
7812 # PORTME Check for flag to pass linker flags through the system compiler.
7815 lt_prog_compiler_wl='-Wl,'
7816 if test "$host_cpu" = ia64; then
7817 # AIX 5 now supports IA64 processor
7818 lt_prog_compiler_static='-Bstatic'
7820 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7824 # PIC is the default on this platform
7825 # Common symbols not allowed in MH_DYLIB files
7826 case $cc_basename in
7828 lt_prog_compiler_pic='-qnocommon'
7829 lt_prog_compiler_wl='-Wl,'
7834 mingw* | pw32* | os2*)
7835 # This hack is so that the source file can tell whether it is being
7836 # built for inclusion in a dll (and should export symbols for example).
7837 lt_prog_compiler_pic='-DDLL_EXPORT'
7840 hpux9* | hpux10* | hpux11*)
7841 lt_prog_compiler_wl='-Wl,'
7842 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7849 lt_prog_compiler_pic='+Z'
7852 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7853 lt_prog_compiler_static='${wl}-a ${wl}archive'
7856 irix5* | irix6* | nonstopux*)
7857 lt_prog_compiler_wl='-Wl,'
7858 # PIC (with -KPIC) is the default.
7859 lt_prog_compiler_static='-non_shared'
7863 lt_prog_compiler_pic='-KPIC'
7864 lt_prog_compiler_static='-Bstatic'
7868 case $cc_basename in
7870 lt_prog_compiler_wl='-Wl,'
7871 lt_prog_compiler_pic='-KPIC'
7872 lt_prog_compiler_static='-static'
7874 pgcc* | pgf77* | pgf90* | pgf95*)
7875 # Portland Group compilers (*not* the Pentium gcc compiler,
7876 # which looks to be a dead project)
7877 lt_prog_compiler_wl='-Wl,'
7878 lt_prog_compiler_pic='-fpic'
7879 lt_prog_compiler_static='-Bstatic'
7882 lt_prog_compiler_wl='-Wl,'
7883 # All Alpha code is PIC.
7884 lt_prog_compiler_static='-non_shared'
7889 osf3* | osf4* | osf5*)
7890 lt_prog_compiler_wl='-Wl,'
7891 # All OSF/1 code is PIC.
7892 lt_prog_compiler_static='-non_shared'
7896 lt_prog_compiler_pic='-Kpic'
7897 lt_prog_compiler_static='-dn'
7901 lt_prog_compiler_pic='-KPIC'
7902 lt_prog_compiler_static='-Bstatic'
7903 case $cc_basename in
7905 lt_prog_compiler_wl='-Qoption ld ';;
7907 lt_prog_compiler_wl='-Wl,';;
7912 lt_prog_compiler_wl='-Qoption ld '
7913 lt_prog_compiler_pic='-PIC'
7914 lt_prog_compiler_static='-Bstatic'
7917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7918 lt_prog_compiler_wl='-Wl,'
7919 lt_prog_compiler_pic='-KPIC'
7920 lt_prog_compiler_static='-Bstatic'
7924 if test -d /usr/nec ;then
7925 lt_prog_compiler_pic='-Kconform_pic'
7926 lt_prog_compiler_static='-Bstatic'
7931 lt_prog_compiler_wl='-Wl,'
7932 lt_prog_compiler_can_build_shared=no
7936 lt_prog_compiler_pic='-pic'
7937 lt_prog_compiler_static='-Bstatic'
7941 lt_prog_compiler_can_build_shared=no
7946 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7947 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7950 # Check to make sure the PIC flag actually works.
7952 if test -n "$lt_prog_compiler_pic"; then
7954 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7955 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7956 if test "${lt_prog_compiler_pic_works+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 lt_prog_compiler_pic_works=no
7960 ac_outfile=conftest.$ac_objext
7961 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7962 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7963 # Insert the option either (1) after the last *FLAGS variable, or
7964 # (2) before a word containing "conftest.", or (3) at the end.
7965 # Note that $ac_compile itself does not contain backslashes and begins
7966 # with a dollar sign (not a hyphen), so the echo should work correctly.
7967 # The option is referenced via a variable to avoid confusing sed.
7968 lt_compile=`echo "$ac_compile" | $SED \
7969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7971 -e 's:$: $lt_compiler_flag:'`
7972 (eval echo "\"\$as_me:7972: $lt_compile\"" >&5)
7973 (eval "$lt_compile" 2>conftest.err)
7975 cat conftest.err >&5
7976 echo "$as_me:7976: \$? = $ac_status" >&5
7977 if (exit $ac_status) && test -s "$ac_outfile"; then
7978 # The compiler can only warn and ignore the option if not recognized
7979 # So say no if there are warnings other than the usual output.
7980 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7981 $SED '/^$/d' conftest.err >conftest.er2
7982 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7983 lt_prog_compiler_pic_works=yes
7989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7990 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7992 if test x"$lt_prog_compiler_pic_works" = xyes; then
7993 case $lt_prog_compiler_pic in
7995 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7998 lt_prog_compiler_pic=
7999 lt_prog_compiler_can_build_shared=no
8004 # For platforms which do not support PIC, -DPIC is meaningless:
8006 lt_prog_compiler_pic=
8009 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8013 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8014 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8015 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 lt_cv_prog_compiler_c_o=no
8019 $rm -r conftest 2>/dev/null
8023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8025 lt_compiler_flag="-o out/conftest2.$ac_objext"
8026 # Insert the option either (1) after the last *FLAGS variable, or
8027 # (2) before a word containing "conftest.", or (3) at the end.
8028 # Note that $ac_compile itself does not contain backslashes and begins
8029 # with a dollar sign (not a hyphen), so the echo should work correctly.
8030 lt_compile=`echo "$ac_compile" | $SED \
8031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8033 -e 's:$: $lt_compiler_flag:'`
8034 (eval echo "\"\$as_me:8034: $lt_compile\"" >&5)
8035 (eval "$lt_compile" 2>out/conftest.err)
8037 cat out/conftest.err >&5
8038 echo "$as_me:8038: \$? = $ac_status" >&5
8039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8041 # The compiler can only warn and ignore the option if not recognized
8042 # So say no if there are warnings
8043 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8044 $SED '/^$/d' out/conftest.err >out/conftest.er2
8045 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8046 lt_cv_prog_compiler_c_o=yes
8051 # SGI C++ compiler will create directory out/ii_files/ for
8052 # template instantiation
8053 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8054 $rm out/* && rmdir out
8060 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8061 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8064 hard_links="nottested"
8065 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8066 # do not overwrite the value of need_locks provided by the user
8067 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8068 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8073 ln conftest.a conftest.b 2>&5 || hard_links=no
8074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8075 echo "$as_me:$LINENO: result: $hard_links" >&5
8076 echo "${ECHO_T}$hard_links" >&6
8077 if test "$hard_links" = no; then
8078 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8079 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8086 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8090 allow_undefined_flag=
8091 enable_shared_with_static_runtimes=no
8093 archive_expsym_cmds=
8094 old_archive_From_new_cmds=
8095 old_archive_from_expsyms_cmds=
8096 export_dynamic_flag_spec=
8097 whole_archive_flag_spec=
8098 thread_safe_flag_spec=
8099 hardcode_libdir_flag_spec=
8100 hardcode_libdir_flag_spec_ld=
8101 hardcode_libdir_separator=
8104 hardcode_shlibpath_var=unsupported
8105 link_all_deplibs=unknown
8106 hardcode_automatic=no
8109 always_export_symbols=no
8110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8111 # include_expsyms should be a list of space-separated symbols to be *always*
8112 # included in the symbol list
8114 # exclude_expsyms can be an extended regexp of symbols to exclude
8115 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8116 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8117 # as well as any symbol that contains `d'.
8118 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8119 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8120 # platforms (ab)use it in PIC code, but their linkers get confused if
8121 # the symbol is explicitly referenced. Since portable code cannot
8122 # rely on this symbol name, it's probably fine to never include it in
8123 # preloaded symbol tables.
8124 extract_expsyms_cmds=
8125 # Just being paranoid about ensuring that cc_basename is set.
8126 for cc_temp in $compiler""; do
8128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8137 cygwin* | mingw* | pw32*)
8138 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8139 # When not using gcc, we currently assume that we are using
8140 # Microsoft Visual C++.
8141 if test "$GCC" != yes; then
8151 if test "$with_gnu_ld" = yes; then
8152 # If archive_cmds runs LD, not CC, wlarc should be empty
8155 # Set some defaults for GNU ld with shared library support. These
8156 # are reset later if shared libraries are not supported. Putting them
8157 # here allows them to be overridden if necessary.
8158 runpath_var=LD_RUN_PATH
8159 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8160 export_dynamic_flag_spec='${wl}--export-dynamic'
8161 # ancient GNU ld didn't support --whole-archive et. al.
8162 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8163 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8165 whole_archive_flag_spec=
8167 supports_anon_versioning=no
8168 case `$LD -v 2>/dev/null` in
8169 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8170 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8171 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8172 *\ 2.11.*) ;; # other 2.11 versions
8173 *) supports_anon_versioning=yes ;;
8176 # See if GNU ld supports shared libraries.
8178 aix3* | aix4* | aix5*)
8179 # On AIX/PPC, the GNU linker is very broken
8180 if test "$host_cpu" != ia64; then
8184 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8185 *** to be unable to reliably create shared libraries on AIX.
8186 *** Therefore, libtool is disabling shared libraries support. If you
8187 *** really care for shared libraries, you may want to modify your PATH
8188 *** so that a non-GNU linker is found, and then restart.
8195 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)'
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 hardcode_minus_L=yes
8199 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8200 # that the semantics of dynamic libraries on AmigaOS, at least up
8201 # to version 4, is to share data among multiple programs linked
8202 # with the same dynamic library. Since this doesn't match the
8203 # behavior of shared libraries on other platforms, we can't use
8209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8210 allow_undefined_flag=unsupported
8211 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8212 # support --undefined. This deserves some investigation. FIXME
8213 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8219 cygwin* | mingw* | pw32*)
8220 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8221 # as there is no search path for DLLs.
8222 hardcode_libdir_flag_spec='-L$libdir'
8223 allow_undefined_flag=unsupported
8224 always_export_symbols=no
8225 enable_shared_with_static_runtimes=yes
8226 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8228 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8230 # If the export-symbols file already is a .def file (1st line
8231 # is EXPORTS), use it as is; otherwise, prepend...
8232 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8233 cp $export_symbols $output_objdir/$soname.def;
8235 echo EXPORTS > $output_objdir/$soname.def;
8236 cat $export_symbols >> $output_objdir/$soname.def;
8238 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8247 case $cc_basename,$host_cpu in
8248 pgcc*) # Portland Group C compiler
8249 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'
8250 tmp_addflag=' $pic_flag'
8252 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8253 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'
8254 tmp_addflag=' $pic_flag -Mnomain' ;;
8255 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8256 tmp_addflag=' -i_dynamic' ;;
8257 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8258 tmp_addflag=' -i_dynamic -nofor_main' ;;
8259 ifc* | ifort*) # Intel Fortran compiler
8260 tmp_addflag=' -nofor_main' ;;
8262 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264 if test $supports_anon_versioning = yes; then
8265 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8267 $echo "local: *; };" >> $output_objdir/$libname.ver~
8268 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8277 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8286 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8291 *** create shared libraries on Solaris systems. Therefore, libtool
8292 *** is disabling shared libraries support. We urge you to upgrade GNU
8293 *** binutils to release 2.9.1 or newer. Another option is to modify
8294 *** your PATH or compiler configuration so that the native linker is
8295 *** used, and then restart.
8298 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8307 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8310 hardcode_shlibpath_var=no
8314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8316 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8323 if test "$ld_shlibs" = no; then
8325 hardcode_libdir_flag_spec=
8326 export_dynamic_flag_spec=
8327 whole_archive_flag_spec=
8330 # PORTME fill in a description of your system's linker (not GNU ld)
8333 allow_undefined_flag=unsupported
8334 always_export_symbols=yes
8335 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'
8336 # Note: this linker hardcodes the directories in LIBPATH if there
8337 # are no directories specified by -L.
8338 hardcode_minus_L=yes
8339 if test "$GCC" = yes && test -z "$link_static_flag"; then
8340 # Neither direct hardcoding nor static linking is supported with a
8342 hardcode_direct=unsupported
8347 if test "$host_cpu" = ia64; then
8348 # On IA64, the linker does run time linking by default, so we don't
8349 # have to do anything special.
8350 aix_use_runtimelinking=no
8351 exp_sym_flag='-Bexport'
8354 # If we're using GNU nm, then we don't want the "-C" option.
8355 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8356 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8357 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'
8359 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'
8361 aix_use_runtimelinking=no
8363 # Test if we are trying to use run time linking or normal
8364 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8365 # need to do runtime linking.
8366 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8367 for ld_flag in $LDFLAGS; do
8368 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8369 aix_use_runtimelinking=yes
8375 exp_sym_flag='-bexport'
8376 no_entry_flag='-bnoentry'
8379 # When large executables or shared objects are built, AIX ld can
8380 # have problems creating the table of contents. If linking a library
8381 # or program results in "error TOC overflow" add -mminimal-toc to
8382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8387 hardcode_libdir_separator=':'
8388 link_all_deplibs=yes
8390 if test "$GCC" = yes; then
8391 case $host_os in aix4.[012]|aix4.[012].*)
8392 # We only want to do this on AIX 4.2 and lower, the check
8393 # below for broken collect2 doesn't work under 4.3+
8394 collect2name=`${CC} -print-prog-name=collect2`
8395 if test -f "$collect2name" && \
8396 strings "$collect2name" | grep resolve_lib_name >/dev/null
8398 # We have reworked collect2
8401 # We have old collect2
8402 hardcode_direct=unsupported
8403 # It fails to find uninstalled libraries when the uninstalled
8404 # path is not listed in the libpath. Setting hardcode_minus_L
8405 # to unsupported forces relinking
8406 hardcode_minus_L=yes
8407 hardcode_libdir_flag_spec='-L$libdir'
8408 hardcode_libdir_separator=
8411 shared_flag='-shared'
8412 if test "$aix_use_runtimelinking" = yes; then
8413 shared_flag="$shared_flag "'${wl}-G'
8417 if test "$host_cpu" = ia64; then
8418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8419 # chokes on -Wl,-G. The following line is correct:
8422 if test "$aix_use_runtimelinking" = yes; then
8423 shared_flag='${wl}-G'
8425 shared_flag='${wl}-bM:SRE'
8430 # It seems that -bexpall does not export symbols beginning with
8431 # underscore (_), so it is better to generate a list of symbols to export.
8432 always_export_symbols=yes
8433 if test "$aix_use_runtimelinking" = yes; then
8434 # Warning - without using the other runtime loading flags (-brtl),
8435 # -berok will link without error, but may produce a broken library.
8436 allow_undefined_flag='-berok'
8437 # Determine the default libpath from the value encoded in an empty executable.
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8478 # Check for a 64-bit object if we didn't find anything.
8479 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; }
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8486 rm -f conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8490 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8491 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"
8493 if test "$host_cpu" = ia64; then
8494 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8495 allow_undefined_flag="-z nodefs"
8496 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"
8498 # Determine the default libpath from the value encoded in an empty executable.
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag"
8524 || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try='test -s conftest$ac_exeext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8539 # Check for a 64-bit object if we didn't find anything.
8540 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; }
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8547 rm -f conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8552 # Warning - without using the other run time loading flags,
8553 # -berok will link without error, but may produce a broken library.
8554 no_undefined_flag=' ${wl}-bernotok'
8555 allow_undefined_flag=' ${wl}-berok'
8556 # -bexpall does not export symbols beginning with underscore (_)
8557 always_export_symbols=yes
8558 # Exported symbols can be pulled into shared objects from archives
8559 whole_archive_flag_spec=' '
8560 archive_cmds_need_lc=yes
8561 # This is similar to how AIX traditionally builds its shared libraries.
8562 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'
8568 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)'
8569 hardcode_libdir_flag_spec='-L$libdir'
8570 hardcode_minus_L=yes
8571 # see comment about different semantics on the GNU ld section
8576 export_dynamic_flag_spec=-rdynamic
8579 cygwin* | mingw* | pw32*)
8580 # When not using gcc, we currently assume that we are using
8581 # Microsoft Visual C++.
8582 # hardcode_libdir_flag_spec is actually meaningless, as there is
8583 # no search path for DLLs.
8584 hardcode_libdir_flag_spec=' '
8585 allow_undefined_flag=unsupported
8586 # Tell ltmain to make .lib files, not .a files.
8588 # Tell ltmain to make .dll files, not .so files.
8590 # FIXME: Setting linknames here is a bad hack.
8591 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8592 # The linker will automatically build a .lib file if we build a DLL.
8593 old_archive_From_new_cmds='true'
8594 # FIXME: Should let the user specify the lib program.
8595 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8596 fix_srcfile_path='`cygpath -w "$srcfile"`'
8597 enable_shared_with_static_runtimes=yes
8600 darwin* | rhapsody*)
8602 rhapsody* | darwin1.[012])
8603 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8606 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8607 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8609 case ${MACOSX_DEPLOYMENT_TARGET} in
8611 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8614 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8620 archive_cmds_need_lc=no
8622 hardcode_automatic=yes
8623 hardcode_shlibpath_var=unsupported
8624 whole_archive_flag_spec=''
8625 link_all_deplibs=yes
8626 if test "$GCC" = yes ; then
8627 output_verbose_link_cmd='echo'
8628 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8629 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8630 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8631 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}'
8632 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}'
8634 case $cc_basename in
8636 output_verbose_link_cmd='echo'
8637 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8638 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8640 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}'
8641 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}'
8651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8652 hardcode_libdir_flag_spec='-L$libdir'
8653 hardcode_shlibpath_var=no
8660 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8661 # support. Future versions do this automatically, but an explicit c++rt0.o
8662 # does not break anything, and helps significantly (at the cost of a little
8665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8666 hardcode_libdir_flag_spec='-R$libdir'
8668 hardcode_shlibpath_var=no
8671 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8675 hardcode_minus_L=yes
8676 hardcode_shlibpath_var=no
8679 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8680 freebsd* | kfreebsd*-gnu | dragonfly*)
8681 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8682 hardcode_libdir_flag_spec='-R$libdir'
8684 hardcode_shlibpath_var=no
8688 if test "$GCC" = yes; then
8689 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'
8691 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'
8693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8694 hardcode_libdir_separator=:
8697 # hardcode_minus_L: Not really in the search PATH,
8698 # but as the default location of the library.
8699 hardcode_minus_L=yes
8700 export_dynamic_flag_spec='${wl}-E'
8704 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8707 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8716 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8723 if test "$with_gnu_ld" = no; then
8726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8727 hardcode_libdir_flag_spec_ld='+b $libdir'
8728 hardcode_libdir_separator=:
8730 hardcode_shlibpath_var=no
8733 hardcode_libdir_flag_spec='-L$libdir'
8735 hardcode_shlibpath_var=no
8737 # hardcode_minus_L: Not really in the search PATH,
8738 # but as the default location of the library.
8739 hardcode_minus_L=yes
8742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8743 hardcode_libdir_separator=:
8745 export_dynamic_flag_spec='${wl}-E'
8747 # hardcode_minus_L: Not really in the search PATH,
8748 # but as the default location of the library.
8749 hardcode_minus_L=yes
8755 irix5* | irix6* | nonstopux*)
8756 if test "$GCC" = yes; then
8757 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'
8759 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'
8760 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8763 hardcode_libdir_separator=:
8764 link_all_deplibs=yes
8768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8773 hardcode_libdir_flag_spec='-R$libdir'
8775 hardcode_shlibpath_var=no
8779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782 hardcode_libdir_separator=:
8783 hardcode_shlibpath_var=no
8788 hardcode_shlibpath_var=no
8789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8791 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8793 export_dynamic_flag_spec='${wl}-E'
8796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_libdir_flag_spec='-R$libdir'
8801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8809 hardcode_libdir_flag_spec='-L$libdir'
8810 hardcode_minus_L=yes
8811 allow_undefined_flag=unsupported
8812 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'
8813 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8817 if test "$GCC" = yes; then
8818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8819 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'
8821 allow_undefined_flag=' -expect_unresolved \*'
8822 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'
8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825 hardcode_libdir_separator=:
8828 osf4* | osf5*) # as osf3* with the addition of -msym flag
8829 if test "$GCC" = yes; then
8830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831 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'
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8834 allow_undefined_flag=' -expect_unresolved \*'
8835 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'
8836 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8837 $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'
8839 # Both c and cxx compiler support -rpath directly
8840 hardcode_libdir_flag_spec='-rpath $libdir'
8842 hardcode_libdir_separator=:
8846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847 hardcode_shlibpath_var=no
8848 export_dynamic_flag_spec='${wl}-Bexport'
8849 runpath_var=LD_RUN_PATH
8850 hardcode_runpath_var=yes
8854 no_undefined_flag=' -z text'
8855 if test "$GCC" = yes; then
8857 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8859 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8862 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8864 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8866 hardcode_libdir_flag_spec='-R$libdir'
8867 hardcode_shlibpath_var=no
8869 solaris2.[0-5] | solaris2.[0-5].*) ;;
8871 # The compiler driver will combine linker options so we
8872 # cannot just pass the convience library names through
8873 # without $wl, iff we do not link with $LD.
8874 # Luckily, gcc supports the same syntax we need for Sun Studio.
8875 # Supported since Solaris 2.6 (maybe 2.5.1?)
8878 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8880 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' ;;
8883 link_all_deplibs=yes
8887 if test "x$host_vendor" = xsequent; then
8888 # Use $CC to link under sequent, because it throws in some extra .o
8889 # files that make .init and .fini sections work.
8890 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8894 hardcode_libdir_flag_spec='-L$libdir'
8896 hardcode_minus_L=yes
8897 hardcode_shlibpath_var=no
8901 case $host_vendor in
8903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8904 hardcode_direct=yes # is this really true???
8907 ## LD is ld it makes a PLAMLIB
8908 ## CC just makes a GrossModule.
8909 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8910 reload_cmds='$CC -r -o $output$reload_objs'
8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8918 runpath_var='LD_RUN_PATH'
8919 hardcode_shlibpath_var=no
8923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924 hardcode_shlibpath_var=no
8925 export_dynamic_flag_spec='-Bexport'
8929 if test -d /usr/nec; then
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_shlibpath_var=no
8932 runpath_var=LD_RUN_PATH
8933 hardcode_runpath_var=yes
8939 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_shlibpath_var=no
8943 hardcode_runpath_var=yes
8944 runpath_var=LD_RUN_PATH
8947 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8948 no_undefined_flag='${wl}-z ${wl}text'
8949 if test "$GCC" = yes; then
8950 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 runpath_var='LD_RUN_PATH'
8955 hardcode_shlibpath_var=no
8959 no_undefined_flag=' -z text'
8960 # $CC -shared without GNU ld will not create a library from C++
8961 # object files and a static libstdc++, better avoid it by now
8962 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8963 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8965 hardcode_libdir_flag_spec=
8966 hardcode_shlibpath_var=no
8967 runpath_var='LD_RUN_PATH'
8971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_libdir_flag_spec='-L$libdir'
8973 hardcode_shlibpath_var=no
8982 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8983 echo "${ECHO_T}$ld_shlibs" >&6
8984 test "$ld_shlibs" = no && can_build_shared=no
8986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8987 if test "$GCC" = yes; then
8988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8992 # Do we need to explicitly link libc?
8994 case "x$archive_cmds_need_lc" in
8996 # Assume -lc should be added
8997 archive_cmds_need_lc=yes
8999 if test "$enable_shared" = yes && test "$GCC" = yes; then
9000 case $archive_cmds in
9002 # FIXME: we may have to deal with multi-command sequences.
9005 # Test whether the compiler implicitly links with -lc since on some
9006 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9007 # to ld, don't add -lc before -lgcc.
9008 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9009 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9011 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014 (eval $ac_compile) 2>&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } 2>conftest.err; then
9020 libobjs=conftest.$ac_objext
9022 wl=$lt_prog_compiler_wl
9028 lt_save_allow_undefined_flag=$allow_undefined_flag
9029 allow_undefined_flag=
9030 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9031 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }
9036 archive_cmds_need_lc=no
9038 archive_cmds_need_lc=yes
9040 allow_undefined_flag=$lt_save_allow_undefined_flag
9042 cat conftest.err 1>&5
9045 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9046 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9053 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9054 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9056 libname_spec='lib$name'
9064 shlibpath_overrides_runpath=unknown
9066 dynamic_linker="$host_os ld.so"
9067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9068 if test "$GCC" = yes; then
9069 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9070 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9071 # if the path contains ";" then we assume it to be the separator
9072 # otherwise default to the standard path separator (i.e. ":") - it is
9073 # assumed that no part of a normal pathname contains ";" but that should
9074 # okay in the real world where ";" in dirpaths is itself problematic.
9075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9080 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9082 need_lib_prefix=unknown
9083 hardcode_into_libs=no
9085 # when you set need_version to no, make sure it does not cause -set_version
9086 # flags to be left without arguments
9087 need_version=unknown
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9093 shlibpath_var=LIBPATH
9095 # AIX 3 has no versioning support, so we append a major version to the name.
9096 soname_spec='${libname}${release}${shared_ext}$major'
9103 hardcode_into_libs=yes
9104 if test "$host_cpu" = ia64; then
9105 # AIX 5 supports IA64
9106 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9107 shlibpath_var=LD_LIBRARY_PATH
9109 # With GCC up to 2.95.x, collect2 would create an import file
9110 # for dependence libraries. The import file would start with
9111 # the line `#! .'. This would cause the generated library to
9112 # depend on `.', always an invalid library. This was fixed in
9113 # development snapshots of GCC prior to 3.0.
9115 aix4 | aix4.[01] | aix4.[01].*)
9116 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9118 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9125 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9126 # soname into executable. Probably we can add versioning support to
9127 # collect2, so additional links can be useful in future.
9128 if test "$aix_use_runtimelinking" = yes; then
9129 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9130 # instead of lib<name>.a to let people know that these are not
9131 # typical AIX shared libraries.
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 # We preserve .a as extension for shared libraries through AIX4.2
9135 # and later when we are not doing run time linking.
9136 library_names_spec='${libname}${release}.a $libname.a'
9137 soname_spec='${libname}${release}${shared_ext}$major'
9139 shlibpath_var=LIBPATH
9144 library_names_spec='$libname.ixlibrary $libname.a'
9145 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9146 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'
9150 library_names_spec='${libname}${shared_ext}'
9151 dynamic_linker="$host_os ld.so"
9152 shlibpath_var=LIBRARY_PATH
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9163 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9164 # the default ld.so.conf also contains /usr/contrib/lib and
9165 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9166 # libtool to hard-code these into programs
9169 cygwin* | mingw* | pw32*)
9170 version_type=windows
9175 case $GCC,$host_os in
9176 yes,cygwin* | yes,mingw* | yes,pw32*)
9177 library_names_spec='$libname.dll.a'
9178 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9179 postinstall_cmds='base_file=`basename \${file}`~
9180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9181 dldir=$destdir/`dirname \$dlpath`~
9182 test -d \$dldir || mkdir -p \$dldir~
9183 $install_prog $dir/$dlname \$dldir/$dlname~
9184 chmod a+x \$dldir/$dlname'
9185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9186 dlpath=$dir/\$dldll~
9188 shlibpath_overrides_runpath=yes
9192 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9193 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9194 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9197 # MinGW DLLs use traditional 'lib' prefix
9198 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9199 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9200 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9201 # It is most probably a Windows format PATH printed by
9202 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9203 # path with ; separators, and with drive letters. We can handle the
9204 # drive letters (cygwin fileutils understands them), so leave them,
9205 # especially as we might pass files found there to a mingw objdump,
9206 # which wouldn't understand a cygwinified path. Ahh.
9207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9213 # pw32 DLLs use 'pw' prefix rather than 'lib'
9214 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9220 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9223 dynamic_linker='Win32 ld.exe'
9224 # FIXME: first we should search . and the directory the executable is in
9228 darwin* | rhapsody*)
9229 dynamic_linker="$host_os dyld"
9233 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9234 soname_spec='${libname}${release}${major}$shared_ext'
9235 shlibpath_overrides_runpath=yes
9236 shlibpath_var=DYLD_LIBRARY_PATH
9237 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9238 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9239 if test "$GCC" = yes; then
9240 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"`
9242 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9244 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9252 soname_spec='${libname}${release}${shared_ext}$major'
9253 shlibpath_var=LD_LIBRARY_PATH
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 shlibpath_overrides_runpath=no
9268 hardcode_into_libs=yes
9269 dynamic_linker='GNU ld.so'
9272 freebsd* | dragonfly*)
9273 # DragonFly does not have aout. When/if they implement a new
9274 # versioning mechanism, adjust this.
9275 if test -x /usr/bin/objformat; then
9276 objformat=`/usr/bin/objformat`
9279 freebsd[123]*) objformat=aout ;;
9283 version_type=freebsd-$objformat
9284 case $version_type in
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9295 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=yes
9300 freebsd3.[01]* | freebsdelf3.[01]*)
9301 shlibpath_overrides_runpath=yes
9302 hardcode_into_libs=yes
9305 shlibpath_overrides_runpath=no
9306 hardcode_into_libs=yes
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 hardcode_into_libs=yes
9321 hpux9* | hpux10* | hpux11*)
9322 # Give a soname corresponding to the major version so that dld.sl refuses to
9323 # link against other versions.
9330 hardcode_into_libs=yes
9331 dynamic_linker="$host_os dld.so"
9332 shlibpath_var=LD_LIBRARY_PATH
9333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9335 soname_spec='${libname}${release}${shared_ext}$major'
9336 if test "X$HPUX_IA64_MODE" = X32; then
9337 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9339 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9345 hardcode_into_libs=yes
9346 dynamic_linker="$host_os dld.sl"
9347 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9356 dynamic_linker="$host_os dld.sl"
9357 shlibpath_var=SHLIB_PATH
9358 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9363 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9364 postinstall_cmds='chmod 555 $lib'
9367 irix5* | irix6* | nonstopux*)
9369 nonstopux*) version_type=nonstopux ;;
9371 if test "$lt_cv_prog_gnu_ld" = yes; then
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9382 irix5* | nonstopux*)
9386 case $LD in # libtool.m4 will add one of these switches to LD
9387 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9388 libsuff= shlibsuff= libmagic=32-bit;;
9389 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9390 libsuff=32 shlibsuff=N32 libmagic=N32;;
9391 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9392 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9393 *) libsuff= shlibsuff= libmagic=never-match;;
9397 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9398 shlibpath_overrides_runpath=no
9399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9401 hardcode_into_libs=yes
9404 # No shared lib support for Linux oldld, aout, or coff.
9405 linux*oldld* | linux*aout* | linux*coff*)
9409 # This must be Linux ELF.
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9417 shlibpath_var=LD_LIBRARY_PATH
9418 shlibpath_overrides_runpath=no
9419 # This implies no fast_install, which is unacceptable.
9420 # Some rework will be needed to allow for fast_install
9421 # before this can be enabled.
9422 hardcode_into_libs=yes
9424 # Append ld.so.conf contents to the search path
9425 if test -f /etc/ld.so.conf; then
9426 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' ' '`
9427 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9430 # We used to test for /lib/ld.so.1 and disable shared libraries on
9431 # powerpc, because MkLinux only supported shared libraries with the
9432 # GNU dynamic linker. Since this was broken with cross compilers,
9433 # most powerpc-linux boxes support dynamic linking these days and
9434 # people can always --disable-shared, the test was removed, and we
9435 # assume the GNU/Linux dynamic linker is in use.
9436 dynamic_linker='GNU/Linux ld.so'
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 shlibpath_overrides_runpath=no
9447 hardcode_into_libs=yes
9448 dynamic_linker='GNU ld.so'
9455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9458 dynamic_linker='NetBSD (a.out) ld.so'
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 dynamic_linker='NetBSD ld.elf_so'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=yes
9466 hardcode_into_libs=yes
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 shlibpath_var=LD_LIBRARY_PATH
9473 shlibpath_overrides_runpath=yes
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481 soname_spec='${libname}${release}${shared_ext}$major'
9482 shlibpath_var=LD_LIBRARY_PATH
9483 shlibpath_overrides_runpath=yes
9489 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9491 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9492 *) need_version=no ;;
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9496 shlibpath_var=LD_LIBRARY_PATH
9497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9499 openbsd2.[89] | openbsd2.[89].*)
9500 shlibpath_overrides_runpath=no
9503 shlibpath_overrides_runpath=yes
9507 shlibpath_overrides_runpath=yes
9512 libname_spec='$name'
9515 library_names_spec='$libname${shared_ext} $libname.a'
9516 dynamic_linker='OS/2 ld.exe'
9517 shlibpath_var=LIBPATH
9520 osf3* | osf4* | osf5*)
9524 soname_spec='${libname}${release}${shared_ext}$major'
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9528 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535 shlibpath_var=LD_LIBRARY_PATH
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 shlibpath_overrides_runpath=yes
9546 hardcode_into_libs=yes
9547 # ldd complains unless libraries are executable
9548 postinstall_cmds='chmod +x $lib'
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=yes
9557 if test "$with_gnu_ld" = yes; then
9563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 case $host_vendor in
9570 shlibpath_overrides_runpath=no
9572 export_dynamic_flag_spec='${wl}-Blargedynsym'
9573 runpath_var=LD_RUN_PATH
9581 shlibpath_overrides_runpath=no
9582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9588 if test -d /usr/nec ;then
9590 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9591 soname_spec='$libname${shared_ext}.$major'
9592 shlibpath_var=LD_LIBRARY_PATH
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 shlibpath_var=LD_LIBRARY_PATH
9607 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9608 echo "${ECHO_T}$dynamic_linker" >&6
9609 test "$dynamic_linker" = no && can_build_shared=no
9611 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9612 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9614 if test -n "$hardcode_libdir_flag_spec" || \
9615 test -n "$runpath_var" || \
9616 test "X$hardcode_automatic" = "Xyes" ; then
9618 # We can hardcode non-existant directories.
9619 if test "$hardcode_direct" != no &&
9620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9621 # have to relink, otherwise we might link with an installed library
9622 # when we should be linking with a yet-to-be-installed one
9623 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9624 test "$hardcode_minus_L" != no; then
9625 # Linking always hardcodes the temporary library directory.
9626 hardcode_action=relink
9628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9629 hardcode_action=immediate
9632 # We cannot hardcode anything, or else we can only hardcode existing
9634 hardcode_action=unsupported
9636 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9637 echo "${ECHO_T}$hardcode_action" >&6
9639 if test "$hardcode_action" = relink; then
9640 # Fast installation is not supported
9641 enable_fast_install=no
9642 elif test "$shlibpath_overrides_runpath" = yes ||
9643 test "$enable_shared" = no; then
9644 # Fast installation is not necessary
9645 enable_fast_install=needless
9650 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9651 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9652 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9653 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9654 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9655 echo "$as_me:$LINENO: result: yes" >&5
9656 echo "${ECHO_T}yes" >&6
9658 # FIXME - insert some real tests, host_os isn't really good enough
9661 if test -n "$STRIP" ; then
9662 striplib="$STRIP -x"
9663 echo "$as_me:$LINENO: result: yes" >&5
9664 echo "${ECHO_T}yes" >&6
9666 echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6
9671 echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6
9677 if test "x$enable_dlopen" != xyes; then
9678 enable_dlopen=unknown
9679 enable_dlopen_self=unknown
9680 enable_dlopen_self_static=unknown
9687 lt_cv_dlopen="load_add_on"
9689 lt_cv_dlopen_self=yes
9693 lt_cv_dlopen="LoadLibrary"
9698 lt_cv_dlopen="dlopen"
9703 # if libdl is installed we need to link against it
9704 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9705 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9706 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 ac_check_lib_save_LIBS=$LIBS
9711 cat >conftest.$ac_ext <<_ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9718 /* Override any gcc2 internal prototype to avoid an error. */
9722 /* We use char because int might match the return type of a gcc2
9723 builtin and then its argument prototype would still apply. */
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_lib_dl_dlopen=yes
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_lib_dl_dlopen=no
9762 rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9766 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9768 if test $ac_cv_lib_dl_dlopen = yes; then
9769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9774 lt_cv_dlopen_self=yes
9781 echo "$as_me:$LINENO: checking for shl_load" >&5
9782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9783 if test "${ac_cv_func_shl_load+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794 #define shl_load innocuous_shl_load
9796 /* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char shl_load (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9802 # include <limits.h>
9804 # include <assert.h>
9809 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9823 char (*f) () = shl_load;
9832 return f != shl_load;
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9841 grep -v '^ *+' conftest.er1 >conftest.err
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_cv_func_shl_load=yes
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_cv_func_shl_load=no
9866 rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9870 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9871 if test $ac_cv_func_shl_load = yes; then
9872 lt_cv_dlopen="shl_load"
9874 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9875 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9876 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 ac_check_lib_save_LIBS=$LIBS
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9888 /* Override any gcc2 internal prototype to avoid an error. */
9892 /* We use char because int might match the return type of a gcc2
9893 builtin and then its argument prototype would still apply. */
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905 (eval $ac_link) 2>conftest.er1
9907 grep -v '^ *+' conftest.er1 >conftest.err
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -z "$ac_c_werror_flag"
9913 || test ! -s conftest.err'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_lib_dld_shl_load=yes
9927 echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9930 ac_cv_lib_dld_shl_load=no
9932 rm -f conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9936 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9937 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9938 if test $ac_cv_lib_dld_shl_load = yes; then
9939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9941 echo "$as_me:$LINENO: checking for dlopen" >&5
9942 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9943 if test "${ac_cv_func_dlopen+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9954 #define dlopen innocuous_dlopen
9956 /* System header to define __stub macros and hopefully few prototypes,
9957 which can conflict with char dlopen (); below.
9958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9959 <limits.h> exists even on freestanding compilers. */
9962 # include <limits.h>
9964 # include <assert.h>
9969 /* Override any gcc2 internal prototype to avoid an error. */
9974 /* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9977 /* The GNU C library defines this for functions which it implements
9978 to always fail with ENOSYS. Some functions are actually named
9979 something starting with __ and the normal name is an alias. */
9980 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9983 char (*f) () = dlopen;
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9999 (eval $ac_link) 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -z "$ac_c_werror_flag"
10007 || test ! -s conftest.err'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; }; then
10019 ac_cv_func_dlopen=yes
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ac_cv_func_dlopen=no
10026 rm -f conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
10029 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10030 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10031 if test $ac_cv_func_dlopen = yes; then
10032 lt_cv_dlopen="dlopen"
10034 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 ac_check_lib_save_LIBS=$LIBS
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10048 /* Override any gcc2 internal prototype to avoid an error. */
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065 (eval $ac_link) 2>conftest.er1
10067 grep -v '^ *+' conftest.er1 >conftest.err
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } &&
10072 { ac_try='test -z "$ac_c_werror_flag"
10073 || test ! -s conftest.err'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_lib_dl_dlopen=yes
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_cv_lib_dl_dlopen=no
10092 rm -f conftest.err conftest.$ac_objext \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10097 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10098 if test $ac_cv_lib_dl_dlopen = yes; then
10099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10101 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10102 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10103 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 ac_check_lib_save_LIBS=$LIBS
10107 LIBS="-lsvld $LIBS"
10108 cat >conftest.$ac_ext <<_ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10115 /* Override any gcc2 internal prototype to avoid an error. */
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_c_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_cv_lib_svld_dlopen=yes
10154 echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ac_cv_lib_svld_dlopen=no
10159 rm -f conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10163 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10164 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10165 if test $ac_cv_lib_svld_dlopen = yes; then
10166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10168 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10169 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10170 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 ac_check_lib_save_LIBS=$LIBS
10175 cat >conftest.$ac_ext <<_ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10182 /* Override any gcc2 internal prototype to avoid an error. */
10186 /* We use char because int might match the return type of a gcc2
10187 builtin and then its argument prototype would still apply. */
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>conftest.er1
10201 grep -v '^ *+' conftest.er1 >conftest.err
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try='test -z "$ac_c_werror_flag"
10207 || test ! -s conftest.err'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; } &&
10213 { ac_try='test -s conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_lib_dld_dld_link=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_lib_dld_dld_link=no
10226 rm -f conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10230 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10231 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10232 if test $ac_cv_lib_dld_dld_link = yes; then
10233 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10254 if test "x$lt_cv_dlopen" != xno; then
10260 case $lt_cv_dlopen in
10262 save_CPPFLAGS="$CPPFLAGS"
10263 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10265 save_LDFLAGS="$LDFLAGS"
10266 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10269 LIBS="$lt_cv_dlopen_libs $LIBS"
10271 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10272 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10273 if test "${lt_cv_dlopen_self+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 if test "$cross_compiling" = yes; then :
10277 lt_cv_dlopen_self=cross
10279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10280 lt_status=$lt_dlunknown
10281 cat > conftest.$ac_ext <<EOF
10282 #line 10282 "configure"
10283 #include "confdefs.h"
10292 # define LT_DLGLOBAL RTLD_GLOBAL
10295 # define LT_DLGLOBAL DL_GLOBAL
10297 # define LT_DLGLOBAL 0
10301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10302 find out it does not work in some platform. */
10303 #ifndef LT_DLLAZY_OR_NOW
10305 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10308 # define LT_DLLAZY_OR_NOW DL_LAZY
10311 # define LT_DLLAZY_OR_NOW RTLD_NOW
10314 # define LT_DLLAZY_OR_NOW DL_NOW
10316 # define LT_DLLAZY_OR_NOW 0
10324 extern "C" void exit (int);
10327 void fnord() { int i=42;}
10330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10331 int status = $lt_dlunknown;
10335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10336 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10337 /* dlclose (self); */
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10348 (./conftest; exit; ) >&5 2>/dev/null
10350 case x$lt_status in
10351 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10352 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10353 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10356 # compilation failed
10357 lt_cv_dlopen_self=no
10364 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10365 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10367 if test "x$lt_cv_dlopen_self" = xyes; then
10368 LDFLAGS="$LDFLAGS $link_static_flag"
10369 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10370 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10371 if test "${lt_cv_dlopen_self_static+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 if test "$cross_compiling" = yes; then :
10375 lt_cv_dlopen_self_static=cross
10377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10378 lt_status=$lt_dlunknown
10379 cat > conftest.$ac_ext <<EOF
10380 #line 10380 "configure"
10381 #include "confdefs.h"
10390 # define LT_DLGLOBAL RTLD_GLOBAL
10393 # define LT_DLGLOBAL DL_GLOBAL
10395 # define LT_DLGLOBAL 0
10399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10400 find out it does not work in some platform. */
10401 #ifndef LT_DLLAZY_OR_NOW
10403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10406 # define LT_DLLAZY_OR_NOW DL_LAZY
10409 # define LT_DLLAZY_OR_NOW RTLD_NOW
10412 # define LT_DLLAZY_OR_NOW DL_NOW
10414 # define LT_DLLAZY_OR_NOW 0
10422 extern "C" void exit (int);
10425 void fnord() { int i=42;}
10428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10429 int status = $lt_dlunknown;
10433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10435 /* dlclose (self); */
10441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442 (eval $ac_link) 2>&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10446 (./conftest; exit; ) >&5 2>/dev/null
10448 case x$lt_status in
10449 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10450 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10451 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10454 # compilation failed
10455 lt_cv_dlopen_self_static=no
10462 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10463 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10466 CPPFLAGS="$save_CPPFLAGS"
10467 LDFLAGS="$save_LDFLAGS"
10472 case $lt_cv_dlopen_self in
10473 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10474 *) enable_dlopen_self=unknown ;;
10477 case $lt_cv_dlopen_self_static in
10478 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10479 *) enable_dlopen_self_static=unknown ;;
10484 # Report which librarie types wil actually be built
10485 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10486 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10487 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10488 echo "${ECHO_T}$can_build_shared" >&6
10490 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10491 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10492 test "$can_build_shared" = "no" && enable_shared=no
10494 # On AIX, shared libraries and static libraries use the same namespace, and
10495 # are all built from PIC.
10498 test "$enable_shared" = yes && enable_static=no
10499 if test -n "$RANLIB"; then
10500 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10501 postinstall_cmds='$RANLIB $lib'
10506 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10507 test "$enable_shared" = yes && enable_static=no
10511 echo "$as_me:$LINENO: result: $enable_shared" >&5
10512 echo "${ECHO_T}$enable_shared" >&6
10514 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10515 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10516 # Make sure either enable_shared or enable_static is yes.
10517 test "$enable_shared" = yes || enable_static=yes
10518 echo "$as_me:$LINENO: result: $enable_static" >&5
10519 echo "${ECHO_T}$enable_static" >&6
10521 # The else clause should only fire when bootstrapping the
10522 # libtool distribution, otherwise you forgot to ship ltmain.sh
10523 # with your package, and you will get complaints that there are
10524 # no rules to generate ltmain.sh.
10525 if test -f "$ltmain"; then
10526 # See if we are running on zsh, and set the options which allow our commands through
10527 # without removal of \ escapes.
10528 if test -n "${ZSH_VERSION+set}" ; then
10529 setopt NO_GLOB_SUBST
10531 # Now quote all the things that may contain metacharacters while being
10532 # careful not to overquote the AC_SUBSTed values. We take copies of the
10533 # variables and quote the copies for generation of the libtool script.
10534 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10536 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10537 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10538 deplibs_check_method reload_flag reload_cmds need_locks \
10539 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10540 lt_cv_sys_global_symbol_to_c_name_address \
10541 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10542 old_postinstall_cmds old_postuninstall_cmds \
10546 lt_prog_compiler_wl \
10547 lt_prog_compiler_pic \
10548 lt_prog_compiler_static \
10549 lt_prog_compiler_no_builtin_flag \
10550 export_dynamic_flag_spec \
10551 thread_safe_flag_spec \
10552 whole_archive_flag_spec \
10553 enable_shared_with_static_runtimes \
10555 old_archive_from_new_cmds \
10560 compiler_lib_search_path \
10562 archive_expsym_cmds \
10564 postuninstall_cmds \
10565 old_archive_from_expsyms_cmds \
10566 allow_undefined_flag \
10567 no_undefined_flag \
10568 export_symbols_cmds \
10569 hardcode_libdir_flag_spec \
10570 hardcode_libdir_flag_spec_ld \
10571 hardcode_libdir_separator \
10572 hardcode_automatic \
10574 module_expsym_cmds \
10575 lt_cv_prog_compiler_c_o \
10577 include_expsyms; do
10580 old_archive_cmds | \
10581 old_archive_from_new_cmds | \
10583 archive_expsym_cmds | \
10585 module_expsym_cmds | \
10586 old_archive_from_expsyms_cmds | \
10587 export_symbols_cmds | \
10588 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10589 postinstall_cmds | postuninstall_cmds | \
10590 old_postinstall_cmds | old_postuninstall_cmds | \
10591 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10592 # Double-quote double-evaled strings.
10593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10596 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10602 *'\$0 --fallback-echo"')
10603 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10607 cfgfile="${ofile}T"
10608 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10610 { echo "$as_me:$LINENO: creating $ofile" >&5
10611 echo "$as_me: creating $ofile" >&6;}
10613 cat <<__EOF__ >> "$cfgfile"
10616 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10617 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10620 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10621 # Free Software Foundation, Inc.
10623 # This file is part of GNU Libtool:
10624 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10626 # This program is free software; you can redistribute it and/or modify
10627 # it under the terms of the GNU General Public License as published by
10628 # the Free Software Foundation; either version 2 of the License, or
10629 # (at your option) any later version.
10631 # This program is distributed in the hope that it will be useful, but
10632 # WITHOUT ANY WARRANTY; without even the implied warranty of
10633 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10634 # General Public License for more details.
10636 # You should have received a copy of the GNU General Public License
10637 # along with this program; if not, write to the Free Software
10638 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10640 # As a special exception to the GNU General Public License, if you
10641 # distribute this file as part of a program that contains a
10642 # configuration script generated by Autoconf, you may include it under
10643 # the same distribution terms that you use for the rest of that program.
10645 # A sed program that does not truncate output.
10648 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10649 Xsed="$SED -e 1s/^X//"
10651 # The HP-UX ksh and POSIX shell print the target directory to stdout
10652 # if CDPATH is set.
10653 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10655 # The names of the tagged configurations supported by this script.
10658 # ### BEGIN LIBTOOL CONFIG
10660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10662 # Shell to use when invoking shell scripts.
10665 # Whether or not to build shared libraries.
10666 build_libtool_libs=$enable_shared
10668 # Whether or not to build static libraries.
10669 build_old_libs=$enable_static
10671 # Whether or not to add -lc for building shared libraries.
10672 build_libtool_need_lc=$archive_cmds_need_lc
10674 # Whether or not to disallow shared libs when runtime libs are static
10675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10677 # Whether or not to optimize for fast installation.
10678 fast_install=$enable_fast_install
10681 host_alias=$host_alias
10685 # The build system.
10686 build_alias=$build_alias
10690 # An echo program that does not interpret backslashes.
10695 AR_FLAGS=$lt_AR_FLAGS
10700 # A language-specific compiler.
10703 # Is the compiler the GNU C compiler?
10709 # The linker used to build libraries.
10712 # Whether we need hard or soft links.
10715 # A BSD-compatible nm program.
10718 # A symbol stripping program
10721 # Used to examine libraries when file_magic_cmd begins "file"
10722 MAGIC_CMD=$MAGIC_CMD
10724 # Used on cygwin: DLL creation program.
10727 # Used on cygwin: object dumper.
10730 # Used on cygwin: assembler.
10733 # The name of the directory that contains temporary libtool files.
10736 # How to create reloadable object files.
10737 reload_flag=$lt_reload_flag
10738 reload_cmds=$lt_reload_cmds
10740 # How to pass a linker flag through the compiler.
10741 wl=$lt_lt_prog_compiler_wl
10743 # Object file suffix (normally "o").
10744 objext="$ac_objext"
10746 # Old archive suffix (normally "a").
10749 # Shared library suffix (normally ".so").
10750 shrext_cmds='$shrext_cmds'
10752 # Executable file suffix (normally "").
10755 # Additional compiler flags for building library objects.
10756 pic_flag=$lt_lt_prog_compiler_pic
10759 # What is the maximum length of a command?
10760 max_cmd_len=$lt_cv_sys_max_cmd_len
10762 # Does compiler simultaneously support -c and -o options?
10763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10765 # Must we lock files when doing compilation?
10766 need_locks=$lt_need_locks
10768 # Do we need the lib prefix for modules?
10769 need_lib_prefix=$need_lib_prefix
10771 # Do we need a version for libraries?
10772 need_version=$need_version
10774 # Whether dlopen is supported.
10775 dlopen_support=$enable_dlopen
10777 # Whether dlopen of programs is supported.
10778 dlopen_self=$enable_dlopen_self
10780 # Whether dlopen of statically linked programs is supported.
10781 dlopen_self_static=$enable_dlopen_self_static
10783 # Compiler flag to prevent dynamic linking.
10784 link_static_flag=$lt_lt_prog_compiler_static
10786 # Compiler flag to turn off builtin functions.
10787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10789 # Compiler flag to allow reflexive dlopens.
10790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10792 # Compiler flag to generate shared objects directly from archives.
10793 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10795 # Compiler flag to generate thread-safe objects.
10796 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10798 # Library versioning type.
10799 version_type=$version_type
10801 # Format of library name prefix.
10802 libname_spec=$lt_libname_spec
10804 # List of archive names. First name is the real one, the rest are links.
10805 # The last name is the one that the linker finds with -lNAME.
10806 library_names_spec=$lt_library_names_spec
10808 # The coded name of the library, if different from the real name.
10809 soname_spec=$lt_soname_spec
10811 # Commands used to build and install an old-style archive.
10813 old_archive_cmds=$lt_old_archive_cmds
10814 old_postinstall_cmds=$lt_old_postinstall_cmds
10815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10817 # Create an old-style archive from a shared archive.
10818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10820 # Create a temporary old-style archive to link instead of a shared archive.
10821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10823 # Commands used to build and install a shared archive.
10824 archive_cmds=$lt_archive_cmds
10825 archive_expsym_cmds=$lt_archive_expsym_cmds
10826 postinstall_cmds=$lt_postinstall_cmds
10827 postuninstall_cmds=$lt_postuninstall_cmds
10829 # Commands used to build a loadable module (assumed same as above if empty)
10830 module_cmds=$lt_module_cmds
10831 module_expsym_cmds=$lt_module_expsym_cmds
10833 # Commands to strip libraries.
10834 old_striplib=$lt_old_striplib
10835 striplib=$lt_striplib
10837 # Dependencies to place before the objects being linked to create a
10839 predep_objects=$lt_predep_objects
10841 # Dependencies to place after the objects being linked to create a
10843 postdep_objects=$lt_postdep_objects
10845 # Dependencies to place before the objects being linked to create a
10847 predeps=$lt_predeps
10849 # Dependencies to place after the objects being linked to create a
10851 postdeps=$lt_postdeps
10853 # The library search path used internally by the compiler when linking
10854 # a shared library.
10855 compiler_lib_search_path=$lt_compiler_lib_search_path
10857 # Method to check whether dependent libraries are shared objects.
10858 deplibs_check_method=$lt_deplibs_check_method
10860 # Command to use when deplibs_check_method == file_magic.
10861 file_magic_cmd=$lt_file_magic_cmd
10863 # Flag that allows shared libraries with undefined symbols to be built.
10864 allow_undefined_flag=$lt_allow_undefined_flag
10866 # Flag that forces no undefined symbols.
10867 no_undefined_flag=$lt_no_undefined_flag
10869 # Commands used to finish a libtool library installation in a directory.
10870 finish_cmds=$lt_finish_cmds
10872 # Same as above, but a single script fragment to be evaled but not shown.
10873 finish_eval=$lt_finish_eval
10875 # Take the output of nm and produce a listing of raw symbols and C names.
10876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10878 # Transform the output of nm in a proper C declaration
10879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10881 # Transform the output of nm in a C name address pair
10882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10884 # This is the shared library runtime path variable.
10885 runpath_var=$runpath_var
10887 # This is the shared library path variable.
10888 shlibpath_var=$shlibpath_var
10890 # Is shlibpath searched before the hard-coded library search path?
10891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10893 # How to hardcode a shared library path into an executable.
10894 hardcode_action=$hardcode_action
10896 # Whether we should hardcode library paths into libraries.
10897 hardcode_into_libs=$hardcode_into_libs
10899 # Flag to hardcode \$libdir into a binary during linking.
10900 # This must work even if \$libdir does not exist.
10901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10903 # If ld is used when linking, flag to hardcode \$libdir into
10904 # a binary during linking. This must work even if \$libdir does
10906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10908 # Whether we need a single -rpath flag with a separated argument.
10909 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10911 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10912 # resulting binary.
10913 hardcode_direct=$hardcode_direct
10915 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10916 # resulting binary.
10917 hardcode_minus_L=$hardcode_minus_L
10919 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10920 # the resulting binary.
10921 hardcode_shlibpath_var=$hardcode_shlibpath_var
10923 # Set to yes if building a shared library automatically hardcodes DIR into the library
10924 # and all subsequent libraries and executables linked against it.
10925 hardcode_automatic=$hardcode_automatic
10927 # Variables whose values should be saved in libtool wrapper scripts and
10928 # restored at relink time.
10929 variables_saved_for_relink="$variables_saved_for_relink"
10931 # Whether libtool must link a program against all its dependency libraries.
10932 link_all_deplibs=$link_all_deplibs
10934 # Compile-time system search path for libraries
10935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10937 # Run-time system search path for libraries
10938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10940 # Fix the shell variable \$srcfile for the compiler.
10941 fix_srcfile_path="$fix_srcfile_path"
10943 # Set to yes if exported symbols are required.
10944 always_export_symbols=$always_export_symbols
10946 # The commands to list exported symbols.
10947 export_symbols_cmds=$lt_export_symbols_cmds
10949 # The commands to extract the exported symbol list from a shared archive.
10950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10952 # Symbols that should not be listed in the preloaded symbols.
10953 exclude_expsyms=$lt_exclude_expsyms
10955 # Symbols that must always be exported.
10956 include_expsyms=$lt_include_expsyms
10958 # ### END LIBTOOL CONFIG
10965 cat <<\EOF >> "$cfgfile"
10967 # AIX sometimes has problems with the GCC collect2 program. For some
10968 # reason, if we set the COLLECT_NAMES environment variable, the problems
10969 # vanish in a puff of smoke.
10970 if test "X${COLLECT_NAMES+set}" != Xset; then
10972 export COLLECT_NAMES
10978 # We use sed instead of cat because bash on DJGPP gets confused if
10979 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10980 # text mode, it properly converts lines to CR/LF. This bash problem
10981 # is reportedly fixed, but why not run on old versions too?
10982 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10984 mv -f "$cfgfile" "$ofile" || \
10985 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10989 # If there is no Makefile yet, we rely on a make rule to execute
10990 # `config.status --recheck' to rerun these tests and create the
10991 # libtool script then.
10992 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10993 if test -f "$ltmain_in"; then
10994 test -f Makefile && make "$ltmain"
11000 ac_cpp='$CPP $CPPFLAGS'
11001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11008 # Check whether --with-tags or --without-tags was given.
11009 if test "${with_tags+set}" = set; then
11010 withval="$with_tags"
11011 tagnames="$withval"
11014 if test -f "$ltmain" && test -n "$tagnames"; then
11015 if test ! -f "${ofile}"; then
11016 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11017 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11020 if test -z "$LTCC"; then
11021 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11022 if test -z "$LTCC"; then
11023 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11024 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11027 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11031 # Extract list of available tagged configurations in $ofile.
11032 # Note that this assumes the entire list is on one line.
11033 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11036 for tagname in $tagnames; do
11038 # Check whether tagname contains only valid characters
11039 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11041 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11042 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11043 { (exit 1); exit 1; }; }
11047 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11049 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11050 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11051 { (exit 1); exit 1; }; }
11054 # Update the list of available tags.
11055 if test -n "$tagname"; then
11056 echo appending configuration tag \"$tagname\" to $ofile
11060 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11061 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11062 (test "X$CXX" != "Xg++"))) ; then
11070 if test -n "$F77" && test "X$F77" != "Xno"; then
11078 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11089 # Source file extension for RC test sources.
11092 # Object file extension for compiled RC test sources.
11096 # Code to be used in simple compile tests
11097 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11099 # Code to be used in simple link tests
11100 lt_simple_link_test_code="$lt_simple_compile_test_code"
11102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11104 # If no C compiler was specified, use CC.
11107 # Allow CC to be a program name with arguments.
11111 # save warnings/boilerplate of simple test code
11112 ac_outfile=conftest.$ac_objext
11113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11115 _lt_compiler_boilerplate=`cat conftest.err`
11118 ac_outfile=conftest.$ac_objext
11119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11121 _lt_linker_boilerplate=`cat conftest.err`
11125 # Allow CC to be a program name with arguments.
11130 for cc_temp in $compiler""; do
11132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11140 lt_cv_prog_compiler_c_o_RC=yes
11142 # The else clause should only fire when bootstrapping the
11143 # libtool distribution, otherwise you forgot to ship ltmain.sh
11144 # with your package, and you will get complaints that there are
11145 # no rules to generate ltmain.sh.
11146 if test -f "$ltmain"; then
11147 # See if we are running on zsh, and set the options which allow our commands through
11148 # without removal of \ escapes.
11149 if test -n "${ZSH_VERSION+set}" ; then
11150 setopt NO_GLOB_SUBST
11152 # Now quote all the things that may contain metacharacters while being
11153 # careful not to overquote the AC_SUBSTed values. We take copies of the
11154 # variables and quote the copies for generation of the libtool script.
11155 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11157 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11158 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11159 deplibs_check_method reload_flag reload_cmds need_locks \
11160 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11161 lt_cv_sys_global_symbol_to_c_name_address \
11162 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11163 old_postinstall_cmds old_postuninstall_cmds \
11167 lt_prog_compiler_wl_RC \
11168 lt_prog_compiler_pic_RC \
11169 lt_prog_compiler_static_RC \
11170 lt_prog_compiler_no_builtin_flag_RC \
11171 export_dynamic_flag_spec_RC \
11172 thread_safe_flag_spec_RC \
11173 whole_archive_flag_spec_RC \
11174 enable_shared_with_static_runtimes_RC \
11175 old_archive_cmds_RC \
11176 old_archive_from_new_cmds_RC \
11177 predep_objects_RC \
11178 postdep_objects_RC \
11181 compiler_lib_search_path_RC \
11183 archive_expsym_cmds_RC \
11184 postinstall_cmds_RC \
11185 postuninstall_cmds_RC \
11186 old_archive_from_expsyms_cmds_RC \
11187 allow_undefined_flag_RC \
11188 no_undefined_flag_RC \
11189 export_symbols_cmds_RC \
11190 hardcode_libdir_flag_spec_RC \
11191 hardcode_libdir_flag_spec_ld_RC \
11192 hardcode_libdir_separator_RC \
11193 hardcode_automatic_RC \
11195 module_expsym_cmds_RC \
11196 lt_cv_prog_compiler_c_o_RC \
11197 exclude_expsyms_RC \
11198 include_expsyms_RC; do
11201 old_archive_cmds_RC | \
11202 old_archive_from_new_cmds_RC | \
11203 archive_cmds_RC | \
11204 archive_expsym_cmds_RC | \
11206 module_expsym_cmds_RC | \
11207 old_archive_from_expsyms_cmds_RC | \
11208 export_symbols_cmds_RC | \
11209 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11210 postinstall_cmds | postuninstall_cmds | \
11211 old_postinstall_cmds | old_postuninstall_cmds | \
11212 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11213 # Double-quote double-evaled strings.
11214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11223 *'\$0 --fallback-echo"')
11224 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11230 cat <<__EOF__ >> "$cfgfile"
11231 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11233 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11235 # Shell to use when invoking shell scripts.
11238 # Whether or not to build shared libraries.
11239 build_libtool_libs=$enable_shared
11241 # Whether or not to build static libraries.
11242 build_old_libs=$enable_static
11244 # Whether or not to add -lc for building shared libraries.
11245 build_libtool_need_lc=$archive_cmds_need_lc_RC
11247 # Whether or not to disallow shared libs when runtime libs are static
11248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11250 # Whether or not to optimize for fast installation.
11251 fast_install=$enable_fast_install
11254 host_alias=$host_alias
11258 # The build system.
11259 build_alias=$build_alias
11263 # An echo program that does not interpret backslashes.
11268 AR_FLAGS=$lt_AR_FLAGS
11273 # A language-specific compiler.
11276 # Is the compiler the GNU C compiler?
11282 # The linker used to build libraries.
11285 # Whether we need hard or soft links.
11288 # A BSD-compatible nm program.
11291 # A symbol stripping program
11294 # Used to examine libraries when file_magic_cmd begins "file"
11295 MAGIC_CMD=$MAGIC_CMD
11297 # Used on cygwin: DLL creation program.
11300 # Used on cygwin: object dumper.
11303 # Used on cygwin: assembler.
11306 # The name of the directory that contains temporary libtool files.
11309 # How to create reloadable object files.
11310 reload_flag=$lt_reload_flag
11311 reload_cmds=$lt_reload_cmds
11313 # How to pass a linker flag through the compiler.
11314 wl=$lt_lt_prog_compiler_wl_RC
11316 # Object file suffix (normally "o").
11317 objext="$ac_objext"
11319 # Old archive suffix (normally "a").
11322 # Shared library suffix (normally ".so").
11323 shrext_cmds='$shrext_cmds'
11325 # Executable file suffix (normally "").
11328 # Additional compiler flags for building library objects.
11329 pic_flag=$lt_lt_prog_compiler_pic_RC
11332 # What is the maximum length of a command?
11333 max_cmd_len=$lt_cv_sys_max_cmd_len
11335 # Does compiler simultaneously support -c and -o options?
11336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11338 # Must we lock files when doing compilation?
11339 need_locks=$lt_need_locks
11341 # Do we need the lib prefix for modules?
11342 need_lib_prefix=$need_lib_prefix
11344 # Do we need a version for libraries?
11345 need_version=$need_version
11347 # Whether dlopen is supported.
11348 dlopen_support=$enable_dlopen
11350 # Whether dlopen of programs is supported.
11351 dlopen_self=$enable_dlopen_self
11353 # Whether dlopen of statically linked programs is supported.
11354 dlopen_self_static=$enable_dlopen_self_static
11356 # Compiler flag to prevent dynamic linking.
11357 link_static_flag=$lt_lt_prog_compiler_static_RC
11359 # Compiler flag to turn off builtin functions.
11360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11362 # Compiler flag to allow reflexive dlopens.
11363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11365 # Compiler flag to generate shared objects directly from archives.
11366 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11368 # Compiler flag to generate thread-safe objects.
11369 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11371 # Library versioning type.
11372 version_type=$version_type
11374 # Format of library name prefix.
11375 libname_spec=$lt_libname_spec
11377 # List of archive names. First name is the real one, the rest are links.
11378 # The last name is the one that the linker finds with -lNAME.
11379 library_names_spec=$lt_library_names_spec
11381 # The coded name of the library, if different from the real name.
11382 soname_spec=$lt_soname_spec
11384 # Commands used to build and install an old-style archive.
11386 old_archive_cmds=$lt_old_archive_cmds_RC
11387 old_postinstall_cmds=$lt_old_postinstall_cmds
11388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11390 # Create an old-style archive from a shared archive.
11391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11393 # Create a temporary old-style archive to link instead of a shared archive.
11394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11396 # Commands used to build and install a shared archive.
11397 archive_cmds=$lt_archive_cmds_RC
11398 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11399 postinstall_cmds=$lt_postinstall_cmds
11400 postuninstall_cmds=$lt_postuninstall_cmds
11402 # Commands used to build a loadable module (assumed same as above if empty)
11403 module_cmds=$lt_module_cmds_RC
11404 module_expsym_cmds=$lt_module_expsym_cmds_RC
11406 # Commands to strip libraries.
11407 old_striplib=$lt_old_striplib
11408 striplib=$lt_striplib
11410 # Dependencies to place before the objects being linked to create a
11412 predep_objects=$lt_predep_objects_RC
11414 # Dependencies to place after the objects being linked to create a
11416 postdep_objects=$lt_postdep_objects_RC
11418 # Dependencies to place before the objects being linked to create a
11420 predeps=$lt_predeps_RC
11422 # Dependencies to place after the objects being linked to create a
11424 postdeps=$lt_postdeps_RC
11426 # The library search path used internally by the compiler when linking
11427 # a shared library.
11428 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11430 # Method to check whether dependent libraries are shared objects.
11431 deplibs_check_method=$lt_deplibs_check_method
11433 # Command to use when deplibs_check_method == file_magic.
11434 file_magic_cmd=$lt_file_magic_cmd
11436 # Flag that allows shared libraries with undefined symbols to be built.
11437 allow_undefined_flag=$lt_allow_undefined_flag_RC
11439 # Flag that forces no undefined symbols.
11440 no_undefined_flag=$lt_no_undefined_flag_RC
11442 # Commands used to finish a libtool library installation in a directory.
11443 finish_cmds=$lt_finish_cmds
11445 # Same as above, but a single script fragment to be evaled but not shown.
11446 finish_eval=$lt_finish_eval
11448 # Take the output of nm and produce a listing of raw symbols and C names.
11449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11451 # Transform the output of nm in a proper C declaration
11452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11454 # Transform the output of nm in a C name address pair
11455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11457 # This is the shared library runtime path variable.
11458 runpath_var=$runpath_var
11460 # This is the shared library path variable.
11461 shlibpath_var=$shlibpath_var
11463 # Is shlibpath searched before the hard-coded library search path?
11464 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11466 # How to hardcode a shared library path into an executable.
11467 hardcode_action=$hardcode_action_RC
11469 # Whether we should hardcode library paths into libraries.
11470 hardcode_into_libs=$hardcode_into_libs
11472 # Flag to hardcode \$libdir into a binary during linking.
11473 # This must work even if \$libdir does not exist.
11474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11476 # If ld is used when linking, flag to hardcode \$libdir into
11477 # a binary during linking. This must work even if \$libdir does
11479 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11481 # Whether we need a single -rpath flag with a separated argument.
11482 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11484 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11485 # resulting binary.
11486 hardcode_direct=$hardcode_direct_RC
11488 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11489 # resulting binary.
11490 hardcode_minus_L=$hardcode_minus_L_RC
11492 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11493 # the resulting binary.
11494 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11496 # Set to yes if building a shared library automatically hardcodes DIR into the library
11497 # and all subsequent libraries and executables linked against it.
11498 hardcode_automatic=$hardcode_automatic_RC
11500 # Variables whose values should be saved in libtool wrapper scripts and
11501 # restored at relink time.
11502 variables_saved_for_relink="$variables_saved_for_relink"
11504 # Whether libtool must link a program against all its dependency libraries.
11505 link_all_deplibs=$link_all_deplibs_RC
11507 # Compile-time system search path for libraries
11508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11510 # Run-time system search path for libraries
11511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11513 # Fix the shell variable \$srcfile for the compiler.
11514 fix_srcfile_path="$fix_srcfile_path_RC"
11516 # Set to yes if exported symbols are required.
11517 always_export_symbols=$always_export_symbols_RC
11519 # The commands to list exported symbols.
11520 export_symbols_cmds=$lt_export_symbols_cmds_RC
11522 # The commands to extract the exported symbol list from a shared archive.
11523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11525 # Symbols that should not be listed in the preloaded symbols.
11526 exclude_expsyms=$lt_exclude_expsyms_RC
11528 # Symbols that must always be exported.
11529 include_expsyms=$lt_include_expsyms_RC
11531 # ### END LIBTOOL TAG CONFIG: $tagname
11537 # If there is no Makefile yet, we rely on a make rule to execute
11538 # `config.status --recheck' to rerun these tests and create the
11539 # libtool script then.
11540 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11541 if test -f "$ltmain_in"; then
11542 test -f Makefile && make "$ltmain"
11548 ac_cpp='$CPP $CPPFLAGS'
11549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11558 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11559 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11560 { (exit 1); exit 1; }; }
11564 # Append the new tag name to the list of available tags.
11565 if test -n "$tagname" ; then
11566 available_tags="$available_tags $tagname"
11572 # Now substitute the updated list of available tags.
11573 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11574 mv "${ofile}T" "$ofile"
11578 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11579 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11580 { (exit 1); exit 1; }; }
11586 # This can be used to rebuild libtool when needed
11587 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11589 # Always use our own libtool.
11590 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11592 # Prevent multiple expansion
11604 if test $ol_enable_perl != no ; then
11605 # Extract the first word of "perl", so it can be a program name with args.
11606 set dummy perl; ac_word=$2
11607 echo "$as_me:$LINENO: checking for $ac_word" >&5
11608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11609 if test "${ac_cv_path_PERLBIN+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11635 PERLBIN=$ac_cv_path_PERLBIN
11637 if test -n "$PERLBIN"; then
11638 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11639 echo "${ECHO_T}$PERLBIN" >&6
11641 echo "$as_me:$LINENO: result: no" >&5
11642 echo "${ECHO_T}no" >&6
11646 if test "no$PERLBIN" = "no" ; then
11647 if test $ol_enable_perl = yes ; then
11648 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11649 echo "$as_me: error: could not locate perl" >&2;}
11650 { (exit 1); exit 1; }; }
11654 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11655 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11657 if test x"$ol_enable_perl" = "xyes" ; then
11658 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11660 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11667 ac_cpp='$CPP $CPPFLAGS'
11668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11671 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11672 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11673 # On Suns, sometimes $CPP names a directory.
11674 if test -n "$CPP" && test -d "$CPP"; then
11677 if test -z "$CPP"; then
11678 if test "${ac_cv_prog_CPP+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 # Double quotes because CPP needs to be expanded
11682 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11684 ac_preproc_ok=false
11685 for ac_c_preproc_warn_flag in '' yes
11687 # Use a header file that comes with gcc, so configuring glibc
11688 # with a fresh cross-compiler works.
11689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690 # <limits.h> exists even on freestanding compilers.
11691 # On the NeXT, cc -E runs the code through the compiler's parser,
11692 # not just through cpp. "Syntax error" is here to catch this case.
11693 cat >conftest.$ac_ext <<_ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11700 # include <limits.h>
11702 # include <assert.h>
11706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11709 grep -v '^ *+' conftest.er1 >conftest.err
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } >/dev/null; then
11714 if test -s conftest.err; then
11715 ac_cpp_err=$ac_c_preproc_warn_flag
11716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11723 if test -z "$ac_cpp_err"; then
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 # Broken: fails on valid input.
11732 rm -f conftest.err conftest.$ac_ext
11734 # OK, works on sane cases. Now check whether non-existent headers
11735 # can be detected and how.
11736 cat >conftest.$ac_ext <<_ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <ac_nonexistent.h>
11744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11747 grep -v '^ *+' conftest.er1 >conftest.err
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } >/dev/null; then
11752 if test -s conftest.err; then
11753 ac_cpp_err=$ac_c_preproc_warn_flag
11754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11761 if test -z "$ac_cpp_err"; then
11762 # Broken: success on invalid input.
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 # Passes both tests.
11772 rm -f conftest.err conftest.$ac_ext
11775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11776 rm -f conftest.err conftest.$ac_ext
11777 if $ac_preproc_ok; then
11782 ac_cv_prog_CPP=$CPP
11785 CPP=$ac_cv_prog_CPP
11787 ac_cv_prog_CPP=$CPP
11789 echo "$as_me:$LINENO: result: $CPP" >&5
11790 echo "${ECHO_T}$CPP" >&6
11791 ac_preproc_ok=false
11792 for ac_c_preproc_warn_flag in '' yes
11794 # Use a header file that comes with gcc, so configuring glibc
11795 # with a fresh cross-compiler works.
11796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11797 # <limits.h> exists even on freestanding compilers.
11798 # On the NeXT, cc -E runs the code through the compiler's parser,
11799 # not just through cpp. "Syntax error" is here to catch this case.
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11807 # include <limits.h>
11809 # include <assert.h>
11813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev/null; then
11821 if test -s conftest.err; then
11822 ac_cpp_err=$ac_c_preproc_warn_flag
11823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11830 if test -z "$ac_cpp_err"; then
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 # Broken: fails on valid input.
11839 rm -f conftest.err conftest.$ac_ext
11841 # OK, works on sane cases. Now check whether non-existent headers
11842 # can be detected and how.
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 #include <ac_nonexistent.h>
11851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11854 grep -v '^ *+' conftest.er1 >conftest.err
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } >/dev/null; then
11859 if test -s conftest.err; then
11860 ac_cpp_err=$ac_c_preproc_warn_flag
11861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11868 if test -z "$ac_cpp_err"; then
11869 # Broken: success on invalid input.
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11875 # Passes both tests.
11879 rm -f conftest.err conftest.$ac_ext
11882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11883 rm -f conftest.err conftest.$ac_ext
11884 if $ac_preproc_ok; then
11887 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11888 See \`config.log' for more details." >&5
11889 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11890 See \`config.log' for more details." >&2;}
11891 { (exit 1); exit 1; }; }
11895 ac_cpp='$CPP $CPPFLAGS'
11896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11902 *mingw32* ) ac_cv_mingw32=yes ;;
11903 *cygwin* ) ac_cv_cygwin=yes ;;
11909 cat >>confdefs.h <<_ACEOF
11910 #define EXEEXT "${EXEEXT}"
11914 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11915 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11916 if test "${ac_cv_lib_be_be_app+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 ac_check_lib_save_LIBS=$LIBS
11920 LIBS="-lbe -lroot -lnet $LIBS"
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11928 /* Override any gcc2 internal prototype to avoid an error. */
11932 /* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945 (eval $ac_link) 2>conftest.er1
11947 grep -v '^ *+' conftest.er1 >conftest.err
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -z "$ac_c_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_cv_lib_be_be_app=yes
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 ac_cv_lib_be_be_app=no
11972 rm -f conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11977 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11978 if test $ac_cv_lib_be_be_app = yes; then
11979 LIBS="$LIBS -lbe -lroot -lnet"
11986 ac_cpp='$CPP $CPPFLAGS'
11987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11990 if test -n "$ac_tool_prefix"; then
11991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11993 echo "$as_me:$LINENO: checking for $ac_word" >&5
11994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11995 if test "${ac_cv_prog_CC+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 if test -n "$CC"; then
11999 ac_cv_prog_CC="$CC" # Let the user override the test.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12018 if test -n "$CC"; then
12019 echo "$as_me:$LINENO: result: $CC" >&5
12020 echo "${ECHO_T}$CC" >&6
12022 echo "$as_me:$LINENO: result: no" >&5
12023 echo "${ECHO_T}no" >&6
12027 if test -z "$ac_cv_prog_CC"; then
12029 # Extract the first word of "gcc", so it can be a program name with args.
12030 set dummy gcc; ac_word=$2
12031 echo "$as_me:$LINENO: checking for $ac_word" >&5
12032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 if test -n "$ac_ct_CC"; then
12037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046 ac_cv_prog_ac_ct_CC="gcc"
12047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12056 if test -n "$ac_ct_CC"; then
12057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12058 echo "${ECHO_T}$ac_ct_CC" >&6
12060 echo "$as_me:$LINENO: result: no" >&5
12061 echo "${ECHO_T}no" >&6
12066 CC="$ac_cv_prog_CC"
12069 if test -z "$CC"; then
12070 if test -n "$ac_tool_prefix"; then
12071 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12072 set dummy ${ac_tool_prefix}cc; ac_word=$2
12073 echo "$as_me:$LINENO: checking for $ac_word" >&5
12074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12075 if test "${ac_cv_prog_CC+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 if test -n "$CC"; then
12079 ac_cv_prog_CC="$CC" # Let the user override the test.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_CC="${ac_tool_prefix}cc"
12089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 if test -n "$CC"; then
12099 echo "$as_me:$LINENO: result: $CC" >&5
12100 echo "${ECHO_T}$CC" >&6
12102 echo "$as_me:$LINENO: result: no" >&5
12103 echo "${ECHO_T}no" >&6
12107 if test -z "$ac_cv_prog_CC"; then
12109 # Extract the first word of "cc", so it can be a program name with args.
12110 set dummy cc; ac_word=$2
12111 echo "$as_me:$LINENO: checking for $ac_word" >&5
12112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 if test -n "$ac_ct_CC"; then
12117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120 for as_dir in $PATH
12123 test -z "$as_dir" && as_dir=.
12124 for ac_exec_ext in '' $ac_executable_extensions; do
12125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12126 ac_cv_prog_ac_ct_CC="cc"
12127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12136 if test -n "$ac_ct_CC"; then
12137 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12138 echo "${ECHO_T}$ac_ct_CC" >&6
12140 echo "$as_me:$LINENO: result: no" >&5
12141 echo "${ECHO_T}no" >&6
12146 CC="$ac_cv_prog_CC"
12150 if test -z "$CC"; then
12151 # Extract the first word of "cc", so it can be a program name with args.
12152 set dummy cc; ac_word=$2
12153 echo "$as_me:$LINENO: checking for $ac_word" >&5
12154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12155 if test "${ac_cv_prog_CC+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 if test -n "$CC"; then
12159 ac_cv_prog_CC="$CC" # Let the user override the test.
12161 ac_prog_rejected=no
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12170 ac_prog_rejected=yes
12174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 if test $ac_prog_rejected = yes; then
12181 # We found a bogon in the path, so make sure we never use it.
12182 set dummy $ac_cv_prog_CC
12184 if test $# != 0; then
12185 # We chose a different compiler from the bogus one.
12186 # However, it has the same basename, so the bogon will be chosen
12187 # first if we set CC to just the basename; use the full file name.
12189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12195 if test -n "$CC"; then
12196 echo "$as_me:$LINENO: result: $CC" >&5
12197 echo "${ECHO_T}$CC" >&6
12199 echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6
12204 if test -z "$CC"; then
12205 if test -n "$ac_tool_prefix"; then
12208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12210 echo "$as_me:$LINENO: checking for $ac_word" >&5
12211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12212 if test "${ac_cv_prog_CC+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 if test -n "$CC"; then
12216 ac_cv_prog_CC="$CC" # Let the user override the test.
12218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219 for as_dir in $PATH
12222 test -z "$as_dir" && as_dir=.
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12225 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 if test -n "$CC"; then
12236 echo "$as_me:$LINENO: result: $CC" >&5
12237 echo "${ECHO_T}$CC" >&6
12239 echo "$as_me:$LINENO: result: no" >&5
12240 echo "${ECHO_T}no" >&6
12243 test -n "$CC" && break
12246 if test -z "$CC"; then
12250 # Extract the first word of "$ac_prog", so it can be a program name with args.
12251 set dummy $ac_prog; ac_word=$2
12252 echo "$as_me:$LINENO: checking for $ac_word" >&5
12253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 if test -n "$ac_ct_CC"; then
12258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261 for as_dir in $PATH
12264 test -z "$as_dir" && as_dir=.
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12267 ac_cv_prog_ac_ct_CC="$ac_prog"
12268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12277 if test -n "$ac_ct_CC"; then
12278 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12279 echo "${ECHO_T}$ac_ct_CC" >&6
12281 echo "$as_me:$LINENO: result: no" >&5
12282 echo "${ECHO_T}no" >&6
12285 test -n "$ac_ct_CC" && break
12294 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12295 See \`config.log' for more details." >&5
12296 echo "$as_me: error: no acceptable C compiler found in \$PATH
12297 See \`config.log' for more details." >&2;}
12298 { (exit 1); exit 1; }; }
12300 # Provide some information about the compiler.
12301 echo "$as_me:$LINENO:" \
12302 "checking for C compiler version" >&5
12303 ac_compiler=`set X $ac_compile; echo $2`
12304 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12305 (eval $ac_compiler --version </dev/null >&5) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }
12309 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12310 (eval $ac_compiler -v </dev/null >&5) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }
12314 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12315 (eval $ac_compiler -V </dev/null >&5) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }
12320 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12321 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12322 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 cat >conftest.$ac_ext <<_ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12343 rm -f conftest.$ac_objext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag"
12353 || test ! -s conftest.err'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_compiler_gnu=yes
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12373 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12376 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12377 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12378 GCC=`test $ac_compiler_gnu = yes && echo yes`
12379 ac_test_CFLAGS=${CFLAGS+set}
12380 ac_save_CFLAGS=$CFLAGS
12382 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12383 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12384 if test "${ac_cv_prog_cc_g+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12402 rm -f conftest.$ac_objext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404 (eval $ac_compile) 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_c_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest.$ac_objext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 ac_cv_prog_cc_g=yes
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12435 if test "$ac_test_CFLAGS" = set; then
12436 CFLAGS=$ac_save_CFLAGS
12437 elif test $ac_cv_prog_cc_g = yes; then
12438 if test "$GCC" = yes; then
12444 if test "$GCC" = yes; then
12450 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12455 ac_cv_prog_cc_stdc=no
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 #include <stdarg.h>
12465 #include <sys/types.h>
12466 #include <sys/stat.h>
12467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12468 struct buf { int x; };
12469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12470 static char *e (p, i)
12476 static char *f (char * (*g) (char **, int), char **p, ...)
12481 s = g (p, va_arg (v,int));
12486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12487 function prototypes and stuff, but not '\xHH' hex character constants.
12488 These don't provoke an error unfortunately, instead are silently treated
12489 as 'x'. The following induces an error, until -std1 is added to get
12490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12491 array size at least. It's necessary to write '\x00'==0 to get something
12492 that's true only with -std1. */
12493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12495 int test (int i, double x);
12496 struct s1 {int (*f) (int a);};
12497 struct s2 {int (*f) (double a);};
12498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12509 # Don't try gcc -ansi; that turns off useful extensions and
12510 # breaks some systems' header files.
12511 # AIX -qlanglvl=ansi
12512 # Ultrix and OSF/1 -std1
12513 # HP-UX 10.20 and later -Ae
12514 # HP-UX older versions -Aa -D_HPUX_SOURCE
12515 # SVR4 -Xc -D__EXTENSIONS__
12516 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12518 CC="$ac_save_CC $ac_arg"
12519 rm -f conftest.$ac_objext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521 (eval $ac_compile) 2>conftest.er1
12523 grep -v '^ *+' conftest.er1 >conftest.err
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag"
12529 || test ! -s conftest.err'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; } &&
12535 { ac_try='test -s conftest.$ac_objext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 ac_cv_prog_cc_stdc=$ac_arg
12544 echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12548 rm -f conftest.err conftest.$ac_objext
12550 rm -f conftest.$ac_ext conftest.$ac_objext
12555 case "x$ac_cv_prog_cc_stdc" in
12557 echo "$as_me:$LINENO: result: none needed" >&5
12558 echo "${ECHO_T}none needed" >&6 ;;
12560 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12561 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12562 CC="$CC $ac_cv_prog_cc_stdc" ;;
12565 # Some people use a C++ compiler to compile C. Since we use `exit',
12566 # in C++ we need to declare it. In case someone uses the same compiler
12567 # for both compiling C and C++ we need to have the C++ compiler decide
12568 # the declaration of exit, since it's the most demanding environment.
12569 cat >conftest.$ac_ext <<_ACEOF
12570 #ifndef __cplusplus
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag"
12584 || test ! -s conftest.err'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest.$ac_objext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 for ac_declaration in \
12598 'extern "C" void std::exit (int) throw (); using std::exit;' \
12599 'extern "C" void std::exit (int); using std::exit;' \
12600 'extern "C" void exit (int) throw ();' \
12601 'extern "C" void exit (int);' \
12604 cat >conftest.$ac_ext <<_ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12611 #include <stdlib.h>
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622 (eval $ac_compile) 2>conftest.er1
12624 grep -v '^ *+' conftest.er1 >conftest.err
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag"
12630 || test ! -s conftest.err'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; } &&
12636 { ac_try='test -s conftest.$ac_objext'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12650 cat >conftest.$ac_ext <<_ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12665 rm -f conftest.$ac_objext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try='test -z "$ac_c_werror_flag"
12675 || test ! -s conftest.err'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest.$ac_objext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12696 if test -n "$ac_declaration"; then
12697 echo '#ifdef __cplusplus' >>confdefs.h
12698 echo $ac_declaration >>confdefs.h
12699 echo '#endif' >>confdefs.h
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12709 ac_cpp='$CPP $CPPFLAGS'
12710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12714 depcc="$CC" am_compiler_list=
12716 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12717 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12718 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12722 # We make a subdir and do the tests there. Otherwise we can end up
12723 # making bogus files that we don't know about and never remove. For
12724 # instance it was reported that on HP-UX the gcc test will end up
12725 # making a dummy file named `D' -- because `-MD' means `put the output
12728 # Copy depcomp to subdir because otherwise we won't find it if we're
12729 # using a relative directory.
12730 cp "$am_depcomp" conftest.dir
12732 # We will build objects and dependencies in a subdirectory because
12733 # it helps to detect inapplicable dependency modes. For instance
12734 # both Tru64's cc and ICC support -MD to output dependencies as a
12735 # side effect of compilation, but ICC will put the dependencies in
12736 # the current directory while Tru64 will put them in the object
12740 am_cv_CC_dependencies_compiler_type=none
12741 if test "$am_compiler_list" = ""; then
12742 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12744 for depmode in $am_compiler_list; do
12745 # Setup a source with many dependencies, because some compilers
12746 # like to wrap large dependency lists on column 80 (with \), and
12747 # we should not choose a depcomp mode which is confused by this.
12749 # We need to recreate these files for each test, as the compiler may
12750 # overwrite some of them when testing with obscure command lines.
12751 # This happens at least with the AIX C compiler.
12753 for i in 1 2 3 4 5 6; do
12754 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12755 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12756 # Solaris 8's {/usr,}/bin/sh.
12757 touch sub/conftst$i.h
12759 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12763 # after this tag, mechanisms are not by side-effect, so they'll
12764 # only be used when explicitly requested
12765 if test "x$enable_dependency_tracking" = xyes; then
12773 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12774 # mode. It turns out that the SunPro C++ compiler does not properly
12775 # handle `-M -o', and we need to detect this.
12776 if depmode=$depmode \
12777 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12779 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12780 >/dev/null 2>conftest.err &&
12781 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12782 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12783 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12784 # icc doesn't choke on unknown options, it will just issue warnings
12785 # or remarks (even with -Werror). So we grep stderr for any message
12786 # that says an option was ignored or not supported.
12787 # When given -MP, icc 7.0 and 7.1 complain thusly:
12788 # icc: Command line warning: ignoring option '-M'; no argument required
12789 # The diagnosis changed in icc 8.0:
12790 # icc: Command line remark: option '-MP' not supported
12791 if (grep 'ignoring option' conftest.err ||
12792 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12793 am_cv_CC_dependencies_compiler_type=$depmode
12800 rm -rf conftest.dir
12802 am_cv_CC_dependencies_compiler_type=none
12806 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12807 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12813 test "x$enable_dependency_tracking" != xno \
12814 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12815 am__fastdepCC_TRUE=
12816 am__fastdepCC_FALSE='#'
12818 am__fastdepCC_TRUE='#'
12819 am__fastdepCC_FALSE=
12823 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12824 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12825 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12826 { (exit 1); exit 1; }; }
12829 # test for make depend flag
12832 if test -z "${MKDEP}"; then
12833 OL_MKDEP="${CC-cc}"
12834 if test -z "${MKDEP_FLAGS}"; then
12835 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12836 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12837 if test "${ol_cv_mkdep+set}" = set; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 for flag in "-M" "-xM"; do
12843 cat > conftest.c <<EOF
12846 if { ac_try='$OL_MKDEP $flag conftest.c'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } \
12852 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12854 if test ! -f conftest."${ac_object}" ; then
12856 OL_MKDEP_FLAGS="$flag"
12864 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12865 echo "${ECHO_T}$ol_cv_mkdep" >&6
12866 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12869 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12873 OL_MKDEP="${MKDEP}"
12874 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12879 if test "${ol_cv_mkdep}" = no ; then
12880 # this will soon become an error
12881 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12882 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12885 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12886 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12887 if test "${ac_cv_lib_s_afopen+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 ac_check_lib_save_LIBS=$LIBS
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12899 /* Override any gcc2 internal prototype to avoid an error. */
12903 /* We use char because int might match the return type of a gcc2
12904 builtin and then its argument prototype would still apply. */
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916 (eval $ac_link) 2>conftest.er1
12918 grep -v '^ *+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -z "$ac_c_werror_flag"
12924 || test ! -s conftest.err'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest$ac_exeext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_lib_s_afopen=yes
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 ac_cv_lib_s_afopen=no
12943 rm -f conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12945 LIBS=$ac_check_lib_save_LIBS
12947 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12948 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12949 if test $ac_cv_lib_s_afopen = yes; then
12953 cat >>confdefs.h <<\_ACEOF
12954 #define HAVE_AIX_SECURITY 1
12963 ac_cv_func_getopt=no
12965 cat >>confdefs.h <<\_ACEOF
12966 #define BOTH_STRINGS_H 1
12973 WITH_MODULES_ENABLED=no
12974 if test $ol_enable_modules != no ; then
12976 for ac_header in ltdl.h
12978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12980 echo "$as_me:$LINENO: checking for $ac_header" >&5
12981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12988 # Is the header compilable?
12989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12991 cat >conftest.$ac_ext <<_ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 $ac_includes_default
12998 #include <$ac_header>
13000 rm -f conftest.$ac_objext
13001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13002 (eval $ac_compile) 2>conftest.er1
13004 grep -v '^ *+' conftest.er1 >conftest.err
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag"
13010 || test ! -s conftest.err'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest.$ac_objext'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13022 ac_header_compiler=yes
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13027 ac_header_compiler=no
13029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 echo "${ECHO_T}$ac_header_compiler" >&6
13033 # Is the header present?
13034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <$ac_header>
13044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13047 grep -v '^ *+' conftest.er1 >conftest.err
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } >/dev/null; then
13052 if test -s conftest.err; then
13053 ac_cpp_err=$ac_c_preproc_warn_flag
13054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13061 if test -z "$ac_cpp_err"; then
13062 ac_header_preproc=yes
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_header_preproc=no
13069 rm -f conftest.err conftest.$ac_ext
13070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13071 echo "${ECHO_T}$ac_header_preproc" >&6
13073 # So? What about this header?
13074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13080 ac_header_preproc=yes
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13097 ## --------------------------------------------- ##
13098 ## Report this to <http://www.openldap.org/its/> ##
13099 ## --------------------------------------------- ##
13102 sed "s/^/$as_me: WARNING: /" >&2
13105 echo "$as_me:$LINENO: checking for $ac_header" >&5
13106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 eval "$as_ac_Header=\$ac_header_preproc"
13112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13117 cat >>confdefs.h <<_ACEOF
13118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13126 if test $ac_cv_header_ltdl_h = no ; then
13127 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13128 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13129 { (exit 1); exit 1; }; }
13132 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13133 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13134 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_check_lib_save_LIBS=$LIBS
13138 LIBS="-lltdl $LIBS"
13139 cat >conftest.$ac_ext <<_ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 /* Override any gcc2 internal prototype to avoid an error. */
13150 /* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163 (eval $ac_link) 2>conftest.er1
13165 grep -v '^ *+' conftest.er1 >conftest.err
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -z "$ac_c_werror_flag"
13171 || test ! -s conftest.err'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; } &&
13177 { ac_try='test -s conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_cv_lib_ltdl_lt_dlinit=yes
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 ac_cv_lib_ltdl_lt_dlinit=no
13190 rm -f conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13195 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13196 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13198 MODULES_LIBS=-lltdl
13200 cat >>confdefs.h <<\_ACEOF
13201 #define HAVE_LIBLTDL 1
13208 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13209 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13210 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13211 { (exit 1); exit 1; }; }
13213 ol_link_modules=yes
13214 WITH_MODULES_ENABLED=yes
13217 for i in $Backends; do
13218 eval "ol_tmp=\$ol_enable_$i"
13219 if test $ol_tmp = mod ; then
13220 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13221 echo "$as_me: WARNING: building static $i backend" >&2;}
13222 eval "ol_enable_$i=yes"
13225 for i in $Overlays; do
13226 eval "ol_tmp=\$ol_enable_$i"
13227 if test $ol_tmp = mod ; then
13228 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13229 echo "$as_me: WARNING: building static $i overlay" >&2;}
13230 eval "ol_enable_$i=yes"
13236 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13237 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13238 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 cat >conftest.$ac_ext <<_ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13250 #include <__ASCII__/generate_error.h>
13254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13257 grep -v '^ *+' conftest.er1 >conftest.err
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } >/dev/null; then
13262 if test -s conftest.err; then
13263 ac_cpp_err=$ac_c_preproc_warn_flag
13264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13271 if test -z "$ac_cpp_err"; then
13272 ol_cv_cpp_ebcdic=yes
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ol_cv_cpp_ebcdic=no
13279 rm -f conftest.err conftest.$ac_ext
13281 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13282 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13283 if test $ol_cv_cpp_ebcdic = yes ; then
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_EBCDIC 1
13291 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13293 if test "${ol_cv_header_stdc+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h. */
13302 #include <stdlib.h>
13303 #include <stdarg.h>
13304 #include <string.h>
13307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13310 grep -v '^ *+' conftest.er1 >conftest.err
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } >/dev/null; then
13315 if test -s conftest.err; then
13316 ac_cpp_err=$ac_c_preproc_warn_flag
13317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13324 if test -z "$ac_cpp_err"; then
13325 ol_cv_header_stdc=yes
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ol_cv_header_stdc=no
13332 rm -f conftest.err conftest.$ac_ext
13334 if test $ol_cv_header_stdc = yes; then
13335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13336 cat >conftest.$ac_ext <<_ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 #include <string.h>
13345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13346 $EGREP "memchr" >/dev/null 2>&1; then
13349 ol_cv_header_stdc=no
13355 if test $ol_cv_header_stdc = yes; then
13356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 #include <stdlib.h>
13366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13367 $EGREP "free" >/dev/null 2>&1; then
13370 ol_cv_header_stdc=no
13376 if test $ol_cv_header_stdc = yes; then
13377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13378 if test "$cross_compiling" = yes; then
13381 cat >conftest.$ac_ext <<_ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 #ifndef HAVE_EBCDIC
13389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13392 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13393 || ('j' <= (c) && (c) <= 'r') \
13394 || ('s' <= (c) && (c) <= 'z'))
13395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13398 int main () { int i; for (i = 0; i < 256; i++)
13399 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13403 rm -f conftest$ac_exeext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13405 (eval $ac_link) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13416 echo "$as_me: program exited with status $ac_status" >&5
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 ( exit $ac_status )
13421 ol_cv_header_stdc=no
13423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13427 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13428 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13429 if test $ol_cv_header_stdc = yes; then
13430 cat >>confdefs.h <<\_ACEOF
13431 #define STDC_HEADERS 1
13435 ac_cv_header_stdc=disable
13438 if test $ol_cv_header_stdc != yes; then
13439 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13440 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13448 ac_header_dirent=no
13449 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13450 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13451 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13452 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 #include <sys/types.h>
13474 rm -f conftest.$ac_objext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476 (eval $ac_compile) 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest.$ac_objext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 eval "$as_ac_Header=yes"
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 eval "$as_ac_Header=no"
13503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13508 cat >>confdefs.h <<_ACEOF
13509 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13512 ac_header_dirent=$ac_hdr; break
13516 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13517 if test $ac_header_dirent = dirent.h; then
13518 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13519 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13520 if test "${ac_cv_search_opendir+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 ac_func_search_save_LIBS=$LIBS
13524 ac_cv_search_opendir=no
13525 cat >conftest.$ac_ext <<_ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13532 /* Override any gcc2 internal prototype to avoid an error. */
13536 /* We use char because int might match the return type of a gcc2
13537 builtin and then its argument prototype would still apply. */
13547 rm -f conftest.$ac_objext conftest$ac_exeext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13549 (eval $ac_link) 2>conftest.er1
13551 grep -v '^ *+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag"
13557 || test ! -s conftest.err'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest$ac_exeext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_cv_search_opendir="none required"
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13575 rm -f conftest.err conftest.$ac_objext \
13576 conftest$ac_exeext conftest.$ac_ext
13577 if test "$ac_cv_search_opendir" = no; then
13578 for ac_lib in dir; do
13579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13580 cat >conftest.$ac_ext <<_ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13587 /* Override any gcc2 internal prototype to avoid an error. */
13591 /* We use char because int might match the return type of a gcc2
13592 builtin and then its argument prototype would still apply. */
13602 rm -f conftest.$ac_objext conftest$ac_exeext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13604 (eval $ac_link) 2>conftest.er1
13606 grep -v '^ *+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
13618 { ac_try='test -s conftest$ac_exeext'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
13624 ac_cv_search_opendir="-l$ac_lib"
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13631 rm -f conftest.err conftest.$ac_objext \
13632 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_func_search_save_LIBS
13637 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13638 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13639 if test "$ac_cv_search_opendir" != no; then
13640 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13645 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13646 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13647 if test "${ac_cv_search_opendir+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 ac_func_search_save_LIBS=$LIBS
13651 ac_cv_search_opendir=no
13652 cat >conftest.$ac_ext <<_ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13659 /* Override any gcc2 internal prototype to avoid an error. */
13663 /* We use char because int might match the return type of a gcc2
13664 builtin and then its argument prototype would still apply. */
13674 rm -f conftest.$ac_objext conftest$ac_exeext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13676 (eval $ac_link) 2>conftest.er1
13678 grep -v '^ *+' conftest.er1 >conftest.err
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest$ac_exeext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_cv_search_opendir="none required"
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13702 rm -f conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 if test "$ac_cv_search_opendir" = no; then
13705 for ac_lib in x; do
13706 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13714 /* Override any gcc2 internal prototype to avoid an error. */
13718 /* We use char because int might match the return type of a gcc2
13719 builtin and then its argument prototype would still apply. */
13729 rm -f conftest.$ac_objext conftest$ac_exeext
13730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13731 (eval $ac_link) 2>conftest.er1
13733 grep -v '^ *+' conftest.er1 >conftest.err
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try='test -z "$ac_c_werror_flag"
13739 || test ! -s conftest.err'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try='test -s conftest$ac_exeext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_cv_search_opendir="-l$ac_lib"
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13758 rm -f conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
13762 LIBS=$ac_func_search_save_LIBS
13764 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13765 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13766 if test "$ac_cv_search_opendir" != no; then
13767 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13773 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13774 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13775 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 cat >conftest.$ac_ext <<_ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 #include <sys/types.h>
13785 #include <sys/wait.h>
13786 #ifndef WEXITSTATUS
13787 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13790 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13798 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13803 rm -f conftest.$ac_objext
13804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13805 (eval $ac_compile) 2>conftest.er1
13807 grep -v '^ *+' conftest.er1 >conftest.err
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } &&
13812 { ac_try='test -z "$ac_c_werror_flag"
13813 || test ! -s conftest.err'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest.$ac_objext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_cv_header_sys_wait_h=yes
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_cv_header_sys_wait_h=no
13832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13834 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13835 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13836 if test $ac_cv_header_sys_wait_h = yes; then
13838 cat >>confdefs.h <<\_ACEOF
13839 #define HAVE_SYS_WAIT_H 1
13844 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13845 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13846 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 #include <sys/types.h>
13856 #include <termios.h>
13862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13863 $EGREP "yes" >/dev/null 2>&1; then
13864 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13866 ac_cv_sys_tiocgwinsz_in_termios_h=no
13871 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13872 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13874 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13875 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13876 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13877 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13880 cat >conftest.$ac_ext <<_ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 #include <sys/types.h>
13887 #include <sys/ioctl.h>
13893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13894 $EGREP "yes" >/dev/null 2>&1; then
13895 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13897 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13902 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13903 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13905 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13907 cat >>confdefs.h <<\_ACEOF
13908 #define GWINSZ_IN_SYS_IOCTL 1
14012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14014 echo "$as_me:$LINENO: checking for $ac_header" >&5
14015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022 # Is the header compilable?
14023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14025 cat >conftest.$ac_ext <<_ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14031 $ac_includes_default
14032 #include <$ac_header>
14034 rm -f conftest.$ac_objext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036 (eval $ac_compile) 2>conftest.er1
14038 grep -v '^ *+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest.$ac_objext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_header_compiler=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_header_compiler=no
14063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14065 echo "${ECHO_T}$ac_header_compiler" >&6
14067 # Is the header present?
14068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <$ac_header>
14078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14081 grep -v '^ *+' conftest.er1 >conftest.err
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } >/dev/null; then
14086 if test -s conftest.err; then
14087 ac_cpp_err=$ac_c_preproc_warn_flag
14088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14095 if test -z "$ac_cpp_err"; then
14096 ac_header_preproc=yes
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14101 ac_header_preproc=no
14103 rm -f conftest.err conftest.$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14105 echo "${ECHO_T}$ac_header_preproc" >&6
14107 # So? What about this header?
14108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14114 ac_header_preproc=yes
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14131 ## --------------------------------------------- ##
14132 ## Report this to <http://www.openldap.org/its/> ##
14133 ## --------------------------------------------- ##
14136 sed "s/^/$as_me: WARNING: /" >&2
14139 echo "$as_me:$LINENO: checking for $ac_header" >&5
14140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 eval "$as_ac_Header=\$ac_header_preproc"
14146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14151 cat >>confdefs.h <<_ACEOF
14152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14160 if test "$ac_cv_mingw32" = yes ; then
14163 for ac_header in winsock.h winsock2.h
14165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14167 echo "$as_me:$LINENO: checking for $ac_header" >&5
14168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14175 # Is the header compilable?
14176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 $ac_includes_default
14185 #include <$ac_header>
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189 (eval $ac_compile) 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -z "$ac_c_werror_flag"
14197 || test ! -s conftest.err'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest.$ac_objext'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
14209 ac_header_compiler=yes
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_header_compiler=no
14216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14218 echo "${ECHO_T}$ac_header_compiler" >&6
14220 # Is the header present?
14221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 #include <$ac_header>
14231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14234 grep -v '^ *+' conftest.er1 >conftest.err
14236 cat conftest.err >&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } >/dev/null; then
14239 if test -s conftest.err; then
14240 ac_cpp_err=$ac_c_preproc_warn_flag
14241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14248 if test -z "$ac_cpp_err"; then
14249 ac_header_preproc=yes
14251 echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 ac_header_preproc=no
14256 rm -f conftest.err conftest.$ac_ext
14257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14258 echo "${ECHO_T}$ac_header_preproc" >&6
14260 # So? What about this header?
14261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14267 ac_header_preproc=yes
14270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14284 ## --------------------------------------------- ##
14285 ## Report this to <http://www.openldap.org/its/> ##
14286 ## --------------------------------------------- ##
14289 sed "s/^/$as_me: WARNING: /" >&2
14292 echo "$as_me:$LINENO: checking for $ac_header" >&5
14293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 eval "$as_ac_Header=\$ac_header_preproc"
14299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14304 cat >>confdefs.h <<_ACEOF
14305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14315 for ac_header in resolv.h
14317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14318 echo "$as_me:$LINENO: checking for $ac_header" >&5
14319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14330 #include <netinet/in.h>
14333 #include <$ac_header>
14335 rm -f conftest.$ac_objext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337 (eval $ac_compile) 2>conftest.er1
14339 grep -v '^ *+' conftest.er1 >conftest.err
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -z "$ac_c_werror_flag"
14345 || test ! -s conftest.err'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 eval "$as_ac_Header=yes"
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 eval "$as_ac_Header=no"
14364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14369 cat >>confdefs.h <<_ACEOF
14370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14379 for ac_header in netinet/tcp.h
14381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14382 echo "$as_me:$LINENO: checking for $ac_header" >&5
14383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14394 #include <netinet/in.h>
14397 #include <$ac_header>
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>conftest.er1
14403 grep -v '^ *+' conftest.er1 >conftest.err
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try='test -s conftest.$ac_objext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 eval "$as_ac_Header=yes"
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 eval "$as_ac_Header=no"
14428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14433 cat >>confdefs.h <<_ACEOF
14434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14443 for ac_header in sys/ucred.h
14445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14446 echo "$as_me:$LINENO: checking for $ac_header" >&5
14447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 cat >conftest.$ac_ext <<_ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457 $ac_includes_default
14458 #ifdef HAVE_SYS_PARAM_H
14459 #include <sys/param.h>
14463 #include <$ac_header>
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>conftest.er1
14469 grep -v '^ *+' conftest.er1 >conftest.err
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
14474 { ac_try='test -z "$ac_c_werror_flag"
14475 || test ! -s conftest.err'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 eval "$as_ac_Header=yes"
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 eval "$as_ac_Header=no"
14494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14499 cat >>confdefs.h <<_ACEOF
14500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14511 for ac_func in sigaction sigset
14513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14514 echo "$as_me:$LINENO: checking for $ac_func" >&5
14515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14516 if eval "test \"\${$as_ac_var+set}\" = set"; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14527 #define $ac_func innocuous_$ac_func
14529 /* System header to define __stub macros and hopefully few prototypes,
14530 which can conflict with char $ac_func (); below.
14531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14532 <limits.h> exists even on freestanding compilers. */
14535 # include <limits.h>
14537 # include <assert.h>
14542 /* Override any gcc2 internal prototype to avoid an error. */
14547 /* We use char because int might match the return type of a gcc2
14548 builtin and then its argument prototype would still apply. */
14550 /* The GNU C library defines this for functions which it implements
14551 to always fail with ENOSYS. Some functions are actually named
14552 something starting with __ and the normal name is an alias. */
14553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14556 char (*f) () = $ac_func;
14565 return f != $ac_func;
14570 rm -f conftest.$ac_objext conftest$ac_exeext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14572 (eval $ac_link) 2>conftest.er1
14574 grep -v '^ *+' conftest.er1 >conftest.err
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -z "$ac_c_werror_flag"
14580 || test ! -s conftest.err'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest$ac_exeext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 eval "$as_ac_var=yes"
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 eval "$as_ac_var=no"
14599 rm -f conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14604 if test `eval echo '${'$as_ac_var'}'` = yes; then
14605 cat >>confdefs.h <<_ACEOF
14606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14613 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14615 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14616 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14617 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 ac_check_lib_save_LIBS=$LIBS
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14629 /* Override any gcc2 internal prototype to avoid an error. */
14633 /* We use char because int might match the return type of a gcc2
14634 builtin and then its argument prototype would still apply. */
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14646 (eval $ac_link) 2>conftest.er1
14648 grep -v '^ *+' conftest.er1 >conftest.err
14650 cat conftest.err >&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -z "$ac_c_werror_flag"
14654 || test ! -s conftest.err'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; } &&
14660 { ac_try='test -s conftest$ac_exeext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ac_cv_lib_V3_sigset=yes
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ac_cv_lib_V3_sigset=no
14673 rm -f conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14675 LIBS=$ac_check_lib_save_LIBS
14677 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14678 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14679 if test $ac_cv_lib_V3_sigset = yes; then
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_LIBV3 1
14690 if test "$ac_cv_header_winsock_h" = yes; then
14691 echo "$as_me:$LINENO: checking for winsock" >&5
14692 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14693 if test "${ol_cv_winsock+set}" = set; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 for curlib in ws2_32 wsock32; do
14698 LIBS="$LIBS -l$curlib"
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 #include <winsock.h>
14712 select(0,NULL,NULL,NULL,NULL);
14714 gethostname(NULL,0);
14720 rm -f conftest.$ac_objext conftest$ac_exeext
14721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14722 (eval $ac_link) 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag"
14730 || test ! -s conftest.err'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14749 rm -f conftest.err conftest.$ac_objext \
14750 conftest$ac_exeext conftest.$ac_ext
14752 if test $ol_cv_winsock = yes; then
14754 cat >>confdefs.h <<\_ACEOF
14755 #define HAVE_WINSOCK 1
14758 ac_cv_func_socket=yes
14759 ac_cv_func_select=yes
14760 ac_cv_func_closesocket=yes
14761 ac_cv_func_gethostname=yes
14762 if test $curlib = ws2_32; then
14763 ol_cv_winsock=winsock2
14765 cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_WINSOCK2 1
14775 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14776 echo "${ECHO_T}$ol_cv_winsock" >&6
14780 echo "$as_me:$LINENO: checking for socket" >&5
14781 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14782 if test "${ac_cv_func_socket+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 cat >conftest.$ac_ext <<_ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14793 #define socket innocuous_socket
14795 /* System header to define __stub macros and hopefully few prototypes,
14796 which can conflict with char socket (); below.
14797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14798 <limits.h> exists even on freestanding compilers. */
14801 # include <limits.h>
14803 # include <assert.h>
14808 /* Override any gcc2 internal prototype to avoid an error. */
14813 /* We use char because int might match the return type of a gcc2
14814 builtin and then its argument prototype would still apply. */
14816 /* The GNU C library defines this for functions which it implements
14817 to always fail with ENOSYS. Some functions are actually named
14818 something starting with __ and the normal name is an alias. */
14819 #if defined (__stub_socket) || defined (__stub___socket)
14822 char (*f) () = socket;
14831 return f != socket;
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838 (eval $ac_link) 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } &&
14845 { ac_try='test -z "$ac_c_werror_flag"
14846 || test ! -s conftest.err'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; } &&
14852 { ac_try='test -s conftest$ac_exeext'
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; }; then
14858 ac_cv_func_socket=yes
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_cv_func_socket=no
14865 rm -f conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14868 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14869 echo "${ECHO_T}$ac_cv_func_socket" >&6
14870 if test $ac_cv_func_socket = yes; then
14875 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14876 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14877 if test "${ac_cv_lib_socket_main+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 ac_check_lib_save_LIBS=$LIBS
14881 LIBS="-lsocket $LIBS"
14882 cat >conftest.$ac_ext <<_ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14898 rm -f conftest.$ac_objext conftest$ac_exeext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14900 (eval $ac_link) 2>conftest.er1
14902 grep -v '^ *+' conftest.er1 >conftest.err
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest$ac_exeext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_lib_socket_main=yes
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_lib_socket_main=no
14927 rm -f conftest.err conftest.$ac_objext \
14928 conftest$ac_exeext conftest.$ac_ext
14929 LIBS=$ac_check_lib_save_LIBS
14931 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14932 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14933 if test $ac_cv_lib_socket_main = yes; then
14934 cat >>confdefs.h <<_ACEOF
14935 #define HAVE_LIBSOCKET 1
14938 LIBS="-lsocket $LIBS"
14943 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14944 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14945 if test "${ac_cv_lib_net_main+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 ac_check_lib_save_LIBS=$LIBS
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14968 (eval $ac_link) 2>conftest.er1
14970 grep -v '^ *+' conftest.er1 >conftest.err
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag"
14976 || test ! -s conftest.err'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest$ac_exeext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_cv_lib_net_main=yes
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 ac_cv_lib_net_main=no
14995 rm -f conftest.err conftest.$ac_objext \
14996 conftest$ac_exeext conftest.$ac_ext
14997 LIBS=$ac_check_lib_save_LIBS
14999 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15000 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
15001 if test $ac_cv_lib_net_main = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_LIBNET 1
15011 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15012 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
15013 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 ac_check_lib_save_LIBS=$LIBS
15017 LIBS="-lnsl_s $LIBS"
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036 (eval $ac_link) 2>conftest.er1
15038 grep -v '^ *+' conftest.er1 >conftest.err
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -z "$ac_c_werror_flag"
15044 || test ! -s conftest.err'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; } &&
15050 { ac_try='test -s conftest$ac_exeext'
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; }; then
15056 ac_cv_lib_nsl_s_main=yes
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ac_cv_lib_nsl_s_main=no
15063 rm -f conftest.err conftest.$ac_objext \
15064 conftest$ac_exeext conftest.$ac_ext
15065 LIBS=$ac_check_lib_save_LIBS
15067 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15068 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15069 if test $ac_cv_lib_nsl_s_main = yes; then
15070 cat >>confdefs.h <<_ACEOF
15071 #define HAVE_LIBNSL_S 1
15074 LIBS="-lnsl_s $LIBS"
15079 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15080 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15081 if test "${ac_cv_lib_nsl_main+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 ac_check_lib_save_LIBS=$LIBS
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15102 rm -f conftest.$ac_objext conftest$ac_exeext
15103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15104 (eval $ac_link) 2>conftest.er1
15106 grep -v '^ *+' conftest.er1 >conftest.err
15108 cat conftest.err >&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } &&
15111 { ac_try='test -z "$ac_c_werror_flag"
15112 || test ! -s conftest.err'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; } &&
15118 { ac_try='test -s conftest$ac_exeext'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124 ac_cv_lib_nsl_main=yes
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15129 ac_cv_lib_nsl_main=no
15131 rm -f conftest.err conftest.$ac_objext \
15132 conftest$ac_exeext conftest.$ac_ext
15133 LIBS=$ac_check_lib_save_LIBS
15135 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15136 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15137 if test $ac_cv_lib_nsl_main = yes; then
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_LIBNSL 1
15147 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15148 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15149 if test "${ac_cv_lib_inet_socket+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 ac_check_lib_save_LIBS=$LIBS
15153 LIBS="-linet $LIBS"
15154 cat >conftest.$ac_ext <<_ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15161 /* Override any gcc2 internal prototype to avoid an error. */
15165 /* We use char because int might match the return type of a gcc2
15166 builtin and then its argument prototype would still apply. */
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -z "$ac_c_werror_flag"
15186 || test ! -s conftest.err'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; } &&
15192 { ac_try='test -s conftest$ac_exeext'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; }; then
15198 ac_cv_lib_inet_socket=yes
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15203 ac_cv_lib_inet_socket=no
15205 rm -f conftest.err conftest.$ac_objext \
15206 conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15209 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15210 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15211 if test $ac_cv_lib_inet_socket = yes; then
15212 cat >>confdefs.h <<_ACEOF
15213 #define HAVE_LIBINET 1
15216 LIBS="-linet $LIBS"
15221 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15222 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15223 if test "${ac_cv_lib_gen_main+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15226 ac_check_lib_save_LIBS=$LIBS
15228 cat >conftest.$ac_ext <<_ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15246 (eval $ac_link) 2>conftest.er1
15248 grep -v '^ *+' conftest.er1 >conftest.err
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try='test -z "$ac_c_werror_flag"
15254 || test ! -s conftest.err'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest$ac_exeext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_cv_lib_gen_main=yes
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 ac_cv_lib_gen_main=no
15273 rm -f conftest.err conftest.$ac_objext \
15274 conftest$ac_exeext conftest.$ac_ext
15275 LIBS=$ac_check_lib_save_LIBS
15277 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15278 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15279 if test $ac_cv_lib_gen_main = yes; then
15280 cat >>confdefs.h <<_ACEOF
15281 #define HAVE_LIBGEN 1
15292 echo "$as_me:$LINENO: checking for select" >&5
15293 echo $ECHO_N "checking for select... $ECHO_C" >&6
15294 if test "${ac_cv_func_select+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 cat >conftest.$ac_ext <<_ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15303 /* Define select to an innocuous variant, in case <limits.h> declares select.
15304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15305 #define select innocuous_select
15307 /* System header to define __stub macros and hopefully few prototypes,
15308 which can conflict with char select (); below.
15309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15310 <limits.h> exists even on freestanding compilers. */
15313 # include <limits.h>
15315 # include <assert.h>
15320 /* Override any gcc2 internal prototype to avoid an error. */
15325 /* We use char because int might match the return type of a gcc2
15326 builtin and then its argument prototype would still apply. */
15328 /* The GNU C library defines this for functions which it implements
15329 to always fail with ENOSYS. Some functions are actually named
15330 something starting with __ and the normal name is an alias. */
15331 #if defined (__stub_select) || defined (__stub___select)
15334 char (*f) () = select;
15343 return f != select;
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try='test -z "$ac_c_werror_flag"
15358 || test ! -s conftest.err'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_func_select=yes
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 ac_cv_func_select=no
15377 rm -f conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15380 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15381 echo "${ECHO_T}$ac_cv_func_select" >&6
15382 if test $ac_cv_func_select = yes; then
15385 { { echo "$as_me:$LINENO: error: select() required." >&5
15386 echo "$as_me: error: select() required." >&2;}
15387 { (exit 1); exit 1; }; }
15391 if test "${ac_cv_header_winsock_h}" != yes; then
15394 for ac_header in sys/select.h sys/socket.h
15396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15398 echo "$as_me:$LINENO: checking for $ac_header" >&5
15399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15406 # Is the header compilable?
15407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15409 cat >conftest.$ac_ext <<_ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15415 $ac_includes_default
15416 #include <$ac_header>
15418 rm -f conftest.$ac_objext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420 (eval $ac_compile) 2>conftest.er1
15422 grep -v '^ *+' conftest.er1 >conftest.err
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -z "$ac_c_werror_flag"
15428 || test ! -s conftest.err'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } &&
15434 { ac_try='test -s conftest.$ac_objext'
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; }; then
15440 ac_header_compiler=yes
15442 echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15445 ac_header_compiler=no
15447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15449 echo "${ECHO_T}$ac_header_compiler" >&6
15451 # Is the header present?
15452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <$ac_header>
15462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15465 grep -v '^ *+' conftest.er1 >conftest.err
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } >/dev/null; then
15470 if test -s conftest.err; then
15471 ac_cpp_err=$ac_c_preproc_warn_flag
15472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15479 if test -z "$ac_cpp_err"; then
15480 ac_header_preproc=yes
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ac_header_preproc=no
15487 rm -f conftest.err conftest.$ac_ext
15488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15489 echo "${ECHO_T}$ac_header_preproc" >&6
15491 # So? What about this header?
15492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15498 ac_header_preproc=yes
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15515 ## --------------------------------------------- ##
15516 ## Report this to <http://www.openldap.org/its/> ##
15517 ## --------------------------------------------- ##
15520 sed "s/^/$as_me: WARNING: /" >&2
15523 echo "$as_me:$LINENO: checking for $ac_header" >&5
15524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 eval "$as_ac_Header=\$ac_header_preproc"
15530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15535 cat >>confdefs.h <<_ACEOF
15536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15543 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15544 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15545 if test "${ac_cv_func_select_args+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15549 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15550 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 $ac_includes_default
15558 #if HAVE_SYS_SELECT_H
15559 # include <sys/select.h>
15561 #if HAVE_SYS_SOCKET_H
15562 # include <sys/socket.h>
15568 extern int select ($ac_arg1,
15569 $ac_arg234, $ac_arg234, $ac_arg234,
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577 (eval $ac_compile) 2>conftest.er1
15579 grep -v '^ *+' conftest.er1 >conftest.err
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607 # Provide a safe default value.
15608 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15611 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15612 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15613 ac_save_IFS=$IFS; IFS=','
15614 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15618 cat >>confdefs.h <<_ACEOF
15619 #define SELECT_TYPE_ARG1 $1
15623 cat >>confdefs.h <<_ACEOF
15624 #define SELECT_TYPE_ARG234 ($2)
15628 cat >>confdefs.h <<_ACEOF
15629 #define SELECT_TYPE_ARG5 ($3)
15638 for ac_func in poll
15640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15641 echo "$as_me:$LINENO: checking for $ac_func" >&5
15642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15643 if eval "test \"\${$as_ac_var+set}\" = set"; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 cat >conftest.$ac_ext <<_ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15654 #define $ac_func innocuous_$ac_func
15656 /* System header to define __stub macros and hopefully few prototypes,
15657 which can conflict with char $ac_func (); below.
15658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15659 <limits.h> exists even on freestanding compilers. */
15662 # include <limits.h>
15664 # include <assert.h>
15669 /* Override any gcc2 internal prototype to avoid an error. */
15674 /* We use char because int might match the return type of a gcc2
15675 builtin and then its argument prototype would still apply. */
15677 /* The GNU C library defines this for functions which it implements
15678 to always fail with ENOSYS. Some functions are actually named
15679 something starting with __ and the normal name is an alias. */
15680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15683 char (*f) () = $ac_func;
15692 return f != $ac_func;
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15699 (eval $ac_link) 2>conftest.er1
15701 grep -v '^ *+' conftest.er1 >conftest.err
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -z "$ac_c_werror_flag"
15707 || test ! -s conftest.err'
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; } &&
15713 { ac_try='test -s conftest$ac_exeext'
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719 eval "$as_ac_var=yes"
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 eval "$as_ac_var=no"
15726 rm -f conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15731 if test `eval echo '${'$as_ac_var'}'` = yes; then
15732 cat >>confdefs.h <<_ACEOF
15733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15739 if test $ac_cv_func_poll = yes; then
15742 for ac_header in poll.h sys/poll.h
15744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746 echo "$as_me:$LINENO: checking for $ac_header" >&5
15747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15754 # Is the header compilable?
15755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 $ac_includes_default
15764 #include <$ac_header>
15766 rm -f conftest.$ac_objext
15767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15768 (eval $ac_compile) 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
15775 { ac_try='test -z "$ac_c_werror_flag"
15776 || test ! -s conftest.err'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; } &&
15782 { ac_try='test -s conftest.$ac_objext'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 ac_header_compiler=yes
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 ac_header_compiler=no
15795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15797 echo "${ECHO_T}$ac_header_compiler" >&6
15799 # Is the header present?
15800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15802 cat >conftest.$ac_ext <<_ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 #include <$ac_header>
15810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15813 grep -v '^ *+' conftest.er1 >conftest.err
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } >/dev/null; then
15818 if test -s conftest.err; then
15819 ac_cpp_err=$ac_c_preproc_warn_flag
15820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15827 if test -z "$ac_cpp_err"; then
15828 ac_header_preproc=yes
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_header_preproc=no
15835 rm -f conftest.err conftest.$ac_ext
15836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15837 echo "${ECHO_T}$ac_header_preproc" >&6
15839 # So? What about this header?
15840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15846 ac_header_preproc=yes
15849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15863 ## --------------------------------------------- ##
15864 ## Report this to <http://www.openldap.org/its/> ##
15865 ## --------------------------------------------- ##
15868 sed "s/^/$as_me: WARNING: /" >&2
15871 echo "$as_me:$LINENO: checking for $ac_header" >&5
15872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 eval "$as_ac_Header=\$ac_header_preproc"
15878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15883 cat >>confdefs.h <<_ACEOF
15884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15894 for ac_header in sys/epoll.h
15896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15898 echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15906 # Is the header compilable?
15907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 $ac_includes_default
15916 #include <$ac_header>
15918 rm -f conftest.$ac_objext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920 (eval $ac_compile) 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_c_werror_flag"
15928 || test ! -s conftest.err'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_header_compiler=yes
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_header_compiler=no
15947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15949 echo "${ECHO_T}$ac_header_compiler" >&6
15951 # Is the header present?
15952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 #include <$ac_header>
15962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15965 grep -v '^ *+' conftest.er1 >conftest.err
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } >/dev/null; then
15970 if test -s conftest.err; then
15971 ac_cpp_err=$ac_c_preproc_warn_flag
15972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15979 if test -z "$ac_cpp_err"; then
15980 ac_header_preproc=yes
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_header_preproc=no
15987 rm -f conftest.err conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15989 echo "${ECHO_T}$ac_header_preproc" >&6
15991 # So? What about this header?
15992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15998 ac_header_preproc=yes
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16015 ## --------------------------------------------- ##
16016 ## Report this to <http://www.openldap.org/its/> ##
16017 ## --------------------------------------------- ##
16020 sed "s/^/$as_me: WARNING: /" >&2
16023 echo "$as_me:$LINENO: checking for $ac_header" >&5
16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 eval "$as_ac_Header=\$ac_header_preproc"
16030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16035 cat >>confdefs.h <<_ACEOF
16036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16043 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16044 echo "$as_me:$LINENO: checking for epoll system call" >&5
16045 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16046 if test "$cross_compiling" = yes; then
16047 echo "$as_me:$LINENO: result: no" >&5
16048 echo "${ECHO_T}no" >&6
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 int main(int argc, char **argv)
16058 int epfd = epoll_create(256);
16059 exit (epfd == -1 ? 1 : 0);
16062 rm -f conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064 (eval $ac_link) 2>&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 echo "$as_me:$LINENO: result: yes" >&5
16074 echo "${ECHO_T}yes" >&6
16076 cat >>confdefs.h <<\_ACEOF
16077 #define HAVE_EPOLL 1
16081 echo "$as_me: program exited with status $ac_status" >&5
16082 echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16085 ( exit $ac_status )
16086 echo "$as_me:$LINENO: result: no" >&5
16087 echo "${ECHO_T}no" >&6
16089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16094 for ac_header in sys/devpoll.h
16096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16098 echo "$as_me:$LINENO: checking for $ac_header" >&5
16099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16106 # Is the header compilable?
16107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 #include <$ac_header>
16118 rm -f conftest.$ac_objext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16120 (eval $ac_compile) 2>conftest.er1
16122 grep -v '^ *+' conftest.er1 >conftest.err
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try='test -z "$ac_c_werror_flag"
16128 || test ! -s conftest.err'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest.$ac_objext'
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; }; then
16140 ac_header_compiler=yes
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16145 ac_header_compiler=no
16147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16149 echo "${ECHO_T}$ac_header_compiler" >&6
16151 # Is the header present?
16152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16154 cat >conftest.$ac_ext <<_ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 #include <$ac_header>
16162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16165 grep -v '^ *+' conftest.er1 >conftest.err
16167 cat conftest.err >&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } >/dev/null; then
16170 if test -s conftest.err; then
16171 ac_cpp_err=$ac_c_preproc_warn_flag
16172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16179 if test -z "$ac_cpp_err"; then
16180 ac_header_preproc=yes
16182 echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_header_preproc=no
16187 rm -f conftest.err conftest.$ac_ext
16188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16189 echo "${ECHO_T}$ac_header_preproc" >&6
16191 # So? What about this header?
16192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16198 ac_header_preproc=yes
16201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16215 ## --------------------------------------------- ##
16216 ## Report this to <http://www.openldap.org/its/> ##
16217 ## --------------------------------------------- ##
16220 sed "s/^/$as_me: WARNING: /" >&2
16223 echo "$as_me:$LINENO: checking for $ac_header" >&5
16224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 eval "$as_ac_Header=\$ac_header_preproc"
16230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16235 cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16243 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16244 -a "${ac_cv_header_poll_h}" = yes ; \
16246 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16247 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16248 if test "$cross_compiling" = yes; then
16249 echo "$as_me:$LINENO: result: no" >&5
16250 echo "${ECHO_T}no" >&6
16252 cat >conftest.$ac_ext <<_ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 int main(int argc, char **argv)
16260 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16261 exit (devpollfd == -1 ? 1 : 0);
16264 rm -f conftest$ac_exeext
16265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16266 (eval $ac_link) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 echo "$as_me:$LINENO: result: yes" >&5
16276 echo "${ECHO_T}yes" >&6
16278 cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_DEVPOLL 1
16283 echo "$as_me: program exited with status $ac_status" >&5
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16287 ( exit $ac_status )
16288 echo "$as_me:$LINENO: result: no" >&5
16289 echo "${ECHO_T}no" >&6
16291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16296 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16297 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16298 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 cat >conftest.$ac_ext <<_ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16310 #include <sys/types.h>
16313 #include <stdlib.h>
16318 char *c = (char *) *sys_errlist
16323 rm -f conftest.$ac_objext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16325 (eval $ac_compile) 2>conftest.er1
16327 grep -v '^ *+' conftest.er1 >conftest.err
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -z "$ac_c_werror_flag"
16333 || test ! -s conftest.err'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; } &&
16339 { ac_try='test -s conftest.$ac_objext'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ol_cv_dcl_sys_errlist=yes
16346 ol_cv_have_sys_errlist=yes
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 ol_cv_dcl_sys_errlist=no
16353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16355 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16356 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16358 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16359 if test $ol_cv_dcl_sys_errlist = no ; then
16361 cat >>confdefs.h <<\_ACEOF
16362 #define DECL_SYS_ERRLIST 1
16366 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16367 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16368 if test "${ol_cv_have_sys_errlist+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16382 char *c = (char *) *sys_errlist
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16389 (eval $ac_link) 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try='test -s conftest$ac_exeext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ol_cv_have_sys_errlist=yes
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.$ac_ext >&5
16414 ol_cv_have_sys_errlist=no
16416 rm -f conftest.err conftest.$ac_objext \
16417 conftest$ac_exeext conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16420 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16422 if test $ol_cv_have_sys_errlist = yes ; then
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_SYS_ERRLIST 1
16431 for ac_func in strerror strerror_r
16433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16434 echo "$as_me:$LINENO: checking for $ac_func" >&5
16435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16436 if eval "test \"\${$as_ac_var+set}\" = set"; then
16437 echo $ECHO_N "(cached) $ECHO_C" >&6
16439 cat >conftest.$ac_ext <<_ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16447 #define $ac_func innocuous_$ac_func
16449 /* System header to define __stub macros and hopefully few prototypes,
16450 which can conflict with char $ac_func (); below.
16451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16452 <limits.h> exists even on freestanding compilers. */
16455 # include <limits.h>
16457 # include <assert.h>
16462 /* Override any gcc2 internal prototype to avoid an error. */
16467 /* We use char because int might match the return type of a gcc2
16468 builtin and then its argument prototype would still apply. */
16470 /* The GNU C library defines this for functions which it implements
16471 to always fail with ENOSYS. Some functions are actually named
16472 something starting with __ and the normal name is an alias. */
16473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16476 char (*f) () = $ac_func;
16485 return f != $ac_func;
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16492 (eval $ac_link) 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_c_werror_flag"
16500 || test ! -s conftest.err'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest$ac_exeext'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 eval "$as_ac_var=yes"
16514 echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16517 eval "$as_ac_var=no"
16519 rm -f conftest.err conftest.$ac_objext \
16520 conftest$ac_exeext conftest.$ac_ext
16522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16524 if test `eval echo '${'$as_ac_var'}'` = yes; then
16525 cat >>confdefs.h <<_ACEOF
16526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16532 ol_cv_func_strerror_r=no
16533 if test "${ac_cv_func_strerror_r}" = yes ; then
16534 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16535 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16536 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 cat >conftest.$ac_ext <<_ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 #include <string.h>
16548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16549 $EGREP "strerror_r" >/dev/null 2>&1; then
16550 ol_decl_strerror_r=yes
16552 ol_decl_strerror_r=no
16556 if test $ol_decl_strerror_r = yes ; then
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <string.h>
16567 /* from autoconf 2.59 */
16569 char x = *strerror_r (0, buf, sizeof buf);
16570 char *p = strerror_r (0, buf, sizeof buf);
16576 rm -f conftest.$ac_objext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16578 (eval $ac_compile) 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag"
16586 || test ! -s conftest.err'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } &&
16592 { ac_try='test -s conftest.$ac_objext'
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16598 ol_cv_nonposix_strerror_r=yes
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16603 ol_cv_nonposix_strerror_r=no
16605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16607 if test "$cross_compiling" = yes; then
16608 ol_cv_nonposix_strerror=no
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16620 strerror_r( 1, buf, sizeof buf );
16621 exit( buf[0] == 0 );
16625 rm -f conftest$ac_exeext
16626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16627 (eval $ac_link) 2>&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ol_cv_nonposix_strerror_r=yes
16638 echo "$as_me: program exited with status $ac_status" >&5
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16642 ( exit $ac_status )
16643 ol_cv_nonposix_strerror=no
16645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16650 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16651 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16652 if test $ol_cv_nonposix_strerror_r = yes ; then
16654 cat >>confdefs.h <<\_ACEOF
16655 #define HAVE_NONPOSIX_STRERROR_R 1
16660 elif test "${ac_cv_func_strerror}" = no ; then
16661 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16662 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16663 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16675 #include <sys/types.h>
16678 #include <stdlib.h>
16683 char *c = (char *) *sys_errlist
16688 rm -f conftest.$ac_objext
16689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16690 (eval $ac_compile) 2>conftest.er1
16692 grep -v '^ *+' conftest.er1 >conftest.err
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
16697 { ac_try='test -z "$ac_c_werror_flag"
16698 || test ! -s conftest.err'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest.$ac_objext'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; }; then
16710 ol_cv_dcl_sys_errlist=yes
16711 ol_cv_have_sys_errlist=yes
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.$ac_ext >&5
16716 ol_cv_dcl_sys_errlist=no
16718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16720 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16721 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16723 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16724 if test $ol_cv_dcl_sys_errlist = no ; then
16726 cat >>confdefs.h <<\_ACEOF
16727 #define DECL_SYS_ERRLIST 1
16731 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16732 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16733 if test "${ol_cv_have_sys_errlist+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 cat >conftest.$ac_ext <<_ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16747 char *c = (char *) *sys_errlist
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16754 (eval $ac_link) 2>conftest.er1
16756 grep -v '^ *+' conftest.er1 >conftest.err
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag"
16762 || test ! -s conftest.err'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest$ac_exeext'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ol_cv_have_sys_errlist=yes
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 ol_cv_have_sys_errlist=no
16781 rm -f conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16784 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16785 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16787 if test $ol_cv_have_sys_errlist = yes ; then
16789 cat >>confdefs.h <<\_ACEOF
16790 #define HAVE_SYS_ERRLIST 1
16799 for ac_header in regex.h
16801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16802 echo "$as_me:$LINENO: checking for $ac_header" >&5
16803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 cat >conftest.$ac_ext <<_ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 $ac_includes_default
16814 #ifdef HAVE_SYS_TYPES_H
16815 #include <sys/types.h>
16819 #include <$ac_header>
16821 rm -f conftest.$ac_objext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16823 (eval $ac_compile) 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest.$ac_objext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 eval "$as_ac_Header=yes"
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 eval "$as_ac_Header=no"
16850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16855 cat >>confdefs.h <<_ACEOF
16856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16864 if test "$ac_cv_header_regex_h" != yes ; then
16865 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16866 echo "$as_me: error: POSIX regex.h required." >&2;}
16867 { (exit 1); exit 1; }; }
16869 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16870 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16871 if test "${ac_cv_search_regfree+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 ac_func_search_save_LIBS=$LIBS
16875 ac_cv_search_regfree=no
16876 cat >conftest.$ac_ext <<_ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16883 /* Override any gcc2 internal prototype to avoid an error. */
16887 /* We use char because int might match the return type of a gcc2
16888 builtin and then its argument prototype would still apply. */
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900 (eval $ac_link) 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
16907 { ac_try='test -z "$ac_c_werror_flag"
16908 || test ! -s conftest.err'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_cv_search_regfree="none required"
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16926 rm -f conftest.err conftest.$ac_objext \
16927 conftest$ac_exeext conftest.$ac_ext
16928 if test "$ac_cv_search_regfree" = no; then
16929 for ac_lib in regex gnuregex; do
16930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16931 cat >conftest.$ac_ext <<_ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16938 /* Override any gcc2 internal prototype to avoid an error. */
16942 /* We use char because int might match the return type of a gcc2
16943 builtin and then its argument prototype would still apply. */
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16955 (eval $ac_link) 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -z "$ac_c_werror_flag"
16963 || test ! -s conftest.err'
16964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965 (eval $ac_try) 2>&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; } &&
16969 { ac_try='test -s conftest$ac_exeext'
16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_search_regfree="-l$ac_lib"
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16982 rm -f conftest.err conftest.$ac_objext \
16983 conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_func_search_save_LIBS
16988 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16989 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16990 if test "$ac_cv_search_regfree" != no; then
16991 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16994 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16995 echo "$as_me: error: POSIX regex required." >&2;}
16996 { (exit 1); exit 1; }; }
17001 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17002 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
17003 if test "${ol_cv_c_posix_regex+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 if test "$cross_compiling" = yes; then
17008 ol_cv_c_posix_regex=cross
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17017 #include <sys/types.h>
17019 static char *pattern, *string;
17027 if(regcomp(&re, pattern, 0)) {
17031 string = "ALL MATCH";
17033 rc = regexec(&re, string, 0, (void*)0, 0);
17040 rm -f conftest$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ol_cv_c_posix_regex=yes
17053 echo "$as_me: program exited with status $ac_status" >&5
17054 echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 ( exit $ac_status )
17058 ol_cv_c_posix_regex=no
17060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17063 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17064 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17066 if test "$ol_cv_c_posix_regex" = no ; then
17067 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17068 echo "$as_me: error: broken POSIX regex!" >&2;}
17069 { (exit 1); exit 1; }; }
17075 for ac_header in sys/uuid.h
17077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17079 echo "$as_me:$LINENO: checking for $ac_header" >&5
17080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17087 # Is the header compilable?
17088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17090 cat >conftest.$ac_ext <<_ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17096 $ac_includes_default
17097 #include <$ac_header>
17099 rm -f conftest.$ac_objext
17100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17101 (eval $ac_compile) 2>conftest.er1
17103 grep -v '^ *+' conftest.er1 >conftest.err
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
17108 { ac_try='test -z "$ac_c_werror_flag"
17109 || test ! -s conftest.err'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest.$ac_objext'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 ac_header_compiler=yes
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 ac_header_compiler=no
17128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17130 echo "${ECHO_T}$ac_header_compiler" >&6
17132 # Is the header present?
17133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 #include <$ac_header>
17143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17146 grep -v '^ *+' conftest.er1 >conftest.err
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } >/dev/null; then
17151 if test -s conftest.err; then
17152 ac_cpp_err=$ac_c_preproc_warn_flag
17153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17160 if test -z "$ac_cpp_err"; then
17161 ac_header_preproc=yes
17163 echo "$as_me: failed program was:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17166 ac_header_preproc=no
17168 rm -f conftest.err conftest.$ac_ext
17169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17170 echo "${ECHO_T}$ac_header_preproc" >&6
17172 # So? What about this header?
17173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17179 ac_header_preproc=yes
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17196 ## --------------------------------------------- ##
17197 ## Report this to <http://www.openldap.org/its/> ##
17198 ## --------------------------------------------- ##
17201 sed "s/^/$as_me: WARNING: /" >&2
17204 echo "$as_me:$LINENO: checking for $ac_header" >&5
17205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 eval "$as_ac_Header=\$ac_header_preproc"
17211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17216 cat >>confdefs.h <<_ACEOF
17217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17224 if test $ac_cv_header_sys_uuid_h = yes ; then
17226 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17227 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17228 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17231 ac_func_search_save_LIBS=$LIBS
17232 ac_cv_search_uuid_to_str=no
17233 cat >conftest.$ac_ext <<_ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17240 /* Override any gcc2 internal prototype to avoid an error. */
17244 /* We use char because int might match the return type of a gcc2
17245 builtin and then its argument prototype would still apply. */
17246 char uuid_to_str ();
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257 (eval $ac_link) 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest$ac_exeext'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_search_uuid_to_str="none required"
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17283 rm -f conftest.err conftest.$ac_objext \
17284 conftest$ac_exeext conftest.$ac_ext
17285 if test "$ac_cv_search_uuid_to_str" = no; then
17286 for ac_lib in uuid; do
17287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17288 cat >conftest.$ac_ext <<_ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17295 /* Override any gcc2 internal prototype to avoid an error. */
17299 /* We use char because int might match the return type of a gcc2
17300 builtin and then its argument prototype would still apply. */
17301 char uuid_to_str ();
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17312 (eval $ac_link) 2>conftest.er1
17314 grep -v '^ *+' conftest.er1 >conftest.err
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } &&
17319 { ac_try='test -z "$ac_c_werror_flag"
17320 || test ! -s conftest.err'
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest$ac_exeext'
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_cv_search_uuid_to_str="-l$ac_lib"
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17339 rm -f conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17343 LIBS=$ac_func_search_save_LIBS
17345 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17346 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17347 if test "$ac_cv_search_uuid_to_str" != no; then
17348 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17356 if test have_uuid = yes ; then
17358 cat >>confdefs.h <<\_ACEOF
17359 #define HAVE_UUID_TO_STR 1
17363 test "$ac_cv_search_uuid_to_str" = "none required" || \
17364 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17368 if test $have_uuid = no ; then
17370 for ac_header in uuid/uuid.h
17372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17374 echo "$as_me:$LINENO: checking for $ac_header" >&5
17375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17382 # Is the header compilable?
17383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 $ac_includes_default
17392 #include <$ac_header>
17394 rm -f conftest.$ac_objext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17396 (eval $ac_compile) 2>conftest.er1
17398 grep -v '^ *+' conftest.er1 >conftest.err
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
17403 { ac_try='test -z "$ac_c_werror_flag"
17404 || test ! -s conftest.err'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest.$ac_objext'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_header_compiler=yes
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_header_compiler=no
17423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17425 echo "${ECHO_T}$ac_header_compiler" >&6
17427 # Is the header present?
17428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17430 cat >conftest.$ac_ext <<_ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 #include <$ac_header>
17438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17441 grep -v '^ *+' conftest.er1 >conftest.err
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } >/dev/null; then
17446 if test -s conftest.err; then
17447 ac_cpp_err=$ac_c_preproc_warn_flag
17448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17455 if test -z "$ac_cpp_err"; then
17456 ac_header_preproc=yes
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461 ac_header_preproc=no
17463 rm -f conftest.err conftest.$ac_ext
17464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17465 echo "${ECHO_T}$ac_header_preproc" >&6
17467 # So? What about this header?
17468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17474 ac_header_preproc=yes
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17491 ## --------------------------------------------- ##
17492 ## Report this to <http://www.openldap.org/its/> ##
17493 ## --------------------------------------------- ##
17496 sed "s/^/$as_me: WARNING: /" >&2
17499 echo "$as_me:$LINENO: checking for $ac_header" >&5
17500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 eval "$as_ac_Header=\$ac_header_preproc"
17506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17519 if test $ac_cv_header_uuid_uuid_h = yes ; then
17521 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17522 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17523 if test "${ac_cv_search_uuid_generate+set}" = set; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 ac_func_search_save_LIBS=$LIBS
17527 ac_cv_search_uuid_generate=no
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17535 /* Override any gcc2 internal prototype to avoid an error. */
17539 /* We use char because int might match the return type of a gcc2
17540 builtin and then its argument prototype would still apply. */
17541 char uuid_generate ();
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17552 (eval $ac_link) 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag"
17560 || test ! -s conftest.err'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest$ac_exeext'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 ac_cv_search_uuid_generate="none required"
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17578 rm -f conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17580 if test "$ac_cv_search_uuid_generate" = no; then
17581 for ac_lib in uuid; do
17582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17583 cat >conftest.$ac_ext <<_ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17590 /* Override any gcc2 internal prototype to avoid an error. */
17594 /* We use char because int might match the return type of a gcc2
17595 builtin and then its argument prototype would still apply. */
17596 char uuid_generate ();
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17607 (eval $ac_link) 2>conftest.er1
17609 grep -v '^ *+' conftest.er1 >conftest.err
17611 cat conftest.err >&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } &&
17614 { ac_try='test -z "$ac_c_werror_flag"
17615 || test ! -s conftest.err'
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; } &&
17621 { ac_try='test -s conftest$ac_exeext'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 ac_cv_search_uuid_generate="-l$ac_lib"
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17634 rm -f conftest.err conftest.$ac_objext \
17635 conftest$ac_exeext conftest.$ac_ext
17638 LIBS=$ac_func_search_save_LIBS
17640 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17641 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17642 if test "$ac_cv_search_uuid_generate" != no; then
17643 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17651 if test have_uuid = yes ; then
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_UUID_GENERATE 1
17658 test "$ac_cv_search_uuid_generate" = "none required" || \
17659 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17664 if test $have_uuid = no ; then
17665 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17666 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17668 LIBS="$LIBS -lrpcrt4"
17669 cat >conftest.$ac_ext <<_ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17676 int __stdcall UuidCreate(void *);
17677 int __stdcall UuidToStringA(void *,void **);
17684 UuidToStringA(0,0);
17690 rm -f conftest.$ac_objext conftest$ac_exeext
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692 (eval $ac_link) 2>conftest.er1
17694 grep -v '^ *+' conftest.er1 >conftest.err
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } &&
17699 { ac_try='test -z "$ac_c_werror_flag"
17700 || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest$ac_exeext'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; }; then
17714 echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17719 rm -f conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
17721 if test $need_rpcrt = yes; then
17722 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17725 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17726 echo "${ECHO_T}$need_rpcrt" >&6
17729 ol_cv_lib_resolver=no
17730 if test $ol_cv_lib_resolver = no ; then
17731 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17732 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17733 if test "${ol_cv_resolver_none+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17739 LIBS="$ol_RESOLVER_LIB $LIBS"
17741 cat >conftest.$ac_ext <<_ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17748 #ifdef HAVE_SYS_TYPES_H
17749 # include <sys/types.h>
17751 #include <netinet/in.h>
17752 #ifdef HAVE_ARPA_NAMESER_H
17753 # include <arpa/nameser.h>
17755 #ifdef HAVE_RESOLV_H
17756 # include <resolv.h>
17764 char *request = NULL;
17765 unsigned char reply[64*1024];
17766 unsigned char host[64*1024];
17770 /* Bind 8/9 interface */
17771 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17773 /* Bind 4 interface */
17777 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17781 /* Bind 8/9 interface */
17783 #elif defined(HFIXEDSZ)
17784 /* Bind 4 interface w/ HFIXEDSZ */
17787 /* Bind 4 interface w/o HFIXEDSZ */
17788 p += sizeof(HEADER);
17790 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17798 (eval $ac_link) 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
17805 { ac_try='test -z "$ac_c_werror_flag"
17806 || test ! -s conftest.err'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17818 ol_cv_resolver_none=yes
17820 echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17823 ol_cv_resolver_none=no
17825 rm -f conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
17831 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17832 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17834 if test $ol_cv_resolver_none = yes ; then
17835 ol_cv_lib_resolver=yes
17839 if test $ol_cv_lib_resolver = no ; then
17840 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17841 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17842 if test "${ol_cv_resolver_resolv+set}" = set; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 ol_RESOLVER_LIB=-lresolv
17848 LIBS="$ol_RESOLVER_LIB $LIBS"
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17857 #ifdef HAVE_SYS_TYPES_H
17858 # include <sys/types.h>
17860 #include <netinet/in.h>
17861 #ifdef HAVE_ARPA_NAMESER_H
17862 # include <arpa/nameser.h>
17864 #ifdef HAVE_RESOLV_H
17865 # include <resolv.h>
17873 char *request = NULL;
17874 unsigned char reply[64*1024];
17875 unsigned char host[64*1024];
17879 /* Bind 8/9 interface */
17880 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17882 /* Bind 4 interface */
17886 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17890 /* Bind 8/9 interface */
17892 #elif defined(HFIXEDSZ)
17893 /* Bind 4 interface w/ HFIXEDSZ */
17896 /* Bind 4 interface w/o HFIXEDSZ */
17897 p += sizeof(HEADER);
17899 status = dn_expand( reply, reply+len, p, host, sizeof(host));
17905 rm -f conftest.$ac_objext conftest$ac_exeext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907 (eval $ac_link) 2>conftest.er1
17909 grep -v '^ *+' conftest.er1 >conftest.err
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try='test -z "$ac_c_werror_flag"
17915 || test ! -s conftest.err'
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try='test -s conftest$ac_exeext'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ol_cv_resolver_resolv=yes
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 ol_cv_resolver_resolv=no
17934 rm -f conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17940 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17941 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17943 if test $ol_cv_resolver_resolv = yes ; then
17944 ol_cv_lib_resolver=-lresolv
17948 if test $ol_cv_lib_resolver = no ; then
17949 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17950 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17951 if test "${ol_cv_resolver_bind+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ol_RESOLVER_LIB=-lbind
17957 LIBS="$ol_RESOLVER_LIB $LIBS"
17959 cat >conftest.$ac_ext <<_ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17966 #ifdef HAVE_SYS_TYPES_H
17967 # include <sys/types.h>
17969 #include <netinet/in.h>
17970 #ifdef HAVE_ARPA_NAMESER_H
17971 # include <arpa/nameser.h>
17973 #ifdef HAVE_RESOLV_H
17974 # include <resolv.h>
17982 char *request = NULL;
17983 unsigned char reply[64*1024];
17984 unsigned char host[64*1024];
17988 /* Bind 8/9 interface */
17989 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17991 /* Bind 4 interface */
17995 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17999 /* Bind 8/9 interface */
18001 #elif defined(HFIXEDSZ)
18002 /* Bind 4 interface w/ HFIXEDSZ */
18005 /* Bind 4 interface w/o HFIXEDSZ */
18006 p += sizeof(HEADER);
18008 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18014 rm -f conftest.$ac_objext conftest$ac_exeext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016 (eval $ac_link) 2>conftest.er1
18018 grep -v '^ *+' conftest.er1 >conftest.err
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag"
18024 || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ol_cv_resolver_bind=yes
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ol_cv_resolver_bind=no
18043 rm -f conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18049 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18050 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18052 if test $ol_cv_resolver_bind = yes ; then
18053 ol_cv_lib_resolver=-lbind
18060 if test "$ol_cv_lib_resolver" != no ; then
18062 cat >>confdefs.h <<\_ACEOF
18063 #define HAVE_RES_QUERY 1
18067 if test "$ol_enable_dnssrv" != no ; then
18071 if test "$ol_cv_lib_resolver" != yes ; then
18072 LIBS="$ol_cv_lib_resolver $LIBS"
18076 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18077 if test "$ol_link_dnssrv" = no ; then
18078 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18079 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18080 { (exit 1); exit 1; }; }
18083 ol_enable_dnssrv=no
18087 for ac_func in hstrerror
18089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18090 echo "$as_me:$LINENO: checking for $ac_func" >&5
18091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18092 if eval "test \"\${$as_ac_var+set}\" = set"; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18095 cat >conftest.$ac_ext <<_ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18103 #define $ac_func innocuous_$ac_func
18105 /* System header to define __stub macros and hopefully few prototypes,
18106 which can conflict with char $ac_func (); below.
18107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18108 <limits.h> exists even on freestanding compilers. */
18111 # include <limits.h>
18113 # include <assert.h>
18118 /* Override any gcc2 internal prototype to avoid an error. */
18123 /* We use char because int might match the return type of a gcc2
18124 builtin and then its argument prototype would still apply. */
18126 /* The GNU C library defines this for functions which it implements
18127 to always fail with ENOSYS. Some functions are actually named
18128 something starting with __ and the normal name is an alias. */
18129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18132 char (*f) () = $ac_func;
18141 return f != $ac_func;
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148 (eval $ac_link) 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag"
18156 || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest$ac_exeext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 eval "$as_ac_var=yes"
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 eval "$as_ac_var=no"
18175 rm -f conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18180 if test `eval echo '${'$as_ac_var'}'` = yes; then
18181 cat >>confdefs.h <<_ACEOF
18182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18193 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18196 echo "$as_me:$LINENO: checking for $ac_func" >&5
18197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18198 if eval "test \"\${$as_ac_var+set}\" = set"; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 cat >conftest.$ac_ext <<_ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18209 #define $ac_func innocuous_$ac_func
18211 /* System header to define __stub macros and hopefully few prototypes,
18212 which can conflict with char $ac_func (); below.
18213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18214 <limits.h> exists even on freestanding compilers. */
18217 # include <limits.h>
18219 # include <assert.h>
18224 /* Override any gcc2 internal prototype to avoid an error. */
18229 /* We use char because int might match the return type of a gcc2
18230 builtin and then its argument prototype would still apply. */
18232 /* The GNU C library defines this for functions which it implements
18233 to always fail with ENOSYS. Some functions are actually named
18234 something starting with __ and the normal name is an alias. */
18235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18238 char (*f) () = $ac_func;
18247 return f != $ac_func;
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254 (eval $ac_link) 2>conftest.er1
18256 grep -v '^ *+' conftest.er1 >conftest.err
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -z "$ac_c_werror_flag"
18262 || test ! -s conftest.err'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 eval "$as_ac_var=yes"
18276 echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18279 eval "$as_ac_var=no"
18281 rm -f conftest.err conftest.$ac_objext \
18282 conftest$ac_exeext conftest.$ac_ext
18284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18286 if test `eval echo '${'$as_ac_var'}'` = yes; then
18287 cat >>confdefs.h <<_ACEOF
18288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18296 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18297 if test $ol_enable_ipv6 = yes ; then
18298 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18299 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18300 { (exit 1); exit 1; }; }
18302 elif test $ol_enable_ipv6 != no ; then
18303 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18304 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18305 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 # include <netinet/in.h>
18317 # ifdef INET6_ADDRSTRLEN
18318 __has_inet6_addrstrlen__;
18322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18323 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18324 ol_cv_inet6_addrstrlen=yes
18326 ol_cv_inet6_addrstrlen=no
18331 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18332 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18335 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18336 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18337 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 cat >conftest.$ac_ext <<_ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18348 #include <sys/types.h>
18349 #include <sys/socket.h>
18355 struct sockaddr_storage ss;
18361 rm -f conftest.$ac_objext
18362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18363 (eval $ac_compile) 2>conftest.er1
18365 grep -v '^ *+' conftest.er1 >conftest.err
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try='test -z "$ac_c_werror_flag"
18371 || test ! -s conftest.err'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest.$ac_objext'
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 ol_cv_struct_sockaddr_storage=yes
18385 echo "$as_me: failed program was:" >&5
18386 sed 's/^/| /' conftest.$ac_ext >&5
18388 ol_cv_struct_sockaddr_storage=no
18390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18392 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18393 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18395 if test $ol_cv_inet6_addrstrlen = yes &&
18396 test $ol_cv_struct_sockaddr_storage = yes ; then
18398 elif test $ol_enable_ipv6 = yes &&
18399 test $ol_cv_inet6_addrstrlen = no ; then
18400 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18401 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18402 { (exit 1); exit 1; }; }
18403 elif test $ol_enable_ipv6 = yes &&
18404 test $ol_cv_struct_sockaddr_storage = no ; then
18405 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18406 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18407 { (exit 1); exit 1; }; }
18411 if test $ol_enable_local != no ; then
18413 for ac_header in sys/un.h
18415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18417 echo "$as_me:$LINENO: checking for $ac_header" >&5
18418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18425 # Is the header compilable?
18426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18428 cat >conftest.$ac_ext <<_ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 $ac_includes_default
18435 #include <$ac_header>
18437 rm -f conftest.$ac_objext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18439 (eval $ac_compile) 2>conftest.er1
18441 grep -v '^ *+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -z "$ac_c_werror_flag"
18447 || test ! -s conftest.err'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; } &&
18453 { ac_try='test -s conftest.$ac_objext'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_header_compiler=yes
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18464 ac_header_compiler=no
18466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18468 echo "${ECHO_T}$ac_header_compiler" >&6
18470 # Is the header present?
18471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18473 cat >conftest.$ac_ext <<_ACEOF
18476 cat confdefs.h >>conftest.$ac_ext
18477 cat >>conftest.$ac_ext <<_ACEOF
18478 /* end confdefs.h. */
18479 #include <$ac_header>
18481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } >/dev/null; then
18489 if test -s conftest.err; then
18490 ac_cpp_err=$ac_c_preproc_warn_flag
18491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18498 if test -z "$ac_cpp_err"; then
18499 ac_header_preproc=yes
18501 echo "$as_me: failed program was:" >&5
18502 sed 's/^/| /' conftest.$ac_ext >&5
18504 ac_header_preproc=no
18506 rm -f conftest.err conftest.$ac_ext
18507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18508 echo "${ECHO_T}$ac_header_preproc" >&6
18510 # So? What about this header?
18511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18517 ac_header_preproc=yes
18520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18534 ## --------------------------------------------- ##
18535 ## Report this to <http://www.openldap.org/its/> ##
18536 ## --------------------------------------------- ##
18539 sed "s/^/$as_me: WARNING: /" >&2
18542 echo "$as_me:$LINENO: checking for $ac_header" >&5
18543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 eval "$as_ac_Header=\$ac_header_preproc"
18549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18554 cat >>confdefs.h <<_ACEOF
18555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18563 if test $ol_enable_local = auto ; then
18564 ol_enable_local=$ac_cv_header_sys_un_h
18565 elif test $ac_cv_header_sys_un_h = no ; then
18566 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18567 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18568 { (exit 1); exit 1; }; }
18574 case $ol_with_gssapi in yes | auto)
18576 ol_header_gssapi=no
18578 for ac_header in gssapi/gssapi.h
18580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18582 echo "$as_me:$LINENO: checking for $ac_header" >&5
18583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18590 # Is the header compilable?
18591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599 $ac_includes_default
18600 #include <$ac_header>
18602 rm -f conftest.$ac_objext
18603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604 (eval $ac_compile) 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag"
18612 || test ! -s conftest.err'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_header_compiler=yes
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_header_compiler=no
18631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18633 echo "${ECHO_T}$ac_header_compiler" >&6
18635 # Is the header present?
18636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18638 cat >conftest.$ac_ext <<_ACEOF
18641 cat confdefs.h >>conftest.$ac_ext
18642 cat >>conftest.$ac_ext <<_ACEOF
18643 /* end confdefs.h. */
18644 #include <$ac_header>
18646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18649 grep -v '^ *+' conftest.er1 >conftest.err
18651 cat conftest.err >&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } >/dev/null; then
18654 if test -s conftest.err; then
18655 ac_cpp_err=$ac_c_preproc_warn_flag
18656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18663 if test -z "$ac_cpp_err"; then
18664 ac_header_preproc=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ac_header_preproc=no
18671 rm -f conftest.err conftest.$ac_ext
18672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18673 echo "${ECHO_T}$ac_header_preproc" >&6
18675 # So? What about this header?
18676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18682 ac_header_preproc=yes
18685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18699 ## --------------------------------------------- ##
18700 ## Report this to <http://www.openldap.org/its/> ##
18701 ## --------------------------------------------- ##
18704 sed "s/^/$as_me: WARNING: /" >&2
18707 echo "$as_me:$LINENO: checking for $ac_header" >&5
18708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 eval "$as_ac_Header=\$ac_header_preproc"
18714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18719 cat >>confdefs.h <<_ACEOF
18720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18727 if test $ac_cv_header_gssapi_gssapi_h = yes ; then
18728 ol_header_gssapi=yes
18731 for ac_header in gssapi.h
18733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18735 echo "$as_me:$LINENO: checking for $ac_header" >&5
18736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18743 # Is the header compilable?
18744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18746 cat >conftest.$ac_ext <<_ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18752 $ac_includes_default
18753 #include <$ac_header>
18755 rm -f conftest.$ac_objext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18757 (eval $ac_compile) 2>conftest.er1
18759 grep -v '^ *+' conftest.er1 >conftest.err
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
18764 { ac_try='test -z "$ac_c_werror_flag"
18765 || test ! -s conftest.err'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try='test -s conftest.$ac_objext'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_header_compiler=yes
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_header_compiler=no
18784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18786 echo "${ECHO_T}$ac_header_compiler" >&6
18788 # Is the header present?
18789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18797 #include <$ac_header>
18799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18802 grep -v '^ *+' conftest.er1 >conftest.err
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } >/dev/null; then
18807 if test -s conftest.err; then
18808 ac_cpp_err=$ac_c_preproc_warn_flag
18809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18816 if test -z "$ac_cpp_err"; then
18817 ac_header_preproc=yes
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18822 ac_header_preproc=no
18824 rm -f conftest.err conftest.$ac_ext
18825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18826 echo "${ECHO_T}$ac_header_preproc" >&6
18828 # So? What about this header?
18829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18835 ac_header_preproc=yes
18838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18852 ## --------------------------------------------- ##
18853 ## Report this to <http://www.openldap.org/its/> ##
18854 ## --------------------------------------------- ##
18857 sed "s/^/$as_me: WARNING: /" >&2
18860 echo "$as_me:$LINENO: checking for $ac_header" >&5
18861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 eval "$as_ac_Header=\$ac_header_preproc"
18867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18872 cat >>confdefs.h <<_ACEOF
18873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18880 if test $ac_cv_header_gssapi_h = yes ; then
18881 ol_header_gssapi=yes
18885 LIBS="$LIBS $GSSAPI_LIBS"
18887 for ac_func in gss_oid_to_str
18889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18890 echo "$as_me:$LINENO: checking for $ac_func" >&5
18891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18892 if eval "test \"\${$as_ac_var+set}\" = set"; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18895 cat >conftest.$ac_ext <<_ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h. */
18901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18903 #define $ac_func innocuous_$ac_func
18905 /* System header to define __stub macros and hopefully few prototypes,
18906 which can conflict with char $ac_func (); below.
18907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18908 <limits.h> exists even on freestanding compilers. */
18911 # include <limits.h>
18913 # include <assert.h>
18918 /* Override any gcc2 internal prototype to avoid an error. */
18923 /* We use char because int might match the return type of a gcc2
18924 builtin and then its argument prototype would still apply. */
18926 /* The GNU C library defines this for functions which it implements
18927 to always fail with ENOSYS. Some functions are actually named
18928 something starting with __ and the normal name is an alias. */
18929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18932 char (*f) () = $ac_func;
18941 return f != $ac_func;
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>conftest.er1
18950 grep -v '^ *+' conftest.er1 >conftest.err
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag"
18956 || test ! -s conftest.err'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 eval "$as_ac_var=yes"
18970 echo "$as_me: failed program was:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 eval "$as_ac_var=no"
18975 rm -f conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18980 if test `eval echo '${'$as_ac_var'}'` = yes; then
18981 cat >>confdefs.h <<_ACEOF
18982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18991 if test $ol_header_gssapi = yes ; then
18992 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
18993 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6
18994 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 ac_check_lib_save_LIBS=$LIBS
18998 LIBS="-lgssapi $LIBS"
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19006 /* Override any gcc2 internal prototype to avoid an error. */
19010 /* We use char because int might match the return type of a gcc2
19011 builtin and then its argument prototype would still apply. */
19021 rm -f conftest.$ac_objext conftest$ac_exeext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19023 (eval $ac_link) 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag"
19031 || test ! -s conftest.err'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_cv_lib_gssapi_gss_wrap=yes
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 ac_cv_lib_gssapi_gss_wrap=no
19050 rm -f conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19054 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19055 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6
19056 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19057 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19062 if test $ol_link_gssapi != yes ; then
19063 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19064 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6
19065 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lgssapi_krb5 $LIBS"
19070 cat >conftest.$ac_ext <<_ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19077 /* Override any gcc2 internal prototype to avoid an error. */
19081 /* We use char because int might match the return type of a gcc2
19082 builtin and then its argument prototype would still apply. */
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094 (eval $ac_link) 2>conftest.er1
19096 grep -v '^ *+' conftest.er1 >conftest.err
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
19101 { ac_try='test -z "$ac_c_werror_flag"
19102 || test ! -s conftest.err'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest$ac_exeext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_cv_lib_gssapi_krb5_gss_wrap=yes
19116 echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ac_cv_lib_gssapi_krb5_gss_wrap=no
19121 rm -f conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19125 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19126 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6
19127 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19128 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19140 if test $ol_link_gssapi = yes; then
19142 cat >>confdefs.h <<\_ACEOF
19143 #define HAVE_GSSAPI 1
19147 elif test $ol_with_gssapi = auto ; then
19148 { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19149 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19150 { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19151 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19152 elif test $ol_with_gssapi = yes ; then
19153 { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19154 echo "$as_me: error: GSSAPI detection failed" >&2;}
19155 { (exit 1); exit 1; }; }
19159 if test $ol_with_tls = yes ; then
19164 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19166 for ac_header in openssl/ssl.h
19168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19170 echo "$as_me:$LINENO: checking for $ac_header" >&5
19171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19178 # Is the header compilable?
19179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 $ac_includes_default
19188 #include <$ac_header>
19190 rm -f conftest.$ac_objext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19192 (eval $ac_compile) 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -z "$ac_c_werror_flag"
19200 || test ! -s conftest.err'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; } &&
19206 { ac_try='test -s conftest.$ac_objext'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; }; then
19212 ac_header_compiler=yes
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 ac_header_compiler=no
19219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19221 echo "${ECHO_T}$ac_header_compiler" >&6
19223 # Is the header present?
19224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19226 cat >conftest.$ac_ext <<_ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <$ac_header>
19234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19237 grep -v '^ *+' conftest.er1 >conftest.err
19239 cat conftest.err >&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } >/dev/null; then
19242 if test -s conftest.err; then
19243 ac_cpp_err=$ac_c_preproc_warn_flag
19244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19251 if test -z "$ac_cpp_err"; then
19252 ac_header_preproc=yes
19254 echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19257 ac_header_preproc=no
19259 rm -f conftest.err conftest.$ac_ext
19260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19261 echo "${ECHO_T}$ac_header_preproc" >&6
19263 # So? What about this header?
19264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19270 ac_header_preproc=yes
19273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19287 ## --------------------------------------------- ##
19288 ## Report this to <http://www.openldap.org/its/> ##
19289 ## --------------------------------------------- ##
19292 sed "s/^/$as_me: WARNING: /" >&2
19295 echo "$as_me:$LINENO: checking for $ac_header" >&5
19296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 eval "$as_ac_Header=\$ac_header_preproc"
19302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19307 cat >>confdefs.h <<_ACEOF
19308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19316 if test $ac_cv_header_openssl_ssl_h = yes ; then
19317 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19318 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19319 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 ac_check_lib_save_LIBS=$LIBS
19323 LIBS="-lssl -lcrypto $LIBS"
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19331 /* Override any gcc2 internal prototype to avoid an error. */
19335 /* We use char because int might match the return type of a gcc2
19336 builtin and then its argument prototype would still apply. */
19337 char SSL_library_init ();
19341 SSL_library_init ();
19346 rm -f conftest.$ac_objext conftest$ac_exeext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19348 (eval $ac_link) 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 ac_cv_lib_ssl_SSL_library_init=yes
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19373 ac_cv_lib_ssl_SSL_library_init=no
19375 rm -f conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19380 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19381 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19389 if test $have_openssl = no ; then
19390 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19391 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19392 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19395 ac_check_lib_save_LIBS=$LIBS
19396 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19397 cat >conftest.$ac_ext <<_ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19404 /* Override any gcc2 internal prototype to avoid an error. */
19408 /* We use char because int might match the return type of a gcc2
19409 builtin and then its argument prototype would still apply. */
19410 char ssl3_accept ();
19419 rm -f conftest.$ac_objext conftest$ac_exeext
19420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19421 (eval $ac_link) 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_c_werror_flag"
19429 || test ! -s conftest.err'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest$ac_exeext'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_lib_ssl_ssl3_accept=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_ssl_ssl3_accept=no
19448 rm -f conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19452 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19453 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19454 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19463 if test $have_openssl = yes ; then
19464 ol_with_tls=openssl
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE_OPENSSL 1
19473 if test $need_rsaref = yes; then
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_RSAREF 1
19480 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19482 TLS_LIBS="-lssl -lcrypto"
19485 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19486 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19487 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 cat >conftest.$ac_ext <<_ACEOF
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19498 #ifdef HAVE_OPENSSL_SSL_H
19499 #include <openssl/ssl.h>
19502 /* Require 0.9.7d+ */
19503 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19504 char *__ssl_compat = "0.9.7d";
19508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19509 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19510 ol_cv_ssl_crl_compat=yes
19512 ol_cv_ssl_crl_compat=no
19517 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19518 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19520 if test $ol_cv_ssl_crl_compat = yes ; then
19522 cat >>confdefs.h <<\_ACEOF
19523 #define HAVE_OPENSSL_CRL 1
19531 if test $ol_link_tls = no ; then
19532 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19534 for ac_header in gnutls/gnutls.h
19536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19538 echo "$as_me:$LINENO: checking for $ac_header" >&5
19539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19546 # Is the header compilable?
19547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 $ac_includes_default
19556 #include <$ac_header>
19558 rm -f conftest.$ac_objext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19560 (eval $ac_compile) 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_c_werror_flag"
19568 || test ! -s conftest.err'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19580 ac_header_compiler=yes
19582 echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19585 ac_header_compiler=no
19587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19589 echo "${ECHO_T}$ac_header_compiler" >&6
19591 # Is the header present?
19592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19600 #include <$ac_header>
19602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19605 grep -v '^ *+' conftest.er1 >conftest.err
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } >/dev/null; then
19610 if test -s conftest.err; then
19611 ac_cpp_err=$ac_c_preproc_warn_flag
19612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19619 if test -z "$ac_cpp_err"; then
19620 ac_header_preproc=yes
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19625 ac_header_preproc=no
19627 rm -f conftest.err conftest.$ac_ext
19628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19629 echo "${ECHO_T}$ac_header_preproc" >&6
19631 # So? What about this header?
19632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19638 ac_header_preproc=yes
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19655 ## --------------------------------------------- ##
19656 ## Report this to <http://www.openldap.org/its/> ##
19657 ## --------------------------------------------- ##
19660 sed "s/^/$as_me: WARNING: /" >&2
19663 echo "$as_me:$LINENO: checking for $ac_header" >&5
19664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19668 eval "$as_ac_Header=\$ac_header_preproc"
19670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19675 cat >>confdefs.h <<_ACEOF
19676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19684 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19685 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19686 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
19687 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 ac_check_lib_save_LIBS=$LIBS
19691 LIBS="-lgnutls $LIBS"
19692 cat >conftest.$ac_ext <<_ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19699 /* Override any gcc2 internal prototype to avoid an error. */
19703 /* We use char because int might match the return type of a gcc2
19704 builtin and then its argument prototype would still apply. */
19705 char gnutls_init ();
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag"
19724 || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest$ac_exeext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_lib_gnutls_gnutls_init=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_lib_gnutls_gnutls_init=no
19743 rm -f conftest.err conftest.$ac_objext \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19748 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19749 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19756 if test $have_gnutls = yes ; then
19760 TLS_LIBS="-lgnutls"
19763 cat >>confdefs.h <<\_ACEOF
19764 #define HAVE_GNUTLS 1
19773 if test $ol_link_tls = yes ; then
19775 cat >>confdefs.h <<\_ACEOF
19780 elif test $ol_with_tls = auto ; then
19781 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19782 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19784 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19785 elif test $ol_with_tls != no ; then
19786 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19787 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19788 { (exit 1); exit 1; }; }
19790 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19791 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19794 if test $ol_enable_lmpasswd != no; then
19795 if test $ol_link_tls != yes ; then
19796 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19797 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19798 { (exit 1); exit 1; }; }
19802 cat >>confdefs.h <<\_ACEOF
19803 #define SLAPD_LMHASH 1
19810 case $ol_with_threads in auto | yes | nt)
19813 echo "$as_me:$LINENO: checking for _beginthread" >&5
19814 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19815 if test "${ac_cv_func__beginthread+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 cat >conftest.$ac_ext <<_ACEOF
19821 cat confdefs.h >>conftest.$ac_ext
19822 cat >>conftest.$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19824 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19826 #define _beginthread innocuous__beginthread
19828 /* System header to define __stub macros and hopefully few prototypes,
19829 which can conflict with char _beginthread (); below.
19830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19831 <limits.h> exists even on freestanding compilers. */
19834 # include <limits.h>
19836 # include <assert.h>
19839 #undef _beginthread
19841 /* Override any gcc2 internal prototype to avoid an error. */
19846 /* We use char because int might match the return type of a gcc2
19847 builtin and then its argument prototype would still apply. */
19848 char _beginthread ();
19849 /* The GNU C library defines this for functions which it implements
19850 to always fail with ENOSYS. Some functions are actually named
19851 something starting with __ and the normal name is an alias. */
19852 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19855 char (*f) () = _beginthread;
19864 return f != _beginthread;
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871 (eval $ac_link) 2>conftest.er1
19873 grep -v '^ *+' conftest.er1 >conftest.err
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_c_werror_flag"
19879 || test ! -s conftest.err'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest$ac_exeext'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_cv_func__beginthread=yes
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ac_cv_func__beginthread=no
19898 rm -f conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19901 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19902 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19905 if test $ac_cv_func__beginthread = yes ; then
19907 cat >>confdefs.h <<\_ACEOF
19908 #define HAVE_NT_THREADS 1
19911 ol_cv_nt_threads=yes
19915 if test "$ol_cv_nt_threads" = yes ; then
19917 ol_with_threads=found
19918 ol_with_yielding_select=yes
19921 cat >>confdefs.h <<\_ACEOF
19922 #define HAVE_NT_SERVICE_MANAGER 1
19926 cat >>confdefs.h <<\_ACEOF
19927 #define HAVE_NT_EVENT_LOG 1
19932 if test $ol_with_threads = nt ; then
19933 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19934 echo "$as_me: error: could not locate NT Threads" >&2;}
19935 { (exit 1); exit 1; }; }
19940 case $ol_with_threads in auto | yes | posix)
19943 for ac_header in pthread.h
19945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19947 echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19955 # Is the header compilable?
19956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 $ac_includes_default
19965 #include <$ac_header>
19967 rm -f conftest.$ac_objext
19968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19969 (eval $ac_compile) 2>conftest.er1
19971 grep -v '^ *+' conftest.er1 >conftest.err
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } &&
19976 { ac_try='test -z "$ac_c_werror_flag"
19977 || test ! -s conftest.err'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; } &&
19983 { ac_try='test -s conftest.$ac_objext'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 ac_header_compiler=yes
19991 echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19994 ac_header_compiler=no
19996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19998 echo "${ECHO_T}$ac_header_compiler" >&6
20000 # Is the header present?
20001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <$ac_header>
20011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20014 grep -v '^ *+' conftest.er1 >conftest.err
20016 cat conftest.err >&5
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } >/dev/null; then
20019 if test -s conftest.err; then
20020 ac_cpp_err=$ac_c_preproc_warn_flag
20021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20028 if test -z "$ac_cpp_err"; then
20029 ac_header_preproc=yes
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20034 ac_header_preproc=no
20036 rm -f conftest.err conftest.$ac_ext
20037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20038 echo "${ECHO_T}$ac_header_preproc" >&6
20040 # So? What about this header?
20041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20047 ac_header_preproc=yes
20050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20064 ## --------------------------------------------- ##
20065 ## Report this to <http://www.openldap.org/its/> ##
20066 ## --------------------------------------------- ##
20069 sed "s/^/$as_me: WARNING: /" >&2
20072 echo "$as_me:$LINENO: checking for $ac_header" >&5
20073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 eval "$as_ac_Header=\$ac_header_preproc"
20079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20084 cat >>confdefs.h <<_ACEOF
20085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20093 if test $ac_cv_header_pthread_h = yes ; then
20094 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20095 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20096 if test "${ol_cv_pthread_version+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 cat >conftest.$ac_ext <<_ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20107 # include <pthread.h>
20113 int i = PTHREAD_CREATE_JOINABLE;
20119 rm -f conftest.$ac_objext
20120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20121 (eval $ac_compile) 2>conftest.er1
20123 grep -v '^ *+' conftest.er1 >conftest.err
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
20128 { ac_try='test -z "$ac_c_werror_flag"
20129 || test ! -s conftest.err'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest.$ac_objext'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <pthread.h>
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152 $EGREP "pthread_detach" >/dev/null 2>&1; then
20153 ol_cv_pthread_version=10
20155 ol_cv_pthread_version=8
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 # include <pthread.h>
20172 # ifdef PTHREAD_CREATE_UNDETACHED
20177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20178 $EGREP "draft7" >/dev/null 2>&1; then
20179 ol_cv_pthread_version=7
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188 #include <pthread.h>
20191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20192 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20193 ol_cv_pthread_version=6
20196 cat >conftest.$ac_ext <<_ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20203 # include <pthread.h>
20204 #ifdef PTHREAD_MUTEX_INITIALIZER
20209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20210 $EGREP "draft5" >/dev/null 2>&1; then
20211 ol_cv_pthread_version=5
20213 ol_cv_pthread_version=4
20224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20227 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20228 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20231 if test $ol_cv_pthread_version != 0 ; then
20233 cat >>confdefs.h <<_ACEOF
20234 #define HAVE_PTHREADS $ol_cv_pthread_version
20238 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20239 echo "$as_me: error: unknown pthread version" >&2;}
20240 { (exit 1); exit 1; }; }
20243 # consider threads found
20244 ol_with_threads=found
20247 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20248 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20249 if test "${ol_cv_header_linux_threads+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 #include <pthread.h>
20260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20261 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20262 ol_cv_header_linux_threads=yes
20264 ol_cv_header_linux_threads=no
20270 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20271 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20272 if test $ol_cv_header_linux_threads = yes; then
20274 cat >>confdefs.h <<\_ACEOF
20275 #define HAVE_LINUX_THREADS 1
20281 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20282 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20283 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20286 cat >conftest.$ac_ext <<_ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20292 #include <pthread.h>
20293 #ifdef _POSIX_THREAD_IS_GNU_PTH
20298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20299 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20300 ol_cv_header_gnu_pth_pthread_h=yes
20302 ol_cv_header_gnu_pth_pthread_h=no
20308 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20309 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20312 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20314 for ac_header in sched.h
20316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20318 echo "$as_me:$LINENO: checking for $ac_header" >&5
20319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20326 # Is the header compilable?
20327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20329 cat >conftest.$ac_ext <<_ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20335 $ac_includes_default
20336 #include <$ac_header>
20338 rm -f conftest.$ac_objext
20339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20340 (eval $ac_compile) 2>conftest.er1
20342 grep -v '^ *+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
20347 { ac_try='test -z "$ac_c_werror_flag"
20348 || test ! -s conftest.err'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; } &&
20354 { ac_try='test -s conftest.$ac_objext'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20360 ac_header_compiler=yes
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 ac_header_compiler=no
20367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20369 echo "${ECHO_T}$ac_header_compiler" >&6
20371 # Is the header present?
20372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20374 cat >conftest.$ac_ext <<_ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20380 #include <$ac_header>
20382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20385 grep -v '^ *+' conftest.er1 >conftest.err
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } >/dev/null; then
20390 if test -s conftest.err; then
20391 ac_cpp_err=$ac_c_preproc_warn_flag
20392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20399 if test -z "$ac_cpp_err"; then
20400 ac_header_preproc=yes
20402 echo "$as_me: failed program was:" >&5
20403 sed 's/^/| /' conftest.$ac_ext >&5
20405 ac_header_preproc=no
20407 rm -f conftest.err conftest.$ac_ext
20408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20409 echo "${ECHO_T}$ac_header_preproc" >&6
20411 # So? What about this header?
20412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20418 ac_header_preproc=yes
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20435 ## --------------------------------------------- ##
20436 ## Report this to <http://www.openldap.org/its/> ##
20437 ## --------------------------------------------- ##
20440 sed "s/^/$as_me: WARNING: /" >&2
20443 echo "$as_me:$LINENO: checking for $ac_header" >&5
20444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 eval "$as_ac_Header=\$ac_header_preproc"
20450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20455 cat >>confdefs.h <<_ACEOF
20456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20466 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20467 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20468 if test "${ol_cv_pthread_create+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 if test "$cross_compiling" = yes; then
20473 cat >conftest.$ac_ext <<_ACEOF
20476 cat confdefs.h >>conftest.$ac_ext
20477 cat >>conftest.$ac_ext <<_ACEOF
20478 /* end confdefs.h. */
20480 /* pthread test headers */
20481 #include <pthread.h>
20482 #if HAVE_PTHREADS < 7
20486 #define NULL (void*)0
20489 static void *task(p)
20492 return (void *) (p == NULL);
20499 /* pthread test function */
20500 #ifndef PTHREAD_CREATE_DETACHED
20501 #define PTHREAD_CREATE_DETACHED 1
20505 int detach = PTHREAD_CREATE_DETACHED;
20507 #if HAVE_PTHREADS > 4
20508 /* Final pthreads */
20509 pthread_attr_t attr;
20511 status = pthread_attr_init(&attr);
20512 if( status ) return status;
20514 #if HAVE_PTHREADS < 7
20515 status = pthread_attr_setdetachstate(&attr, &detach);
20516 if( status < 0 ) status = errno;
20518 status = pthread_attr_setdetachstate(&attr, detach);
20520 if( status ) return status;
20521 status = pthread_create( &t, &attr, task, NULL );
20522 #if HAVE_PTHREADS < 7
20523 if( status < 0 ) status = errno;
20525 if( status ) return status;
20527 /* Draft 4 pthreads */
20528 status = pthread_create( &t, pthread_attr_default, task, NULL );
20529 if( status ) return errno;
20531 /* give thread a chance to complete */
20532 /* it should remain joinable and hence detachable */
20535 status = pthread_detach( &t );
20536 if( status ) return errno;
20539 #ifdef HAVE_LINUX_THREADS
20540 pthread_kill_other_threads_np();
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20551 (eval $ac_link) 2>conftest.er1
20553 grep -v '^ *+' conftest.er1 >conftest.err
20555 cat conftest.err >&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); } &&
20558 { ac_try='test -z "$ac_c_werror_flag"
20559 || test ! -s conftest.err'
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; } &&
20565 { ac_try='test -s conftest$ac_exeext'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571 ol_cv_pthread_create=yes
20573 echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 ol_cv_pthread_create=no
20578 rm -f conftest.err conftest.$ac_objext \
20579 conftest$ac_exeext conftest.$ac_ext
20581 cat >conftest.$ac_ext <<_ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20588 /* pthread test headers */
20589 #include <pthread.h>
20590 #if HAVE_PTHREADS < 7
20594 #define NULL (void*)0
20597 static void *task(p)
20600 return (void *) (p == NULL);
20604 int main(argc, argv)
20609 /* pthread test function */
20610 #ifndef PTHREAD_CREATE_DETACHED
20611 #define PTHREAD_CREATE_DETACHED 1
20615 int detach = PTHREAD_CREATE_DETACHED;
20617 #if HAVE_PTHREADS > 4
20618 /* Final pthreads */
20619 pthread_attr_t attr;
20621 status = pthread_attr_init(&attr);
20622 if( status ) return status;
20624 #if HAVE_PTHREADS < 7
20625 status = pthread_attr_setdetachstate(&attr, &detach);
20626 if( status < 0 ) status = errno;
20628 status = pthread_attr_setdetachstate(&attr, detach);
20630 if( status ) return status;
20631 status = pthread_create( &t, &attr, task, NULL );
20632 #if HAVE_PTHREADS < 7
20633 if( status < 0 ) status = errno;
20635 if( status ) return status;
20637 /* Draft 4 pthreads */
20638 status = pthread_create( &t, pthread_attr_default, task, NULL );
20639 if( status ) return errno;
20641 /* give thread a chance to complete */
20642 /* it should remain joinable and hence detachable */
20645 status = pthread_detach( &t );
20646 if( status ) return errno;
20649 #ifdef HAVE_LINUX_THREADS
20650 pthread_kill_other_threads_np();
20658 rm -f conftest$ac_exeext
20659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20660 (eval $ac_link) 2>&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 ol_cv_pthread_create=yes
20671 echo "$as_me: program exited with status $ac_status" >&5
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ( exit $ac_status )
20676 ol_cv_pthread_create=no
20678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20681 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20682 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20684 if test $ol_cv_pthread_create != no ; then
20685 ol_link_threads=posix
20686 ol_link_pthreads=""
20689 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20690 if test "$ol_link_threads" = no ; then
20692 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20693 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20694 if test "${ol_cv_pthread_kthread+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 LIBS="-kthread $LIBS"
20702 if test "$cross_compiling" = yes; then
20703 cat >conftest.$ac_ext <<_ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20710 /* pthread test headers */
20711 #include <pthread.h>
20712 #if HAVE_PTHREADS < 7
20716 #define NULL (void*)0
20719 static void *task(p)
20722 return (void *) (p == NULL);
20729 /* pthread test function */
20730 #ifndef PTHREAD_CREATE_DETACHED
20731 #define PTHREAD_CREATE_DETACHED 1
20735 int detach = PTHREAD_CREATE_DETACHED;
20737 #if HAVE_PTHREADS > 4
20738 /* Final pthreads */
20739 pthread_attr_t attr;
20741 status = pthread_attr_init(&attr);
20742 if( status ) return status;
20744 #if HAVE_PTHREADS < 7
20745 status = pthread_attr_setdetachstate(&attr, &detach);
20746 if( status < 0 ) status = errno;
20748 status = pthread_attr_setdetachstate(&attr, detach);
20750 if( status ) return status;
20751 status = pthread_create( &t, &attr, task, NULL );
20752 #if HAVE_PTHREADS < 7
20753 if( status < 0 ) status = errno;
20755 if( status ) return status;
20757 /* Draft 4 pthreads */
20758 status = pthread_create( &t, pthread_attr_default, task, NULL );
20759 if( status ) return errno;
20761 /* give thread a chance to complete */
20762 /* it should remain joinable and hence detachable */
20765 status = pthread_detach( &t );
20766 if( status ) return errno;
20769 #ifdef HAVE_LINUX_THREADS
20770 pthread_kill_other_threads_np();
20779 rm -f conftest.$ac_objext conftest$ac_exeext
20780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20781 (eval $ac_link) 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_c_werror_flag"
20789 || test ! -s conftest.err'
20790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791 (eval $ac_try) 2>&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; } &&
20795 { ac_try='test -s conftest$ac_exeext'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 ol_cv_pthread_kthread=yes
20803 echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20806 ol_cv_pthread_kthread=no
20808 rm -f conftest.err conftest.$ac_objext \
20809 conftest$ac_exeext conftest.$ac_ext
20811 cat >conftest.$ac_ext <<_ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20818 /* pthread test headers */
20819 #include <pthread.h>
20820 #if HAVE_PTHREADS < 7
20824 #define NULL (void*)0
20827 static void *task(p)
20830 return (void *) (p == NULL);
20834 int main(argc, argv)
20839 /* pthread test function */
20840 #ifndef PTHREAD_CREATE_DETACHED
20841 #define PTHREAD_CREATE_DETACHED 1
20845 int detach = PTHREAD_CREATE_DETACHED;
20847 #if HAVE_PTHREADS > 4
20848 /* Final pthreads */
20849 pthread_attr_t attr;
20851 status = pthread_attr_init(&attr);
20852 if( status ) return status;
20854 #if HAVE_PTHREADS < 7
20855 status = pthread_attr_setdetachstate(&attr, &detach);
20856 if( status < 0 ) status = errno;
20858 status = pthread_attr_setdetachstate(&attr, detach);
20860 if( status ) return status;
20861 status = pthread_create( &t, &attr, task, NULL );
20862 #if HAVE_PTHREADS < 7
20863 if( status < 0 ) status = errno;
20865 if( status ) return status;
20867 /* Draft 4 pthreads */
20868 status = pthread_create( &t, pthread_attr_default, task, NULL );
20869 if( status ) return errno;
20871 /* give thread a chance to complete */
20872 /* it should remain joinable and hence detachable */
20875 status = pthread_detach( &t );
20876 if( status ) return errno;
20879 #ifdef HAVE_LINUX_THREADS
20880 pthread_kill_other_threads_np();
20888 rm -f conftest$ac_exeext
20889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20890 (eval $ac_link) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ol_cv_pthread_kthread=yes
20901 echo "$as_me: program exited with status $ac_status" >&5
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ( exit $ac_status )
20906 ol_cv_pthread_kthread=no
20908 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20915 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20916 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20918 if test $ol_cv_pthread_kthread = yes ; then
20919 ol_link_pthreads="-kthread"
20920 ol_link_threads=posix
20924 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20925 if test "$ol_link_threads" = no ; then
20927 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20928 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20929 if test "${ol_cv_pthread_pthread+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 LIBS="-pthread $LIBS"
20937 if test "$cross_compiling" = yes; then
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20945 /* pthread test headers */
20946 #include <pthread.h>
20947 #if HAVE_PTHREADS < 7
20951 #define NULL (void*)0
20954 static void *task(p)
20957 return (void *) (p == NULL);
20964 /* pthread test function */
20965 #ifndef PTHREAD_CREATE_DETACHED
20966 #define PTHREAD_CREATE_DETACHED 1
20970 int detach = PTHREAD_CREATE_DETACHED;
20972 #if HAVE_PTHREADS > 4
20973 /* Final pthreads */
20974 pthread_attr_t attr;
20976 status = pthread_attr_init(&attr);
20977 if( status ) return status;
20979 #if HAVE_PTHREADS < 7
20980 status = pthread_attr_setdetachstate(&attr, &detach);
20981 if( status < 0 ) status = errno;
20983 status = pthread_attr_setdetachstate(&attr, detach);
20985 if( status ) return status;
20986 status = pthread_create( &t, &attr, task, NULL );
20987 #if HAVE_PTHREADS < 7
20988 if( status < 0 ) status = errno;
20990 if( status ) return status;
20992 /* Draft 4 pthreads */
20993 status = pthread_create( &t, pthread_attr_default, task, NULL );
20994 if( status ) return errno;
20996 /* give thread a chance to complete */
20997 /* it should remain joinable and hence detachable */
21000 status = pthread_detach( &t );
21001 if( status ) return errno;
21004 #ifdef HAVE_LINUX_THREADS
21005 pthread_kill_other_threads_np();
21014 rm -f conftest.$ac_objext conftest$ac_exeext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21016 (eval $ac_link) 2>conftest.er1
21018 grep -v '^ *+' conftest.er1 >conftest.err
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
21023 { ac_try='test -z "$ac_c_werror_flag"
21024 || test ! -s conftest.err'
21025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21026 (eval $ac_try) 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; } &&
21030 { ac_try='test -s conftest$ac_exeext'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; }; then
21036 ol_cv_pthread_pthread=yes
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ol_cv_pthread_pthread=no
21043 rm -f conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21053 /* pthread test headers */
21054 #include <pthread.h>
21055 #if HAVE_PTHREADS < 7
21059 #define NULL (void*)0
21062 static void *task(p)
21065 return (void *) (p == NULL);
21069 int main(argc, argv)
21074 /* pthread test function */
21075 #ifndef PTHREAD_CREATE_DETACHED
21076 #define PTHREAD_CREATE_DETACHED 1
21080 int detach = PTHREAD_CREATE_DETACHED;
21082 #if HAVE_PTHREADS > 4
21083 /* Final pthreads */
21084 pthread_attr_t attr;
21086 status = pthread_attr_init(&attr);
21087 if( status ) return status;
21089 #if HAVE_PTHREADS < 7
21090 status = pthread_attr_setdetachstate(&attr, &detach);
21091 if( status < 0 ) status = errno;
21093 status = pthread_attr_setdetachstate(&attr, detach);
21095 if( status ) return status;
21096 status = pthread_create( &t, &attr, task, NULL );
21097 #if HAVE_PTHREADS < 7
21098 if( status < 0 ) status = errno;
21100 if( status ) return status;
21102 /* Draft 4 pthreads */
21103 status = pthread_create( &t, pthread_attr_default, task, NULL );
21104 if( status ) return errno;
21106 /* give thread a chance to complete */
21107 /* it should remain joinable and hence detachable */
21110 status = pthread_detach( &t );
21111 if( status ) return errno;
21114 #ifdef HAVE_LINUX_THREADS
21115 pthread_kill_other_threads_np();
21123 rm -f conftest$ac_exeext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21125 (eval $ac_link) 2>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; }; then
21134 ol_cv_pthread_pthread=yes
21136 echo "$as_me: program exited with status $ac_status" >&5
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ( exit $ac_status )
21141 ol_cv_pthread_pthread=no
21143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21150 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21151 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21153 if test $ol_cv_pthread_pthread = yes ; then
21154 ol_link_pthreads="-pthread"
21155 ol_link_threads=posix
21159 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21160 if test "$ol_link_threads" = no ; then
21162 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21163 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21164 if test "${ol_cv_pthread_pthreads+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21170 LIBS="-pthreads $LIBS"
21172 if test "$cross_compiling" = yes; then
21173 cat >conftest.$ac_ext <<_ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21180 /* pthread test headers */
21181 #include <pthread.h>
21182 #if HAVE_PTHREADS < 7
21186 #define NULL (void*)0
21189 static void *task(p)
21192 return (void *) (p == NULL);
21199 /* pthread test function */
21200 #ifndef PTHREAD_CREATE_DETACHED
21201 #define PTHREAD_CREATE_DETACHED 1
21205 int detach = PTHREAD_CREATE_DETACHED;
21207 #if HAVE_PTHREADS > 4
21208 /* Final pthreads */
21209 pthread_attr_t attr;
21211 status = pthread_attr_init(&attr);
21212 if( status ) return status;
21214 #if HAVE_PTHREADS < 7
21215 status = pthread_attr_setdetachstate(&attr, &detach);
21216 if( status < 0 ) status = errno;
21218 status = pthread_attr_setdetachstate(&attr, detach);
21220 if( status ) return status;
21221 status = pthread_create( &t, &attr, task, NULL );
21222 #if HAVE_PTHREADS < 7
21223 if( status < 0 ) status = errno;
21225 if( status ) return status;
21227 /* Draft 4 pthreads */
21228 status = pthread_create( &t, pthread_attr_default, task, NULL );
21229 if( status ) return errno;
21231 /* give thread a chance to complete */
21232 /* it should remain joinable and hence detachable */
21235 status = pthread_detach( &t );
21236 if( status ) return errno;
21239 #ifdef HAVE_LINUX_THREADS
21240 pthread_kill_other_threads_np();
21249 rm -f conftest.$ac_objext conftest$ac_exeext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251 (eval $ac_link) 2>conftest.er1
21253 grep -v '^ *+' conftest.er1 >conftest.err
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
21258 { ac_try='test -z "$ac_c_werror_flag"
21259 || test ! -s conftest.err'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest$ac_exeext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ol_cv_pthread_pthreads=yes
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ol_cv_pthread_pthreads=no
21278 rm -f conftest.err conftest.$ac_objext \
21279 conftest$ac_exeext conftest.$ac_ext
21281 cat >conftest.$ac_ext <<_ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21288 /* pthread test headers */
21289 #include <pthread.h>
21290 #if HAVE_PTHREADS < 7
21294 #define NULL (void*)0
21297 static void *task(p)
21300 return (void *) (p == NULL);
21304 int main(argc, argv)
21309 /* pthread test function */
21310 #ifndef PTHREAD_CREATE_DETACHED
21311 #define PTHREAD_CREATE_DETACHED 1
21315 int detach = PTHREAD_CREATE_DETACHED;
21317 #if HAVE_PTHREADS > 4
21318 /* Final pthreads */
21319 pthread_attr_t attr;
21321 status = pthread_attr_init(&attr);
21322 if( status ) return status;
21324 #if HAVE_PTHREADS < 7
21325 status = pthread_attr_setdetachstate(&attr, &detach);
21326 if( status < 0 ) status = errno;
21328 status = pthread_attr_setdetachstate(&attr, detach);
21330 if( status ) return status;
21331 status = pthread_create( &t, &attr, task, NULL );
21332 #if HAVE_PTHREADS < 7
21333 if( status < 0 ) status = errno;
21335 if( status ) return status;
21337 /* Draft 4 pthreads */
21338 status = pthread_create( &t, pthread_attr_default, task, NULL );
21339 if( status ) return errno;
21341 /* give thread a chance to complete */
21342 /* it should remain joinable and hence detachable */
21345 status = pthread_detach( &t );
21346 if( status ) return errno;
21349 #ifdef HAVE_LINUX_THREADS
21350 pthread_kill_other_threads_np();
21358 rm -f conftest$ac_exeext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360 (eval $ac_link) 2>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ol_cv_pthread_pthreads=yes
21371 echo "$as_me: program exited with status $ac_status" >&5
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ( exit $ac_status )
21376 ol_cv_pthread_pthreads=no
21378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21385 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21386 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21388 if test $ol_cv_pthread_pthreads = yes ; then
21389 ol_link_pthreads="-pthreads"
21390 ol_link_threads=posix
21394 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21395 if test "$ol_link_threads" = no ; then
21397 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21398 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21399 if test "${ol_cv_pthread_mthreads+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 LIBS="-mthreads $LIBS"
21407 if test "$cross_compiling" = yes; then
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21415 /* pthread test headers */
21416 #include <pthread.h>
21417 #if HAVE_PTHREADS < 7
21421 #define NULL (void*)0
21424 static void *task(p)
21427 return (void *) (p == NULL);
21434 /* pthread test function */
21435 #ifndef PTHREAD_CREATE_DETACHED
21436 #define PTHREAD_CREATE_DETACHED 1
21440 int detach = PTHREAD_CREATE_DETACHED;
21442 #if HAVE_PTHREADS > 4
21443 /* Final pthreads */
21444 pthread_attr_t attr;
21446 status = pthread_attr_init(&attr);
21447 if( status ) return status;
21449 #if HAVE_PTHREADS < 7
21450 status = pthread_attr_setdetachstate(&attr, &detach);
21451 if( status < 0 ) status = errno;
21453 status = pthread_attr_setdetachstate(&attr, detach);
21455 if( status ) return status;
21456 status = pthread_create( &t, &attr, task, NULL );
21457 #if HAVE_PTHREADS < 7
21458 if( status < 0 ) status = errno;
21460 if( status ) return status;
21462 /* Draft 4 pthreads */
21463 status = pthread_create( &t, pthread_attr_default, task, NULL );
21464 if( status ) return errno;
21466 /* give thread a chance to complete */
21467 /* it should remain joinable and hence detachable */
21470 status = pthread_detach( &t );
21471 if( status ) return errno;
21474 #ifdef HAVE_LINUX_THREADS
21475 pthread_kill_other_threads_np();
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21486 (eval $ac_link) 2>conftest.er1
21488 grep -v '^ *+' conftest.er1 >conftest.err
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -z "$ac_c_werror_flag"
21494 || test ! -s conftest.err'
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; } &&
21500 { ac_try='test -s conftest$ac_exeext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 ol_cv_pthread_mthreads=yes
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 ol_cv_pthread_mthreads=no
21513 rm -f conftest.err conftest.$ac_objext \
21514 conftest$ac_exeext conftest.$ac_ext
21516 cat >conftest.$ac_ext <<_ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21523 /* pthread test headers */
21524 #include <pthread.h>
21525 #if HAVE_PTHREADS < 7
21529 #define NULL (void*)0
21532 static void *task(p)
21535 return (void *) (p == NULL);
21539 int main(argc, argv)
21544 /* pthread test function */
21545 #ifndef PTHREAD_CREATE_DETACHED
21546 #define PTHREAD_CREATE_DETACHED 1
21550 int detach = PTHREAD_CREATE_DETACHED;
21552 #if HAVE_PTHREADS > 4
21553 /* Final pthreads */
21554 pthread_attr_t attr;
21556 status = pthread_attr_init(&attr);
21557 if( status ) return status;
21559 #if HAVE_PTHREADS < 7
21560 status = pthread_attr_setdetachstate(&attr, &detach);
21561 if( status < 0 ) status = errno;
21563 status = pthread_attr_setdetachstate(&attr, detach);
21565 if( status ) return status;
21566 status = pthread_create( &t, &attr, task, NULL );
21567 #if HAVE_PTHREADS < 7
21568 if( status < 0 ) status = errno;
21570 if( status ) return status;
21572 /* Draft 4 pthreads */
21573 status = pthread_create( &t, pthread_attr_default, task, NULL );
21574 if( status ) return errno;
21576 /* give thread a chance to complete */
21577 /* it should remain joinable and hence detachable */
21580 status = pthread_detach( &t );
21581 if( status ) return errno;
21584 #ifdef HAVE_LINUX_THREADS
21585 pthread_kill_other_threads_np();
21593 rm -f conftest$ac_exeext
21594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21595 (eval $ac_link) 2>&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ol_cv_pthread_mthreads=yes
21606 echo "$as_me: program exited with status $ac_status" >&5
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ( exit $ac_status )
21611 ol_cv_pthread_mthreads=no
21613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21620 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21621 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21623 if test $ol_cv_pthread_mthreads = yes ; then
21624 ol_link_pthreads="-mthreads"
21625 ol_link_threads=posix
21629 # Pthread try link: -thread (ol_cv_pthread_thread)
21630 if test "$ol_link_threads" = no ; then
21632 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21633 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21634 if test "${ol_cv_pthread_thread+set}" = set; then
21635 echo $ECHO_N "(cached) $ECHO_C" >&6
21640 LIBS="-thread $LIBS"
21642 if test "$cross_compiling" = yes; then
21643 cat >conftest.$ac_ext <<_ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21650 /* pthread test headers */
21651 #include <pthread.h>
21652 #if HAVE_PTHREADS < 7
21656 #define NULL (void*)0
21659 static void *task(p)
21662 return (void *) (p == NULL);
21669 /* pthread test function */
21670 #ifndef PTHREAD_CREATE_DETACHED
21671 #define PTHREAD_CREATE_DETACHED 1
21675 int detach = PTHREAD_CREATE_DETACHED;
21677 #if HAVE_PTHREADS > 4
21678 /* Final pthreads */
21679 pthread_attr_t attr;
21681 status = pthread_attr_init(&attr);
21682 if( status ) return status;
21684 #if HAVE_PTHREADS < 7
21685 status = pthread_attr_setdetachstate(&attr, &detach);
21686 if( status < 0 ) status = errno;
21688 status = pthread_attr_setdetachstate(&attr, detach);
21690 if( status ) return status;
21691 status = pthread_create( &t, &attr, task, NULL );
21692 #if HAVE_PTHREADS < 7
21693 if( status < 0 ) status = errno;
21695 if( status ) return status;
21697 /* Draft 4 pthreads */
21698 status = pthread_create( &t, pthread_attr_default, task, NULL );
21699 if( status ) return errno;
21701 /* give thread a chance to complete */
21702 /* it should remain joinable and hence detachable */
21705 status = pthread_detach( &t );
21706 if( status ) return errno;
21709 #ifdef HAVE_LINUX_THREADS
21710 pthread_kill_other_threads_np();
21719 rm -f conftest.$ac_objext conftest$ac_exeext
21720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21721 (eval $ac_link) 2>conftest.er1
21723 grep -v '^ *+' conftest.er1 >conftest.err
21725 cat conftest.err >&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } &&
21728 { ac_try='test -z "$ac_c_werror_flag"
21729 || test ! -s conftest.err'
21730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731 (eval $ac_try) 2>&5
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; } &&
21735 { ac_try='test -s conftest$ac_exeext'
21736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21737 (eval $ac_try) 2>&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); }; }; then
21741 ol_cv_pthread_thread=yes
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21746 ol_cv_pthread_thread=no
21748 rm -f conftest.err conftest.$ac_objext \
21749 conftest$ac_exeext conftest.$ac_ext
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21758 /* pthread test headers */
21759 #include <pthread.h>
21760 #if HAVE_PTHREADS < 7
21764 #define NULL (void*)0
21767 static void *task(p)
21770 return (void *) (p == NULL);
21774 int main(argc, argv)
21779 /* pthread test function */
21780 #ifndef PTHREAD_CREATE_DETACHED
21781 #define PTHREAD_CREATE_DETACHED 1
21785 int detach = PTHREAD_CREATE_DETACHED;
21787 #if HAVE_PTHREADS > 4
21788 /* Final pthreads */
21789 pthread_attr_t attr;
21791 status = pthread_attr_init(&attr);
21792 if( status ) return status;
21794 #if HAVE_PTHREADS < 7
21795 status = pthread_attr_setdetachstate(&attr, &detach);
21796 if( status < 0 ) status = errno;
21798 status = pthread_attr_setdetachstate(&attr, detach);
21800 if( status ) return status;
21801 status = pthread_create( &t, &attr, task, NULL );
21802 #if HAVE_PTHREADS < 7
21803 if( status < 0 ) status = errno;
21805 if( status ) return status;
21807 /* Draft 4 pthreads */
21808 status = pthread_create( &t, pthread_attr_default, task, NULL );
21809 if( status ) return errno;
21811 /* give thread a chance to complete */
21812 /* it should remain joinable and hence detachable */
21815 status = pthread_detach( &t );
21816 if( status ) return errno;
21819 #ifdef HAVE_LINUX_THREADS
21820 pthread_kill_other_threads_np();
21828 rm -f conftest$ac_exeext
21829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830 (eval $ac_link) 2>&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ol_cv_pthread_thread=yes
21841 echo "$as_me: program exited with status $ac_status" >&5
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21845 ( exit $ac_status )
21846 ol_cv_pthread_thread=no
21848 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21855 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21856 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21858 if test $ol_cv_pthread_thread = yes ; then
21859 ol_link_pthreads="-thread"
21860 ol_link_threads=posix
21865 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21866 if test "$ol_link_threads" = no ; then
21867 # try -lpthread -lmach -lexc -lc_r
21868 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21869 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21870 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21876 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21878 if test "$cross_compiling" = yes; then
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21886 /* pthread test headers */
21887 #include <pthread.h>
21888 #if HAVE_PTHREADS < 7
21892 #define NULL (void*)0
21895 static void *task(p)
21898 return (void *) (p == NULL);
21905 /* pthread test function */
21906 #ifndef PTHREAD_CREATE_DETACHED
21907 #define PTHREAD_CREATE_DETACHED 1
21911 int detach = PTHREAD_CREATE_DETACHED;
21913 #if HAVE_PTHREADS > 4
21914 /* Final pthreads */
21915 pthread_attr_t attr;
21917 status = pthread_attr_init(&attr);
21918 if( status ) return status;
21920 #if HAVE_PTHREADS < 7
21921 status = pthread_attr_setdetachstate(&attr, &detach);
21922 if( status < 0 ) status = errno;
21924 status = pthread_attr_setdetachstate(&attr, detach);
21926 if( status ) return status;
21927 status = pthread_create( &t, &attr, task, NULL );
21928 #if HAVE_PTHREADS < 7
21929 if( status < 0 ) status = errno;
21931 if( status ) return status;
21933 /* Draft 4 pthreads */
21934 status = pthread_create( &t, pthread_attr_default, task, NULL );
21935 if( status ) return errno;
21937 /* give thread a chance to complete */
21938 /* it should remain joinable and hence detachable */
21941 status = pthread_detach( &t );
21942 if( status ) return errno;
21945 #ifdef HAVE_LINUX_THREADS
21946 pthread_kill_other_threads_np();
21955 rm -f conftest.$ac_objext conftest$ac_exeext
21956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957 (eval $ac_link) 2>conftest.er1
21959 grep -v '^ *+' conftest.er1 >conftest.err
21961 cat conftest.err >&5
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } &&
21964 { ac_try='test -z "$ac_c_werror_flag"
21965 || test ! -s conftest.err'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; } &&
21971 { ac_try='test -s conftest$ac_exeext'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21977 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21982 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21984 rm -f conftest.err conftest.$ac_objext \
21985 conftest$ac_exeext conftest.$ac_ext
21987 cat >conftest.$ac_ext <<_ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21994 /* pthread test headers */
21995 #include <pthread.h>
21996 #if HAVE_PTHREADS < 7
22000 #define NULL (void*)0
22003 static void *task(p)
22006 return (void *) (p == NULL);
22010 int main(argc, argv)
22015 /* pthread test function */
22016 #ifndef PTHREAD_CREATE_DETACHED
22017 #define PTHREAD_CREATE_DETACHED 1
22021 int detach = PTHREAD_CREATE_DETACHED;
22023 #if HAVE_PTHREADS > 4
22024 /* Final pthreads */
22025 pthread_attr_t attr;
22027 status = pthread_attr_init(&attr);
22028 if( status ) return status;
22030 #if HAVE_PTHREADS < 7
22031 status = pthread_attr_setdetachstate(&attr, &detach);
22032 if( status < 0 ) status = errno;
22034 status = pthread_attr_setdetachstate(&attr, detach);
22036 if( status ) return status;
22037 status = pthread_create( &t, &attr, task, NULL );
22038 #if HAVE_PTHREADS < 7
22039 if( status < 0 ) status = errno;
22041 if( status ) return status;
22043 /* Draft 4 pthreads */
22044 status = pthread_create( &t, pthread_attr_default, task, NULL );
22045 if( status ) return errno;
22047 /* give thread a chance to complete */
22048 /* it should remain joinable and hence detachable */
22051 status = pthread_detach( &t );
22052 if( status ) return errno;
22055 #ifdef HAVE_LINUX_THREADS
22056 pthread_kill_other_threads_np();
22064 rm -f conftest$ac_exeext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22066 (eval $ac_link) 2>&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22075 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22077 echo "$as_me: program exited with status $ac_status" >&5
22078 echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22081 ( exit $ac_status )
22082 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22091 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22092 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22094 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22095 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22096 ol_link_threads=posix
22100 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22101 if test "$ol_link_threads" = no ; then
22102 # try -lpthread -lmach -lexc
22103 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22104 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22105 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 LIBS="-lpthread -lmach -lexc $LIBS"
22113 if test "$cross_compiling" = yes; then
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22121 /* pthread test headers */
22122 #include <pthread.h>
22123 #if HAVE_PTHREADS < 7
22127 #define NULL (void*)0
22130 static void *task(p)
22133 return (void *) (p == NULL);
22140 /* pthread test function */
22141 #ifndef PTHREAD_CREATE_DETACHED
22142 #define PTHREAD_CREATE_DETACHED 1
22146 int detach = PTHREAD_CREATE_DETACHED;
22148 #if HAVE_PTHREADS > 4
22149 /* Final pthreads */
22150 pthread_attr_t attr;
22152 status = pthread_attr_init(&attr);
22153 if( status ) return status;
22155 #if HAVE_PTHREADS < 7
22156 status = pthread_attr_setdetachstate(&attr, &detach);
22157 if( status < 0 ) status = errno;
22159 status = pthread_attr_setdetachstate(&attr, detach);
22161 if( status ) return status;
22162 status = pthread_create( &t, &attr, task, NULL );
22163 #if HAVE_PTHREADS < 7
22164 if( status < 0 ) status = errno;
22166 if( status ) return status;
22168 /* Draft 4 pthreads */
22169 status = pthread_create( &t, pthread_attr_default, task, NULL );
22170 if( status ) return errno;
22172 /* give thread a chance to complete */
22173 /* it should remain joinable and hence detachable */
22176 status = pthread_detach( &t );
22177 if( status ) return errno;
22180 #ifdef HAVE_LINUX_THREADS
22181 pthread_kill_other_threads_np();
22190 rm -f conftest.$ac_objext conftest$ac_exeext
22191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22192 (eval $ac_link) 2>conftest.er1
22194 grep -v '^ *+' conftest.er1 >conftest.err
22196 cat conftest.err >&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } &&
22199 { ac_try='test -z "$ac_c_werror_flag"
22200 || test ! -s conftest.err'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; } &&
22206 { ac_try='test -s conftest$ac_exeext'
22207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208 (eval $ac_try) 2>&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; }; then
22212 ol_cv_pthread_lpthread_lmach_lexc=yes
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 ol_cv_pthread_lpthread_lmach_lexc=no
22219 rm -f conftest.err conftest.$ac_objext \
22220 conftest$ac_exeext conftest.$ac_ext
22222 cat >conftest.$ac_ext <<_ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h. */
22229 /* pthread test headers */
22230 #include <pthread.h>
22231 #if HAVE_PTHREADS < 7
22235 #define NULL (void*)0
22238 static void *task(p)
22241 return (void *) (p == NULL);
22245 int main(argc, argv)
22250 /* pthread test function */
22251 #ifndef PTHREAD_CREATE_DETACHED
22252 #define PTHREAD_CREATE_DETACHED 1
22256 int detach = PTHREAD_CREATE_DETACHED;
22258 #if HAVE_PTHREADS > 4
22259 /* Final pthreads */
22260 pthread_attr_t attr;
22262 status = pthread_attr_init(&attr);
22263 if( status ) return status;
22265 #if HAVE_PTHREADS < 7
22266 status = pthread_attr_setdetachstate(&attr, &detach);
22267 if( status < 0 ) status = errno;
22269 status = pthread_attr_setdetachstate(&attr, detach);
22271 if( status ) return status;
22272 status = pthread_create( &t, &attr, task, NULL );
22273 #if HAVE_PTHREADS < 7
22274 if( status < 0 ) status = errno;
22276 if( status ) return status;
22278 /* Draft 4 pthreads */
22279 status = pthread_create( &t, pthread_attr_default, task, NULL );
22280 if( status ) return errno;
22282 /* give thread a chance to complete */
22283 /* it should remain joinable and hence detachable */
22286 status = pthread_detach( &t );
22287 if( status ) return errno;
22290 #ifdef HAVE_LINUX_THREADS
22291 pthread_kill_other_threads_np();
22299 rm -f conftest$ac_exeext
22300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22301 (eval $ac_link) 2>&5
22303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 ol_cv_pthread_lpthread_lmach_lexc=yes
22312 echo "$as_me: program exited with status $ac_status" >&5
22313 echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 ( exit $ac_status )
22317 ol_cv_pthread_lpthread_lmach_lexc=no
22319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22326 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22327 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22329 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22330 ol_link_pthreads="-lpthread -lmach -lexc"
22331 ol_link_threads=posix
22336 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22337 if test "$ol_link_threads" = no ; then
22338 # try -lpthread -Wl,-woff,85
22339 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22340 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22341 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22349 if test "$cross_compiling" = yes; then
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22357 /* pthread test headers */
22358 #include <pthread.h>
22359 #if HAVE_PTHREADS < 7
22363 #define NULL (void*)0
22366 static void *task(p)
22369 return (void *) (p == NULL);
22376 /* pthread test function */
22377 #ifndef PTHREAD_CREATE_DETACHED
22378 #define PTHREAD_CREATE_DETACHED 1
22382 int detach = PTHREAD_CREATE_DETACHED;
22384 #if HAVE_PTHREADS > 4
22385 /* Final pthreads */
22386 pthread_attr_t attr;
22388 status = pthread_attr_init(&attr);
22389 if( status ) return status;
22391 #if HAVE_PTHREADS < 7
22392 status = pthread_attr_setdetachstate(&attr, &detach);
22393 if( status < 0 ) status = errno;
22395 status = pthread_attr_setdetachstate(&attr, detach);
22397 if( status ) return status;
22398 status = pthread_create( &t, &attr, task, NULL );
22399 #if HAVE_PTHREADS < 7
22400 if( status < 0 ) status = errno;
22402 if( status ) return status;
22404 /* Draft 4 pthreads */
22405 status = pthread_create( &t, pthread_attr_default, task, NULL );
22406 if( status ) return errno;
22408 /* give thread a chance to complete */
22409 /* it should remain joinable and hence detachable */
22412 status = pthread_detach( &t );
22413 if( status ) return errno;
22416 #ifdef HAVE_LINUX_THREADS
22417 pthread_kill_other_threads_np();
22426 rm -f conftest.$ac_objext conftest$ac_exeext
22427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22428 (eval $ac_link) 2>conftest.er1
22430 grep -v '^ *+' conftest.er1 >conftest.err
22432 cat conftest.err >&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } &&
22435 { ac_try='test -z "$ac_c_werror_flag"
22436 || test ! -s conftest.err'
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; } &&
22442 { ac_try='test -s conftest$ac_exeext'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 ol_cv_pthread_lib_lpthread_woff=yes
22450 echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22453 ol_cv_pthread_lib_lpthread_woff=no
22455 rm -f conftest.err conftest.$ac_objext \
22456 conftest$ac_exeext conftest.$ac_ext
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22465 /* pthread test headers */
22466 #include <pthread.h>
22467 #if HAVE_PTHREADS < 7
22471 #define NULL (void*)0
22474 static void *task(p)
22477 return (void *) (p == NULL);
22481 int main(argc, argv)
22486 /* pthread test function */
22487 #ifndef PTHREAD_CREATE_DETACHED
22488 #define PTHREAD_CREATE_DETACHED 1
22492 int detach = PTHREAD_CREATE_DETACHED;
22494 #if HAVE_PTHREADS > 4
22495 /* Final pthreads */
22496 pthread_attr_t attr;
22498 status = pthread_attr_init(&attr);
22499 if( status ) return status;
22501 #if HAVE_PTHREADS < 7
22502 status = pthread_attr_setdetachstate(&attr, &detach);
22503 if( status < 0 ) status = errno;
22505 status = pthread_attr_setdetachstate(&attr, detach);
22507 if( status ) return status;
22508 status = pthread_create( &t, &attr, task, NULL );
22509 #if HAVE_PTHREADS < 7
22510 if( status < 0 ) status = errno;
22512 if( status ) return status;
22514 /* Draft 4 pthreads */
22515 status = pthread_create( &t, pthread_attr_default, task, NULL );
22516 if( status ) return errno;
22518 /* give thread a chance to complete */
22519 /* it should remain joinable and hence detachable */
22522 status = pthread_detach( &t );
22523 if( status ) return errno;
22526 #ifdef HAVE_LINUX_THREADS
22527 pthread_kill_other_threads_np();
22535 rm -f conftest$ac_exeext
22536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22537 (eval $ac_link) 2>&5
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; }; then
22546 ol_cv_pthread_lib_lpthread_woff=yes
22548 echo "$as_me: program exited with status $ac_status" >&5
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22552 ( exit $ac_status )
22553 ol_cv_pthread_lib_lpthread_woff=no
22555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22562 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22563 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22565 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22566 ol_link_pthreads="-lpthread -Wl,-woff,85"
22567 ol_link_threads=posix
22572 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22573 if test "$ol_link_threads" = no ; then
22575 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22576 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22577 if test "${ol_cv_pthread_lpthread+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 LIBS="-lpthread $LIBS"
22585 if test "$cross_compiling" = yes; then
22586 cat >conftest.$ac_ext <<_ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h. */
22593 /* pthread test headers */
22594 #include <pthread.h>
22595 #if HAVE_PTHREADS < 7
22599 #define NULL (void*)0
22602 static void *task(p)
22605 return (void *) (p == NULL);
22612 /* pthread test function */
22613 #ifndef PTHREAD_CREATE_DETACHED
22614 #define PTHREAD_CREATE_DETACHED 1
22618 int detach = PTHREAD_CREATE_DETACHED;
22620 #if HAVE_PTHREADS > 4
22621 /* Final pthreads */
22622 pthread_attr_t attr;
22624 status = pthread_attr_init(&attr);
22625 if( status ) return status;
22627 #if HAVE_PTHREADS < 7
22628 status = pthread_attr_setdetachstate(&attr, &detach);
22629 if( status < 0 ) status = errno;
22631 status = pthread_attr_setdetachstate(&attr, detach);
22633 if( status ) return status;
22634 status = pthread_create( &t, &attr, task, NULL );
22635 #if HAVE_PTHREADS < 7
22636 if( status < 0 ) status = errno;
22638 if( status ) return status;
22640 /* Draft 4 pthreads */
22641 status = pthread_create( &t, pthread_attr_default, task, NULL );
22642 if( status ) return errno;
22644 /* give thread a chance to complete */
22645 /* it should remain joinable and hence detachable */
22648 status = pthread_detach( &t );
22649 if( status ) return errno;
22652 #ifdef HAVE_LINUX_THREADS
22653 pthread_kill_other_threads_np();
22662 rm -f conftest.$ac_objext conftest$ac_exeext
22663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22664 (eval $ac_link) 2>conftest.er1
22666 grep -v '^ *+' conftest.er1 >conftest.err
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } &&
22671 { ac_try='test -z "$ac_c_werror_flag"
22672 || test ! -s conftest.err'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest$ac_exeext'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; }; then
22684 ol_cv_pthread_lpthread=yes
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22689 ol_cv_pthread_lpthread=no
22691 rm -f conftest.err conftest.$ac_objext \
22692 conftest$ac_exeext conftest.$ac_ext
22694 cat >conftest.$ac_ext <<_ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22701 /* pthread test headers */
22702 #include <pthread.h>
22703 #if HAVE_PTHREADS < 7
22707 #define NULL (void*)0
22710 static void *task(p)
22713 return (void *) (p == NULL);
22717 int main(argc, argv)
22722 /* pthread test function */
22723 #ifndef PTHREAD_CREATE_DETACHED
22724 #define PTHREAD_CREATE_DETACHED 1
22728 int detach = PTHREAD_CREATE_DETACHED;
22730 #if HAVE_PTHREADS > 4
22731 /* Final pthreads */
22732 pthread_attr_t attr;
22734 status = pthread_attr_init(&attr);
22735 if( status ) return status;
22737 #if HAVE_PTHREADS < 7
22738 status = pthread_attr_setdetachstate(&attr, &detach);
22739 if( status < 0 ) status = errno;
22741 status = pthread_attr_setdetachstate(&attr, detach);
22743 if( status ) return status;
22744 status = pthread_create( &t, &attr, task, NULL );
22745 #if HAVE_PTHREADS < 7
22746 if( status < 0 ) status = errno;
22748 if( status ) return status;
22750 /* Draft 4 pthreads */
22751 status = pthread_create( &t, pthread_attr_default, task, NULL );
22752 if( status ) return errno;
22754 /* give thread a chance to complete */
22755 /* it should remain joinable and hence detachable */
22758 status = pthread_detach( &t );
22759 if( status ) return errno;
22762 #ifdef HAVE_LINUX_THREADS
22763 pthread_kill_other_threads_np();
22771 rm -f conftest$ac_exeext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773 (eval $ac_link) 2>&5
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; }; then
22782 ol_cv_pthread_lpthread=yes
22784 echo "$as_me: program exited with status $ac_status" >&5
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22788 ( exit $ac_status )
22789 ol_cv_pthread_lpthread=no
22791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22798 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22799 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22801 if test $ol_cv_pthread_lpthread = yes ; then
22802 ol_link_pthreads="-lpthread"
22803 ol_link_threads=posix
22807 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22808 if test "$ol_link_threads" = no ; then
22810 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22811 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22812 if test "${ol_cv_pthread_lc_r+set}" = set; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 if test "$cross_compiling" = yes; then
22821 cat >conftest.$ac_ext <<_ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h. */
22828 /* pthread test headers */
22829 #include <pthread.h>
22830 #if HAVE_PTHREADS < 7
22834 #define NULL (void*)0
22837 static void *task(p)
22840 return (void *) (p == NULL);
22847 /* pthread test function */
22848 #ifndef PTHREAD_CREATE_DETACHED
22849 #define PTHREAD_CREATE_DETACHED 1
22853 int detach = PTHREAD_CREATE_DETACHED;
22855 #if HAVE_PTHREADS > 4
22856 /* Final pthreads */
22857 pthread_attr_t attr;
22859 status = pthread_attr_init(&attr);
22860 if( status ) return status;
22862 #if HAVE_PTHREADS < 7
22863 status = pthread_attr_setdetachstate(&attr, &detach);
22864 if( status < 0 ) status = errno;
22866 status = pthread_attr_setdetachstate(&attr, detach);
22868 if( status ) return status;
22869 status = pthread_create( &t, &attr, task, NULL );
22870 #if HAVE_PTHREADS < 7
22871 if( status < 0 ) status = errno;
22873 if( status ) return status;
22875 /* Draft 4 pthreads */
22876 status = pthread_create( &t, pthread_attr_default, task, NULL );
22877 if( status ) return errno;
22879 /* give thread a chance to complete */
22880 /* it should remain joinable and hence detachable */
22883 status = pthread_detach( &t );
22884 if( status ) return errno;
22887 #ifdef HAVE_LINUX_THREADS
22888 pthread_kill_other_threads_np();
22897 rm -f conftest.$ac_objext conftest$ac_exeext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899 (eval $ac_link) 2>conftest.er1
22901 grep -v '^ *+' conftest.er1 >conftest.err
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } &&
22906 { ac_try='test -z "$ac_c_werror_flag"
22907 || test ! -s conftest.err'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; } &&
22913 { ac_try='test -s conftest$ac_exeext'
22914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915 (eval $ac_try) 2>&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); }; }; then
22919 ol_cv_pthread_lc_r=yes
22921 echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22924 ol_cv_pthread_lc_r=no
22926 rm -f conftest.err conftest.$ac_objext \
22927 conftest$ac_exeext conftest.$ac_ext
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22936 /* pthread test headers */
22937 #include <pthread.h>
22938 #if HAVE_PTHREADS < 7
22942 #define NULL (void*)0
22945 static void *task(p)
22948 return (void *) (p == NULL);
22952 int main(argc, argv)
22957 /* pthread test function */
22958 #ifndef PTHREAD_CREATE_DETACHED
22959 #define PTHREAD_CREATE_DETACHED 1
22963 int detach = PTHREAD_CREATE_DETACHED;
22965 #if HAVE_PTHREADS > 4
22966 /* Final pthreads */
22967 pthread_attr_t attr;
22969 status = pthread_attr_init(&attr);
22970 if( status ) return status;
22972 #if HAVE_PTHREADS < 7
22973 status = pthread_attr_setdetachstate(&attr, &detach);
22974 if( status < 0 ) status = errno;
22976 status = pthread_attr_setdetachstate(&attr, detach);
22978 if( status ) return status;
22979 status = pthread_create( &t, &attr, task, NULL );
22980 #if HAVE_PTHREADS < 7
22981 if( status < 0 ) status = errno;
22983 if( status ) return status;
22985 /* Draft 4 pthreads */
22986 status = pthread_create( &t, pthread_attr_default, task, NULL );
22987 if( status ) return errno;
22989 /* give thread a chance to complete */
22990 /* it should remain joinable and hence detachable */
22993 status = pthread_detach( &t );
22994 if( status ) return errno;
22997 #ifdef HAVE_LINUX_THREADS
22998 pthread_kill_other_threads_np();
23006 rm -f conftest$ac_exeext
23007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23008 (eval $ac_link) 2>&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013 (eval $ac_try) 2>&5
23015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016 (exit $ac_status); }; }; then
23017 ol_cv_pthread_lc_r=yes
23019 echo "$as_me: program exited with status $ac_status" >&5
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 ( exit $ac_status )
23024 ol_cv_pthread_lc_r=no
23026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23033 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23034 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23036 if test $ol_cv_pthread_lc_r = yes ; then
23037 ol_link_pthreads="-lc_r"
23038 ol_link_threads=posix
23043 # Pthread try link: -threads (ol_cv_pthread_threads)
23044 if test "$ol_link_threads" = no ; then
23046 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23047 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23048 if test "${ol_cv_pthread_threads+set}" = set; then
23049 echo $ECHO_N "(cached) $ECHO_C" >&6
23054 LIBS="-threads $LIBS"
23056 if test "$cross_compiling" = yes; then
23057 cat >conftest.$ac_ext <<_ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23064 /* pthread test headers */
23065 #include <pthread.h>
23066 #if HAVE_PTHREADS < 7
23070 #define NULL (void*)0
23073 static void *task(p)
23076 return (void *) (p == NULL);
23083 /* pthread test function */
23084 #ifndef PTHREAD_CREATE_DETACHED
23085 #define PTHREAD_CREATE_DETACHED 1
23089 int detach = PTHREAD_CREATE_DETACHED;
23091 #if HAVE_PTHREADS > 4
23092 /* Final pthreads */
23093 pthread_attr_t attr;
23095 status = pthread_attr_init(&attr);
23096 if( status ) return status;
23098 #if HAVE_PTHREADS < 7
23099 status = pthread_attr_setdetachstate(&attr, &detach);
23100 if( status < 0 ) status = errno;
23102 status = pthread_attr_setdetachstate(&attr, detach);
23104 if( status ) return status;
23105 status = pthread_create( &t, &attr, task, NULL );
23106 #if HAVE_PTHREADS < 7
23107 if( status < 0 ) status = errno;
23109 if( status ) return status;
23111 /* Draft 4 pthreads */
23112 status = pthread_create( &t, pthread_attr_default, task, NULL );
23113 if( status ) return errno;
23115 /* give thread a chance to complete */
23116 /* it should remain joinable and hence detachable */
23119 status = pthread_detach( &t );
23120 if( status ) return errno;
23123 #ifdef HAVE_LINUX_THREADS
23124 pthread_kill_other_threads_np();
23133 rm -f conftest.$ac_objext conftest$ac_exeext
23134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23135 (eval $ac_link) 2>conftest.er1
23137 grep -v '^ *+' conftest.er1 >conftest.err
23139 cat conftest.err >&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); } &&
23142 { ac_try='test -z "$ac_c_werror_flag"
23143 || test ! -s conftest.err'
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; } &&
23149 { ac_try='test -s conftest$ac_exeext'
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; }; then
23155 ol_cv_pthread_threads=yes
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ol_cv_pthread_threads=no
23162 rm -f conftest.err conftest.$ac_objext \
23163 conftest$ac_exeext conftest.$ac_ext
23165 cat >conftest.$ac_ext <<_ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23172 /* pthread test headers */
23173 #include <pthread.h>
23174 #if HAVE_PTHREADS < 7
23178 #define NULL (void*)0
23181 static void *task(p)
23184 return (void *) (p == NULL);
23188 int main(argc, argv)
23193 /* pthread test function */
23194 #ifndef PTHREAD_CREATE_DETACHED
23195 #define PTHREAD_CREATE_DETACHED 1
23199 int detach = PTHREAD_CREATE_DETACHED;
23201 #if HAVE_PTHREADS > 4
23202 /* Final pthreads */
23203 pthread_attr_t attr;
23205 status = pthread_attr_init(&attr);
23206 if( status ) return status;
23208 #if HAVE_PTHREADS < 7
23209 status = pthread_attr_setdetachstate(&attr, &detach);
23210 if( status < 0 ) status = errno;
23212 status = pthread_attr_setdetachstate(&attr, detach);
23214 if( status ) return status;
23215 status = pthread_create( &t, &attr, task, NULL );
23216 #if HAVE_PTHREADS < 7
23217 if( status < 0 ) status = errno;
23219 if( status ) return status;
23221 /* Draft 4 pthreads */
23222 status = pthread_create( &t, pthread_attr_default, task, NULL );
23223 if( status ) return errno;
23225 /* give thread a chance to complete */
23226 /* it should remain joinable and hence detachable */
23229 status = pthread_detach( &t );
23230 if( status ) return errno;
23233 #ifdef HAVE_LINUX_THREADS
23234 pthread_kill_other_threads_np();
23242 rm -f conftest$ac_exeext
23243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23244 (eval $ac_link) 2>&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; }; then
23253 ol_cv_pthread_threads=yes
23255 echo "$as_me: program exited with status $ac_status" >&5
23256 echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23259 ( exit $ac_status )
23260 ol_cv_pthread_threads=no
23262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23269 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23270 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23272 if test $ol_cv_pthread_threads = yes ; then
23273 ol_link_pthreads="-threads"
23274 ol_link_threads=posix
23279 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23280 if test "$ol_link_threads" = no ; then
23281 # try -lpthreads -lmach -lexc -lc_r
23282 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23283 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23284 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23290 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23292 if test "$cross_compiling" = yes; then
23293 cat >conftest.$ac_ext <<_ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h. */
23300 /* pthread test headers */
23301 #include <pthread.h>
23302 #if HAVE_PTHREADS < 7
23306 #define NULL (void*)0
23309 static void *task(p)
23312 return (void *) (p == NULL);
23319 /* pthread test function */
23320 #ifndef PTHREAD_CREATE_DETACHED
23321 #define PTHREAD_CREATE_DETACHED 1
23325 int detach = PTHREAD_CREATE_DETACHED;
23327 #if HAVE_PTHREADS > 4
23328 /* Final pthreads */
23329 pthread_attr_t attr;
23331 status = pthread_attr_init(&attr);
23332 if( status ) return status;
23334 #if HAVE_PTHREADS < 7
23335 status = pthread_attr_setdetachstate(&attr, &detach);
23336 if( status < 0 ) status = errno;
23338 status = pthread_attr_setdetachstate(&attr, detach);
23340 if( status ) return status;
23341 status = pthread_create( &t, &attr, task, NULL );
23342 #if HAVE_PTHREADS < 7
23343 if( status < 0 ) status = errno;
23345 if( status ) return status;
23347 /* Draft 4 pthreads */
23348 status = pthread_create( &t, pthread_attr_default, task, NULL );
23349 if( status ) return errno;
23351 /* give thread a chance to complete */
23352 /* it should remain joinable and hence detachable */
23355 status = pthread_detach( &t );
23356 if( status ) return errno;
23359 #ifdef HAVE_LINUX_THREADS
23360 pthread_kill_other_threads_np();
23369 rm -f conftest.$ac_objext conftest$ac_exeext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23371 (eval $ac_link) 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
23378 { ac_try='test -z "$ac_c_werror_flag"
23379 || test ! -s conftest.err'
23380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381 (eval $ac_try) 2>&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); }; } &&
23385 { ac_try='test -s conftest$ac_exeext'
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; }; then
23391 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23393 echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23396 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23398 rm -f conftest.err conftest.$ac_objext \
23399 conftest$ac_exeext conftest.$ac_ext
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23408 /* pthread test headers */
23409 #include <pthread.h>
23410 #if HAVE_PTHREADS < 7
23414 #define NULL (void*)0
23417 static void *task(p)
23420 return (void *) (p == NULL);
23424 int main(argc, argv)
23429 /* pthread test function */
23430 #ifndef PTHREAD_CREATE_DETACHED
23431 #define PTHREAD_CREATE_DETACHED 1
23435 int detach = PTHREAD_CREATE_DETACHED;
23437 #if HAVE_PTHREADS > 4
23438 /* Final pthreads */
23439 pthread_attr_t attr;
23441 status = pthread_attr_init(&attr);
23442 if( status ) return status;
23444 #if HAVE_PTHREADS < 7
23445 status = pthread_attr_setdetachstate(&attr, &detach);
23446 if( status < 0 ) status = errno;
23448 status = pthread_attr_setdetachstate(&attr, detach);
23450 if( status ) return status;
23451 status = pthread_create( &t, &attr, task, NULL );
23452 #if HAVE_PTHREADS < 7
23453 if( status < 0 ) status = errno;
23455 if( status ) return status;
23457 /* Draft 4 pthreads */
23458 status = pthread_create( &t, pthread_attr_default, task, NULL );
23459 if( status ) return errno;
23461 /* give thread a chance to complete */
23462 /* it should remain joinable and hence detachable */
23465 status = pthread_detach( &t );
23466 if( status ) return errno;
23469 #ifdef HAVE_LINUX_THREADS
23470 pthread_kill_other_threads_np();
23478 rm -f conftest$ac_exeext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480 (eval $ac_link) 2>&5
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485 (eval $ac_try) 2>&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); }; }; then
23489 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23491 echo "$as_me: program exited with status $ac_status" >&5
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23495 ( exit $ac_status )
23496 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23505 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23506 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23508 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23509 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23510 ol_link_threads=posix
23514 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23515 if test "$ol_link_threads" = no ; then
23516 # try -lpthreads -lmach -lexc
23517 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23518 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23519 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23520 echo $ECHO_N "(cached) $ECHO_C" >&6
23525 LIBS="-lpthreads -lmach -lexc $LIBS"
23527 if test "$cross_compiling" = yes; then
23528 cat >conftest.$ac_ext <<_ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h. */
23535 /* pthread test headers */
23536 #include <pthread.h>
23537 #if HAVE_PTHREADS < 7
23541 #define NULL (void*)0
23544 static void *task(p)
23547 return (void *) (p == NULL);
23554 /* pthread test function */
23555 #ifndef PTHREAD_CREATE_DETACHED
23556 #define PTHREAD_CREATE_DETACHED 1
23560 int detach = PTHREAD_CREATE_DETACHED;
23562 #if HAVE_PTHREADS > 4
23563 /* Final pthreads */
23564 pthread_attr_t attr;
23566 status = pthread_attr_init(&attr);
23567 if( status ) return status;
23569 #if HAVE_PTHREADS < 7
23570 status = pthread_attr_setdetachstate(&attr, &detach);
23571 if( status < 0 ) status = errno;
23573 status = pthread_attr_setdetachstate(&attr, detach);
23575 if( status ) return status;
23576 status = pthread_create( &t, &attr, task, NULL );
23577 #if HAVE_PTHREADS < 7
23578 if( status < 0 ) status = errno;
23580 if( status ) return status;
23582 /* Draft 4 pthreads */
23583 status = pthread_create( &t, pthread_attr_default, task, NULL );
23584 if( status ) return errno;
23586 /* give thread a chance to complete */
23587 /* it should remain joinable and hence detachable */
23590 status = pthread_detach( &t );
23591 if( status ) return errno;
23594 #ifdef HAVE_LINUX_THREADS
23595 pthread_kill_other_threads_np();
23604 rm -f conftest.$ac_objext conftest$ac_exeext
23605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23606 (eval $ac_link) 2>conftest.er1
23608 grep -v '^ *+' conftest.er1 >conftest.err
23610 cat conftest.err >&5
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); } &&
23613 { ac_try='test -z "$ac_c_werror_flag"
23614 || test ! -s conftest.err'
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; } &&
23620 { ac_try='test -s conftest$ac_exeext'
23621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622 (eval $ac_try) 2>&5
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; }; then
23626 ol_cv_pthread_lpthreads_lmach_lexc=yes
23628 echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23631 ol_cv_pthread_lpthreads_lmach_lexc=no
23633 rm -f conftest.err conftest.$ac_objext \
23634 conftest$ac_exeext conftest.$ac_ext
23636 cat >conftest.$ac_ext <<_ACEOF
23639 cat confdefs.h >>conftest.$ac_ext
23640 cat >>conftest.$ac_ext <<_ACEOF
23641 /* end confdefs.h. */
23643 /* pthread test headers */
23644 #include <pthread.h>
23645 #if HAVE_PTHREADS < 7
23649 #define NULL (void*)0
23652 static void *task(p)
23655 return (void *) (p == NULL);
23659 int main(argc, argv)
23664 /* pthread test function */
23665 #ifndef PTHREAD_CREATE_DETACHED
23666 #define PTHREAD_CREATE_DETACHED 1
23670 int detach = PTHREAD_CREATE_DETACHED;
23672 #if HAVE_PTHREADS > 4
23673 /* Final pthreads */
23674 pthread_attr_t attr;
23676 status = pthread_attr_init(&attr);
23677 if( status ) return status;
23679 #if HAVE_PTHREADS < 7
23680 status = pthread_attr_setdetachstate(&attr, &detach);
23681 if( status < 0 ) status = errno;
23683 status = pthread_attr_setdetachstate(&attr, detach);
23685 if( status ) return status;
23686 status = pthread_create( &t, &attr, task, NULL );
23687 #if HAVE_PTHREADS < 7
23688 if( status < 0 ) status = errno;
23690 if( status ) return status;
23692 /* Draft 4 pthreads */
23693 status = pthread_create( &t, pthread_attr_default, task, NULL );
23694 if( status ) return errno;
23696 /* give thread a chance to complete */
23697 /* it should remain joinable and hence detachable */
23700 status = pthread_detach( &t );
23701 if( status ) return errno;
23704 #ifdef HAVE_LINUX_THREADS
23705 pthread_kill_other_threads_np();
23713 rm -f conftest$ac_exeext
23714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23715 (eval $ac_link) 2>&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23720 (eval $ac_try) 2>&5
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); }; }; then
23724 ol_cv_pthread_lpthreads_lmach_lexc=yes
23726 echo "$as_me: program exited with status $ac_status" >&5
23727 echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23730 ( exit $ac_status )
23731 ol_cv_pthread_lpthreads_lmach_lexc=no
23733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23740 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23741 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23743 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23744 ol_link_pthreads="-lpthreads -lmach -lexc"
23745 ol_link_threads=posix
23749 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23750 if test "$ol_link_threads" = no ; then
23751 # try -lpthreads -lexc
23752 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23753 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23754 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23760 LIBS="-lpthreads -lexc $LIBS"
23762 if test "$cross_compiling" = yes; then
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23770 /* pthread test headers */
23771 #include <pthread.h>
23772 #if HAVE_PTHREADS < 7
23776 #define NULL (void*)0
23779 static void *task(p)
23782 return (void *) (p == NULL);
23789 /* pthread test function */
23790 #ifndef PTHREAD_CREATE_DETACHED
23791 #define PTHREAD_CREATE_DETACHED 1
23795 int detach = PTHREAD_CREATE_DETACHED;
23797 #if HAVE_PTHREADS > 4
23798 /* Final pthreads */
23799 pthread_attr_t attr;
23801 status = pthread_attr_init(&attr);
23802 if( status ) return status;
23804 #if HAVE_PTHREADS < 7
23805 status = pthread_attr_setdetachstate(&attr, &detach);
23806 if( status < 0 ) status = errno;
23808 status = pthread_attr_setdetachstate(&attr, detach);
23810 if( status ) return status;
23811 status = pthread_create( &t, &attr, task, NULL );
23812 #if HAVE_PTHREADS < 7
23813 if( status < 0 ) status = errno;
23815 if( status ) return status;
23817 /* Draft 4 pthreads */
23818 status = pthread_create( &t, pthread_attr_default, task, NULL );
23819 if( status ) return errno;
23821 /* give thread a chance to complete */
23822 /* it should remain joinable and hence detachable */
23825 status = pthread_detach( &t );
23826 if( status ) return errno;
23829 #ifdef HAVE_LINUX_THREADS
23830 pthread_kill_other_threads_np();
23839 rm -f conftest.$ac_objext conftest$ac_exeext
23840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23841 (eval $ac_link) 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } &&
23848 { ac_try='test -z "$ac_c_werror_flag"
23849 || test ! -s conftest.err'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; } &&
23855 { ac_try='test -s conftest$ac_exeext'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 ol_cv_pthread_lpthreads_lexc=yes
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 ol_cv_pthread_lpthreads_lexc=no
23868 rm -f conftest.err conftest.$ac_objext \
23869 conftest$ac_exeext conftest.$ac_ext
23871 cat >conftest.$ac_ext <<_ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23878 /* pthread test headers */
23879 #include <pthread.h>
23880 #if HAVE_PTHREADS < 7
23884 #define NULL (void*)0
23887 static void *task(p)
23890 return (void *) (p == NULL);
23894 int main(argc, argv)
23899 /* pthread test function */
23900 #ifndef PTHREAD_CREATE_DETACHED
23901 #define PTHREAD_CREATE_DETACHED 1
23905 int detach = PTHREAD_CREATE_DETACHED;
23907 #if HAVE_PTHREADS > 4
23908 /* Final pthreads */
23909 pthread_attr_t attr;
23911 status = pthread_attr_init(&attr);
23912 if( status ) return status;
23914 #if HAVE_PTHREADS < 7
23915 status = pthread_attr_setdetachstate(&attr, &detach);
23916 if( status < 0 ) status = errno;
23918 status = pthread_attr_setdetachstate(&attr, detach);
23920 if( status ) return status;
23921 status = pthread_create( &t, &attr, task, NULL );
23922 #if HAVE_PTHREADS < 7
23923 if( status < 0 ) status = errno;
23925 if( status ) return status;
23927 /* Draft 4 pthreads */
23928 status = pthread_create( &t, pthread_attr_default, task, NULL );
23929 if( status ) return errno;
23931 /* give thread a chance to complete */
23932 /* it should remain joinable and hence detachable */
23935 status = pthread_detach( &t );
23936 if( status ) return errno;
23939 #ifdef HAVE_LINUX_THREADS
23940 pthread_kill_other_threads_np();
23948 rm -f conftest$ac_exeext
23949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23950 (eval $ac_link) 2>&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955 (eval $ac_try) 2>&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); }; }; then
23959 ol_cv_pthread_lpthreads_lexc=yes
23961 echo "$as_me: program exited with status $ac_status" >&5
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23965 ( exit $ac_status )
23966 ol_cv_pthread_lpthreads_lexc=no
23968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23975 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23976 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23978 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23979 ol_link_pthreads="-lpthreads -lexc"
23980 ol_link_threads=posix
23985 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23986 if test "$ol_link_threads" = no ; then
23988 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23989 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23990 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23991 echo $ECHO_N "(cached) $ECHO_C" >&6
23996 LIBS="-lpthreads $LIBS"
23998 if test "$cross_compiling" = yes; then
23999 cat >conftest.$ac_ext <<_ACEOF
24002 cat confdefs.h >>conftest.$ac_ext
24003 cat >>conftest.$ac_ext <<_ACEOF
24004 /* end confdefs.h. */
24006 /* pthread test headers */
24007 #include <pthread.h>
24008 #if HAVE_PTHREADS < 7
24012 #define NULL (void*)0
24015 static void *task(p)
24018 return (void *) (p == NULL);
24025 /* pthread test function */
24026 #ifndef PTHREAD_CREATE_DETACHED
24027 #define PTHREAD_CREATE_DETACHED 1
24031 int detach = PTHREAD_CREATE_DETACHED;
24033 #if HAVE_PTHREADS > 4
24034 /* Final pthreads */
24035 pthread_attr_t attr;
24037 status = pthread_attr_init(&attr);
24038 if( status ) return status;
24040 #if HAVE_PTHREADS < 7
24041 status = pthread_attr_setdetachstate(&attr, &detach);
24042 if( status < 0 ) status = errno;
24044 status = pthread_attr_setdetachstate(&attr, detach);
24046 if( status ) return status;
24047 status = pthread_create( &t, &attr, task, NULL );
24048 #if HAVE_PTHREADS < 7
24049 if( status < 0 ) status = errno;
24051 if( status ) return status;
24053 /* Draft 4 pthreads */
24054 status = pthread_create( &t, pthread_attr_default, task, NULL );
24055 if( status ) return errno;
24057 /* give thread a chance to complete */
24058 /* it should remain joinable and hence detachable */
24061 status = pthread_detach( &t );
24062 if( status ) return errno;
24065 #ifdef HAVE_LINUX_THREADS
24066 pthread_kill_other_threads_np();
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077 (eval $ac_link) 2>conftest.er1
24079 grep -v '^ *+' conftest.er1 >conftest.err
24081 cat conftest.err >&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); } &&
24084 { ac_try='test -z "$ac_c_werror_flag"
24085 || test ! -s conftest.err'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; } &&
24091 { ac_try='test -s conftest$ac_exeext'
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 ol_cv_pthread_lib_lpthreads=yes
24099 echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 ol_cv_pthread_lib_lpthreads=no
24104 rm -f conftest.err conftest.$ac_objext \
24105 conftest$ac_exeext conftest.$ac_ext
24107 cat >conftest.$ac_ext <<_ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h. */
24114 /* pthread test headers */
24115 #include <pthread.h>
24116 #if HAVE_PTHREADS < 7
24120 #define NULL (void*)0
24123 static void *task(p)
24126 return (void *) (p == NULL);
24130 int main(argc, argv)
24135 /* pthread test function */
24136 #ifndef PTHREAD_CREATE_DETACHED
24137 #define PTHREAD_CREATE_DETACHED 1
24141 int detach = PTHREAD_CREATE_DETACHED;
24143 #if HAVE_PTHREADS > 4
24144 /* Final pthreads */
24145 pthread_attr_t attr;
24147 status = pthread_attr_init(&attr);
24148 if( status ) return status;
24150 #if HAVE_PTHREADS < 7
24151 status = pthread_attr_setdetachstate(&attr, &detach);
24152 if( status < 0 ) status = errno;
24154 status = pthread_attr_setdetachstate(&attr, detach);
24156 if( status ) return status;
24157 status = pthread_create( &t, &attr, task, NULL );
24158 #if HAVE_PTHREADS < 7
24159 if( status < 0 ) status = errno;
24161 if( status ) return status;
24163 /* Draft 4 pthreads */
24164 status = pthread_create( &t, pthread_attr_default, task, NULL );
24165 if( status ) return errno;
24167 /* give thread a chance to complete */
24168 /* it should remain joinable and hence detachable */
24171 status = pthread_detach( &t );
24172 if( status ) return errno;
24175 #ifdef HAVE_LINUX_THREADS
24176 pthread_kill_other_threads_np();
24184 rm -f conftest$ac_exeext
24185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24186 (eval $ac_link) 2>&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191 (eval $ac_try) 2>&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); }; }; then
24195 ol_cv_pthread_lib_lpthreads=yes
24197 echo "$as_me: program exited with status $ac_status" >&5
24198 echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ( exit $ac_status )
24202 ol_cv_pthread_lib_lpthreads=no
24204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24211 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24212 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24214 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24215 ol_link_pthreads="-lpthreads"
24216 ol_link_threads=posix
24221 if test $ol_link_threads != no ; then
24222 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24224 save_CPPFLAGS="$CPPFLAGS"
24226 LIBS="$LTHREAD_LIBS $LIBS"
24231 for ac_func in sched_yield pthread_yield thr_yield
24233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24234 echo "$as_me:$LINENO: checking for $ac_func" >&5
24235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24236 if eval "test \"\${$as_ac_var+set}\" = set"; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24239 cat >conftest.$ac_ext <<_ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24247 #define $ac_func innocuous_$ac_func
24249 /* System header to define __stub macros and hopefully few prototypes,
24250 which can conflict with char $ac_func (); below.
24251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24252 <limits.h> exists even on freestanding compilers. */
24255 # include <limits.h>
24257 # include <assert.h>
24262 /* Override any gcc2 internal prototype to avoid an error. */
24267 /* We use char because int might match the return type of a gcc2
24268 builtin and then its argument prototype would still apply. */
24270 /* The GNU C library defines this for functions which it implements
24271 to always fail with ENOSYS. Some functions are actually named
24272 something starting with __ and the normal name is an alias. */
24273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24276 char (*f) () = $ac_func;
24285 return f != $ac_func;
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24292 (eval $ac_link) 2>conftest.er1
24294 grep -v '^ *+' conftest.er1 >conftest.err
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } &&
24299 { ac_try='test -z "$ac_c_werror_flag"
24300 || test ! -s conftest.err'
24301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302 (eval $ac_try) 2>&5
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); }; } &&
24306 { ac_try='test -s conftest$ac_exeext'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24312 eval "$as_ac_var=yes"
24314 echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24317 eval "$as_ac_var=no"
24319 rm -f conftest.err conftest.$ac_objext \
24320 conftest$ac_exeext conftest.$ac_ext
24322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24324 if test `eval echo '${'$as_ac_var'}'` = yes; then
24325 cat >>confdefs.h <<_ACEOF
24326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24333 if test $ac_cv_func_sched_yield = no &&
24334 test $ac_cv_func_pthread_yield = no &&
24335 test $ac_cv_func_thr_yield = no ; then
24336 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24337 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24338 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24339 echo $ECHO_N "(cached) $ECHO_C" >&6
24341 ac_check_lib_save_LIBS=$LIBS
24343 cat >conftest.$ac_ext <<_ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24350 /* Override any gcc2 internal prototype to avoid an error. */
24354 /* We use char because int might match the return type of a gcc2
24355 builtin and then its argument prototype would still apply. */
24356 char sched_yield ();
24365 rm -f conftest.$ac_objext conftest$ac_exeext
24366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24367 (eval $ac_link) 2>conftest.er1
24369 grep -v '^ *+' conftest.er1 >conftest.err
24371 cat conftest.err >&5
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } &&
24374 { ac_try='test -z "$ac_c_werror_flag"
24375 || test ! -s conftest.err'
24376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377 (eval $ac_try) 2>&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; } &&
24381 { ac_try='test -s conftest$ac_exeext'
24382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24383 (eval $ac_try) 2>&5
24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386 (exit $ac_status); }; }; then
24387 ac_cv_lib_rt_sched_yield=yes
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24392 ac_cv_lib_rt_sched_yield=no
24394 rm -f conftest.err conftest.$ac_objext \
24395 conftest$ac_exeext conftest.$ac_ext
24396 LIBS=$ac_check_lib_save_LIBS
24398 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24399 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24400 if test $ac_cv_lib_rt_sched_yield = yes; then
24401 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24403 cat >>confdefs.h <<\_ACEOF
24404 #define HAVE_SCHED_YIELD 1
24407 ac_cv_func_sched_yield=yes
24409 ac_cv_func_sched_yield=no
24413 if test $ac_cv_func_sched_yield = no &&
24414 test $ac_cv_func_pthread_yield = no &&
24415 test "$ac_cv_func_thr_yield" = no ; then
24416 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24417 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24421 for ac_func in pthread_kill
24423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24424 echo "$as_me:$LINENO: checking for $ac_func" >&5
24425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24426 if eval "test \"\${$as_ac_var+set}\" = set"; then
24427 echo $ECHO_N "(cached) $ECHO_C" >&6
24429 cat >conftest.$ac_ext <<_ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h. */
24435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24437 #define $ac_func innocuous_$ac_func
24439 /* System header to define __stub macros and hopefully few prototypes,
24440 which can conflict with char $ac_func (); below.
24441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24442 <limits.h> exists even on freestanding compilers. */
24445 # include <limits.h>
24447 # include <assert.h>
24452 /* Override any gcc2 internal prototype to avoid an error. */
24457 /* We use char because int might match the return type of a gcc2
24458 builtin and then its argument prototype would still apply. */
24460 /* The GNU C library defines this for functions which it implements
24461 to always fail with ENOSYS. Some functions are actually named
24462 something starting with __ and the normal name is an alias. */
24463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24466 char (*f) () = $ac_func;
24475 return f != $ac_func;
24480 rm -f conftest.$ac_objext conftest$ac_exeext
24481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24482 (eval $ac_link) 2>conftest.er1
24484 grep -v '^ *+' conftest.er1 >conftest.err
24486 cat conftest.err >&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); } &&
24489 { ac_try='test -z "$ac_c_werror_flag"
24490 || test ! -s conftest.err'
24491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24492 (eval $ac_try) 2>&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); }; } &&
24496 { ac_try='test -s conftest$ac_exeext'
24497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498 (eval $ac_try) 2>&5
24500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); }; }; then
24502 eval "$as_ac_var=yes"
24504 echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24507 eval "$as_ac_var=no"
24509 rm -f conftest.err conftest.$ac_objext \
24510 conftest$ac_exeext conftest.$ac_ext
24512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24514 if test `eval echo '${'$as_ac_var'}'` = yes; then
24515 cat >>confdefs.h <<_ACEOF
24516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24523 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24524 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
24525 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24526 echo $ECHO_N "(cached) $ECHO_C" >&6
24529 cat >conftest.$ac_ext <<_ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h. */
24536 #include <pthread.h>
24537 pthread_rwlock_t rwlock;
24542 pthread_rwlock_destroy(&rwlock);
24547 rm -f conftest.$ac_objext conftest$ac_exeext
24548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24549 (eval $ac_link) 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } &&
24556 { ac_try='test -z "$ac_c_werror_flag"
24557 || test ! -s conftest.err'
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; } &&
24563 { ac_try='test -s conftest$ac_exeext'
24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24565 (eval $ac_try) 2>&5
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
24569 ol_cv_func_pthread_rwlock_destroy=yes
24571 echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24574 ol_cv_func_pthread_rwlock_destroy=no
24576 rm -f conftest.err conftest.$ac_objext \
24577 conftest$ac_exeext conftest.$ac_ext
24580 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24581 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
24582 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24584 cat >>confdefs.h <<\_ACEOF
24585 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24590 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24591 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24592 if test "${ol_cv_func_pthread_detach+set}" = set; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24596 cat >conftest.$ac_ext <<_ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h. */
24603 #include <pthread.h>
24605 #define NULL (void*)0
24611 pthread_detach(NULL);
24616 rm -f conftest.$ac_objext conftest$ac_exeext
24617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24618 (eval $ac_link) 2>conftest.er1
24620 grep -v '^ *+' conftest.er1 >conftest.err
24622 cat conftest.err >&5
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); } &&
24625 { ac_try='test -z "$ac_c_werror_flag"
24626 || test ! -s conftest.err'
24627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24628 (eval $ac_try) 2>&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); }; } &&
24632 { ac_try='test -s conftest$ac_exeext'
24633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634 (eval $ac_try) 2>&5
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); }; }; then
24638 ol_cv_func_pthread_detach=yes
24640 echo "$as_me: failed program was:" >&5
24641 sed 's/^/| /' conftest.$ac_ext >&5
24643 ol_cv_func_pthread_detach=no
24645 rm -f conftest.err conftest.$ac_objext \
24646 conftest$ac_exeext conftest.$ac_ext
24649 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24650 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24652 if test $ol_cv_func_pthread_detach = no ; then
24653 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24654 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24655 { (exit 1); exit 1; }; }
24659 cat >>confdefs.h <<\_ACEOF
24660 #define HAVE_PTHREAD_DETACH 1
24669 pthread_setconcurrency \
24670 pthread_getconcurrency \
24671 thr_setconcurrency \
24672 thr_getconcurrency \
24675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24676 echo "$as_me:$LINENO: checking for $ac_func" >&5
24677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24678 if eval "test \"\${$as_ac_var+set}\" = set"; then
24679 echo $ECHO_N "(cached) $ECHO_C" >&6
24681 cat >conftest.$ac_ext <<_ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24689 #define $ac_func innocuous_$ac_func
24691 /* System header to define __stub macros and hopefully few prototypes,
24692 which can conflict with char $ac_func (); below.
24693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24694 <limits.h> exists even on freestanding compilers. */
24697 # include <limits.h>
24699 # include <assert.h>
24704 /* Override any gcc2 internal prototype to avoid an error. */
24709 /* We use char because int might match the return type of a gcc2
24710 builtin and then its argument prototype would still apply. */
24712 /* The GNU C library defines this for functions which it implements
24713 to always fail with ENOSYS. Some functions are actually named
24714 something starting with __ and the normal name is an alias. */
24715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24718 char (*f) () = $ac_func;
24727 return f != $ac_func;
24732 rm -f conftest.$ac_objext conftest$ac_exeext
24733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24734 (eval $ac_link) 2>conftest.er1
24736 grep -v '^ *+' conftest.er1 >conftest.err
24738 cat conftest.err >&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } &&
24741 { ac_try='test -z "$ac_c_werror_flag"
24742 || test ! -s conftest.err'
24743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24744 (eval $ac_try) 2>&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; } &&
24748 { ac_try='test -s conftest$ac_exeext'
24749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24750 (eval $ac_try) 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; }; then
24754 eval "$as_ac_var=yes"
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24759 eval "$as_ac_var=no"
24761 rm -f conftest.err conftest.$ac_objext \
24762 conftest$ac_exeext conftest.$ac_ext
24764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24766 if test `eval echo '${'$as_ac_var'}'` = yes; then
24767 cat >>confdefs.h <<_ACEOF
24768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24777 for ac_func in pthread_kill_other_threads_np
24779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24780 echo "$as_me:$LINENO: checking for $ac_func" >&5
24781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24782 if eval "test \"\${$as_ac_var+set}\" = set"; then
24783 echo $ECHO_N "(cached) $ECHO_C" >&6
24785 cat >conftest.$ac_ext <<_ACEOF
24788 cat confdefs.h >>conftest.$ac_ext
24789 cat >>conftest.$ac_ext <<_ACEOF
24790 /* end confdefs.h. */
24791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24793 #define $ac_func innocuous_$ac_func
24795 /* System header to define __stub macros and hopefully few prototypes,
24796 which can conflict with char $ac_func (); below.
24797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24798 <limits.h> exists even on freestanding compilers. */
24801 # include <limits.h>
24803 # include <assert.h>
24808 /* Override any gcc2 internal prototype to avoid an error. */
24813 /* We use char because int might match the return type of a gcc2
24814 builtin and then its argument prototype would still apply. */
24816 /* The GNU C library defines this for functions which it implements
24817 to always fail with ENOSYS. Some functions are actually named
24818 something starting with __ and the normal name is an alias. */
24819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24822 char (*f) () = $ac_func;
24831 return f != $ac_func;
24836 rm -f conftest.$ac_objext conftest$ac_exeext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24838 (eval $ac_link) 2>conftest.er1
24840 grep -v '^ *+' conftest.er1 >conftest.err
24842 cat conftest.err >&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } &&
24845 { ac_try='test -z "$ac_c_werror_flag"
24846 || test ! -s conftest.err'
24847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848 (eval $ac_try) 2>&5
24850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); }; } &&
24852 { ac_try='test -s conftest$ac_exeext'
24853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24854 (eval $ac_try) 2>&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); }; }; then
24858 eval "$as_ac_var=yes"
24860 echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24863 eval "$as_ac_var=no"
24865 rm -f conftest.err conftest.$ac_objext \
24866 conftest$ac_exeext conftest.$ac_ext
24868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24870 if test `eval echo '${'$as_ac_var'}'` = yes; then
24871 cat >>confdefs.h <<_ACEOF
24872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24878 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24879 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24880 if test "${ol_cv_sys_linux_threads+set}" = set; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24885 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24886 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24891 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24892 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24893 if test "${ol_cv_linux_threads+set}" = set; then
24894 echo $ECHO_N "(cached) $ECHO_C" >&6
24897 if test $ol_cv_header_linux_threads = yes &&
24898 test $ol_cv_sys_linux_threads = yes; then
24899 ol_cv_linux_threads=yes
24900 elif test $ol_cv_header_linux_threads = no &&
24901 test $ol_cv_sys_linux_threads = no; then
24902 ol_cv_linux_threads=no
24904 ol_cv_linux_threads=error
24908 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24909 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24912 if test $ol_cv_linux_threads = error; then
24913 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24914 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24915 { (exit 1); exit 1; }; };
24918 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24919 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24920 if test "${ol_cv_pthread_create_works+set}" = set; then
24921 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 if test "$cross_compiling" = yes; then
24925 ol_cv_pthread_create_works=yes
24927 cat >conftest.$ac_ext <<_ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24934 /* pthread test headers */
24935 #include <pthread.h>
24936 #if HAVE_PTHREADS < 7
24940 #define NULL (void*)0
24943 static void *task(p)
24946 return (void *) (p == NULL);
24950 int main(argc, argv)
24955 /* pthread test function */
24956 #ifndef PTHREAD_CREATE_DETACHED
24957 #define PTHREAD_CREATE_DETACHED 1
24961 int detach = PTHREAD_CREATE_DETACHED;
24963 #if HAVE_PTHREADS > 4
24964 /* Final pthreads */
24965 pthread_attr_t attr;
24967 status = pthread_attr_init(&attr);
24968 if( status ) return status;
24970 #if HAVE_PTHREADS < 7
24971 status = pthread_attr_setdetachstate(&attr, &detach);
24972 if( status < 0 ) status = errno;
24974 status = pthread_attr_setdetachstate(&attr, detach);
24976 if( status ) return status;
24977 status = pthread_create( &t, &attr, task, NULL );
24978 #if HAVE_PTHREADS < 7
24979 if( status < 0 ) status = errno;
24981 if( status ) return status;
24983 /* Draft 4 pthreads */
24984 status = pthread_create( &t, pthread_attr_default, task, NULL );
24985 if( status ) return errno;
24987 /* give thread a chance to complete */
24988 /* it should remain joinable and hence detachable */
24991 status = pthread_detach( &t );
24992 if( status ) return errno;
24995 #ifdef HAVE_LINUX_THREADS
24996 pthread_kill_other_threads_np();
25004 rm -f conftest$ac_exeext
25005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25006 (eval $ac_link) 2>&5
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011 (eval $ac_try) 2>&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; }; then
25015 ol_cv_pthread_create_works=yes
25017 echo "$as_me: program exited with status $ac_status" >&5
25018 echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25021 ( exit $ac_status )
25022 ol_cv_pthread_create_works=no
25024 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25027 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25028 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25030 if test $ol_cv_pthread_create_works = no ; then
25031 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25032 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25033 { (exit 1); exit 1; }; }
25036 ol_replace_broken_yield=no
25038 if test $ol_replace_broken_yield = yes ; then
25040 cat >>confdefs.h <<\_ACEOF
25041 #define REPLACE_BROKEN_YIELD 1
25046 if test $ol_with_yielding_select = auto ; then
25047 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25048 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25049 if test "${ol_cv_pthread_select_yields+set}" = set; then
25050 echo $ECHO_N "(cached) $ECHO_C" >&6
25053 if test "$cross_compiling" = yes; then
25054 ol_cv_pthread_select_yields=cross
25056 cat >conftest.$ac_ext <<_ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25063 #include <sys/types.h>
25064 #include <sys/time.h>
25065 #include <unistd.h>
25066 #include <pthread.h>
25068 #define NULL (void*) 0
25071 static int fildes[2];
25073 static void *task(p)
25085 FD_SET(fildes[0], &rfds);
25087 /* we're not interested in any fds */
25088 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25095 exit(0); /* if we exit here, the select blocked the whole process */
25098 int main(argc, argv)
25104 /* create a pipe to select */
25105 if(pipe(&fildes[0])) {
25110 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25111 (void) pthread_setconcurrency(2);
25113 #ifdef HAVE_THR_SETCONCURRENCY
25114 /* Set Solaris LWP concurrency to 2 */
25115 thr_setconcurrency(2);
25119 #if HAVE_PTHREADS < 6
25120 pthread_create(&t, pthread_attr_default, task, NULL);
25122 pthread_create(&t, NULL, task, NULL);
25125 /* make sure task runs first */
25126 #ifdef HAVE_THR_YIELD
25128 #elif defined( HAVE_SCHED_YIELD )
25130 #elif defined( HAVE_PTHREAD_YIELD )
25137 rm -f conftest$ac_exeext
25138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25139 (eval $ac_link) 2>&5
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144 (eval $ac_try) 2>&5
25146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147 (exit $ac_status); }; }; then
25148 ol_cv_pthread_select_yields=no
25150 echo "$as_me: program exited with status $ac_status" >&5
25151 echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25154 ( exit $ac_status )
25155 ol_cv_pthread_select_yields=yes
25157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25160 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25161 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25163 if test $ol_cv_pthread_select_yields = cross ; then
25164 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25165 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25166 { (exit 1); exit 1; }; }
25169 if test $ol_cv_pthread_select_yields = yes ; then
25170 ol_with_yielding_select=yes
25174 CPPFLAGS="$save_CPPFLAGS"
25177 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25178 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25179 { (exit 1); exit 1; }; }
25183 if test $ol_with_threads = posix ; then
25184 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25185 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25186 { (exit 1); exit 1; }; }
25191 case $ol_with_threads in auto | yes | mach)
25195 for ac_header in mach/cthreads.h cthreads.h
25197 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25199 echo "$as_me:$LINENO: checking for $ac_header" >&5
25200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25207 # Is the header compilable?
25208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25210 cat >conftest.$ac_ext <<_ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h. */
25216 $ac_includes_default
25217 #include <$ac_header>
25219 rm -f conftest.$ac_objext
25220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25221 (eval $ac_compile) 2>conftest.er1
25223 grep -v '^ *+' conftest.er1 >conftest.err
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } &&
25228 { ac_try='test -z "$ac_c_werror_flag"
25229 || test ! -s conftest.err'
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; } &&
25235 { ac_try='test -s conftest.$ac_objext'
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; }; then
25241 ac_header_compiler=yes
25243 echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25246 ac_header_compiler=no
25248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25250 echo "${ECHO_T}$ac_header_compiler" >&6
25252 # Is the header present?
25253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25255 cat >conftest.$ac_ext <<_ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h. */
25261 #include <$ac_header>
25263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25266 grep -v '^ *+' conftest.er1 >conftest.err
25268 cat conftest.err >&5
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); } >/dev/null; then
25271 if test -s conftest.err; then
25272 ac_cpp_err=$ac_c_preproc_warn_flag
25273 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25280 if test -z "$ac_cpp_err"; then
25281 ac_header_preproc=yes
25283 echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25286 ac_header_preproc=no
25288 rm -f conftest.err conftest.$ac_ext
25289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25290 echo "${ECHO_T}$ac_header_preproc" >&6
25292 # So? What about this header?
25293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25299 ac_header_preproc=yes
25302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25316 ## --------------------------------------------- ##
25317 ## Report this to <http://www.openldap.org/its/> ##
25318 ## --------------------------------------------- ##
25321 sed "s/^/$as_me: WARNING: /" >&2
25324 echo "$as_me:$LINENO: checking for $ac_header" >&5
25325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25329 eval "$as_ac_Header=\$ac_header_preproc"
25331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25336 cat >>confdefs.h <<_ACEOF
25337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25344 if test $ac_cv_header_mach_cthreads_h = yes ; then
25345 ol_with_threads=found
25347 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25348 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25349 if test "${ac_cv_func_cthread_fork+set}" = set; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
25352 cat >conftest.$ac_ext <<_ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25360 #define cthread_fork innocuous_cthread_fork
25362 /* System header to define __stub macros and hopefully few prototypes,
25363 which can conflict with char cthread_fork (); below.
25364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25365 <limits.h> exists even on freestanding compilers. */
25368 # include <limits.h>
25370 # include <assert.h>
25373 #undef cthread_fork
25375 /* Override any gcc2 internal prototype to avoid an error. */
25380 /* We use char because int might match the return type of a gcc2
25381 builtin and then its argument prototype would still apply. */
25382 char cthread_fork ();
25383 /* The GNU C library defines this for functions which it implements
25384 to always fail with ENOSYS. Some functions are actually named
25385 something starting with __ and the normal name is an alias. */
25386 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25389 char (*f) () = cthread_fork;
25398 return f != cthread_fork;
25403 rm -f conftest.$ac_objext conftest$ac_exeext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25405 (eval $ac_link) 2>conftest.er1
25407 grep -v '^ *+' conftest.er1 >conftest.err
25409 cat conftest.err >&5
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); } &&
25412 { ac_try='test -z "$ac_c_werror_flag"
25413 || test ! -s conftest.err'
25414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415 (eval $ac_try) 2>&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); }; } &&
25419 { ac_try='test -s conftest$ac_exeext'
25420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421 (eval $ac_try) 2>&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); }; }; then
25425 ac_cv_func_cthread_fork=yes
25427 echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25430 ac_cv_func_cthread_fork=no
25432 rm -f conftest.err conftest.$ac_objext \
25433 conftest$ac_exeext conftest.$ac_ext
25435 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25436 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25437 if test $ac_cv_func_cthread_fork = yes; then
25438 ol_link_threads=yes
25442 if test $ol_link_threads = no ; then
25443 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25444 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25445 if test "${ol_cv_cthread_all_load+set}" = set; then
25446 echo $ECHO_N "(cached) $ECHO_C" >&6
25450 LIBS="-all_load $LIBS"
25451 cat >conftest.$ac_ext <<_ACEOF
25454 cat confdefs.h >>conftest.$ac_ext
25455 cat >>conftest.$ac_ext <<_ACEOF
25456 /* end confdefs.h. */
25457 #include <mach/cthreads.h>
25462 cthread_fork((void *)0, (void *)0);
25468 rm -f conftest.$ac_objext conftest$ac_exeext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25470 (eval $ac_link) 2>conftest.er1
25472 grep -v '^ *+' conftest.er1 >conftest.err
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } &&
25477 { ac_try='test -z "$ac_c_werror_flag"
25478 || test ! -s conftest.err'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; } &&
25484 { ac_try='test -s conftest$ac_exeext'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; }; then
25490 ol_cv_cthread_all_load=yes
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 ol_cv_cthread_all_load=no
25497 rm -f conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
25502 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25503 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25505 if test $ol_cv_cthread_all_load = yes ; then
25506 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25507 ol_link_threads=mach
25508 ol_with_threads=found
25512 elif test $ac_cv_header_cthreads_h = yes ; then
25514 ol_with_threads=found
25517 LIBS="$LIBS -lthreads"
25518 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25519 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25520 if test "${ac_cv_func_cthread_fork+set}" = set; then
25521 echo $ECHO_N "(cached) $ECHO_C" >&6
25523 cat >conftest.$ac_ext <<_ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h. */
25529 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25531 #define cthread_fork innocuous_cthread_fork
25533 /* System header to define __stub macros and hopefully few prototypes,
25534 which can conflict with char cthread_fork (); below.
25535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25536 <limits.h> exists even on freestanding compilers. */
25539 # include <limits.h>
25541 # include <assert.h>
25544 #undef cthread_fork
25546 /* Override any gcc2 internal prototype to avoid an error. */
25551 /* We use char because int might match the return type of a gcc2
25552 builtin and then its argument prototype would still apply. */
25553 char cthread_fork ();
25554 /* The GNU C library defines this for functions which it implements
25555 to always fail with ENOSYS. Some functions are actually named
25556 something starting with __ and the normal name is an alias. */
25557 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25560 char (*f) () = cthread_fork;
25569 return f != cthread_fork;
25574 rm -f conftest.$ac_objext conftest$ac_exeext
25575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25576 (eval $ac_link) 2>conftest.er1
25578 grep -v '^ *+' conftest.er1 >conftest.err
25580 cat conftest.err >&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } &&
25583 { ac_try='test -z "$ac_c_werror_flag"
25584 || test ! -s conftest.err'
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; } &&
25590 { ac_try='test -s conftest$ac_exeext'
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; }; then
25596 ac_cv_func_cthread_fork=yes
25598 echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25601 ac_cv_func_cthread_fork=no
25603 rm -f conftest.err conftest.$ac_objext \
25604 conftest$ac_exeext conftest.$ac_ext
25606 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25607 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25608 if test $ac_cv_func_cthread_fork = yes; then
25609 ol_link_threads=yes
25614 if test $ol_link_threads = yes ; then
25615 LTHREAD_LIBS="-lthreads"
25616 ol_link_threads=mach
25617 ol_with_threads=found
25619 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25620 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25621 { (exit 1); exit 1; }; }
25624 elif test $ol_with_threads = mach ; then
25625 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25626 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25627 { (exit 1); exit 1; }; }
25630 if test $ol_link_threads = mach ; then
25632 cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_MACH_CTHREADS 1
25636 elif test $ol_with_threads = found ; then
25637 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25638 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25639 { (exit 1); exit 1; }; }
25644 case $ol_with_threads in auto | yes | pth)
25647 for ac_header in pth.h
25649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25651 echo "$as_me:$LINENO: checking for $ac_header" >&5
25652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25654 echo $ECHO_N "(cached) $ECHO_C" >&6
25656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25659 # Is the header compilable?
25660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25662 cat >conftest.$ac_ext <<_ACEOF
25665 cat confdefs.h >>conftest.$ac_ext
25666 cat >>conftest.$ac_ext <<_ACEOF
25667 /* end confdefs.h. */
25668 $ac_includes_default
25669 #include <$ac_header>
25671 rm -f conftest.$ac_objext
25672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25673 (eval $ac_compile) 2>conftest.er1
25675 grep -v '^ *+' conftest.er1 >conftest.err
25677 cat conftest.err >&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } &&
25680 { ac_try='test -z "$ac_c_werror_flag"
25681 || test ! -s conftest.err'
25682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683 (eval $ac_try) 2>&5
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); }; } &&
25687 { ac_try='test -s conftest.$ac_objext'
25688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689 (eval $ac_try) 2>&5
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); }; }; then
25693 ac_header_compiler=yes
25695 echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25698 ac_header_compiler=no
25700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25702 echo "${ECHO_T}$ac_header_compiler" >&6
25704 # Is the header present?
25705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25707 cat >conftest.$ac_ext <<_ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h. */
25713 #include <$ac_header>
25715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25718 grep -v '^ *+' conftest.er1 >conftest.err
25720 cat conftest.err >&5
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } >/dev/null; then
25723 if test -s conftest.err; then
25724 ac_cpp_err=$ac_c_preproc_warn_flag
25725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25732 if test -z "$ac_cpp_err"; then
25733 ac_header_preproc=yes
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25738 ac_header_preproc=no
25740 rm -f conftest.err conftest.$ac_ext
25741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25742 echo "${ECHO_T}$ac_header_preproc" >&6
25744 # So? What about this header?
25745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25751 ac_header_preproc=yes
25754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25768 ## --------------------------------------------- ##
25769 ## Report this to <http://www.openldap.org/its/> ##
25770 ## --------------------------------------------- ##
25773 sed "s/^/$as_me: WARNING: /" >&2
25776 echo "$as_me:$LINENO: checking for $ac_header" >&5
25777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25779 echo $ECHO_N "(cached) $ECHO_C" >&6
25781 eval "$as_ac_Header=\$ac_header_preproc"
25783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25788 cat >>confdefs.h <<_ACEOF
25789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25797 if test $ac_cv_header_pth_h = yes ; then
25798 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25799 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25800 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25801 echo $ECHO_N "(cached) $ECHO_C" >&6
25803 ac_check_lib_save_LIBS=$LIBS
25805 cat >conftest.$ac_ext <<_ACEOF
25808 cat confdefs.h >>conftest.$ac_ext
25809 cat >>conftest.$ac_ext <<_ACEOF
25810 /* end confdefs.h. */
25812 /* Override any gcc2 internal prototype to avoid an error. */
25816 /* We use char because int might match the return type of a gcc2
25817 builtin and then its argument prototype would still apply. */
25818 char pth_version ();
25827 rm -f conftest.$ac_objext conftest$ac_exeext
25828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25829 (eval $ac_link) 2>conftest.er1
25831 grep -v '^ *+' conftest.er1 >conftest.err
25833 cat conftest.err >&5
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); } &&
25836 { ac_try='test -z "$ac_c_werror_flag"
25837 || test ! -s conftest.err'
25838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25839 (eval $ac_try) 2>&5
25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); }; } &&
25843 { ac_try='test -s conftest$ac_exeext'
25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; }; then
25849 ac_cv_lib_pth_pth_version=yes
25851 echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25854 ac_cv_lib_pth_pth_version=no
25856 rm -f conftest.err conftest.$ac_objext \
25857 conftest$ac_exeext conftest.$ac_ext
25858 LIBS=$ac_check_lib_save_LIBS
25860 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25861 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25862 if test $ac_cv_lib_pth_pth_version = yes; then
25869 if test $have_pth = yes ; then
25871 cat >>confdefs.h <<\_ACEOF
25872 #define HAVE_GNU_PTH 1
25875 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25876 ol_link_threads=pth
25877 ol_with_threads=found
25879 if test $ol_with_yielding_select = auto ; then
25880 ol_with_yielding_select=yes
25887 case $ol_with_threads in auto | yes | lwp)
25891 for ac_header in thread.h synch.h
25893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25895 echo "$as_me:$LINENO: checking for $ac_header" >&5
25896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25898 echo $ECHO_N "(cached) $ECHO_C" >&6
25900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25903 # Is the header compilable?
25904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 $ac_includes_default
25913 #include <$ac_header>
25915 rm -f conftest.$ac_objext
25916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25917 (eval $ac_compile) 2>conftest.er1
25919 grep -v '^ *+' conftest.er1 >conftest.err
25921 cat conftest.err >&5
25922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); } &&
25924 { ac_try='test -z "$ac_c_werror_flag"
25925 || test ! -s conftest.err'
25926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927 (eval $ac_try) 2>&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); }; } &&
25931 { ac_try='test -s conftest.$ac_objext'
25932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25933 (eval $ac_try) 2>&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); }; }; then
25937 ac_header_compiler=yes
25939 echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25942 ac_header_compiler=no
25944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25946 echo "${ECHO_T}$ac_header_compiler" >&6
25948 # Is the header present?
25949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25951 cat >conftest.$ac_ext <<_ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h. */
25957 #include <$ac_header>
25959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25962 grep -v '^ *+' conftest.er1 >conftest.err
25964 cat conftest.err >&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); } >/dev/null; then
25967 if test -s conftest.err; then
25968 ac_cpp_err=$ac_c_preproc_warn_flag
25969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25976 if test -z "$ac_cpp_err"; then
25977 ac_header_preproc=yes
25979 echo "$as_me: failed program was:" >&5
25980 sed 's/^/| /' conftest.$ac_ext >&5
25982 ac_header_preproc=no
25984 rm -f conftest.err conftest.$ac_ext
25985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25986 echo "${ECHO_T}$ac_header_preproc" >&6
25988 # So? What about this header?
25989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25995 ac_header_preproc=yes
25998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26012 ## --------------------------------------------- ##
26013 ## Report this to <http://www.openldap.org/its/> ##
26014 ## --------------------------------------------- ##
26017 sed "s/^/$as_me: WARNING: /" >&2
26020 echo "$as_me:$LINENO: checking for $ac_header" >&5
26021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26023 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 eval "$as_ac_Header=\$ac_header_preproc"
26027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26032 cat >>confdefs.h <<_ACEOF
26033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26040 if test $ac_cv_header_thread_h = yes &&
26041 test $ac_cv_header_synch_h = yes ; then
26042 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26043 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26044 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26045 echo $ECHO_N "(cached) $ECHO_C" >&6
26047 ac_check_lib_save_LIBS=$LIBS
26048 LIBS="-lthread $LIBS"
26049 cat >conftest.$ac_ext <<_ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
26054 /* end confdefs.h. */
26056 /* Override any gcc2 internal prototype to avoid an error. */
26060 /* We use char because int might match the return type of a gcc2
26061 builtin and then its argument prototype would still apply. */
26062 char thr_create ();
26071 rm -f conftest.$ac_objext conftest$ac_exeext
26072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26073 (eval $ac_link) 2>conftest.er1
26075 grep -v '^ *+' conftest.er1 >conftest.err
26077 cat conftest.err >&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
26080 { ac_try='test -z "$ac_c_werror_flag"
26081 || test ! -s conftest.err'
26082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083 (eval $ac_try) 2>&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; } &&
26087 { ac_try='test -s conftest$ac_exeext'
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; }; then
26093 ac_cv_lib_thread_thr_create=yes
26095 echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26098 ac_cv_lib_thread_thr_create=no
26100 rm -f conftest.err conftest.$ac_objext \
26101 conftest$ac_exeext conftest.$ac_ext
26102 LIBS=$ac_check_lib_save_LIBS
26104 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26105 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26106 if test $ac_cv_lib_thread_thr_create = yes; then
26113 if test $have_thr = yes ; then
26115 cat >>confdefs.h <<\_ACEOF
26119 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26120 ol_link_threads=thr
26122 if test $ol_with_yielding_select = auto ; then
26123 ol_with_yielding_select=yes
26129 thr_setconcurrency \
26130 thr_getconcurrency \
26133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26134 echo "$as_me:$LINENO: checking for $ac_func" >&5
26135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26136 if eval "test \"\${$as_ac_var+set}\" = set"; then
26137 echo $ECHO_N "(cached) $ECHO_C" >&6
26139 cat >conftest.$ac_ext <<_ACEOF
26142 cat confdefs.h >>conftest.$ac_ext
26143 cat >>conftest.$ac_ext <<_ACEOF
26144 /* end confdefs.h. */
26145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26147 #define $ac_func innocuous_$ac_func
26149 /* System header to define __stub macros and hopefully few prototypes,
26150 which can conflict with char $ac_func (); below.
26151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26152 <limits.h> exists even on freestanding compilers. */
26155 # include <limits.h>
26157 # include <assert.h>
26162 /* Override any gcc2 internal prototype to avoid an error. */
26167 /* We use char because int might match the return type of a gcc2
26168 builtin and then its argument prototype would still apply. */
26170 /* The GNU C library defines this for functions which it implements
26171 to always fail with ENOSYS. Some functions are actually named
26172 something starting with __ and the normal name is an alias. */
26173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26176 char (*f) () = $ac_func;
26185 return f != $ac_func;
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26192 (eval $ac_link) 2>conftest.er1
26194 grep -v '^ *+' conftest.er1 >conftest.err
26196 cat conftest.err >&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } &&
26199 { ac_try='test -z "$ac_c_werror_flag"
26200 || test ! -s conftest.err'
26201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26202 (eval $ac_try) 2>&5
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); }; } &&
26206 { ac_try='test -s conftest$ac_exeext'
26207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208 (eval $ac_try) 2>&5
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; }; then
26212 eval "$as_ac_var=yes"
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26217 eval "$as_ac_var=no"
26219 rm -f conftest.err conftest.$ac_objext \
26220 conftest$ac_exeext conftest.$ac_ext
26222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26224 if test `eval echo '${'$as_ac_var'}'` = yes; then
26225 cat >>confdefs.h <<_ACEOF
26226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26236 for ac_header in lwp/lwp.h
26238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26240 echo "$as_me:$LINENO: checking for $ac_header" >&5
26241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26248 # Is the header compilable?
26249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26251 cat >conftest.$ac_ext <<_ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 $ac_includes_default
26258 #include <$ac_header>
26260 rm -f conftest.$ac_objext
26261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26262 (eval $ac_compile) 2>conftest.er1
26264 grep -v '^ *+' conftest.er1 >conftest.err
26266 cat conftest.err >&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); } &&
26269 { ac_try='test -z "$ac_c_werror_flag"
26270 || test ! -s conftest.err'
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; } &&
26276 { ac_try='test -s conftest.$ac_objext'
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; }; then
26282 ac_header_compiler=yes
26284 echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 ac_header_compiler=no
26289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26291 echo "${ECHO_T}$ac_header_compiler" >&6
26293 # Is the header present?
26294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 #include <$ac_header>
26304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26307 grep -v '^ *+' conftest.er1 >conftest.err
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } >/dev/null; then
26312 if test -s conftest.err; then
26313 ac_cpp_err=$ac_c_preproc_warn_flag
26314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26321 if test -z "$ac_cpp_err"; then
26322 ac_header_preproc=yes
26324 echo "$as_me: failed program was:" >&5
26325 sed 's/^/| /' conftest.$ac_ext >&5
26327 ac_header_preproc=no
26329 rm -f conftest.err conftest.$ac_ext
26330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26331 echo "${ECHO_T}$ac_header_preproc" >&6
26333 # So? What about this header?
26334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26340 ac_header_preproc=yes
26343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26357 ## --------------------------------------------- ##
26358 ## Report this to <http://www.openldap.org/its/> ##
26359 ## --------------------------------------------- ##
26362 sed "s/^/$as_me: WARNING: /" >&2
26365 echo "$as_me:$LINENO: checking for $ac_header" >&5
26366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26368 echo $ECHO_N "(cached) $ECHO_C" >&6
26370 eval "$as_ac_Header=\$ac_header_preproc"
26372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26377 cat >>confdefs.h <<_ACEOF
26378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26385 if test $ac_cv_header_lwp_lwp_h = yes ; then
26386 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26387 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26388 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26389 echo $ECHO_N "(cached) $ECHO_C" >&6
26391 ac_check_lib_save_LIBS=$LIBS
26393 cat >conftest.$ac_ext <<_ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26400 /* Override any gcc2 internal prototype to avoid an error. */
26404 /* We use char because int might match the return type of a gcc2
26405 builtin and then its argument prototype would still apply. */
26406 char lwp_create ();
26415 rm -f conftest.$ac_objext conftest$ac_exeext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26417 (eval $ac_link) 2>conftest.er1
26419 grep -v '^ *+' conftest.er1 >conftest.err
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } &&
26424 { ac_try='test -z "$ac_c_werror_flag"
26425 || test ! -s conftest.err'
26426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427 (eval $ac_try) 2>&5
26429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430 (exit $ac_status); }; } &&
26431 { ac_try='test -s conftest$ac_exeext'
26432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433 (eval $ac_try) 2>&5
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); }; }; then
26437 ac_cv_lib_lwp_lwp_create=yes
26439 echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_cv_lib_lwp_lwp_create=no
26444 rm -f conftest.err conftest.$ac_objext \
26445 conftest$ac_exeext conftest.$ac_ext
26446 LIBS=$ac_check_lib_save_LIBS
26448 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26449 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26450 if test $ac_cv_lib_lwp_lwp_create = yes; then
26457 if test $have_lwp = yes ; then
26459 cat >>confdefs.h <<\_ACEOF
26463 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26464 ol_link_threads=lwp
26466 if test $ol_with_yielding_select = auto ; then
26467 ol_with_yielding_select=no
26474 if test $ol_with_yielding_select = yes ; then
26476 cat >>confdefs.h <<\_ACEOF
26477 #define HAVE_YIELDING_SELECT 1
26482 if test $ol_with_threads = manual ; then
26483 ol_link_threads=yes
26485 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26486 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26490 for ac_header in pthread.h sched.h
26492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26494 echo "$as_me:$LINENO: checking for $ac_header" >&5
26495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26497 echo $ECHO_N "(cached) $ECHO_C" >&6
26499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26502 # Is the header compilable?
26503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26505 cat >conftest.$ac_ext <<_ACEOF
26508 cat confdefs.h >>conftest.$ac_ext
26509 cat >>conftest.$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 $ac_includes_default
26512 #include <$ac_header>
26514 rm -f conftest.$ac_objext
26515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26516 (eval $ac_compile) 2>conftest.er1
26518 grep -v '^ *+' conftest.er1 >conftest.err
26520 cat conftest.err >&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } &&
26523 { ac_try='test -z "$ac_c_werror_flag"
26524 || test ! -s conftest.err'
26525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26526 (eval $ac_try) 2>&5
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); }; } &&
26530 { ac_try='test -s conftest.$ac_objext'
26531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26532 (eval $ac_try) 2>&5
26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); }; }; then
26536 ac_header_compiler=yes
26538 echo "$as_me: failed program was:" >&5
26539 sed 's/^/| /' conftest.$ac_ext >&5
26541 ac_header_compiler=no
26543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26545 echo "${ECHO_T}$ac_header_compiler" >&6
26547 # Is the header present?
26548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26550 cat >conftest.$ac_ext <<_ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h. */
26556 #include <$ac_header>
26558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26561 grep -v '^ *+' conftest.er1 >conftest.err
26563 cat conftest.err >&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); } >/dev/null; then
26566 if test -s conftest.err; then
26567 ac_cpp_err=$ac_c_preproc_warn_flag
26568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26575 if test -z "$ac_cpp_err"; then
26576 ac_header_preproc=yes
26578 echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26581 ac_header_preproc=no
26583 rm -f conftest.err conftest.$ac_ext
26584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26585 echo "${ECHO_T}$ac_header_preproc" >&6
26587 # So? What about this header?
26588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26594 ac_header_preproc=yes
26597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26611 ## --------------------------------------------- ##
26612 ## Report this to <http://www.openldap.org/its/> ##
26613 ## --------------------------------------------- ##
26616 sed "s/^/$as_me: WARNING: /" >&2
26619 echo "$as_me:$LINENO: checking for $ac_header" >&5
26620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26622 echo $ECHO_N "(cached) $ECHO_C" >&6
26624 eval "$as_ac_Header=\$ac_header_preproc"
26626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26631 cat >>confdefs.h <<_ACEOF
26632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26641 for ac_func in sched_yield pthread_yield
26643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26644 echo "$as_me:$LINENO: checking for $ac_func" >&5
26645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26646 if eval "test \"\${$as_ac_var+set}\" = set"; then
26647 echo $ECHO_N "(cached) $ECHO_C" >&6
26649 cat >conftest.$ac_ext <<_ACEOF
26652 cat confdefs.h >>conftest.$ac_ext
26653 cat >>conftest.$ac_ext <<_ACEOF
26654 /* end confdefs.h. */
26655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26657 #define $ac_func innocuous_$ac_func
26659 /* System header to define __stub macros and hopefully few prototypes,
26660 which can conflict with char $ac_func (); below.
26661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26662 <limits.h> exists even on freestanding compilers. */
26665 # include <limits.h>
26667 # include <assert.h>
26672 /* Override any gcc2 internal prototype to avoid an error. */
26677 /* We use char because int might match the return type of a gcc2
26678 builtin and then its argument prototype would still apply. */
26680 /* The GNU C library defines this for functions which it implements
26681 to always fail with ENOSYS. Some functions are actually named
26682 something starting with __ and the normal name is an alias. */
26683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26686 char (*f) () = $ac_func;
26695 return f != $ac_func;
26700 rm -f conftest.$ac_objext conftest$ac_exeext
26701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26702 (eval $ac_link) 2>conftest.er1
26704 grep -v '^ *+' conftest.er1 >conftest.err
26706 cat conftest.err >&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } &&
26709 { ac_try='test -z "$ac_c_werror_flag"
26710 || test ! -s conftest.err'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; } &&
26716 { ac_try='test -s conftest$ac_exeext'
26717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; }; then
26722 eval "$as_ac_var=yes"
26724 echo "$as_me: failed program was:" >&5
26725 sed 's/^/| /' conftest.$ac_ext >&5
26727 eval "$as_ac_var=no"
26729 rm -f conftest.err conftest.$ac_objext \
26730 conftest$ac_exeext conftest.$ac_ext
26732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26734 if test `eval echo '${'$as_ac_var'}'` = yes; then
26735 cat >>confdefs.h <<_ACEOF
26736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26743 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26744 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26745 if test "${ol_cv_header_linux_threads+set}" = set; then
26746 echo $ECHO_N "(cached) $ECHO_C" >&6
26748 cat >conftest.$ac_ext <<_ACEOF
26751 cat confdefs.h >>conftest.$ac_ext
26752 cat >>conftest.$ac_ext <<_ACEOF
26753 /* end confdefs.h. */
26754 #include <pthread.h>
26756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26757 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26758 ol_cv_header_linux_threads=yes
26760 ol_cv_header_linux_threads=no
26766 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26767 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26768 if test $ol_cv_header_linux_threads = yes; then
26770 cat >>confdefs.h <<\_ACEOF
26771 #define HAVE_LINUX_THREADS 1
26778 for ac_header in mach/cthreads.h
26780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26782 echo "$as_me:$LINENO: checking for $ac_header" >&5
26783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26790 # Is the header compilable?
26791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26793 cat >conftest.$ac_ext <<_ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h. */
26799 $ac_includes_default
26800 #include <$ac_header>
26802 rm -f conftest.$ac_objext
26803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26804 (eval $ac_compile) 2>conftest.er1
26806 grep -v '^ *+' conftest.er1 >conftest.err
26808 cat conftest.err >&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
26811 { ac_try='test -z "$ac_c_werror_flag"
26812 || test ! -s conftest.err'
26813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814 (eval $ac_try) 2>&5
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); }; } &&
26818 { ac_try='test -s conftest.$ac_objext'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
26824 ac_header_compiler=yes
26826 echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26829 ac_header_compiler=no
26831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26833 echo "${ECHO_T}$ac_header_compiler" >&6
26835 # Is the header present?
26836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26838 cat >conftest.$ac_ext <<_ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26844 #include <$ac_header>
26846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } >/dev/null; then
26854 if test -s conftest.err; then
26855 ac_cpp_err=$ac_c_preproc_warn_flag
26856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26863 if test -z "$ac_cpp_err"; then
26864 ac_header_preproc=yes
26866 echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26869 ac_header_preproc=no
26871 rm -f conftest.err conftest.$ac_ext
26872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26873 echo "${ECHO_T}$ac_header_preproc" >&6
26875 # So? What about this header?
26876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26882 ac_header_preproc=yes
26885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26899 ## --------------------------------------------- ##
26900 ## Report this to <http://www.openldap.org/its/> ##
26901 ## --------------------------------------------- ##
26904 sed "s/^/$as_me: WARNING: /" >&2
26907 echo "$as_me:$LINENO: checking for $ac_header" >&5
26908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26910 echo $ECHO_N "(cached) $ECHO_C" >&6
26912 eval "$as_ac_Header=\$ac_header_preproc"
26914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26919 cat >>confdefs.h <<_ACEOF
26920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26928 for ac_header in lwp/lwp.h
26930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26932 echo "$as_me:$LINENO: checking for $ac_header" >&5
26933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26935 echo $ECHO_N "(cached) $ECHO_C" >&6
26937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26940 # Is the header compilable?
26941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26943 cat >conftest.$ac_ext <<_ACEOF
26946 cat confdefs.h >>conftest.$ac_ext
26947 cat >>conftest.$ac_ext <<_ACEOF
26948 /* end confdefs.h. */
26949 $ac_includes_default
26950 #include <$ac_header>
26952 rm -f conftest.$ac_objext
26953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26954 (eval $ac_compile) 2>conftest.er1
26956 grep -v '^ *+' conftest.er1 >conftest.err
26958 cat conftest.err >&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); } &&
26961 { ac_try='test -z "$ac_c_werror_flag"
26962 || test ! -s conftest.err'
26963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964 (eval $ac_try) 2>&5
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); }; } &&
26968 { ac_try='test -s conftest.$ac_objext'
26969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970 (eval $ac_try) 2>&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; }; then
26974 ac_header_compiler=yes
26976 echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26979 ac_header_compiler=no
26981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26983 echo "${ECHO_T}$ac_header_compiler" >&6
26985 # Is the header present?
26986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26988 cat >conftest.$ac_ext <<_ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h. */
26994 #include <$ac_header>
26996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26999 grep -v '^ *+' conftest.er1 >conftest.err
27001 cat conftest.err >&5
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); } >/dev/null; then
27004 if test -s conftest.err; then
27005 ac_cpp_err=$ac_c_preproc_warn_flag
27006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27013 if test -z "$ac_cpp_err"; then
27014 ac_header_preproc=yes
27016 echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.$ac_ext >&5
27019 ac_header_preproc=no
27021 rm -f conftest.err conftest.$ac_ext
27022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27023 echo "${ECHO_T}$ac_header_preproc" >&6
27025 # So? What about this header?
27026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27032 ac_header_preproc=yes
27035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27049 ## --------------------------------------------- ##
27050 ## Report this to <http://www.openldap.org/its/> ##
27051 ## --------------------------------------------- ##
27054 sed "s/^/$as_me: WARNING: /" >&2
27057 echo "$as_me:$LINENO: checking for $ac_header" >&5
27058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27060 echo $ECHO_N "(cached) $ECHO_C" >&6
27062 eval "$as_ac_Header=\$ac_header_preproc"
27064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27069 cat >>confdefs.h <<_ACEOF
27070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27079 for ac_header in thread.h synch.h
27081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27083 echo "$as_me:$LINENO: checking for $ac_header" >&5
27084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27091 # Is the header compilable?
27092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27094 cat >conftest.$ac_ext <<_ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27100 $ac_includes_default
27101 #include <$ac_header>
27103 rm -f conftest.$ac_objext
27104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27105 (eval $ac_compile) 2>conftest.er1
27107 grep -v '^ *+' conftest.er1 >conftest.err
27109 cat conftest.err >&5
27110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); } &&
27112 { ac_try='test -z "$ac_c_werror_flag"
27113 || test ! -s conftest.err'
27114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115 (eval $ac_try) 2>&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); }; } &&
27119 { ac_try='test -s conftest.$ac_objext'
27120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121 (eval $ac_try) 2>&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; }; then
27125 ac_header_compiler=yes
27127 echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27130 ac_header_compiler=no
27132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27134 echo "${ECHO_T}$ac_header_compiler" >&6
27136 # Is the header present?
27137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27139 cat >conftest.$ac_ext <<_ACEOF
27142 cat confdefs.h >>conftest.$ac_ext
27143 cat >>conftest.$ac_ext <<_ACEOF
27144 /* end confdefs.h. */
27145 #include <$ac_header>
27147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27150 grep -v '^ *+' conftest.er1 >conftest.err
27152 cat conftest.err >&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } >/dev/null; then
27155 if test -s conftest.err; then
27156 ac_cpp_err=$ac_c_preproc_warn_flag
27157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27164 if test -z "$ac_cpp_err"; then
27165 ac_header_preproc=yes
27167 echo "$as_me: failed program was:" >&5
27168 sed 's/^/| /' conftest.$ac_ext >&5
27170 ac_header_preproc=no
27172 rm -f conftest.err conftest.$ac_ext
27173 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27174 echo "${ECHO_T}$ac_header_preproc" >&6
27176 # So? What about this header?
27177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27183 ac_header_preproc=yes
27186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27193 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27200 ## --------------------------------------------- ##
27201 ## Report this to <http://www.openldap.org/its/> ##
27202 ## --------------------------------------------- ##
27205 sed "s/^/$as_me: WARNING: /" >&2
27208 echo "$as_me:$LINENO: checking for $ac_header" >&5
27209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27211 echo $ECHO_N "(cached) $ECHO_C" >&6
27213 eval "$as_ac_Header=\$ac_header_preproc"
27215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27220 cat >>confdefs.h <<_ACEOF
27221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27230 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27231 cat >>confdefs.h <<\_ACEOF
27232 #define REENTRANT 1
27235 cat >>confdefs.h <<\_ACEOF
27236 #define _REENTRANT 1
27239 cat >>confdefs.h <<\_ACEOF
27240 #define THREAD_SAFE 1
27243 cat >>confdefs.h <<\_ACEOF
27244 #define _THREAD_SAFE 1
27247 cat >>confdefs.h <<\_ACEOF
27248 #define THREADSAFE 1
27251 cat >>confdefs.h <<\_ACEOF
27252 #define _THREADSAFE 1
27255 cat >>confdefs.h <<\_ACEOF
27256 #define _SGI_MP_SOURCE 1
27260 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27261 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27262 if test "${ol_cv_errno_thread_specific+set}" = set; then
27263 echo $ECHO_N "(cached) $ECHO_C" >&6
27266 cat >conftest.$ac_ext <<_ACEOF
27269 cat confdefs.h >>conftest.$ac_ext
27270 cat >>conftest.$ac_ext <<_ACEOF
27271 /* end confdefs.h. */
27281 rm -f conftest.$ac_objext conftest$ac_exeext
27282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27283 (eval $ac_link) 2>conftest.er1
27285 grep -v '^ *+' conftest.er1 >conftest.err
27287 cat conftest.err >&5
27288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289 (exit $ac_status); } &&
27290 { ac_try='test -z "$ac_c_werror_flag"
27291 || test ! -s conftest.err'
27292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293 (eval $ac_try) 2>&5
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; } &&
27297 { ac_try='test -s conftest$ac_exeext'
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; }; then
27303 ol_cv_errno_thread_specific=yes
27305 echo "$as_me: failed program was:" >&5
27306 sed 's/^/| /' conftest.$ac_ext >&5
27308 ol_cv_errno_thread_specific=no
27310 rm -f conftest.err conftest.$ac_objext \
27311 conftest$ac_exeext conftest.$ac_ext
27314 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27315 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27317 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27318 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27319 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27320 echo $ECHO_N "(cached) $ECHO_C" >&6
27323 cat >conftest.$ac_ext <<_ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27338 rm -f conftest.$ac_objext conftest$ac_exeext
27339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27340 (eval $ac_link) 2>conftest.er1
27342 grep -v '^ *+' conftest.er1 >conftest.err
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } &&
27347 { ac_try='test -z "$ac_c_werror_flag"
27348 || test ! -s conftest.err'
27349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350 (eval $ac_try) 2>&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; } &&
27354 { ac_try='test -s conftest$ac_exeext'
27355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356 (eval $ac_try) 2>&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); }; }; then
27360 ol_cv_h_errno_thread_specific=yes
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27365 ol_cv_h_errno_thread_specific=no
27367 rm -f conftest.err conftest.$ac_objext \
27368 conftest$ac_exeext conftest.$ac_ext
27371 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27372 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27374 if test $ol_cv_errno_thread_specific != yes ||
27375 test $ol_cv_h_errno_thread_specific != yes ; then
27376 LIBS="$LTHREAD_LIBS $LIBS"
27382 if test $ol_link_threads = no ; then
27383 if test $ol_with_threads = yes ; then
27384 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27385 echo "$as_me: error: no suitable thread support" >&2;}
27386 { (exit 1); exit 1; }; }
27389 if test $ol_with_threads = auto ; then
27390 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27391 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27396 cat >>confdefs.h <<\_ACEOF
27397 #define NO_THREADS 1
27406 if test $ol_link_threads != no ; then
27408 cat >>confdefs.h <<\_ACEOF
27409 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27419 gethostbyname_r gethostbyaddr_r \
27422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27423 echo "$as_me:$LINENO: checking for $ac_func" >&5
27424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27425 if eval "test \"\${$as_ac_var+set}\" = set"; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27428 cat >conftest.$ac_ext <<_ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h. */
27434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27436 #define $ac_func innocuous_$ac_func
27438 /* System header to define __stub macros and hopefully few prototypes,
27439 which can conflict with char $ac_func (); below.
27440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27441 <limits.h> exists even on freestanding compilers. */
27444 # include <limits.h>
27446 # include <assert.h>
27451 /* Override any gcc2 internal prototype to avoid an error. */
27456 /* We use char because int might match the return type of a gcc2
27457 builtin and then its argument prototype would still apply. */
27459 /* The GNU C library defines this for functions which it implements
27460 to always fail with ENOSYS. Some functions are actually named
27461 something starting with __ and the normal name is an alias. */
27462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27465 char (*f) () = $ac_func;
27474 return f != $ac_func;
27479 rm -f conftest.$ac_objext conftest$ac_exeext
27480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27481 (eval $ac_link) 2>conftest.er1
27483 grep -v '^ *+' conftest.er1 >conftest.err
27485 cat conftest.err >&5
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); } &&
27488 { ac_try='test -z "$ac_c_werror_flag"
27489 || test ! -s conftest.err'
27490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491 (eval $ac_try) 2>&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; } &&
27495 { ac_try='test -s conftest$ac_exeext'
27496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27497 (eval $ac_try) 2>&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); }; }; then
27501 eval "$as_ac_var=yes"
27503 echo "$as_me: failed program was:" >&5
27504 sed 's/^/| /' conftest.$ac_ext >&5
27506 eval "$as_ac_var=no"
27508 rm -f conftest.err conftest.$ac_objext \
27509 conftest$ac_exeext conftest.$ac_ext
27511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27513 if test `eval echo '${'$as_ac_var'}'` = yes; then
27514 cat >>confdefs.h <<_ACEOF
27515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27522 if test "$ac_cv_func_ctime_r" = no ; then
27523 ol_cv_func_ctime_r_nargs=0
27525 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27526 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27527 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27528 echo $ECHO_N "(cached) $ECHO_C" >&6
27530 cat >conftest.$ac_ext <<_ACEOF
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h. */
27540 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27545 rm -f conftest.$ac_objext
27546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27547 (eval $ac_compile) 2>conftest.er1
27549 grep -v '^ *+' conftest.er1 >conftest.err
27551 cat conftest.err >&5
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); } &&
27554 { ac_try='test -z "$ac_c_werror_flag"
27555 || test ! -s conftest.err'
27556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27557 (eval $ac_try) 2>&5
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; } &&
27561 { ac_try='test -s conftest.$ac_objext'
27562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563 (eval $ac_try) 2>&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; }; then
27567 ol_cv_func_ctime_r_nargs3=yes
27569 echo "$as_me: failed program was:" >&5
27570 sed 's/^/| /' conftest.$ac_ext >&5
27572 ol_cv_func_ctime_r_nargs3=no
27574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27576 cat >conftest.$ac_ext <<_ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h. */
27586 time_t ti; char *buffer; ctime_r(&ti,buffer);
27591 rm -f conftest.$ac_objext
27592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27593 (eval $ac_compile) 2>conftest.er1
27595 grep -v '^ *+' conftest.er1 >conftest.err
27597 cat conftest.err >&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } &&
27600 { ac_try='test -z "$ac_c_werror_flag"
27601 || test ! -s conftest.err'
27602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603 (eval $ac_try) 2>&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; } &&
27607 { ac_try='test -s conftest.$ac_objext'
27608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27609 (eval $ac_try) 2>&5
27611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); }; }; then
27613 ol_cv_func_ctime_r_nargs2=yes
27615 echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27618 ol_cv_func_ctime_r_nargs2=no
27620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27622 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27623 test $ol_cv_func_ctime_r_nargs2 = no ; then
27625 ol_cv_func_ctime_r_nargs=3
27627 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27628 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27630 ol_cv_func_ctime_r_nargs=2
27633 ol_cv_func_ctime_r_nargs=0
27637 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27638 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27640 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27642 cat >>confdefs.h <<_ACEOF
27643 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27650 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27651 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27652 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27653 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27654 echo $ECHO_N "(cached) $ECHO_C" >&6
27656 cat >conftest.$ac_ext <<_ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27662 #include <sys/types.h>
27663 #include <sys/socket.h>
27664 #include <netinet/in.h>
27666 #define BUFSIZE (sizeof(struct hostent)+10)
27670 struct hostent hent; char buffer[BUFSIZE];
27671 int bufsize=BUFSIZE;int h_errno;
27672 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27673 buffer, bufsize, &h_errno);
27678 rm -f conftest.$ac_objext
27679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27680 (eval $ac_compile) 2>conftest.er1
27682 grep -v '^ *+' conftest.er1 >conftest.err
27684 cat conftest.err >&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } &&
27687 { ac_try='test -z "$ac_c_werror_flag"
27688 || test ! -s conftest.err'
27689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27690 (eval $ac_try) 2>&5
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); }; } &&
27694 { ac_try='test -s conftest.$ac_objext'
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; }; then
27700 ol_cv_func_gethostbyname_r_nargs5=yes
27702 echo "$as_me: failed program was:" >&5
27703 sed 's/^/| /' conftest.$ac_ext >&5
27705 ol_cv_func_gethostbyname_r_nargs5=no
27707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27709 cat >conftest.$ac_ext <<_ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 #include <sys/types.h>
27716 #include <sys/socket.h>
27717 #include <netinet/in.h>
27719 #define BUFSIZE (sizeof(struct hostent)+10)
27723 struct hostent hent;struct hostent *rhent;
27724 char buffer[BUFSIZE];
27725 int bufsize=BUFSIZE;int h_errno;
27726 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27732 rm -f conftest.$ac_objext
27733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27734 (eval $ac_compile) 2>conftest.er1
27736 grep -v '^ *+' conftest.er1 >conftest.err
27738 cat conftest.err >&5
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); } &&
27741 { ac_try='test -z "$ac_c_werror_flag"
27742 || test ! -s conftest.err'
27743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; } &&
27748 { ac_try='test -s conftest.$ac_objext'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; }; then
27754 ol_cv_func_gethostbyname_r_nargs6=yes
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27759 ol_cv_func_gethostbyname_r_nargs6=no
27761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27763 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27764 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27766 ol_cv_func_gethostbyname_r_nargs=5
27768 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27769 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27771 ol_cv_func_gethostbyname_r_nargs=6
27774 ol_cv_func_gethostbyname_r_nargs=0
27778 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27779 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27780 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27782 cat >>confdefs.h <<_ACEOF
27783 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27789 ol_cv_func_gethostbyname_r_nargs=0
27792 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27793 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27794 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27795 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27796 echo $ECHO_N "(cached) $ECHO_C" >&6
27798 cat >conftest.$ac_ext <<_ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h. */
27804 #include <sys/types.h>
27805 #include <sys/socket.h>
27806 #include <netinet/in.h>
27808 #define BUFSIZE (sizeof(struct hostent)+10)
27812 struct hostent hent; char buffer[BUFSIZE];
27813 struct in_addr add;
27814 size_t alen=sizeof(struct in_addr);
27815 int bufsize=BUFSIZE;int h_errno;
27816 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27817 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27822 rm -f conftest.$ac_objext
27823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27824 (eval $ac_compile) 2>conftest.er1
27826 grep -v '^ *+' conftest.er1 >conftest.err
27828 cat conftest.err >&5
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); } &&
27831 { ac_try='test -z "$ac_c_werror_flag"
27832 || test ! -s conftest.err'
27833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27834 (eval $ac_try) 2>&5
27836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837 (exit $ac_status); }; } &&
27838 { ac_try='test -s conftest.$ac_objext'
27839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840 (eval $ac_try) 2>&5
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; }; then
27844 ol_cv_func_gethostbyaddr_r_nargs7=yes
27846 echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27849 ol_cv_func_gethostbyaddr_r_nargs7=no
27851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27853 cat >conftest.$ac_ext <<_ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h. */
27859 #include <sys/types.h>
27860 #include <sys/socket.h>
27861 #include <netinet/in.h>
27863 #define BUFSIZE (sizeof(struct hostent)+10)
27867 struct hostent hent;
27868 struct hostent *rhent; char buffer[BUFSIZE];
27869 struct in_addr add;
27870 size_t alen=sizeof(struct in_addr);
27871 int bufsize=BUFSIZE;int h_errno;
27872 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27873 alen, AF_INET, &hent, buffer, bufsize,
27879 rm -f conftest.$ac_objext
27880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27881 (eval $ac_compile) 2>conftest.er1
27883 grep -v '^ *+' conftest.er1 >conftest.err
27885 cat conftest.err >&5
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); } &&
27888 { ac_try='test -z "$ac_c_werror_flag"
27889 || test ! -s conftest.err'
27890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891 (eval $ac_try) 2>&5
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; } &&
27895 { ac_try='test -s conftest.$ac_objext'
27896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27897 (eval $ac_try) 2>&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); }; }; then
27901 ol_cv_func_gethostbyaddr_r_nargs8=yes
27903 echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27906 ol_cv_func_gethostbyaddr_r_nargs8=no
27908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27910 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27911 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27913 ol_cv_func_gethostbyaddr_r_nargs=7
27915 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27916 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27918 ol_cv_func_gethostbyaddr_r_nargs=8
27921 ol_cv_func_gethostbyaddr_r_nargs=0
27925 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27926 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27927 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27929 cat >>confdefs.h <<_ACEOF
27930 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27936 ol_cv_func_gethostbyaddr_r_nargs=0
27941 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27942 ol_cv_berkeley_db=no
27944 for ac_header in db.h
27946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27948 echo "$as_me:$LINENO: checking for $ac_header" >&5
27949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27951 echo $ECHO_N "(cached) $ECHO_C" >&6
27953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27956 # Is the header compilable?
27957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27959 cat >conftest.$ac_ext <<_ACEOF
27962 cat confdefs.h >>conftest.$ac_ext
27963 cat >>conftest.$ac_ext <<_ACEOF
27964 /* end confdefs.h. */
27965 $ac_includes_default
27966 #include <$ac_header>
27968 rm -f conftest.$ac_objext
27969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27970 (eval $ac_compile) 2>conftest.er1
27972 grep -v '^ *+' conftest.er1 >conftest.err
27974 cat conftest.err >&5
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } &&
27977 { ac_try='test -z "$ac_c_werror_flag"
27978 || test ! -s conftest.err'
27979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27980 (eval $ac_try) 2>&5
27982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); }; } &&
27984 { ac_try='test -s conftest.$ac_objext'
27985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27986 (eval $ac_try) 2>&5
27988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989 (exit $ac_status); }; }; then
27990 ac_header_compiler=yes
27992 echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27995 ac_header_compiler=no
27997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27999 echo "${ECHO_T}$ac_header_compiler" >&6
28001 # Is the header present?
28002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28004 cat >conftest.$ac_ext <<_ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h. */
28010 #include <$ac_header>
28012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28015 grep -v '^ *+' conftest.er1 >conftest.err
28017 cat conftest.err >&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); } >/dev/null; then
28020 if test -s conftest.err; then
28021 ac_cpp_err=$ac_c_preproc_warn_flag
28022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28029 if test -z "$ac_cpp_err"; then
28030 ac_header_preproc=yes
28032 echo "$as_me: failed program was:" >&5
28033 sed 's/^/| /' conftest.$ac_ext >&5
28035 ac_header_preproc=no
28037 rm -f conftest.err conftest.$ac_ext
28038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28039 echo "${ECHO_T}$ac_header_preproc" >&6
28041 # So? What about this header?
28042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28048 ac_header_preproc=yes
28051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28065 ## --------------------------------------------- ##
28066 ## Report this to <http://www.openldap.org/its/> ##
28067 ## --------------------------------------------- ##
28070 sed "s/^/$as_me: WARNING: /" >&2
28073 echo "$as_me:$LINENO: checking for $ac_header" >&5
28074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28076 echo $ECHO_N "(cached) $ECHO_C" >&6
28078 eval "$as_ac_Header=\$ac_header_preproc"
28080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28085 cat >>confdefs.h <<_ACEOF
28086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28093 if test $ac_cv_header_db_h = yes; then
28094 echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28095 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
28096 if test "${ol_cv_bdb_major+set}" = set; then
28097 echo $ECHO_N "(cached) $ECHO_C" >&6
28100 cat >conftest.$ac_ext <<_ACEOF
28103 #ifndef DB_VERSION_MAJOR
28104 # define DB_VERSION_MAJOR 1
28106 __db_version DB_VERSION_MAJOR
28109 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28110 ol_cv_bdb_major=${3}
28113 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28114 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28115 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28116 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28117 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28118 { (exit 1); exit 1; }; } ;;
28121 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28122 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
28123 if test "${ol_cv_bdb_minor+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28127 cat >conftest.$ac_ext <<_ACEOF
28130 #ifndef DB_VERSION_MINOR
28131 # define DB_VERSION_MINOR 0
28133 __db_version DB_VERSION_MINOR
28136 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28137 ol_cv_bdb_minor=${3}
28140 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28141 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28142 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28143 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28144 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28145 { (exit 1); exit 1; }; } ;;
28148 echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28149 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
28150 if test "${ol_cv_bdb_compat+set}" = set; then
28151 echo $ECHO_N "(cached) $ECHO_C" >&6
28154 cat >conftest.$ac_ext <<_ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28163 /* this check could be improved */
28164 #ifndef DB_VERSION_MAJOR
28165 # define DB_VERSION_MAJOR 1
28167 #ifndef DB_VERSION_MINOR
28168 # define DB_VERSION_MINOR 0
28171 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28173 /* require 4.4 or later */
28174 #if DB_VERSION_MM >= 0x0404
28175 __db_version_compat
28179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28180 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28181 ol_cv_bdb_compat=yes
28183 ol_cv_bdb_compat=no
28188 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28189 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
28192 if test $ol_cv_bdb_compat != yes ; then
28193 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28194 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28195 { (exit 1); exit 1; }; }
28200 if test $ol_cv_bdb_major = 4 ; then
28201 if test $ol_cv_lib_db = no ; then
28202 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28203 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
28204 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28205 echo $ECHO_N "(cached) $ECHO_C" >&6
28208 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28210 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28212 cat >conftest.$ac_ext <<_ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h. */
28219 #ifdef HAVE_DB_185_H
28220 # include <db_185.h>
28225 #ifndef DB_VERSION_MAJOR
28226 # define DB_VERSION_MAJOR 1
28230 #define NULL ((void*)0)
28237 #if DB_VERSION_MAJOR > 2
28238 db_env_create( NULL, 0 );
28239 #elif DB_VERSION_MAJOR > 1
28240 db_appexit( NULL );
28242 (void) dbopen( NULL, 0, 0, 0, NULL);
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251 (eval $ac_link) 2>conftest.er1
28253 grep -v '^ *+' conftest.er1 >conftest.err
28255 cat conftest.err >&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); } &&
28258 { ac_try='test -z "$ac_c_werror_flag"
28259 || test ! -s conftest.err'
28260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; } &&
28265 { ac_try='test -s conftest$ac_exeext'
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; }; then
28271 ol_cv_db_db_4_dot_m=yes
28273 echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28276 ol_cv_db_db_4_dot_m=no
28278 rm -f conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
28284 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28285 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
28287 if test $ol_cv_db_db_4_dot_m = yes ; then
28288 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28292 if test $ol_cv_lib_db = no ; then
28293 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28294 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
28295 if test "${ol_cv_db_db4m+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28299 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28301 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28310 #ifdef HAVE_DB_185_H
28311 # include <db_185.h>
28316 #ifndef DB_VERSION_MAJOR
28317 # define DB_VERSION_MAJOR 1
28321 #define NULL ((void*)0)
28328 #if DB_VERSION_MAJOR > 2
28329 db_env_create( NULL, 0 );
28330 #elif DB_VERSION_MAJOR > 1
28331 db_appexit( NULL );
28333 (void) dbopen( NULL, 0, 0, 0, NULL);
28340 rm -f conftest.$ac_objext conftest$ac_exeext
28341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28342 (eval $ac_link) 2>conftest.er1
28344 grep -v '^ *+' conftest.er1 >conftest.err
28346 cat conftest.err >&5
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); } &&
28349 { ac_try='test -z "$ac_c_werror_flag"
28350 || test ! -s conftest.err'
28351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352 (eval $ac_try) 2>&5
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); }; } &&
28356 { ac_try='test -s conftest$ac_exeext'
28357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
28364 echo "$as_me: failed program was:" >&5
28365 sed 's/^/| /' conftest.$ac_ext >&5
28369 rm -f conftest.err conftest.$ac_objext \
28370 conftest$ac_exeext conftest.$ac_ext
28375 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28376 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28378 if test $ol_cv_db_db4m = yes ; then
28379 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28383 if test $ol_cv_lib_db = no ; then
28384 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28385 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28386 if test "${ol_cv_db_db_4m+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
28390 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28392 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28401 #ifdef HAVE_DB_185_H
28402 # include <db_185.h>
28407 #ifndef DB_VERSION_MAJOR
28408 # define DB_VERSION_MAJOR 1
28412 #define NULL ((void*)0)
28419 #if DB_VERSION_MAJOR > 2
28420 db_env_create( NULL, 0 );
28421 #elif DB_VERSION_MAJOR > 1
28422 db_appexit( NULL );
28424 (void) dbopen( NULL, 0, 0, 0, NULL);
28431 rm -f conftest.$ac_objext conftest$ac_exeext
28432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28433 (eval $ac_link) 2>conftest.er1
28435 grep -v '^ *+' conftest.er1 >conftest.err
28437 cat conftest.err >&5
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } &&
28440 { ac_try='test -z "$ac_c_werror_flag"
28441 || test ! -s conftest.err'
28442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28443 (eval $ac_try) 2>&5
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; } &&
28447 { ac_try='test -s conftest$ac_exeext'
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; }; then
28455 echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28460 rm -f conftest.err conftest.$ac_objext \
28461 conftest$ac_exeext conftest.$ac_ext
28466 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28467 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28469 if test $ol_cv_db_db_4m = yes ; then
28470 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28474 if test $ol_cv_lib_db = no ; then
28475 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28476 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28477 if test "${ol_cv_db_db_4_m+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28481 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28483 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28485 cat >conftest.$ac_ext <<_ACEOF
28488 cat confdefs.h >>conftest.$ac_ext
28489 cat >>conftest.$ac_ext <<_ACEOF
28490 /* end confdefs.h. */
28492 #ifdef HAVE_DB_185_H
28493 # include <db_185.h>
28498 #ifndef DB_VERSION_MAJOR
28499 # define DB_VERSION_MAJOR 1
28503 #define NULL ((void*)0)
28510 #if DB_VERSION_MAJOR > 2
28511 db_env_create( NULL, 0 );
28512 #elif DB_VERSION_MAJOR > 1
28513 db_appexit( NULL );
28515 (void) dbopen( NULL, 0, 0, 0, NULL);
28522 rm -f conftest.$ac_objext conftest$ac_exeext
28523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28524 (eval $ac_link) 2>conftest.er1
28526 grep -v '^ *+' conftest.er1 >conftest.err
28528 cat conftest.err >&5
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); } &&
28531 { ac_try='test -z "$ac_c_werror_flag"
28532 || test ! -s conftest.err'
28533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534 (eval $ac_try) 2>&5
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); }; } &&
28538 { ac_try='test -s conftest$ac_exeext'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28544 ol_cv_db_db_4_m=yes
28546 echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.$ac_ext >&5
28551 rm -f conftest.err conftest.$ac_objext \
28552 conftest$ac_exeext conftest.$ac_ext
28557 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28558 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28560 if test $ol_cv_db_db_4_m = yes ; then
28561 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28565 if test $ol_cv_lib_db = no ; then
28566 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28567 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28568 if test "${ol_cv_db_db_4+set}" = set; then
28569 echo $ECHO_N "(cached) $ECHO_C" >&6
28574 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28576 cat >conftest.$ac_ext <<_ACEOF
28579 cat confdefs.h >>conftest.$ac_ext
28580 cat >>conftest.$ac_ext <<_ACEOF
28581 /* end confdefs.h. */
28583 #ifdef HAVE_DB_185_H
28584 # include <db_185.h>
28589 #ifndef DB_VERSION_MAJOR
28590 # define DB_VERSION_MAJOR 1
28594 #define NULL ((void*)0)
28601 #if DB_VERSION_MAJOR > 2
28602 db_env_create( NULL, 0 );
28603 #elif DB_VERSION_MAJOR > 1
28604 db_appexit( NULL );
28606 (void) dbopen( NULL, 0, 0, 0, NULL);
28613 rm -f conftest.$ac_objext conftest$ac_exeext
28614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28615 (eval $ac_link) 2>conftest.er1
28617 grep -v '^ *+' conftest.er1 >conftest.err
28619 cat conftest.err >&5
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); } &&
28622 { ac_try='test -z "$ac_c_werror_flag"
28623 || test ! -s conftest.err'
28624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625 (eval $ac_try) 2>&5
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; } &&
28629 { ac_try='test -s conftest$ac_exeext'
28630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28631 (eval $ac_try) 2>&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); }; }; then
28637 echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28642 rm -f conftest.err conftest.$ac_objext \
28643 conftest$ac_exeext conftest.$ac_ext
28648 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28649 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28651 if test $ol_cv_db_db_4 = yes ; then
28652 ol_cv_lib_db=-ldb-4
28656 if test $ol_cv_lib_db = no ; then
28657 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28658 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28659 if test "${ol_cv_db_db4+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28665 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28667 cat >conftest.$ac_ext <<_ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28674 #ifdef HAVE_DB_185_H
28675 # include <db_185.h>
28680 #ifndef DB_VERSION_MAJOR
28681 # define DB_VERSION_MAJOR 1
28685 #define NULL ((void*)0)
28692 #if DB_VERSION_MAJOR > 2
28693 db_env_create( NULL, 0 );
28694 #elif DB_VERSION_MAJOR > 1
28695 db_appexit( NULL );
28697 (void) dbopen( NULL, 0, 0, 0, NULL);
28704 rm -f conftest.$ac_objext conftest$ac_exeext
28705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28706 (eval $ac_link) 2>conftest.er1
28708 grep -v '^ *+' conftest.er1 >conftest.err
28710 cat conftest.err >&5
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); } &&
28713 { ac_try='test -z "$ac_c_werror_flag"
28714 || test ! -s conftest.err'
28715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716 (eval $ac_try) 2>&5
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); }; } &&
28720 { ac_try='test -s conftest$ac_exeext'
28721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28722 (eval $ac_try) 2>&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725 (exit $ac_status); }; }; then
28728 echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28733 rm -f conftest.err conftest.$ac_objext \
28734 conftest$ac_exeext conftest.$ac_ext
28739 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28740 echo "${ECHO_T}$ol_cv_db_db4" >&6
28742 if test $ol_cv_db_db4 = yes ; then
28747 if test $ol_cv_lib_db = no ; then
28748 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28749 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
28750 if test "${ol_cv_db_db+set}" = set; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28756 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28758 cat >conftest.$ac_ext <<_ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28765 #ifdef HAVE_DB_185_H
28766 # include <db_185.h>
28771 #ifndef DB_VERSION_MAJOR
28772 # define DB_VERSION_MAJOR 1
28776 #define NULL ((void*)0)
28783 #if DB_VERSION_MAJOR > 2
28784 db_env_create( NULL, 0 );
28785 #elif DB_VERSION_MAJOR > 1
28786 db_appexit( NULL );
28788 (void) dbopen( NULL, 0, 0, 0, NULL);
28795 rm -f conftest.$ac_objext conftest$ac_exeext
28796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28797 (eval $ac_link) 2>conftest.er1
28799 grep -v '^ *+' conftest.er1 >conftest.err
28801 cat conftest.err >&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); } &&
28804 { ac_try='test -z "$ac_c_werror_flag"
28805 || test ! -s conftest.err'
28806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807 (eval $ac_try) 2>&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; } &&
28811 { ac_try='test -s conftest$ac_exeext'
28812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813 (eval $ac_try) 2>&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); }; }; then
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28824 rm -f conftest.err conftest.$ac_objext \
28825 conftest$ac_exeext conftest.$ac_ext
28830 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28831 echo "${ECHO_T}$ol_cv_db_db" >&6
28833 if test $ol_cv_db_db = yes ; then
28839 if test $ol_cv_lib_db = no ; then
28840 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28841 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
28842 if test "${ol_cv_db_none+set}" = set; then
28843 echo $ECHO_N "(cached) $ECHO_C" >&6
28848 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28850 cat >conftest.$ac_ext <<_ACEOF
28853 cat confdefs.h >>conftest.$ac_ext
28854 cat >>conftest.$ac_ext <<_ACEOF
28855 /* end confdefs.h. */
28857 #ifdef HAVE_DB_185_H
28858 # include <db_185.h>
28863 #ifndef DB_VERSION_MAJOR
28864 # define DB_VERSION_MAJOR 1
28868 #define NULL ((void*)0)
28875 #if DB_VERSION_MAJOR > 2
28876 db_env_create( NULL, 0 );
28877 #elif DB_VERSION_MAJOR > 1
28878 db_appexit( NULL );
28880 (void) dbopen( NULL, 0, 0, 0, NULL);
28887 rm -f conftest.$ac_objext conftest$ac_exeext
28888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28889 (eval $ac_link) 2>conftest.er1
28891 grep -v '^ *+' conftest.er1 >conftest.err
28893 cat conftest.err >&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } &&
28896 { ac_try='test -z "$ac_c_werror_flag"
28897 || test ! -s conftest.err'
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try='test -s conftest$ac_exeext'
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28916 rm -f conftest.err conftest.$ac_objext \
28917 conftest$ac_exeext conftest.$ac_ext
28922 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28923 echo "${ECHO_T}$ol_cv_db_none" >&6
28925 if test $ol_cv_db_none = yes ; then
28931 if test "$ol_cv_lib_db" != no ; then
28932 ol_cv_berkeley_db=yes
28933 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28934 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
28935 if test "${ol_cv_berkeley_db_version+set}" = set; then
28936 echo $ECHO_N "(cached) $ECHO_C" >&6
28940 LIBS="$LTHREAD_LIBS $LIBS"
28941 if test $ol_cv_lib_db != yes ; then
28942 LIBS="$ol_cv_lib_db $LIBS"
28945 if test "$cross_compiling" = yes; then
28946 ol_cv_berkeley_db_version=cross
28948 cat >conftest.$ac_ext <<_ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h. */
28955 #ifdef HAVE_DB_185_H
28960 #ifndef DB_VERSION_MAJOR
28961 # define DB_VERSION_MAJOR 1
28964 #define NULL ((void *)0)
28968 #if DB_VERSION_MAJOR > 1
28970 int major, minor, patch;
28972 version = db_version( &major, &minor, &patch );
28974 if( major != DB_VERSION_MAJOR ||
28975 minor != DB_VERSION_MINOR ||
28976 patch != DB_VERSION_PATCH )
28978 printf("Berkeley DB version mismatch\n"
28979 "\theader: %s\n\tlibrary: %s\n",
28980 DB_VERSION_STRING, version);
28988 rm -f conftest$ac_exeext
28989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28990 (eval $ac_link) 2>&5
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28995 (eval $ac_try) 2>&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); }; }; then
28999 ol_cv_berkeley_db_version=yes
29001 echo "$as_me: program exited with status $ac_status" >&5
29002 echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29005 ( exit $ac_status )
29006 ol_cv_berkeley_db_version=no
29008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29014 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29015 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
29017 if test $ol_cv_berkeley_db_version = no ; then
29018 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29019 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29020 { (exit 1); exit 1; }; }
29023 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29024 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
29025 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29030 LIBS="$LTHREAD_LIBS $LIBS"
29031 if test $ol_cv_lib_db != yes ; then
29032 LIBS="$ol_cv_lib_db $LIBS"
29035 if test "$cross_compiling" = yes; then
29036 ol_cv_berkeley_db_thread=cross
29038 cat >conftest.$ac_ext <<_ACEOF
29041 cat confdefs.h >>conftest.$ac_ext
29042 cat >>conftest.$ac_ext <<_ACEOF
29043 /* end confdefs.h. */
29045 #ifdef HAVE_DB_185_H
29051 #define NULL ((void *)0)
29056 u_int32_t flags = DB_CREATE |
29062 #if DB_VERSION_MAJOR > 2
29063 DB_ENV *env = NULL;
29065 rc = db_env_create( &env, 0 );
29067 flags |= DB_INIT_MPOOL;
29068 #ifdef DB_MPOOL_PRIVATE
29069 flags |= DB_MPOOL_PRIVATE;
29073 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29077 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29078 rc = (env->open)( env, NULL, flags, 0 );
29080 rc = (env->open)( env, NULL, NULL, flags, 0 );
29084 rc = env->close( env, 0 );
29088 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29094 memset( &env, '\0', sizeof(env) );
29096 rc = db_appinit( NULL, NULL, &env, flags );
29099 db_appexit( &env );
29102 unlink("__db_mpool.share");
29103 unlink("__db_lock.share");
29109 rm -f conftest$ac_exeext
29110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29111 (eval $ac_link) 2>&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; }; then
29120 ol_cv_berkeley_db_thread=yes
29122 echo "$as_me: program exited with status $ac_status" >&5
29123 echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29126 ( exit $ac_status )
29127 ol_cv_berkeley_db_thread=no
29129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29135 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29136 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29138 if test $ol_cv_berkeley_db_thread != no ; then
29140 cat >>confdefs.h <<\_ACEOF
29141 #define HAVE_BERKELEY_DB_THREAD 1
29150 if test $ol_cv_berkeley_db = no ; then
29151 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29152 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29153 { (exit 1); exit 1; }; }
29157 cat >>confdefs.h <<\_ACEOF
29158 #define HAVE_BERKELEY_DB 1
29162 if test $ol_cv_lib_db != yes ; then
29163 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29166 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29172 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29173 BUILD_LIBS_DYNAMIC=shared
29175 cat >>confdefs.h <<\_ACEOF
29176 #define LDAP_LIBS_DYNAMIC 1
29181 BUILD_LIBS_DYNAMIC=static
29185 if test $ol_enable_wrappers != no ; then
29187 for ac_header in tcpd.h
29189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29191 echo "$as_me:$LINENO: checking for $ac_header" >&5
29192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29194 echo $ECHO_N "(cached) $ECHO_C" >&6
29196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29199 # Is the header compilable?
29200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29202 cat >conftest.$ac_ext <<_ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h. */
29208 $ac_includes_default
29209 #include <$ac_header>
29211 rm -f conftest.$ac_objext
29212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29213 (eval $ac_compile) 2>conftest.er1
29215 grep -v '^ *+' conftest.er1 >conftest.err
29217 cat conftest.err >&5
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); } &&
29220 { ac_try='test -z "$ac_c_werror_flag"
29221 || test ! -s conftest.err'
29222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223 (eval $ac_try) 2>&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); }; } &&
29227 { ac_try='test -s conftest.$ac_objext'
29228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229 (eval $ac_try) 2>&5
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); }; }; then
29233 ac_header_compiler=yes
29235 echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29238 ac_header_compiler=no
29240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29242 echo "${ECHO_T}$ac_header_compiler" >&6
29244 # Is the header present?
29245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29247 cat >conftest.$ac_ext <<_ACEOF
29250 cat confdefs.h >>conftest.$ac_ext
29251 cat >>conftest.$ac_ext <<_ACEOF
29252 /* end confdefs.h. */
29253 #include <$ac_header>
29255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29258 grep -v '^ *+' conftest.er1 >conftest.err
29260 cat conftest.err >&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); } >/dev/null; then
29263 if test -s conftest.err; then
29264 ac_cpp_err=$ac_c_preproc_warn_flag
29265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29272 if test -z "$ac_cpp_err"; then
29273 ac_header_preproc=yes
29275 echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29278 ac_header_preproc=no
29280 rm -f conftest.err conftest.$ac_ext
29281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29282 echo "${ECHO_T}$ac_header_preproc" >&6
29284 # So? What about this header?
29285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29291 ac_header_preproc=yes
29294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29308 ## --------------------------------------------- ##
29309 ## Report this to <http://www.openldap.org/its/> ##
29310 ## --------------------------------------------- ##
29313 sed "s/^/$as_me: WARNING: /" >&2
29316 echo "$as_me:$LINENO: checking for $ac_header" >&5
29317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29319 echo $ECHO_N "(cached) $ECHO_C" >&6
29321 eval "$as_ac_Header=\$ac_header_preproc"
29323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29328 cat >>confdefs.h <<_ACEOF
29329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29332 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29333 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29335 LIBS="$LIBS -lwrap"
29336 cat >conftest.$ac_ext <<_ACEOF
29339 cat confdefs.h >>conftest.$ac_ext
29340 cat >>conftest.$ac_ext <<_ACEOF
29341 /* end confdefs.h. */
29344 int allow_severity = 0;
29345 int deny_severity = 0;
29347 struct request_info *req;
29359 rm -f conftest.$ac_objext conftest$ac_exeext
29360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29361 (eval $ac_link) 2>conftest.er1
29363 grep -v '^ *+' conftest.er1 >conftest.err
29365 cat conftest.err >&5
29366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); } &&
29368 { ac_try='test -z "$ac_c_werror_flag"
29369 || test ! -s conftest.err'
29370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29371 (eval $ac_try) 2>&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; } &&
29375 { ac_try='test -s conftest$ac_exeext'
29376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29377 (eval $ac_try) 2>&5
29379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380 (exit $ac_status); }; }; then
29381 echo "$as_me:$LINENO: result: -lwrap" >&5
29382 echo "${ECHO_T}-lwrap" >&6
29386 echo "$as_me: failed program was:" >&5
29387 sed 's/^/| /' conftest.$ac_ext >&5
29391 cat >conftest.$ac_ext <<_ACEOF
29394 cat confdefs.h >>conftest.$ac_ext
29395 cat >>conftest.$ac_ext <<_ACEOF
29396 /* end confdefs.h. */
29399 int allow_severity = 0;
29400 int deny_severity = 0;
29402 struct request_info *req;
29414 rm -f conftest.$ac_objext conftest$ac_exeext
29415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29416 (eval $ac_link) 2>conftest.er1
29418 grep -v '^ *+' conftest.er1 >conftest.err
29420 cat conftest.err >&5
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); } &&
29423 { ac_try='test -z "$ac_c_werror_flag"
29424 || test ! -s conftest.err'
29425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29426 (eval $ac_try) 2>&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); }; } &&
29430 { ac_try='test -s conftest$ac_exeext'
29431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29432 (eval $ac_try) 2>&5
29434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); }; }; then
29436 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29437 echo "${ECHO_T}-lwrap -lnsl" >&6
29439 LIBS="$save_LIBS -lnsl"
29441 echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29445 echo "$as_me:$LINENO: result: no" >&5
29446 echo "${ECHO_T}no" >&6
29450 rm -f conftest.err conftest.$ac_objext \
29451 conftest$ac_exeext conftest.$ac_ext
29453 rm -f conftest.err conftest.$ac_objext \
29454 conftest$ac_exeext conftest.$ac_ext
29462 if test $have_wrappers = yes ; then
29464 cat >>confdefs.h <<\_ACEOF
29465 #define HAVE_TCPD 1
29469 elif test $ol_enable_wrappers = yes ; then
29470 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29471 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29472 { (exit 1); exit 1; }; }
29474 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29475 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29480 if test $ol_enable_syslog != no ; then
29481 echo "$as_me:$LINENO: checking for openlog" >&5
29482 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29483 if test "${ac_cv_func_openlog+set}" = set; then
29484 echo $ECHO_N "(cached) $ECHO_C" >&6
29486 cat >conftest.$ac_ext <<_ACEOF
29489 cat confdefs.h >>conftest.$ac_ext
29490 cat >>conftest.$ac_ext <<_ACEOF
29491 /* end confdefs.h. */
29492 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29494 #define openlog innocuous_openlog
29496 /* System header to define __stub macros and hopefully few prototypes,
29497 which can conflict with char openlog (); below.
29498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29499 <limits.h> exists even on freestanding compilers. */
29502 # include <limits.h>
29504 # include <assert.h>
29509 /* Override any gcc2 internal prototype to avoid an error. */
29514 /* We use char because int might match the return type of a gcc2
29515 builtin and then its argument prototype would still apply. */
29517 /* The GNU C library defines this for functions which it implements
29518 to always fail with ENOSYS. Some functions are actually named
29519 something starting with __ and the normal name is an alias. */
29520 #if defined (__stub_openlog) || defined (__stub___openlog)
29523 char (*f) () = openlog;
29532 return f != openlog;
29537 rm -f conftest.$ac_objext conftest$ac_exeext
29538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29539 (eval $ac_link) 2>conftest.er1
29541 grep -v '^ *+' conftest.er1 >conftest.err
29543 cat conftest.err >&5
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } &&
29546 { ac_try='test -z "$ac_c_werror_flag"
29547 || test ! -s conftest.err'
29548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29549 (eval $ac_try) 2>&5
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; } &&
29553 { ac_try='test -s conftest$ac_exeext'
29554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555 (eval $ac_try) 2>&5
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_func_openlog=yes
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29564 ac_cv_func_openlog=no
29566 rm -f conftest.err conftest.$ac_objext \
29567 conftest$ac_exeext conftest.$ac_ext
29569 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29570 echo "${ECHO_T}$ac_cv_func_openlog" >&6
29572 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29573 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29574 echo "$as_me: error: could not find syslog" >&2;}
29575 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29577 ol_enable_syslog=$ac_cv_func_openlog
29581 if test $ol_enable_sql != no ; then
29584 for ac_header in sql.h sqlext.h
29586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29588 echo "$as_me:$LINENO: checking for $ac_header" >&5
29589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29596 # Is the header compilable?
29597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29599 cat >conftest.$ac_ext <<_ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h. */
29605 $ac_includes_default
29606 #include <$ac_header>
29608 rm -f conftest.$ac_objext
29609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29610 (eval $ac_compile) 2>conftest.er1
29612 grep -v '^ *+' conftest.er1 >conftest.err
29614 cat conftest.err >&5
29615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); } &&
29617 { ac_try='test -z "$ac_c_werror_flag"
29618 || test ! -s conftest.err'
29619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620 (eval $ac_try) 2>&5
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); }; } &&
29624 { ac_try='test -s conftest.$ac_objext'
29625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626 (eval $ac_try) 2>&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; }; then
29630 ac_header_compiler=yes
29632 echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29635 ac_header_compiler=no
29637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29639 echo "${ECHO_T}$ac_header_compiler" >&6
29641 # Is the header present?
29642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29644 cat >conftest.$ac_ext <<_ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h. */
29650 #include <$ac_header>
29652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29655 grep -v '^ *+' conftest.er1 >conftest.err
29657 cat conftest.err >&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } >/dev/null; then
29660 if test -s conftest.err; then
29661 ac_cpp_err=$ac_c_preproc_warn_flag
29662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29669 if test -z "$ac_cpp_err"; then
29670 ac_header_preproc=yes
29672 echo "$as_me: failed program was:" >&5
29673 sed 's/^/| /' conftest.$ac_ext >&5
29675 ac_header_preproc=no
29677 rm -f conftest.err conftest.$ac_ext
29678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29679 echo "${ECHO_T}$ac_header_preproc" >&6
29681 # So? What about this header?
29682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29688 ac_header_preproc=yes
29691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29705 ## --------------------------------------------- ##
29706 ## Report this to <http://www.openldap.org/its/> ##
29707 ## --------------------------------------------- ##
29710 sed "s/^/$as_me: WARNING: /" >&2
29713 echo "$as_me:$LINENO: checking for $ac_header" >&5
29714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29716 echo $ECHO_N "(cached) $ECHO_C" >&6
29718 eval "$as_ac_Header=\$ac_header_preproc"
29720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29725 cat >>confdefs.h <<_ACEOF
29726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29731 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29732 echo "$as_me: error: could not locate SQL headers" >&2;}
29733 { (exit 1); exit 1; }; }
29741 LIBS="$LTHREAD_LIBS"
29743 if test $ol_with_odbc = auto ; then
29744 ol_with_odbc="iodbc unixodbc odbc32"
29747 for odbc in $ol_with_odbc ; do
29748 if test $ol_link_sql = no ; then
29751 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29752 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
29753 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29754 echo $ECHO_N "(cached) $ECHO_C" >&6
29756 ac_check_lib_save_LIBS=$LIBS
29757 LIBS="-liodbc $LIBS"
29758 cat >conftest.$ac_ext <<_ACEOF
29761 cat confdefs.h >>conftest.$ac_ext
29762 cat >>conftest.$ac_ext <<_ACEOF
29763 /* end confdefs.h. */
29765 /* Override any gcc2 internal prototype to avoid an error. */
29769 /* We use char because int might match the return type of a gcc2
29770 builtin and then its argument prototype would still apply. */
29771 char SQLDriverConnect ();
29775 SQLDriverConnect ();
29780 rm -f conftest.$ac_objext conftest$ac_exeext
29781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29782 (eval $ac_link) 2>conftest.er1
29784 grep -v '^ *+' conftest.er1 >conftest.err
29786 cat conftest.err >&5
29787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788 (exit $ac_status); } &&
29789 { ac_try='test -z "$ac_c_werror_flag"
29790 || test ! -s conftest.err'
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } &&
29796 { ac_try='test -s conftest$ac_exeext'
29797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798 (eval $ac_try) 2>&5
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; }; then
29802 ac_cv_lib_iodbc_SQLDriverConnect=yes
29804 echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.$ac_ext >&5
29807 ac_cv_lib_iodbc_SQLDriverConnect=no
29809 rm -f conftest.err conftest.$ac_objext \
29810 conftest$ac_exeext conftest.$ac_ext
29811 LIBS=$ac_check_lib_save_LIBS
29813 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29814 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
29815 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29821 if test $have_iodbc = yes ; then
29822 ol_link_sql="-liodbc"
29827 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29828 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
29829 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29830 echo $ECHO_N "(cached) $ECHO_C" >&6
29832 ac_check_lib_save_LIBS=$LIBS
29833 LIBS="-lodbc $LIBS"
29834 cat >conftest.$ac_ext <<_ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h. */
29841 /* Override any gcc2 internal prototype to avoid an error. */
29845 /* We use char because int might match the return type of a gcc2
29846 builtin and then its argument prototype would still apply. */
29847 char SQLDriverConnect ();
29851 SQLDriverConnect ();
29856 rm -f conftest.$ac_objext conftest$ac_exeext
29857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29858 (eval $ac_link) 2>conftest.er1
29860 grep -v '^ *+' conftest.er1 >conftest.err
29862 cat conftest.err >&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); } &&
29865 { ac_try='test -z "$ac_c_werror_flag"
29866 || test ! -s conftest.err'
29867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 (eval $ac_try) 2>&5
29870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; } &&
29872 { ac_try='test -s conftest$ac_exeext'
29873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29874 (eval $ac_try) 2>&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; }; then
29878 ac_cv_lib_odbc_SQLDriverConnect=yes
29880 echo "$as_me: failed program was:" >&5
29881 sed 's/^/| /' conftest.$ac_ext >&5
29883 ac_cv_lib_odbc_SQLDriverConnect=no
29885 rm -f conftest.err conftest.$ac_objext \
29886 conftest$ac_exeext conftest.$ac_ext
29887 LIBS=$ac_check_lib_save_LIBS
29889 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29890 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
29891 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29897 if test $have_odbc = yes ; then
29898 ol_link_sql="-lodbc"
29903 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29904 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
29905 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29906 echo $ECHO_N "(cached) $ECHO_C" >&6
29908 ac_check_lib_save_LIBS=$LIBS
29909 LIBS="-lodbc32 $LIBS"
29910 cat >conftest.$ac_ext <<_ACEOF
29913 cat confdefs.h >>conftest.$ac_ext
29914 cat >>conftest.$ac_ext <<_ACEOF
29915 /* end confdefs.h. */
29917 /* Override any gcc2 internal prototype to avoid an error. */
29921 /* We use char because int might match the return type of a gcc2
29922 builtin and then its argument prototype would still apply. */
29923 char SQLDriverConnect ();
29927 SQLDriverConnect ();
29932 rm -f conftest.$ac_objext conftest$ac_exeext
29933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29934 (eval $ac_link) 2>conftest.er1
29936 grep -v '^ *+' conftest.er1 >conftest.err
29938 cat conftest.err >&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); } &&
29941 { ac_try='test -z "$ac_c_werror_flag"
29942 || test ! -s conftest.err'
29943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944 (eval $ac_try) 2>&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; } &&
29948 { ac_try='test -s conftest$ac_exeext'
29949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950 (eval $ac_try) 2>&5
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
29954 ac_cv_lib_odbc32_SQLDriverConnect=yes
29956 echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29959 ac_cv_lib_odbc32_SQLDriverConnect=no
29961 rm -f conftest.err conftest.$ac_objext \
29962 conftest$ac_exeext conftest.$ac_ext
29963 LIBS=$ac_check_lib_save_LIBS
29965 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29966 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
29967 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29973 if test $have_odbc32 = yes ; then
29974 ol_link_sql="-lodbc32"
29979 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29980 echo "$as_me: error: unknown ODBC library" >&2;}
29981 { (exit 1); exit 1; }; }
29989 if test $ol_link_sql != no ; then
29990 SLAPD_SQL_LIBS="$ol_link_sql"
29992 elif test $ol_enable_sql != auto ; then
29993 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29994 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29995 { (exit 1); exit 1; }; }
30000 if test $ol_enable_ndb != no ; then
30001 # Extract the first word of "mysql_config", so it can be a program name with args.
30002 set dummy mysql_config; ac_word=$2
30003 echo "$as_me:$LINENO: checking for $ac_word" >&5
30004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30005 if test "${ac_cv_prog_MYSQL+set}" = set; then
30006 echo $ECHO_N "(cached) $ECHO_C" >&6
30008 if test -n "$MYSQL"; then
30009 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30012 for as_dir in $PATH
30015 test -z "$as_dir" && as_dir=.
30016 for ac_exec_ext in '' $ac_executable_extensions; do
30017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30018 ac_cv_prog_MYSQL="yes"
30019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30027 MYSQL=$ac_cv_prog_MYSQL
30028 if test -n "$MYSQL"; then
30029 echo "$as_me:$LINENO: result: $MYSQL" >&5
30030 echo "${ECHO_T}$MYSQL" >&6
30032 echo "$as_me:$LINENO: result: no" >&5
30033 echo "${ECHO_T}no" >&6
30036 if test "$MYSQL" != yes ; then
30037 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30038 echo "$as_me: error: could not locate mysql_config" >&2;}
30039 { (exit 1); exit 1; }; }
30042 SQL_INC=`mysql_config --include`
30043 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30045 save_CPPFLAGS="$CPPFLAGS"
30046 CPPFLAGS="$SLAPD_NDB_INCS"
30047 echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30048 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30049 cat >conftest.$ac_ext <<_ACEOF
30052 cat confdefs.h >>conftest.$ac_ext
30053 cat >>conftest.$ac_ext <<_ACEOF
30054 /* end confdefs.h. */
30055 #include <NdbApi.hpp>
30057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30060 grep -v '^ *+' conftest.er1 >conftest.err
30062 cat conftest.err >&5
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); } >/dev/null; then
30065 if test -s conftest.err; then
30066 ac_cpp_err=$ac_c_preproc_warn_flag
30067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30074 if test -z "$ac_cpp_err"; then
30075 echo "$as_me:$LINENO: result: yes" >&5
30076 echo "${ECHO_T}yes" >&6
30078 echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30081 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30082 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30083 { (exit 1); exit 1; }; }
30086 rm -f conftest.err conftest.$ac_ext
30087 CPPFLAGS="$save_CPPFLAGS"
30089 SQL_LIB=`mysql_config --libs_r`
30090 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30092 save_LDFLAGS="$LDFLAGS"
30095 echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30096 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30097 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30098 echo $ECHO_N "(cached) $ECHO_C" >&6
30100 ac_check_lib_save_LIBS=$LIBS
30101 LIBS="-lndbclient -lstdc++ $LIBS"
30102 cat >conftest.$ac_ext <<_ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h. */
30109 /* Override any gcc2 internal prototype to avoid an error. */
30113 /* We use char because int might match the return type of a gcc2
30114 builtin and then its argument prototype would still apply. */
30124 rm -f conftest.$ac_objext conftest$ac_exeext
30125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30126 (eval $ac_link) 2>conftest.er1
30128 grep -v '^ *+' conftest.er1 >conftest.err
30130 cat conftest.err >&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); } &&
30133 { ac_try='test -z "$ac_c_werror_flag"
30134 || test ! -s conftest.err'
30135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30136 (eval $ac_try) 2>&5
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); }; } &&
30140 { ac_try='test -s conftest$ac_exeext'
30141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142 (eval $ac_try) 2>&5
30144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145 (exit $ac_status); }; }; then
30146 ac_cv_lib_ndbclient_ndb_init=yes
30148 echo "$as_me: failed program was:" >&5
30149 sed 's/^/| /' conftest.$ac_ext >&5
30151 ac_cv_lib_ndbclient_ndb_init=no
30153 rm -f conftest.err conftest.$ac_objext \
30154 conftest$ac_exeext conftest.$ac_ext
30155 LIBS=$ac_check_lib_save_LIBS
30157 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30158 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30159 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30163 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30164 echo "$as_me: error: could not locate ndbclient library" >&2;}
30165 { (exit 1); exit 1; }; }
30170 LDFLAGS="$save_LDFLAGS"
30172 if test "$ol_enable_ndb" = yes ; then
30173 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30179 for ac_header in unicode/utypes.h
30181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30183 echo "$as_me:$LINENO: checking for $ac_header" >&5
30184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30186 echo $ECHO_N "(cached) $ECHO_C" >&6
30188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30191 # Is the header compilable?
30192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30194 cat >conftest.$ac_ext <<_ACEOF
30197 cat confdefs.h >>conftest.$ac_ext
30198 cat >>conftest.$ac_ext <<_ACEOF
30199 /* end confdefs.h. */
30200 $ac_includes_default
30201 #include <$ac_header>
30203 rm -f conftest.$ac_objext
30204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30205 (eval $ac_compile) 2>conftest.er1
30207 grep -v '^ *+' conftest.er1 >conftest.err
30209 cat conftest.err >&5
30210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); } &&
30212 { ac_try='test -z "$ac_c_werror_flag"
30213 || test ! -s conftest.err'
30214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30215 (eval $ac_try) 2>&5
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); }; } &&
30219 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30225 ac_header_compiler=yes
30227 echo "$as_me: failed program was:" >&5
30228 sed 's/^/| /' conftest.$ac_ext >&5
30230 ac_header_compiler=no
30232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30234 echo "${ECHO_T}$ac_header_compiler" >&6
30236 # Is the header present?
30237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30239 cat >conftest.$ac_ext <<_ACEOF
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h. */
30245 #include <$ac_header>
30247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30250 grep -v '^ *+' conftest.er1 >conftest.err
30252 cat conftest.err >&5
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); } >/dev/null; then
30255 if test -s conftest.err; then
30256 ac_cpp_err=$ac_c_preproc_warn_flag
30257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30264 if test -z "$ac_cpp_err"; then
30265 ac_header_preproc=yes
30267 echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30270 ac_header_preproc=no
30272 rm -f conftest.err conftest.$ac_ext
30273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30274 echo "${ECHO_T}$ac_header_preproc" >&6
30276 # So? What about this header?
30277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30283 ac_header_preproc=yes
30286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30300 ## --------------------------------------------- ##
30301 ## Report this to <http://www.openldap.org/its/> ##
30302 ## --------------------------------------------- ##
30305 sed "s/^/$as_me: WARNING: /" >&2
30308 echo "$as_me:$LINENO: checking for $ac_header" >&5
30309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30313 eval "$as_ac_Header=\$ac_header_preproc"
30315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30320 cat >>confdefs.h <<_ACEOF
30321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30328 if test $ac_cv_header_unicode_utypes_h = yes ; then
30329 OL_ICULIBS="-licuuc -licudata"
30331 echo "$as_me:$LINENO: checking for ICU libraries" >&5
30332 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30333 if test "${ol_cv_lib_icu+set}" = set; then
30334 echo $ECHO_N "(cached) $ECHO_C" >&6
30338 LIBS="$OL_ICULIBS $LIBS"
30339 cat >conftest.$ac_ext <<_ACEOF
30342 cat confdefs.h >>conftest.$ac_ext
30343 cat >>conftest.$ac_ext <<_ACEOF
30344 /* end confdefs.h. */
30346 #include <unicode/utypes.h>
30352 (void) u_errorName(0);
30358 rm -f conftest.$ac_objext conftest$ac_exeext
30359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30360 (eval $ac_link) 2>conftest.er1
30362 grep -v '^ *+' conftest.er1 >conftest.err
30364 cat conftest.err >&5
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } &&
30367 { ac_try='test -z "$ac_c_werror_flag"
30368 || test ! -s conftest.err'
30369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370 (eval $ac_try) 2>&5
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; } &&
30374 { ac_try='test -s conftest$ac_exeext'
30375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376 (eval $ac_try) 2>&5
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30382 echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30387 rm -f conftest.err conftest.$ac_objext \
30388 conftest$ac_exeext conftest.$ac_ext
30392 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30393 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30395 if test $ol_cv_lib_icu != no ; then
30396 ol_icu="$OL_ICULIBS"
30398 cat >>confdefs.h <<\_ACEOF
30405 if test "$ol_icu" = no ; then
30406 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30407 echo "$as_me: WARNING: ICU not available" >&2;}
30414 if test $ol_with_cyrus_sasl != no ; then
30417 for ac_header in sasl/sasl.h sasl.h
30419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30421 echo "$as_me:$LINENO: checking for $ac_header" >&5
30422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30429 # Is the header compilable?
30430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30432 cat >conftest.$ac_ext <<_ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h. */
30438 $ac_includes_default
30439 #include <$ac_header>
30441 rm -f conftest.$ac_objext
30442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30443 (eval $ac_compile) 2>conftest.er1
30445 grep -v '^ *+' conftest.er1 >conftest.err
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); } &&
30450 { ac_try='test -z "$ac_c_werror_flag"
30451 || test ! -s conftest.err'
30452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453 (eval $ac_try) 2>&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; } &&
30457 { ac_try='test -s conftest.$ac_objext'
30458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459 (eval $ac_try) 2>&5
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }; }; then
30463 ac_header_compiler=yes
30465 echo "$as_me: failed program was:" >&5
30466 sed 's/^/| /' conftest.$ac_ext >&5
30468 ac_header_compiler=no
30470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30472 echo "${ECHO_T}$ac_header_compiler" >&6
30474 # Is the header present?
30475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30477 cat >conftest.$ac_ext <<_ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h. */
30483 #include <$ac_header>
30485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30488 grep -v '^ *+' conftest.er1 >conftest.err
30490 cat conftest.err >&5
30491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492 (exit $ac_status); } >/dev/null; then
30493 if test -s conftest.err; then
30494 ac_cpp_err=$ac_c_preproc_warn_flag
30495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30502 if test -z "$ac_cpp_err"; then
30503 ac_header_preproc=yes
30505 echo "$as_me: failed program was:" >&5
30506 sed 's/^/| /' conftest.$ac_ext >&5
30508 ac_header_preproc=no
30510 rm -f conftest.err conftest.$ac_ext
30511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30512 echo "${ECHO_T}$ac_header_preproc" >&6
30514 # So? What about this header?
30515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30521 ac_header_preproc=yes
30524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30538 ## --------------------------------------------- ##
30539 ## Report this to <http://www.openldap.org/its/> ##
30540 ## --------------------------------------------- ##
30543 sed "s/^/$as_me: WARNING: /" >&2
30546 echo "$as_me:$LINENO: checking for $ac_header" >&5
30547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30549 echo $ECHO_N "(cached) $ECHO_C" >&6
30551 eval "$as_ac_Header=\$ac_header_preproc"
30553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30558 cat >>confdefs.h <<_ACEOF
30559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30567 if test $ac_cv_header_sasl_sasl_h = yes ||
30568 test $ac_cv_header_sasl_h = yes; then
30569 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30570 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
30571 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30572 echo $ECHO_N "(cached) $ECHO_C" >&6
30574 ac_check_lib_save_LIBS=$LIBS
30575 LIBS="-lsasl2 $LIBS"
30576 cat >conftest.$ac_ext <<_ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h. */
30583 /* Override any gcc2 internal prototype to avoid an error. */
30587 /* We use char because int might match the return type of a gcc2
30588 builtin and then its argument prototype would still apply. */
30589 char sasl_client_init ();
30593 sasl_client_init ();
30598 rm -f conftest.$ac_objext conftest$ac_exeext
30599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30600 (eval $ac_link) 2>conftest.er1
30602 grep -v '^ *+' conftest.er1 >conftest.err
30604 cat conftest.err >&5
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } &&
30607 { ac_try='test -z "$ac_c_werror_flag"
30608 || test ! -s conftest.err'
30609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30610 (eval $ac_try) 2>&5
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; } &&
30614 { ac_try='test -s conftest$ac_exeext'
30615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30616 (eval $ac_try) 2>&5
30618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); }; }; then
30620 ac_cv_lib_sasl2_sasl_client_init=yes
30622 echo "$as_me: failed program was:" >&5
30623 sed 's/^/| /' conftest.$ac_ext >&5
30625 ac_cv_lib_sasl2_sasl_client_init=no
30627 rm -f conftest.err conftest.$ac_objext \
30628 conftest$ac_exeext conftest.$ac_ext
30629 LIBS=$ac_check_lib_save_LIBS
30631 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30632 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
30633 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30634 ol_link_sasl="-lsasl2"
30636 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30637 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
30638 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30639 echo $ECHO_N "(cached) $ECHO_C" >&6
30641 ac_check_lib_save_LIBS=$LIBS
30642 LIBS="-lsasl $LIBS"
30643 cat >conftest.$ac_ext <<_ACEOF
30646 cat confdefs.h >>conftest.$ac_ext
30647 cat >>conftest.$ac_ext <<_ACEOF
30648 /* end confdefs.h. */
30650 /* Override any gcc2 internal prototype to avoid an error. */
30654 /* We use char because int might match the return type of a gcc2
30655 builtin and then its argument prototype would still apply. */
30656 char sasl_client_init ();
30660 sasl_client_init ();
30665 rm -f conftest.$ac_objext conftest$ac_exeext
30666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30667 (eval $ac_link) 2>conftest.er1
30669 grep -v '^ *+' conftest.er1 >conftest.err
30671 cat conftest.err >&5
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); } &&
30674 { ac_try='test -z "$ac_c_werror_flag"
30675 || test ! -s conftest.err'
30676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677 (eval $ac_try) 2>&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; } &&
30681 { ac_try='test -s conftest$ac_exeext'
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; }; then
30687 ac_cv_lib_sasl_sasl_client_init=yes
30689 echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30692 ac_cv_lib_sasl_sasl_client_init=no
30694 rm -f conftest.err conftest.$ac_objext \
30695 conftest$ac_exeext conftest.$ac_ext
30696 LIBS=$ac_check_lib_save_LIBS
30698 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30699 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
30700 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30701 ol_link_sasl="-lsasl"
30708 if test $ol_link_sasl = no ; then
30709 if test $ol_with_cyrus_sasl != auto ; then
30710 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30711 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30712 { (exit 1); exit 1; }; }
30714 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30715 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30716 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30717 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30718 if test $ol_link_tls = no ; then
30719 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30720 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30724 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30725 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
30726 if test "${ol_cv_sasl_compat+set}" = set; then
30727 echo $ECHO_N "(cached) $ECHO_C" >&6
30730 cat >conftest.$ac_ext <<_ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h. */
30737 #ifdef HAVE_SASL_SASL_H
30738 #include <sasl/sasl.h>
30743 /* Require 2.1.15+ */
30744 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30745 char *__sasl_compat = "2.2+ or better okay (we guess)";
30746 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30747 && SASL_VERSION_STEP >=15
30748 char *__sasl_compat = "2.1.15+ or better okay";
30752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30753 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30754 ol_cv_sasl_compat=yes
30756 ol_cv_sasl_compat=no
30761 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30762 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
30764 if test $ol_cv_sasl_compat = no ; then
30766 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30767 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30768 { (exit 1); exit 1; }; }
30772 cat >>confdefs.h <<\_ACEOF
30773 #define HAVE_CYRUS_SASL 1
30776 SASL_LIBS="$ol_link_sasl"
30777 if test $ol_enable_spasswd != no ; then
30778 ol_link_spasswd=yes
30781 ac_save_LIBS="$LIBS"
30782 LIBS="$LIBS $ol_link_sasl"
30783 echo "$as_me:$LINENO: checking for sasl_version" >&5
30784 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
30785 if test "${ac_cv_func_sasl_version+set}" = set; then
30786 echo $ECHO_N "(cached) $ECHO_C" >&6
30788 cat >conftest.$ac_ext <<_ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h. */
30794 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30796 #define sasl_version innocuous_sasl_version
30798 /* System header to define __stub macros and hopefully few prototypes,
30799 which can conflict with char sasl_version (); below.
30800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30801 <limits.h> exists even on freestanding compilers. */
30804 # include <limits.h>
30806 # include <assert.h>
30809 #undef sasl_version
30811 /* Override any gcc2 internal prototype to avoid an error. */
30816 /* We use char because int might match the return type of a gcc2
30817 builtin and then its argument prototype would still apply. */
30818 char sasl_version ();
30819 /* The GNU C library defines this for functions which it implements
30820 to always fail with ENOSYS. Some functions are actually named
30821 something starting with __ and the normal name is an alias. */
30822 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
30825 char (*f) () = sasl_version;
30834 return f != sasl_version;
30839 rm -f conftest.$ac_objext conftest$ac_exeext
30840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30841 (eval $ac_link) 2>conftest.er1
30843 grep -v '^ *+' conftest.er1 >conftest.err
30845 cat conftest.err >&5
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); } &&
30848 { ac_try='test -z "$ac_c_werror_flag"
30849 || test ! -s conftest.err'
30850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851 (eval $ac_try) 2>&5
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; } &&
30855 { ac_try='test -s conftest$ac_exeext'
30856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30857 (eval $ac_try) 2>&5
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); }; }; then
30861 ac_cv_func_sasl_version=yes
30863 echo "$as_me: failed program was:" >&5
30864 sed 's/^/| /' conftest.$ac_ext >&5
30866 ac_cv_func_sasl_version=no
30868 rm -f conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30871 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30872 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
30873 if test $ac_cv_func_sasl_version = yes; then
30875 cat >>confdefs.h <<\_ACEOF
30876 #define HAVE_SASL_VERSION 1
30881 LIBS="$ac_save_LIBS"
30887 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30888 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30889 if test $ol_link_tls = no ; then
30890 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30891 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30895 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30897 if test -r /dev/urandom ; then
30898 dev="/dev/urandom";
30899 elif test -r /idev/urandom ; then
30900 dev="/idev/urandom";
30901 elif test -r /dev/srandom ; then
30902 dev="/dev/srandom";
30903 elif test -r /dev/random ; then
30905 elif test -r /idev/random ; then
30906 dev="/idev/random";
30909 if test $dev != no ; then
30911 cat >>confdefs.h <<_ACEOF
30912 #define URANDOM_DEVICE "$dev"
30919 if test $ol_with_fetch != no ; then
30921 LIBS="-lfetch -lcom_err $LIBS"
30922 echo "$as_me:$LINENO: checking fetch(3) library" >&5
30923 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
30924 if test "${ol_cv_lib_fetch+set}" = set; then
30925 echo $ECHO_N "(cached) $ECHO_C" >&6
30928 cat >conftest.$ac_ext <<_ACEOF
30931 cat confdefs.h >>conftest.$ac_ext
30932 cat >>conftest.$ac_ext <<_ACEOF
30933 /* end confdefs.h. */
30935 #include <sys/param.h>
30941 struct url *u = fetchParseURL("file:///");
30946 rm -f conftest.$ac_objext conftest$ac_exeext
30947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30948 (eval $ac_link) 2>conftest.er1
30950 grep -v '^ *+' conftest.er1 >conftest.err
30952 cat conftest.err >&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); } &&
30955 { ac_try='test -z "$ac_c_werror_flag"
30956 || test ! -s conftest.err'
30957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958 (eval $ac_try) 2>&5
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; } &&
30962 { ac_try='test -s conftest$ac_exeext'
30963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964 (eval $ac_try) 2>&5
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; }; then
30968 ol_cv_lib_fetch=yes
30970 echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30975 rm -f conftest.err conftest.$ac_objext \
30976 conftest$ac_exeext conftest.$ac_ext
30978 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30979 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
30981 if test $ol_cv_lib_fetch != no ; then
30982 ol_link_fetch="-lfetch -lcom_err"
30984 cat >>confdefs.h <<\_ACEOF
30985 #define HAVE_FETCH 1
30991 if test $ol_cv_lib_fetch != no ; then
30992 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30993 ol_link_fetch=freebsd
30995 elif test $ol_with_fetch != auto ; then
30996 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30997 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30998 { (exit 1); exit 1; }; }
31002 if test $ol_enable_crypt != no ; then
31004 LIBS="$TLS_LIBS $LIBS"
31006 echo "$as_me:$LINENO: checking for crypt" >&5
31007 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
31008 if test "${ac_cv_func_crypt+set}" = set; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31011 cat >conftest.$ac_ext <<_ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31019 #define crypt innocuous_crypt
31021 /* System header to define __stub macros and hopefully few prototypes,
31022 which can conflict with char crypt (); below.
31023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31024 <limits.h> exists even on freestanding compilers. */
31027 # include <limits.h>
31029 # include <assert.h>
31034 /* Override any gcc2 internal prototype to avoid an error. */
31039 /* We use char because int might match the return type of a gcc2
31040 builtin and then its argument prototype would still apply. */
31042 /* The GNU C library defines this for functions which it implements
31043 to always fail with ENOSYS. Some functions are actually named
31044 something starting with __ and the normal name is an alias. */
31045 #if defined (__stub_crypt) || defined (__stub___crypt)
31048 char (*f) () = crypt;
31062 rm -f conftest.$ac_objext conftest$ac_exeext
31063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31064 (eval $ac_link) 2>conftest.er1
31066 grep -v '^ *+' conftest.er1 >conftest.err
31068 cat conftest.err >&5
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
31071 { ac_try='test -z "$ac_c_werror_flag"
31072 || test ! -s conftest.err'
31073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074 (eval $ac_try) 2>&5
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; } &&
31078 { ac_try='test -s conftest$ac_exeext'
31079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080 (eval $ac_try) 2>&5
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }; }; then
31084 ac_cv_func_crypt=yes
31086 echo "$as_me: failed program was:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31089 ac_cv_func_crypt=no
31091 rm -f conftest.err conftest.$ac_objext \
31092 conftest$ac_exeext conftest.$ac_ext
31094 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31095 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31096 if test $ac_cv_func_crypt = yes; then
31101 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31102 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31103 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31104 echo $ECHO_N "(cached) $ECHO_C" >&6
31106 ac_check_lib_save_LIBS=$LIBS
31107 LIBS="-lcrypt $LIBS"
31108 cat >conftest.$ac_ext <<_ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31115 /* Override any gcc2 internal prototype to avoid an error. */
31119 /* We use char because int might match the return type of a gcc2
31120 builtin and then its argument prototype would still apply. */
31130 rm -f conftest.$ac_objext conftest$ac_exeext
31131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31132 (eval $ac_link) 2>conftest.er1
31134 grep -v '^ *+' conftest.er1 >conftest.err
31136 cat conftest.err >&5
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); } &&
31139 { ac_try='test -z "$ac_c_werror_flag"
31140 || test ! -s conftest.err'
31141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31142 (eval $ac_try) 2>&5
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; } &&
31146 { ac_try='test -s conftest$ac_exeext'
31147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31148 (eval $ac_try) 2>&5
31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31151 (exit $ac_status); }; }; then
31152 ac_cv_lib_crypt_crypt=yes
31154 echo "$as_me: failed program was:" >&5
31155 sed 's/^/| /' conftest.$ac_ext >&5
31157 ac_cv_lib_crypt_crypt=no
31159 rm -f conftest.err conftest.$ac_objext \
31160 conftest$ac_exeext conftest.$ac_ext
31161 LIBS=$ac_check_lib_save_LIBS
31163 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31164 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31165 if test $ac_cv_lib_crypt_crypt = yes; then
31166 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31177 if test $have_crypt = yes ; then
31179 cat >>confdefs.h <<\_ACEOF
31180 #define HAVE_CRYPT 1
31184 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31185 echo "$as_me: WARNING: could not find crypt" >&2;}
31186 if test $ol_enable_crypt = yes ; then
31187 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31188 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31189 { (exit 1); exit 1; }; }
31192 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31193 echo "$as_me: WARNING: disabling crypt support" >&2;}
31198 if test $ol_enable_proctitle != no ; then
31199 echo "$as_me:$LINENO: checking for setproctitle" >&5
31200 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31201 if test "${ac_cv_func_setproctitle+set}" = set; then
31202 echo $ECHO_N "(cached) $ECHO_C" >&6
31204 cat >conftest.$ac_ext <<_ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h. */
31210 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31212 #define setproctitle innocuous_setproctitle
31214 /* System header to define __stub macros and hopefully few prototypes,
31215 which can conflict with char setproctitle (); below.
31216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31217 <limits.h> exists even on freestanding compilers. */
31220 # include <limits.h>
31222 # include <assert.h>
31225 #undef setproctitle
31227 /* Override any gcc2 internal prototype to avoid an error. */
31232 /* We use char because int might match the return type of a gcc2
31233 builtin and then its argument prototype would still apply. */
31234 char setproctitle ();
31235 /* The GNU C library defines this for functions which it implements
31236 to always fail with ENOSYS. Some functions are actually named
31237 something starting with __ and the normal name is an alias. */
31238 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31241 char (*f) () = setproctitle;
31250 return f != setproctitle;
31255 rm -f conftest.$ac_objext conftest$ac_exeext
31256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31257 (eval $ac_link) 2>conftest.er1
31259 grep -v '^ *+' conftest.er1 >conftest.err
31261 cat conftest.err >&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } &&
31264 { ac_try='test -z "$ac_c_werror_flag"
31265 || test ! -s conftest.err'
31266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267 (eval $ac_try) 2>&5
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; } &&
31271 { ac_try='test -s conftest$ac_exeext'
31272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31273 (eval $ac_try) 2>&5
31275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); }; }; then
31277 ac_cv_func_setproctitle=yes
31279 echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31282 ac_cv_func_setproctitle=no
31284 rm -f conftest.err conftest.$ac_objext \
31285 conftest$ac_exeext conftest.$ac_ext
31287 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31288 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31289 if test $ac_cv_func_setproctitle = yes; then
31290 have_setproctitle=yes
31293 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31294 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31295 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31296 echo $ECHO_N "(cached) $ECHO_C" >&6
31298 ac_check_lib_save_LIBS=$LIBS
31299 LIBS="-lutil $LIBS"
31300 cat >conftest.$ac_ext <<_ACEOF
31303 cat confdefs.h >>conftest.$ac_ext
31304 cat >>conftest.$ac_ext <<_ACEOF
31305 /* end confdefs.h. */
31307 /* Override any gcc2 internal prototype to avoid an error. */
31311 /* We use char because int might match the return type of a gcc2
31312 builtin and then its argument prototype would still apply. */
31313 char setproctitle ();
31322 rm -f conftest.$ac_objext conftest$ac_exeext
31323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31324 (eval $ac_link) 2>conftest.er1
31326 grep -v '^ *+' conftest.er1 >conftest.err
31328 cat conftest.err >&5
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } &&
31331 { ac_try='test -z "$ac_c_werror_flag"
31332 || test ! -s conftest.err'
31333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334 (eval $ac_try) 2>&5
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); }; } &&
31338 { ac_try='test -s conftest$ac_exeext'
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; }; then
31344 ac_cv_lib_util_setproctitle=yes
31346 echo "$as_me: failed program was:" >&5
31347 sed 's/^/| /' conftest.$ac_ext >&5
31349 ac_cv_lib_util_setproctitle=no
31351 rm -f conftest.err conftest.$ac_objext \
31352 conftest$ac_exeext conftest.$ac_ext
31353 LIBS=$ac_check_lib_save_LIBS
31355 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31356 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31357 if test $ac_cv_lib_util_setproctitle = yes; then
31358 have_setproctitle=yes
31359 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31361 have_setproctitle=no
31363 "setproctitle.$ac_objext" | \
31364 *" setproctitle.$ac_objext" | \
31365 "setproctitle.$ac_objext "* | \
31366 *" setproctitle.$ac_objext "* ) ;;
31367 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31370 LIBSRCS="$LIBSRCS setproctitle.c"
31376 if test $have_setproctitle = yes ; then
31378 cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_SETPROCTITLE 1
31385 if test $ol_enable_slp != no ; then
31387 for ac_header in slp.h
31389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31391 echo "$as_me:$LINENO: checking for $ac_header" >&5
31392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31394 echo $ECHO_N "(cached) $ECHO_C" >&6
31396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31399 # Is the header compilable?
31400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31402 cat >conftest.$ac_ext <<_ACEOF
31405 cat confdefs.h >>conftest.$ac_ext
31406 cat >>conftest.$ac_ext <<_ACEOF
31407 /* end confdefs.h. */
31408 $ac_includes_default
31409 #include <$ac_header>
31411 rm -f conftest.$ac_objext
31412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31413 (eval $ac_compile) 2>conftest.er1
31415 grep -v '^ *+' conftest.er1 >conftest.err
31417 cat conftest.err >&5
31418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419 (exit $ac_status); } &&
31420 { ac_try='test -z "$ac_c_werror_flag"
31421 || test ! -s conftest.err'
31422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31423 (eval $ac_try) 2>&5
31425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31426 (exit $ac_status); }; } &&
31427 { ac_try='test -s conftest.$ac_objext'
31428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31429 (eval $ac_try) 2>&5
31431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31432 (exit $ac_status); }; }; then
31433 ac_header_compiler=yes
31435 echo "$as_me: failed program was:" >&5
31436 sed 's/^/| /' conftest.$ac_ext >&5
31438 ac_header_compiler=no
31440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31442 echo "${ECHO_T}$ac_header_compiler" >&6
31444 # Is the header present?
31445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31447 cat >conftest.$ac_ext <<_ACEOF
31450 cat confdefs.h >>conftest.$ac_ext
31451 cat >>conftest.$ac_ext <<_ACEOF
31452 /* end confdefs.h. */
31453 #include <$ac_header>
31455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31458 grep -v '^ *+' conftest.er1 >conftest.err
31460 cat conftest.err >&5
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); } >/dev/null; then
31463 if test -s conftest.err; then
31464 ac_cpp_err=$ac_c_preproc_warn_flag
31465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31472 if test -z "$ac_cpp_err"; then
31473 ac_header_preproc=yes
31475 echo "$as_me: failed program was:" >&5
31476 sed 's/^/| /' conftest.$ac_ext >&5
31478 ac_header_preproc=no
31480 rm -f conftest.err conftest.$ac_ext
31481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31482 echo "${ECHO_T}$ac_header_preproc" >&6
31484 # So? What about this header?
31485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31491 ac_header_preproc=yes
31494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31508 ## --------------------------------------------- ##
31509 ## Report this to <http://www.openldap.org/its/> ##
31510 ## --------------------------------------------- ##
31513 sed "s/^/$as_me: WARNING: /" >&2
31516 echo "$as_me:$LINENO: checking for $ac_header" >&5
31517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31519 echo $ECHO_N "(cached) $ECHO_C" >&6
31521 eval "$as_ac_Header=\$ac_header_preproc"
31523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31528 cat >>confdefs.h <<_ACEOF
31529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31537 if test $ac_cv_header_slp_h = yes ; then
31538 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31539 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
31540 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31541 echo $ECHO_N "(cached) $ECHO_C" >&6
31543 ac_check_lib_save_LIBS=$LIBS
31545 cat >conftest.$ac_ext <<_ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h. */
31552 /* Override any gcc2 internal prototype to avoid an error. */
31556 /* We use char because int might match the return type of a gcc2
31557 builtin and then its argument prototype would still apply. */
31567 rm -f conftest.$ac_objext conftest$ac_exeext
31568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31569 (eval $ac_link) 2>conftest.er1
31571 grep -v '^ *+' conftest.er1 >conftest.err
31573 cat conftest.err >&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); } &&
31576 { ac_try='test -z "$ac_c_werror_flag"
31577 || test ! -s conftest.err'
31578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31579 (eval $ac_try) 2>&5
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); }; } &&
31583 { ac_try='test -s conftest$ac_exeext'
31584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31585 (eval $ac_try) 2>&5
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); }; }; then
31589 ac_cv_lib_slp_SLPOpen=yes
31591 echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31594 ac_cv_lib_slp_SLPOpen=no
31596 rm -f conftest.err conftest.$ac_objext \
31597 conftest$ac_exeext conftest.$ac_ext
31598 LIBS=$ac_check_lib_save_LIBS
31600 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31601 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
31602 if test $ac_cv_lib_slp_SLPOpen = yes; then
31608 if test $have_slp = yes ; then
31610 cat >>confdefs.h <<\_ACEOF
31614 SLAPD_SLP_LIBS=-lslp
31617 elif test $ol_enable_slp = yes ; then
31618 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31619 echo "$as_me: error: SLP not found" >&2;}
31620 { (exit 1); exit 1; }; }
31625 echo "$as_me:$LINENO: checking for mode_t" >&5
31626 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31627 if test "${ac_cv_type_mode_t+set}" = set; then
31628 echo $ECHO_N "(cached) $ECHO_C" >&6
31630 cat >conftest.$ac_ext <<_ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h. */
31636 $ac_includes_default
31642 if (sizeof (mode_t))
31648 rm -f conftest.$ac_objext
31649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31650 (eval $ac_compile) 2>conftest.er1
31652 grep -v '^ *+' conftest.er1 >conftest.err
31654 cat conftest.err >&5
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); } &&
31657 { ac_try='test -z "$ac_c_werror_flag"
31658 || test ! -s conftest.err'
31659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31660 (eval $ac_try) 2>&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; } &&
31664 { ac_try='test -s conftest.$ac_objext'
31665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31666 (eval $ac_try) 2>&5
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); }; }; then
31670 ac_cv_type_mode_t=yes
31672 echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31675 ac_cv_type_mode_t=no
31677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31679 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31680 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31681 if test $ac_cv_type_mode_t = yes; then
31685 cat >>confdefs.h <<_ACEOF
31691 echo "$as_me:$LINENO: checking for off_t" >&5
31692 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31693 if test "${ac_cv_type_off_t+set}" = set; then
31694 echo $ECHO_N "(cached) $ECHO_C" >&6
31696 cat >conftest.$ac_ext <<_ACEOF
31699 cat confdefs.h >>conftest.$ac_ext
31700 cat >>conftest.$ac_ext <<_ACEOF
31701 /* end confdefs.h. */
31702 $ac_includes_default
31708 if (sizeof (off_t))
31714 rm -f conftest.$ac_objext
31715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31716 (eval $ac_compile) 2>conftest.er1
31718 grep -v '^ *+' conftest.er1 >conftest.err
31720 cat conftest.err >&5
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); } &&
31723 { ac_try='test -z "$ac_c_werror_flag"
31724 || test ! -s conftest.err'
31725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31726 (eval $ac_try) 2>&5
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; } &&
31730 { ac_try='test -s conftest.$ac_objext'
31731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732 (eval $ac_try) 2>&5
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
31736 ac_cv_type_off_t=yes
31738 echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31741 ac_cv_type_off_t=no
31743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31745 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31746 echo "${ECHO_T}$ac_cv_type_off_t" >&6
31747 if test $ac_cv_type_off_t = yes; then
31751 cat >>confdefs.h <<_ACEOF
31757 echo "$as_me:$LINENO: checking for pid_t" >&5
31758 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31759 if test "${ac_cv_type_pid_t+set}" = set; then
31760 echo $ECHO_N "(cached) $ECHO_C" >&6
31762 cat >conftest.$ac_ext <<_ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h. */
31768 $ac_includes_default
31774 if (sizeof (pid_t))
31780 rm -f conftest.$ac_objext
31781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31782 (eval $ac_compile) 2>conftest.er1
31784 grep -v '^ *+' conftest.er1 >conftest.err
31786 cat conftest.err >&5
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); } &&
31789 { ac_try='test -z "$ac_c_werror_flag"
31790 || test ! -s conftest.err'
31791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31792 (eval $ac_try) 2>&5
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; } &&
31796 { ac_try='test -s conftest.$ac_objext'
31797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31798 (eval $ac_try) 2>&5
31800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801 (exit $ac_status); }; }; then
31802 ac_cv_type_pid_t=yes
31804 echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31807 ac_cv_type_pid_t=no
31809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31811 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31812 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31813 if test $ac_cv_type_pid_t = yes; then
31817 cat >>confdefs.h <<_ACEOF
31823 echo "$as_me:$LINENO: checking for ssize_t" >&5
31824 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31825 if test "${ac_cv_type_ssize_t+set}" = set; then
31826 echo $ECHO_N "(cached) $ECHO_C" >&6
31828 cat >conftest.$ac_ext <<_ACEOF
31831 cat confdefs.h >>conftest.$ac_ext
31832 cat >>conftest.$ac_ext <<_ACEOF
31833 /* end confdefs.h. */
31834 $ac_includes_default
31840 if (sizeof (ssize_t))
31846 rm -f conftest.$ac_objext
31847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31848 (eval $ac_compile) 2>conftest.er1
31850 grep -v '^ *+' conftest.er1 >conftest.err
31852 cat conftest.err >&5
31853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854 (exit $ac_status); } &&
31855 { ac_try='test -z "$ac_c_werror_flag"
31856 || test ! -s conftest.err'
31857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31858 (eval $ac_try) 2>&5
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); }; } &&
31862 { ac_try='test -s conftest.$ac_objext'
31863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31864 (eval $ac_try) 2>&5
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); }; }; then
31868 ac_cv_type_ssize_t=yes
31870 echo "$as_me: failed program was:" >&5
31871 sed 's/^/| /' conftest.$ac_ext >&5
31873 ac_cv_type_ssize_t=no
31875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31877 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31878 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31879 if test $ac_cv_type_ssize_t = yes; then
31883 cat >>confdefs.h <<_ACEOF
31884 #define ssize_t signed int
31889 echo "$as_me:$LINENO: checking for caddr_t" >&5
31890 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
31891 if test "${ac_cv_type_caddr_t+set}" = set; then
31892 echo $ECHO_N "(cached) $ECHO_C" >&6
31894 cat >conftest.$ac_ext <<_ACEOF
31897 cat confdefs.h >>conftest.$ac_ext
31898 cat >>conftest.$ac_ext <<_ACEOF
31899 /* end confdefs.h. */
31900 $ac_includes_default
31906 if (sizeof (caddr_t))
31912 rm -f conftest.$ac_objext
31913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31914 (eval $ac_compile) 2>conftest.er1
31916 grep -v '^ *+' conftest.er1 >conftest.err
31918 cat conftest.err >&5
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); } &&
31921 { ac_try='test -z "$ac_c_werror_flag"
31922 || test ! -s conftest.err'
31923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31924 (eval $ac_try) 2>&5
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); }; } &&
31928 { ac_try='test -s conftest.$ac_objext'
31929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930 (eval $ac_try) 2>&5
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; }; then
31934 ac_cv_type_caddr_t=yes
31936 echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31939 ac_cv_type_caddr_t=no
31941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31943 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31944 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
31945 if test $ac_cv_type_caddr_t = yes; then
31949 cat >>confdefs.h <<_ACEOF
31950 #define caddr_t char *
31955 echo "$as_me:$LINENO: checking for size_t" >&5
31956 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31957 if test "${ac_cv_type_size_t+set}" = set; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31960 cat >conftest.$ac_ext <<_ACEOF
31963 cat confdefs.h >>conftest.$ac_ext
31964 cat >>conftest.$ac_ext <<_ACEOF
31965 /* end confdefs.h. */
31966 $ac_includes_default
31972 if (sizeof (size_t))
31978 rm -f conftest.$ac_objext
31979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31980 (eval $ac_compile) 2>conftest.er1
31982 grep -v '^ *+' conftest.er1 >conftest.err
31984 cat conftest.err >&5
31985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986 (exit $ac_status); } &&
31987 { ac_try='test -z "$ac_c_werror_flag"
31988 || test ! -s conftest.err'
31989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990 (eval $ac_try) 2>&5
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); }; } &&
31994 { ac_try='test -s conftest.$ac_objext'
31995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31996 (eval $ac_try) 2>&5
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); }; }; then
32000 ac_cv_type_size_t=yes
32002 echo "$as_me: failed program was:" >&5
32003 sed 's/^/| /' conftest.$ac_ext >&5
32005 ac_cv_type_size_t=no
32007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32009 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32010 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32011 if test $ac_cv_type_size_t = yes; then
32015 cat >>confdefs.h <<_ACEOF
32016 #define size_t unsigned
32022 echo "$as_me:$LINENO: checking for long long" >&5
32023 echo $ECHO_N "checking for long long... $ECHO_C" >&6
32024 if test "${ac_cv_type_long_long+set}" = set; then
32025 echo $ECHO_N "(cached) $ECHO_C" >&6
32027 cat >conftest.$ac_ext <<_ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h. */
32033 $ac_includes_default
32037 if ((long long *) 0)
32039 if (sizeof (long long))
32045 rm -f conftest.$ac_objext
32046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32047 (eval $ac_compile) 2>conftest.er1
32049 grep -v '^ *+' conftest.er1 >conftest.err
32051 cat conftest.err >&5
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); } &&
32054 { ac_try='test -z "$ac_c_werror_flag"
32055 || test ! -s conftest.err'
32056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32057 (eval $ac_try) 2>&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); }; } &&
32061 { ac_try='test -s conftest.$ac_objext'
32062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063 (eval $ac_try) 2>&5
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; }; then
32067 ac_cv_type_long_long=yes
32069 echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32072 ac_cv_type_long_long=no
32074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32076 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32077 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32078 if test $ac_cv_type_long_long = yes; then
32080 cat >>confdefs.h <<_ACEOF
32081 #define HAVE_LONG_LONG 1
32087 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32088 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32089 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32090 echo $ECHO_N "(cached) $ECHO_C" >&6
32092 cat >conftest.$ac_ext <<_ACEOF
32095 cat confdefs.h >>conftest.$ac_ext
32096 cat >>conftest.$ac_ext <<_ACEOF
32097 /* end confdefs.h. */
32098 $ac_includes_default
32102 if ((ptrdiff_t *) 0)
32104 if (sizeof (ptrdiff_t))
32110 rm -f conftest.$ac_objext
32111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32112 (eval $ac_compile) 2>conftest.er1
32114 grep -v '^ *+' conftest.er1 >conftest.err
32116 cat conftest.err >&5
32117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); } &&
32119 { ac_try='test -z "$ac_c_werror_flag"
32120 || test ! -s conftest.err'
32121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32122 (eval $ac_try) 2>&5
32124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32125 (exit $ac_status); }; } &&
32126 { ac_try='test -s conftest.$ac_objext'
32127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32128 (eval $ac_try) 2>&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); }; }; then
32132 ac_cv_type_ptrdiff_t=yes
32134 echo "$as_me: failed program was:" >&5
32135 sed 's/^/| /' conftest.$ac_ext >&5
32137 ac_cv_type_ptrdiff_t=no
32139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32141 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32142 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32143 if test $ac_cv_type_ptrdiff_t = yes; then
32145 cat >>confdefs.h <<_ACEOF
32146 #define HAVE_PTRDIFF_T 1
32154 echo "$as_me:$LINENO: checking for socklen_t" >&5
32155 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32156 if test "${ac_cv_type_socklen_t+set}" = set; then
32157 echo $ECHO_N "(cached) $ECHO_C" >&6
32159 cat >conftest.$ac_ext <<_ACEOF
32162 cat confdefs.h >>conftest.$ac_ext
32163 cat >>conftest.$ac_ext <<_ACEOF
32164 /* end confdefs.h. */
32165 $ac_includes_default
32166 #ifdef HAVE_SYS_SOCKET_H
32167 #include <sys/socket.h>
32173 if ((socklen_t *) 0)
32175 if (sizeof (socklen_t))
32181 rm -f conftest.$ac_objext
32182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32183 (eval $ac_compile) 2>conftest.er1
32185 grep -v '^ *+' conftest.er1 >conftest.err
32187 cat conftest.err >&5
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); } &&
32190 { ac_try='test -z "$ac_c_werror_flag"
32191 || test ! -s conftest.err'
32192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32193 (eval $ac_try) 2>&5
32195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196 (exit $ac_status); }; } &&
32197 { ac_try='test -s conftest.$ac_objext'
32198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32199 (eval $ac_try) 2>&5
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); }; }; then
32203 ac_cv_type_socklen_t=yes
32205 echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32208 ac_cv_type_socklen_t=no
32210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32212 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32213 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32216 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32217 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32218 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32219 echo $ECHO_N "(cached) $ECHO_C" >&6
32222 set socklen_t int unsigned "unsigned long" long size_t
32223 test "$ac_cv_type_socklen_t" = yes || shift
32224 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32225 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32226 cat >conftest.$ac_ext <<_ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32232 $ac_includes_default
32233 #ifdef HAVE_SYS_SOCKET_H
32234 #include <sys/socket.h>
32236 extern int accept(int s, $addrtype *ap, $lentype *lp);
32242 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32248 rm -f conftest.$ac_objext
32249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32250 (eval $ac_compile) 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_objext'
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 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32272 echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32280 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32281 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32283 cat >>confdefs.h <<_ACEOF
32284 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32288 if test "$ac_cv_type_socklen_t" != yes; then
32290 cat >>confdefs.h <<_ACEOF
32291 #define socklen_t $ol_cv_type_ber_socklen_t
32297 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32298 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32299 if test "${ac_cv_type_signal+set}" = set; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32302 cat >conftest.$ac_ext <<_ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h. */
32308 #include <sys/types.h>
32309 #include <signal.h>
32314 extern "C" void (*signal (int, void (*)(int)))(int);
32316 void (*signal ()) ();
32327 rm -f conftest.$ac_objext
32328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32329 (eval $ac_compile) 2>conftest.er1
32331 grep -v '^ *+' conftest.er1 >conftest.err
32333 cat conftest.err >&5
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); } &&
32336 { ac_try='test -z "$ac_c_werror_flag"
32337 || test ! -s conftest.err'
32338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32339 (eval $ac_try) 2>&5
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); }; } &&
32343 { ac_try='test -s conftest.$ac_objext'
32344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32345 (eval $ac_try) 2>&5
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); }; }; then
32349 ac_cv_type_signal=void
32351 echo "$as_me: failed program was:" >&5
32352 sed 's/^/| /' conftest.$ac_ext >&5
32354 ac_cv_type_signal=int
32356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32358 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32359 echo "${ECHO_T}$ac_cv_type_signal" >&6
32361 cat >>confdefs.h <<_ACEOF
32362 #define RETSIGTYPE $ac_cv_type_signal
32367 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32368 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32369 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32372 cat >conftest.$ac_ext <<_ACEOF
32375 cat confdefs.h >>conftest.$ac_ext
32376 cat >>conftest.$ac_ext <<_ACEOF
32377 /* end confdefs.h. */
32378 $ac_includes_default
32379 #include <signal.h>
32385 if ((sig_atomic_t *) 0)
32387 if (sizeof (sig_atomic_t))
32393 rm -f conftest.$ac_objext
32394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32395 (eval $ac_compile) 2>conftest.er1
32397 grep -v '^ *+' conftest.er1 >conftest.err
32399 cat conftest.err >&5
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); } &&
32402 { ac_try='test -z "$ac_c_werror_flag"
32403 || test ! -s conftest.err'
32404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32405 (eval $ac_try) 2>&5
32407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408 (exit $ac_status); }; } &&
32409 { ac_try='test -s conftest.$ac_objext'
32410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32411 (eval $ac_try) 2>&5
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; }; then
32415 ac_cv_type_sig_atomic_t=yes
32417 echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32420 ac_cv_type_sig_atomic_t=no
32422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32424 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32425 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32426 if test $ac_cv_type_sig_atomic_t = yes; then
32430 cat >>confdefs.h <<_ACEOF
32431 #define sig_atomic_t int
32437 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32438 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32439 if test "${ac_cv_type_uid_t+set}" = set; then
32440 echo $ECHO_N "(cached) $ECHO_C" >&6
32442 cat >conftest.$ac_ext <<_ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h. */
32448 #include <sys/types.h>
32451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32452 $EGREP "uid_t" >/dev/null 2>&1; then
32453 ac_cv_type_uid_t=yes
32455 ac_cv_type_uid_t=no
32460 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32461 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32462 if test $ac_cv_type_uid_t = no; then
32464 cat >>confdefs.h <<\_ACEOF
32469 cat >>confdefs.h <<\_ACEOF
32476 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32477 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32478 if test "${ac_cv_header_time+set}" = set; then
32479 echo $ECHO_N "(cached) $ECHO_C" >&6
32481 cat >conftest.$ac_ext <<_ACEOF
32484 cat confdefs.h >>conftest.$ac_ext
32485 cat >>conftest.$ac_ext <<_ACEOF
32486 /* end confdefs.h. */
32487 #include <sys/types.h>
32488 #include <sys/time.h>
32494 if ((struct tm *) 0)
32500 rm -f conftest.$ac_objext
32501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32502 (eval $ac_compile) 2>conftest.er1
32504 grep -v '^ *+' conftest.er1 >conftest.err
32506 cat conftest.err >&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } &&
32509 { ac_try='test -z "$ac_c_werror_flag"
32510 || test ! -s conftest.err'
32511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512 (eval $ac_try) 2>&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest.$ac_objext'
32517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518 (eval $ac_try) 2>&5
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; }; then
32522 ac_cv_header_time=yes
32524 echo "$as_me: failed program was:" >&5
32525 sed 's/^/| /' conftest.$ac_ext >&5
32527 ac_cv_header_time=no
32529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32531 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32532 echo "${ECHO_T}$ac_cv_header_time" >&6
32533 if test $ac_cv_header_time = yes; then
32535 cat >>confdefs.h <<\_ACEOF
32536 #define TIME_WITH_SYS_TIME 1
32541 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32542 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
32543 if test "${ac_cv_struct_tm+set}" = set; then
32544 echo $ECHO_N "(cached) $ECHO_C" >&6
32546 cat >conftest.$ac_ext <<_ACEOF
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h. */
32552 #include <sys/types.h>
32558 struct tm *tp; tp->tm_sec;
32563 rm -f conftest.$ac_objext
32564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32565 (eval $ac_compile) 2>conftest.er1
32567 grep -v '^ *+' conftest.er1 >conftest.err
32569 cat conftest.err >&5
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); } &&
32572 { ac_try='test -z "$ac_c_werror_flag"
32573 || test ! -s conftest.err'
32574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32575 (eval $ac_try) 2>&5
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; } &&
32579 { ac_try='test -s conftest.$ac_objext'
32580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581 (eval $ac_try) 2>&5
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); }; }; then
32585 ac_cv_struct_tm=time.h
32587 echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32590 ac_cv_struct_tm=sys/time.h
32592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32594 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32595 echo "${ECHO_T}$ac_cv_struct_tm" >&6
32596 if test $ac_cv_struct_tm = sys/time.h; then
32598 cat >>confdefs.h <<\_ACEOF
32599 #define TM_IN_SYS_TIME 1
32604 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32605 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
32606 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
32609 cat >conftest.$ac_ext <<_ACEOF
32612 cat confdefs.h >>conftest.$ac_ext
32613 cat >>conftest.$ac_ext <<_ACEOF
32614 /* end confdefs.h. */
32615 $ac_includes_default
32619 static struct stat ac_aggr;
32620 if (ac_aggr.st_blksize)
32626 rm -f conftest.$ac_objext
32627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32628 (eval $ac_compile) 2>conftest.er1
32630 grep -v '^ *+' conftest.er1 >conftest.err
32632 cat conftest.err >&5
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); } &&
32635 { ac_try='test -z "$ac_c_werror_flag"
32636 || test ! -s conftest.err'
32637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32638 (eval $ac_try) 2>&5
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); }; } &&
32642 { ac_try='test -s conftest.$ac_objext'
32643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32644 (eval $ac_try) 2>&5
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); }; }; then
32648 ac_cv_member_struct_stat_st_blksize=yes
32650 echo "$as_me: failed program was:" >&5
32651 sed 's/^/| /' conftest.$ac_ext >&5
32653 cat >conftest.$ac_ext <<_ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h. */
32659 $ac_includes_default
32663 static struct stat ac_aggr;
32664 if (sizeof ac_aggr.st_blksize)
32670 rm -f conftest.$ac_objext
32671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32672 (eval $ac_compile) 2>conftest.er1
32674 grep -v '^ *+' conftest.er1 >conftest.err
32676 cat conftest.err >&5
32677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678 (exit $ac_status); } &&
32679 { ac_try='test -z "$ac_c_werror_flag"
32680 || test ! -s conftest.err'
32681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682 (eval $ac_try) 2>&5
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; } &&
32686 { ac_try='test -s conftest.$ac_objext'
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; }; then
32692 ac_cv_member_struct_stat_st_blksize=yes
32694 echo "$as_me: failed program was:" >&5
32695 sed 's/^/| /' conftest.$ac_ext >&5
32697 ac_cv_member_struct_stat_st_blksize=no
32699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32703 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32704 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
32705 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32707 cat >>confdefs.h <<_ACEOF
32708 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32714 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32715 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
32716 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32719 cat >conftest.$ac_ext <<_ACEOF
32722 cat confdefs.h >>conftest.$ac_ext
32723 cat >>conftest.$ac_ext <<_ACEOF
32724 /* end confdefs.h. */
32725 $ac_includes_default
32731 static struct passwd ac_aggr;
32732 if (ac_aggr.pw_gecos)
32738 rm -f conftest.$ac_objext
32739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32740 (eval $ac_compile) 2>conftest.er1
32742 grep -v '^ *+' conftest.er1 >conftest.err
32744 cat conftest.err >&5
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); } &&
32747 { ac_try='test -z "$ac_c_werror_flag"
32748 || test ! -s conftest.err'
32749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32750 (eval $ac_try) 2>&5
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; } &&
32754 { ac_try='test -s conftest.$ac_objext'
32755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32756 (eval $ac_try) 2>&5
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); }; }; then
32760 ac_cv_member_struct_passwd_pw_gecos=yes
32762 echo "$as_me: failed program was:" >&5
32763 sed 's/^/| /' conftest.$ac_ext >&5
32765 cat >conftest.$ac_ext <<_ACEOF
32768 cat confdefs.h >>conftest.$ac_ext
32769 cat >>conftest.$ac_ext <<_ACEOF
32770 /* end confdefs.h. */
32771 $ac_includes_default
32777 static struct passwd ac_aggr;
32778 if (sizeof ac_aggr.pw_gecos)
32784 rm -f conftest.$ac_objext
32785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32786 (eval $ac_compile) 2>conftest.er1
32788 grep -v '^ *+' conftest.er1 >conftest.err
32790 cat conftest.err >&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } &&
32793 { ac_try='test -z "$ac_c_werror_flag"
32794 || test ! -s conftest.err'
32795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32796 (eval $ac_try) 2>&5
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; } &&
32800 { ac_try='test -s conftest.$ac_objext'
32801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32802 (eval $ac_try) 2>&5
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); }; }; then
32806 ac_cv_member_struct_passwd_pw_gecos=yes
32808 echo "$as_me: failed program was:" >&5
32809 sed 's/^/| /' conftest.$ac_ext >&5
32811 ac_cv_member_struct_passwd_pw_gecos=no
32813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32817 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32818 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
32819 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32821 cat >>confdefs.h <<_ACEOF
32822 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32828 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32829 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
32830 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32833 cat >conftest.$ac_ext <<_ACEOF
32836 cat confdefs.h >>conftest.$ac_ext
32837 cat >>conftest.$ac_ext <<_ACEOF
32838 /* end confdefs.h. */
32839 $ac_includes_default
32845 static struct passwd ac_aggr;
32846 if (ac_aggr.pw_passwd)
32852 rm -f conftest.$ac_objext
32853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32854 (eval $ac_compile) 2>conftest.er1
32856 grep -v '^ *+' conftest.er1 >conftest.err
32858 cat conftest.err >&5
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); } &&
32861 { ac_try='test -z "$ac_c_werror_flag"
32862 || test ! -s conftest.err'
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; } &&
32868 { ac_try='test -s conftest.$ac_objext'
32869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870 (eval $ac_try) 2>&5
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); }; }; then
32874 ac_cv_member_struct_passwd_pw_passwd=yes
32876 echo "$as_me: failed program was:" >&5
32877 sed 's/^/| /' conftest.$ac_ext >&5
32879 cat >conftest.$ac_ext <<_ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h. */
32885 $ac_includes_default
32891 static struct passwd ac_aggr;
32892 if (sizeof ac_aggr.pw_passwd)
32898 rm -f conftest.$ac_objext
32899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32900 (eval $ac_compile) 2>conftest.er1
32902 grep -v '^ *+' conftest.er1 >conftest.err
32904 cat conftest.err >&5
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); } &&
32907 { ac_try='test -z "$ac_c_werror_flag"
32908 || test ! -s conftest.err'
32909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32910 (eval $ac_try) 2>&5
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); }; } &&
32914 { ac_try='test -s conftest.$ac_objext'
32915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32916 (eval $ac_try) 2>&5
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); }; }; then
32920 ac_cv_member_struct_passwd_pw_passwd=yes
32922 echo "$as_me: failed program was:" >&5
32923 sed 's/^/| /' conftest.$ac_ext >&5
32925 ac_cv_member_struct_passwd_pw_passwd=no
32927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32931 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32932 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
32933 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32935 cat >>confdefs.h <<_ACEOF
32936 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32943 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32944 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
32945 if test "${ol_cv_c_upper_lower+set}" = set; then
32946 echo $ECHO_N "(cached) $ECHO_C" >&6
32949 if test "$cross_compiling" = yes; then
32950 ol_cv_c_upper_lower=safe
32952 cat >conftest.$ac_ext <<_ACEOF
32955 cat confdefs.h >>conftest.$ac_ext
32956 cat >>conftest.$ac_ext <<_ACEOF
32957 /* end confdefs.h. */
32962 if ('C' == toupper('C'))
32968 rm -f conftest$ac_exeext
32969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32970 (eval $ac_link) 2>&5
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32975 (eval $ac_try) 2>&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); }; }; then
32979 ol_cv_c_upper_lower=no
32981 echo "$as_me: program exited with status $ac_status" >&5
32982 echo "$as_me: failed program was:" >&5
32983 sed 's/^/| /' conftest.$ac_ext >&5
32985 ( exit $ac_status )
32986 ol_cv_c_upper_lower=yes
32988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32991 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32992 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
32993 if test $ol_cv_c_upper_lower != no ; then
32995 cat >>confdefs.h <<\_ACEOF
32996 #define C_UPPER_LOWER 1
33001 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33002 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
33003 if test "${ac_cv_c_const+set}" = set; then
33004 echo $ECHO_N "(cached) $ECHO_C" >&6
33006 cat >conftest.$ac_ext <<_ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33016 /* FIXME: Include the comments suggested by Paul. */
33017 #ifndef __cplusplus
33018 /* Ultrix mips cc rejects this. */
33019 typedef int charset[2];
33021 /* SunOS 4.1.1 cc rejects this. */
33022 char const *const *ccp;
33024 /* NEC SVR4.0.2 mips cc rejects this. */
33025 struct point {int x, y;};
33026 static struct point const zero = {0,0};
33027 /* AIX XL C 1.02.0.0 rejects this.
33028 It does not let you subtract one const X* pointer from another in
33029 an arm of an if-expression whose if-part is not a constant
33031 const char *g = "string";
33032 ccp = &g + (g ? g-g : 0);
33033 /* HPUX 7.0 cc rejects these. */
33036 ccp = (char const *const *) p;
33037 { /* SCO 3.2v4 cc rejects this. */
33039 char const *s = 0 ? (char *) 0 : (char const *) 0;
33043 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33044 int x[] = {25, 17};
33045 const int *foo = &x[0];
33048 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33049 typedef const int *iptr;
33053 { /* AIX XL C 1.02.0.0 rejects this saying
33054 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33055 struct s { int j; const int *ap[3]; };
33056 struct s *b; b->j = 5;
33058 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33059 const int foo = 10;
33067 rm -f conftest.$ac_objext
33068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33069 (eval $ac_compile) 2>conftest.er1
33071 grep -v '^ *+' conftest.er1 >conftest.err
33073 cat conftest.err >&5
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } &&
33076 { ac_try='test -z "$ac_c_werror_flag"
33077 || test ! -s conftest.err'
33078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079 (eval $ac_try) 2>&5
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); }; } &&
33083 { ac_try='test -s conftest.$ac_objext'
33084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085 (eval $ac_try) 2>&5
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; }; then
33091 echo "$as_me: failed program was:" >&5
33092 sed 's/^/| /' conftest.$ac_ext >&5
33096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33098 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33099 echo "${ECHO_T}$ac_cv_c_const" >&6
33100 if test $ac_cv_c_const = no; then
33102 cat >>confdefs.h <<\_ACEOF
33108 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33109 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33110 if test "${ol_cv_c_volatile+set}" = set; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 cat >conftest.$ac_ext <<_ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h. */
33123 volatile int a; int * volatile b = x ? &y : &z;
33124 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33130 rm -f conftest.$ac_objext
33131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33132 (eval $ac_compile) 2>conftest.er1
33134 grep -v '^ *+' conftest.er1 >conftest.err
33136 cat conftest.err >&5
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); } &&
33139 { ac_try='test -z "$ac_c_werror_flag"
33140 || test ! -s conftest.err'
33141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142 (eval $ac_try) 2>&5
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; } &&
33146 { ac_try='test -s conftest.$ac_objext'
33147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148 (eval $ac_try) 2>&5
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; }; then
33152 ol_cv_c_volatile=yes
33154 echo "$as_me: failed program was:" >&5
33155 sed 's/^/| /' conftest.$ac_ext >&5
33157 ol_cv_c_volatile=no
33159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33161 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33162 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33163 if test $ol_cv_c_volatile = yes; then
33167 cat >>confdefs.h <<\_ACEOF
33174 if test $cross_compiling = yes ; then
33175 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33176 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33178 cat >>confdefs.h <<\_ACEOF
33179 #define CROSS_COMPILING 1
33183 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33184 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33185 if test "${ac_cv_c_bigendian+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33188 # See if sys/param.h defines the BYTE_ORDER macro.
33189 cat >conftest.$ac_ext <<_ACEOF
33192 cat confdefs.h >>conftest.$ac_ext
33193 cat >>conftest.$ac_ext <<_ACEOF
33194 /* end confdefs.h. */
33195 #include <sys/types.h>
33196 #include <sys/param.h>
33201 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33202 bogus endian macros
33209 rm -f conftest.$ac_objext
33210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33211 (eval $ac_compile) 2>conftest.er1
33213 grep -v '^ *+' conftest.er1 >conftest.err
33215 cat conftest.err >&5
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); } &&
33218 { ac_try='test -z "$ac_c_werror_flag"
33219 || test ! -s conftest.err'
33220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33221 (eval $ac_try) 2>&5
33223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 (exit $ac_status); }; } &&
33225 { ac_try='test -s conftest.$ac_objext'
33226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227 (eval $ac_try) 2>&5
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); }; }; then
33231 # It does; now see whether it defined to BIG_ENDIAN or not.
33232 cat >conftest.$ac_ext <<_ACEOF
33235 cat confdefs.h >>conftest.$ac_ext
33236 cat >>conftest.$ac_ext <<_ACEOF
33237 /* end confdefs.h. */
33238 #include <sys/types.h>
33239 #include <sys/param.h>
33244 #if BYTE_ORDER != BIG_ENDIAN
33252 rm -f conftest.$ac_objext
33253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33254 (eval $ac_compile) 2>conftest.er1
33256 grep -v '^ *+' conftest.er1 >conftest.err
33258 cat conftest.err >&5
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); } &&
33261 { ac_try='test -z "$ac_c_werror_flag"
33262 || test ! -s conftest.err'
33263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264 (eval $ac_try) 2>&5
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; } &&
33268 { ac_try='test -s conftest.$ac_objext'
33269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270 (eval $ac_try) 2>&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; }; then
33274 ac_cv_c_bigendian=yes
33276 echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33279 ac_cv_c_bigendian=no
33281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33283 echo "$as_me: failed program was:" >&5
33284 sed 's/^/| /' conftest.$ac_ext >&5
33286 # It does not; compile a test program.
33287 if test "$cross_compiling" = yes; then
33288 # try to guess the endianness by grepping values into an object file
33289 ac_cv_c_bigendian=unknown
33290 cat >conftest.$ac_ext <<_ACEOF
33293 cat confdefs.h >>conftest.$ac_ext
33294 cat >>conftest.$ac_ext <<_ACEOF
33295 /* end confdefs.h. */
33296 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33297 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33298 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33299 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33300 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33301 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33305 _ascii (); _ebcdic ();
33310 rm -f conftest.$ac_objext
33311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33312 (eval $ac_compile) 2>conftest.er1
33314 grep -v '^ *+' conftest.er1 >conftest.err
33316 cat conftest.err >&5
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); } &&
33319 { ac_try='test -z "$ac_c_werror_flag"
33320 || test ! -s conftest.err'
33321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322 (eval $ac_try) 2>&5
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; } &&
33326 { ac_try='test -s conftest.$ac_objext'
33327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33328 (eval $ac_try) 2>&5
33330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331 (exit $ac_status); }; }; then
33332 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33333 ac_cv_c_bigendian=yes
33335 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33336 if test "$ac_cv_c_bigendian" = unknown; then
33337 ac_cv_c_bigendian=no
33339 # finding both strings is unlikely to happen, but who knows?
33340 ac_cv_c_bigendian=unknown
33344 echo "$as_me: failed program was:" >&5
33345 sed 's/^/| /' conftest.$ac_ext >&5
33348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33350 cat >conftest.$ac_ext <<_ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h. */
33359 /* Are we little or big endian? From Harbison&Steele. */
33363 char c[sizeof (long)];
33366 exit (u.c[sizeof (long) - 1] == 1);
33369 rm -f conftest$ac_exeext
33370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33371 (eval $ac_link) 2>&5
33373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33376 (eval $ac_try) 2>&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); }; }; then
33380 ac_cv_c_bigendian=no
33382 echo "$as_me: program exited with status $ac_status" >&5
33383 echo "$as_me: failed program was:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33386 ( exit $ac_status )
33387 ac_cv_c_bigendian=yes
33389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33394 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33395 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33396 case $ac_cv_c_bigendian in
33399 cat >>confdefs.h <<\_ACEOF
33400 #define WORDS_BIGENDIAN 1
33406 { { echo "$as_me:$LINENO: error: unknown endianness
33407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33408 echo "$as_me: error: unknown endianness
33409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33410 { (exit 1); exit 1; }; } ;;
33415 echo "$as_me:$LINENO: checking for short" >&5
33416 echo $ECHO_N "checking for short... $ECHO_C" >&6
33417 if test "${ac_cv_type_short+set}" = set; then
33418 echo $ECHO_N "(cached) $ECHO_C" >&6
33420 cat >conftest.$ac_ext <<_ACEOF
33423 cat confdefs.h >>conftest.$ac_ext
33424 cat >>conftest.$ac_ext <<_ACEOF
33425 /* end confdefs.h. */
33426 $ac_includes_default
33432 if (sizeof (short))
33438 rm -f conftest.$ac_objext
33439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33440 (eval $ac_compile) 2>conftest.er1
33442 grep -v '^ *+' conftest.er1 >conftest.err
33444 cat conftest.err >&5
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); } &&
33447 { ac_try='test -z "$ac_c_werror_flag"
33448 || test ! -s conftest.err'
33449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450 (eval $ac_try) 2>&5
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; } &&
33454 { ac_try='test -s conftest.$ac_objext'
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; }; then
33460 ac_cv_type_short=yes
33462 echo "$as_me: failed program was:" >&5
33463 sed 's/^/| /' conftest.$ac_ext >&5
33465 ac_cv_type_short=no
33467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33469 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33470 echo "${ECHO_T}$ac_cv_type_short" >&6
33472 echo "$as_me:$LINENO: checking size of short" >&5
33473 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33474 if test "${ac_cv_sizeof_short+set}" = set; then
33475 echo $ECHO_N "(cached) $ECHO_C" >&6
33477 if test "$ac_cv_type_short" = yes; then
33478 # The cast to unsigned long works around a bug in the HP C Compiler
33479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33481 # This bug is HP SR number 8606223364.
33482 if test "$cross_compiling" = yes; then
33483 # Depending upon the size, compute the lo and hi bounds.
33484 cat >conftest.$ac_ext <<_ACEOF
33487 cat confdefs.h >>conftest.$ac_ext
33488 cat >>conftest.$ac_ext <<_ACEOF
33489 /* end confdefs.h. */
33490 $ac_includes_default
33494 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33501 rm -f conftest.$ac_objext
33502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33503 (eval $ac_compile) 2>conftest.er1
33505 grep -v '^ *+' conftest.er1 >conftest.err
33507 cat conftest.err >&5
33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509 (exit $ac_status); } &&
33510 { ac_try='test -z "$ac_c_werror_flag"
33511 || test ! -s conftest.err'
33512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513 (eval $ac_try) 2>&5
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); }; } &&
33517 { ac_try='test -s conftest.$ac_objext'
33518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519 (eval $ac_try) 2>&5
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); }; }; then
33525 cat >conftest.$ac_ext <<_ACEOF
33528 cat confdefs.h >>conftest.$ac_ext
33529 cat >>conftest.$ac_ext <<_ACEOF
33530 /* end confdefs.h. */
33531 $ac_includes_default
33535 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33542 rm -f conftest.$ac_objext
33543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33544 (eval $ac_compile) 2>conftest.er1
33546 grep -v '^ *+' conftest.er1 >conftest.err
33548 cat conftest.err >&5
33549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550 (exit $ac_status); } &&
33551 { ac_try='test -z "$ac_c_werror_flag"
33552 || test ! -s conftest.err'
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); }; } &&
33558 { ac_try='test -s conftest.$ac_objext'
33559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33560 (eval $ac_try) 2>&5
33562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563 (exit $ac_status); }; }; then
33564 ac_hi=$ac_mid; break
33566 echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33569 ac_lo=`expr $ac_mid + 1`
33570 if test $ac_lo -le $ac_mid; then
33574 ac_mid=`expr 2 '*' $ac_mid + 1`
33576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33579 echo "$as_me: failed program was:" >&5
33580 sed 's/^/| /' conftest.$ac_ext >&5
33582 cat >conftest.$ac_ext <<_ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h. */
33588 $ac_includes_default
33592 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33599 rm -f conftest.$ac_objext
33600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33601 (eval $ac_compile) 2>conftest.er1
33603 grep -v '^ *+' conftest.er1 >conftest.err
33605 cat conftest.err >&5
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
33608 { ac_try='test -z "$ac_c_werror_flag"
33609 || test ! -s conftest.err'
33610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611 (eval $ac_try) 2>&5
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); }; } &&
33615 { ac_try='test -s conftest.$ac_objext'
33616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617 (eval $ac_try) 2>&5
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; }; then
33623 cat >conftest.$ac_ext <<_ACEOF
33626 cat confdefs.h >>conftest.$ac_ext
33627 cat >>conftest.$ac_ext <<_ACEOF
33628 /* end confdefs.h. */
33629 $ac_includes_default
33633 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
33640 rm -f conftest.$ac_objext
33641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33642 (eval $ac_compile) 2>conftest.er1
33644 grep -v '^ *+' conftest.er1 >conftest.err
33646 cat conftest.err >&5
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); } &&
33649 { ac_try='test -z "$ac_c_werror_flag"
33650 || test ! -s conftest.err'
33651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652 (eval $ac_try) 2>&5
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; } &&
33656 { ac_try='test -s conftest.$ac_objext'
33657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658 (eval $ac_try) 2>&5
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; }; then
33662 ac_lo=$ac_mid; break
33664 echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33667 ac_hi=`expr '(' $ac_mid ')' - 1`
33668 if test $ac_mid -le $ac_hi; then
33672 ac_mid=`expr 2 '*' $ac_mid`
33674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33677 echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33685 # Binary search between lo and hi bounds.
33686 while test "x$ac_lo" != "x$ac_hi"; do
33687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33688 cat >conftest.$ac_ext <<_ACEOF
33691 cat confdefs.h >>conftest.$ac_ext
33692 cat >>conftest.$ac_ext <<_ACEOF
33693 /* end confdefs.h. */
33694 $ac_includes_default
33698 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33705 rm -f conftest.$ac_objext
33706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33707 (eval $ac_compile) 2>conftest.er1
33709 grep -v '^ *+' conftest.er1 >conftest.err
33711 cat conftest.err >&5
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); } &&
33714 { ac_try='test -z "$ac_c_werror_flag"
33715 || test ! -s conftest.err'
33716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33717 (eval $ac_try) 2>&5
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); }; } &&
33721 { ac_try='test -s conftest.$ac_objext'
33722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723 (eval $ac_try) 2>&5
33725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); }; }; then
33729 echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33732 ac_lo=`expr '(' $ac_mid ')' + 1`
33734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33737 ?*) ac_cv_sizeof_short=$ac_lo;;
33738 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33739 See \`config.log' for more details." >&5
33740 echo "$as_me: error: cannot compute sizeof (short), 77
33741 See \`config.log' for more details." >&2;}
33742 { (exit 1); exit 1; }; } ;;
33745 if test "$cross_compiling" = yes; then
33746 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33747 See \`config.log' for more details." >&5
33748 echo "$as_me: error: cannot run test program while cross compiling
33749 See \`config.log' for more details." >&2;}
33750 { (exit 1); exit 1; }; }
33752 cat >conftest.$ac_ext <<_ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h. */
33758 $ac_includes_default
33759 long longval () { return (long) (sizeof (short)); }
33760 unsigned long ulongval () { return (long) (sizeof (short)); }
33762 #include <stdlib.h>
33767 FILE *f = fopen ("conftest.val", "w");
33770 if (((long) (sizeof (short))) < 0)
33772 long i = longval ();
33773 if (i != ((long) (sizeof (short))))
33775 fprintf (f, "%ld\n", i);
33779 unsigned long i = ulongval ();
33780 if (i != ((long) (sizeof (short))))
33782 fprintf (f, "%lu\n", i);
33784 exit (ferror (f) || fclose (f) != 0);
33790 rm -f conftest$ac_exeext
33791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33792 (eval $ac_link) 2>&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 ac_cv_sizeof_short=`cat conftest.val`
33803 echo "$as_me: program exited with status $ac_status" >&5
33804 echo "$as_me: failed program was:" >&5
33805 sed 's/^/| /' conftest.$ac_ext >&5
33807 ( exit $ac_status )
33808 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
33809 See \`config.log' for more details." >&5
33810 echo "$as_me: error: cannot compute sizeof (short), 77
33811 See \`config.log' for more details." >&2;}
33812 { (exit 1); exit 1; }; }
33814 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33819 ac_cv_sizeof_short=0
33822 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33823 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
33824 cat >>confdefs.h <<_ACEOF
33825 #define SIZEOF_SHORT $ac_cv_sizeof_short
33829 echo "$as_me:$LINENO: checking for int" >&5
33830 echo $ECHO_N "checking for int... $ECHO_C" >&6
33831 if test "${ac_cv_type_int+set}" = set; then
33832 echo $ECHO_N "(cached) $ECHO_C" >&6
33834 cat >conftest.$ac_ext <<_ACEOF
33837 cat confdefs.h >>conftest.$ac_ext
33838 cat >>conftest.$ac_ext <<_ACEOF
33839 /* end confdefs.h. */
33840 $ac_includes_default
33852 rm -f conftest.$ac_objext
33853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33854 (eval $ac_compile) 2>conftest.er1
33856 grep -v '^ *+' conftest.er1 >conftest.err
33858 cat conftest.err >&5
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); } &&
33861 { ac_try='test -z "$ac_c_werror_flag"
33862 || test ! -s conftest.err'
33863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33864 (eval $ac_try) 2>&5
33866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867 (exit $ac_status); }; } &&
33868 { ac_try='test -s conftest.$ac_objext'
33869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33870 (eval $ac_try) 2>&5
33872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873 (exit $ac_status); }; }; then
33876 echo "$as_me: failed program was:" >&5
33877 sed 's/^/| /' conftest.$ac_ext >&5
33881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33883 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33884 echo "${ECHO_T}$ac_cv_type_int" >&6
33886 echo "$as_me:$LINENO: checking size of int" >&5
33887 echo $ECHO_N "checking size of int... $ECHO_C" >&6
33888 if test "${ac_cv_sizeof_int+set}" = set; then
33889 echo $ECHO_N "(cached) $ECHO_C" >&6
33891 if test "$ac_cv_type_int" = yes; then
33892 # The cast to unsigned long works around a bug in the HP C Compiler
33893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33895 # This bug is HP SR number 8606223364.
33896 if test "$cross_compiling" = yes; then
33897 # Depending upon the size, compute the lo and hi bounds.
33898 cat >conftest.$ac_ext <<_ACEOF
33901 cat confdefs.h >>conftest.$ac_ext
33902 cat >>conftest.$ac_ext <<_ACEOF
33903 /* end confdefs.h. */
33904 $ac_includes_default
33908 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
33915 rm -f conftest.$ac_objext
33916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33917 (eval $ac_compile) 2>conftest.er1
33919 grep -v '^ *+' conftest.er1 >conftest.err
33921 cat conftest.err >&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); } &&
33924 { ac_try='test -z "$ac_c_werror_flag"
33925 || test ! -s conftest.err'
33926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33927 (eval $ac_try) 2>&5
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); }; } &&
33931 { ac_try='test -s conftest.$ac_objext'
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; }; then
33939 cat >conftest.$ac_ext <<_ACEOF
33942 cat confdefs.h >>conftest.$ac_ext
33943 cat >>conftest.$ac_ext <<_ACEOF
33944 /* end confdefs.h. */
33945 $ac_includes_default
33949 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
33956 rm -f conftest.$ac_objext
33957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33958 (eval $ac_compile) 2>conftest.er1
33960 grep -v '^ *+' conftest.er1 >conftest.err
33962 cat conftest.err >&5
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); } &&
33965 { ac_try='test -z "$ac_c_werror_flag"
33966 || test ! -s conftest.err'
33967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 (eval $ac_try) 2>&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; } &&
33972 { ac_try='test -s conftest.$ac_objext'
33973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974 (eval $ac_try) 2>&5
33976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); }; }; then
33978 ac_hi=$ac_mid; break
33980 echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33983 ac_lo=`expr $ac_mid + 1`
33984 if test $ac_lo -le $ac_mid; then
33988 ac_mid=`expr 2 '*' $ac_mid + 1`
33990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33993 echo "$as_me: failed program was:" >&5
33994 sed 's/^/| /' conftest.$ac_ext >&5
33996 cat >conftest.$ac_ext <<_ACEOF
33999 cat confdefs.h >>conftest.$ac_ext
34000 cat >>conftest.$ac_ext <<_ACEOF
34001 /* end confdefs.h. */
34002 $ac_includes_default
34006 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
34013 rm -f conftest.$ac_objext
34014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34015 (eval $ac_compile) 2>conftest.er1
34017 grep -v '^ *+' conftest.er1 >conftest.err
34019 cat conftest.err >&5
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); } &&
34022 { ac_try='test -z "$ac_c_werror_flag"
34023 || test ! -s conftest.err'
34024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025 (eval $ac_try) 2>&5
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); }; } &&
34029 { ac_try='test -s conftest.$ac_objext'
34030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34031 (eval $ac_try) 2>&5
34033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); }; }; then
34037 cat >conftest.$ac_ext <<_ACEOF
34040 cat confdefs.h >>conftest.$ac_ext
34041 cat >>conftest.$ac_ext <<_ACEOF
34042 /* end confdefs.h. */
34043 $ac_includes_default
34047 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34054 rm -f conftest.$ac_objext
34055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34056 (eval $ac_compile) 2>conftest.er1
34058 grep -v '^ *+' conftest.er1 >conftest.err
34060 cat conftest.err >&5
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); } &&
34063 { ac_try='test -z "$ac_c_werror_flag"
34064 || test ! -s conftest.err'
34065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066 (eval $ac_try) 2>&5
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); }; } &&
34070 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34076 ac_lo=$ac_mid; break
34078 echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34081 ac_hi=`expr '(' $ac_mid ')' - 1`
34082 if test $ac_mid -le $ac_hi; then
34086 ac_mid=`expr 2 '*' $ac_mid`
34088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34091 echo "$as_me: failed program was:" >&5
34092 sed 's/^/| /' conftest.$ac_ext >&5
34096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34099 # Binary search between lo and hi bounds.
34100 while test "x$ac_lo" != "x$ac_hi"; do
34101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34102 cat >conftest.$ac_ext <<_ACEOF
34105 cat confdefs.h >>conftest.$ac_ext
34106 cat >>conftest.$ac_ext <<_ACEOF
34107 /* end confdefs.h. */
34108 $ac_includes_default
34112 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34119 rm -f conftest.$ac_objext
34120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34121 (eval $ac_compile) 2>conftest.er1
34123 grep -v '^ *+' conftest.er1 >conftest.err
34125 cat conftest.err >&5
34126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127 (exit $ac_status); } &&
34128 { ac_try='test -z "$ac_c_werror_flag"
34129 || test ! -s conftest.err'
34130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34131 (eval $ac_try) 2>&5
34133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134 (exit $ac_status); }; } &&
34135 { ac_try='test -s conftest.$ac_objext'
34136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137 (eval $ac_try) 2>&5
34139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); }; }; then
34143 echo "$as_me: failed program was:" >&5
34144 sed 's/^/| /' conftest.$ac_ext >&5
34146 ac_lo=`expr '(' $ac_mid ')' + 1`
34148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34151 ?*) ac_cv_sizeof_int=$ac_lo;;
34152 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34153 See \`config.log' for more details." >&5
34154 echo "$as_me: error: cannot compute sizeof (int), 77
34155 See \`config.log' for more details." >&2;}
34156 { (exit 1); exit 1; }; } ;;
34159 if test "$cross_compiling" = yes; then
34160 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34161 See \`config.log' for more details." >&5
34162 echo "$as_me: error: cannot run test program while cross compiling
34163 See \`config.log' for more details." >&2;}
34164 { (exit 1); exit 1; }; }
34166 cat >conftest.$ac_ext <<_ACEOF
34169 cat confdefs.h >>conftest.$ac_ext
34170 cat >>conftest.$ac_ext <<_ACEOF
34171 /* end confdefs.h. */
34172 $ac_includes_default
34173 long longval () { return (long) (sizeof (int)); }
34174 unsigned long ulongval () { return (long) (sizeof (int)); }
34176 #include <stdlib.h>
34181 FILE *f = fopen ("conftest.val", "w");
34184 if (((long) (sizeof (int))) < 0)
34186 long i = longval ();
34187 if (i != ((long) (sizeof (int))))
34189 fprintf (f, "%ld\n", i);
34193 unsigned long i = ulongval ();
34194 if (i != ((long) (sizeof (int))))
34196 fprintf (f, "%lu\n", i);
34198 exit (ferror (f) || fclose (f) != 0);
34204 rm -f conftest$ac_exeext
34205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34206 (eval $ac_link) 2>&5
34208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211 (eval $ac_try) 2>&5
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); }; }; then
34215 ac_cv_sizeof_int=`cat conftest.val`
34217 echo "$as_me: program exited with status $ac_status" >&5
34218 echo "$as_me: failed program was:" >&5
34219 sed 's/^/| /' conftest.$ac_ext >&5
34221 ( exit $ac_status )
34222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34223 See \`config.log' for more details." >&5
34224 echo "$as_me: error: cannot compute sizeof (int), 77
34225 See \`config.log' for more details." >&2;}
34226 { (exit 1); exit 1; }; }
34228 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34236 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34237 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34238 cat >>confdefs.h <<_ACEOF
34239 #define SIZEOF_INT $ac_cv_sizeof_int
34243 echo "$as_me:$LINENO: checking for long" >&5
34244 echo $ECHO_N "checking for long... $ECHO_C" >&6
34245 if test "${ac_cv_type_long+set}" = set; then
34246 echo $ECHO_N "(cached) $ECHO_C" >&6
34248 cat >conftest.$ac_ext <<_ACEOF
34251 cat confdefs.h >>conftest.$ac_ext
34252 cat >>conftest.$ac_ext <<_ACEOF
34253 /* end confdefs.h. */
34254 $ac_includes_default
34266 rm -f conftest.$ac_objext
34267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34268 (eval $ac_compile) 2>conftest.er1
34270 grep -v '^ *+' conftest.er1 >conftest.err
34272 cat conftest.err >&5
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); } &&
34275 { ac_try='test -z "$ac_c_werror_flag"
34276 || test ! -s conftest.err'
34277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34278 (eval $ac_try) 2>&5
34280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34281 (exit $ac_status); }; } &&
34282 { ac_try='test -s conftest.$ac_objext'
34283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34284 (eval $ac_try) 2>&5
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); }; }; then
34288 ac_cv_type_long=yes
34290 echo "$as_me: failed program was:" >&5
34291 sed 's/^/| /' conftest.$ac_ext >&5
34295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34297 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34298 echo "${ECHO_T}$ac_cv_type_long" >&6
34300 echo "$as_me:$LINENO: checking size of long" >&5
34301 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34302 if test "${ac_cv_sizeof_long+set}" = set; then
34303 echo $ECHO_N "(cached) $ECHO_C" >&6
34305 if test "$ac_cv_type_long" = yes; then
34306 # The cast to unsigned long works around a bug in the HP C Compiler
34307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34309 # This bug is HP SR number 8606223364.
34310 if test "$cross_compiling" = yes; then
34311 # Depending upon the size, compute the lo and hi bounds.
34312 cat >conftest.$ac_ext <<_ACEOF
34315 cat confdefs.h >>conftest.$ac_ext
34316 cat >>conftest.$ac_ext <<_ACEOF
34317 /* end confdefs.h. */
34318 $ac_includes_default
34322 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34329 rm -f conftest.$ac_objext
34330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34331 (eval $ac_compile) 2>conftest.er1
34333 grep -v '^ *+' conftest.er1 >conftest.err
34335 cat conftest.err >&5
34336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337 (exit $ac_status); } &&
34338 { ac_try='test -z "$ac_c_werror_flag"
34339 || test ! -s conftest.err'
34340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34341 (eval $ac_try) 2>&5
34343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34344 (exit $ac_status); }; } &&
34345 { ac_try='test -s conftest.$ac_objext'
34346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34347 (eval $ac_try) 2>&5
34349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34350 (exit $ac_status); }; }; then
34353 cat >conftest.$ac_ext <<_ACEOF
34356 cat confdefs.h >>conftest.$ac_ext
34357 cat >>conftest.$ac_ext <<_ACEOF
34358 /* end confdefs.h. */
34359 $ac_includes_default
34363 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34370 rm -f conftest.$ac_objext
34371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34372 (eval $ac_compile) 2>conftest.er1
34374 grep -v '^ *+' conftest.er1 >conftest.err
34376 cat conftest.err >&5
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); } &&
34379 { ac_try='test -z "$ac_c_werror_flag"
34380 || test ! -s conftest.err'
34381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34382 (eval $ac_try) 2>&5
34384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385 (exit $ac_status); }; } &&
34386 { ac_try='test -s conftest.$ac_objext'
34387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388 (eval $ac_try) 2>&5
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); }; }; then
34392 ac_hi=$ac_mid; break
34394 echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34397 ac_lo=`expr $ac_mid + 1`
34398 if test $ac_lo -le $ac_mid; then
34402 ac_mid=`expr 2 '*' $ac_mid + 1`
34404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34407 echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34410 cat >conftest.$ac_ext <<_ACEOF
34413 cat confdefs.h >>conftest.$ac_ext
34414 cat >>conftest.$ac_ext <<_ACEOF
34415 /* end confdefs.h. */
34416 $ac_includes_default
34420 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34427 rm -f conftest.$ac_objext
34428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34429 (eval $ac_compile) 2>conftest.er1
34431 grep -v '^ *+' conftest.er1 >conftest.err
34433 cat conftest.err >&5
34434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435 (exit $ac_status); } &&
34436 { ac_try='test -z "$ac_c_werror_flag"
34437 || test ! -s conftest.err'
34438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439 (eval $ac_try) 2>&5
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); }; } &&
34443 { ac_try='test -s conftest.$ac_objext'
34444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445 (eval $ac_try) 2>&5
34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 (exit $ac_status); }; }; then
34451 cat >conftest.$ac_ext <<_ACEOF
34454 cat confdefs.h >>conftest.$ac_ext
34455 cat >>conftest.$ac_ext <<_ACEOF
34456 /* end confdefs.h. */
34457 $ac_includes_default
34461 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34468 rm -f conftest.$ac_objext
34469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34470 (eval $ac_compile) 2>conftest.er1
34472 grep -v '^ *+' conftest.er1 >conftest.err
34474 cat conftest.err >&5
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); } &&
34477 { ac_try='test -z "$ac_c_werror_flag"
34478 || test ! -s conftest.err'
34479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34480 (eval $ac_try) 2>&5
34482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34483 (exit $ac_status); }; } &&
34484 { ac_try='test -s conftest.$ac_objext'
34485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34486 (eval $ac_try) 2>&5
34488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489 (exit $ac_status); }; }; then
34490 ac_lo=$ac_mid; break
34492 echo "$as_me: failed program was:" >&5
34493 sed 's/^/| /' conftest.$ac_ext >&5
34495 ac_hi=`expr '(' $ac_mid ')' - 1`
34496 if test $ac_mid -le $ac_hi; then
34500 ac_mid=`expr 2 '*' $ac_mid`
34502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34505 echo "$as_me: failed program was:" >&5
34506 sed 's/^/| /' conftest.$ac_ext >&5
34510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34513 # Binary search between lo and hi bounds.
34514 while test "x$ac_lo" != "x$ac_hi"; do
34515 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34516 cat >conftest.$ac_ext <<_ACEOF
34519 cat confdefs.h >>conftest.$ac_ext
34520 cat >>conftest.$ac_ext <<_ACEOF
34521 /* end confdefs.h. */
34522 $ac_includes_default
34526 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34533 rm -f conftest.$ac_objext
34534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34535 (eval $ac_compile) 2>conftest.er1
34537 grep -v '^ *+' conftest.er1 >conftest.err
34539 cat conftest.err >&5
34540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34541 (exit $ac_status); } &&
34542 { ac_try='test -z "$ac_c_werror_flag"
34543 || test ! -s conftest.err'
34544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34545 (eval $ac_try) 2>&5
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); }; } &&
34549 { ac_try='test -s conftest.$ac_objext'
34550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34551 (eval $ac_try) 2>&5
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); }; }; then
34557 echo "$as_me: failed program was:" >&5
34558 sed 's/^/| /' conftest.$ac_ext >&5
34560 ac_lo=`expr '(' $ac_mid ')' + 1`
34562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34565 ?*) ac_cv_sizeof_long=$ac_lo;;
34566 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34567 See \`config.log' for more details." >&5
34568 echo "$as_me: error: cannot compute sizeof (long), 77
34569 See \`config.log' for more details." >&2;}
34570 { (exit 1); exit 1; }; } ;;
34573 if test "$cross_compiling" = yes; then
34574 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34575 See \`config.log' for more details." >&5
34576 echo "$as_me: error: cannot run test program while cross compiling
34577 See \`config.log' for more details." >&2;}
34578 { (exit 1); exit 1; }; }
34580 cat >conftest.$ac_ext <<_ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h. */
34586 $ac_includes_default
34587 long longval () { return (long) (sizeof (long)); }
34588 unsigned long ulongval () { return (long) (sizeof (long)); }
34590 #include <stdlib.h>
34595 FILE *f = fopen ("conftest.val", "w");
34598 if (((long) (sizeof (long))) < 0)
34600 long i = longval ();
34601 if (i != ((long) (sizeof (long))))
34603 fprintf (f, "%ld\n", i);
34607 unsigned long i = ulongval ();
34608 if (i != ((long) (sizeof (long))))
34610 fprintf (f, "%lu\n", i);
34612 exit (ferror (f) || fclose (f) != 0);
34618 rm -f conftest$ac_exeext
34619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34620 (eval $ac_link) 2>&5
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34625 (eval $ac_try) 2>&5
34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628 (exit $ac_status); }; }; then
34629 ac_cv_sizeof_long=`cat conftest.val`
34631 echo "$as_me: program exited with status $ac_status" >&5
34632 echo "$as_me: failed program was:" >&5
34633 sed 's/^/| /' conftest.$ac_ext >&5
34635 ( exit $ac_status )
34636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34637 See \`config.log' for more details." >&5
34638 echo "$as_me: error: cannot compute sizeof (long), 77
34639 See \`config.log' for more details." >&2;}
34640 { (exit 1); exit 1; }; }
34642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34647 ac_cv_sizeof_long=0
34650 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34651 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
34652 cat >>confdefs.h <<_ACEOF
34653 #define SIZEOF_LONG $ac_cv_sizeof_long
34657 echo "$as_me:$LINENO: checking for long long" >&5
34658 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34659 if test "${ac_cv_type_long_long+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34662 cat >conftest.$ac_ext <<_ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h. */
34668 $ac_includes_default
34672 if ((long long *) 0)
34674 if (sizeof (long long))
34680 rm -f conftest.$ac_objext
34681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34682 (eval $ac_compile) 2>conftest.er1
34684 grep -v '^ *+' conftest.er1 >conftest.err
34686 cat conftest.err >&5
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); } &&
34689 { ac_try='test -z "$ac_c_werror_flag"
34690 || test ! -s conftest.err'
34691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692 (eval $ac_try) 2>&5
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); }; } &&
34696 { ac_try='test -s conftest.$ac_objext'
34697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34698 (eval $ac_try) 2>&5
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); }; }; then
34702 ac_cv_type_long_long=yes
34704 echo "$as_me: failed program was:" >&5
34705 sed 's/^/| /' conftest.$ac_ext >&5
34707 ac_cv_type_long_long=no
34709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34711 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34712 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34714 echo "$as_me:$LINENO: checking size of long long" >&5
34715 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
34716 if test "${ac_cv_sizeof_long_long+set}" = set; then
34717 echo $ECHO_N "(cached) $ECHO_C" >&6
34719 if test "$ac_cv_type_long_long" = yes; then
34720 # The cast to unsigned long works around a bug in the HP C Compiler
34721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34723 # This bug is HP SR number 8606223364.
34724 if test "$cross_compiling" = yes; then
34725 # Depending upon the size, compute the lo and hi bounds.
34726 cat >conftest.$ac_ext <<_ACEOF
34729 cat confdefs.h >>conftest.$ac_ext
34730 cat >>conftest.$ac_ext <<_ACEOF
34731 /* end confdefs.h. */
34732 $ac_includes_default
34736 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
34743 rm -f conftest.$ac_objext
34744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34745 (eval $ac_compile) 2>conftest.er1
34747 grep -v '^ *+' conftest.er1 >conftest.err
34749 cat conftest.err >&5
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); } &&
34752 { ac_try='test -z "$ac_c_werror_flag"
34753 || test ! -s conftest.err'
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; } &&
34759 { ac_try='test -s conftest.$ac_objext'
34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761 (eval $ac_try) 2>&5
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; }; then
34767 cat >conftest.$ac_ext <<_ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h. */
34773 $ac_includes_default
34777 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34784 rm -f conftest.$ac_objext
34785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34786 (eval $ac_compile) 2>conftest.er1
34788 grep -v '^ *+' conftest.er1 >conftest.err
34790 cat conftest.err >&5
34791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34792 (exit $ac_status); } &&
34793 { ac_try='test -z "$ac_c_werror_flag"
34794 || test ! -s conftest.err'
34795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34796 (eval $ac_try) 2>&5
34798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34799 (exit $ac_status); }; } &&
34800 { ac_try='test -s conftest.$ac_objext'
34801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34802 (eval $ac_try) 2>&5
34804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34805 (exit $ac_status); }; }; then
34806 ac_hi=$ac_mid; break
34808 echo "$as_me: failed program was:" >&5
34809 sed 's/^/| /' conftest.$ac_ext >&5
34811 ac_lo=`expr $ac_mid + 1`
34812 if test $ac_lo -le $ac_mid; then
34816 ac_mid=`expr 2 '*' $ac_mid + 1`
34818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34821 echo "$as_me: failed program was:" >&5
34822 sed 's/^/| /' conftest.$ac_ext >&5
34824 cat >conftest.$ac_ext <<_ACEOF
34827 cat confdefs.h >>conftest.$ac_ext
34828 cat >>conftest.$ac_ext <<_ACEOF
34829 /* end confdefs.h. */
34830 $ac_includes_default
34834 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
34841 rm -f conftest.$ac_objext
34842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34843 (eval $ac_compile) 2>conftest.er1
34845 grep -v '^ *+' conftest.er1 >conftest.err
34847 cat conftest.err >&5
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); } &&
34850 { ac_try='test -z "$ac_c_werror_flag"
34851 || test ! -s conftest.err'
34852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34853 (eval $ac_try) 2>&5
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); }; } &&
34857 { ac_try='test -s conftest.$ac_objext'
34858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859 (eval $ac_try) 2>&5
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); }; }; then
34865 cat >conftest.$ac_ext <<_ACEOF
34868 cat confdefs.h >>conftest.$ac_ext
34869 cat >>conftest.$ac_ext <<_ACEOF
34870 /* end confdefs.h. */
34871 $ac_includes_default
34875 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
34882 rm -f conftest.$ac_objext
34883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34884 (eval $ac_compile) 2>conftest.er1
34886 grep -v '^ *+' conftest.er1 >conftest.err
34888 cat conftest.err >&5
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); } &&
34891 { ac_try='test -z "$ac_c_werror_flag"
34892 || test ! -s conftest.err'
34893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894 (eval $ac_try) 2>&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); }; } &&
34898 { ac_try='test -s conftest.$ac_objext'
34899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900 (eval $ac_try) 2>&5
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); }; }; then
34904 ac_lo=$ac_mid; break
34906 echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34909 ac_hi=`expr '(' $ac_mid ')' - 1`
34910 if test $ac_mid -le $ac_hi; then
34914 ac_mid=`expr 2 '*' $ac_mid`
34916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34919 echo "$as_me: failed program was:" >&5
34920 sed 's/^/| /' conftest.$ac_ext >&5
34924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34927 # Binary search between lo and hi bounds.
34928 while test "x$ac_lo" != "x$ac_hi"; do
34929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34930 cat >conftest.$ac_ext <<_ACEOF
34933 cat confdefs.h >>conftest.$ac_ext
34934 cat >>conftest.$ac_ext <<_ACEOF
34935 /* end confdefs.h. */
34936 $ac_includes_default
34940 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
34947 rm -f conftest.$ac_objext
34948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34949 (eval $ac_compile) 2>conftest.er1
34951 grep -v '^ *+' conftest.er1 >conftest.err
34953 cat conftest.err >&5
34954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955 (exit $ac_status); } &&
34956 { ac_try='test -z "$ac_c_werror_flag"
34957 || test ! -s conftest.err'
34958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959 (eval $ac_try) 2>&5
34961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); }; } &&
34963 { ac_try='test -s conftest.$ac_objext'
34964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965 (eval $ac_try) 2>&5
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; }; then
34971 echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34974 ac_lo=`expr '(' $ac_mid ')' + 1`
34976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34979 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34980 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
34981 See \`config.log' for more details." >&5
34982 echo "$as_me: error: cannot compute sizeof (long long), 77
34983 See \`config.log' for more details." >&2;}
34984 { (exit 1); exit 1; }; } ;;
34987 if test "$cross_compiling" = yes; then
34988 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34989 See \`config.log' for more details." >&5
34990 echo "$as_me: error: cannot run test program while cross compiling
34991 See \`config.log' for more details." >&2;}
34992 { (exit 1); exit 1; }; }
34994 cat >conftest.$ac_ext <<_ACEOF
34997 cat confdefs.h >>conftest.$ac_ext
34998 cat >>conftest.$ac_ext <<_ACEOF
34999 /* end confdefs.h. */
35000 $ac_includes_default
35001 long longval () { return (long) (sizeof (long long)); }
35002 unsigned long ulongval () { return (long) (sizeof (long long)); }
35004 #include <stdlib.h>
35009 FILE *f = fopen ("conftest.val", "w");
35012 if (((long) (sizeof (long long))) < 0)
35014 long i = longval ();
35015 if (i != ((long) (sizeof (long long))))
35017 fprintf (f, "%ld\n", i);
35021 unsigned long i = ulongval ();
35022 if (i != ((long) (sizeof (long long))))
35024 fprintf (f, "%lu\n", i);
35026 exit (ferror (f) || fclose (f) != 0);
35032 rm -f conftest$ac_exeext
35033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35034 (eval $ac_link) 2>&5
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039 (eval $ac_try) 2>&5
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; }; then
35043 ac_cv_sizeof_long_long=`cat conftest.val`
35045 echo "$as_me: program exited with status $ac_status" >&5
35046 echo "$as_me: failed program was:" >&5
35047 sed 's/^/| /' conftest.$ac_ext >&5
35049 ( exit $ac_status )
35050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35051 See \`config.log' for more details." >&5
35052 echo "$as_me: error: cannot compute sizeof (long long), 77
35053 See \`config.log' for more details." >&2;}
35054 { (exit 1); exit 1; }; }
35056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35061 ac_cv_sizeof_long_long=0
35064 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35065 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35066 cat >>confdefs.h <<_ACEOF
35067 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35071 echo "$as_me:$LINENO: checking for wchar_t" >&5
35072 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35073 if test "${ac_cv_type_wchar_t+set}" = set; then
35074 echo $ECHO_N "(cached) $ECHO_C" >&6
35076 cat >conftest.$ac_ext <<_ACEOF
35079 cat confdefs.h >>conftest.$ac_ext
35080 cat >>conftest.$ac_ext <<_ACEOF
35081 /* end confdefs.h. */
35082 $ac_includes_default
35088 if (sizeof (wchar_t))
35094 rm -f conftest.$ac_objext
35095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35096 (eval $ac_compile) 2>conftest.er1
35098 grep -v '^ *+' conftest.er1 >conftest.err
35100 cat conftest.err >&5
35101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102 (exit $ac_status); } &&
35103 { ac_try='test -z "$ac_c_werror_flag"
35104 || test ! -s conftest.err'
35105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35106 (eval $ac_try) 2>&5
35108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109 (exit $ac_status); }; } &&
35110 { ac_try='test -s conftest.$ac_objext'
35111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35112 (eval $ac_try) 2>&5
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); }; }; then
35116 ac_cv_type_wchar_t=yes
35118 echo "$as_me: failed program was:" >&5
35119 sed 's/^/| /' conftest.$ac_ext >&5
35121 ac_cv_type_wchar_t=no
35123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35125 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35126 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35128 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35129 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35130 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35131 echo $ECHO_N "(cached) $ECHO_C" >&6
35133 if test "$ac_cv_type_wchar_t" = yes; then
35134 # The cast to unsigned long works around a bug in the HP C Compiler
35135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35137 # This bug is HP SR number 8606223364.
35138 if test "$cross_compiling" = yes; then
35139 # Depending upon the size, compute the lo and hi bounds.
35140 cat >conftest.$ac_ext <<_ACEOF
35143 cat confdefs.h >>conftest.$ac_ext
35144 cat >>conftest.$ac_ext <<_ACEOF
35145 /* end confdefs.h. */
35146 $ac_includes_default
35150 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35157 rm -f conftest.$ac_objext
35158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35159 (eval $ac_compile) 2>conftest.er1
35161 grep -v '^ *+' conftest.er1 >conftest.err
35163 cat conftest.err >&5
35164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165 (exit $ac_status); } &&
35166 { ac_try='test -z "$ac_c_werror_flag"
35167 || test ! -s conftest.err'
35168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169 (eval $ac_try) 2>&5
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); }; } &&
35173 { ac_try='test -s conftest.$ac_objext'
35174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175 (eval $ac_try) 2>&5
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); }; }; then
35181 cat >conftest.$ac_ext <<_ACEOF
35184 cat confdefs.h >>conftest.$ac_ext
35185 cat >>conftest.$ac_ext <<_ACEOF
35186 /* end confdefs.h. */
35187 $ac_includes_default
35191 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35198 rm -f conftest.$ac_objext
35199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35200 (eval $ac_compile) 2>conftest.er1
35202 grep -v '^ *+' conftest.er1 >conftest.err
35204 cat conftest.err >&5
35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206 (exit $ac_status); } &&
35207 { ac_try='test -z "$ac_c_werror_flag"
35208 || test ! -s conftest.err'
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; } &&
35214 { ac_try='test -s conftest.$ac_objext'
35215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216 (eval $ac_try) 2>&5
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); }; }; then
35220 ac_hi=$ac_mid; break
35222 echo "$as_me: failed program was:" >&5
35223 sed 's/^/| /' conftest.$ac_ext >&5
35225 ac_lo=`expr $ac_mid + 1`
35226 if test $ac_lo -le $ac_mid; then
35230 ac_mid=`expr 2 '*' $ac_mid + 1`
35232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35235 echo "$as_me: failed program was:" >&5
35236 sed 's/^/| /' conftest.$ac_ext >&5
35238 cat >conftest.$ac_ext <<_ACEOF
35241 cat confdefs.h >>conftest.$ac_ext
35242 cat >>conftest.$ac_ext <<_ACEOF
35243 /* end confdefs.h. */
35244 $ac_includes_default
35248 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35255 rm -f conftest.$ac_objext
35256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35257 (eval $ac_compile) 2>conftest.er1
35259 grep -v '^ *+' conftest.er1 >conftest.err
35261 cat conftest.err >&5
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); } &&
35264 { ac_try='test -z "$ac_c_werror_flag"
35265 || test ! -s conftest.err'
35266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35267 (eval $ac_try) 2>&5
35269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270 (exit $ac_status); }; } &&
35271 { ac_try='test -s conftest.$ac_objext'
35272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35273 (eval $ac_try) 2>&5
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); }; }; then
35279 cat >conftest.$ac_ext <<_ACEOF
35282 cat confdefs.h >>conftest.$ac_ext
35283 cat >>conftest.$ac_ext <<_ACEOF
35284 /* end confdefs.h. */
35285 $ac_includes_default
35289 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35296 rm -f conftest.$ac_objext
35297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35298 (eval $ac_compile) 2>conftest.er1
35300 grep -v '^ *+' conftest.er1 >conftest.err
35302 cat conftest.err >&5
35303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35304 (exit $ac_status); } &&
35305 { ac_try='test -z "$ac_c_werror_flag"
35306 || test ! -s conftest.err'
35307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35308 (eval $ac_try) 2>&5
35310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311 (exit $ac_status); }; } &&
35312 { ac_try='test -s conftest.$ac_objext'
35313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35314 (eval $ac_try) 2>&5
35316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317 (exit $ac_status); }; }; then
35318 ac_lo=$ac_mid; break
35320 echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35323 ac_hi=`expr '(' $ac_mid ')' - 1`
35324 if test $ac_mid -le $ac_hi; then
35328 ac_mid=`expr 2 '*' $ac_mid`
35330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35333 echo "$as_me: failed program was:" >&5
35334 sed 's/^/| /' conftest.$ac_ext >&5
35338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35341 # Binary search between lo and hi bounds.
35342 while test "x$ac_lo" != "x$ac_hi"; do
35343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35344 cat >conftest.$ac_ext <<_ACEOF
35347 cat confdefs.h >>conftest.$ac_ext
35348 cat >>conftest.$ac_ext <<_ACEOF
35349 /* end confdefs.h. */
35350 $ac_includes_default
35354 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35361 rm -f conftest.$ac_objext
35362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35363 (eval $ac_compile) 2>conftest.er1
35365 grep -v '^ *+' conftest.er1 >conftest.err
35367 cat conftest.err >&5
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); } &&
35370 { ac_try='test -z "$ac_c_werror_flag"
35371 || test ! -s conftest.err'
35372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35373 (eval $ac_try) 2>&5
35375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376 (exit $ac_status); }; } &&
35377 { ac_try='test -s conftest.$ac_objext'
35378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35379 (eval $ac_try) 2>&5
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); }; }; then
35385 echo "$as_me: failed program was:" >&5
35386 sed 's/^/| /' conftest.$ac_ext >&5
35388 ac_lo=`expr '(' $ac_mid ')' + 1`
35390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35393 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35394 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35395 See \`config.log' for more details." >&5
35396 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35397 See \`config.log' for more details." >&2;}
35398 { (exit 1); exit 1; }; } ;;
35401 if test "$cross_compiling" = yes; then
35402 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35403 See \`config.log' for more details." >&5
35404 echo "$as_me: error: cannot run test program while cross compiling
35405 See \`config.log' for more details." >&2;}
35406 { (exit 1); exit 1; }; }
35408 cat >conftest.$ac_ext <<_ACEOF
35411 cat confdefs.h >>conftest.$ac_ext
35412 cat >>conftest.$ac_ext <<_ACEOF
35413 /* end confdefs.h. */
35414 $ac_includes_default
35415 long longval () { return (long) (sizeof (wchar_t)); }
35416 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35418 #include <stdlib.h>
35423 FILE *f = fopen ("conftest.val", "w");
35426 if (((long) (sizeof (wchar_t))) < 0)
35428 long i = longval ();
35429 if (i != ((long) (sizeof (wchar_t))))
35431 fprintf (f, "%ld\n", i);
35435 unsigned long i = ulongval ();
35436 if (i != ((long) (sizeof (wchar_t))))
35438 fprintf (f, "%lu\n", i);
35440 exit (ferror (f) || fclose (f) != 0);
35446 rm -f conftest$ac_exeext
35447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35448 (eval $ac_link) 2>&5
35450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35453 (eval $ac_try) 2>&5
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); }; }; then
35457 ac_cv_sizeof_wchar_t=`cat conftest.val`
35459 echo "$as_me: program exited with status $ac_status" >&5
35460 echo "$as_me: failed program was:" >&5
35461 sed 's/^/| /' conftest.$ac_ext >&5
35463 ( exit $ac_status )
35464 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35465 See \`config.log' for more details." >&5
35466 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35467 See \`config.log' for more details." >&2;}
35468 { (exit 1); exit 1; }; }
35470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35475 ac_cv_sizeof_wchar_t=0
35478 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35479 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35480 cat >>confdefs.h <<_ACEOF
35481 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35486 if test "$ac_cv_sizeof_int" -lt 4 ; then
35487 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35488 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35491 cat >>confdefs.h <<\_ACEOF
35492 #define LBER_INT_T long
35497 cat >>confdefs.h <<\_ACEOF
35498 #define LBER_INT_T int
35504 cat >>confdefs.h <<\_ACEOF
35505 #define LBER_LEN_T long
35509 cat >>confdefs.h <<\_ACEOF
35510 #define LBER_SOCKET_T int
35514 cat >>confdefs.h <<\_ACEOF
35515 #define LBER_TAG_T long
35519 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35520 if test $ac_cv_sizeof_long_long -gt 4 ; then
35521 ol_with_mp=longlong
35523 cat >>confdefs.h <<\_ACEOF
35524 #define USE_MP_LONG_LONG 1
35527 elif test $ol_with_mp = longlong ; then
35528 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35529 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35530 { (exit 1); exit 1; }; }
35533 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35534 if test $ac_cv_sizeof_long -gt 4 ; then
35537 cat >>confdefs.h <<\_ACEOF
35538 #define USE_MP_LONG 1
35541 elif test $ol_with_mp = long ; then
35542 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35543 echo "$as_me: error: long unusable for multiple precision" >&2;}
35544 { (exit 1); exit 1; }; }
35547 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35549 for ac_header in openssl/bn.h
35551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35553 echo "$as_me:$LINENO: checking for $ac_header" >&5
35554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35556 echo $ECHO_N "(cached) $ECHO_C" >&6
35558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35561 # Is the header compilable?
35562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35564 cat >conftest.$ac_ext <<_ACEOF
35567 cat confdefs.h >>conftest.$ac_ext
35568 cat >>conftest.$ac_ext <<_ACEOF
35569 /* end confdefs.h. */
35570 $ac_includes_default
35571 #include <$ac_header>
35573 rm -f conftest.$ac_objext
35574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35575 (eval $ac_compile) 2>conftest.er1
35577 grep -v '^ *+' conftest.er1 >conftest.err
35579 cat conftest.err >&5
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); } &&
35582 { ac_try='test -z "$ac_c_werror_flag"
35583 || test ! -s conftest.err'
35584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585 (eval $ac_try) 2>&5
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); }; } &&
35589 { ac_try='test -s conftest.$ac_objext'
35590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35591 (eval $ac_try) 2>&5
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); }; }; then
35595 ac_header_compiler=yes
35597 echo "$as_me: failed program was:" >&5
35598 sed 's/^/| /' conftest.$ac_ext >&5
35600 ac_header_compiler=no
35602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35604 echo "${ECHO_T}$ac_header_compiler" >&6
35606 # Is the header present?
35607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35609 cat >conftest.$ac_ext <<_ACEOF
35612 cat confdefs.h >>conftest.$ac_ext
35613 cat >>conftest.$ac_ext <<_ACEOF
35614 /* end confdefs.h. */
35615 #include <$ac_header>
35617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35620 grep -v '^ *+' conftest.er1 >conftest.err
35622 cat conftest.err >&5
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); } >/dev/null; then
35625 if test -s conftest.err; then
35626 ac_cpp_err=$ac_c_preproc_warn_flag
35627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35634 if test -z "$ac_cpp_err"; then
35635 ac_header_preproc=yes
35637 echo "$as_me: failed program was:" >&5
35638 sed 's/^/| /' conftest.$ac_ext >&5
35640 ac_header_preproc=no
35642 rm -f conftest.err conftest.$ac_ext
35643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35644 echo "${ECHO_T}$ac_header_preproc" >&6
35646 # So? What about this header?
35647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35653 ac_header_preproc=yes
35656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35663 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35670 ## --------------------------------------------- ##
35671 ## Report this to <http://www.openldap.org/its/> ##
35672 ## --------------------------------------------- ##
35675 sed "s/^/$as_me: WARNING: /" >&2
35678 echo "$as_me:$LINENO: checking for $ac_header" >&5
35679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35681 echo $ECHO_N "(cached) $ECHO_C" >&6
35683 eval "$as_ac_Header=\$ac_header_preproc"
35685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35690 cat >>confdefs.h <<_ACEOF
35691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35699 for ac_header in openssl/crypto.h
35701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35703 echo "$as_me:$LINENO: checking for $ac_header" >&5
35704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35706 echo $ECHO_N "(cached) $ECHO_C" >&6
35708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35711 # Is the header compilable?
35712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35714 cat >conftest.$ac_ext <<_ACEOF
35717 cat confdefs.h >>conftest.$ac_ext
35718 cat >>conftest.$ac_ext <<_ACEOF
35719 /* end confdefs.h. */
35720 $ac_includes_default
35721 #include <$ac_header>
35723 rm -f conftest.$ac_objext
35724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35725 (eval $ac_compile) 2>conftest.er1
35727 grep -v '^ *+' conftest.er1 >conftest.err
35729 cat conftest.err >&5
35730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); } &&
35732 { ac_try='test -z "$ac_c_werror_flag"
35733 || test ! -s conftest.err'
35734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35735 (eval $ac_try) 2>&5
35737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); }; } &&
35739 { ac_try='test -s conftest.$ac_objext'
35740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35741 (eval $ac_try) 2>&5
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); }; }; then
35745 ac_header_compiler=yes
35747 echo "$as_me: failed program was:" >&5
35748 sed 's/^/| /' conftest.$ac_ext >&5
35750 ac_header_compiler=no
35752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35754 echo "${ECHO_T}$ac_header_compiler" >&6
35756 # Is the header present?
35757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35759 cat >conftest.$ac_ext <<_ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h. */
35765 #include <$ac_header>
35767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35770 grep -v '^ *+' conftest.er1 >conftest.err
35772 cat conftest.err >&5
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); } >/dev/null; then
35775 if test -s conftest.err; then
35776 ac_cpp_err=$ac_c_preproc_warn_flag
35777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35784 if test -z "$ac_cpp_err"; then
35785 ac_header_preproc=yes
35787 echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35790 ac_header_preproc=no
35792 rm -f conftest.err conftest.$ac_ext
35793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35794 echo "${ECHO_T}$ac_header_preproc" >&6
35796 # So? What about this header?
35797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35803 ac_header_preproc=yes
35806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35820 ## --------------------------------------------- ##
35821 ## Report this to <http://www.openldap.org/its/> ##
35822 ## --------------------------------------------- ##
35825 sed "s/^/$as_me: WARNING: /" >&2
35828 echo "$as_me:$LINENO: checking for $ac_header" >&5
35829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35831 echo $ECHO_N "(cached) $ECHO_C" >&6
35833 eval "$as_ac_Header=\$ac_header_preproc"
35835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35840 cat >>confdefs.h <<_ACEOF
35841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35848 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35849 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35850 test "$ol_with_tls" = "found" ; then
35853 cat >>confdefs.h <<\_ACEOF
35854 #define USE_MP_BIGNUM 1
35857 elif test $ol_with_mp = bignum ; then
35858 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35859 echo "$as_me: error: bignum not available" >&2;}
35860 { (exit 1); exit 1; }; }
35863 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35865 for ac_header in gmp.h
35867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35869 echo "$as_me:$LINENO: checking for $ac_header" >&5
35870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35872 echo $ECHO_N "(cached) $ECHO_C" >&6
35874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35877 # Is the header compilable?
35878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35880 cat >conftest.$ac_ext <<_ACEOF
35883 cat confdefs.h >>conftest.$ac_ext
35884 cat >>conftest.$ac_ext <<_ACEOF
35885 /* end confdefs.h. */
35886 $ac_includes_default
35887 #include <$ac_header>
35889 rm -f conftest.$ac_objext
35890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35891 (eval $ac_compile) 2>conftest.er1
35893 grep -v '^ *+' conftest.er1 >conftest.err
35895 cat conftest.err >&5
35896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897 (exit $ac_status); } &&
35898 { ac_try='test -z "$ac_c_werror_flag"
35899 || test ! -s conftest.err'
35900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35901 (eval $ac_try) 2>&5
35903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904 (exit $ac_status); }; } &&
35905 { ac_try='test -s conftest.$ac_objext'
35906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35907 (eval $ac_try) 2>&5
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); }; }; then
35911 ac_header_compiler=yes
35913 echo "$as_me: failed program was:" >&5
35914 sed 's/^/| /' conftest.$ac_ext >&5
35916 ac_header_compiler=no
35918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35920 echo "${ECHO_T}$ac_header_compiler" >&6
35922 # Is the header present?
35923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35925 cat >conftest.$ac_ext <<_ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h. */
35931 #include <$ac_header>
35933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35936 grep -v '^ *+' conftest.er1 >conftest.err
35938 cat conftest.err >&5
35939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35940 (exit $ac_status); } >/dev/null; then
35941 if test -s conftest.err; then
35942 ac_cpp_err=$ac_c_preproc_warn_flag
35943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35950 if test -z "$ac_cpp_err"; then
35951 ac_header_preproc=yes
35953 echo "$as_me: failed program was:" >&5
35954 sed 's/^/| /' conftest.$ac_ext >&5
35956 ac_header_preproc=no
35958 rm -f conftest.err conftest.$ac_ext
35959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35960 echo "${ECHO_T}$ac_header_preproc" >&6
35962 # So? What about this header?
35963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35969 ac_header_preproc=yes
35972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35986 ## --------------------------------------------- ##
35987 ## Report this to <http://www.openldap.org/its/> ##
35988 ## --------------------------------------------- ##
35991 sed "s/^/$as_me: WARNING: /" >&2
35994 echo "$as_me:$LINENO: checking for $ac_header" >&5
35995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997 echo $ECHO_N "(cached) $ECHO_C" >&6
35999 eval "$as_ac_Header=\$ac_header_preproc"
36001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36006 cat >>confdefs.h <<_ACEOF
36007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36015 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36016 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36017 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36018 echo $ECHO_N "(cached) $ECHO_C" >&6
36020 ac_check_lib_save_LIBS=$LIBS
36022 cat >conftest.$ac_ext <<_ACEOF
36025 cat confdefs.h >>conftest.$ac_ext
36026 cat >>conftest.$ac_ext <<_ACEOF
36027 /* end confdefs.h. */
36029 /* Override any gcc2 internal prototype to avoid an error. */
36033 /* We use char because int might match the return type of a gcc2
36034 builtin and then its argument prototype would still apply. */
36035 char __gmpz_add_ui ();
36044 rm -f conftest.$ac_objext conftest$ac_exeext
36045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36046 (eval $ac_link) 2>conftest.er1
36048 grep -v '^ *+' conftest.er1 >conftest.err
36050 cat conftest.err >&5
36051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052 (exit $ac_status); } &&
36053 { ac_try='test -z "$ac_c_werror_flag"
36054 || test ! -s conftest.err'
36055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36056 (eval $ac_try) 2>&5
36058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059 (exit $ac_status); }; } &&
36060 { ac_try='test -s conftest$ac_exeext'
36061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36062 (eval $ac_try) 2>&5
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); }; }; then
36066 ac_cv_lib_gmp___gmpz_add_ui=yes
36068 echo "$as_me: failed program was:" >&5
36069 sed 's/^/| /' conftest.$ac_ext >&5
36071 ac_cv_lib_gmp___gmpz_add_ui=no
36073 rm -f conftest.err conftest.$ac_objext \
36074 conftest$ac_exeext conftest.$ac_ext
36075 LIBS=$ac_check_lib_save_LIBS
36077 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36078 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36079 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36080 cat >>confdefs.h <<_ACEOF
36081 #define HAVE_LIBGMP 1
36088 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36090 cat >>confdefs.h <<\_ACEOF
36091 #define USE_MP_GMP 1
36095 elif test $ol_with_mp = gmp ; then
36096 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36097 echo "$as_me: error: gmp not available" >&2;}
36098 { (exit 1); exit 1; }; }
36101 if test $ol_with_mp = auto ; then
36105 echo "$as_me:$LINENO: checking for working memcmp" >&5
36106 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36107 if test "${ac_cv_func_memcmp_working+set}" = set; then
36108 echo $ECHO_N "(cached) $ECHO_C" >&6
36110 if test "$cross_compiling" = yes; then
36111 ac_cv_func_memcmp_working=no
36113 cat >conftest.$ac_ext <<_ACEOF
36116 cat confdefs.h >>conftest.$ac_ext
36117 cat >>conftest.$ac_ext <<_ACEOF
36118 /* end confdefs.h. */
36119 $ac_includes_default
36124 /* Some versions of memcmp are not 8-bit clean. */
36125 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36126 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36129 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36130 or more and with at least one buffer not starting on a 4-byte boundary.
36131 William Lewis provided this test program. */
36136 for (i = 0; i < 4; i++)
36140 strcpy (a, "--------01111111");
36141 strcpy (b, "--------10000000");
36142 if (memcmp (a, b, 16) >= 0)
36152 rm -f conftest$ac_exeext
36153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36154 (eval $ac_link) 2>&5
36156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36159 (eval $ac_try) 2>&5
36161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36162 (exit $ac_status); }; }; then
36163 ac_cv_func_memcmp_working=yes
36165 echo "$as_me: program exited with status $ac_status" >&5
36166 echo "$as_me: failed program was:" >&5
36167 sed 's/^/| /' conftest.$ac_ext >&5
36169 ( exit $ac_status )
36170 ac_cv_func_memcmp_working=no
36172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36175 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36176 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36177 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36178 "memcmp.$ac_objext" | \
36179 *" memcmp.$ac_objext" | \
36180 "memcmp.$ac_objext "* | \
36181 *" memcmp.$ac_objext "* ) ;;
36182 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36187 if test $ac_cv_func_memcmp_working = no ; then
36189 cat >>confdefs.h <<\_ACEOF
36190 #define NEED_MEMCMP_REPLACEMENT 1
36196 for ac_func in strftime
36198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36199 echo "$as_me:$LINENO: checking for $ac_func" >&5
36200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36201 if eval "test \"\${$as_ac_var+set}\" = set"; then
36202 echo $ECHO_N "(cached) $ECHO_C" >&6
36204 cat >conftest.$ac_ext <<_ACEOF
36207 cat confdefs.h >>conftest.$ac_ext
36208 cat >>conftest.$ac_ext <<_ACEOF
36209 /* end confdefs.h. */
36210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36212 #define $ac_func innocuous_$ac_func
36214 /* System header to define __stub macros and hopefully few prototypes,
36215 which can conflict with char $ac_func (); below.
36216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36217 <limits.h> exists even on freestanding compilers. */
36220 # include <limits.h>
36222 # include <assert.h>
36227 /* Override any gcc2 internal prototype to avoid an error. */
36232 /* We use char because int might match the return type of a gcc2
36233 builtin and then its argument prototype would still apply. */
36235 /* The GNU C library defines this for functions which it implements
36236 to always fail with ENOSYS. Some functions are actually named
36237 something starting with __ and the normal name is an alias. */
36238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36241 char (*f) () = $ac_func;
36250 return f != $ac_func;
36255 rm -f conftest.$ac_objext conftest$ac_exeext
36256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36257 (eval $ac_link) 2>conftest.er1
36259 grep -v '^ *+' conftest.er1 >conftest.err
36261 cat conftest.err >&5
36262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263 (exit $ac_status); } &&
36264 { ac_try='test -z "$ac_c_werror_flag"
36265 || test ! -s conftest.err'
36266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36267 (eval $ac_try) 2>&5
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); }; } &&
36271 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
36277 eval "$as_ac_var=yes"
36279 echo "$as_me: failed program was:" >&5
36280 sed 's/^/| /' conftest.$ac_ext >&5
36282 eval "$as_ac_var=no"
36284 rm -f conftest.err conftest.$ac_objext \
36285 conftest$ac_exeext conftest.$ac_ext
36287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36289 if test `eval echo '${'$as_ac_var'}'` = yes; then
36290 cat >>confdefs.h <<_ACEOF
36291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36295 # strftime is in -lintl on SCO UNIX.
36296 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36297 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36298 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36299 echo $ECHO_N "(cached) $ECHO_C" >&6
36301 ac_check_lib_save_LIBS=$LIBS
36302 LIBS="-lintl $LIBS"
36303 cat >conftest.$ac_ext <<_ACEOF
36306 cat confdefs.h >>conftest.$ac_ext
36307 cat >>conftest.$ac_ext <<_ACEOF
36308 /* end confdefs.h. */
36310 /* Override any gcc2 internal prototype to avoid an error. */
36314 /* We use char because int might match the return type of a gcc2
36315 builtin and then its argument prototype would still apply. */
36325 rm -f conftest.$ac_objext conftest$ac_exeext
36326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36327 (eval $ac_link) 2>conftest.er1
36329 grep -v '^ *+' conftest.er1 >conftest.err
36331 cat conftest.err >&5
36332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36333 (exit $ac_status); } &&
36334 { ac_try='test -z "$ac_c_werror_flag"
36335 || test ! -s conftest.err'
36336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36337 (eval $ac_try) 2>&5
36339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36340 (exit $ac_status); }; } &&
36341 { ac_try='test -s conftest$ac_exeext'
36342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36343 (eval $ac_try) 2>&5
36345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346 (exit $ac_status); }; }; then
36347 ac_cv_lib_intl_strftime=yes
36349 echo "$as_me: failed program was:" >&5
36350 sed 's/^/| /' conftest.$ac_ext >&5
36352 ac_cv_lib_intl_strftime=no
36354 rm -f conftest.err conftest.$ac_objext \
36355 conftest$ac_exeext conftest.$ac_ext
36356 LIBS=$ac_check_lib_save_LIBS
36358 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36359 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36360 if test $ac_cv_lib_intl_strftime = yes; then
36361 cat >>confdefs.h <<\_ACEOF
36362 #define HAVE_STRFTIME 1
36365 LIBS="-lintl $LIBS"
36372 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36373 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36374 if test "${ol_cv_func_inet_aton+set}" = set; then
36375 echo $ECHO_N "(cached) $ECHO_C" >&6
36377 cat >conftest.$ac_ext <<_ACEOF
36380 cat confdefs.h >>conftest.$ac_ext
36381 cat >>conftest.$ac_ext <<_ACEOF
36382 /* end confdefs.h. */
36384 #ifdef HAVE_SYS_TYPES_H
36385 # include <sys/types.h>
36387 #ifdef HAVE_SYS_SOCKET_H
36388 # include <sys/socket.h>
36389 # ifdef HAVE_SYS_SELECT_H
36390 # include <sys/select.h>
36392 # include <netinet/in.h>
36393 # ifdef HAVE_ARPA_INET_H
36394 # include <arpa/inet.h>
36402 int rc = inet_aton( "255.255.255.255", &in );
36407 rm -f conftest.$ac_objext conftest$ac_exeext
36408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36409 (eval $ac_link) 2>conftest.er1
36411 grep -v '^ *+' conftest.er1 >conftest.err
36413 cat conftest.err >&5
36414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36415 (exit $ac_status); } &&
36416 { ac_try='test -z "$ac_c_werror_flag"
36417 || test ! -s conftest.err'
36418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419 (eval $ac_try) 2>&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); }; } &&
36423 { ac_try='test -s conftest$ac_exeext'
36424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36425 (eval $ac_try) 2>&5
36427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); }; }; then
36429 ol_cv_func_inet_aton=yes
36431 echo "$as_me: failed program was:" >&5
36432 sed 's/^/| /' conftest.$ac_ext >&5
36434 ol_cv_func_inet_aton=no
36436 rm -f conftest.err conftest.$ac_objext \
36437 conftest$ac_exeext conftest.$ac_ext
36439 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36440 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36441 if test $ol_cv_func_inet_aton != no; then
36443 cat >>confdefs.h <<\_ACEOF
36444 #define HAVE_INET_ATON 1
36450 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36451 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36452 if test "${ac_cv_func__spawnlp+set}" = set; then
36453 echo $ECHO_N "(cached) $ECHO_C" >&6
36455 cat >conftest.$ac_ext <<_ACEOF
36458 cat confdefs.h >>conftest.$ac_ext
36459 cat >>conftest.$ac_ext <<_ACEOF
36460 /* end confdefs.h. */
36461 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36463 #define _spawnlp innocuous__spawnlp
36465 /* System header to define __stub macros and hopefully few prototypes,
36466 which can conflict with char _spawnlp (); below.
36467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36468 <limits.h> exists even on freestanding compilers. */
36471 # include <limits.h>
36473 # include <assert.h>
36478 /* Override any gcc2 internal prototype to avoid an error. */
36483 /* We use char because int might match the return type of a gcc2
36484 builtin and then its argument prototype would still apply. */
36486 /* The GNU C library defines this for functions which it implements
36487 to always fail with ENOSYS. Some functions are actually named
36488 something starting with __ and the normal name is an alias. */
36489 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36492 char (*f) () = _spawnlp;
36501 return f != _spawnlp;
36506 rm -f conftest.$ac_objext conftest$ac_exeext
36507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36508 (eval $ac_link) 2>conftest.er1
36510 grep -v '^ *+' conftest.er1 >conftest.err
36512 cat conftest.err >&5
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); } &&
36515 { ac_try='test -z "$ac_c_werror_flag"
36516 || test ! -s conftest.err'
36517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36518 (eval $ac_try) 2>&5
36520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36521 (exit $ac_status); }; } &&
36522 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
36528 ac_cv_func__spawnlp=yes
36530 echo "$as_me: failed program was:" >&5
36531 sed 's/^/| /' conftest.$ac_ext >&5
36533 ac_cv_func__spawnlp=no
36535 rm -f conftest.err conftest.$ac_objext \
36536 conftest$ac_exeext conftest.$ac_ext
36538 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36539 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
36540 if test $ac_cv_func__spawnlp = yes; then
36542 cat >>confdefs.h <<\_ACEOF
36543 #define HAVE_SPAWNLP 1
36549 echo "$as_me:$LINENO: checking for _snprintf" >&5
36550 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
36551 if test "${ac_cv_func__snprintf+set}" = set; then
36552 echo $ECHO_N "(cached) $ECHO_C" >&6
36554 cat >conftest.$ac_ext <<_ACEOF
36557 cat confdefs.h >>conftest.$ac_ext
36558 cat >>conftest.$ac_ext <<_ACEOF
36559 /* end confdefs.h. */
36560 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36562 #define _snprintf innocuous__snprintf
36564 /* System header to define __stub macros and hopefully few prototypes,
36565 which can conflict with char _snprintf (); below.
36566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36567 <limits.h> exists even on freestanding compilers. */
36570 # include <limits.h>
36572 # include <assert.h>
36577 /* Override any gcc2 internal prototype to avoid an error. */
36582 /* We use char because int might match the return type of a gcc2
36583 builtin and then its argument prototype would still apply. */
36585 /* The GNU C library defines this for functions which it implements
36586 to always fail with ENOSYS. Some functions are actually named
36587 something starting with __ and the normal name is an alias. */
36588 #if defined (__stub__snprintf) || defined (__stub____snprintf)
36591 char (*f) () = _snprintf;
36600 return f != _snprintf;
36605 rm -f conftest.$ac_objext conftest$ac_exeext
36606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36607 (eval $ac_link) 2>conftest.er1
36609 grep -v '^ *+' conftest.er1 >conftest.err
36611 cat conftest.err >&5
36612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613 (exit $ac_status); } &&
36614 { ac_try='test -z "$ac_c_werror_flag"
36615 || test ! -s conftest.err'
36616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36617 (eval $ac_try) 2>&5
36619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620 (exit $ac_status); }; } &&
36621 { ac_try='test -s conftest$ac_exeext'
36622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36623 (eval $ac_try) 2>&5
36625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36626 (exit $ac_status); }; }; then
36627 ac_cv_func__snprintf=yes
36629 echo "$as_me: failed program was:" >&5
36630 sed 's/^/| /' conftest.$ac_ext >&5
36632 ac_cv_func__snprintf=no
36634 rm -f conftest.err conftest.$ac_objext \
36635 conftest$ac_exeext conftest.$ac_ext
36637 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36638 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
36639 if test $ac_cv_func__snprintf = yes; then
36640 ac_cv_func_snprintf=yes
36642 cat >>confdefs.h <<\_ACEOF
36643 #define snprintf _snprintf
36650 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
36651 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
36652 if test "${ac_cv_func__vsnprintf+set}" = set; then
36653 echo $ECHO_N "(cached) $ECHO_C" >&6
36655 cat >conftest.$ac_ext <<_ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h. */
36661 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
36662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36663 #define _vsnprintf innocuous__vsnprintf
36665 /* System header to define __stub macros and hopefully few prototypes,
36666 which can conflict with char _vsnprintf (); below.
36667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36668 <limits.h> exists even on freestanding compilers. */
36671 # include <limits.h>
36673 # include <assert.h>
36678 /* Override any gcc2 internal prototype to avoid an error. */
36683 /* We use char because int might match the return type of a gcc2
36684 builtin and then its argument prototype would still apply. */
36685 char _vsnprintf ();
36686 /* The GNU C library defines this for functions which it implements
36687 to always fail with ENOSYS. Some functions are actually named
36688 something starting with __ and the normal name is an alias. */
36689 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
36692 char (*f) () = _vsnprintf;
36701 return f != _vsnprintf;
36706 rm -f conftest.$ac_objext conftest$ac_exeext
36707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36708 (eval $ac_link) 2>conftest.er1
36710 grep -v '^ *+' conftest.er1 >conftest.err
36712 cat conftest.err >&5
36713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714 (exit $ac_status); } &&
36715 { ac_try='test -z "$ac_c_werror_flag"
36716 || test ! -s conftest.err'
36717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36718 (eval $ac_try) 2>&5
36720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721 (exit $ac_status); }; } &&
36722 { ac_try='test -s conftest$ac_exeext'
36723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724 (eval $ac_try) 2>&5
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); }; }; then
36728 ac_cv_func__vsnprintf=yes
36730 echo "$as_me: failed program was:" >&5
36731 sed 's/^/| /' conftest.$ac_ext >&5
36733 ac_cv_func__vsnprintf=no
36735 rm -f conftest.err conftest.$ac_objext \
36736 conftest$ac_exeext conftest.$ac_ext
36738 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
36739 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
36740 if test $ac_cv_func__vsnprintf = yes; then
36741 ac_cv_func_vsnprintf=yes
36743 cat >>confdefs.h <<\_ACEOF
36744 #define vsnprintf _vsnprintf
36752 for ac_func in vprintf
36754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36755 echo "$as_me:$LINENO: checking for $ac_func" >&5
36756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36757 if eval "test \"\${$as_ac_var+set}\" = set"; then
36758 echo $ECHO_N "(cached) $ECHO_C" >&6
36760 cat >conftest.$ac_ext <<_ACEOF
36763 cat confdefs.h >>conftest.$ac_ext
36764 cat >>conftest.$ac_ext <<_ACEOF
36765 /* end confdefs.h. */
36766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36768 #define $ac_func innocuous_$ac_func
36770 /* System header to define __stub macros and hopefully few prototypes,
36771 which can conflict with char $ac_func (); below.
36772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36773 <limits.h> exists even on freestanding compilers. */
36776 # include <limits.h>
36778 # include <assert.h>
36783 /* Override any gcc2 internal prototype to avoid an error. */
36788 /* We use char because int might match the return type of a gcc2
36789 builtin and then its argument prototype would still apply. */
36791 /* The GNU C library defines this for functions which it implements
36792 to always fail with ENOSYS. Some functions are actually named
36793 something starting with __ and the normal name is an alias. */
36794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36797 char (*f) () = $ac_func;
36806 return f != $ac_func;
36811 rm -f conftest.$ac_objext conftest$ac_exeext
36812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36813 (eval $ac_link) 2>conftest.er1
36815 grep -v '^ *+' conftest.er1 >conftest.err
36817 cat conftest.err >&5
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); } &&
36820 { ac_try='test -z "$ac_c_werror_flag"
36821 || test ! -s conftest.err'
36822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36823 (eval $ac_try) 2>&5
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); }; } &&
36827 { ac_try='test -s conftest$ac_exeext'
36828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36829 (eval $ac_try) 2>&5
36831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832 (exit $ac_status); }; }; then
36833 eval "$as_ac_var=yes"
36835 echo "$as_me: failed program was:" >&5
36836 sed 's/^/| /' conftest.$ac_ext >&5
36838 eval "$as_ac_var=no"
36840 rm -f conftest.err conftest.$ac_objext \
36841 conftest$ac_exeext conftest.$ac_ext
36843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36845 if test `eval echo '${'$as_ac_var'}'` = yes; then
36846 cat >>confdefs.h <<_ACEOF
36847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36850 echo "$as_me:$LINENO: checking for _doprnt" >&5
36851 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
36852 if test "${ac_cv_func__doprnt+set}" = set; then
36853 echo $ECHO_N "(cached) $ECHO_C" >&6
36855 cat >conftest.$ac_ext <<_ACEOF
36858 cat confdefs.h >>conftest.$ac_ext
36859 cat >>conftest.$ac_ext <<_ACEOF
36860 /* end confdefs.h. */
36861 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36863 #define _doprnt innocuous__doprnt
36865 /* System header to define __stub macros and hopefully few prototypes,
36866 which can conflict with char _doprnt (); below.
36867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36868 <limits.h> exists even on freestanding compilers. */
36871 # include <limits.h>
36873 # include <assert.h>
36878 /* Override any gcc2 internal prototype to avoid an error. */
36883 /* We use char because int might match the return type of a gcc2
36884 builtin and then its argument prototype would still apply. */
36886 /* The GNU C library defines this for functions which it implements
36887 to always fail with ENOSYS. Some functions are actually named
36888 something starting with __ and the normal name is an alias. */
36889 #if defined (__stub__doprnt) || defined (__stub____doprnt)
36892 char (*f) () = _doprnt;
36901 return f != _doprnt;
36906 rm -f conftest.$ac_objext conftest$ac_exeext
36907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36908 (eval $ac_link) 2>conftest.er1
36910 grep -v '^ *+' conftest.er1 >conftest.err
36912 cat conftest.err >&5
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); } &&
36915 { ac_try='test -z "$ac_c_werror_flag"
36916 || test ! -s conftest.err'
36917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918 (eval $ac_try) 2>&5
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); }; } &&
36922 { ac_try='test -s conftest$ac_exeext'
36923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36924 (eval $ac_try) 2>&5
36926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36927 (exit $ac_status); }; }; then
36928 ac_cv_func__doprnt=yes
36930 echo "$as_me: failed program was:" >&5
36931 sed 's/^/| /' conftest.$ac_ext >&5
36933 ac_cv_func__doprnt=no
36935 rm -f conftest.err conftest.$ac_objext \
36936 conftest$ac_exeext conftest.$ac_ext
36938 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36939 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
36940 if test $ac_cv_func__doprnt = yes; then
36942 cat >>confdefs.h <<\_ACEOF
36943 #define HAVE_DOPRNT 1
36953 if test $ac_cv_func_vprintf = yes ; then
36956 for ac_func in snprintf vsnprintf
36958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36959 echo "$as_me:$LINENO: checking for $ac_func" >&5
36960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36961 if eval "test \"\${$as_ac_var+set}\" = set"; then
36962 echo $ECHO_N "(cached) $ECHO_C" >&6
36964 cat >conftest.$ac_ext <<_ACEOF
36967 cat confdefs.h >>conftest.$ac_ext
36968 cat >>conftest.$ac_ext <<_ACEOF
36969 /* end confdefs.h. */
36970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36972 #define $ac_func innocuous_$ac_func
36974 /* System header to define __stub macros and hopefully few prototypes,
36975 which can conflict with char $ac_func (); below.
36976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36977 <limits.h> exists even on freestanding compilers. */
36980 # include <limits.h>
36982 # include <assert.h>
36987 /* Override any gcc2 internal prototype to avoid an error. */
36992 /* We use char because int might match the return type of a gcc2
36993 builtin and then its argument prototype would still apply. */
36995 /* The GNU C library defines this for functions which it implements
36996 to always fail with ENOSYS. Some functions are actually named
36997 something starting with __ and the normal name is an alias. */
36998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37001 char (*f) () = $ac_func;
37010 return f != $ac_func;
37015 rm -f conftest.$ac_objext conftest$ac_exeext
37016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37017 (eval $ac_link) 2>conftest.er1
37019 grep -v '^ *+' conftest.er1 >conftest.err
37021 cat conftest.err >&5
37022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023 (exit $ac_status); } &&
37024 { ac_try='test -z "$ac_c_werror_flag"
37025 || test ! -s conftest.err'
37026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37027 (eval $ac_try) 2>&5
37029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37030 (exit $ac_status); }; } &&
37031 { ac_try='test -s conftest$ac_exeext'
37032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37033 (eval $ac_try) 2>&5
37035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036 (exit $ac_status); }; }; then
37037 eval "$as_ac_var=yes"
37039 echo "$as_me: failed program was:" >&5
37040 sed 's/^/| /' conftest.$ac_ext >&5
37042 eval "$as_ac_var=no"
37044 rm -f conftest.err conftest.$ac_objext \
37045 conftest$ac_exeext conftest.$ac_ext
37047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37049 if test `eval echo '${'$as_ac_var'}'` = yes; then
37050 cat >>confdefs.h <<_ACEOF
37051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37173 echo "$as_me:$LINENO: checking for $ac_func" >&5
37174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37175 if eval "test \"\${$as_ac_var+set}\" = set"; then
37176 echo $ECHO_N "(cached) $ECHO_C" >&6
37178 cat >conftest.$ac_ext <<_ACEOF
37181 cat confdefs.h >>conftest.$ac_ext
37182 cat >>conftest.$ac_ext <<_ACEOF
37183 /* end confdefs.h. */
37184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37186 #define $ac_func innocuous_$ac_func
37188 /* System header to define __stub macros and hopefully few prototypes,
37189 which can conflict with char $ac_func (); below.
37190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37191 <limits.h> exists even on freestanding compilers. */
37194 # include <limits.h>
37196 # include <assert.h>
37201 /* Override any gcc2 internal prototype to avoid an error. */
37206 /* We use char because int might match the return type of a gcc2
37207 builtin and then its argument prototype would still apply. */
37209 /* The GNU C library defines this for functions which it implements
37210 to always fail with ENOSYS. Some functions are actually named
37211 something starting with __ and the normal name is an alias. */
37212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37215 char (*f) () = $ac_func;
37224 return f != $ac_func;
37229 rm -f conftest.$ac_objext conftest$ac_exeext
37230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37231 (eval $ac_link) 2>conftest.er1
37233 grep -v '^ *+' conftest.er1 >conftest.err
37235 cat conftest.err >&5
37236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); } &&
37238 { ac_try='test -z "$ac_c_werror_flag"
37239 || test ! -s conftest.err'
37240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37241 (eval $ac_try) 2>&5
37243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244 (exit $ac_status); }; } &&
37245 { ac_try='test -s conftest$ac_exeext'
37246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37247 (eval $ac_try) 2>&5
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); }; }; then
37251 eval "$as_ac_var=yes"
37253 echo "$as_me: failed program was:" >&5
37254 sed 's/^/| /' conftest.$ac_ext >&5
37256 eval "$as_ac_var=no"
37258 rm -f conftest.err conftest.$ac_objext \
37259 conftest$ac_exeext conftest.$ac_ext
37261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37263 if test `eval echo '${'$as_ac_var'}'` = yes; then
37264 cat >>confdefs.h <<_ACEOF
37265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37274 for ac_func in getopt getpeereid
37276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37277 echo "$as_me:$LINENO: checking for $ac_func" >&5
37278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37279 if eval "test \"\${$as_ac_var+set}\" = set"; then
37280 echo $ECHO_N "(cached) $ECHO_C" >&6
37282 cat >conftest.$ac_ext <<_ACEOF
37285 cat confdefs.h >>conftest.$ac_ext
37286 cat >>conftest.$ac_ext <<_ACEOF
37287 /* end confdefs.h. */
37288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37290 #define $ac_func innocuous_$ac_func
37292 /* System header to define __stub macros and hopefully few prototypes,
37293 which can conflict with char $ac_func (); below.
37294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37295 <limits.h> exists even on freestanding compilers. */
37298 # include <limits.h>
37300 # include <assert.h>
37305 /* Override any gcc2 internal prototype to avoid an error. */
37310 /* We use char because int might match the return type of a gcc2
37311 builtin and then its argument prototype would still apply. */
37313 /* The GNU C library defines this for functions which it implements
37314 to always fail with ENOSYS. Some functions are actually named
37315 something starting with __ and the normal name is an alias. */
37316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37319 char (*f) () = $ac_func;
37328 return f != $ac_func;
37333 rm -f conftest.$ac_objext conftest$ac_exeext
37334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37335 (eval $ac_link) 2>conftest.er1
37337 grep -v '^ *+' conftest.er1 >conftest.err
37339 cat conftest.err >&5
37340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341 (exit $ac_status); } &&
37342 { ac_try='test -z "$ac_c_werror_flag"
37343 || test ! -s conftest.err'
37344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37345 (eval $ac_try) 2>&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); }; } &&
37349 { ac_try='test -s conftest$ac_exeext'
37350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37351 (eval $ac_try) 2>&5
37353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37354 (exit $ac_status); }; }; then
37355 eval "$as_ac_var=yes"
37357 echo "$as_me: failed program was:" >&5
37358 sed 's/^/| /' conftest.$ac_ext >&5
37360 eval "$as_ac_var=no"
37362 rm -f conftest.err conftest.$ac_objext \
37363 conftest$ac_exeext conftest.$ac_ext
37365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37367 if test `eval echo '${'$as_ac_var'}'` = yes; then
37368 cat >>confdefs.h <<_ACEOF
37369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37374 "$ac_func.$ac_objext" | \
37375 *" $ac_func.$ac_objext" | \
37376 "$ac_func.$ac_objext "* | \
37377 *" $ac_func.$ac_objext "* ) ;;
37378 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37386 if test "$ac_cv_func_getopt" != yes; then
37387 LIBSRCS="$LIBSRCS getopt.c"
37390 if test "$ac_cv_func_getpeereid" != yes; then
37392 for ac_func in getpeerucred
37394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37395 echo "$as_me:$LINENO: checking for $ac_func" >&5
37396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37397 if eval "test \"\${$as_ac_var+set}\" = set"; then
37398 echo $ECHO_N "(cached) $ECHO_C" >&6
37400 cat >conftest.$ac_ext <<_ACEOF
37403 cat confdefs.h >>conftest.$ac_ext
37404 cat >>conftest.$ac_ext <<_ACEOF
37405 /* end confdefs.h. */
37406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37408 #define $ac_func innocuous_$ac_func
37410 /* System header to define __stub macros and hopefully few prototypes,
37411 which can conflict with char $ac_func (); below.
37412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37413 <limits.h> exists even on freestanding compilers. */
37416 # include <limits.h>
37418 # include <assert.h>
37423 /* Override any gcc2 internal prototype to avoid an error. */
37428 /* We use char because int might match the return type of a gcc2
37429 builtin and then its argument prototype would still apply. */
37431 /* The GNU C library defines this for functions which it implements
37432 to always fail with ENOSYS. Some functions are actually named
37433 something starting with __ and the normal name is an alias. */
37434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37437 char (*f) () = $ac_func;
37446 return f != $ac_func;
37451 rm -f conftest.$ac_objext conftest$ac_exeext
37452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37453 (eval $ac_link) 2>conftest.er1
37455 grep -v '^ *+' conftest.er1 >conftest.err
37457 cat conftest.err >&5
37458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459 (exit $ac_status); } &&
37460 { ac_try='test -z "$ac_c_werror_flag"
37461 || test ! -s conftest.err'
37462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463 (eval $ac_try) 2>&5
37465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466 (exit $ac_status); }; } &&
37467 { ac_try='test -s conftest$ac_exeext'
37468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37469 (eval $ac_try) 2>&5
37471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472 (exit $ac_status); }; }; then
37473 eval "$as_ac_var=yes"
37475 echo "$as_me: failed program was:" >&5
37476 sed 's/^/| /' conftest.$ac_ext >&5
37478 eval "$as_ac_var=no"
37480 rm -f conftest.err conftest.$ac_objext \
37481 conftest$ac_exeext conftest.$ac_ext
37483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37485 if test `eval echo '${'$as_ac_var'}'` = yes; then
37486 cat >>confdefs.h <<_ACEOF
37487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37493 if test "$ac_cv_func_getpeerucred" != yes ; then
37494 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37495 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37496 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37497 echo $ECHO_N "(cached) $ECHO_C" >&6
37499 cat >conftest.$ac_ext <<_ACEOF
37502 cat confdefs.h >>conftest.$ac_ext
37503 cat >>conftest.$ac_ext <<_ACEOF
37504 /* end confdefs.h. */
37505 $ac_includes_default
37506 #ifdef HAVE_SYS_SOCKET_H
37507 #include <sys/socket.h>
37513 static struct msghdr ac_aggr;
37514 if (ac_aggr.msg_accrightslen)
37520 rm -f conftest.$ac_objext
37521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37522 (eval $ac_compile) 2>conftest.er1
37524 grep -v '^ *+' conftest.er1 >conftest.err
37526 cat conftest.err >&5
37527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528 (exit $ac_status); } &&
37529 { ac_try='test -z "$ac_c_werror_flag"
37530 || test ! -s conftest.err'
37531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37532 (eval $ac_try) 2>&5
37534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535 (exit $ac_status); }; } &&
37536 { ac_try='test -s conftest.$ac_objext'
37537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538 (eval $ac_try) 2>&5
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); }; }; then
37542 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37544 echo "$as_me: failed program was:" >&5
37545 sed 's/^/| /' conftest.$ac_ext >&5
37547 cat >conftest.$ac_ext <<_ACEOF
37550 cat confdefs.h >>conftest.$ac_ext
37551 cat >>conftest.$ac_ext <<_ACEOF
37552 /* end confdefs.h. */
37553 $ac_includes_default
37554 #ifdef HAVE_SYS_SOCKET_H
37555 #include <sys/socket.h>
37561 static struct msghdr ac_aggr;
37562 if (sizeof ac_aggr.msg_accrightslen)
37568 rm -f conftest.$ac_objext
37569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37570 (eval $ac_compile) 2>conftest.er1
37572 grep -v '^ *+' conftest.er1 >conftest.err
37574 cat conftest.err >&5
37575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37576 (exit $ac_status); } &&
37577 { ac_try='test -z "$ac_c_werror_flag"
37578 || test ! -s conftest.err'
37579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37580 (eval $ac_try) 2>&5
37582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); }; } &&
37584 { ac_try='test -s conftest.$ac_objext'
37585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586 (eval $ac_try) 2>&5
37588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); }; }; then
37590 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37592 echo "$as_me: failed program was:" >&5
37593 sed 's/^/| /' conftest.$ac_ext >&5
37595 ac_cv_member_struct_msghdr_msg_accrightslen=no
37597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37601 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37602 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
37603 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37605 cat >>confdefs.h <<_ACEOF
37606 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37612 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37613 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37614 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
37615 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37616 echo $ECHO_N "(cached) $ECHO_C" >&6
37618 cat >conftest.$ac_ext <<_ACEOF
37621 cat confdefs.h >>conftest.$ac_ext
37622 cat >>conftest.$ac_ext <<_ACEOF
37623 /* end confdefs.h. */
37624 $ac_includes_default
37625 #ifdef HAVE_SYS_SOCKET_H
37626 #include <sys/socket.h>
37632 static struct msghdr ac_aggr;
37633 if (ac_aggr.msg_control)
37639 rm -f conftest.$ac_objext
37640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37641 (eval $ac_compile) 2>conftest.er1
37643 grep -v '^ *+' conftest.er1 >conftest.err
37645 cat conftest.err >&5
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); } &&
37648 { ac_try='test -z "$ac_c_werror_flag"
37649 || test ! -s conftest.err'
37650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37651 (eval $ac_try) 2>&5
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); }; } &&
37655 { ac_try='test -s conftest.$ac_objext'
37656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37657 (eval $ac_try) 2>&5
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); }; }; then
37661 ac_cv_member_struct_msghdr_msg_control=yes
37663 echo "$as_me: failed program was:" >&5
37664 sed 's/^/| /' conftest.$ac_ext >&5
37666 cat >conftest.$ac_ext <<_ACEOF
37669 cat confdefs.h >>conftest.$ac_ext
37670 cat >>conftest.$ac_ext <<_ACEOF
37671 /* end confdefs.h. */
37672 $ac_includes_default
37673 #ifdef HAVE_SYS_SOCKET_H
37674 #include <sys/socket.h>
37680 static struct msghdr ac_aggr;
37681 if (sizeof ac_aggr.msg_control)
37687 rm -f conftest.$ac_objext
37688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37689 (eval $ac_compile) 2>conftest.er1
37691 grep -v '^ *+' conftest.er1 >conftest.err
37693 cat conftest.err >&5
37694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37695 (exit $ac_status); } &&
37696 { ac_try='test -z "$ac_c_werror_flag"
37697 || test ! -s conftest.err'
37698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37699 (eval $ac_try) 2>&5
37701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702 (exit $ac_status); }; } &&
37703 { ac_try='test -s conftest.$ac_objext'
37704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37705 (eval $ac_try) 2>&5
37707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708 (exit $ac_status); }; }; then
37709 ac_cv_member_struct_msghdr_msg_control=yes
37711 echo "$as_me: failed program was:" >&5
37712 sed 's/^/| /' conftest.$ac_ext >&5
37714 ac_cv_member_struct_msghdr_msg_control=no
37716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37720 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37721 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
37722 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37724 cat >>confdefs.h <<_ACEOF
37725 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37732 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37733 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
37734 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37735 echo $ECHO_N "(cached) $ECHO_C" >&6
37737 cat >conftest.$ac_ext <<_ACEOF
37740 cat confdefs.h >>conftest.$ac_ext
37741 cat >>conftest.$ac_ext <<_ACEOF
37742 /* end confdefs.h. */
37743 $ac_includes_default
37747 static struct stat ac_aggr;
37748 if (ac_aggr.st_fstype)
37754 rm -f conftest.$ac_objext
37755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37756 (eval $ac_compile) 2>conftest.er1
37758 grep -v '^ *+' conftest.er1 >conftest.err
37760 cat conftest.err >&5
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); } &&
37763 { ac_try='test -z "$ac_c_werror_flag"
37764 || test ! -s conftest.err'
37765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37766 (eval $ac_try) 2>&5
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); }; } &&
37770 { ac_try='test -s conftest.$ac_objext'
37771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37772 (eval $ac_try) 2>&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); }; }; then
37776 ac_cv_member_struct_stat_st_fstype=yes
37778 echo "$as_me: failed program was:" >&5
37779 sed 's/^/| /' conftest.$ac_ext >&5
37781 cat >conftest.$ac_ext <<_ACEOF
37784 cat confdefs.h >>conftest.$ac_ext
37785 cat >>conftest.$ac_ext <<_ACEOF
37786 /* end confdefs.h. */
37787 $ac_includes_default
37791 static struct stat ac_aggr;
37792 if (sizeof ac_aggr.st_fstype)
37798 rm -f conftest.$ac_objext
37799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37800 (eval $ac_compile) 2>conftest.er1
37802 grep -v '^ *+' conftest.er1 >conftest.err
37804 cat conftest.err >&5
37805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); } &&
37807 { ac_try='test -z "$ac_c_werror_flag"
37808 || test ! -s conftest.err'
37809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37810 (eval $ac_try) 2>&5
37812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813 (exit $ac_status); }; } &&
37814 { ac_try='test -s conftest.$ac_objext'
37815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37816 (eval $ac_try) 2>&5
37818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37819 (exit $ac_status); }; }; then
37820 ac_cv_member_struct_stat_st_fstype=yes
37822 echo "$as_me: failed program was:" >&5
37823 sed 's/^/| /' conftest.$ac_ext >&5
37825 ac_cv_member_struct_stat_st_fstype=no
37827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37831 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37832 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
37833 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37835 cat >>confdefs.h <<_ACEOF
37836 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37841 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37842 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
37843 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37844 echo $ECHO_N "(cached) $ECHO_C" >&6
37846 cat >conftest.$ac_ext <<_ACEOF
37849 cat confdefs.h >>conftest.$ac_ext
37850 cat >>conftest.$ac_ext <<_ACEOF
37851 /* end confdefs.h. */
37852 $ac_includes_default
37856 static struct stat ac_aggr;
37857 if (ac_aggr.st_vfstype)
37863 rm -f conftest.$ac_objext
37864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37865 (eval $ac_compile) 2>conftest.er1
37867 grep -v '^ *+' conftest.er1 >conftest.err
37869 cat conftest.err >&5
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); } &&
37872 { ac_try='test -z "$ac_c_werror_flag"
37873 || test ! -s conftest.err'
37874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37875 (eval $ac_try) 2>&5
37877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37878 (exit $ac_status); }; } &&
37879 { ac_try='test -s conftest.$ac_objext'
37880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37881 (eval $ac_try) 2>&5
37883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37884 (exit $ac_status); }; }; then
37885 ac_cv_member_struct_stat_st_vfstype=yes
37887 echo "$as_me: failed program was:" >&5
37888 sed 's/^/| /' conftest.$ac_ext >&5
37890 cat >conftest.$ac_ext <<_ACEOF
37893 cat confdefs.h >>conftest.$ac_ext
37894 cat >>conftest.$ac_ext <<_ACEOF
37895 /* end confdefs.h. */
37896 $ac_includes_default
37900 static struct stat ac_aggr;
37901 if (sizeof ac_aggr.st_vfstype)
37907 rm -f conftest.$ac_objext
37908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37909 (eval $ac_compile) 2>conftest.er1
37911 grep -v '^ *+' conftest.er1 >conftest.err
37913 cat conftest.err >&5
37914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915 (exit $ac_status); } &&
37916 { ac_try='test -z "$ac_c_werror_flag"
37917 || test ! -s conftest.err'
37918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919 (eval $ac_try) 2>&5
37921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); }; } &&
37923 { ac_try='test -s conftest.$ac_objext'
37924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37925 (eval $ac_try) 2>&5
37927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928 (exit $ac_status); }; }; then
37929 ac_cv_member_struct_stat_st_vfstype=yes
37931 echo "$as_me: failed program was:" >&5
37932 sed 's/^/| /' conftest.$ac_ext >&5
37934 ac_cv_member_struct_stat_st_vfstype=no
37936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37940 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37941 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
37942 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37944 cat >>confdefs.h <<_ACEOF
37945 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37951 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37952 cat >conftest.$ac_ext <<_ACEOF
37953 struct stat st; char *ptr=st.st_fstype;
37955 rm -f conftest.$ac_objext
37956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37957 (eval $ac_compile) 2>conftest.er1
37959 grep -v '^ *+' conftest.er1 >conftest.err
37961 cat conftest.err >&5
37962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37963 (exit $ac_status); } &&
37964 { ac_try='test -z "$ac_c_werror_flag"
37965 || test ! -s conftest.err'
37966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967 (eval $ac_try) 2>&5
37969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); }; } &&
37971 { ac_try='test -s conftest.$ac_objext'
37972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973 (eval $ac_try) 2>&5
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); }; }; then
37978 cat >>confdefs.h <<\_ACEOF
37979 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37983 echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37987 cat >>confdefs.h <<\_ACEOF
37988 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37995 LIBSRCS="$LIBSRCS getpeereid.c"
37998 if test "$ac_cv_func_snprintf" != yes ||
37999 test "$ac_cv_func_vsnprintf" != yes; then
38000 if test "$ac_cv_func_snprintf" != yes; then
38002 cat >>confdefs.h <<\_ACEOF
38003 #define snprintf ber_pvt_snprintf
38007 if test "$ac_cv_func_vsnprintf" != yes; then
38009 cat >>confdefs.h <<\_ACEOF
38010 #define vsnprintf ber_pvt_vsnprintf
38017 if test "$ol_enable_slapi" != no ; then
38019 for ac_header in ltdl.h
38021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38023 echo "$as_me:$LINENO: checking for $ac_header" >&5
38024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38026 echo $ECHO_N "(cached) $ECHO_C" >&6
38028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38031 # Is the header compilable?
38032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38034 cat >conftest.$ac_ext <<_ACEOF
38037 cat confdefs.h >>conftest.$ac_ext
38038 cat >>conftest.$ac_ext <<_ACEOF
38039 /* end confdefs.h. */
38040 $ac_includes_default
38041 #include <$ac_header>
38043 rm -f conftest.$ac_objext
38044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38045 (eval $ac_compile) 2>conftest.er1
38047 grep -v '^ *+' conftest.er1 >conftest.err
38049 cat conftest.err >&5
38050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051 (exit $ac_status); } &&
38052 { ac_try='test -z "$ac_c_werror_flag"
38053 || test ! -s conftest.err'
38054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38055 (eval $ac_try) 2>&5
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); }; } &&
38059 { ac_try='test -s conftest.$ac_objext'
38060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38061 (eval $ac_try) 2>&5
38063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064 (exit $ac_status); }; }; then
38065 ac_header_compiler=yes
38067 echo "$as_me: failed program was:" >&5
38068 sed 's/^/| /' conftest.$ac_ext >&5
38070 ac_header_compiler=no
38072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38074 echo "${ECHO_T}$ac_header_compiler" >&6
38076 # Is the header present?
38077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38079 cat >conftest.$ac_ext <<_ACEOF
38082 cat confdefs.h >>conftest.$ac_ext
38083 cat >>conftest.$ac_ext <<_ACEOF
38084 /* end confdefs.h. */
38085 #include <$ac_header>
38087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38090 grep -v '^ *+' conftest.er1 >conftest.err
38092 cat conftest.err >&5
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); } >/dev/null; then
38095 if test -s conftest.err; then
38096 ac_cpp_err=$ac_c_preproc_warn_flag
38097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38104 if test -z "$ac_cpp_err"; then
38105 ac_header_preproc=yes
38107 echo "$as_me: failed program was:" >&5
38108 sed 's/^/| /' conftest.$ac_ext >&5
38110 ac_header_preproc=no
38112 rm -f conftest.err conftest.$ac_ext
38113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38114 echo "${ECHO_T}$ac_header_preproc" >&6
38116 # So? What about this header?
38117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38123 ac_header_preproc=yes
38126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38140 ## --------------------------------------------- ##
38141 ## Report this to <http://www.openldap.org/its/> ##
38142 ## --------------------------------------------- ##
38145 sed "s/^/$as_me: WARNING: /" >&2
38148 echo "$as_me:$LINENO: checking for $ac_header" >&5
38149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38151 echo $ECHO_N "(cached) $ECHO_C" >&6
38153 eval "$as_ac_Header=\$ac_header_preproc"
38155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38160 cat >>confdefs.h <<_ACEOF
38161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38169 if test $ac_cv_header_ltdl_h != yes ; then
38170 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38171 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38172 { (exit 1); exit 1; }; }
38174 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38175 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38176 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38177 echo $ECHO_N "(cached) $ECHO_C" >&6
38179 ac_check_lib_save_LIBS=$LIBS
38180 LIBS="-lltdl $LIBS"
38181 cat >conftest.$ac_ext <<_ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h. */
38188 /* Override any gcc2 internal prototype to avoid an error. */
38192 /* We use char because int might match the return type of a gcc2
38193 builtin and then its argument prototype would still apply. */
38203 rm -f conftest.$ac_objext conftest$ac_exeext
38204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38205 (eval $ac_link) 2>conftest.er1
38207 grep -v '^ *+' conftest.er1 >conftest.err
38209 cat conftest.err >&5
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); } &&
38212 { ac_try='test -z "$ac_c_werror_flag"
38213 || test ! -s conftest.err'
38214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38215 (eval $ac_try) 2>&5
38217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218 (exit $ac_status); }; } &&
38219 { ac_try='test -s conftest$ac_exeext'
38220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38221 (eval $ac_try) 2>&5
38223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38224 (exit $ac_status); }; }; then
38225 ac_cv_lib_ltdl_lt_dlinit=yes
38227 echo "$as_me: failed program was:" >&5
38228 sed 's/^/| /' conftest.$ac_ext >&5
38230 ac_cv_lib_ltdl_lt_dlinit=no
38232 rm -f conftest.err conftest.$ac_objext \
38233 conftest$ac_exeext conftest.$ac_ext
38234 LIBS=$ac_check_lib_save_LIBS
38236 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38237 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38238 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38241 LIBSLAPI=libslapi.a
38242 LIBSLAPITOOLS=../libslapi.a
38244 cat >>confdefs.h <<\_ACEOF
38245 #define HAVE_LIBLTDL 1
38250 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38251 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38252 { (exit 1); exit 1; }; }
38257 cat >>confdefs.h <<\_ACEOF
38258 #define LDAP_SLAPI 1
38263 if test "$ol_enable_debug" != no ; then
38264 if test "$ol_enable_debug" = traditional; then
38266 cat >>confdefs.h <<\_ACEOF
38267 #define OLD_DEBUG 1
38272 cat >>confdefs.h <<\_ACEOF
38273 #define LDAP_DEBUG 1
38277 if test "$ol_enable_syslog" = yes ; then
38279 cat >>confdefs.h <<\_ACEOF
38280 #define LDAP_SYSLOG 1
38284 if test "$ol_enable_proctitle" != no ; then
38286 cat >>confdefs.h <<\_ACEOF
38287 #define LDAP_PROCTITLE 1
38291 if test "$ol_enable_referrals" != no ; then
38293 cat >>confdefs.h <<\_ACEOF
38294 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38298 if test "$ol_enable_local" != no; then
38300 cat >>confdefs.h <<\_ACEOF
38301 #define LDAP_PF_LOCAL 1
38305 if test "$ol_link_ipv6" != no; then
38307 cat >>confdefs.h <<\_ACEOF
38308 #define LDAP_PF_INET6 1
38312 if test "$ol_enable_cleartext" != no ; then
38314 cat >>confdefs.h <<\_ACEOF
38315 #define SLAPD_CLEARTEXT 1
38319 if test "$ol_enable_crypt" != no ; then
38321 cat >>confdefs.h <<\_ACEOF
38322 #define SLAPD_CRYPT 1
38326 if test "$ol_link_spasswd" != no ; then
38328 cat >>confdefs.h <<\_ACEOF
38329 #define SLAPD_SPASSWD 1
38333 if test "$ol_enable_rlookups" != no ; then
38335 cat >>confdefs.h <<\_ACEOF
38336 #define SLAPD_RLOOKUPS 1
38340 if test "$ol_enable_aci" != no ; then
38341 if test $ol_enable_dynacl = no ; then
38342 ol_enable_dynacl=yes
38343 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38344 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38346 if test "$ol_enable_aci" = mod ; then
38347 MFLAG=SLAPD_MOD_DYNAMIC
38348 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38349 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38350 { (exit 1); exit 1; }; }
38352 MFLAG=SLAPD_MOD_STATIC
38354 WITH_ACI_ENABLED=$ol_enable_aci
38356 cat >>confdefs.h <<_ACEOF
38357 #define SLAPD_ACI_ENABLED $MFLAG
38361 WITH_ACI_ENABLED=no
38363 if test "$ol_enable_dynacl" != no ; then
38365 cat >>confdefs.h <<\_ACEOF
38366 #define SLAP_DYNACL 1
38371 if test "$ol_link_modules" != no ; then
38373 cat >>confdefs.h <<\_ACEOF
38374 #define SLAPD_MODULES 1
38378 SLAPD_MODULES_LDFLAGS="-dlopen self"
38382 cat >>confdefs.h <<\_ACEOF
38383 #define SLAPD_MOD_STATIC 1
38387 cat >>confdefs.h <<\_ACEOF
38388 #define SLAPD_MOD_DYNAMIC 2
38392 if test "$ol_enable_monitor" != no ; then
38394 BUILD_MONITOR=$ol_enable_monitor
38395 if test "$ol_enable_monitor" = mod ; then
38396 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38397 MFLAG=SLAPD_MOD_DYNAMIC
38399 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38400 MFLAG=SLAPD_MOD_STATIC
38403 cat >>confdefs.h <<_ACEOF
38404 #define SLAPD_MONITOR $MFLAG
38409 if test "$ol_enable_bdb" != no ; then
38411 BUILD_BDB=$ol_enable_bdb
38412 if test "$ol_enable_bdb" = mod ; then
38413 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38414 MFLAG=SLAPD_MOD_DYNAMIC
38416 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38417 MFLAG=SLAPD_MOD_STATIC
38420 cat >>confdefs.h <<_ACEOF
38421 #define SLAPD_BDB $MFLAG
38426 if test "$ol_enable_dnssrv" != no ; then
38428 BUILD_DNSSRV=$ol_enable_dnssrv
38429 if test "$ol_enable_dnssrv" = mod ; then
38430 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38431 MFLAG=SLAPD_MOD_DYNAMIC
38433 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38434 MFLAG=SLAPD_MOD_STATIC
38437 cat >>confdefs.h <<_ACEOF
38438 #define SLAPD_DNSSRV $MFLAG
38443 if test "$ol_enable_hdb" != no ; then
38445 BUILD_HDB=$ol_enable_hdb
38446 if test "$ol_enable_hdb" = mod ; then
38447 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38448 MFLAG=SLAPD_MOD_DYNAMIC
38450 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38451 MFLAG=SLAPD_MOD_STATIC
38454 cat >>confdefs.h <<_ACEOF
38455 #define SLAPD_HDB $MFLAG
38460 if test "$ol_enable_ldap" != no ; then
38462 BUILD_LDAP=$ol_enable_ldap
38463 if test "$ol_enable_ldap" = mod ; then
38464 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38465 MFLAG=SLAPD_MOD_DYNAMIC
38467 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38468 MFLAG=SLAPD_MOD_STATIC
38471 cat >>confdefs.h <<_ACEOF
38472 #define SLAPD_LDAP $MFLAG
38477 if test "$ol_enable_meta" != no ; then
38479 BUILD_META=$ol_enable_meta
38481 if test "$ol_enable_meta" = mod ; then
38482 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38483 MFLAG=SLAPD_MOD_DYNAMIC
38485 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38486 MFLAG=SLAPD_MOD_STATIC
38489 cat >>confdefs.h <<_ACEOF
38490 #define SLAPD_META $MFLAG
38495 if test "$ol_enable_ndb" != no ; then
38497 BUILD_NDB=$ol_enable_ndb
38498 if test "$ol_enable_ndb" = mod ; then
38499 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38500 MFLAG=SLAPD_MOD_DYNAMIC
38502 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38503 MFLAG=SLAPD_MOD_STATIC
38506 cat >>confdefs.h <<_ACEOF
38507 #define SLAPD_NDB $MFLAG
38512 if test "$ol_enable_null" != no ; then
38514 BUILD_NULL=$ol_enable_null
38515 if test "$ol_enable_null" = mod ; then
38516 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38517 MFLAG=SLAPD_MOD_DYNAMIC
38519 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38520 MFLAG=SLAPD_MOD_STATIC
38523 cat >>confdefs.h <<_ACEOF
38524 #define SLAPD_NULL $MFLAG
38529 if test "$ol_enable_passwd" != no ; then
38531 BUILD_PASSWD=$ol_enable_passwd
38532 if test "$ol_enable_passwd" = mod ; then
38533 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38534 MFLAG=SLAPD_MOD_DYNAMIC
38536 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38537 MFLAG=SLAPD_MOD_STATIC
38540 cat >>confdefs.h <<_ACEOF
38541 #define SLAPD_PASSWD $MFLAG
38546 if test "$ol_link_perl" != no ; then
38548 BUILD_PERL=$ol_enable_perl
38549 if test "$ol_enable_perl" = mod ; then
38550 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38551 MFLAG=SLAPD_MOD_DYNAMIC
38553 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38554 MFLAG=SLAPD_MOD_STATIC
38557 cat >>confdefs.h <<_ACEOF
38558 #define SLAPD_PERL $MFLAG
38563 if test "$ol_enable_relay" != no ; then
38565 BUILD_RELAY=$ol_enable_relay
38566 if test "$ol_enable_relay" = mod ; then
38567 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38568 MFLAG=SLAPD_MOD_DYNAMIC
38570 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38571 MFLAG=SLAPD_MOD_STATIC
38574 cat >>confdefs.h <<_ACEOF
38575 #define SLAPD_RELAY $MFLAG
38580 if test "$ol_enable_shell" != no ; then
38581 if test "$ol_link_threads" != no ; then
38582 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38583 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38586 BUILD_SHELL=$ol_enable_shell
38587 if test "$ol_enable_shell" = mod ; then
38588 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38589 MFLAG=SLAPD_MOD_DYNAMIC
38591 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38592 MFLAG=SLAPD_MOD_STATIC
38595 cat >>confdefs.h <<_ACEOF
38596 #define SLAPD_SHELL $MFLAG
38601 if test "$ol_enable_sock" != no ; then
38603 BUILD_SOCK=$ol_enable_sock
38604 if test "$ol_enable_sock" = mod ; then
38605 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38606 MFLAG=SLAPD_MOD_DYNAMIC
38608 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38609 MFLAG=SLAPD_MOD_STATIC
38612 cat >>confdefs.h <<_ACEOF
38613 #define SLAPD_SOCK $MFLAG
38618 if test "$ol_link_sql" != no ; then
38620 BUILD_SQL=$ol_enable_sql
38621 if test "$ol_enable_sql" = mod; then
38622 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38623 MFLAG=SLAPD_MOD_DYNAMIC
38625 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38626 MFLAG=SLAPD_MOD_STATIC
38629 cat >>confdefs.h <<_ACEOF
38630 #define SLAPD_SQL $MFLAG
38635 if test "$ol_enable_accesslog" != no ; then
38636 BUILD_ACCESSLOG=$ol_enable_accesslog
38637 if test "$ol_enable_accesslog" = mod ; then
38638 MFLAG=SLAPD_MOD_DYNAMIC
38639 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38641 MFLAG=SLAPD_MOD_STATIC
38642 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38645 cat >>confdefs.h <<_ACEOF
38646 #define SLAPD_OVER_ACCESSLOG $MFLAG
38651 if test "$ol_enable_auditlog" != no ; then
38652 BUILD_AUDITLOG=$ol_enable_auditlog
38653 if test "$ol_enable_auditlog" = mod ; then
38654 MFLAG=SLAPD_MOD_DYNAMIC
38655 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38657 MFLAG=SLAPD_MOD_STATIC
38658 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38661 cat >>confdefs.h <<_ACEOF
38662 #define SLAPD_OVER_AUDITLOG $MFLAG
38667 if test "$ol_enable_collect" != no ; then
38668 BUILD_COLLECT=$ol_enable_collect
38669 if test "$ol_enable_collect" = mod ; then
38670 MFLAG=SLAPD_MOD_DYNAMIC
38671 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38673 MFLAG=SLAPD_MOD_STATIC
38674 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38677 cat >>confdefs.h <<_ACEOF
38678 #define SLAPD_OVER_COLLECT $MFLAG
38683 if test "$ol_enable_constraint" != no ; then
38684 BUILD_CONSTRAINT=$ol_enable_constraint
38685 if test "$ol_enable_constraint" = mod ; then
38686 MFLAG=SLAPD_MOD_DYNAMIC
38687 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38689 MFLAG=SLAPD_MOD_STATIC
38690 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38693 cat >>confdefs.h <<_ACEOF
38694 #define SLAPD_OVER_CONSTRAINT $MFLAG
38699 if test "$ol_enable_dds" != no ; then
38700 BUILD_DDS=$ol_enable_dds
38701 if test "$ol_enable_dds" = mod ; then
38702 MFLAG=SLAPD_MOD_DYNAMIC
38703 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38705 MFLAG=SLAPD_MOD_STATIC
38706 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38709 cat >>confdefs.h <<_ACEOF
38710 #define SLAPD_OVER_DDS $MFLAG
38715 if test "$ol_enable_deref" != no ; then
38716 BUILD_DDS=$ol_enable_deref
38717 if test "$ol_enable_deref" = mod ; then
38718 MFLAG=SLAPD_MOD_DYNAMIC
38719 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38721 MFLAG=SLAPD_MOD_STATIC
38722 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38725 cat >>confdefs.h <<_ACEOF
38726 #define SLAPD_OVER_DEREF $MFLAG
38731 if test "$ol_enable_dyngroup" != no ; then
38732 BUILD_DYNGROUP=$ol_enable_dyngroup
38733 if test "$ol_enable_dyngroup" = mod ; then
38734 MFLAG=SLAPD_MOD_DYNAMIC
38735 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38737 MFLAG=SLAPD_MOD_STATIC
38738 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38741 cat >>confdefs.h <<_ACEOF
38742 #define SLAPD_OVER_DYNGROUP $MFLAG
38747 if test "$ol_enable_dynlist" != no ; then
38748 BUILD_DYNLIST=$ol_enable_dynlist
38749 if test "$ol_enable_dynlist" = mod ; then
38750 MFLAG=SLAPD_MOD_DYNAMIC
38751 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38753 MFLAG=SLAPD_MOD_STATIC
38754 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38757 cat >>confdefs.h <<_ACEOF
38758 #define SLAPD_OVER_DYNLIST $MFLAG
38763 if test "$ol_enable_memberof" != no ; then
38764 BUILD_MEMBEROF=$ol_enable_memberof
38765 if test "$ol_enable_memberof" = mod ; then
38766 MFLAG=SLAPD_MOD_DYNAMIC
38767 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38769 MFLAG=SLAPD_MOD_STATIC
38770 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38773 cat >>confdefs.h <<_ACEOF
38774 #define SLAPD_OVER_MEMBEROF $MFLAG
38779 if test "$ol_enable_ppolicy" != no ; then
38780 BUILD_PPOLICY=$ol_enable_ppolicy
38781 if test "$ol_enable_ppolicy" = mod ; then
38782 MFLAG=SLAPD_MOD_DYNAMIC
38783 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38785 MFLAG=SLAPD_MOD_STATIC
38786 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38789 cat >>confdefs.h <<_ACEOF
38790 #define SLAPD_OVER_PPOLICY $MFLAG
38795 if test "$ol_enable_proxycache" != no ; then
38796 BUILD_PROXYCACHE=$ol_enable_proxycache
38797 if test "$ol_enable_proxycache" = mod ; then
38798 MFLAG=SLAPD_MOD_DYNAMIC
38799 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38801 MFLAG=SLAPD_MOD_STATIC
38802 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38805 cat >>confdefs.h <<_ACEOF
38806 #define SLAPD_OVER_PROXYCACHE $MFLAG
38811 if test "$ol_enable_refint" != no ; then
38812 BUILD_REFINT=$ol_enable_refint
38813 if test "$ol_enable_refint" = mod ; then
38814 MFLAG=SLAPD_MOD_DYNAMIC
38815 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38817 MFLAG=SLAPD_MOD_STATIC
38818 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38821 cat >>confdefs.h <<_ACEOF
38822 #define SLAPD_OVER_REFINT $MFLAG
38827 if test "$ol_enable_retcode" != no ; then
38828 BUILD_RETCODE=$ol_enable_retcode
38829 if test "$ol_enable_retcode" = mod ; then
38830 MFLAG=SLAPD_MOD_DYNAMIC
38831 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38833 MFLAG=SLAPD_MOD_STATIC
38834 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38837 cat >>confdefs.h <<_ACEOF
38838 #define SLAPD_OVER_RETCODE $MFLAG
38843 if test "$ol_enable_rwm" != no ; then
38845 BUILD_RWM=$ol_enable_rwm
38846 if test "$ol_enable_rwm" = mod ; then
38847 MFLAG=SLAPD_MOD_DYNAMIC
38848 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38850 MFLAG=SLAPD_MOD_STATIC
38851 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38854 cat >>confdefs.h <<_ACEOF
38855 #define SLAPD_OVER_RWM $MFLAG
38860 if test "$ol_enable_seqmod" != no ; then
38861 BUILD_SEQMOD=$ol_enable_seqmod
38862 if test "$ol_enable_seqmod" = mod ; then
38863 MFLAG=SLAPD_MOD_DYNAMIC
38864 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38866 MFLAG=SLAPD_MOD_STATIC
38867 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38870 cat >>confdefs.h <<_ACEOF
38871 #define SLAPD_OVER_SEQMOD $MFLAG
38876 if test "$ol_enable_syncprov" != no ; then
38877 BUILD_SYNCPROV=$ol_enable_syncprov
38878 if test "$ol_enable_syncprov" = mod ; then
38879 MFLAG=SLAPD_MOD_DYNAMIC
38880 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38882 MFLAG=SLAPD_MOD_STATIC
38883 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38886 cat >>confdefs.h <<_ACEOF
38887 #define SLAPD_OVER_SYNCPROV $MFLAG
38892 if test "$ol_enable_translucent" != no ; then
38893 BUILD_TRANSLUCENT=$ol_enable_translucent
38894 if test "$ol_enable_translucent" = mod ; then
38895 MFLAG=SLAPD_MOD_DYNAMIC
38896 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38898 MFLAG=SLAPD_MOD_STATIC
38899 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38902 cat >>confdefs.h <<_ACEOF
38903 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38908 if test "$ol_enable_unique" != no ; then
38909 BUILD_UNIQUE=$ol_enable_unique
38910 if test "$ol_enable_unique" = mod ; then
38911 MFLAG=SLAPD_MOD_DYNAMIC
38912 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38914 MFLAG=SLAPD_MOD_STATIC
38915 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38918 cat >>confdefs.h <<_ACEOF
38919 #define SLAPD_OVER_UNIQUE $MFLAG
38924 if test "$ol_enable_valsort" != no ; then
38925 BUILD_VALSORT=$ol_enable_valsort
38926 if test "$ol_enable_valsort" = mod ; then
38927 MFLAG=SLAPD_MOD_DYNAMIC
38928 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38930 MFLAG=SLAPD_MOD_STATIC
38931 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38934 cat >>confdefs.h <<_ACEOF
38935 #define SLAPD_OVER_VALSORT $MFLAG
38940 if test "$ol_enable_rewrite" != no ; then
38942 cat >>confdefs.h <<\_ACEOF
38943 #define ENABLE_REWRITE 1
38949 if test "$ol_enable_slapi" != no ; then
38951 cat >>confdefs.h <<\_ACEOF
38952 #define ENABLE_SLAPI 1
38956 SLAPD_SLAPI_DEPEND=libslapi.a
38961 if test "$ac_cv_mingw32" = yes ; then
38963 SLAPD_MODULES_LDFLAGS=
39057 # Check whether --with-xxinstall or --without-xxinstall was given.
39058 if test "${with_xxinstall+set}" = set; then
39059 withval="$with_xxinstall"
39064 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-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/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-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
39067 ac_config_commands="$ac_config_commands default"
39071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39072 # Let make expand exec_prefix.
39073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39075 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39076 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39077 # trailing colons and then remove the whole line if VPATH becomes empty
39078 # (actually we leave an empty line to preserve line numbers).
39079 if test "x$srcdir" = x.; then
39080 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39081 s/:*\$(srcdir):*/:/;
39082 s/:*\${srcdir}:*/:/;
39084 s/^\([^=]*=[ ]*\):*/\1/;
39090 DEFS=-DHAVE_CONFIG_H
39094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39095 # 1. Remove the extension, and $U if already installed.
39096 ac_i=`echo "$ac_i" |
39097 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39099 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39100 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39102 LIBOBJS=$ac_libobjs
39104 LTLIBOBJS=$ac_ltlibobjs
39107 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39108 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39109 Usually this means the macro was only invoked conditionally." >&5
39110 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39111 Usually this means the macro was only invoked conditionally." >&2;}
39112 { (exit 1); exit 1; }; }
39114 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39115 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39116 Usually this means the macro was only invoked conditionally." >&5
39117 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39118 Usually this means the macro was only invoked conditionally." >&2;}
39119 { (exit 1); exit 1; }; }
39121 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39122 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39123 Usually this means the macro was only invoked conditionally." >&5
39124 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39125 Usually this means the macro was only invoked conditionally." >&2;}
39126 { (exit 1); exit 1; }; }
39129 : ${CONFIG_STATUS=./config.status}
39130 ac_clean_files_save=$ac_clean_files
39131 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39132 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39133 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39134 cat >$CONFIG_STATUS <<_ACEOF
39136 # Generated by $as_me.
39137 # Run this file to recreate the current configuration.
39138 # Compiler output produced by configure, useful for debugging
39139 # configure, is in config.log if it exists.
39142 ac_cs_recheck=false
39144 SHELL=\${CONFIG_SHELL-$SHELL}
39147 cat >>$CONFIG_STATUS <<\_ACEOF
39148 ## --------------------- ##
39149 ## M4sh Initialization. ##
39150 ## --------------------- ##
39152 # Be Bourne compatible
39153 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39156 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39157 # is contrary to our usage. Disable this feature.
39158 alias -g '${1+"$@"}'='"$@"'
39159 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39162 DUALCASE=1; export DUALCASE # for MKS sh
39164 # Support unset when possible.
39165 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39172 # Work around bugs in pre-3.0 UWIN ksh.
39173 $as_unset ENV MAIL MAILPATH
39180 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39181 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39182 LC_TELEPHONE LC_TIME
39184 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39185 eval $as_var=C; export $as_var
39191 # Required to use basename.
39192 if expr a : '\(a\)' >/dev/null 2>&1; then
39198 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39199 as_basename=basename
39205 # Name of the executable.
39206 as_me=`$as_basename "$0" ||
39207 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39208 X"$0" : 'X\(//\)$' \| \
39209 X"$0" : 'X\(/\)$' \| \
39210 . : '\(.\)' 2>/dev/null ||
39212 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39213 /^X\/\(\/\/\)$/{ s//\1/; q; }
39214 /^X\/\(\/\).*/{ s//\1/; q; }
39218 # PATH needs CR, and LINENO needs CR and PATH.
39219 # Avoid depending upon Character Ranges.
39220 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39221 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39222 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39223 as_cr_digits='0123456789'
39224 as_cr_alnum=$as_cr_Letters$as_cr_digits
39226 # The user is always right.
39227 if test "${PATH_SEPARATOR+set}" != set; then
39228 echo "#! /bin/sh" >conf$$.sh
39229 echo "exit 0" >>conf$$.sh
39231 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39240 as_lineno_1=$LINENO
39241 as_lineno_2=$LINENO
39242 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39243 test "x$as_lineno_1" != "x$as_lineno_2" &&
39244 test "x$as_lineno_3" = "x$as_lineno_2" || {
39245 # Find who we are. Look in the path if we contain no path at all
39248 *[\\/]* ) as_myself=$0 ;;
39249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39250 for as_dir in $PATH
39253 test -z "$as_dir" && as_dir=.
39254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39259 # We did not find ourselves, most probably we were run as `sh COMMAND'
39260 # in which case we are not to be found in the path.
39261 if test "x$as_myself" = x; then
39264 if test ! -f "$as_myself"; then
39265 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39266 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39267 { (exit 1); exit 1; }; }
39269 case $CONFIG_SHELL in
39271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39272 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39275 test -z "$as_dir" && as_dir=.
39276 for as_base in sh bash ksh sh5; do
39279 if ("$as_dir/$as_base" -c '
39280 as_lineno_1=$LINENO
39281 as_lineno_2=$LINENO
39282 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39283 test "x$as_lineno_1" != "x$as_lineno_2" &&
39284 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39285 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39286 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39287 CONFIG_SHELL=$as_dir/$as_base
39288 export CONFIG_SHELL
39289 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39297 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39298 # uniformly replaced by the line number. The first 'sed' inserts a
39299 # line-number line before each line; the second 'sed' does the real
39300 # work. The second script uses 'N' to pair each line-number line
39301 # with the numbered line, and appends trailing '-' during
39302 # substitution so that $LINENO is not a special case at line end.
39303 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39304 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39305 sed '=' <$as_myself |
39310 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39313 s,^['$as_cr_digits']*\n,,
39314 ' >$as_me.lineno &&
39315 chmod +x $as_me.lineno ||
39316 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39317 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39318 { (exit 1); exit 1; }; }
39320 # Don't try to exec as it changes $[0], causing all sort of problems
39321 # (the dirname of $[0] is not the place where we might find the
39322 # original and so on. Autoconf is especially sensible to this).
39324 # Exit status is that of the last command.
39329 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39330 *c*,-n*) ECHO_N= ECHO_C='
39332 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39333 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39336 if expr a : '\(a\)' >/dev/null 2>&1; then
39342 rm -f conf$$ conf$$.exe conf$$.file
39344 if ln -s conf$$.file conf$$ 2>/dev/null; then
39345 # We could just check for DJGPP; but this test a) works b) is more generic
39346 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39347 if test -f conf$$.exe; then
39348 # Don't use ln at all; we don't have any links
39353 elif ln conf$$.file conf$$ 2>/dev/null; then
39358 rm -f conf$$ conf$$.exe conf$$.file
39360 if mkdir -p . 2>/dev/null; then
39363 test -d ./-p && rmdir ./-p
39367 as_executable_p="test -f"
39369 # Sed expression to map a string onto a valid CPP name.
39370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39372 # Sed expression to map a string onto a valid variable name.
39373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39377 # We need space, tab and new line, in precisely that order.
39387 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39388 # report actual input values of CONFIG_FILES etc. instead of their
39389 # values after options handling. Logging --version etc. is OK.
39393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39394 ## Running $as_me. ##
39399 This file was extended by $as_me, which was
39400 generated by GNU Autoconf 2.59. Invocation command line was
39402 CONFIG_FILES = $CONFIG_FILES
39403 CONFIG_HEADERS = $CONFIG_HEADERS
39404 CONFIG_LINKS = $CONFIG_LINKS
39405 CONFIG_COMMANDS = $CONFIG_COMMANDS
39409 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39413 # Files that config.status was made for.
39414 if test -n "$ac_config_files"; then
39415 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39418 if test -n "$ac_config_headers"; then
39419 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39422 if test -n "$ac_config_links"; then
39423 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39426 if test -n "$ac_config_commands"; then
39427 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39430 cat >>$CONFIG_STATUS <<\_ACEOF
39433 \`$as_me' instantiates files from templates according to the
39434 current configuration.
39436 Usage: $0 [OPTIONS] [FILE]...
39438 -h, --help print this help, then exit
39439 -V, --version print version number, then exit
39440 -q, --quiet do not print progress messages
39441 -d, --debug don't remove temporary files
39442 --recheck update $as_me by reconfiguring in the same conditions
39443 --file=FILE[:TEMPLATE]
39444 instantiate the configuration file FILE
39445 --header=FILE[:TEMPLATE]
39446 instantiate the configuration header FILE
39448 Configuration files:
39451 Configuration headers:
39454 Configuration commands:
39457 Report bugs to <bug-autoconf@gnu.org>."
39460 cat >>$CONFIG_STATUS <<_ACEOF
39463 configured by $0, generated by GNU Autoconf 2.59,
39464 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39466 Copyright (C) 2003 Free Software Foundation, Inc.
39467 This config.status script is free software; the Free Software Foundation
39468 gives unlimited permission to copy, distribute and modify it."
39473 cat >>$CONFIG_STATUS <<\_ACEOF
39474 # If no file are specified by the user, then we need to provide default
39475 # value. By we need to know if files were specified by the user.
39481 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39482 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39490 *) # This is not an option, so the user has probably given explicit
39493 ac_need_defaults=false;;
39497 # Handling of the options.
39499 cat >>$CONFIG_STATUS <<\_ACEOF
39500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39502 --version | --vers* | -V )
39503 echo "$ac_cs_version"; exit 0 ;;
39505 # Conflict between --help and --header
39506 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39507 Try \`$0 --help' for more information." >&5
39508 echo "$as_me: error: ambiguous option: $1
39509 Try \`$0 --help' for more information." >&2;}
39510 { (exit 1); exit 1; }; };;
39511 --help | --hel | -h )
39512 echo "$ac_cs_usage"; exit 0 ;;
39513 --debug | --d* | -d )
39515 --file | --fil | --fi | --f )
39517 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39518 ac_need_defaults=false;;
39519 --header | --heade | --head | --hea )
39521 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39522 ac_need_defaults=false;;
39523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39527 # This is an error.
39528 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39529 Try \`$0 --help' for more information." >&5
39530 echo "$as_me: error: unrecognized option: $1
39531 Try \`$0 --help' for more information." >&2;}
39532 { (exit 1); exit 1; }; } ;;
39534 *) ac_config_targets="$ac_config_targets $1" ;;
39540 ac_configure_extra_args=
39542 if $ac_cs_silent; then
39544 ac_configure_extra_args="$ac_configure_extra_args --silent"
39548 cat >>$CONFIG_STATUS <<_ACEOF
39549 if \$ac_cs_recheck; then
39550 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39551 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39556 cat >>$CONFIG_STATUS <<_ACEOF
39558 # INIT-COMMANDS section.
39561 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39563 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39564 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39571 cat >>$CONFIG_STATUS <<\_ACEOF
39572 for ac_config_target in $ac_config_targets
39574 case "$ac_config_target" in
39575 # Handling of arguments.
39576 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39577 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39578 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39579 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39580 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39581 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39582 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39583 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39584 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39585 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39586 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39587 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39588 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39589 "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" ;;
39590 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39591 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39592 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39593 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39594 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39595 "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" ;;
39596 "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" ;;
39597 "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" ;;
39598 "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" ;;
39599 "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" ;;
39600 "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" ;;
39601 "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" ;;
39602 "servers/slapd/back-ndb/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk" ;;
39603 "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" ;;
39604 "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" ;;
39605 "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" ;;
39606 "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" ;;
39607 "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" ;;
39608 "servers/slapd/back-sock/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk" ;;
39609 "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" ;;
39610 "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" ;;
39611 "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" ;;
39612 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39613 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39614 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39615 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39616 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39617 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39618 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39619 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39620 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39621 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39622 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39623 { (exit 1); exit 1; }; };;
39627 # If the user did not use the arguments to specify the items to instantiate,
39628 # then the envvar interface is used. Set only those that are not.
39629 # We use the long form for the default assignment because of an extremely
39630 # bizarre bug on SunOS 4.1.3.
39631 if $ac_need_defaults; then
39632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39637 # Have a temporary directory for convenience. Make it in the build tree
39638 # simply because there is no reason to put it here, and in addition,
39639 # creating and moving files from /tmp can sometimes cause problems.
39640 # Create a temporary directory, and hook for its removal unless debugging.
39643 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39644 trap '{ (exit 1); exit 1; }' 1 2 13 15
39647 # Create a (secure) tmp directory for tmp files.
39650 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39651 test -n "$tmp" && test -d "$tmp"
39654 tmp=./confstat$$-$RANDOM
39655 (umask 077 && mkdir $tmp)
39658 echo "$me: cannot create a temporary directory in ." >&2
39659 { (exit 1); exit 1; }
39664 cat >>$CONFIG_STATUS <<_ACEOF
39667 # CONFIG_FILES section.
39670 # No need to generate the scripts if there are no CONFIG_FILES.
39671 # This happens for instance when ./config.status config.h
39672 if test -n "\$CONFIG_FILES"; then
39673 # Protect against being on the right side of a sed subst in config.status.
39674 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39675 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39676 s,@SHELL@,$SHELL,;t t
39677 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39678 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39679 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39680 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39681 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39682 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39683 s,@exec_prefix@,$exec_prefix,;t t
39684 s,@prefix@,$prefix,;t t
39685 s,@program_transform_name@,$program_transform_name,;t t
39686 s,@bindir@,$bindir,;t t
39687 s,@sbindir@,$sbindir,;t t
39688 s,@libexecdir@,$libexecdir,;t t
39689 s,@datadir@,$datadir,;t t
39690 s,@sysconfdir@,$sysconfdir,;t t
39691 s,@sharedstatedir@,$sharedstatedir,;t t
39692 s,@localstatedir@,$localstatedir,;t t
39693 s,@libdir@,$libdir,;t t
39694 s,@includedir@,$includedir,;t t
39695 s,@oldincludedir@,$oldincludedir,;t t
39696 s,@infodir@,$infodir,;t t
39697 s,@mandir@,$mandir,;t t
39698 s,@build_alias@,$build_alias,;t t
39699 s,@host_alias@,$host_alias,;t t
39700 s,@target_alias@,$target_alias,;t t
39701 s,@DEFS@,$DEFS,;t t
39702 s,@ECHO_C@,$ECHO_C,;t t
39703 s,@ECHO_N@,$ECHO_N,;t t
39704 s,@ECHO_T@,$ECHO_T,;t t
39705 s,@LIBS@,$LIBS,;t t
39706 s,@build@,$build,;t t
39707 s,@build_cpu@,$build_cpu,;t t
39708 s,@build_vendor@,$build_vendor,;t t
39709 s,@build_os@,$build_os,;t t
39710 s,@host@,$host,;t t
39711 s,@host_cpu@,$host_cpu,;t t
39712 s,@host_vendor@,$host_vendor,;t t
39713 s,@host_os@,$host_os,;t t
39714 s,@target@,$target,;t t
39715 s,@target_cpu@,$target_cpu,;t t
39716 s,@target_vendor@,$target_vendor,;t t
39717 s,@target_os@,$target_os,;t t
39718 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39719 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39720 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39721 s,@CYGPATH_W@,$CYGPATH_W,;t t
39722 s,@PACKAGE@,$PACKAGE,;t t
39723 s,@VERSION@,$VERSION,;t t
39724 s,@ACLOCAL@,$ACLOCAL,;t t
39725 s,@AUTOCONF@,$AUTOCONF,;t t
39726 s,@AUTOMAKE@,$AUTOMAKE,;t t
39727 s,@AUTOHEADER@,$AUTOHEADER,;t t
39728 s,@MAKEINFO@,$MAKEINFO,;t t
39729 s,@install_sh@,$install_sh,;t t
39730 s,@STRIP@,$STRIP,;t t
39731 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39732 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39733 s,@mkdir_p@,$mkdir_p,;t t
39735 s,@SET_MAKE@,$SET_MAKE,;t t
39736 s,@am__leading_dot@,$am__leading_dot,;t t
39737 s,@AMTAR@,$AMTAR,;t t
39738 s,@am__tar@,$am__tar,;t t
39739 s,@am__untar@,$am__untar,;t t
39740 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
39741 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
39742 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
39743 s,@top_builddir@,$top_builddir,;t t
39744 s,@ldap_subdir@,$ldap_subdir,;t t
39747 s,@CFLAGS@,$CFLAGS,;t t
39748 s,@LDFLAGS@,$LDFLAGS,;t t
39749 s,@CPPFLAGS@,$CPPFLAGS,;t t
39750 s,@ac_ct_CC@,$ac_ct_CC,;t t
39751 s,@EXEEXT@,$EXEEXT,;t t
39752 s,@OBJEXT@,$OBJEXT,;t t
39753 s,@DEPDIR@,$DEPDIR,;t t
39754 s,@am__include@,$am__include,;t t
39755 s,@am__quote@,$am__quote,;t t
39756 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39757 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39758 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39759 s,@CCDEPMODE@,$CCDEPMODE,;t t
39760 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39761 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39762 s,@EGREP@,$EGREP,;t t
39763 s,@LN_S@,$LN_S,;t t
39764 s,@ECHO@,$ECHO,;t t
39765 s,@ac_ct_AR@,$ac_ct_AR,;t t
39766 s,@RANLIB@,$RANLIB,;t t
39767 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39768 s,@DLLTOOL@,$DLLTOOL,;t t
39769 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
39771 s,@ac_ct_AS@,$ac_ct_AS,;t t
39772 s,@OBJDUMP@,$OBJDUMP,;t t
39773 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
39775 s,@LIBTOOL@,$LIBTOOL,;t t
39776 s,@PERLBIN@,$PERLBIN,;t t
39777 s,@OL_MKDEP@,$OL_MKDEP,;t t
39778 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
39779 s,@LTSTATIC@,$LTSTATIC,;t t
39780 s,@MYSQL@,$MYSQL,;t t
39781 s,@LIBOBJS@,$LIBOBJS,;t t
39782 s,@LIBSRCS@,$LIBSRCS,;t t
39783 s,@PLAT@,$PLAT,;t t
39784 s,@WITH_SASL@,$WITH_SASL,;t t
39785 s,@WITH_TLS@,$WITH_TLS,;t t
39786 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
39787 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
39788 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
39789 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
39790 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
39791 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
39792 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
39793 s,@BUILD_BDB@,$BUILD_BDB,;t t
39794 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
39795 s,@BUILD_HDB@,$BUILD_HDB,;t t
39796 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
39797 s,@BUILD_META@,$BUILD_META,;t t
39798 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
39799 s,@BUILD_NDB@,$BUILD_NDB,;t t
39800 s,@BUILD_NULL@,$BUILD_NULL,;t t
39801 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
39802 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
39803 s,@BUILD_PERL@,$BUILD_PERL,;t t
39804 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
39805 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
39806 s,@BUILD_SQL@,$BUILD_SQL,;t t
39807 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
39808 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
39809 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
39810 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
39811 s,@BUILD_DDS@,$BUILD_DDS,;t t
39812 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
39813 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
39814 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
39815 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
39816 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
39817 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
39818 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
39819 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
39820 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
39821 s,@BUILD_RWM@,$BUILD_RWM,;t t
39822 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
39823 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
39824 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
39825 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
39826 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
39827 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
39828 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
39829 s,@BDB_LIBS@,$BDB_LIBS,;t t
39830 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
39831 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
39832 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
39833 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
39834 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
39835 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
39836 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
39837 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
39838 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
39839 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
39840 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
39841 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
39842 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
39843 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
39844 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
39845 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
39846 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
39847 s,@SASL_LIBS@,$SASL_LIBS,;t t
39848 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
39849 s,@TLS_LIBS@,$TLS_LIBS,;t t
39850 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
39851 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
39852 s,@LIBSLAPI@,$LIBSLAPI,;t t
39853 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
39854 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
39855 s,@ICU_LIBS@,$ICU_LIBS,;t t
39856 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
39857 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
39858 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
39859 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
39860 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
39861 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39866 cat >>$CONFIG_STATUS <<\_ACEOF
39867 # Split the substitutions into bite-sized pieces for seds with
39868 # small command number limits, like on Digital OSF/1 and HP-UX.
39869 ac_max_sed_lines=48
39870 ac_sed_frag=1 # Number of current file.
39871 ac_beg=1 # First line for current file.
39872 ac_end=$ac_max_sed_lines # Line after last line for current file.
39875 while $ac_more_lines; do
39876 if test $ac_beg -gt 1; then
39877 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39879 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39881 if test ! -s $tmp/subs.frag; then
39882 ac_more_lines=false
39884 # The purpose of the label and of the branching condition is to
39885 # speed up the sed processing (if there are no `@' at all, there
39886 # is no need to browse any of the substitutions).
39887 # These are the two extra sed commands mentioned above.
39889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39890 if test -z "$ac_sed_cmds"; then
39891 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39893 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39895 ac_sed_frag=`expr $ac_sed_frag + 1`
39897 ac_end=`expr $ac_end + $ac_max_sed_lines`
39900 if test -z "$ac_sed_cmds"; then
39903 fi # test -n "$CONFIG_FILES"
39906 cat >>$CONFIG_STATUS <<\_ACEOF
39907 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39908 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39910 - | *:- | *:-:* ) # input from stdin
39912 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39913 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39914 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39916 * ) ac_file_in=$ac_file.in ;;
39919 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39920 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39922 X"$ac_file" : 'X\(//\)[^/]' \| \
39923 X"$ac_file" : 'X\(//\)$' \| \
39924 X"$ac_file" : 'X\(/\)' \| \
39925 . : '\(.\)' 2>/dev/null ||
39927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39929 /^X\(\/\/\)$/{ s//\1/; q; }
39930 /^X\(\/\).*/{ s//\1/; q; }
39932 { if $as_mkdir_p; then
39937 while test ! -d "$as_dir"; do
39938 as_dirs="$as_dir $as_dirs"
39939 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39941 X"$as_dir" : 'X\(//\)[^/]' \| \
39942 X"$as_dir" : 'X\(//\)$' \| \
39943 X"$as_dir" : 'X\(/\)' \| \
39944 . : '\(.\)' 2>/dev/null ||
39946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39948 /^X\(\/\/\)$/{ s//\1/; q; }
39949 /^X\(\/\).*/{ s//\1/; q; }
39952 test ! -n "$as_dirs" || mkdir $as_dirs
39953 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39954 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39955 { (exit 1); exit 1; }; }; }
39959 if test "$ac_dir" != .; then
39960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39961 # A "../" for each directory in $ac_dir_suffix.
39962 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39964 ac_dir_suffix= ac_top_builddir=
39968 .) # No --srcdir option. We are building in place.
39970 if test -z "$ac_top_builddir"; then
39973 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39975 [\\/]* | ?:[\\/]* ) # Absolute path.
39976 ac_srcdir=$srcdir$ac_dir_suffix;
39977 ac_top_srcdir=$srcdir ;;
39978 *) # Relative path.
39979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39983 # Do not use `cd foo && pwd` to compute absolute paths, because
39984 # the directories may not exist.
39986 .) ac_abs_builddir="$ac_dir";;
39989 .) ac_abs_builddir=`pwd`;;
39990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39991 *) ac_abs_builddir=`pwd`/"$ac_dir";;
39994 case $ac_abs_builddir in
39995 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39997 case ${ac_top_builddir}. in
39998 .) ac_abs_top_builddir=$ac_abs_builddir;;
39999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40003 case $ac_abs_builddir in
40004 .) ac_abs_srcdir=$ac_srcdir;;
40007 .) ac_abs_srcdir=$ac_abs_builddir;;
40008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40012 case $ac_abs_builddir in
40013 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40015 case $ac_top_srcdir in
40016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40025 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40028 if test x"$ac_file" != x-; then
40029 { echo "$as_me:$LINENO: creating $ac_file" >&5
40030 echo "$as_me: creating $ac_file" >&6;}
40033 # Let's still pretend it is `configure' which instantiates (i.e., don't
40034 # use $as_me), people would be surprised to read:
40035 # /* config.h. Generated by config.status. */
40036 if test x"$ac_file" = x-; then
40039 configure_input="$ac_file. "
40041 configure_input=$configure_input"Generated from `echo $ac_file_in |
40042 sed 's,.*/,,'` by configure."
40044 # First look for the input files in the build tree, otherwise in the
40046 ac_file_inputs=`IFS=:
40047 for f in $ac_file_in; do
40049 -) echo $tmp/stdin ;;
40051 # Absolute (can't be DOS-style, as IFS=:)
40052 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40053 echo "$as_me: error: cannot find input file: $f" >&2;}
40054 { (exit 1); exit 1; }; }
40057 if test -f "$f"; then
40060 elif test -f "$srcdir/$f"; then
40065 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40066 echo "$as_me: error: cannot find input file: $f" >&2;}
40067 { (exit 1); exit 1; }; }
40070 done` || { (exit 1); exit 1; }
40072 cat >>$CONFIG_STATUS <<_ACEOF
40076 cat >>$CONFIG_STATUS <<\_ACEOF
40078 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40079 s,@configure_input@,$configure_input,;t t
40080 s,@srcdir@,$ac_srcdir,;t t
40081 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40082 s,@top_srcdir@,$ac_top_srcdir,;t t
40083 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40084 s,@builddir@,$ac_builddir,;t t
40085 s,@abs_builddir@,$ac_abs_builddir,;t t
40086 s,@top_builddir@,$ac_top_builddir,;t t
40087 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40088 s,@INSTALL@,$ac_INSTALL,;t t
40089 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40091 if test x"$ac_file" != x-; then
40092 mv $tmp/out $ac_file
40100 cat >>$CONFIG_STATUS <<\_ACEOF
40103 # CONFIG_HEADER section.
40106 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40107 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40109 # ac_d sets the value in "#define NAME VALUE" lines.
40110 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40111 ac_dB='[ ].*$,\1#\2'
40114 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40115 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40116 ac_uB='$,\1#\2define\3'
40120 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40123 - | *:- | *:-:* ) # input from stdin
40125 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40127 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40129 * ) ac_file_in=$ac_file.in ;;
40132 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40133 echo "$as_me: creating $ac_file" >&6;}
40135 # First look for the input files in the build tree, otherwise in the
40137 ac_file_inputs=`IFS=:
40138 for f in $ac_file_in; do
40140 -) echo $tmp/stdin ;;
40142 # Absolute (can't be DOS-style, as IFS=:)
40143 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40144 echo "$as_me: error: cannot find input file: $f" >&2;}
40145 { (exit 1); exit 1; }; }
40146 # Do quote $f, to prevent DOS paths from being IFS'd.
40149 if test -f "$f"; then
40152 elif test -f "$srcdir/$f"; then
40157 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40158 echo "$as_me: error: cannot find input file: $f" >&2;}
40159 { (exit 1); exit 1; }; }
40162 done` || { (exit 1); exit 1; }
40163 # Remove the trailing spaces.
40164 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40168 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40169 # `conftest.undefs', that substitutes the proper values into
40170 # config.h.in to produce config.h. The first handles `#define'
40171 # templates, and the second `#undef' templates.
40172 # And first: Protect against being on the right side of a sed subst in
40173 # config.status. Protect against being in an unquoted here document
40174 # in config.status.
40175 rm -f conftest.defines conftest.undefs
40176 # Using a here document instead of a string reduces the quoting nightmare.
40177 # Putting comments in sed scripts is not portable.
40179 # `end' is used to avoid that the second main sed command (meant for
40180 # 0-ary CPP macros) applies to n-ary macro definitions.
40181 # See the Autoconf documentation for `clear'.
40182 cat >confdef2sed.sed <<\_ACEOF
40187 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40189 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40192 # If some macros were called several times there might be several times
40193 # the same #defines, which is useless. Nevertheless, we may not want to
40194 # sort them, since we want the *last* AC-DEFINE to be honored.
40195 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40196 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40197 rm -f confdef2sed.sed
40199 # This sed command replaces #undef with comments. This is necessary, for
40200 # example, in the case of _POSIX_SOURCE, which is predefined and required
40201 # on some systems where configure will not decide to define it.
40202 cat >>conftest.undefs <<\_ACEOF
40203 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40206 # Break up conftest.defines because some shells have a limit on the size
40207 # of here documents, and old seds have small limits too (100 cmds).
40208 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40209 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40210 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40211 echo ' :' >>$CONFIG_STATUS
40212 rm -f conftest.tail
40213 while grep . conftest.defines >/dev/null
40215 # Write a limited-size here document to $tmp/defines.sed.
40216 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40217 # Speed up: don't consider the non `#define' lines.
40218 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40219 # Work around the forget-to-reset-the-flag bug.
40220 echo 't clr' >>$CONFIG_STATUS
40221 echo ': clr' >>$CONFIG_STATUS
40222 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40224 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40226 mv $tmp/out $tmp/in
40228 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40229 rm -f conftest.defines
40230 mv conftest.tail conftest.defines
40232 rm -f conftest.defines
40233 echo ' fi # grep' >>$CONFIG_STATUS
40234 echo >>$CONFIG_STATUS
40236 # Break up conftest.undefs because some shells have a limit on the size
40237 # of here documents, and old seds have small limits too (100 cmds).
40238 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40239 rm -f conftest.tail
40240 while grep . conftest.undefs >/dev/null
40242 # Write a limited-size here document to $tmp/undefs.sed.
40243 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40244 # Speed up: don't consider the non `#undef'
40245 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40246 # Work around the forget-to-reset-the-flag bug.
40247 echo 't clr' >>$CONFIG_STATUS
40248 echo ': clr' >>$CONFIG_STATUS
40249 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40251 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40253 mv $tmp/out $tmp/in
40255 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40256 rm -f conftest.undefs
40257 mv conftest.tail conftest.undefs
40259 rm -f conftest.undefs
40261 cat >>$CONFIG_STATUS <<\_ACEOF
40262 # Let's still pretend it is `configure' which instantiates (i.e., don't
40263 # use $as_me), people would be surprised to read:
40264 # /* config.h. Generated by config.status. */
40265 if test x"$ac_file" = x-; then
40266 echo "/* Generated by configure. */" >$tmp/config.h
40268 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40270 cat $tmp/in >>$tmp/config.h
40272 if test x"$ac_file" != x-; then
40273 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40274 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40275 echo "$as_me: $ac_file is unchanged" >&6;}
40277 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40278 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40279 X"$ac_file" : 'X\(//\)[^/]' \| \
40280 X"$ac_file" : 'X\(//\)$' \| \
40281 X"$ac_file" : 'X\(/\)' \| \
40282 . : '\(.\)' 2>/dev/null ||
40284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40286 /^X\(\/\/\)$/{ s//\1/; q; }
40287 /^X\(\/\).*/{ s//\1/; q; }
40289 { if $as_mkdir_p; then
40294 while test ! -d "$as_dir"; do
40295 as_dirs="$as_dir $as_dirs"
40296 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40298 X"$as_dir" : 'X\(//\)[^/]' \| \
40299 X"$as_dir" : 'X\(//\)$' \| \
40300 X"$as_dir" : 'X\(/\)' \| \
40301 . : '\(.\)' 2>/dev/null ||
40303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40305 /^X\(\/\/\)$/{ s//\1/; q; }
40306 /^X\(\/\).*/{ s//\1/; q; }
40309 test ! -n "$as_dirs" || mkdir $as_dirs
40310 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40311 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40312 { (exit 1); exit 1; }; }; }
40315 mv $tmp/config.h $ac_file
40319 rm -f $tmp/config.h
40321 # Compute $ac_file's index in $config_headers.
40323 for _am_header in $config_headers :; do
40324 case $_am_header in
40325 $ac_file | $ac_file:* )
40328 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40331 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40332 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40333 X$ac_file : 'X\(//\)[^/]' \| \
40334 X$ac_file : 'X\(//\)$' \| \
40335 X$ac_file : 'X\(/\)' \| \
40336 . : '\(.\)' 2>/dev/null ||
40338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40340 /^X\(\/\/\)$/{ s//\1/; q; }
40341 /^X\(\/\).*/{ s//\1/; q; }
40342 s/.*/./; q'`/stamp-h$_am_stamp_count
40345 cat >>$CONFIG_STATUS <<\_ACEOF
40348 # CONFIG_COMMANDS section.
40350 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40351 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40352 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40353 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40354 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40355 X"$ac_dest" : 'X\(//\)[^/]' \| \
40356 X"$ac_dest" : 'X\(//\)$' \| \
40357 X"$ac_dest" : 'X\(/\)' \| \
40358 . : '\(.\)' 2>/dev/null ||
40360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40362 /^X\(\/\/\)$/{ s//\1/; q; }
40363 /^X\(\/\).*/{ s//\1/; q; }
40365 { if $as_mkdir_p; then
40370 while test ! -d "$as_dir"; do
40371 as_dirs="$as_dir $as_dirs"
40372 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40374 X"$as_dir" : 'X\(//\)[^/]' \| \
40375 X"$as_dir" : 'X\(//\)$' \| \
40376 X"$as_dir" : 'X\(/\)' \| \
40377 . : '\(.\)' 2>/dev/null ||
40379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40381 /^X\(\/\/\)$/{ s//\1/; q; }
40382 /^X\(\/\).*/{ s//\1/; q; }
40385 test ! -n "$as_dirs" || mkdir $as_dirs
40386 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40387 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40388 { (exit 1); exit 1; }; }; }
40392 if test "$ac_dir" != .; then
40393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40394 # A "../" for each directory in $ac_dir_suffix.
40395 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40397 ac_dir_suffix= ac_top_builddir=
40401 .) # No --srcdir option. We are building in place.
40403 if test -z "$ac_top_builddir"; then
40406 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40408 [\\/]* | ?:[\\/]* ) # Absolute path.
40409 ac_srcdir=$srcdir$ac_dir_suffix;
40410 ac_top_srcdir=$srcdir ;;
40411 *) # Relative path.
40412 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40413 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40416 # Do not use `cd foo && pwd` to compute absolute paths, because
40417 # the directories may not exist.
40419 .) ac_abs_builddir="$ac_dir";;
40422 .) ac_abs_builddir=`pwd`;;
40423 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40424 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40427 case $ac_abs_builddir in
40428 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40430 case ${ac_top_builddir}. in
40431 .) ac_abs_top_builddir=$ac_abs_builddir;;
40432 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40433 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40436 case $ac_abs_builddir in
40437 .) ac_abs_srcdir=$ac_srcdir;;
40440 .) ac_abs_srcdir=$ac_abs_builddir;;
40441 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40442 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40445 case $ac_abs_builddir in
40446 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40448 case $ac_top_srcdir in
40449 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40450 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40451 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40456 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40457 echo "$as_me: executing $ac_dest commands" >&6;}
40459 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40460 # Strip MF so we end up with the name of the file.
40461 mf=`echo "$mf" | sed -e 's/:.*$//'`
40462 # Check whether this is an Automake generated Makefile or not.
40463 # We used to match only the files named `Makefile.in', but
40464 # some people rename them; so instead we look at the file content.
40465 # Grep'ing the first line is not enough: some people post-process
40466 # each Makefile.in and add a new line on top of each file to say so.
40467 # So let's grep whole file.
40468 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40469 dirpart=`(dirname "$mf") 2>/dev/null ||
40470 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40471 X"$mf" : 'X\(//\)[^/]' \| \
40472 X"$mf" : 'X\(//\)$' \| \
40473 X"$mf" : 'X\(/\)' \| \
40474 . : '\(.\)' 2>/dev/null ||
40476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40478 /^X\(\/\/\)$/{ s//\1/; q; }
40479 /^X\(\/\).*/{ s//\1/; q; }
40484 # Extract the definition of DEPDIR, am__include, and am__quote
40485 # from the Makefile without running `make'.
40486 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40487 test -z "$DEPDIR" && continue
40488 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40489 test -z "am__include" && continue
40490 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40491 # When using ansi2knr, U may be empty or an underscore; expand it
40492 U=`sed -n 's/^U = //p' < "$mf"`
40493 # Find all dependency output files, they are included files with
40494 # $(DEPDIR) in their names. We invoke sed twice because it is the
40495 # simplest approach to changing $(DEPDIR) to its actual value in the
40497 for file in `sed -n "
40498 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40499 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40500 # Make sure the directory exists.
40501 test -f "$dirpart/$file" && continue
40502 fdir=`(dirname "$file") 2>/dev/null ||
40503 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40504 X"$file" : 'X\(//\)[^/]' \| \
40505 X"$file" : 'X\(//\)$' \| \
40506 X"$file" : 'X\(/\)' \| \
40507 . : '\(.\)' 2>/dev/null ||
40509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40511 /^X\(\/\/\)$/{ s//\1/; q; }
40512 /^X\(\/\).*/{ s//\1/; q; }
40514 { if $as_mkdir_p; then
40515 mkdir -p $dirpart/$fdir
40517 as_dir=$dirpart/$fdir
40519 while test ! -d "$as_dir"; do
40520 as_dirs="$as_dir $as_dirs"
40521 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40523 X"$as_dir" : 'X\(//\)[^/]' \| \
40524 X"$as_dir" : 'X\(//\)$' \| \
40525 X"$as_dir" : 'X\(/\)' \| \
40526 . : '\(.\)' 2>/dev/null ||
40528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40530 /^X\(\/\/\)$/{ s//\1/; q; }
40531 /^X\(\/\).*/{ s//\1/; q; }
40534 test ! -n "$as_dirs" || mkdir $as_dirs
40535 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40536 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40537 { (exit 1); exit 1; }; }; }
40539 # echo "creating $dirpart/$file"
40540 echo '# dummy' > "$dirpart/$file"
40547 BACKENDSC="servers/slapd/backends.c"
40548 echo "Making $BACKENDSC"
40550 cat > $BACKENDSC << ENDX
40551 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40553 * Copyright 1998-2008 The OpenLDAP Foundation.
40554 * All rights reserved.
40556 * Redistribution and use in source and binary forms, with or without
40557 * modification, are permitted only as authorized by the OpenLDAP
40560 * A copy of this license is available in the file LICENSE in the
40561 * top-level directory of the distribution or, alternatively, at
40562 * <http://www.OpenLDAP.org/license.html>.
40564 /* This file is automatically generated by configure; please do not edit. */
40566 #include "portable.h"
40570 if test "${STATIC_BACKENDS}"; then
40571 for b in config ${STATIC_BACKENDS}; do
40572 bb=`echo "${b}" | sed -e 's/back-//'`
40573 cat >> $BACKENDSC << ENDX
40574 extern BI_init ${bb}_back_initialize;
40578 cat >> $BACKENDSC << ENDX
40580 BackendInfo slap_binfo[] = {
40583 for b in config ${STATIC_BACKENDS}; do
40584 bb=`echo "${b}" | sed -e 's/back-//'`
40585 echo " Add ${bb} ..."
40586 cat >> $BACKENDSC << ENDX
40587 { "${bb}", ${bb}_back_initialize },
40591 cat >> $BACKENDSC << ENDX
40595 /* end of generated file */
40598 OVERLAYSC="servers/slapd/overlays/statover.c"
40599 echo "Making $OVERLAYSC"
40601 cat > $OVERLAYSC << ENDX
40602 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40604 * Copyright 1998-2008 The OpenLDAP Foundation.
40605 * All rights reserved.
40607 * Redistribution and use in source and binary forms, with or without
40608 * modification, are permitted only as authorized by the OpenLDAP
40611 * A copy of this license is available in the file LICENSE in the
40612 * top-level directory of the distribution or, alternatively, at
40613 * <http://www.OpenLDAP.org/license.html>.
40615 /* This file is automatically generated by configure; please do not edit. */
40617 #include "portable.h"
40621 if test "${STATIC_OVERLAYS}"; then
40622 for o in ${STATIC_OVERLAYS}; do
40623 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40624 cat >> $OVERLAYSC << ENDX
40625 extern OV_init ${oo}_initialize;
40630 cat >> $OVERLAYSC << ENDX
40632 OverlayInit slap_oinfo[] = {
40635 if test "${STATIC_OVERLAYS}"; then
40636 for o in ${STATIC_OVERLAYS}; do
40637 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40638 echo " Add ${oo} ..."
40639 cat >> $OVERLAYSC << ENDX
40640 { "${oo}", ${oo}_initialize },
40645 cat >> $OVERLAYSC << ENDX
40649 /* end of generated file */
40652 if test "${ol_cv_mkdep}" = no; then
40653 echo '(Do not "make depend"; we do not know how to build dependencies)'
40655 echo 'Please run "make depend" to build dependencies'
40662 cat >>$CONFIG_STATUS <<\_ACEOF
40664 { (exit 0); exit 0; }
40666 chmod +x $CONFIG_STATUS
40667 ac_clean_files=$ac_clean_files_save
40670 # configure is writing to config.log, and then calls config.status.
40671 # config.status does its own redirection, appending to config.log.
40672 # Unfortunately, on DOS this fails, as config.log is still kept open
40673 # by configure, so config.status won't be able to write to it; its
40674 # output is simply discarded. So we exec the FD to /dev/null,
40675 # effectively closing config.log, so it can be properly (re)opened and
40676 # appended to by config.status. When coming back to configure, we
40677 # need to make the FD available again.
40678 if test "$no_create" != yes; then
40680 ac_config_status_args=
40681 test "$silent" = yes &&
40682 ac_config_status_args="$ac_config_status_args --quiet"
40684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40687 # would make configure fail if this is the last instruction.
40688 $ac_cs_success || { (exit 1); exit 1; }